@charset "UTF-8";
/* =============================================================================
   ユーカリデジタル トップページ  style.css
   デザイン仕様: design_handoff_eucalyptus_digital/README.md（hifi・確定値）
   実装対象: 3a（PCトップ）/ 4a（スマホ）/ 4b（スマホメニュー）
   -----------------------------------------------------------------------------
   構成
     1. デザイントークン
     2. リセット / ベース
     3. タイポグラフィ
     4. レイアウト基盤
     5. コンポーネント（ボタン / セクションラベル / リンク / タグ）
     6. ヘッダー / グローバルナビ / ハンバーガー
     7. セクション: hero / service / flow / works / blog / about / cta
     8. フッター
     9. スマホ固定バー
    10. スマホメニュー（オーバーレイ）
    11. レスポンシブ（中間幅 / 〜767px スマホ差分）
   -----------------------------------------------------------------------------
   色使いの鉄則（README より・逸脱しないこと）
     - 背景はクリーム #FFFDF8 と濃色（#286B5E / #22302B / #1A2320）だけ
     - カード・影・角丸は使わない（角丸はボタンの 2px のみ／影はスマホ固定バー上端のみ）
     - 橙は 明るい地なら #A9631F、暗い地ならボタン背景 #E8A96A のみ
     - #6B7671 より薄いグレーを本文・プレースホルダに使わない
     - 本文・UIテキストはすべて WCAG AA（4.5:1）以上
   ========================================================================== */

/* -----------------------------------------------------------------------------
   1. デザイントークン
   -------------------------------------------------------------------------- */
:root {
  /* 色 */
  --c-bg:            #FFFDF8; /* 背景（基調）クリーム */
  --c-text:          #2C3733; /* 本文 */
  --c-heading:       #22302B; /* 見出し（最大）*/
  --c-text-weak:     #4E5A55; /* 本文（弱）*/
  --c-text-sub:      #6B7671; /* 補助文字。これより薄いグレーは使わない */
  --c-green:         #286B5E; /* ブランドグリーン */
  --c-green-dark:    #22302B; /* ダークグリーン（最終CTA）*/
  --c-footer:        #1A2320; /* フッター地 */
  --c-footer-text:   #8FA39B; /* フッター文字 */
  --c-rule:          #E6E3D8; /* 罫線 1px */
  --c-rule-form:     #D9D5C8; /* フォーム罫線 */
  --c-link-underline:#C4D5CC; /* リンク下線 */
  --c-accent:        #A9631F; /* アクセント橙（明地用）*/
  --c-accent-under:  #C07A2E; /* アクセント橙（ナビのアクティブ下線）*/
  --c-accent-dark:   #E8A96A; /* アクセント橙（暗地のボタン背景のみ）*/
  --c-arrow:         #F7DCBE; /* 緑ボタン内の矢印 */
  --c-mint:          #EDF4EF; /* ヒーローのコアラ背後の円 */
  --c-icon-border:   #A9BFB4; /* アイコンプレースホルダの枠 */
  --c-icon-label:    #7C8C84; /* アイコンプレースホルダの文字 */

  /* 濃緑バンド内 */
  --c-band-face:     #31776A; /* 画像プレースホルダ地 */
  --c-band-h:        #FFFDF8; /* 見出し */
  --c-band-body:     #D5E5DD; /* 本文 */
  --c-band-label:    #C9E0D7; /* ラベル */
  --c-band-tag:      #D8E9E2; /* タグ文字 */
  --c-band-tag-rule: #4E8375; /* タグ枠 */
  --c-band-dash:     #6C9B8E; /* 破線プレースホルダ枠 */
  --c-band-dash-txt: #A9C9BE; /* 破線プレースホルダ文字 */
  --c-band-body2:    #EAF2ED; /* 濃緑バンドの地の文 */

  /* ダークCTAバンド内 */
  --c-cta-text:      #BFCEC7;
  --c-cta-btn-text:  #2C2318;

  /* 書体 */
  --font-serif: 'Zen Old Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --font-sans:  'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  --font-mono:  ui-monospace, 'SFMono-Regular', 'Menlo', monospace;

  /* レイアウト */
  --content-max: 1000px;  /* 左右パディング込み。中身は 904px */
  --pad-x: 48px;          /* PC 左右パディング（中間幅 24px / スマホ 18px に上書き）*/

  /* モーション */
  --ease: 150ms ease-out; /* 120–180ms */
}

/* -----------------------------------------------------------------------------
   2. リセット / ベース
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14.5px;
  line-height: 2.05;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--c-green);
  outline-offset: 2px;
}
/* 暗い地の上ではフォーカスリングを明色に（キーボード操作で必ず見えること）*/
.works :focus-visible,
.cta :focus-visible,
.site-footer :focus-visible,
.mobile-bar__btn--primary:focus-visible {
  outline-color: var(--c-arrow);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* -----------------------------------------------------------------------------
   3. タイポグラフィ
   -------------------------------------------------------------------------- */
.u-serif { font-family: var(--font-serif); font-weight: 500; }

/* セクション見出し（明朝）*/
.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.4;
  color: var(--c-heading);
}

/* -----------------------------------------------------------------------------
   4. レイアウト基盤
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* セクション上端の区切り罫線（コンテンツ幅 1000px に合わせる）*/
.rule-top > .container { border-top: 1px solid var(--c-rule); }

/* -----------------------------------------------------------------------------
   5. コンポーネント
   -------------------------------------------------------------------------- */

/* --- ボタン --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 2px;               /* 角丸はボタンのみ 2px */
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  padding: 15px 26px;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease);
}
.btn__arrow { color: var(--c-arrow); }

.btn--primary { background: var(--c-green); color: var(--c-bg); }
.btn--primary:hover { background: #20574C; }

.btn--accent { background: var(--c-accent-dark); color: var(--c-cta-btn-text); font-weight: 700; padding: 16px 26px; }
.btn--accent:hover { background: #DE9A55; }
.btn--accent .btn__arrow { color: var(--c-cta-btn-text); }

.btn--light { background: var(--c-bg); color: var(--c-green); padding: 13px 22px; font-size: 13px; }
.btn--light:hover { background: #EAF2ED; }

.btn--ghost { background: transparent; color: var(--c-green); border: 1.5px solid var(--c-green); }
.btn--ghost:hover { background: var(--c-green); color: var(--c-bg); }

.btn--full { width: 100%; }

/* --- セクションラベル（SERVICE / WORKS ...）--- */
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: .18em;
  color: var(--c-accent);
}
.eyebrow--on-dark { color: var(--c-band-h); }

/* --- テキストリンク（緑＋下線）--- */
.link {
  color: var(--c-green);
  border-bottom: 1px solid var(--c-link-underline);
  padding-bottom: 2px;
  transition: border-color var(--ease);
}
.link:hover { border-color: var(--c-green); }
.link span[aria-hidden="true"] { margin-left: .35em; }
.link--on-dark { color: var(--c-band-h); border-bottom-color: rgba(255,255,255,.4); }
.link--on-dark:hover { border-color: var(--c-band-h); }

/* --- タグ（濃緑バンド内）--- */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  border: 1px solid var(--c-band-tag-rule);
  color: var(--c-band-tag);
  font-size: 11.5px;
  line-height: 1.5;
  padding: 6px 12px;
}

/* --- 画像プレースホルダ（素材待ち・破線）--- */
.placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.9;
  color: var(--c-text-sub);
  background: var(--c-mint);
  border: 1px dashed var(--c-icon-border);
}
.placeholder--on-dark {
  background: var(--c-band-face);
  border-color: var(--c-band-dash);
  color: var(--c-band-dash-txt);
}

/* --- サービスアイコン（円＋線アイコン。公式ロゴ不使用・同一線幅の自作アイコン4点） --- */
.icon-ph {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--c-icon-border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--c-icon-label);
}
.icon-ph svg { width: 20px; height: 20px; display: block; }

/* -----------------------------------------------------------------------------
   6. ヘッダー / グローバルナビ / ハンバーガー
   -------------------------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--c-rule);
  background: var(--c-bg);
}
.site-header__inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* ロゴ */
.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark { width: 38px; flex: none; }
.logo__text { display: flex; flex-direction: column; gap: 2px; }
.logo__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--c-green);
}
.logo__latin {
  font-size: 7.5px;
  line-height: 1;
  letter-spacing: .22em;
  color: var(--c-text-sub);
}

/* ナビ */
.gnav { display: flex; align-items: center; gap: 18px; }
.gnav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #5A6560;
}
.gnav__en {
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: .1em;
  transition: color var(--ease);
}
.gnav__ja { font-size: 10.5px; color: var(--c-text-sub); }
.gnav__item:hover .gnav__en { color: var(--c-green); }
.gnav__item[aria-current="page"] {
  border-bottom: 2px solid var(--c-accent-under);
  padding-bottom: 4px;
}
.gnav__item[aria-current="page"] .gnav__en { color: var(--c-green); }

.site-header__cta {
  flex: none;
  background: var(--c-green);
  color: #fff;
  font-size: 12.5px;
  padding: 10px 18px;
  border-radius: 2px;
  transition: background-color var(--ease);
}
.site-header__cta:hover { background: #20574C; }

/* ハンバーガー（スマホのみ表示）*/
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
}
.hamburger__bar {
  width: 22px;
  height: 1.5px;
  background: var(--c-text);
}
.hamburger__bar:last-child { width: 14px; }

/* -----------------------------------------------------------------------------
   7. セクション
   -------------------------------------------------------------------------- */

/* --- ヒーロー --- */
.hero .container {
  display: grid;
  grid-template-columns: 1.25fr 1fr; /* 右のイラストが横長のため元より画像側を広めに、ただしh1が2行に収まる幅は確保 */
  grid-template-rows: repeat(4, auto); /* loc / title / lead / actions */
  column-gap: 40px;
  align-items: center;
  padding-block: 76px 72px;
}
.hero__loc,
.hero__title,
.hero__lead,
.hero__actions { grid-column: 1; justify-self: start; }
.hero__loc {
  margin-bottom: 22px;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--c-text-sub);
}
.hero__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 50px;
  line-height: 1.42;
  letter-spacing: .01em;
  color: var(--c-heading);
}
.hero__lead {
  margin-top: 26px;
  max-width: 30em;
  font-size: 14.5px;
  line-height: 2.05;
  color: var(--c-text-weak);
}
.hero__actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.hero__visual {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  position: relative;
}
/* イラスト自体の縁を透明にフェードしてあるので、後ろに淡いミントの
   グロー（旧デザインの円の代わり）を敷いて「貼り付けた感」を消す */
.hero__glow {
  position: absolute;
  inset: -8% -6%;
  background: radial-gradient(ellipse at center, var(--c-mint) 0%, var(--c-mint) 50%, rgba(237,244,239,0) 72%);
}
.hero__koala { position: relative; display: block; width: 100%; height: auto; }

/* --- できること（SERVICE）--- */
.service .container { padding-top: 0; }
.service__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 52px 0 8px;
}
.service__note {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--c-text-sub);
}

.service-row {
  display: grid;
  grid-template-columns: 44px 1fr 200px;
  column-gap: 24px;
  grid-template-rows: auto auto;
  padding: 30px 0;
  border-top: 1px solid var(--c-rule);
}
.service-row:last-of-type { border-bottom: 1px solid var(--c-rule); }
.service-row__head { display: contents; } /* 子（icon / name）を親グリッドに直接並べる */
.service-row .icon-ph { grid-column: 1; grid-row: 1; }
.service-row__name {
  grid-column: 2;
  grid-row: 1;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.5;
}
.service-row__desc {
  grid-column: 2;
  grid-row: 2;
  margin-top: 9px;
  max-width: 40em;
  font-size: 13.5px;
  line-height: 2;
  color: var(--c-text-weak);
}
.service-row__meta {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}
.service-row__price { font-size: 14px; font-weight: 500; }
.service-row__meta .link { font-size: 12.5px; }

/* --- 相談から着手までの流れ（段階的に見せる） --- */
.flow { margin: 48px 0 60px; }
.flow__label { display: none; } /* 見出しはスマホ（4a）のみ */
.flow__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--c-rule);
  border-bottom: 1px solid var(--c-rule);
}
.flow__step {
  position: relative;
  padding: 24px 30px 24px 0;
}
.flow__step:last-child { padding-right: 0; }
.flow__step::after {              /* ステップ間の矢印 */
  content: "→";
  position: absolute;
  top: 27px;
  right: 8px;
  font-size: 15px;
  color: #C7BFA8;
}
.flow__step:last-child::after { display: none; }
.flow__dot { display: none; }     /* 菱形ノードはスマホのみ */
.flow__num {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1;
  color: var(--c-accent);
}
.flow__bar {
  display: block;
  width: 34px;
  height: 1px;
  margin: 12px 0;
  background: var(--c-rule);
}
.flow__title { font-size: 14px; font-weight: 500; line-height: 1.6; }
.flow__note { margin-top: 5px; font-size: 12px; line-height: 1.8; color: var(--c-text-sub); }

/* --- 実績（WORKS）濃緑バンド・ページの山場 --- */
.works {
  background: var(--c-green);
  color: var(--c-band-body2);
}
.works .container { padding-block: 60px; }
.works__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 34px;
}
.works__head .section-title { color: var(--c-band-h); }
.works__grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  grid-template-areas: "body capture";
  gap: 44px;
  align-items: center;
}
.works__body { grid-area: body; }
.works__capture { grid-area: capture; height: 330px; }
.works__kicker {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--c-band-label);
}
.works__title {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 38px;
  color: var(--c-band-h);
}
.works__desc {
  margin-top: 18px;
  font-size: 13.5px;
  line-height: 2.05;
  color: var(--c-band-body);
}
.works .tag-list { margin-top: 22px; }
.works__body .btn { margin-top: 28px; }

/* ほかの制作実績（代表1件の下・実績が増えたら works__row を並べる） */
.works__more {
  margin-top: 40px;
  padding-top: 34px;
  border-top: 1px solid var(--c-band-tag-rule);
}
.works__more-label {
  margin-bottom: 4px;
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--c-band-label);
}
.works__more-note { font-size: 13px; color: var(--c-band-body); }
.works__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 24px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--c-band-tag-rule);
  transition: background-color var(--ease);
}
.works__row:hover { background: rgba(255,255,255,.04); }
.works__row-name { font-size: 15px; font-weight: 700; color: var(--c-band-h); }
.works__row-desc {
  grid-column: 1 / -1;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--c-band-body);
}
.works__row-link {
  color: var(--c-band-h);
  border-bottom: 1px solid rgba(255,255,255,.4);
  padding-bottom: 2px;
  font-size: 12.5px;
  white-space: nowrap;
  transition: border-color var(--ease);
}
.works__row-link:hover { border-color: var(--c-band-h); }
.works__more .btn { margin-top: 24px; }

/* --- ブログ（BLOG）note連携 --- */
.blog .container {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 16px;
  padding-block: 56px;
}
.blog__head {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
}
.blog__more {
  grid-column: 2;
  grid-row: 1;
  align-self: baseline;
  font-size: 12.5px;
}
.blog-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 168px 1fr;
  column-gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--c-rule);
  transition: background-color var(--ease);
}
.blog-row:last-of-type { border-bottom: 1px solid var(--c-rule); }
.blog-row:hover { background: #FBF8F0; }
.blog-row__thumb { width: 168px; height: 112px; font-size: 11px; } /* アイキャッチ 3:2。仮=破線プレースホルダ */
.blog-row__body { min-width: 0; }
.blog-row__meta { display: flex; align-items: baseline; gap: 12px; }
.blog-row__date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-text-sub);
}
.blog-row__title { margin-top: 6px; font-size: 15px; font-weight: 500; line-height: 1.6; }
.blog-row__cat {
  font-size: 11.5px;
  color: var(--c-text-sub);
}

/* --- わたしについて（ABOUT）--- */
.about .container { padding-block: 8px 60px; }
.about__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 28px;
}
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--c-rule);
}
.about__lead { font-size: 17px; font-weight: 500; line-height: 1.85; }
.about__text {
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 2.05;
  color: var(--c-text-weak);
}
.about__area { margin-top: 20px; font-size: 13px; color: var(--c-text-weak); }
.about__link { display: inline-block; margin-top: 22px; font-size: 13px; }
.quals__label {
  margin-bottom: 14px;
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--c-text-sub);
}
.quals__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  font-size: 13px;
  color: var(--c-text-weak);
}
.quals__list li:last-child { grid-column: 1 / -1; }

/* --- 最終CTA（ダークバンド）--- */
.cta {
  background: var(--c-green-dark);
  color: var(--c-band-body2);
}
.cta .container {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 32px;
  align-items: center;
  padding-block: 52px;
}
.cta__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 28px;
  color: var(--c-band-h);
}
.cta__text {
  margin-top: 12px;
  max-width: 40em;
  font-size: 13.5px;
  line-height: 2;
  color: var(--c-cta-text);
}
.cta__koala { width: 96px; flex: none; }

/* -----------------------------------------------------------------------------
   8. フッター
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--c-footer);
  color: var(--c-footer-text);
  font-size: 11.5px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 26px;
}
.site-footer__biz,
.site-footer__meta { display: flex; flex-wrap: wrap; }
.site-footer__biz { gap: 20px; }
.site-footer__meta { gap: 16px; }
.site-footer a { transition: color var(--ease); }
.site-footer a:hover { color: #C9D8D0; }

/* -----------------------------------------------------------------------------
   9. スマホ固定バー（767px 以下でのみ有効。JS で表示制御）
   -------------------------------------------------------------------------- */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--c-bg);
  border-top: 1px solid var(--c-rule);
  box-shadow: 0 -6px 16px rgba(34,48,43,.07);
  padding: 10px 14px;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  transform: translateY(100%);
  transition: transform 200ms ease-out;
}
.mobile-bar.is-visible { transform: translateY(0); }
.mobile-bar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 2px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1;
}
.mobile-bar__btn--ghost { border: 1.5px solid var(--c-green); color: var(--c-green); }
.mobile-bar__btn--primary { background: var(--c-green); color: var(--c-bg); }

/* -----------------------------------------------------------------------------
   10. スマホメニュー（上から降りるパネル＋黒40%オーバーレイ）
   -------------------------------------------------------------------------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0,0,0,.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease-out, visibility 200ms ease-out;
}
.menu-overlay.is-open { opacity: 1; visibility: visible; }

.menu-panel {
  background: var(--c-bg);
  transform: translateY(-100%);
  transition: transform 220ms ease-out;
}
.menu-overlay.is-open .menu-panel { transform: translateY(0); }

.menu-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--c-rule);
}
.menu-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  position: relative;
}
.menu-close__bar {
  position: absolute;
  width: 22px;
  height: 1.5px;
  background: var(--c-text);
}
.menu-close__bar:first-child { transform: rotate(45deg); }
.menu-close__bar:last-child { transform: rotate(-45deg); }

.menu-panel__body { padding: 8px 18px 26px; }
.menu-panel__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-rule);
  min-height: 48px;
}
.menu-panel__item:last-of-type { border-bottom: 0; }
.menu-panel__ja { font-size: 16px; font-weight: 500; }
.menu-panel__en { font-size: 12px; color: var(--c-text-sub); }
.menu-panel__cta { margin-top: 16px; }
.menu-panel__foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--c-rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.menu-panel__sns { display: flex; gap: 16px; font-size: 12.5px; color: var(--c-text-weak); }
.menu-panel__area { font-size: 11.5px; color: var(--c-text-sub); }

/* =============================================================================
   12. 下層ページ（5a サービス詳細 / 5b ポートフォリオ詳細 / 5c お問い合わせ /
       ポートフォリオ一覧）
   ========================================================================== */

/* --- パンくず --- */
.breadcrumb {
  border-bottom: 1px solid var(--c-rule);
  font-size: 11.5px;
  color: var(--c-text-sub);
}
.breadcrumb .container { padding-block: 16px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li::after { content: "／"; margin-left: 6px; color: var(--c-rule); }
.breadcrumb li:last-child::after { content: none; }
.breadcrumb li:last-child { color: var(--c-text); }
.breadcrumb a { transition: color var(--ease); }
.breadcrumb a:hover { color: var(--c-green); }

/* --- ページヘッダー --- */
.page-head .container { padding-block: 52px 44px; }
.page-head--split .container {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}
.page-title {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 40px;
  line-height: 1.45;
  color: var(--c-heading);
}
.page-lead {
  margin-top: 22px;
  max-width: 34em;
  font-size: 14.5px;
  line-height: 2.05;
  color: var(--c-text-weak);
}
.page-head__oneline { margin-top: 12px; font-size: 15px; color: var(--c-text-weak); }

/* --- 情報ボックス（5a 右 / 5c サイド。1px枠のみ・影なし・角丸なし）--- */
.info-box { border: 1px solid var(--c-rule); padding: 26px; }
.info-box__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-rule);
  font-size: 14px;
}
.info-box__row:first-child { padding-top: 0; }
.info-box__row:last-of-type { border-bottom: 0; padding-bottom: 20px; }
.info-box__row > span:first-child { flex: none; white-space: nowrap; color: var(--c-text-sub); font-size: 12.5px; }
.info-box__row > span:last-child { font-weight: 500; text-align: right; }
.info-box__row--lead > span:last-child { font-size: 15px; font-weight: 700; }
.info-box .btn { width: 100%; }

/* --- 下層セクションの共通枠 --- */
.subsec { border-top: 1px solid var(--c-rule); padding: 38px 0; }
.subsec__title {
  margin: 0 0 20px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 26px;
  color: var(--c-heading);
}
.subsec--tight .subsec__title { margin-bottom: 8px; }
.subsec .flow { margin: 0; }         /* 進め方を subsec 内に入れる時の二重マージン回避 */

/* 5a こんな方に（3列） */
.target-cols { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--c-rule); }
.target-cols__col { padding: 24px; border-right: 1px solid var(--c-rule); }
.target-cols__col:first-child { padding-left: 0; }
.target-cols__col:last-child { padding-right: 0; border-right: 0; }
.target-cols__t { font-size: 15px; font-weight: 500; line-height: 1.7; }
.target-cols__d { margin-top: 10px; font-size: 13px; line-height: 1.95; color: var(--c-text-weak); }

/* 5a 含まれるもの（2列リスト） */
.inc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.inc-list__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--c-rule);
  font-size: 14px;
}
.inc-list__tag { flex: none; font-size: 12px; color: var(--c-text-sub); }

/* 5a よくある質問 */
.faq__item { border-top: 1px solid var(--c-rule); padding: 20px 0; }
.faq__item:last-child { border-bottom: 1px solid var(--c-rule); }
.faq__q { font-size: 15px; font-weight: 500; }
.faq__a { margin-top: 10px; max-width: 60em; font-size: 13.5px; line-height: 2; color: var(--c-text-weak); }

/* 5a ほかのサービス（1px枠の小箱） */
.mini-services__label {
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--c-text-sub);
}
.mini-services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mini-card {
  border: 1px solid var(--c-rule);
  padding: 20px;
  transition: border-color var(--ease);
}
.mini-card:hover { border-color: var(--c-text-sub); }
.mini-card__t { font-size: 15px; font-weight: 700; }
.mini-card__d { margin-top: 8px; font-size: 12.5px; line-height: 1.9; color: var(--c-text-weak); }

/* --- 5b ポートフォリオ詳細 --- */
.work-main {
  height: 400px;
  margin-bottom: 32px;
}
.work-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--c-rule);
  border-bottom: 1px solid var(--c-rule);
}
.work-meta__cell { padding: 20px; border-right: 1px solid var(--c-rule); }
.work-meta__cell:first-child { padding-left: 0; }
.work-meta__cell:last-child { padding-right: 0; border-right: 0; }
.work-meta__label { font-size: 11.5px; color: var(--c-text-sub); }
.work-meta__value { margin-top: 8px; font-size: 14px; }

.work-block {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  border-top: 1px solid var(--c-rule);
  padding: 34px 0;
}
.work-block:last-of-type { border-bottom: 1px solid var(--c-rule); }
.work-block__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--c-heading);
}
.work-block__body { font-size: 14px; line-height: 2.05; color: var(--c-text-weak); max-width: 52em; }
.work-block__body .link { display: inline-block; margin-top: 18px; font-size: 13px; }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.feature-grid__item { padding: 14px 0; border-bottom: 1px solid var(--c-rule); }
.feature-grid__t { font-size: 14px; font-weight: 500; }
.feature-grid__d { margin-top: 6px; font-size: 12.5px; line-height: 1.85; color: var(--c-text-weak); }

.page-head__live { margin-top: 18px; font-size: 13.5px; }

/* 実画像のメイン(全幅・上を基準に切り抜き) */
img.work-main { display: block; width: 100%; object-fit: cover; object-position: top center; border: 1px solid var(--c-rule); }

/* PC画面: 2列。画像は16:10で揃え、見出しを下に添える */
.screen-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
.screen-grid .placeholder { height: 200px; }
.screen-grid__item { margin: 0; }
.screen-grid__item img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; border: 1px solid var(--c-rule); }
.screen-grid__item figcaption,
.phone figcaption { margin-top: 10px; font-size: 12px; line-height: 1.7; color: var(--c-text-sub); }

/* スマホ画面: 縦長の画像を4枚並べる(1px枠・角丸のみ。影は付けない) */
.phone-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; max-width: 780px; margin-top: 22px; }
.phone { margin: 0; }
.phone img { display: block; width: 100%; aspect-ratio: 390 / 664; object-fit: cover; object-position: top center; border: 1px solid var(--c-rule); border-radius: 18px; background: #fff; }

.prevnext {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 30px 0 40px;
}
.prevnext__next { font-size: 12.5px; color: var(--c-text-sub); }

/* --- CTA バリエーション（5b は緑地・2カラム）--- */
.cta--green { background: var(--c-green); }
.cta--green .cta__text { color: var(--c-band-body); }
.cta--split .container { grid-template-columns: 1fr auto; }

/* --- 5c お問い合わせフォーム --- */
.contact-body .container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
  padding-block: 24px 48px;
}
.form__field { padding: 20px 0; border-top: 1px solid var(--c-rule); }
.form__field:first-child { padding-top: 0; border-top: 0; }
.form__labelrow { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.form__label { font-size: 13.5px; font-weight: 500; }
.form__hint { font-size: 11px; font-weight: 400; color: var(--c-text-sub); }
.req { font-size: 11px; font-weight: 700; color: var(--c-accent); }
.opt { font-size: 11px; color: var(--c-text-sub); }
.form__control {
  width: 100%;
  border: 1px solid var(--c-rule-form);
  background: #FFFEFC;
  font: inherit;
  font-size: 14px;
  color: var(--c-text);
  padding: 0 14px;
  height: 48px;
  border-radius: 0;
  transition: border-color var(--ease);
}
textarea.form__control { height: 150px; padding: 14px; line-height: 1.9; resize: vertical; }
select.form__control { -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--c-text-sub) 50%), linear-gradient(135deg, var(--c-text-sub) 50%, transparent 50%);
  background-position: right 16px center, right 11px center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.form__control:focus { outline: 2px solid var(--c-green); outline-offset: 1px; border-color: var(--c-green); }
.form__control::placeholder { color: var(--c-text-sub); }
.form__row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--c-rule-form);
  color: var(--c-text-weak);
  background: transparent;
  font-size: 13px;
  line-height: 1;
  padding: 11px 16px;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease);
}
.chip[aria-pressed="true"] { background: var(--c-green); border-color: var(--c-green); color: var(--c-bg); }
.form__submit-row { display: flex; align-items: center; gap: 16px; padding-top: 24px; }
.form__note { font-size: 12px; line-height: 1.8; color: var(--c-text-sub); }
.form__error { margin-top: 8px; font-size: 12.5px; color: var(--c-accent); }
.form__field[data-invalid="true"] .form__control { border-color: var(--c-accent); }

/* 5c 右サイド（連結した箱） */
.side__box { border: 1px solid var(--c-rule); padding: 24px; }
.side__box + .side__box { border-top: 0; }
.side__t { font-size: 13.5px; font-weight: 700; }
.side__p { margin-top: 10px; font-size: 13px; line-height: 1.95; color: var(--c-text-weak); }
.side__steps { margin-top: 14px; }
.side__step { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--c-rule); }
.side__step:first-child { padding-top: 0; }
.side__step:last-child { padding-bottom: 0; border-bottom: 0; }
.side__step-num { font: 500 10.5px/1.6 var(--font-mono); color: var(--c-accent); }
.side__step-t { font-size: 13px; font-weight: 500; }
.side__step-d { margin-top: 4px; font-size: 12px; color: var(--c-text-sub); }
.side__sns { display: flex; gap: 16px; align-items: center; }
.side__sns img { width: 56px; flex: none; }

/* --- プロフィール（about.html のコアラ紹介など。画像＋info-box）--- */
.profile { display: flex; gap: 28px; align-items: flex-start; }
.profile__img { width: 110px; flex: none; }
.profile .info-box { flex: 1; max-width: 460px; }

/* --- サービス一覧（service.html）--- */
.svc-list__lead {
  max-width: 40em;
  font-size: 14.5px;
  line-height: 2.05;
  color: var(--c-text-weak);
  margin-bottom: 8px;
}
.svc-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  column-gap: 24px;
  align-items: start;
  padding: 34px 0;
  border-top: 1px solid var(--c-rule);
  transition: background-color var(--ease);
}
.svc-row:last-of-type { border-bottom: 1px solid var(--c-rule); }
.svc-row:hover { background: #FBF8F0; }
.svc-row__eyebrow {
  display: block;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: .16em;
  color: var(--c-accent);
}
.svc-row__name { margin-top: 12px; font-size: 19px; font-weight: 700; letter-spacing: .01em; }
.svc-row__desc {
  margin-top: 10px;
  max-width: 42em;
  font-size: 13.5px;
  line-height: 2;
  color: var(--c-text-weak);
}
.svc-row__meta { text-align: right; }
.svc-row__price { display: block; font-size: 15px; font-weight: 700; }
.svc-row__meta .link { display: inline-block; margin-top: 10px; font-size: 12.5px; }

/* --- ポートフォリオ一覧 --- */
.worklist__row {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 28px;
  align-items: start;
  padding: 30px 0;
  border-top: 1px solid var(--c-rule);
  transition: background-color var(--ease);
}
.worklist__row:last-of-type { border-bottom: 1px solid var(--c-rule); }
.worklist__row:hover { background: #FBF8F0; }
.worklist__thumb { height: 150px; }
.worklist__name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--c-heading);
}
.worklist__desc { margin-top: 8px; font-size: 13px; line-height: 1.95; color: var(--c-text-weak); max-width: 42em; }
.worklist__row .tag-list { margin-top: 12px; }
.worklist__row .tag { border-color: var(--c-rule); color: var(--c-text-sub); }
.worklist__link { font-size: 12.5px; white-space: nowrap; }
.worklist__note { margin: 24px 0 48px; font-size: 13px; color: var(--c-text-sub); }
.worklist__note .link { margin-left: .3em; }

/* =============================================================================
   13. スクロール表示（控えめなフェード。全ページ共通・main.js と対）
   -----------------------------------------------------------------------------
   .reveal--armed が付くのは JS 実行時のみ（JS無効・実行前は常に表示＝フェイルセーフ）。
   セクション単位でのみ使用し、行やカード単位には使わないこと（うるさくなるため）。
   ========================================================================== */
.reveal.reveal--armed {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}
.reveal.reveal--armed.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal.reveal--armed { opacity: 1; transform: none; transition: none; }
}
@media print {
  .reveal.reveal--armed { opacity: 1 !important; transform: none !important; }
}

/* -----------------------------------------------------------------------------
   11. レスポンシブ
   -------------------------------------------------------------------------- */

/* 中間幅（768–1095px）: 左右パディングを 24px に */
@media (max-width: 1095px) {
  :root { --pad-x: 24px; }
}

/* ---- スマホ（〜767px）: 4a / 4b。README「スマホは差分のみ」に対応 ---- */
@media (max-width: 767px) {
  :root { --pad-x: 18px; }

  body { font-size: 14px; line-height: 2; }

  /* 下部固定バーと重ならないよう余白を確保（JSでバー高さを反映）*/
  body { padding-bottom: var(--mobile-bar-h, 0px); }

  /* ヘッダー */
  .site-header__inner { padding: 12px var(--pad-x); }
  .logo__mark { width: 32px; }
  .logo__name { font-size: 14px; }
  .logo__latin { font-size: 7px; letter-spacing: .2em; }
  .gnav,
  .site-header__cta { display: none; }
  .hamburger { display: flex; }

  /* ヒーロー */
  .hero .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-block: 34px 30px;
  }
  .hero__loc,
  .hero__title,
  .hero__lead,
  .hero__actions { grid-column: auto; }
  .hero__loc { margin-bottom: 16px; font-size: 11.5px; letter-spacing: .12em; }
  .hero__title { font-size: 32px; line-height: 1.5; }
  .hero__visual {
    grid-row: auto;
    width: 100%;
    margin: 22px 0 4px;
  }
  .hero__koala { width: 100%; }
  .hero__lead { margin-top: 14px; font-size: 14px; line-height: 2; }
  .hero__actions {
    margin-top: 26px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: 100%;
  }
  .hero__actions .btn { width: 100%; font-size: 15px; padding: 16px 20px; }
  .hero__actions .link { align-self: center; font-size: 13.5px; padding-bottom: 3px; }

  /* できること */
  .service__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 34px 0 6px;
    border-top: 1px solid var(--c-rule);
  }
  .service__head .section-title { font-size: 25px; }
  .service__note { margin-left: 0; font-size: 12px; }

  .service-row {
    display: block;
    padding: 22px 0;
  }
  .service-row:first-of-type { margin-top: 22px; }
  .service-row__head {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .service-row .icon-ph,
  .service-row__name,
  .service-row__desc,
  .service-row__meta { grid-column: auto; grid-row: auto; }
  .icon-ph { width: 38px; height: 38px; font-size: 7.5px; }
  .icon-ph svg { width: 17px; height: 17px; }
  .service-row__name { font-size: 16.5px; }
  .service-row__desc { margin-top: 12px; font-size: 13.5px; line-height: 1.95; }
  .service-row__meta {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 12px;
    text-align: left;
  }
  .service-row__meta .link { font-size: 13px; }

  /* 流れ（縦ステッパー）*/
  .flow { margin: 0; padding: 30px 0 34px; }
  .flow__label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    letter-spacing: .12em;
    color: var(--c-text-sub);
  }
  .flow__track { display: block; border: 0; }
  .flow__step {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 15px 0 15px 30px;
    border-bottom: 1px solid var(--c-rule);
  }
  .flow__step:last-child { border-bottom: 0; }
  .flow__step::after { display: none; }        /* 矢印は出さない */
  .flow__step::before {                          /* 縦のつなぎ線 */
    content: "";
    position: absolute;
    left: 5px; top: 0; bottom: 0;
    width: 1px;
    background: #D8D3C4;
  }
  .flow__step:first-child::before { top: 20px; }
  .flow__step:last-child::before { bottom: auto; height: 20px; }
  .flow__dot {
    display: block;
    position: absolute;
    left: 0; top: 17px;
    width: 11px; height: 11px;
    background: var(--c-accent);
    transform: rotate(45deg);
  }
  .flow__num { font-family: var(--font-mono); font-weight: 500; font-size: 11px; flex: none; }
  .flow__bar { display: none; }
  .flow__title { flex: 1 1 auto; }
  .flow__note { flex: 0 1 auto; font-size: 11.5px; text-align: right; color: var(--c-text-sub); }

  /* WORKS */
  .works .container { padding-block: 34px; }
  .works__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0;
  }
  .works__head .eyebrow { font-size: 11px; }
  .works__head .section-title { font-size: 24px; line-height: 1.55; }
  .works__grid {
    display: block;
  }
  .works__capture {
    height: 230px;
    margin-top: 22px;
  }
  .works__kicker { margin-top: 20px; font-size: 11.5px; }
  .works__title { font-size: 30px; margin-top: 8px; }
  .works__desc { margin-top: 14px; font-size: 13.5px; line-height: 2; }
  .works .tag-list { margin-top: 18px; }
  .works__body .btn { margin-top: 24px; width: 100%; }
  .works__more { margin-top: 28px; padding-top: 24px; }
  .works__more .btn { width: 100%; }
  .works__row { display: block; }
  .works__row-link { display: inline-block; margin-top: 8px; }

  /* BLOG */
  .blog .container { display: block; padding-block: 34px 30px; }
  .blog__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
  }
  .blog__head .section-title { font-size: 23px; }
  .blog__more {
    display: block;
    width: 100%;
    margin-top: 16px;
    text-align: center;
    border-bottom: 0;
  }
  .blog-row {
    grid-template-columns: 112px 1fr;
    column-gap: 16px;
    padding: 16px 0;
  }
  .blog-row__thumb { width: 112px; height: 75px; font-size: 9.5px; }
  .blog-row__meta {
    display: flex;
    gap: 10px;
    align-items: baseline;
  }
  .blog-row__date { font-size: 10.5px; }
  .blog-row__cat { font-size: 11px; }
  .blog-row__title { margin-top: 6px; font-size: 14px; line-height: 1.55; }

  /* ABOUT */
  .about .container { padding-block: 8px 34px; }
  .about__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0;
  }
  .about__head .section-title { font-size: 23px; }
  .about__grid {
    display: block;
    margin-top: 18px;
    padding-top: 20px;
  }
  .about__lead { font-size: 15.5px; }
  .about__text { margin-top: 14px; font-size: 13.5px; line-height: 2; }
  .quals { margin-top: 16px; }
  .quals__label { margin-bottom: 8px; }
  .quals__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
  }
  .quals__list li:last-child { grid-column: auto; }

  /* CTA */
  .cta .container {
    display: block;
    text-align: center;
    padding-block: 34px;
  }
  .cta__koala { width: 84px; margin: 0 auto 16px; }
  .cta__title { font-size: 23px; line-height: 1.6; }
  .cta__text { margin: 14px auto 0; font-size: 13px; }
  .cta .btn { margin-top: 22px; width: 100%; font-size: 14.5px; padding: 16px; }

  /* フッター */
  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-block: 24px;
  }
  .site-footer__biz { gap: 10px 18px; }
  .site-footer__meta {
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid #2E3B36;
    width: 100%;
  }

  /* スマホ固定バー */
  .mobile-bar { display: grid; }

  /* --- 下層ページ（スマホ） --- */
  .breadcrumb .container { padding-block: 12px; }

  .page-head .container { padding-block: 34px 28px; }
  .page-head--split .container { display: block; }
  .page-title { font-size: 30px; }
  .page-head--split .info-box { margin-top: 28px; }

  .subsec { padding: 30px 0; }
  .subsec__title { font-size: 22px; }

  .target-cols { display: block; }
  .target-cols__col {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--c-rule);
  }
  .target-cols__col:last-child { border-bottom: 0; }

  .inc-list { display: block; }
  .inc-list__item:last-child { border-bottom: 1px solid var(--c-rule); }

  .mini-services__grid { display: block; }
  .mini-card + .mini-card { border-top: 0; }

  .work-main { height: 220px; }
  .work-meta { grid-template-columns: 1fr 1fr; column-gap: 20px; border-top: 0; }
  .work-meta__cell {
    padding: 14px 0;
    border-right: 0;
    border-top: 1px solid var(--c-rule);
  }
  .work-meta__cell:nth-child(-n+2) { border-top: 0; }

  .work-block { display: block; }
  .work-block__title { margin-bottom: 14px; font-size: 20px; }
  .feature-grid { display: block; }
  .screen-grid { grid-template-columns: 1fr; }
  .screen-grid .placeholder { height: 160px; }
  .phone-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 360px; }
  .prevnext { flex-wrap: wrap; gap: 12px; padding: 24px 0 34px; }

  .contact-body .container { display: block; padding-block: 20px 34px; }
  .contact-body .side { margin-top: 32px; }
  .form__row2 { display: block; }
  .form__row2 > * + * { margin-top: 20px; }
  .form__submit-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .form__submit-row .btn { width: 100%; }

  .worklist__row { grid-template-columns: 1fr; gap: 12px; }
  .worklist__thumb { height: 150px; }
  .worklist__link { display: inline-block; }
  .worklist__note { margin: 20px 0 32px; }

  /* プロフィール */
  .profile { flex-direction: column; gap: 16px; }
  .profile .info-box { max-width: none; }

  /* サービス一覧 */
  .svc-row {
    grid-template-columns: 38px 1fr;
    column-gap: 12px;
    padding: 24px 0;
  }
  .svc-row .icon-ph { width: 38px; height: 38px; font-size: 7.5px; }
  .svc-row__name { margin-top: 12px; font-size: 16.5px; }
  .svc-row__meta {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 12px;
    text-align: left;
  }
  .svc-row__meta .link { margin-top: 0; }
}

/* PC ではメニューオーバーレイとハンバーガーは出さない */
@media (min-width: 768px) {
  .menu-overlay { display: none; }
  /* 5a 含まれるもの：2列レイアウト時、最終行（各列の末尾）に下罫線 */
  .inc-list__item:nth-last-child(-n+2) { border-bottom: 1px solid var(--c-rule); }
}

/* --- Contact Form 7 連携用スタイル ---
   CF7は独自に <form class="wpcf7-form"> を出力するため、既存の .form__field 等のクラス名を
   そのままCF7のタグに付与している（[text* name id:xxx class:form__control] のように）。
   ここでは CF7 標準の要素（チェックボックス一覧・エラー表示・送信後メッセージ）だけを
   デザインに合わせて上書きする。 */
.form .wpcf7-form { display: block; }
.form .wpcf7-list-item { margin: 0; display: inline-flex; }
.form .wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.form .wpcf7-list-item input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.form .wpcf7-list-item-label {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--c-rule-form);
  color: var(--c-text-weak);
  background: transparent;
  font-size: 13px;
  line-height: 1;
  padding: 11px 16px;
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease);
}
.form .wpcf7-list-item input[type="checkbox"]:checked + .wpcf7-list-item-label {
  background: var(--c-green);
  border-color: var(--c-green);
  color: var(--c-bg);
}
.form .wpcf7-list-item input[type="checkbox"]:focus-visible + .wpcf7-list-item-label {
  outline: 2px solid var(--c-green);
  outline-offset: 2px;
}
.form .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--c-accent);
}
.form .wpcf7-form-control-wrap {
  display: block;
}
.form .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 14px 18px;
  border: 1px solid var(--c-rule);
  font-size: 13.5px;
  line-height: 1.8;
}
.form .wpcf7-form.sent .wpcf7-response-output {
  border-color: var(--c-green);
  color: var(--c-green);
}
.form .wpcf7-form.invalid .wpcf7-response-output,
.form .wpcf7-form.unaccepted .wpcf7-response-output {
  border-color: var(--c-accent);
  color: var(--c-accent);
}
.form .wpcf7-spinner { margin-left: 10px; }

/* =============================================================================
   14. 画像の見切れ対策・拡大表示（画像を切らずに、元の比率のまま見せる）
   ========================================================================== */
.blog-row__thumb { display: block; height: auto; aspect-ratio: 1200 / 630; } /* noteのアイキャッチ(1.91:1)に合わせる */
.blog-row__thumb.placeholder { display: flex; }
img.works__capture { height: auto; aspect-ratio: 3 / 2; align-self: center; border: 1px solid rgba(255,255,255,.25); }
img.worklist__thumb { width: 100%; height: auto; aspect-ratio: 3 / 2; border: 1px solid var(--c-rule); }
.phone-grid { max-width: 540px; gap: 18px; }
img.work-main { height: auto; aspect-ratio: 3 / 2; }
[data-zoom] { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(28, 36, 32, .86); cursor: zoom-out; }
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; }
.lightbox__close { position: absolute; top: 14px; right: 18px; padding: 8px 12px; font-size: 26px; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; }
@media (max-width: 767px) {
  .phone-grid { max-width: 300px; gap: 14px; }
  .lightbox { padding: 12px; }
}
.btn--ghost-light { background: transparent; color: var(--c-band-h); border: 1.5px solid rgba(255,255,255,.55); padding: 12px 20px; font-size: 13px; margin: 10px 0 0 0; }
.works__body .btn--light { margin: 10px 10px 0 0; }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); }


/* =============================================================================
   12. トップページの演出(v1.1.0)
       - JS が実行時に付ける *--armed クラスでのみ有効(JS無効時は今の表示)
       - 動かすのは transform(translate / scale)と opacity のみ
       - prefers-reduced-motion では末尾でまとめて無効化
   ========================================================================== */

/* --- 12-1. ヒーローのシーン(イラスト×背景のコード画面) ---
   1536×1024 の枠を基準に % で配置。container query 単位(cqw)で文字や角丸も枠に比例させる。
   動きは JS(hero-scene.js)が付けるクラスと、--px/--py(motion.js の視差)で制御。 */
.hero-scene { aspect-ratio: 1536 / 1024; container-type: inline-size; }
.hero-scene .hero__glow { inset: 6% 6% 6% 10%; border-radius: 50%; }
.hs-layer { position: absolute; inset: 0; pointer-events: none;
  transform: translate(calc(var(--px, 0) * var(--d, 0) * 1px), calc(var(--py, 0) * var(--d, 0) * 1px));
  transition: transform .3s ease-out; }
.hs-layer > * { position: absolute; }
.hs-layer img { display: block; max-width: none; user-select: none; }

/* 背景のコード画面(明るいエディタ風) */
.hs-win { background: rgba(255,255,255,.82); border: 1px solid #E3E8E4; border-radius: 1.2cqw; overflow: hidden;
  box-shadow: 0 1.2cqw 3cqw rgba(40,107,94,.10);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Noto Sans JP", monospace;
  font-size: 1.32cqw; line-height: 1.75; color: #3C4A46; }
.hs-win--code { left: 1%; top: 3%; width: 50%; height: 47%; }
.hs-win--term { left: 60%; top: 3%; width: 38%; height: 21%; }
.hs-win__bar { display: flex; align-items: center; gap: .5cqw; height: 2.6cqw; padding: 0 1cqw;
  background: #F4F7F5; border-bottom: 1px solid #E6ECE8; font-size: 1.1cqw; color: #7C8C84; }
.hs-win__bar i { width: .75cqw; height: .75cqw; border-radius: 50%; background: #FF9B8F; }
.hs-win__bar i:nth-child(2) { background: #FFD27A; }
.hs-win__bar i:nth-child(3) { background: #8FD9A8; }
.hs-win__bar b { font-weight: 500; margin-left: .6cqw; }
.hs-win pre { margin: 0; padding: 1.1cqw 1.4cqw; white-space: pre; font: inherit; }
.hs-win .ln { display: inline-block; width: 2cqw; color: #B5C2BC; }
.hs-win .k { color: #9B5A9E; } .hs-win .f { color: #2F7E99; } .hs-win .s { color: #3E8C77; }
.hs-win .n { color: #C0772E; } .hs-win .c { color: #9AA8A2; } .hs-win .dim { color: #9AA8A2; }
.hs-win .ok { color: #2E8B57; font-weight: 500; }
.hs-win .caret { display: inline-block; width: .15cqw; height: 1.3cqw; margin-left: .1cqw; vertical-align: -.2cqw;
  background: var(--c-green); animation: hs-caret 1s steps(1) infinite; }
@keyframes hs-caret { 50% { opacity: 0; } }
.hs-toast { left: 76%; top: 25.5%; padding: .5cqw 1.3cqw; border-radius: 99px; white-space: nowrap;
  font-size: 1.35cqw; font-weight: 700; background: #E8F6EC; color: #1F7A4D;
  box-shadow: 0 .6cqw 1.6cqw rgba(31,122,77,.18); opacity: 0; transform: translateY(.8cqw);
  transition: opacity .4s, transform .4s; }
.hs-toast.on { opacity: 1; transform: none; }

/* 浮かぶ記号・葉(JS が動くときだけ表示) */
.hs-fl { font-size: 2.2cqw; font-weight: 700; opacity: 0; }
.hs-leaf { width: 1.6cqw; height: 1cqw; background: #9BCDB5; border-radius: 0 100% 0 100%; }
.hero-scene.hs--armed .hs-fl { animation: hs-float 9s ease-in-out infinite; }
@keyframes hs-float { 0% { opacity: 0; transform: translateY(2cqw) rotate(0); } 15%, 70% { opacity: .85; }
  100% { opacity: 0; transform: translateY(-6cqw) rotate(12deg); } }

/* キャラクター(位置は 1536×1024 枠の %) */
.hs-base { left: 9.11%; top: 20.02%; width: 84.11%; height: 71.19%; transform-origin: 50% 100%; }
.hs-base > img { position: absolute; }
.hs-base > img:first-child { inset: 0; width: 100%; height: 100%; }
.hs-blink { left: 42.57%; top: 32.24%; width: 23.22%; height: 14.40%; opacity: 0; }
.hs-blink.on { opacity: 1; }
.hs-bird { left: 25.33%; top: 43.13%; width: 8.59%; height: 12.72%; transform-origin: 50% 100%; }
.hs-note { left: 34.5%; top: 41%; font-size: 1.8cqw; font-weight: 700; color: #E8A96A; opacity: 0; }
.hs-rabbit { left: 75.86%; top: 52.93%; width: 12.61%; height: 29.30%; transform-origin: 50% 100%; }
.hs-flag { left: 84.57%; top: 62.32%; width: 9.98%; height: 14.50%; transform-origin: 1.1% 94.8%; }
.hs-steam { left: 69.6%; top: 63.5%; width: 4.2%; overflow: visible; }
.hs-steam path { fill: none; stroke: #CFC6BB; stroke-width: 3; stroke-linecap: round; opacity: 0; }

.hero-scene.hs--armed .hs-base { animation: hs-breathe 5s ease-in-out infinite; }
.hero-scene.hs--armed .hs-steam path { animation: hs-steam 3s ease-in-out infinite; }
.hero-scene.hs--armed .hs-steam path:nth-child(2) { animation-delay: 1.3s; }
.hero-scene.hs--armed .hs-rabbit { animation: hs-bob 2.4s ease-in-out infinite; }
.hero-scene.hs--armed .hs-flag { animation: hs-wave 1.6s ease-in-out infinite alternate; }
.hs-bird.hop { animation: hs-hop .7s ease-out; }
.hs-note.on { animation: hs-note 1.2s ease-out; }
.hero-scene.hs--armed .hs-rabbit.cheer { animation: hs-jump .45s ease-in-out 3; }
.hero-scene.hs--armed .hs-flag.cheer { animation: hs-wave-big .22s ease-in-out 10 alternate; }
@keyframes hs-breathe { 0%, 100% { transform: none; } 50% { transform: translateY(-.15cqw) scale(1.003); } }
@keyframes hs-steam { 0% { opacity: 0; transform: translateY(1cqw); } 40% { opacity: .8; } 100% { opacity: 0; transform: translateY(-2cqw); } }
@keyframes hs-bob { 0%, 100% { transform: none; } 50% { transform: translateY(-.25cqw); } }
@keyframes hs-wave { from { transform: rotate(-6deg); } to { transform: rotate(10deg); } }
@keyframes hs-wave-big { from { transform: rotate(-18deg); } to { transform: rotate(22deg); } }
@keyframes hs-jump { 0%, 100% { transform: none; } 50% { transform: translateY(-1.4cqw); } }
@keyframes hs-hop { 0% { transform: none; } 35% { transform: translateY(-2.2cqw) rotate(-6deg); } 65% { transform: none; } 80% { transform: translateY(-.6cqw); } 100% { transform: none; } }
@keyframes hs-note { 0% { opacity: 0; transform: none; } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(1.5cqw, -3cqw); } }

/* --- 12-2. 見出しを1行ずつ下から --- */
.split--armed .split-line { display: block; overflow: hidden; padding-bottom: .08em; }
.split--armed .split-line__inner {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .6s ease-out, transform .6s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.split--armed.is-in .split-line__inner { opacity: 1; transform: none; }

/* --- 12-3. 流れの線と点灯 --- */
.flow__track.flow--armed { position: relative; }
.flow__track.flow--armed::before {            /* 上罫線の上を、緑の線が左から伸びる */
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 2px;
  background: var(--c-green);
  transform: scaleX(var(--flow-p, 0));
  transform-origin: left center;
}
.flow--armed .flow__step { opacity: .45; transition: opacity .5s ease-out; }
.flow--armed .flow__step.is-lit { opacity: 1; }
.flow--armed .flow__bar { transform-origin: left center; transform: scaleX(.3); transition: transform .5s ease-out, background-color .5s ease-out; }
.flow--armed .flow__step.is-lit .flow__bar { transform: none; background: var(--c-green); }

/* --- 12-4. 実績バンドの上端をゆるやかに(静的) --- */
.home .works { position: relative; }
.home .works::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -56px;
  height: 56px;
  background: linear-gradient(to bottom, rgba(40, 107, 94, 0), var(--c-green));
  pointer-events: none;
}

/* --- 12-5. ボタンの押し込み、行のホバー --- */
.home .btn .btn__arrow { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  .home .btn:active,
  .phone-demo__start:active { transform: scale(.98); }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home .btn .btn__arrow { transition: transform .3s ease-out; }
  .home .btn:hover .btn__arrow { transform: translateX(4px); }

  .home .service-row,
  .home .works__row { position: relative; isolation: isolate; transition: transform .3s ease-out, background-color var(--ease); }
  .home .service-row::after,
  .home .works__row::after {
    content: "";
    position: absolute;
    inset: 0 -12px;
    z-index: -1;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(34, 48, 43, .10);
    opacity: 0;
    transition: opacity .3s ease-out;
    pointer-events: none;
  }
  .home .works__row::after { box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
  .home .service-row:hover,
  .home .works__row:hover { transform: translateY(-2px); }
  .home .service-row:hover::after,
  .home .works__row:hover::after { opacity: 1; }
  .home .works__row-link { display: inline-block; transition: transform .3s ease-out, border-color var(--ease); }
  .home .works__row:hover .works__row-link { transform: translateX(4px); }
}

/* --- 12-6. 実績の「触れるプレビュー」 --- */
.phone-demo.works__capture { position: relative; height: auto; align-self: center; }
.phone-demo__shot { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid rgba(255,255,255,.25); }
.phone-demo__ui {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 12px;
}
.phone-demo__start {
  font: inherit; font-size: 13px; font-weight: 700;
  padding: 10px 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--c-bg); color: var(--c-green);
  transition: transform .15s ease-out, background-color var(--ease);
}
.phone-demo__start:hover { background: #EAF2ED; }
.phone-demo__start:focus-visible { outline: 2px solid var(--c-arrow); outline-offset: 3px; }
.phone-demo__open { margin-left: auto; font-size: 12.5px; color: var(--c-band-h); border-bottom: 1px solid rgba(255,255,255,.4); }
.phone-demo__open span { margin-left: .3em; }

/* 起動後: キャプチャを隠し、スマホ枠(内寸 310×583)の中で 375px 幅の画面を縮小表示 */
.phone-demo.is-live .phone-demo__shot { display: none; }
.phone-demo__frame {
  position: relative;
  width: 330px; height: 603px;
  margin: 0 auto;
  border: 10px solid #1A2320;
  border-radius: 36px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
  animation: euca-pop .45s cubic-bezier(.2,.7,.2,1);
}
.phone-demo__frame[hidden] { display: none; }
.phone-demo__frame iframe {
  position: absolute; top: 0; left: 0;
  width: 375px; height: 705px;
  border: 0;
  transform: scale(.8267);
  transform-origin: top left;
}
@keyframes euca-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* --- 12-7. 3Dコアラの案内(プレビューの右上からのぞく) --- */
.phone-demo__guide {
  position: absolute;
  right: -18px;
  top: -118px;
  width: 140px;
  height: 140px;
  cursor: pointer;
}
.phone-demo__guide[hidden] { display: none; }
.phone-demo__guide::after {          /* 吹き出し */
  content: "触ってみて!";
  position: absolute;
  right: 118px;
  top: 34px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--c-bg);
  color: var(--c-green);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  animation: euca-pop .45s .3s cubic-bezier(.2,.7,.2,1) both;
}
.phone-demo.is-live .phone-demo__guide::after { content: "動かせます"; }
@media (max-width: 767px) {
  .home .works::before { top: -24px; height: 24px; }  /* スマホは流れの下余白が狭いので短く */
}

/* --- 12-8. 閉じるボタン / スマホの流れ(縦並び)には横線を出さない --- */
.phone-demo__close {
  font: inherit; font-size: 12.5px;
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--c-band-h);
  border: 1px solid rgba(255,255,255,.5);
}
.phone-demo__close:hover { border-color: var(--c-band-h); }
.phone-demo__close:focus-visible { outline: 2px solid var(--c-arrow); outline-offset: 3px; }
@media (max-width: 767px) {
  .flow__track.flow--armed::before { content: none; }
}

/* --- 12-9. ヒーローのシーンを広い画面では右の余白側へ少し広げる(見出しは2行のまま) --- */
.home .hero { overflow-x: clip; }
@media (min-width: 1100px) {
  .hero-scene { width: calc(100% + 56px); margin-right: -56px; }
}
@media (min-width: 1240px) {
  .hero-scene { width: calc(100% + 110px); margin-right: -110px; }
}
