@charset "UTF-8";
/* =========================================================
   top.css ― トップページ（index.html）だけで使う見た目
   ・目次
     1. ファーストビュー（FV）
     2. What I can do
     3. Work
     4. About
     5. Contact（お問い合わせフォーム）
   ========================================================= */


/* ---------------------------------------------------------
   1. ファーストビュー
   --------------------------------------------------------- */
.fv {
  position: relative;
  height: clamp(680px, 100svh, 900px);
  overflow: hidden;
}

.fv__copy {
  position: relative;
  z-index: 3;
  padding: 0 var(--gutter);
  padding-top: clamp(220px, 30vh, 280px);
}

.fv__title {
  font-size: clamp(34px, 4.6vw, 68px);   /* 最小・画面幅に合わせた大きさ・最大 */
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: 0.02em;   /* 字と字の間隔。小さくするほど詰まる */
}

/* 1行ずつ下からせり上がる */
.fv__line {
  display: block;
  overflow: hidden;
}

.fv__line > span {
  display: block;
  animation: fv-rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.fv__line:nth-child(2) > span {
  animation-delay: 0.25s;
}

.fv__sub {
  margin-top: clamp(32px, 4vw, 56px);
  font-size: 17px;
  letter-spacing: 0.08em;
  animation: fv-fade 0.8s ease 1.4s both;
}

.fv__en {
  margin-top: 4px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  animation: fv-fade 0.8s ease 1.6s both;
}

.fv__scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 56px;
  z-index: 3;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.14em;
  animation: fv-fade 0.8s ease 1.9s both;
}

/* 右から覗くみっくん。ボタンなので、押すと一瞬ひっこみます */
.fv__cat {
  --cat-h: min(900px, 62.5vw);              /* みっくんの高さ。大きさを変えるときはここ */
  position: absolute;
  z-index: 2;
  top: calc(var(--cat-h) * 0.138);
  right: calc(var(--cat-h) * -0.043);
  width: calc(var(--cat-h) * 0.5566);
  height: var(--cat-h);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: translateX(110%);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.fv__cat.is-in {
  transform: none;
}

.fv__cat img {
  width: 100%;
  height: 100%;
  transform-origin: 95% 55%;
  animation: cat-sway 6s ease-in-out infinite;
}

@keyframes fv-rise {
  from { transform: translateY(105%); }
  to   { transform: none; }
}

@keyframes fv-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes cat-sway {
  0%, 100% { transform: rotate(0); }
  50%      { transform: rotate(-1.6deg); }
}

@media (max-width: 1024px) {
  .fv__cat {
    top: calc(var(--cat-h) * 0.138 + 72px);   /* 右上のメニューとしっぽが重ならないように */
  }
}

@media (max-width: 767px) {
  .fv {
    height: 790px;
  }

  .fv__copy {
    padding-top: 160px;
  }

  .fv__title {
    font-size: clamp(28px, 7.8vw, 34px);
    line-height: 1.36;
    letter-spacing: 0;
  }

  .fv__sub {
    margin-top: 28px;
    font-size: 14px;
    letter-spacing: 0.04em;
  }

  .fv__en {
    font-size: 10px;
  }

  .fv__cat {
    --cat-h: 520px;
    top: 390px;
    right: -24px;
  }

  .fv__scroll {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fv__line > span,
  .fv__sub,
  .fv__en,
  .fv__scroll,
  .fv__cat img {
    animation: none;
  }

  .fv__cat {
    transition: none;
  }
}


/* ---------------------------------------------------------
   2. What I can do
   ・3つの分野を箱にせず、足跡が分野のあいだを縫うように歩きます
   --------------------------------------------------------- */
.can {
  padding: 96px 0 var(--section-space);
}

.can__fields {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 44px 0;              /* 足跡が上下を通るすき間 */
}

.can__field {
  position: relative;
  z-index: 2;
}

.can__field ul {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  font-size: 19px;
  line-height: 1.5;
}

.can__etc {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-soft);
}

@media (max-width: 767px) {
  .can {
    padding-top: 40px;
  }

  .can__fields {
    grid-template-columns: 1fr;
    gap: 76px;
    padding: 0;
  }

  .can__field ul {
    gap: 12px;
    margin-top: 20px;
    font-size: 16px;
  }
}


/* ---------------------------------------------------------
   3. Work
   --------------------------------------------------------- */
.work {
  padding: 96px 0 var(--section-space);
  background: var(--wall);
}

.work__group + .work__group {
  margin-top: 112px;
}

.work__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px;
  margin-top: 16px;
}

/* 作品カード */
.work-card__thumb {
  position: relative;
  display: block;
  aspect-ratio: 628 / 400;
  overflow: hidden;
  background: var(--white);
}

.work-card__thumb > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.work-card__title {
  margin-top: 28px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.5;
}

.work-card__meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}

.work-card__desc {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.8;
}

.work-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--teal-deep);
}

/* 「もっと見る」の行。左から足跡が歩いてきて、リンクの手前で止まります */
.work__more {
  position: relative;
  display: flex;
  justify-content: flex-end;
  margin-top: 40px;
}

.work__more .paw-trail {
  left: calc(var(--gutter) * -1);
  width: calc(100% + var(--gutter) - 280px);   /* リンクの手前で止まる */
}

/* --- サムネイルの中身：バナー比較 --- */
.thumb-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: center;
  gap: 12px 20px;
  height: 100%;
  padding: 0 28px;
}

.thumb-pair__label {
  font-size: 13px;
  font-weight: 500;
}

.thumb-pair img {
  grid-row: 2;
  width: 100%;
  aspect-ratio: 630 / 450;
  object-fit: cover;
}

/* --- サムネイルの中身：求人原稿の構成 --- */
.thumb-spec {
  display: grid;
  align-content: center;
  height: 100%;
  padding: 0 44px;
}

.thumb-spec__head {
  margin-bottom: 20px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--teal-deep);
}

.thumb-spec__row {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.thumb-spec__row:last-child {
  border-bottom: 1px solid var(--line);
}

.thumb-spec__row p {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.thumb-spec__row b {
  font-size: 16px;
  font-weight: 500;
}

.thumb-spec__bar {
  height: 6px;
  margin-top: 8px;
  background: var(--teal);
}

/* --- サムネイルの中身：コラムのテーマ --- */
.thumb-toc {
  display: grid;
  align-content: center;
  height: 100%;
  padding: 0 44px;
}

.thumb-toc__head {
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--teal-deep);
}

.thumb-toc li {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.thumb-toc li span {
  font-family: var(--font-en);
  font-size: 11px;
  color: var(--ink-soft);
}

/* 下の3つは少しずつ薄くして、「まだ続く」感じに */
.thumb-toc li:nth-child(5) { opacity: 0.62; }
.thumb-toc li:nth-child(6) { opacity: 0.4; }
.thumb-toc li:nth-child(7) { opacity: 0.24; }

.thumb-toc__total {
  margin-top: 12px;
  text-align: right;
  font-size: 14px;
  font-weight: 500;
  color: var(--teal-deep);
}

@media (max-width: 1024px) {
  .thumb-pair { padding: 0 20px; }
  .thumb-spec,
  .thumb-toc { padding: 0 28px; }
  .thumb-toc li { font-size: 13px; padding: 3px 0; }
  .thumb-spec__row { padding: 12px 0; }
}

@media (max-width: 767px) {
  .work {
    padding-top: 72px;
  }

  .work__group + .work__group {
    margin-top: 80px;
  }

  .work__list {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .work-card__thumb {
    aspect-ratio: 5 / 4;
  }

  .work-card__title {
    margin-top: 20px;
    font-size: 16px;
  }

  .work-card__desc {
    font-size: 13px;
  }

  .work__more .paw-trail {
    display: none;
  }

  .thumb-pair {
    gap: 10px 12px;
    padding: 0 16px;
  }

  .thumb-pair__label {
    font-size: 11px;
  }

  .thumb-spec,
  .thumb-toc {
    padding: 0 24px;
  }

  .thumb-spec__head,
  .thumb-toc__head {
    font-size: 12px;
  }

  .thumb-toc li {
    font-size: 12px;
    padding: 2px 0;
  }
}


/* ---------------------------------------------------------
   4. About
   --------------------------------------------------------- */
.about {
  padding: var(--section-space) 0;
}

.about__inner {
  display: grid;
  grid-template-columns: 472px 1fr;   /* 左：見出しとみっくん ／ 右：文章 */
  gap: 64px;
}

.about__cat {
  width: 300px;
  margin: 40px 0 0 20px;
}

.about__text p {
  font-size: 18px;
  line-height: 2.2;
  letter-spacing: 0.06em;
}

.about__text p + p {
  margin-top: 30px;
}

/* NAME / ROLE などの一覧 */
.about__meta {
  margin-top: 64px;
  border-top: 1px solid var(--line);
}

.about__meta div {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.about__meta dt {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--teal-deep);
}

.about__meta dd {
  font-size: 15px;
}

@media (max-width: 1024px) {
  .about__inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about__cat {
    display: none;            /* 小さい画面では下に出す（.about__cat--bottom） */
  }
}

.about__cat--bottom {
  display: none;
}

@media (max-width: 1024px) {
  .about__cat--bottom {
    display: block;
    width: 130px;
    margin: 40px 0 0 auto;
  }
}

@media (max-width: 767px) {
  .about__text p {
    font-size: 15px;
    line-height: 2;
  }

  .about__text p + p {
    margin-top: 22px;
  }

  .about__meta {
    margin-top: 40px;
  }

  .about__meta div {
    grid-template-columns: 72px 1fr;
  }

  .about__meta dd {
    font-size: 13px;
  }
}


/* ---------------------------------------------------------
   5. Contact
   --------------------------------------------------------- */
.contact {
  padding: var(--section-space) 0;
  background: var(--wall);
}

.contact__inner {
  display: grid;
  grid-template-columns: 472px 1fr;
  gap: 64px;
}

.contact__lead p {
  font-size: 16px;
  letter-spacing: 0.06em;
}

/* フォーム */
.form {
  display: grid;
  gap: 40px;
}

.form__item {
  display: grid;
  gap: 10px;
}

.form__label {
  font-size: 14px;
  font-weight: 500;
}

/* 「必須」「任意」 */
.form__tag {
  margin-left: 10px;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-soft);
}

.form__tag--required {
  color: var(--teal-deep);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #B9C7C7;
  border-radius: 0;
  background: var(--white);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}

.form__input,
.form__select {
  height: 48px;
}

.form__textarea {
  min-height: 150px;
  resize: vertical;
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: #8A9595;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: 2px solid var(--teal-deep);
  outline-offset: 0;
}

/* ご相談内容：丸いボタン型のチェックボックス */
.form__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  border: 0;
}

.form__chips legend {
  margin-bottom: 10px;
  padding: 0;
}

.chip input {
  position: absolute;
  opacity: 0;
}

.chip span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 18px 0 16px;
  border: 1px solid #B9C7C7;
  border-radius: 20px;
  background: var(--white);
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.chip span::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 1.3px solid currentColor;
}

.chip input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.chip input:checked + span::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2 4.8 9 10 3' fill='none' stroke='white' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat center / 10px;
}

.chip input:focus-visible + span {
  outline: 2px solid var(--teal-deep);
  outline-offset: 2px;
}

.form__note {
  font-size: 12px;
  color: var(--ink-soft);
}

/* プライバシーポリシーの同意 */
.form__agree {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.form__agree input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--ink);
}

.form__agree a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form__error {
  font-size: 13px;
  color: #B3261E;
}

@media (max-width: 1024px) {
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 767px) {
  .form {
    gap: 32px;
  }

  .form .button {
    width: 100%;
  }

  .contact__lead p {
    font-size: 14px;
  }
}
