@charset "UTF-8";
/* ============================================================
   NUMEROUS Design
   ============================================================ */
:root {
  --c-text: #333;
  --c-black: #000;
  --c-gray: #8a8a8a;
  --c-line: #eee;
  --c-graphic: #d4d5d9;
  --c-web: #faece9;
  --c-movie: #e9b9be;
  --c-green: #bcd3c5;
  --c-blue: #b8cad8;
  --c-pink: #f2b7bd;
  --c-pink-d: #d47d88; /* 濃いピンク（Flow 04・チェック） */
  /* Service背景用（上の3色を白で約50%淡く） */
  --c-blue-l: #dce4ec;
  --c-pink-l: #fae4e6;
  --c-green-l: #dee9e2;
  --c-studio: #efd9ff;
  --c-req: #971b00;
  --f-en: "Cormorant Garamond", "Shippori Mincho", serif;
  --f-ja: "Shippori Mincho", serif;
  --nav-w: 24.75vw; /* 左メニューの幅：画面幅に比例（1440pxで356px） */
  --fs-body: 15px; /* 本文サイズ（SPは14px） */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--c-text);
  background: #fff;
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; vertical-align: top; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul { margin: 0; padding: 0; font-weight: 400; }
ul { list-style: none; }

/* ------------------------------------------------------------
   Nav（PC：左固定）
   ------------------------------------------------------------ */
.site-nav {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  width: var(--nav-w);
  background: rgba(255, 255, 255, .5);
}
.site-nav__logo {
  position: absolute;
  top: 150px;
  left: 60px;
  width: 200px;
}
.site-nav__logo img { width: 100%; }
.site-nav__menu {
  position: absolute;
  top: 280px;
  left: 60px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.site-nav__menu a {
  font-family: var(--f-en);
  font-size: 22px;
  line-height: 1.4;
  transition: opacity .3s;
}
.site-nav__menu a:hover { opacity: .5; }
.site-nav__toggle { display: none; }
.site-nav__privacy { display: none; } /* PCでは非表示（フォーム内にリンクあり） */

/* ------------------------------------------------------------
   Layout
   ------------------------------------------------------------ */
.main {
  margin-left: var(--nav-w);
  padding: 0 60px 0 30px;
}
.section { max-width: 980px; margin-bottom: 200px; scroll-margin-top: 40px; } /* 全セクション共通の本文幅 */
.section__title {
  font-family: var(--f-en);
  font-size: 50px;
  line-height: 1.4;
  margin-bottom: 50px;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  --word: 210px; /* PC：文字サイズは固定、画面が狭くなるとイラストが縮む */
}
.hero__word {
  position: absolute;
  right: 0;
  font-family: var(--f-en);
  font-size: var(--word);
  line-height: 1;
  letter-spacing: -.08em;
  color: #eee;
  white-space: nowrap;
  opacity: 0;
  animation: fadeIn 1.4s ease forwards;
}
.hero__word--1 { top: 13.2%; animation-delay: .2s; }
.hero__word--2 { top: 38.9%; animation-delay: .5s; }
.hero__word--3 { top: 62.4%; animation-delay: .8s; }
.hero__illust {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: -100px;
  width: calc(33.75vw + 59px); /* 1440pxで540px。画面幅に合わせて縮む */
  transform: translateY(-50%);
  opacity: 0;
  animation: fadeIn 1.8s ease .4s forwards;
}
.hero__sub {
  position: absolute;
  z-index: 2;
  top: 45.8%;
  right: 331px; /* 「I am」の左30pxで右端をそろえる */
  font-family: var(--f-en);
  font-size: 16px;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  animation: fadeIn 1.4s ease 1.1s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

/* ------------------------------------------------------------
   Profile
   ------------------------------------------------------------ */
/* 指定位置での改行（十分な幅があるPCのみ） */
.br-pc { display: none; }
@media (min-width: 1280px) {
  .br-pc { display: inline; }
}
.profile__text p {
  font-family: var(--f-ja);
  font-size: var(--fs-body);
  line-height: 1.9;
  letter-spacing: .04em;
  color: var(--c-black);
}
.profile__text p + p { margin-top: 1.2em; }

/* ------------------------------------------------------------
   Service
   ------------------------------------------------------------ */
.service {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto 1fr;
  gap: 0 16px;
  padding-top: 10px;
  container-type: inline-size; /* リード文の文字サイズ計算用 */
}
/* 3カラムで見出し・リード・白枠の高さをそろえる */
.service__card {
  position: relative;
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  justify-items: center;
  align-content: start;
  min-height: 412px;
  padding: 80px 20px 20px;
  text-align: center;
}
.service__card--direction { background: var(--c-blue-l); }    /* 左：くすみブルー */
.service__card--web       { background: var(--c-pink-l); }    /* 中央：淡いピンク */
.service__card--graphic   { background: var(--c-green-l); }   /* 右：淡いセージグリーン */
.service__opt { font-size: .8em; letter-spacing: 0; }
.service__icon {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  height: 60px;
  width: auto;
}
.service__name {
  font-family: var(--f-en);
  font-size: 30px;
  line-height: 1.4;
}
.service__lead {
  margin: 30px -12px 0;
  font-family: var(--f-ja);
  /* 最長行（19字）が1行に収まるよう、カード幅に合わせて縮小（最大16px） */
  font-size: min(16px, calc(((100cqi - 32px) / 3 - 16px) / 19.5));
  font-weight: 500;
  line-height: 1.8;
}
.service__lead span { white-space: nowrap; }
.service__list {
  justify-self: stretch;
  align-self: stretch;
  margin-top: 30px;
  padding: 20px;
  background: #fff;
  font-family: var(--f-ja);
  font-size: var(--fs-body);
  line-height: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ------------------------------------------------------------
   Works
   ------------------------------------------------------------ */
.works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 29px 20px;
}
.work { display: block; }
.work__thumb {
  aspect-ratio: 313 / 224;
  background: var(--c-line);
  overflow: hidden;
}
.work__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.work:hover .work__thumb img { transform: scale(1.04); }
.work__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.tag {
  padding: 5px 10px;
  border-radius: 2px;
  font-family: var(--f-en);
  font-size: 10px;
  line-height: 1;
}
.tag--web     { background: var(--c-web); }
.tag--graphic { background: var(--c-line); }
.tag--studio  { background: var(--c-studio); }
.tag--movie   { background: var(--c-movie); }
.work__title {
  margin-top: 15px;
  font-family: var(--f-ja);
  font-size: 16px;
  line-height: 1.2;
}
.work__meta {
  margin-top: 10px;
  font-family: var(--f-en);
  font-size: 12px;
  line-height: 1.2;
  color: var(--c-gray);
}

/* 日本語を文節で改行（対応ブラウザのみ） */
.section__lead, .case__title, .case__worry-text, .flow__title, .service__lead, .cases__note, .profile__text p {
  word-break: auto-phrase;
}

/* セクション見出しのサブタイトル */
.section__sub {
  display: block;
  margin-top: 4px;
  font-family: var(--f-ja);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: .1em;
  color: var(--c-text);
}
.section__lead {
  margin-top: -10px;
  margin-bottom: 60px;
  font-family: var(--f-ja);
  font-size: var(--fs-body);
  line-height: 2;
  letter-spacing: .04em;
}

/* ------------------------------------------------------------
   Support Cases
   ------------------------------------------------------------ */
.cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto 1fr;
  gap: 0 16px;
}
.case {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  align-content: start;
  padding: 32px 26px 36px;
  border: 5px solid var(--case-c);
  background: #fff;
}
/* Serviceの3カラムと色を連動 */
.case--1 { --case-c: var(--c-blue); }
.case--2 { --case-c: var(--c-pink); }
.case--3 { --case-c: var(--c-green); }
.case__head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--c-line);
}
.case__num {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
  padding-right: 18px;
  border-right: 1px solid var(--case-c);
  font-family: var(--f-en);
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum";
}
.case__num span {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--c-gray);
}
.case__title {
  font-family: var(--f-ja);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;
}
.case__worry {
  margin-top: 24px;
  padding: 16px 18px;
  background: #eef3f7;
}
.case--2 .case__worry { background: #fcf0f1; }
.case--3 .case__worry { background: #eef5f1; }
.case__worry-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-ja);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--c-black);
}
/* 電球アイコン */
.case__worry-label::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: url("../img/icon-bulb.svg") no-repeat center / contain;
}
.case__worry-text {
  margin-top: 6px;
  font-family: var(--f-ja);
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.7;
}
.case__text {
  margin-top: 24px;
  font-family: var(--f-ja);
  font-size: var(--fs-body);
  line-height: 1.9;
  letter-spacing: .04em;
}
.cases__note {
  margin-top: 40px;
  font-family: var(--f-ja);
  font-size: 13px;
  line-height: 1.8;
  color: var(--c-text);
}

/* ------------------------------------------------------------
   Flow（縦軸タイムライン）
   ------------------------------------------------------------ */
.flow {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* 縦線：スクロールに合わせて上から下へ伸びる（位置と長さはJSで設定） */
.flow::before {
  content: "";
  position: absolute;
  left: 5px;
  top: var(--line-top, 0);
  height: var(--line-h, 0);
  border-left: 1px solid var(--c-graphic);
  transform: scaleY(var(--line-p, 1));
  transform-origin: top center;
}
.flow__step::after { z-index: 1; }
.flow__step {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 20px;
  align-items: baseline;
  padding: 0 0 52px 44px;
}
.flow__step:last-child { padding-bottom: 0; }
/* 点 */
.flow__step::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--c-pink);
}
/* 各ステップ：縦線が点に届いたタイミングで表示（JSで .is-on を付与） */
.flow__step > * {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity .7s ease, transform .7s ease;
}
.flow__step::after {
  transform: scale(0);
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.flow__step.is-on > * { opacity: 1; transform: none; }
.flow__step.is-on::after { transform: scale(1); }
.flow__step.is-on .flow__title { transition-delay: .08s; }
.flow__step.is-on .flow__text  { transition-delay: .16s; }

/* 点の色：01→04 にかけて少しずつ濃く */
.flow__step:nth-child(1)::after { background: #f6cdd1; }
.flow__step:nth-child(2)::after { background: #eeb2b9; }
.flow__step:nth-child(3)::after { background: #e3979f; }
.flow__step:nth-child(4)::after { background: var(--c-pink-d); }
.flow__num {
  grid-row: span 2;
  font-family: var(--f-en);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum";
  color: var(--c-text);
}
.flow__title {
  font-family: var(--f-ja);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.7;
}
.flow__title-en { display: inline-block; margin-left: 4px; font-size: 14px; color: var(--c-gray); font-weight: 400; }
.flow__title br.pc { display: none; }
.flow__text {
  grid-column: 2;
  margin-top: 12px;
  font-family: var(--f-ja);
  font-size: var(--fs-body);
  line-height: 1.9;
  letter-spacing: .04em;
}

/* 線ボタン（More / Send） */
.line-btn {
  display: block;
  width: 300px;
  margin-top: 110px;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--c-graphic);
  background: none;
  font-family: var(--f-en);
  font-size: 18px;
  line-height: 1;
  color: var(--c-text);
  text-align: left;
  cursor: pointer;
  transition: opacity .3s;
}
.line-btn:hover { opacity: .5; }

/* ------------------------------------------------------------
   Contact
   ------------------------------------------------------------ */
.contact__lead {
  font-family: var(--f-ja);
  font-size: var(--fs-body);
  line-height: 2;
  letter-spacing: .04em;
}
.form { margin-top: 80px; }
.form__row {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: center;
  margin-bottom: 50px;
}
.form__label {
  font-family: var(--f-ja);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.req {
  margin-left: 5px;
  font-family: var(--f-en);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-req);
}
.form__input,
.form__textarea {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: #fff;
  font-family: var(--f-en);
  font-size: 14px;
  line-height: 1.4;
  color: var(--c-text);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form__input {
  height: 50px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--c-line);
}
/* ご相談内容（チェックボックス） */
.form__row--check {
  align-items: start;
  margin: 0 0 50px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.form__row--check legend {
  float: left;
  padding: 0;
  padding-top: 2px;
}
.form__row--check .form__checks { grid-column: 2; }
.form__any {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 400;
  color: var(--c-gray);
}
.form__checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--f-ja);
  font-size: 14px;
  line-height: 1.6;
  cursor: pointer;
}
.check input {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  border: 1px solid #ccc;
  border-radius: 0;
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.check input:checked { border-color: var(--c-pink-d); }
.check input:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid var(--c-pink-d);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.check input:focus-visible { outline: 1px solid var(--c-text); outline-offset: 2px; }

.form__row--textarea { grid-template-columns: 1fr; gap: 11px; margin-bottom: 20px; }
.form__textarea {
  height: 200px;
  padding: 20px;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  resize: vertical;
}
.form__input:focus,
.form__textarea:focus { border-color: #ccc; }
::placeholder { color: #ccc; }

.form__agree {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 6px 0;
  font-family: var(--f-ja);
  font-size: 16px;
  line-height: 1.4;
  cursor: pointer;
}
.form__agree input {
  width: 30px;
  height: 30px;
  margin: 0;
  border: 1px solid #ccc;
  border-radius: 0;
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.form__agree input:checked { border-color: var(--c-pink-d); }
.form__agree input:checked::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 10px;
  width: 7px;
  height: 13px;
  border: solid var(--c-pink-d);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.form__agree a { color: var(--c-pink-d); text-decoration: underline; text-underline-offset: 3px; transition: opacity .3s; }
.form__agree a:hover { opacity: .6; }
.line-btn--send {
  position: relative;
  z-index: 0;
  margin-top: 80px;
  padding: 15px 0;
  font-weight: 300;
  color: var(--c-black);
  border-bottom-color: #ddd;
}

/* ------------------------------------------------------------
   Privacy Policy（下層ページ）
   ------------------------------------------------------------ */
.main.main--page { padding-top: 150px; }
.privacy__body p {
  font-family: var(--f-ja);
  font-size: var(--fs-body);
  line-height: 2;
  letter-spacing: .04em;
}
.privacy__body p + p { margin-top: 1.2em; }
.privacy__body .privacy__sign { margin-top: 4em; text-align: right; }
.privacy__h {
  margin: 2.6em 0 .8em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-line);
  font-family: var(--f-ja);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
}
.privacy__list {
  margin-top: .6em;
  font-family: var(--f-ja);
  font-size: var(--fs-body);
  line-height: 2;
  letter-spacing: .04em;
}
.privacy__list li { padding-left: 1.2em; text-indent: -1.2em; }
.privacy__list li::before { content: "・"; }
.privacy__body a { color: var(--c-black); text-decoration: underline; text-underline-offset: 3px; }
.privacy .line-btn { margin-top: 100px; }

/* Thanks（送信完了） */
.thanks { min-height: calc(100vh - 350px); }
.thanks__body p {
  font-family: var(--f-ja);
  font-size: var(--fs-body);
  line-height: 2;
  letter-spacing: .04em;
  word-break: auto-phrase;
}
.thanks__body p + p { margin-top: 1.6em; }
.thanks .line-btn { margin-top: 80px; }

/* Send：マウスオンでピンクの帯が左から伸びる */
.line-btn--send::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to right, rgba(242, 183, 189, 0), var(--c-pink));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .6s cubic-bezier(.65, 0, .35, 1);
}
.line-btn--send { transition: padding-left .6s cubic-bezier(.65, 0, .35, 1), border-color .6s, color .4s; }
@media (hover: hover) {
  .line-btn--send:hover { opacity: 1; padding-left: 18px; border-bottom-color: transparent; }
  .line-btn--send:hover::before { transform: scaleX(1); }
}
.line-btn--send:focus-visible { outline: none; padding-left: 18px; border-bottom-color: transparent; }
.line-btn--send:focus-visible::before { transform: scaleX(1); }

/* フォーム：スパム対策の欄（非表示） */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 送信エラー画面 */
.form-errors {
  font-family: var(--f-ja);
  font-size: var(--fs-body);
  line-height: 2;
  color: var(--c-req);
}
.form-errors li { padding-left: 1.2em; text-indent: -1.2em; }
.form-errors li::before { content: "・"; }
.thanks .form-errors + .line-btn { margin-top: 80px; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.footer {
  margin-left: var(--nav-w);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-en);
  font-size: 14px;
}

/* ------------------------------------------------------------
   スクロールで表示
   ------------------------------------------------------------ */
.js-fade {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 1s ease, transform 1s ease;
}
.js-fade.is-in { opacity: 1; transform: none; }

/* 中間幅のPC：リード文を縮めすぎず、自然に折り返す */
@media (min-width: 1024px) and (max-width: 1359px) {
  .service__lead { font-size: 14px; }
  .service__lead span { white-space: normal; }
  .service__lead br { display: none; }
}

/* 中間幅のPC：Support Casesは1列にして、カード内を左右2段で読みやすく */
@media (min-width: 1024px) and (max-width: 1279px) {
  .cases { grid-template-columns: 1fr; grid-template-rows: none; gap: 24px; }
  .case {
    grid-row: auto;
    grid-template-rows: none;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    column-gap: 36px;
    align-items: start;
    padding: 32px 32px 34px;
  }
  .case__head { grid-column: 1 / -1; }
  .case__worry { grid-column: 1; }
  .case__text { grid-column: 2; margin-top: 24px; }
}

/* ============================================================
   Tablet / SP
   ============================================================ */
@media (max-width: 1023px) {
  :root { --fs-body: 14px; }
  .site-nav {
    inset: 0 0 auto 0;
    width: auto;
    height: 80px;
    background: rgba(255, 255, 255, .9);
  }
  .site-nav__logo { top: 16px; left: 36px; width: 160px; z-index: 2; } /* メニューを開いてもロゴを前面に */
  .site-nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    position: absolute;
    top: 20px;
    right: 22px;
    width: 40px;
    height: 40px;
    padding: 0 7px;
    border: 0;
    background: none;
    cursor: pointer;
    z-index: 2;
  }
  .site-nav__toggle span {
    display: block;
    height: 2px;
    background: #000;
    transition: transform .3s, opacity .3s;
  }
  .site-nav.is-open .site-nav__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .site-nav.is-open .site-nav__toggle span:nth-child(2) { opacity: 0; }
  .site-nav.is-open .site-nav__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .site-nav__menu {
    position: fixed;
    inset: 0;
    justify-content: center;
    align-items: center;
    gap: 36px;
    background: rgba(255, 255, 255, .97);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s, visibility .4s;
  }
  .site-nav.is-open .site-nav__menu { opacity: 1; visibility: visible; }
  .site-nav__menu a { font-size: 28px; }
  .site-nav__menu .site-nav__privacy {
    display: block;
    margin-top: 20px;
    font-size: 15px;
    letter-spacing: .04em;
    color: var(--c-gray);
  }

  .main { margin-left: 0; padding: 0 30px; }
  .footer { margin-left: 0; }
  .main.main--page { padding-top: 130px; }
  .section { margin-bottom: 140px; scroll-margin-top: 100px; }
  .section__title { font-size: 42px; line-height: 1.15; margin-bottom: 40px; }
  .section__sub { margin-top: 2px; font-size: 11px; }

  .hero { height: 100svh; min-height: 640px; --word: clamp(64px, 20vw, 140px); }
  .hero__word { right: -10px; }
  /* 3行（行間＝文字サイズの1.3倍）のかたまりを、イラストの縦の中央にそろえる
     イラストの高さ＝幅×1.38（582:803）→ 中心はイラスト上端＋幅×0.69
     3行の高さ＝文字サイズ×3.6 → 1行目の上端＝中心−文字サイズ×1.8 */
  .hero { --ill-top: 12%; --ill-w: min(75vw, 430px); }
  .hero__word--1 { top: calc(var(--ill-top) + var(--ill-w) * .69 - var(--word) * 1.8); }
  .hero__word--2 { top: calc(var(--ill-top) + var(--ill-w) * .69 - var(--word) * .5); }
  .hero__word--3 { top: calc(var(--ill-top) + var(--ill-w) * .69 + var(--word) * .8); }
  .hero__illust { top: var(--ill-top); left: -40px; width: var(--ill-w); transform: none; }
  .hero__sub { top: auto; bottom: 10%; left: 0; right: auto; font-size: 18px; color: #999; white-space: normal; }

  .profile__text p { line-height: 1.8; letter-spacing: .1em; word-break: normal; }
  .profile__text p + p { margin-top: 1.4em; }

  .service { grid-template-columns: 1fr; grid-template-rows: none; gap: 50px; padding-top: 0; }
  .service__card { display: flex; flex-direction: column; align-items: center; grid-row: auto; min-height: 0; }
  .service__list { align-self: stretch; }
  .service__lead { font-size: min(16px, calc((100cqi - 16px) / 19.5)); }
  .service__list { margin-top: 30px; min-height: 0; }

  .works { grid-template-columns: repeat(2, 1fr); }
  .section__lead { margin-top: -6px; margin-bottom: 40px; line-height: 1.9; }
  .cases { grid-template-columns: 1fr; grid-template-rows: none; gap: 24px; }
  .case { display: block; grid-row: auto; padding: 30px 24px 32px; }
  .flow__step { grid-template-columns: 38px 1fr; column-gap: 12px; padding: 0 0 40px 32px; }
  .flow__step::after { top: 11px; }
  .flow__num { font-size: 24px; }
  .flow__title { font-size: 18px; }
  .flow__title-en { margin-left: 0; }
  .flow__text { margin-top: 10px; }
  .form__row { grid-template-columns: 1fr; gap: 6px; margin-bottom: 30px; }
  .form__row--check legend { float: none; margin-bottom: 12px; }
  .form__row--check .form__checks { grid-column: 1; }
  .form__checks { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 599px) {
  .site-nav__logo { left: 20px; }
  .main { padding: 0 20px; }
  .works { grid-template-columns: 1fr; gap: 40px; }
  .line-btn { width: 100%; margin-top: 70px; }
  .form__agree { font-size: 14px; }
}
