/* Lifinity. 会社HP（2026-10 リニューアル）
   色と書体は :root の変数で管理する。試作版の配色（ネイビー・白・ベージュ）を基準にしている。 */

:root {
  --navy: #153e58;
  --navy-deep: #0f2f44;
  --ink: #26313a;
  --muted: #56666f;
  --mist: #6b8fa3;
  --line: #d9d2c5;
  --beige: #f3eee6;
  --paper: #faf8f4;
  --white: #ffffff;
  --line-green: #00873c;      /* LINE公式の #06C755 は白文字が読みにくいため、読みやすさ基準4.5以上の濃さにしている */
  --line-green-deep: #006f31;
  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "YuGothic", "Meiryo", sans-serif;
  --latin: Georgia, "Times New Roman", serif;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: .03em;
  font-feature-settings: "palt" 0;
  word-break: auto-phrase;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--mist); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; font-size: 13px;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.sp { display: none; }

/* ---------- 文字の型 ---------- */
.eyebrow {
  font-family: var(--latin);
  font-style: italic;
  font-size: 15px;
  letter-spacing: .06em;
  color: var(--mist);
  line-height: 1.4;
}
.h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3.1vw, 38px);
  line-height: 1.6;
  letter-spacing: .06em;
  color: var(--navy-deep);
  margin-top: 10px;
}
.h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(23px, 2.3vw, 28px);
  line-height: 1.5;
  letter-spacing: .06em;
  color: var(--navy-deep);
}
.h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.6;
  letter-spacing: .05em;
  color: var(--navy-deep);
}
.sub { color: var(--muted); font-size: 14px; margin-top: 12px; }
.head { margin-bottom: clamp(36px, 5vw, 56px); }

/* ---------- ボタンとリンク ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 12px 30px;
  border: 1px solid var(--navy); border-radius: 999px;
  background: var(--navy); color: var(--white);
  font-size: 14px; font-weight: 600; letter-spacing: .08em;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-sm { min-height: 42px; padding: 8px 22px; font-size: 13px; }
.btn-line { background: var(--line-green); border-color: var(--line-green); color: var(--white); }
.btn-line:hover { background: var(--line-green-deep); border-color: var(--line-green-deep); color: var(--white); }

.link {
  display: inline-block;
  color: var(--navy);
  font-size: 14px; font-weight: 600; letter-spacing: .05em;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .3s ease, color .2s ease;
}
.link::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 10px; border-top: 1.5px solid; border-right: 1.5px solid; transform: translateY(-2px) rotate(45deg); }
.link:hover { background-size: 30% 1px; }
.link-light { color: var(--white); }
.text-link { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--mist); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  height: var(--header-h);
  max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { font-family: var(--latin); font-size: 28px; letter-spacing: .01em; color: var(--navy); line-height: 1; }
/* ヘッダーの社名の左に、会社の無限大マーク */
/* マークの下の端を「Lifinity.」の文字の下の線（ベースライン）に、上の端を「f」の上の端にそろえる（実測で高さを決めた） */
.logo:has(.logo-mark) { display: inline-flex; align-items: baseline; gap: .29em; }
/* 大きさは文字に合わせて伸び縮みさせる（28px の文字で 37×23px、1px 下げ。社長が決めた大きさ）。ヘッダーとフッターで共通 */
.logo-mark { width: 1.32em; height: .82em; position: relative; top: 1px; flex: none; }
.gnav { display: flex; align-items: center; gap: 34px; }
.gnav ul { display: flex; gap: 28px; }
.gnav ul a { font-size: 13px; letter-spacing: .08em; color: var(--ink); padding: 6px 0; position: relative; }
.gnav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.gnav ul a:hover::after { transform: scaleX(1); }
.menu-btn { display: none; }

/* ---------- ファーストビュー ---------- */
.hero {
  position: relative;
  display: flex; align-items: center;
  min-height: min(680px, calc(100svh - var(--header-h)));
  background: var(--paper);
  overflow: hidden;
}
.hero-text {
  position: relative; z-index: 1;
  width: min(780px, 60%);
  padding: 72px clamp(28px, 4vw, 64px) 80px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}
.script {
  font-family: var(--latin); font-style: italic;
  font-size: clamp(22px, 2vw, 28px); line-height: 1.35;
  color: var(--mist);
  transform: rotate(-5deg); transform-origin: left center;
  margin-bottom: 36px;
}
.hero-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(34px, 3.5vw, 50px);
  line-height: 1.6; letter-spacing: .06em;
  color: var(--navy-deep);
}
.hero-title span { display: block; white-space: nowrap; }
.hero-lead {
  margin-top: 28px;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(16px, 1.5vw, 19px); line-height: 1.95; letter-spacing: .08em;
  color: var(--navy);
}
.hero-sub { margin-top: 10px; font-size: 14px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-img { position: absolute; top: 0; bottom: 0; right: 0; left: 28%; overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% center; }
.hero-img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--paper) 0%, rgba(250, 248, 244, .88) 16%, rgba(250, 248, 244, .35) 34%, rgba(250, 248, 244, 0) 48%);
}

/* 読み込み時に一度だけ */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { opacity: 0; transform: translateY(14px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
  .hero-text > .script { animation-name: rise-script; }
  .hero-text > :nth-child(2) { animation-delay: .15s; }
  .hero-text > :nth-child(3) { animation-delay: .35s; }
  .hero-text > :nth-child(4) { animation-delay: .45s; }
  .hero-text > :nth-child(5) { animation-delay: .55s; }
  .hero-img img { animation: settle 1.6s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes rise-script { from { opacity: 0; transform: rotate(-5deg) translateY(14px); } to { opacity: 1; transform: rotate(-5deg); } }
@keyframes settle { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

/* ---------- セクション共通 ---------- */
.section { padding: clamp(72px, 9vw, 112px) 0; }
.pale { background: var(--beige); }

/* ---------- 2つの事業 ---------- */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.5vw, 32px); }
.service { background: var(--paper); display: flex; flex-direction: column; }
.service-img { overflow: hidden; aspect-ratio: 16 / 9; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.service-img.img-right img { object-position: 78% center; }
.service:hover .service-img img { transform: scale(1.03); }
.service-body { padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; flex: 1; }
.service-body .h3 { margin-top: 6px; }
.service-lead { margin-top: 12px; color: var(--ink); }
.service-meta { margin-top: 24px; border-top: 1px solid var(--line); }
.service-meta dt { margin-top: 18px; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--mist); }
.service-meta dd { margin-top: 4px; font-size: 14px; color: var(--muted); }
.ticks li { position: relative; padding-left: 18px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .95em; width: 7px; height: 1px; background: var(--navy); }
.service-note { margin-top: 20px; padding: 14px 18px; background: var(--white); font-size: 13px; color: var(--navy); }
/* ボタンは本文のすぐ下に置く（下に押し下げると、文の短いカードに空白ができる） */
.service-actions { padding-top: 24px; display: grid; gap: 12px; }
.service-actions .btn { width: 100%; }
/* 2枚並ぶときは、見出し・説明・ボタンの高さを左右でそろえる。
   文の長さの差は白い枠の高さで吸収し、段と段の間に空白を作らない */
.service-detail { display: flex; flex-direction: column; }
@media (min-width: 761px) {
  @supports (grid-template-rows: subgrid) {
    .service { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; }
    .service-body { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
    .service-note { flex: 1; display: flex; align-items: center; }
  }
}
/* カードの幅が狭いとき（タブレット・スマホ）も、ボタンの文字を1行に収める */
@media (max-width: 960px) {
  .service-actions .btn { padding: 12px 16px; letter-spacing: .02em; white-space: nowrap; }
}
@media (max-width: 420px) {
  .service-actions .btn { font-size: 13px; }
}

/* ---------- 課題 ---------- */
/* 見出しの下のイラスト。2つの課題の箱の上に置く */
.problems-img { display: block; width: min(480px, 78%); margin: calc(clamp(36px, 5vw, 56px) * -0.4) auto clamp(32px, 4vw, 48px); }
.problems-img img { width: 100%; height: auto; }
.problems { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.problem-group { background: var(--white); padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; }
/* 箱の題名。下の課題（16px）と同化しないよう、箱の上端に紺の帯を敷き、白抜きの大きな文字で見せる */
.problem-group { --gp: clamp(22px, 3vw, 40px); padding: var(--gp); }
.group-label { margin: calc(var(--gp) * -1) calc(var(--gp) * -1) 6px; padding: 18px var(--gp); background: var(--navy); color: var(--white); font-family: var(--serif); font-weight: 600; font-size: clamp(19px, 2.3vw, 26px); line-height: 1.45; letter-spacing: .05em; }
@media (max-width: 420px) { .group-label { font-size: 18px; letter-spacing: .02em; } }
.problem-list li { padding: 18px 0 18px 26px; border-bottom: 1px solid var(--line); position: relative; }
/* 課題は三角、めざす未来は花丸。社長 2026-10-09「課題は三角、未来は花丸、目立つ色」 */
:root { --warn: #8a9aa3; } /* 課題の三角は落ち着いた灰青、未来の花丸は赤（assets/img/hanamaru.svg）。赤を未来だけに使い、良い状態を目立たせる */
.problem-list li::before { content: ""; position: absolute; left: 0; top: 27px; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 12px solid var(--warn); }
.problem-list strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.7; color: var(--ink); }
.problem-list span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
/* めざす未来: 課題と同じベージュ地で続け、矢印でつなぐ。印は丸ではなくチェック */
#problems { padding-bottom: clamp(40px, 5vw, 56px); }
.future { padding-top: 0; }
.result-arrow.future-arrow { margin-bottom: clamp(24px, 3vw, 32px); }
.future-list li::before { top: 22px; left: -4px; width: 22px; height: 22px; border: 0; border-radius: 0; background: url("img/hanamaru.svg?v=b") center / contain no-repeat; } /* 花丸（社長 2026-10-09）*/
.group-answer {
  margin-top: 22px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--navy); letter-spacing: .05em;
}
.group-answer::before { content: ""; width: 26px; height: 1px; background: var(--navy); transition: width .3s ease; }
.group-answer:hover::before { width: 40px; }

/* ---------- 選ばれる理由 ---------- */
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-text p:not(.eyebrow) { margin-top: 18px; color: var(--muted); }
.split-text .h2 + p { margin-top: 26px; }
/* 「想いを理解することから、／始めます。」を読点の2行で収める。文字の大きさを列の幅に合わせる */
.split-text { container-type: inline-size; }
#reasons-title { font-size: min(38px, 100cqi / 13); }
.split-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 62% center; }

.diagram { margin-top: clamp(56px, 8vw, 96px); }
.diagram-cap { text-align: center; font-family: var(--serif); font-weight: 600; font-size: 18px; letter-spacing: .1em; color: var(--navy); margin-bottom: 28px; }
.diagram-row { display: grid; grid-template-columns: 1fr 48px 1fr 48px 1fr; align-items: stretch; }
.d-col { padding: 28px 26px; }
.d-label { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--mist); margin-bottom: 14px; }
.d-in { background: var(--paper); }
.d-in li { font-family: var(--serif); font-weight: 500; font-size: 16px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.d-in li:last-child { border-bottom: 0; }
.d-core { background: var(--navy); color: var(--white); display: flex; flex-direction: column; justify-content: center; text-align: center; }
.d-core .d-label { color: #bcd0da; font-family: var(--latin); font-size: 22px; font-style: normal; letter-spacing: .02em; margin-bottom: 10px; }
.d-core-text { font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.8; letter-spacing: .08em; }
.d-out { background: var(--beige); }
.d-out li { padding: 8px 0; font-size: 13px; color: var(--muted); border-bottom: 1px dashed var(--line); }
.d-out li:last-child { border-bottom: 0; }
.d-out strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--navy-deep); }
.d-arrow { position: relative; }
.d-arrow::before { content: ""; position: absolute; left: 10px; right: 14px; top: 50%; height: 1px; background: var(--navy); }
.d-arrow::after { content: ""; position: absolute; right: 12px; top: calc(50% - 5px); width: 10px; height: 10px; border-top: 1px solid var(--navy); border-right: 1px solid var(--navy); transform: rotate(45deg); }

.reasons { margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.reasons li { border-top: 2px solid var(--navy); padding-top: 22px; }
.reasons p { margin-top: 10px; font-size: 14px; color: var(--muted); }
/* 3つの理由の下に、矢印と結果の一文 */
.result { margin-top: clamp(36px, 5vw, 56px); text-align: center; }
.result-arrow { display: block; width: 1px; height: 48px; margin: 0 auto; background: var(--navy); position: relative; }
.result-arrow::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 12px; height: 12px; border-right: 1px solid var(--navy); border-bottom: 1px solid var(--navy); transform: translateX(-50%) rotate(45deg); }
.result-text { margin-top: 24px; padding: clamp(24px, 3vw, 32px) 20px; background: var(--beige); font-family: var(--serif); font-weight: 600; font-size: clamp(18px, 2vw, 24px); line-height: 1.8; letter-spacing: .06em; color: var(--navy-deep); }

/* ---------- ご支援の流れ ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); counter-reset: step; }
.steps li { background: var(--white); padding: 30px 30px 34px; position: relative; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: calc(clamp(20px, 3vw, 36px) / -2 - 5px); width: 10px; height: 10px; border-top: 1px solid var(--mist); border-right: 1px solid var(--mist); transform: translateY(-50%) rotate(45deg); }
.step-no { display: block; font-family: var(--latin); font-size: 34px; line-height: 1; color: var(--mist); margin-bottom: 18px; }
.steps p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.flow-note { margin: 36px auto 0; max-width: 640px; text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- 代表・会社 ---------- */
.statement { max-width: 760px; margin: 0 auto; text-align: center; }
.statement-title { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.65; }
.statement > p:not(.eyebrow) { margin-top: 24px; color: var(--muted); text-align: left; }
.mv { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; }
.mv div { background: var(--paper); padding: 20px 24px; }
.mv dt { font-family: var(--latin); font-style: italic; color: var(--mist); font-size: 15px; }
.mv dd { margin-top: 4px; font-family: var(--serif); font-weight: 600; font-size: 16px; line-height: 1.8; color: var(--navy-deep); }

.rep {
  margin-top: clamp(64px, 8vw, 104px);
  display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 5vw, 72px);
  padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line);
}
.rep-profile { text-align: center; }
.rep-photo { width: 180px; margin: 0 auto; }
.rep-photo img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; }
.rep-role { margin-top: 18px; font-size: 13px; letter-spacing: .14em; color: var(--mist); }
.rep-name { margin: 6px auto 0; width: 104px; height: auto; } /* 社長「名前が大きすぎる」2026-10-09。170px→128px→104px */
.rep-h { font-family: var(--serif); font-weight: 600; font-size: 17px; letter-spacing: .1em; color: var(--navy); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.rep-h:not(:first-child) { margin-top: 32px; }
.career { margin-top: 14px; }
.career li { position: relative; padding-left: 18px; font-size: 14px; color: var(--ink); margin-top: 4px; }
.career li::before { content: ""; position: absolute; left: 2px; top: .95em; width: 7px; height: 1px; background: var(--mist); }
.rep-body p { margin-top: 14px; font-size: 14px; color: var(--muted); }

.company { margin-top: clamp(64px, 8vw, 104px); }
.company-title { text-align: center; margin-bottom: 28px; }
.company-table { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.company-table div { display: grid; grid-template-columns: 200px 1fr; border-bottom: 1px solid var(--line); }
.company-table dt { padding: 18px 20px; background: var(--paper); font-size: 14px; font-weight: 600; color: var(--navy); }
.company-table dd { padding: 18px 24px; font-size: 14px; }
.inline-img { display: inline-block; vertical-align: middle; }

/* ---------- お問い合わせ ---------- */
.contact { background: var(--navy); color: var(--white); padding: clamp(72px, 9vw, 112px) 0; }
.contact-inner { text-align: center; }
.eyebrow-light { color: #bcd0da; }
.contact .h2 { color: var(--white); }
.contact-lead { margin-top: 18px; color: #d6e3e8; }
.contact-ways { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255, 255, 255, .18); text-align: left; }
.way { background: var(--navy); padding: 30px 28px; display: flex; flex-direction: column; gap: 12px; }
.way-main { background: var(--navy-deep); }
.way-h { font-family: var(--serif); font-weight: 600; font-size: 18px; letter-spacing: .06em; }
.way p { font-size: 13px; color: #d6e3e8; }
.way .btn, .way .link, .way .inline-img { margin-top: auto; align-self: flex-start; }

/* ---------- フッター ---------- */
.site-footer { background: var(--paper); padding: 48px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.fnav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.fnav a { font-size: 13px; color: var(--muted); }
.fnav a:hover { color: var(--navy); }
.copy { width: 100%; font-size: 12px; color: var(--muted); }

.sp-cta { display: none; }

/* ---------- タブレット ---------- */
@media (max-width: 1080px) {
  .gnav ul { gap: 20px; }
  .gnav { gap: 22px; }
  .diagram-row { grid-template-columns: 1fr; }
  .d-arrow { height: 40px; }
  .d-arrow::before { left: 50%; right: auto; top: 6px; bottom: 10px; width: 1px; height: auto; }
  .d-arrow::after { left: calc(50% - 5px); right: auto; top: auto; bottom: 10px; transform: rotate(135deg); }
}

/* ---------- メニューを折りたたむ幅 ---------- */
@media (max-width: 960px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: none; border: 0; padding: 10px 4px; cursor: pointer;
    font: inherit; font-size: 12px; letter-spacing: .1em; color: var(--navy);
  }
  .menu-icon, .menu-icon::before { display: block; width: 22px; height: 1px; background: var(--navy); position: relative; transition: transform .3s ease; }
  .menu-icon { height: 7px; background: none; border-top: 1px solid var(--navy); border-bottom: 1px solid var(--navy); }
  .menu-icon::before { content: none; }
  .menu-btn[aria-expanded="true"] .menu-icon { border: 0; height: 1px; background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-icon::before,
  .menu-btn[aria-expanded="true"] .menu-icon::after { content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 1px; background: var(--navy); }
  .menu-btn[aria-expanded="true"] .menu-icon::before { transform: rotate(35deg); }
  .menu-btn[aria-expanded="true"] .menu-icon::after { transform: rotate(-35deg); }

  .gnav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 28px;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .gnav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s ease, transform .25s ease; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav ul a { display: block; padding: 16px 2px; font-size: 15px; border-bottom: 1px solid var(--line); }
  .gnav ul a::after { content: none; }
  .gnav .btn { margin-top: 22px; min-height: 50px; font-size: 14px; }
}

/* ---------- スマートフォン ---------- */
@media (max-width: 760px) {
  :root { --header-h: 62px; }
  body { font-size: 15px; }
  .sp { display: inline; }
  .pc { display: none; }
  .logo { font-size: 25px; }

  .hero { flex-direction: column-reverse; align-items: stretch; min-height: 0; }
  .hero-img { position: relative; left: auto; aspect-ratio: 3 / 2; }
  .hero-img::after { background: linear-gradient(180deg, rgba(250, 248, 244, 0) 72%, var(--paper) 100%); }
  .hero-text { width: auto; padding: 28px var(--gutter) 52px; }
  .script { font-size: 20px; margin-bottom: 20px; }
  .hero-title { font-size: clamp(29px, 8.4vw, 36px); letter-spacing: .05em; }
  .hero-lead { margin-top: 20px; font-size: 16px; }
  .actions { margin-top: 28px; }
  .actions .btn { flex: 1 1 100%; }

  .services, .problems, .split, .reasons, .steps, .mv, .contact-ways { grid-template-columns: 1fr; }
  .service-img { aspect-ratio: 16 / 10; }
  .split-img { order: -1; }
  .reasons { gap: 28px; }
  .steps li:not(:last-child)::after { top: auto; bottom: -15px; right: 50%; transform: translateX(50%) rotate(135deg); }
  .steps { gap: 24px; }
  .flow-note { text-align: left; }

  .rep { grid-template-columns: 1fr; }
  .company-table div { grid-template-columns: 1fr; }
  .company-table dt { padding: 12px 16px 6px; background: none; font-size: 12px; color: var(--mist); }
  .company-table dd { padding: 0 16px 14px; }
  .company-table { border-top-color: var(--navy); }

  .contact-lead { text-align: left; }
  .contact .h2 { text-align: left; }
  .contact .eyebrow { text-align: left; }
  .contact-ways { margin-top: 36px; }

  .site-footer { padding-bottom: 104px; }
  .sp-cta {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 40;
    min-height: 52px; border-radius: 999px;
    background: var(--line-green); color: var(--white);
    font-size: 15px; font-weight: 600; letter-spacing: .08em;
    box-shadow: 0 8px 24px rgba(0, 80, 36, .28);
    transition: opacity .3s ease, transform .3s ease;
  }
  .sp-cta.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Mission・Vision は読点で改行した2行を、狭いスマホでも2行のまま収める */
@media (max-width: 420px) {
  .mv div { padding: 18px 16px; }
  .mv dd { font-size: 15px; letter-spacing: 0; }
}

/* 選ばれる理由と About us はどちらも白地で続くので、間の余白を詰める */
#reasons { padding-bottom: clamp(48px, 6vw, 72px); }
#about { padding-top: clamp(40px, 5vw, 64px); }


/* お問い合わせの中の相談内容と note の最新記事（社長 2026-10-09「何を相談するか具体的に」「サムネイルが見えないとクリックしたくならない」） */
.way-sub { font-weight: 600; color: var(--white) !important; }
.way-list { display: grid; gap: 8px; }
.way-list li { position: relative; padding-left: 20px; font-size: 14px; line-height: 1.6; color: var(--white); }
.way-list li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 9px; height: 5px; border-left: 2px solid #bcd0da; border-bottom: 2px solid #bcd0da; transform: rotate(-45deg); }
#note-latest { margin-top: 0; }
.note-card { display: block; background: var(--white); color: var(--ink); max-width: 420px; transition: opacity .2s ease; }
.note-card:hover { opacity: .88; }
.note-thumb { display: block; aspect-ratio: 1280 / 670; overflow: hidden; background: var(--beige); }
.note-thumb img { width: 100%; height: 100%; object-fit: cover; }
.note-body { display: block; padding: 12px 16px 16px; }
.note-date { display: block; font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.note-title { display: block; margin-top: 4px; font-size: 14px; font-weight: 600; line-height: 1.65; }
/* LINE の箱はボタンを相談内容のすぐ下に置き、下に空白を作らない */
.way-main .btn { margin-top: 6px; }
.note-card { max-width: 380px; }
.way-main .way-sub { font-size: 16px; line-height: 1.7; }
/* めざす未来のイラスト（社長 2026-10-09 支給・透過）。横長なので課題のイラストより少し広く */
.future-img { width: min(620px, 92%); }
/* LINE と note の箱の高さをそろえる（社長 2026-10-09「バランスが悪い」）。
   note の記事カードを「左に画像・右に題名」の横長にして背を低くし、2つの箱は見出しを上でそろえる */
.contact-ways { align-items: stretch; }
.note-card { display: grid; grid-template-columns: 44% 1fr; align-items: center; max-width: none; }
.note-card .note-thumb { height: auto; aspect-ratio: 1280 / 670; } /* 画像は切らずに全体を見せる */
.note-card .note-body { padding: 12px 14px; }
.note-card .note-title { font-size: 13px; line-height: 1.6; }
@media (max-width: 420px) { .note-card { grid-template-columns: 1fr; } .note-card .note-thumb { aspect-ratio: 1280 / 670; } }
/* 左右対称（社長 2026-10-09「左右の対称」）: 2つの箱を同じ地色・同じ部品（見出し・説明1行・同じ大きさのカード）にする */
.contact-ways .way { background: var(--navy); }
.way-desc { font-size: 15px !important; font-weight: 600; line-height: 1.7; color: var(--white) !important; min-height: 3.4em; }
.line-visual { display: flex; align-items: center; justify-content: center; background: var(--line-green); }
.line-visual-label { color: var(--white); font-weight: 700; font-size: 17px; letter-spacing: .06em; }
/* 2枚のカードを箱の残りの高さいっぱいに広げ、高さを必ずそろえる */
.contact-ways .way > .line-card, #note-latest { flex: 1; }
#note-latest { display: flex; }
#note-latest .note-card { flex: 1; }
.line-card .line-visual { aspect-ratio: auto; align-self: stretch; height: auto; min-height: 90px; }

/* 「形になるもの」＝売上導線の仕組み（社長 2026-10-09「価値が届き→価値が伝わり→興味を持って個別相談に来てくれる→成約」）。
   選ばれる理由の地がベージュになったので、箱は白にして地と分ける */
.d-out { background: var(--white); }
.d-out-title { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--navy-deep); letter-spacing: .06em; margin-bottom: 12px; }
.d-flow { counter-reset: flow; display: grid; gap: 18px; }
.d-flow li { counter-increment: flow; position: relative; padding: 0 0 0 34px; border: 0; font-family: var(--serif); font-weight: 600; font-size: 15px; line-height: 1.6; color: var(--navy-deep); }
.d-flow li::before { content: counter(flow); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: var(--white); font-family: var(--latin); font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.d-flow li:not(:last-child)::after { content: ""; position: absolute; left: 10px; top: 26px; bottom: -16px; border-left: 1px solid var(--navy); } /* 2行の段でも次の番号まで線をつなぐ */
.d-result { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--serif); font-weight: 600; font-size: 15px; color: var(--warn-red, #d9483b); }
/* 「あなたの中にあるもの」「形になるもの」は中央にそろえ、枠で囲んで見出しにする（社長 2026-10-09） */
.d-in, .d-out { position: relative; border: 1px solid var(--navy); padding-top: 40px; }
.d-in .d-label, .d-out .d-label { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); margin: 0; padding: 7px 20px; white-space: nowrap; background: var(--navy); color: var(--white); font-size: 13px; letter-spacing: .1em; } /* 四角の線の上に見出しを載せる（社長 2026-10-09） */
.diagram-row { margin-top: 28px; }
/* 幅1080px以下は縦に並ぶので、線の上の見出しが矢印と重ならないよう間を空ける */
@media (max-width: 1080px) { .d-arrow + .d-out { margin-top: 20px; } }

/* 進め方の3つの枠を角丸に・真ん中にもLifinity.を線の上に（社長 2026-10-09） */
.d-in, .d-out, .d-core { border-radius: 18px; }
.d-core { position: relative; border: 1px solid var(--navy); padding-top: 40px; }
.d-in .d-label, .d-out .d-label, .d-core .d-label { border-radius: 6px; }
.d-core .d-label { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); margin: 0; padding: 7px 20px; white-space: nowrap; background: var(--white); color: var(--navy); border: 1px solid var(--navy); font-size: 15px; letter-spacing: .06em; }
/* 代表メッセージとミッション・ビジョンを中央揃えに（社長 2026-10-09） */
.statement > p:not(.eyebrow) { text-align: center; }
.mv { text-align: center; }
@media (max-width: 1080px) { .d-arrow + .d-core { margin-top: 20px; } }
/* イラストの下に一文を置く（課題・未来で同じ形。社長 2026-10-09） */
.problems-img:has(+ .img-caption) { margin-bottom: 14px; }
.img-caption { text-align: center; margin: 0 auto clamp(32px, 4vw, 48px); font-size: 15px; }
/* ファーストビューの文字が写真に重ならないよう、左側の白みを広げる（社長 2026-10-09） */
@media (min-width: 761px) {
  .hero-img { left: 34%; }
  .hero-img::after { background: linear-gradient(90deg, var(--paper) 0%, rgba(250, 248, 244, .94) 22%, rgba(250, 248, 244, .6) 40%, rgba(250, 248, 244, 0) 58%); }
}
