@charset "UTF-8";
/* =========================================
   Apricot Design — Common Stylesheet
   Shared base, header, footer, components
========================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }

:root {
  background: #ffffff;
  --c-black: #333333;
  --c-text: #333333;
  --c-sub: #777777;
  --c-line: #dcdcdc;
  --c-bg: #f2f2f2 url('/wp-content/themes/apricot-2026/assets/photos/bg.webp') repeat center / 200px 200px;
  --c-bg-soft: #ffffff;
  --c-accent: #333333;
  --container: 1840px;
  --container-narrow: 1320px;
  --pad-x: clamp(24px, 4vw, 72px);
  --edge-inset: calc(max((100vw - var(--container)) / 2, 0px) + var(--pad-x)); /* 画面端からの余白＝ロゴ左/パンくず左と同一 */
  --section-py: clamp(80px, 12vw, 180px);
  --font-en: 'Oswald', sans-serif;
  --font-serif-en: 'Oswald', sans-serif;
  --font-serif-jp: 'Noto Sans JP', sans-serif;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 2;
  color: var(--c-text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.04em;
}
/* SP デフォルトフォントサイズ */
@media (max-width: 900px) {
  body { font-size: 14px; }
}

/* Fallback index template (index.php) */
.fallback-list { padding: clamp(140px, 16vw, 200px) 0 clamp(80px, 10vw, 120px); }
.fallback-list-items { list-style: none; padding: 0; margin: 0; }
.fallback-list-item { border-bottom: 1px solid var(--c-line); padding: 24px 0; }
.fallback-list-link { display: block; }
.fallback-list-title { font-family: var(--font-serif-jp); font-size: 18px; margin-bottom: 8px; }
.fallback-list-excerpt { font-size: 13px; color: var(--c-sub); }
.fallback-list-pagination { margin-top: 48px; }
a { color: inherit; text-decoration: none; transition: opacity .3s ease; }
a:hover { opacity: .6; }

/* レスポンシブ改行ヘルパー
 *   <br class="pc"> ... PC（>700px）でのみ改行
 *   <br class="sp"> ... SP（≤700px）でのみ改行 */
br.pc { display: inline; }
br.sp { display: none; }
@media (max-width: 700px) {
  br.pc { display: none; }
  br.sp { display: inline; }
}
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: transparent; }

.en { font-family: var(--font-en); font-weight: 400; letter-spacing: 0.12em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x) 0; }
.container2 { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x) 160px; }
.mb0 { margin-bottom: 0 !important; padding-bottom: 0 !important; }
.mb160 { padding-bottom: 160px !important; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--pad-x); }
section { padding: var(--section-py) 0; }

/* =========================================
   Header
========================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #333333;
  border-bottom: 0;
  /* --header-bg は JS が現在見ているセクションの背景色に合わせて更新する（ダーク用に保持） */
  --header-bg: #ffffff;
  transition: background .35s ease, border-color .35s ease;
}
.site-header.scrolled,
.site-header.is-solid {
  background: #ffffff;
  border-bottom: 0;
}
/* HERO 写真の上に header が乗るページ（apricot-has-hero / .home / about HERO 等）では
   トップにいる間は透過し、白いロゴ・文字が暗い HERO 上に浮かぶように。
   スクロール後（.scrolled / .is-solid）は白塗りに戻る。 */
body.apricot-has-hero .site-header:not(.scrolled):not(.is-solid),
body.home .site-header:not(.scrolled):not(.is-solid) {
  background: transparent;
}
/* セクション背景が暗いとき：ロゴと文字を白に */
.site-header.scrolled.header-on-dark,
.site-header.is-solid.header-on-dark {
  border-bottom-color: rgba(255,255,255,.12);
}
.site-header.scrolled.header-on-dark .logo img,
.site-header.is-solid.header-on-dark .logo img { filter: brightness(0) invert(1); }
.site-header.scrolled.header-on-dark .gnav a,
.site-header.is-solid.header-on-dark .gnav a,
.site-header.scrolled.header-on-dark .gnav .nav-trigger,
.site-header.is-solid.header-on-dark .gnav .nav-trigger { color: #fff; }
.site-header.scrolled.header-on-dark .gnav .cta-link:not(.cta-link-solid),
.site-header.is-solid.header-on-dark .gnav .cta-link:not(.cta-link-solid) {
  color: #fff; border-color: rgba(255,255,255,.7);
}
/* HERO ページ（apricot-has-hero / home / about の concept page）のときだけ、
   header 透過状態でロゴを白反転。それ以外のページではロゴは常に黒で表示する。 */
body.apricot-has-hero .site-header:not(.scrolled):not(.is-solid) .logo img,
body.home .site-header:not(.scrolled):not(.is-solid) .logo img,
body.is-concept-page .site-header:not(.scrolled):not(.is-solid) .logo img {
  filter: brightness(0) invert(1);
}
/* 上記 HERO ページ以外（= 下層ページ全般）では、ロゴは常に黒で固定 */
body:not(.home):not(.apricot-has-hero):not(.is-concept-page) .site-header .logo img {
  filter: none !important;
}
.site-header:not(.scrolled):not(.is-solid) .gnav a { color: #fff; }
.site-header:not(.scrolled):not(.is-solid) .gnav .cta-link {
  border-color: rgba(255,255,255,0.9);
  color: #fff;
}
.site-header:not(.scrolled):not(.is-solid) .gnav .cta-link:hover {
  background: #fff;
  color: var(--c-black);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: inline-flex;
  align-items: center;
  height: 32px;
  flex-shrink: 0;
}
.logo img {
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
}
.gnav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
}
/* Desktop: JP 副ラベルは隠して、EN ラベルのみ表示 */
.gnav .txt-ja { display: none; }
.gnav .txt-en {
  display: inline;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}
.gnav > .nav-item,
.gnav > a {
  position: relative;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--c-text);
  display: inline-flex;
  align-items: center;
  padding: 30px 0;
  margin: -30px 0;
}
.gnav > .nav-item > .nav-trigger {
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gnav > .nav-item > .nav-trigger::after {
  content: '';
  width: 6px; height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  opacity: 0.7;
  transition: transform 0.25s ease;
}
.gnav > .nav-item.is-mega-open > .nav-trigger::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.gnav .cta-link {
  border: 1px solid var(--c-black);
  border-radius: 999px;
  padding: 11px 24px;
  color: var(--c-black);
  transition: background .3s ease, color .3s ease, opacity .3s ease, border-color .3s ease;
  margin: 0;
}
.gnav .cta-link:hover { background: var(--c-black); color: #f2f2f2; opacity: 1; }

/* お問い合わせ・無料相談（黒背景・白文字＋矢印で強調） */
.gnav a.cta-link.cta-link-solid {
  background: var(--c-black);
  color: #fff;
  border-color: var(--c-black);
  padding: 11px 22px 11px 24px;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
}
.gnav a.cta-link.cta-link-solid .cta-link-text {
  color: #fff;
  font: inherit;
  display: inline;
  visibility: visible;
  opacity: 1;
}
.site-header.scrolled .gnav a.cta-link.cta-link-solid,
.site-header.is-solid .gnav a.cta-link.cta-link-solid,
.site-header.scrolled .gnav a.cta-link.cta-link-solid .cta-link-text,
.site-header.is-solid .gnav a.cta-link.cta-link-solid .cta-link-text {
  color: #fff;
  background-color: var(--c-black);
}
.site-header.scrolled .gnav a.cta-link.cta-link-solid .cta-link-text,
.site-header.is-solid .gnav a.cta-link.cta-link-solid .cta-link-text {
  background-color: transparent;
}
.gnav .cta-link-solid:hover {
  background: #1a1a1a;
  color: #fff;
  opacity: 1;
}
.gnav .cta-link-solid .cta-link-arrow {
  width: 18px; height: 1px;
  background: currentColor;
  position: relative;
  flex-shrink: 0;
  transition: width .3s ease;
}
.gnav .cta-link-solid .cta-link-arrow::after {
  content: '';
  position: absolute;
  top: -3px; right: 0;
  width: 6px; height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.gnav .cta-link-solid:hover .cta-link-arrow { width: 26px; }

/* HERO 上（ヘッダー透過時）でも CTA solid は黒背景・白文字を維持
   ─ 白背景の HERO 写真でボタンが消えてしまう問題を回避 */
.site-header:not(.scrolled):not(.is-solid) .gnav .cta-link.cta-link-solid,
.site-header.mega-active .gnav .cta-link.cta-link-solid {
  background: var(--c-black);
  color: #fff;
  border-color: var(--c-black);
}
.site-header:not(.scrolled):not(.is-solid) .gnav .cta-link.cta-link-solid .cta-link-text,
.site-header.mega-active .gnav .cta-link.cta-link-solid .cta-link-text {
  color: #fff;
}
.site-header:not(.scrolled):not(.is-solid) .gnav .cta-link.cta-link-solid:hover {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

/* Mega menu */
.mega-menu {
  position: fixed;
  top: 72px;
  left: 0; right: 0;
  margin-top: 0;
  background: rgba(242,242,242,0.97);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding: 60px var(--pad-x);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1), visibility .35s;
  z-index: 99;
}
.mega-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(40px, 6vw, 100px);
}
.mega-side h3 {
  font-family: var(--font-en);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--c-black);
  margin-bottom: 12px;
}
.mega-side .jp {
  font-size: 13px;
  color: var(--c-sub);
  margin-bottom: 32px;
  letter-spacing: 0.08em;
}
.mega-side .lead {
  font-size: 13px;
  color: var(--c-text);
  line-height: 2;
}
.mega-side .more {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-black);
  border-bottom: 1px solid var(--c-black);
  padding-bottom: 4px;
  font-size: 14px;
}
/* h3 下の more が複数あるときは縦並び（works メガ等） */
.mega-side .more + .more { display: flex; width: fit-content; margin-top: 14px; }
.mega-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 40px;
}
.mega-col h4 {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--c-sub);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-line);
  font-weight: 500;
}
.mega-col ul li { margin-bottom: 12px; }
.mega-col ul li a {
  font-size: 13px;
  color: var(--c-text);
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  transition: color .25s ease;
}
.mega-col ul li a:hover { color: var(--c-black); opacity: 1; }
.mega-col ul li a::before {
  content: '\2014';
  color: var(--c-sub);
  font-size: 12px;
}
/* SERVICE mega は 4カラム化 */
.mega-service-grid .mega-cols {
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 36px;
}
@media (max-width: 1100px) {
  .mega-service-grid .mega-cols { grid-template-columns: repeat(2, 1fr); }
}
/* JOURNAL mega — INSIGHT を 2 カラムフローで全カテゴリー表示 */
.mega-journal-grid .mega-cols {
  grid-template-columns: 2.2fr 1fr 1fr;
}
.mega-col-journal-cats .mega-cats-flow {
  columns: 2;
  column-gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.mega-col-journal-cats .mega-cats-flow li {
  break-inside: avoid;
  margin-bottom: 12px;
}
@media (max-width: 1100px) {
  .mega-journal-grid .mega-cols { grid-template-columns: repeat(2, 1fr); }
  .mega-col-journal-cats .mega-cats-flow { columns: 1; }
}

/* WORKS mega の検索ピル（カテゴリー × 業種） */
.mega-works-search .mega-cols {
  grid-template-columns: 1fr 1fr;
  gap: 24px 56px;
}
.mega-col-search ul.mega-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.mega-col-search ul.mega-pills li { margin: 0; }
.mega-col-search ul.mega-pills li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--c-text);
  background: transparent;
  transition: all .2s ease;
  text-decoration: none;
}
.mega-col-search ul.mega-pills li a::before { content: none; }
.mega-col-search ul.mega-pills li a .count {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--c-sub);
  letter-spacing: 0.06em;
}
.mega-col-search ul.mega-pills li a:hover {
  background: var(--c-black);
  border-color: var(--c-black);
  color: #fff;
}
.mega-col-search ul.mega-pills li a:hover .count { color: rgba(255,255,255,0.7); }

/* SERVICE mega など、長いリストの中でアコーディオンを使う場合 */
.mega-accordion { margin: 0; padding: 0; list-style: none; }
.mega-accordion > li { margin-bottom: 4px; }
.mega-accordion > li > .mega-acc-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  padding: 6px 0;
  font: inherit;
  color: var(--c-text);
  letter-spacing: 0.04em;
  cursor: pointer;
  font-size: 13px;
}
.mega-accordion > li > .mega-acc-toggle:hover { color: var(--c-black); }
.mega-accordion > li > .mega-acc-toggle::after {
  content: '+';
  font-family: var(--font-en);
  font-size: 14px;
  color: var(--c-sub);
  transition: transform .25s ease;
}
.mega-accordion > li.is-open > .mega-acc-toggle::after { content: '−'; }
.mega-accordion > li > .mega-acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  padding-left: 12px;
  border-left: 1px solid var(--c-line);
  margin-left: 4px;
}
.mega-accordion > li.is-open > .mega-acc-panel { max-height: 600px; }
.mega-accordion > li > .mega-acc-panel ul {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}
.mega-accordion > li > .mega-acc-panel ul li { margin-bottom: 8px; }
.mega-accordion > li > .mega-acc-panel ul li a {
  font-size: 12px;
  color: var(--c-sub);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color .2s ease;
}
.mega-accordion > li > .mega-acc-panel ul li a::before { content: none; }
.mega-accordion > li > .mega-acc-panel ul li a:hover { color: var(--c-black); }
.site-header:not(.scrolled):not(.is-solid) .gnav > .nav-item > .nav-trigger { color: #fff; }
.site-header:not(.scrolled):not(.is-solid) .gnav > .nav-item > .nav-trigger::after { border-color: #fff; }

.site-header.mega-active {
  background: rgba(242,242,242,0.94);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom-color: var(--c-line);
}
.site-header.mega-active .logo img { filter: none; }
.site-header.mega-active .gnav > .nav-item > .nav-trigger,
.site-header.mega-active .gnav .cta-link:not(.cta-link-solid),
.site-header.mega-active .gnav > a.nav-link { color: var(--c-black); border-color: var(--c-black); }
.site-header.mega-active .gnav > .nav-item > .nav-trigger::after { border-color: var(--c-black); }
.site-header.mega-active .nav-toggle-label { color: var(--c-black); }
/* CTA-solid stays black bg + white text when mega is open */
.site-header.mega-active .gnav .cta-link-solid { background: var(--c-black); color: #fff; border-color: var(--c-black); }

.nav-toggle {
  display: flex;
  position: relative;
  width: 64px; height: 64px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--c-black);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.nav-toggle-bars {
  display: block;
  width: 22px;
  height: 16px;
  margin: 0 auto;
  position: relative;
}
.nav-toggle-bars span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform-origin: center center;
  transition: top .3s ease, transform .3s ease, opacity .25s ease;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 7.25px; }
.nav-toggle-bars span:nth-child(3) { top: 14.5px; }
.nav-toggle-label {
  display: block;
  width: 100%;
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1;
  color: currentColor;
  text-align: center;
  /* MENU(4文字) と CLOSE(5文字) で幅が変わるとずれて見えるので
     重ねて表示 → 切り替えてもボタン中央に固定 */
  position: relative;
  height: 9px;
}
.nav-toggle-label-menu,
.nav-toggle-label-close {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-toggle-label-menu { opacity: 1; }
.nav-toggle-label-close { opacity: 0; }
body.menu-open .nav-toggle { color: var(--c-black); }
body.menu-open .nav-toggle-bars span:nth-child(1) { top: 7.25px; transform: rotate(45deg); }
body.menu-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle-bars span:nth-child(3) { top: 7.25px; transform: rotate(-45deg); }
body.menu-open .nav-toggle-label-menu { opacity: 0; }
body.menu-open .nav-toggle-label-close { opacity: 1; }
.site-header:not(.scrolled):not(.is-solid):not(.mega-active) .nav-toggle { color: #fff; }
body.menu-open.menu-open .site-header:not(.scrolled):not(.is-solid):not(.mega-active) .nav-toggle { color: var(--c-black); }


/* ====== SP/ドロワー（html.drawer-mode = 幅<=1100 もしくは menu-open 時に有効） ====== */

  /* SP: ハンバーガーボタンを画面右上に固定（社長指示 2026-06-27。チャットウィジェットは右下で非競合） */
  html.drawer-mode .nav-toggle {
    display: flex;
    position: fixed !important;
    right: clamp(16px, 4vw, 24px);
    top: clamp(16px, 4vw, 24px);
    left: auto;
    bottom: auto;
    z-index: 10000;
    background: var(--c-black) !important;
    color: #fff !important;
    border-radius: 999px;
    box-shadow: none;
    pointer-events: auto !important;
  }
  html.drawer-mode .nav-toggle-bars span { background: #fff !important; }
  /* HERO 透過状態 / メニューオープン状態でも、SP では常に黒背景・白文字に固定 */
  html.drawer-mode .site-header:not(.scrolled):not(.is-solid):not(.mega-active) .nav-toggle,
html.drawer-mode body.menu-open .nav-toggle,
html.drawer-mode body.menu-open .site-header:not(.scrolled):not(.is-solid):not(.mega-active) .nav-toggle {
    color: #fff !important;
    background: var(--c-black) !important;
  }
  /* SP ヘッダー：ナビゲーションを外に出したので高さを抑える */
  html.drawer-mode .header-inner {
    padding: 12px clamp(20px, 5vw, 36px);
  }
  html.drawer-mode .logo {
    height: 28px;
    transform: translateY(20px);   /* 社長指示 2026-06-27 SPロゴ 下げ（10px→さらに10px=計20px） */
  }
  /* SP では HERO ページでもロゴを常に黒で表示（白反転を解除） */
  html.drawer-mode .site-header .logo img {
    filter: none !important;
  }
  /* SP：スクロール時の追従ヘッダーは非表示にする。
     最初の表示位置ではヘッダー（ロゴ）が見えて、スクロールしたら上に隠れる。
     - .is-solid（下層ページ初期表示の白ヘッダー）では隠さない
     - .scrolled が付いた時だけ隠す */
  html.drawer-mode .site-header {
    transition: background .35s ease, border-color .35s ease, top .35s ease;
  }
  html.drawer-mode .site-header.scrolled {
    top: -120px;
    pointer-events: none;
  }

  /* Drawer: full-screen panel — JS detaches .gnav from header to <body> on SP
     so that position:fixed is relative to viewport (not to the header that
     creates a containing block via backdrop-filter). */
  html.drawer-mode .gnav {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100vh; height: 100dvh;
    background: #fff;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    /* d-a-h.com 風：上下に余裕を持って、左右は控えめにインデント */
    padding: clamp(96px, 14vw, 132px) clamp(28px, 7vw, 56px) clamp(48px, 8vw, 72px);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(-100%);
    transition: transform .5s cubic-bezier(.7,0,.3,1);
    z-index: 9998;
    visibility: hidden;
  }
  html.drawer-mode body.menu-open { overflow: hidden; }
  html.drawer-mode body.menu-open .gnav { transform: translateY(0); visibility: visible; }
  /* Hamburger button stays above drawer */
  html.drawer-mode .site-header { z-index: 9999; }
  html.drawer-mode .nav-toggle { position: relative; z-index: 10000; }

  /* デスクトップ用の padding: 30px 0; margin: -30px 0 を SP では解除（重なり防止） */
  html.drawer-mode .gnav > .nav-item,
html.drawer-mode .gnav > a {
    padding: 0;
    margin: 0;
    display: block;
  }

  /* Sections behave as accordion */
  html.drawer-mode .gnav > .nav-item {
    display: block;
    border: 0;
    background: transparent;
    width: 100%;
  }
  /* d-a-h.com スタイル：EN（大・letter-spacing 強め）+ JP（小・控えめ）の横並び */
  html.drawer-mode .gnav > .nav-item > .nav-trigger,
html.drawer-mode .gnav > a.nav-link {
    width: 100%;
    text-align: left;
    padding: clamp(22px, 4.4vw, 30px) 0;
    font-family: var(--font-en);
    color: var(--c-black);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: baseline;
    gap: clamp(16px, 4vw, 28px);
    cursor: pointer;
    line-height: 1.2;
    text-decoration: none;
  }
  html.drawer-mode .gnav > .nav-item:last-of-type > .nav-trigger,
html.drawer-mode .gnav > a.nav-link:last-of-type { border-bottom: 0; }
  html.drawer-mode .gnav .txt-en {
    display: inline-block;
    font-family: var(--font-en);
    font-size: clamp(20px, 5vw, 25px);
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--c-black);
    line-height: 1;
    flex-shrink: 0;
  }
  /* アコーディオン展開アイコン（+ / −）右端 */
  html.drawer-mode .gnav > .nav-item > .nav-trigger {
    position: relative;
    padding-right: 32px;
    justify-content: flex-start;
  }
  html.drawer-mode .gnav > .nav-item > .nav-trigger::after {
    content: '';
    position: absolute;
    right: 4px;
    top: 50%;
    width: 14px;
    height: 14px;
    background:
      linear-gradient(currentColor, currentColor) center/100% 1px no-repeat,
      linear-gradient(currentColor, currentColor) center/1px 100% no-repeat;
    border: 0;
    transform: translateY(-50%);
    transition: transform .3s ease;
    color: var(--c-black);
    line-height: 0;
  }
  html.drawer-mode .gnav > .nav-item.sp-open > .nav-trigger::after {
    /* − に切替（縦棒を消す） */
    background:
      linear-gradient(currentColor, currentColor) center/100% 1px no-repeat;
    transform: translateY(-50%) rotate(0deg);
  }

  /* SP-only inline mega panel — re-show mega-menu inside drawer */
  html.drawer-mode .mega-menu {
    display: block !important;
    position: static !important;
    background: #fff !important;
    box-shadow: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    padding: 0 !important;
    /* デスクトップ用 border-top / border-bottom を SP では解除 */
    border: 0 !important;
    /* デスクトップの margin-top: 15px を打ち消して、SP では nav-item の高さを揃える */
    margin-top: 0;
    /* 親 .gnav の左右 padding（28-56px）を打ち消して、画面端まで背景を広げる */
    margin-left: calc(-1 * clamp(28px, 7vw, 56px));
    margin-right: calc(-1 * clamp(28px, 7vw, 56px));
    border-radius: 0;
  }
  html.drawer-mode .gnav > .nav-item.sp-open + .mega-menu,
html.drawer-mode .nav-item.sp-open .mega-menu { max-height: 2000px; }
  html.drawer-mode .mega-menu .mega-inner {
    flex-direction: column;
    /* mega-menu はネガマージンで全幅まで広がってるので、内側で再度 padding を取る */
    padding: 24px clamp(28px, 7vw, 56px) 28px !important;
    gap: 24px !important;
    display: flex !important;
  }
  /* メガメニューのサイドリード（SERVICE / 私たちにできること など） */
  /* SP では mega-side（左のセクションリード）は非表示 */
  html.drawer-mode .mega-menu .mega-side {
    display: none !important;
  }
  html.drawer-mode .mega-menu .mega-side h3 {
    font-family: var(--font-en);
    font-size: 18px;
    letter-spacing: 0.24em;
    color: var(--c-sub);
    margin: 0 0 6px;
    font-weight: 500;
  }
  html.drawer-mode .mega-menu .mega-side .jp {
    font-size: 14px;
    font-weight: 500;
    color: var(--c-black);
    letter-spacing: 0.06em;
    margin: 0 0 8px;
  }
  html.drawer-mode .mega-menu .mega-side .lead {
    font-size: 12px;
    line-height: 1.9;
    color: var(--c-text);
    letter-spacing: 0.04em;
    margin: 0 0 12px;
  }
  html.drawer-mode .mega-menu .mega-side .more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-en);
    font-size: 12px;
    letter-spacing: 0.18em;
    color: var(--c-black);
    padding-bottom: 2px;
    border-bottom: 1px solid var(--c-black);
  }
  html.drawer-mode .mega-menu .mega-side .more + .more { display: flex; width: fit-content; margin-top: 12px; }
  html.drawer-mode .mega-menu .mega-cols {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  html.drawer-mode .mega-menu .mega-col h4 {
    font-family: var(--font-en);
    font-size: 15px;
    letter-spacing: 0.24em;
    color: var(--c-black);
    margin: 0 0 10px;
    padding: 0;
    border: none;
    font-weight: 500;
  }
  html.drawer-mode #mega-recruit .mega-col h4 { display: none; }   /* #3675/#3676 知る・応募 見出しSP削除 */
  html.drawer-mode .mega-menu .mega-col ul { list-style: none; padding: 0; margin: 0; }
  html.drawer-mode .mega-menu .mega-col ul li {
    padding: 0;
    margin: 0 !important;
    border: none;
  }
  html.drawer-mode .mega-menu .mega-col ul li a {
    display: block;
    padding: 10px 0 10px 16px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 13px;
    color: var(--c-text);
    letter-spacing: 0.06em;
    line-height: 1.6;
    position: relative;
  }
  /* d-a-h.com 風：サブアイテムの先頭に "-" マーカー */
  html.drawer-mode .mega-menu .mega-col ul li a::before {
    content: '-' !important;
    position: absolute;
    left: 0;
    top: 10px;
    color: var(--c-sub);
    font-family: var(--font-en);
    font-weight: 400;
    margin: 0;
    background: none !important;
    width: auto !important;
    height: auto !important;
    line-height: 1.6;
  }

  /* WORKS メガの BY CATEGORY / BY INDUSTRY 用ピルは SP でも独自スタイルを維持 */
  html.drawer-mode .mega-menu .mega-col-search ul.mega-pills {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
  }
  html.drawer-mode .mega-menu .mega-col-search ul.mega-pills li a {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 14px !important;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--c-text);
    white-space: normal;       /* 長いカテゴリ名は折り返し許可 */
    word-break: break-word;
    max-width: 100%;
    background: transparent;
  }
  /* "-" プレフィックスはピルでは無効 */
  html.drawer-mode .mega-menu .mega-col-search ul.mega-pills li a::before {
    content: none !important;
  }
  html.drawer-mode .mega-menu .mega-col-search ul.mega-pills li a .count {
    font-family: var(--font-en);
    font-size: 12px;
    color: var(--c-sub);
    letter-spacing: 0.06em;
    flex-shrink: 0;
  }
  /* グラフィックデザインのアコーディオントグル */
  html.drawer-mode .mega-menu .mega-accordion .mega-acc-toggle {
    width: 100%;
    text-align: left;
    padding: 10px 0;
    background: transparent;
    border: none;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 13px;
    color: var(--c-text);
    letter-spacing: 0.06em;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  html.drawer-mode .mega-menu .mega-accordion .mega-acc-toggle::after {
    content: '+';
    font-size: 14px;
    color: var(--c-sub);
    line-height: 1;
  }
  html.drawer-mode .mega-menu .mega-accordion li.is-open > .mega-acc-toggle::after { content: '−'; }
  html.drawer-mode .mega-menu .mega-accordion .mega-acc-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    padding-left: 14px;
    border-left: 1px solid var(--c-line);
    margin: 4px 0 4px 4px;
  }
  html.drawer-mode .mega-menu .mega-accordion li.is-open > .mega-acc-panel { max-height: 800px; }
  html.drawer-mode .mega-menu .mega-accordion .mega-acc-panel ul li a {
    padding: 12px 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--c-sub);
  }

  /* SP "open mega menu" — JS toggles via .nav-item.sp-open. We need the mega panel right under the trigger.
     The HTML keeps mega-menu as siblings further down, so we move them via JS into each nav-item. */

  /* SP では従来の cta-link 黒ピルボタンを隠して、代わりに gnav-footer の CONTACT ブロックを表示 */
  html.drawer-mode .gnav > .cta-link {
    display: none !important;
  }
  html.drawer-mode .gnav > .cta-link:hover { background: var(--c-black); color: #fff; }

  /* Hide the float-cta on SP when menu is open to avoid stacking */
  html.drawer-mode body.menu-open .float-cta { opacity: 0; pointer-events: none; }

  /* ============================================
     SP ドロワー専用フッター（CONTACT ブロック + 拠点 + SNS + copyright）
  ============================================ */
  html.drawer-mode .gnav-footer { display: block; margin-top: clamp(64px, 10vw, 96px); }
  html.drawer-mode .gnav-contact {
    background: transparent;
    border: 0;
    padding: 0;
    margin-bottom: 60px;   /* #3766 36->60 */
    text-align: center;
  }
  html.drawer-mode .gnav-contact .gf-en {
    display: block;
    font-family: var(--font-en);
    font-size: clamp(34px, 8.6vw, 48px);
    letter-spacing: 0.18em;
    color: var(--c-black);
    line-height: 1;
    margin: 0 0 16px;
  }
  html.drawer-mode .gnav-contact .gf-jp {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--c-sub);
    margin: 0 0 22px;
  }
  html.drawer-mode .gnav-contact .gf-lead {
    font-size: 14px;
    line-height: 2;
    color: var(--c-text);
    letter-spacing: 0.04em;
    margin: 0 0 60px;        /* #3767 28->60 */
    padding-bottom: 40px;    /* #3767 28->40 */
    border-bottom: 1px solid var(--c-line);
  }
  html.drawer-mode .gf-methods {
    display: grid;
    gap: 32px;
    justify-items: center;
  }
  html.drawer-mode .gf-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  html.drawer-mode .gf-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    color: var(--c-black);
    margin-bottom: 6px;
  }
  html.drawer-mode .gf-icon svg { width: 24px; height: 24px; }
  html.drawer-mode .gf-method-label {
    font-size: 13px;
    color: var(--c-sub);
    letter-spacing: 0.14em;
    font-weight: 500;
  }
  html.drawer-mode .gf-tel {
    font-family: var(--font-en);
    font-size: 28px;
    font-weight: 400;
    color: var(--c-black);
    letter-spacing: 0.04em;
    line-height: 1.2;
  }
  html.drawer-mode .gf-meta {
    font-size: 12px;
    color: var(--c-sub);
    letter-spacing: 0.06em;
  }
  html.drawer-mode .gf-mail-btn {
    display: inline-block;
    padding: 18px 36px;
    background: var(--c-black);
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.18em;
    font-weight: 500;
    text-decoration: none;
    margin-top: 6px;
    min-width: 220px;
    text-align: center;
  }
  html.drawer-mode .gf-mail-btn:hover { color: #fff; opacity: 1; }

  /* 拠点ブロック（NAGANO / TOKYO） */
  html.drawer-mode .gf-offices {
    display: grid;
    gap: 22px;
    padding: 40px 4px 40px;   /* #3770 24 4 28 -> 40 4 40 */
    border-top: 1px solid var(--c-line);
  }
  html.drawer-mode .gf-office .gf-en-sm {
    display: block;
    font-family: var(--font-en);
    font-size: 16px;          /* #3769 12->16 */
    letter-spacing: 1px;      /* #3769 2.9px->1px */
    color: var(--c-black);
    margin: 0 0 10px;
    font-weight: 500;
  }
  html.drawer-mode .gf-office .gf-zip {
    font-family: var(--font-en);
    font-size: 12px;
    color: var(--c-sub);
    letter-spacing: 0.06em;
    margin: 0 0 4px;
  }
  html.drawer-mode .gf-office .gf-addr {
    font-size: 13px;
    line-height: 1.85;
    color: var(--c-text);
    letter-spacing: 0.04em;
    margin: 0;
  }

  /* SNS リスト */
  html.drawer-mode .gf-sns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 22px 4px;
    border-top: 1px solid var(--c-line);
  }
  html.drawer-mode .gf-sns a {
    font-family: var(--font-en);
    font-size: 12px;
    letter-spacing: 0.18em;
    color: var(--c-text);
    text-decoration: none;
  }
  html.drawer-mode .gf-sns a:hover { color: var(--c-black); opacity: 1; }

  /* Copyright */
  html.drawer-mode .gf-copy {
    padding: 16px 4px 8px;
    border-top: 1px solid var(--c-line);
    font-family: var(--font-en);
    font-size: 12px;
    letter-spacing: 0.18em;
    color: var(--c-sub);
  }


/* デスクトップでは gnav-footer は非表示（ハンバーガー＝SP/タブレット のみのコンテンツ） */
@media (min-width: 1101px) {
  .gnav-footer { display: none; }
}

/* =========================================
   Buttons
========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 32px;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.18em;
  border: 1px solid var(--c-black);
  background: var(--c-black);
  color: #f2f2f2;
  border-radius: 999px;
  transition: background .3s ease, color .3s ease, opacity .3s ease;
}
.btn:hover { background: transparent; color: var(--c-black); opacity: 1; }
.btn .arrow { width: 20px; height: 1px; background: currentColor; position: relative; }
.btn .arrow::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  width: 8px; height: 1px;
  background: currentColor;
  transform: rotate(40deg);
  transform-origin: right center;
}
.btn-ghost { background: transparent; color: var(--c-black); }
.btn-ghost:hover { background: var(--c-black); color: #fff; }
.btn-pill { border-radius: 999px; }

.concept-cta {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  cursor: pointer;
}
.concept-cta .circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--c-black);
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .3s ease, transform .3s ease;
}
.concept-cta .circle svg {
  width: 22px; height: 22px;
  stroke: #faf6ee;
  fill: none;
  stroke-width: 1.2;
  transition: transform .3s ease;
}
.concept-cta:hover .circle { background: #1f1a16; opacity: 1; }
.concept-cta:hover .circle svg { transform: translateX(3px); }
.concept-cta .label-link {
  font-size: 15px;
  color: var(--c-black);
  border-bottom: 1px solid var(--c-black);
  padding-bottom: 4px;
  letter-spacing: 0.06em;
}

/* =========================================
   Section heading (i-ne style: large EN + small JP)
========================================= */
.section-head { margin-bottom: clamp(32px, 4.6vw, 64px); }
.section-head .en-label {
  font-family: var(--font-en);
  font-size: 60px; /* #4320/#4322 44->60（全ページ・非centerのsection-head en-label） */
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--c-black);
  display: block;
  line-height: 1;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--c-sub);
  letter-spacing: 0.18em;
  margin-bottom: 0;
}
.section-head .sub {
  margin-top: 36px;
  max-width: 640px;
  color: var(--c-text);
}
.section-head.center { text-align: center; margin-bottom: clamp(32px, 4.6vw, 64px); }
.section-head.center .sub { margin-left: auto; margin-right: auto; }

/* =========================================
   Page hero (sub-page header banner)
   2026-05-05 改: post-hero（JOURNAL 一覧）と同じ視覚密度に統一する。
   会社概要 / policy / staff / contact / price で使用。padding・背景を post-hero と揃え、
   下罫線は削除（post-hero と同じ）。
========================================= */
.page-hero {
  padding: clamp(120px, 16vw, 200px) 0 clamp(60px, 8vw, 100px);
  background: var(--c-bg);
}
.page-hero .container { display: flex; flex-direction: column; gap: 16px; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--c-sub);
}
.breadcrumb a {
  color: var(--c-sub);
  text-decoration: none;
  transition: color .25s ease;
}
.breadcrumb a:hover { color: var(--c-black); opacity: 1; }
.breadcrumb > span { color: var(--c-line); }
.breadcrumb > span:last-child,
.breadcrumb > span.current { color: var(--c-text); }
.page-hero .breadcrumb { margin-bottom: 18px; }
/* 2026-05-05: 英語(.en-label) を大、日本語(h1) を小 — /journal/ の見出し参考 */
.page-hero .en-label {
  font-family: var(--font-en);
  font-size: 50px;
  font-weight: 400;
  letter-spacing: 0.24em;
  color: var(--c-black);
  line-height: 1;
}
.page-hero h1 {
  font-family: var(--font-serif-jp);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.06em;
  color: var(--c-black);
  margin: 30px 0 0 0;
}
@media (max-width: 800px) {
  .page-hero .en-label { font-size: 36px; }
}
.page-hero .lead {
  margin-top: 32px;
  max-width: 720px;
  font-size: 15px;
  line-height: 2.2;
  color: var(--c-text);
}

/* SERVICE 6 カード（3 列 × 2 行）の実装は home.css に集約済み */

/* =========================================
   Process (5-column horizontal)
========================================= */
.process-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--c-line);
}
.process-item {
  padding: 48px 24px;
  border-right: 1px solid var(--c-line);
  position: relative;
}
.process-item:last-child { border-right: none; }
.process-item .step {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--c-sub);
  margin-bottom: 20px;
}
.process-item .en-step {
  font-family: var(--font-en);
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--c-black);
  margin-bottom: 16px;
}
.process-item h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--c-black);
  margin-bottom: 16px;
}
.process-item p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--c-text);
}

@media (max-width: 900px) {
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .process-item { border-bottom: 1px solid var(--c-line); }
  .process-item:nth-child(2n) { border-right: none; }
  .process-item:last-child { border-bottom: none; }
}
@media (max-width: 500px) {
  .process-list { grid-template-columns: 1fr; }
  .process-item { border-right: none; }
}

/* =========================================
   Works grid (3-column / 16:9)
========================================= */
.newworks { background: var(--c-bg-soft); }
.newworks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3.5vw, 56px) clamp(20px, 2.5vw, 40px);
  border-top: 1px solid var(--c-line);
  padding-top: clamp(32px, 4vw, 56px);
}
.newwork-card {
  display: block;
  cursor: pointer;
}
.newwork-card .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-bg);
  margin-bottom: 18px;
  position: relative;
}
.newwork-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(.2,.8,.2,1);
}
.newwork-card:hover .thumb img { transform: scale(1.04); }
.newwork-card .no {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: #fff;
  z-index: 2;
  text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}
.newwork-card .meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.newwork-card .meta .tag {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-sub);
  border: 1px solid var(--c-line);
  padding: 4px 10px;
}
.newwork-card .meta .year {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--c-sub);
}
.newwork-card h3 {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--c-black);
  margin-bottom: 4px;
}
.newwork-card .client {
  font-size: 12px;
  color: var(--c-sub);
}
.newworks-foot {
  margin-top: clamp(48px, 6vw, 80px);
  text-align: center;
}
.newworks-foot .more {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--c-black);
  border-bottom: 1px solid var(--c-black);
  padding-bottom: 6px;
}

@media (max-width: 800px) {
  .newworks-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .newworks-grid { grid-template-columns: 1fr; }
}

/* =========================================
   Media (Journal listing)
========================================= */
.media-cats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding: 22px 0;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.media-cats a {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--c-sub);
  position: relative;
  padding-bottom: 4px;
  transition: color .25s ease;
}
.media-cats a.is-active {
  color: var(--c-black);
  font-weight: 500;
}
.media-cats a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -23px;
  height: 1px;
  background: var(--c-black);
}
.media-cats a:hover {
  color: var(--c-black);
  opacity: 1;
}
.media-cats .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--c-black);
  color: #f2f2f2;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-left: 8px;
  vertical-align: middle;
  line-height: 1;
  transition: background .25s ease, color .25s ease;
}
.media-cats a:not(.is-active) .count {
  background: transparent;
  color: var(--c-sub);
  border: 1px solid var(--c-line);
}
.media-cats a:hover .count {
  background: var(--c-black);
  color: #f2f2f2;
  border-color: var(--c-black);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 3.5vw, 56px);
}
.media-card { display: block; }
.media-card .thumb {
  aspect-ratio: 16 / 10;
  background: var(--c-bg-soft);
  overflow: hidden;
  margin-bottom: 24px;
}
.media-card .thumb-inner {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.media-card:hover .thumb-inner { transform: scale(1.04); }
.media-card .meta {
  display: flex;
  gap: 16px;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-sub);
  margin-bottom: 14px;
}
.media-card h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--c-black);
  line-height: 1.8;
}
.media-foot { text-align: center; margin-top: clamp(60px, 7vw, 100px); }

@media (max-width: 800px) {
  .media-grid { grid-template-columns: 1fr; }
}

/* =========================================
   Pickup Project (editorial layout)
========================================= */
.pickup { background: var(--c-bg); }
.pickup-list {
  display: flex;
  flex-direction: column;
  gap: clamp(80px, 10vw, 160px);
}
.pickup-item {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.pickup-item.alt { grid-template-columns: 1fr 1.15fr; }
.pickup-item.alt .pickup-image { order: 2; }
.pickup-item.alt .pickup-info { order: 1; }
.pickup-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--c-bg-soft);
}
.pickup-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.8,.2,1);
}
.pickup-item:hover .pickup-image img { transform: scale(1.04); }
.pickup-image .num {
  position: absolute;
  top: clamp(16px, 2vw, 28px);
  left: clamp(16px, 2vw, 28px);
  font-family: var(--font-en);
  font-size: clamp(36px, 4vw, 64px);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #f2f2f2;
  line-height: 1;
  z-index: 2;
  text-shadow: 0 2px 18px rgba(0,0,0,0.3);
}
.pickup-info .pickup-no {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--c-sub);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.pickup-info .pickup-no::after {
  content: '';
  width: 36px; height: 1px;
  background: var(--c-sub);
}
.pickup-info h3 {
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--c-black);
  margin-bottom: 28px;
}
.pickup-info .desc {
  font-size: 14px;
  line-height: 2;
  color: var(--c-text);
  margin-bottom: 32px;
  max-width: 520px;
}
.pickup-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
  margin-bottom: 36px;
}
.pickup-tags .tag {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-sub);
}
.pickup-tags .tag + .tag::before {
  content: ' / ';
  color: var(--c-line);
  margin: 0 10px;
}
.pickup-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  border-top: 1px solid var(--c-line);
  padding-top: 24px;
}
.pickup-meta .client {
  font-size: 12px;
  color: var(--c-sub);
  letter-spacing: 0.06em;
}
.pickup-meta .client strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-black);
  margin-top: 4px;
  letter-spacing: 0.04em;
}
.pickup-meta .view {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-black);
  white-space: nowrap;
}
.pickup-meta .view::after {
  content: '';
  width: 28px; height: 1px;
  background: var(--c-black);
  transition: width .3s ease;
}
.pickup-item:hover .pickup-meta .view::after { width: 44px; }

@media (max-width: 800px) {
  .pickup-item,
  .pickup-item.alt { grid-template-columns: 1fr; gap: 32px; }
  .pickup-item.alt .pickup-image { order: -1; }
  .pickup-item.alt .pickup-info { order: 0; }
}

/* =========================================
   Contact CTA (3-column)
========================================= */
.contact-cta {
  background: var(--c-bg);
  padding: 80px 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
/* contact-cta は 3 カラムなので contact-grid の 4 カラム既定値を上書き */
.contact-cta .contact-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}
.contact-cta .contact-method .contact-btn { min-width: 240px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  align-items: center;
  gap: 0;
}
.contact-intro { padding-right: clamp(32px, 5vw, 80px); }
.contact-intro .en-label {
  font-family: var(--font-en);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--c-black);
  display: block;
  line-height: 1;
  margin-bottom: 16px;
}
.contact-intro .jp-sub {
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--c-text);
  margin-bottom: 40px;
}
.contact-intro .lead {
  font-size: 14px;
  line-height: 2;
  color: var(--c-text);
}
.contact-method {
  text-align: center;
  padding: clamp(24px, 3vw, 40px) clamp(16px, 2.4vw, 36px);
  border-left: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 320px;
  justify-content: center;
}
.contact-method .icon { display: block; width: 44px; height: 44px; margin-bottom: 24px; }
.contact-method .icon svg {
  width: 100%; height: 100%;
  stroke: var(--c-black);
  fill: none;
  stroke-width: 1.5;
}
.contact-method .label {
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--c-text);
  margin-bottom: 28px;
}
.contact-method .divider {
  width: 36px; height: 1px;
  background: var(--c-line);
  margin-bottom: 28px;
}
.contact-method .value,
.contact-method .num {
  font-family: var(--font-en);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--c-black);
  line-height: 1.2;
  margin-bottom: 14px;
}
.contact-method .note,
.contact-method .meta {
  font-size: 12px;
  color: var(--c-sub);
  letter-spacing: 0.06em;
  line-height: 1.8;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-black);
  color: #f2f2f2;
  padding: 22px 56px;
  font-size: 14px;
  letter-spacing: 0.16em;
  min-width: 220px;
  transition: background .3s ease, color .3s ease, opacity .3s ease;
  border: 1px solid var(--c-black);
}
.contact-btn:hover {
  background: transparent;
  color: var(--c-black);
  opacity: 1;
}

@media (max-width: 900px) {
  /* contact-cta は通常 3 カラム指定が優先されるため、ここでも明示的にオーバーライド */
  .contact-grid,
  .contact-cta .contact-grid { grid-template-columns: 1fr !important; }
  .contact-intro { padding-right: 0; margin-bottom: 32px; }
  .contact-method {
    border-left: none;
    border-top: 1px solid var(--c-line);
    min-height: auto;
    /* #1245 SP padding 32→50 */
    padding: 50px 0;
    text-align: center;
  }
  .contact-method .contact-btn { min-width: 240px; }
  /* #1244 SP label margin-bottom 28→20 → #4082/#4083 20→10 */
  .contact-cta .contact-method .label { margin-bottom: 10px; }
  .contact-cta .contact-method .num { margin-bottom: 10px; }   /* #4081 14->10 */
  /* #1943 /about/ SP：contact-cta 上ボーダー除去（border 1 0 1 0 → 0 0 1 0） */
  body.page-id-11981 .contact-cta { border-top-width: 0; }
}

/* =========================================
   Dark-aware sections
========================================= */
.dark-aware {
  position: relative;
  background: var(--c-bg);
  color: var(--c-text);
  transition: background 1.1s cubic-bezier(.6,.1,.2,1), color 1.1s cubic-bezier(.6,.1,.2,1);
}
.dark-aware.is-dark {
  background: #1f2226;
  color: #e8e8e8;
}
.dark-aware.is-dark .section-head .en-label,
.dark-aware.is-dark .section-head h2 {
  color: #f4f4f4;
  transition: color 1.1s cubic-bezier(.6,.1,.2,1);
}
.dark-aware.is-dark .label-link {
  color: #d8d8d8;
  border-bottom-color: #d8d8d8;
}
.dark-aware.is-dark .concept-cta .circle { background: #f2f2f2; }
.dark-aware.is-dark .concept-cta .circle svg { stroke: #1f2226; }
.dark-aware.is-dark .concept-cta:hover .circle { background: #d8d8d8; }

/* =========================================
   Footer
========================================= */
.site-footer {
  --c-line: #4a4a4a;
  --c-text: rgba(255,255,255,0.78);
  --c-sub: rgba(255,255,255,0.6);
  --c-black: #ffffff;
  --c-bg: #333333;
  --c-bg-soft: #3a3a3a;
  color: #ffffff;
  background: #333333;
  /* 2026-06-13 #1531: padding top 80 → 100、bottom は 80 維持 */
  padding: 100px 0 80px;
  border-top: 1px solid var(--c-line);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.footer-cols,
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 80px);
  /* 2026-06-13 #1532: margin-bottom 100 → 0 */
  margin-bottom: 0;
}
.footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.footer-brand .logo { height: 36px; }
.footer-brand p {
  margin-top: 28px;
  font-size: 13px;
  color: var(--c-sub);
  line-height: 2;
}
.footer-col h4 {
  font-family: var(--font-en);
  /* 2026-06-13 #1664/#1665: 16 → 18px */
  font-size: 18px;
  letter-spacing: 0.24em;
  color: var(--c-black);
  margin-bottom: 24px;
  font-weight: 500;
}
.footer-col ul { margin: 0 0 24px; padding: 0; list-style: none; }
.footer-col ul:last-child { margin-bottom: 0; }
.footer-col ul li { margin-bottom: 12px; font-size: 13px; line-height: 1.6; }
.footer-col ul li a { color: var(--c-text); transition: color .2s ease; }
.footer-col ul li a:hover { color: var(--c-black); }
.footer-col h4.sub-h4 {
  /* 2026-06-13 #1533-#1535: font-size 12 → 16、margin 28/0/24/0 → 40/0/15/0
     #1666/#1667: 16 → 18 */
  margin: 40px 0 15px;
  font-size: 18px;
  letter-spacing: 0.22em;
  color: var(--c-sub);
}
.footer-col .industry-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.footer-col .industry-list li { margin-bottom: 8px; font-size: 12px; }

.footer-offices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2026-06-13 #1525: gap 64 → 0 / #1527: border-top 廃止（border-bottom のみ残す）
     #1530: padding 上を 0 に（下のみ 56px 残す）
     #1661/#1663: margin-bottom を 30px に縮小（border-bottom はそのまま） */
  gap: 0;
  border-top: 0;
  border-bottom: 1px solid var(--c-line);
  padding: 0 0 56px;
  margin-bottom: 30px;
}
.footer-office .label {
  font-family: var(--font-en);
  /* 2026-06-13 #1522: 13px → 18px */
  font-size: 18px;
  letter-spacing: 0.24em;
  color: var(--c-black);
  margin-bottom: 14px;
  font-weight: 500;
  display: block;
}
.footer-office .zip {
  font-family: var(--font-en);
  font-size: 14px;
  color: var(--c-sub);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.footer-office .addr {
  font-size: 15px;
  line-height: 2;
  color: var(--c-text);
}
/* #1500 footer: ロゴを上、NAGANO/TOKYO を下に二段構え
   footer-offices をグリッドで「ロゴ行（全幅）+ オフィス2カラム行」に */
.footer-offices {
  grid-template-columns: 1fr 1fr;
}
.footer-offices-logo {
  grid-column: 1 / -1;
  /* 2026-06-13 #1517: 1.5x（32→48px）、上に 80px のスペース
     #1521: 下余白を 1/3 に
     #1524/#1526: border-bottom と padding-bottom を撤去（罫線は親 .footer-offices の border-bottom が担当）*/
  box-sizing: content-box;
  height: 48px;
  width: auto;
  /* 2026-06-13 #1529: margin-bottom を 40px に / #1660: 0 / #1689: 30px に */
  margin: 80px 0 30px;
  padding-bottom: 0;
  border-bottom: 0;
  display: block;
}

.footer-sns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 1.6vw, 22px);
  /* 2026-06-13 #1662: 下マージン 56 → 30 */
  margin-bottom: 30px;
}
.footer-sns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--c-text);
  border-radius: 50%;
  transition: color .25s ease, background .25s ease;
}
.footer-sns a svg {
  width: 20px;
  height: 20px;
  display: block;
}
.footer-sns a:hover {
  color: var(--c-black);
  background: var(--c-bg);
  opacity: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--c-line);
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-sub);
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-offices { grid-template-columns: 1fr; }
}
/* SP：フッターのサイトマップ（4 列のリンク群）は不要 */
@media (max-width: 900px) {
  .site-footer .footer-cols { display: none; }
}
/* 2026-06-14 websupport #1937/#1938/#1940/#1941/#1942（フッター SP） */
@media (max-width: 600px) {
  .footer-offices-logo { margin-top: 0; }                       /* #1937 上 80→0 */
  .footer-offices-logo + .footer-office { margin-bottom: 40px; } /* #1938 1つ目オフィス下に 40px */
  .footer-offices-logo { width: 220px; height: auto; }          /* #1942 幅 266→220（比率維持） */
  .footer-office .zip { font-size: 14px; font-weight: 300; }    /* #1941 13→14 / 400→300 */
  .footer-office .addr { font-size: 14px; font-weight: 300; }   /* #1940 15→14 / 400→300 */
}

/* 2026-06-14 ユーザー指示：SP ではテキストリンクの下線（下罫線）を外す。
   コンテンツ（prose 等）内のリンク下線は維持。CTA/ボタン/ピル（全周ボーダー）は対象外。
   対象：ドロワーのナビ/メニュー項目、本文中テキストリンク、フッター内テキストリンク。 */
@media (max-width: 900px) {
  .gnav > a.nav-link,
  .gnav > .nav-item > .nav-trigger { border-bottom: 0; }            /* ナビ/メニュー（ドロワー）の区切り下線 */
  /* 本文中テキストリンク（例：tone village = .company-group-link）は about-detail.css 側で上書き（後勝ち順のため） */
  .site-footer a:not(.btn):not(.btn-ghost):not(.contact-btn):not(.cta-link):not(.concept-cta) { border-bottom: 0; } /* フッター内テキストリンク（ボタン類は除外） */
}

/* =========================================
   Floating CTA
========================================= */
.float-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  background: var(--c-black);
  color: #f2f2f2;
  padding: 16px 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.18em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .4s ease, transform .4s ease, background .3s ease;
}
.float-cta.show { opacity: 1; transform: translateY(0); }
.float-cta:hover { background: #1f1a16; opacity: 1; }
.float-cta .arrow { width: 16px; height: 1px; background: currentColor; position: relative; }
.float-cta .arrow::after {
  content: '';
  position: absolute; right: 0; top: 50%;
  width: 6px; height: 1px;
  background: currentColor;
  transform: rotate(40deg);
  transform-origin: right center;
}

/* =========================================
   ひらひらわたげ — 全ページの背景に漂う
   JS が body 直下に .ab-drifters を注入し、各 .ab-drifter の
   --dur / --delay / --sway / --peak / scale をランダム生成する
========================================= */
.ab-drifters {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.ab-drifter {
  position: absolute;
  width: clamp(20px, 2vw, 36px);
  height: auto;
  opacity: 0;
  animation: ab-drift-rise var(--dur, 26s) linear infinite;
  animation-delay: var(--delay, 0s);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.06));
}
.ab-drifter svg { width: 100%; height: auto; display: block; }
@keyframes ab-drift-rise {
  0%   { transform: translate3d(0, 110vh, 0) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: var(--peak, 0.55); }
  50%  { transform: translate3d(0, 50vh, 0) translateX(var(--sway, 80px)) rotate(180deg); }
  90%  { opacity: var(--peak, 0.55); }
  100% { transform: translate3d(0, -20vh, 0) translateX(calc(var(--sway, 80px) * -1)) rotate(360deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-drifter { animation: none; opacity: 0; display: none; }
}

/* =========================================
   Reveal animation
========================================= */
.reveal {
  /* 常時可視。アニメーションは廃止（FOUC・静的プレビュー対策のため）。
     旧スクロールリビールは取りやめ、コンテンツを必ず表示する。 */
  opacity: 1;
  transform: none;
}
.reveal.is-pending,
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* =========================================
   Custom cursor (fieldcorp.jp style)
   Small black dot + delayed outline ring
========================================= */
@media (hover: hover) and (pointer: fine) {
  html.has-custom-cursor,
  html.has-custom-cursor body { cursor: none; }
  html.has-custom-cursor a,
  html.has-custom-cursor button,
  html.has-custom-cursor .nav-trigger,
  html.has-custom-cursor input,
  html.has-custom-cursor textarea,
  html.has-custom-cursor select,
  html.has-custom-cursor [role="button"],
  html.has-custom-cursor [data-cursor-hover] { cursor: none; }
  html.has-custom-cursor input[type="text"],
  html.has-custom-cursor input[type="email"],
  html.has-custom-cursor input[type="tel"],
  html.has-custom-cursor textarea { cursor: text; }
}
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform, width, height, opacity;
  mix-blend-mode: difference;
}
.cursor-dot {
  /* 中心ポインターを「わたげ」のシルエットに */
  width: 22px; height: 22px;
  border-radius: 0;
  background: transparent center/contain no-repeat
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23ffffff' stroke-width='1.4' stroke-linecap='round'><line x1='20' y1='6' x2='20' y2='22'/><line x1='8' y1='14' x2='20' y2='22'/><line x1='32' y1='14' x2='20' y2='22'/><line x1='13' y1='7' x2='20' y2='22'/><line x1='27' y1='7' x2='20' y2='22'/><circle cx='20' cy='22' r='1.8' fill='%23ffffff' stroke='none'/><line x1='20' y1='22' x2='20' y2='34' stroke-dasharray='1.5 2'/></svg>");
  transition: width .25s ease, height .25s ease, opacity .25s ease;
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: 50%;
  transition: width .35s cubic-bezier(.2,.8,.2,1),
              height .35s cubic-bezier(.2,.8,.2,1),
              border-color .25s ease,
              opacity .25s ease,
              background .25s ease;
}
/* Hover state — ring expands and absorbs dot */
.cursor-ring.is-hover {
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.08);
}
.cursor-dot.is-hover {
  width: 0; height: 0; opacity: 0;
}
/* Hidden when leaving window */
.cursor-dot.is-hidden,
.cursor-ring.is-hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* =========================================
   Two-column "split" feature block (about-style)
========================================= */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 120px);
  align-items: center;
}
.split-grid.alt .split-visual { order: 2; }
.split-grid.alt .split-body { order: 1; }
.split-visual {
  aspect-ratio: 5 / 6;
  background: var(--c-bg-soft);
  position: relative;
  overflow: hidden;
}
.split-visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.split-body h2 {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--c-black);
  margin-bottom: 32px;
}
.split-body p {
  font-size: 15px;
  line-height: 2.2;
  margin-bottom: 24px;
}
.split-body .btn { margin-top: 20px; }

@media (max-width: 900px) {
  .split-grid { grid-template-columns: 1fr; }
  .split-grid.alt .split-visual { order: -1; }
  .split-grid.alt .split-body { order: 0; }
  .split-visual { aspect-ratio: 4 / 3; }
}

/* =========================================
   FAQ list — clasishome.jp/quality 風 カード型アコーディオン
   - 白カード + 角丸 + 上下のアイテム間 gap
   - .q クリックで .faq-item に .is-open が付き、.a が max-height で開閉
   - ホバー / オープン中はカードが黒背景に反転、Q/A アイコンと +/× が薄い色に
========================================= */
.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.2vw, 16px);
  border-top: 0;
  padding: 0;
  list-style: none;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  overflow: hidden;
  padding: 0;
}
/* 質問（Q トリガー） */
.faq-item .q {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 2vw, 28px);
  padding: clamp(20px, 2.4vw, 30px) clamp(48px, 5.4vw, 72px) clamp(20px, 2.4vw, 30px) clamp(20px, 2.4vw, 36px);
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--c-black);
  background: #fff;
  transition: background .3s ease, color .3s ease;
  user-select: none;
  margin: 0;
}
.faq-item .q::before {
  content: 'Q';
  flex-shrink: 0;
  font-family: var(--font-en);
  font-weight: 300;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1;
  color: var(--c-sub);
  transition: color .3s ease;
  margin-top: 2px;
}
/* +/× トグルアイコン */
.faq-item .q::after {
  content: '';
  position: absolute;
  right: clamp(20px, 2.6vw, 32px);
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background:
    linear-gradient(currentColor, currentColor) center/100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center/1.5px 100% no-repeat;
  color: var(--c-sub);
  transition: transform .35s cubic-bezier(.4,0,.2,1), color .3s ease;
}
.faq-item.is-open .q::after {
  transform: rotate(45deg);   /* + → × */
}
/* ホバー / オープン状態：黒背景 + 白文字 */
.faq-item .q:hover,
.faq-item.is-open .q {
  background: var(--c-black);
  color: #fff;
}
.faq-item .q:hover::before,
.faq-item .q:hover::after,
.faq-item.is-open .q::before,
.faq-item.is-open .q::after {
  color: rgba(255,255,255,0.6);
}
/* 回答（A パネル） — 通常は閉じている */
.faq-item .a {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 2vw, 28px);
  padding: 0 clamp(20px, 2.4vw, 36px);
  max-height: 0;
  overflow: hidden;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--c-text);
  background: #fff;
  margin: 0;
  transition: max-height .4s cubic-bezier(.4,0,.2,1),
              padding .4s cubic-bezier(.4,0,.2,1);
}
.faq-item.is-open .a {
  max-height: 1200px;
  padding: clamp(20px, 2.4vw, 28px) clamp(20px, 2.4vw, 36px) clamp(22px, 2.6vw, 32px);
}
.faq-item .a::before {
  content: 'A';
  flex-shrink: 0;
  font-family: var(--font-en);
  font-weight: 300;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1;
  color: var(--c-sub);
  margin-top: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .faq-item .q,
  .faq-item .q::after,
  .faq-item .a { transition: none; }
}

/* =========================================
   Scroll-driven photo shrink (sandesica/konokoe 風)
   写真がスクロールに応じて、その下のコンテナ幅に合わせるように小さくなる演出。
   ラッパーごと scale するので、白い縁は出ない（page bg が透けて見える形）。
   - .scroll-shrink を要素に付与、または body.enable-scroll-shrink で
     .sd-photo-band/.photo-band/.rc-photo-band に自動適用される。
   - JS が scroll progress を 0..1 として --shrink に書き込む。
========================================= */
.scroll-shrink {
  transform-origin: center 30%;
  will-change: transform;
  transition: transform .25s linear;
}
.scroll-shrink.is-shrinking {
  transform: scale(calc(1 - 0.08 * var(--shrink, 0)));
}
@media (prefers-reduced-motion: reduce) {
  .scroll-shrink, .scroll-shrink.is-shrinking { transform: none; }
}

/* Photo bands: scale the wrapper itself (not just the img). 縮小時の周りの色は
   白を出したい（page bg / セクション bg が見えると枠っぽく見えるので透けさせない）。
   親セクションに白い背景帯を出すため、:has() で photo-band を含むセクションを白く塗る。 */
body.enable-scroll-shrink .sd-photo-band,
body.enable-scroll-shrink .photo-band,
body.enable-scroll-shrink .rc-photo-band,
body.enable-scroll-shrink .post-feature .frame,
body.enable-scroll-shrink .work-shot .frame {
  transform-origin: center 65%;
  transition: transform .3s linear;
  will-change: transform;
  background: #ffffff !important;
  position: relative;
}
/* 旧: 写真バンド縮小中に外側を box-shadow で白く広げる演出。
   ただし 100vw の白塗りが前後のセクション（h2 / 本文）を覆い隠してしまうため廃止。
   scale 縮小演出はそのまま生かす。 */
body.enable-scroll-shrink .sd-photo-band.is-shrinking,
body.enable-scroll-shrink .photo-band.is-shrinking,
body.enable-scroll-shrink .rc-photo-band.is-shrinking,
body.enable-scroll-shrink .post-feature .frame.is-shrinking,
body.enable-scroll-shrink .work-hero .frame.is-shrinking,
body.enable-scroll-shrink .work-shot .frame.is-shrinking {
  transform: scale(calc(1 - 0.13 * var(--shrink, 0)));
}
/* voice 詳細ではスクロール縮小演出を無効化 */
body.single-voice .post-feature .frame,
body.single-voice .post-feature .frame.is-shrinking { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  body.enable-scroll-shrink .sd-photo-band,
  body.enable-scroll-shrink .photo-band,
  body.enable-scroll-shrink .rc-photo-band,
  body.enable-scroll-shrink .post-feature .frame,
  body.enable-scroll-shrink .work-hero .frame,
  body.enable-scroll-shrink .work-shot .frame { transform: none !important; }
}
/* SP では縮小演出を無効化（小画面で縮小すると上下の余白が目立ちすぎる） */
@media (max-width: 900px) {
  body.enable-scroll-shrink .sd-photo-band,
  body.enable-scroll-shrink .photo-band,
  body.enable-scroll-shrink .rc-photo-band,
  body.enable-scroll-shrink .post-feature .frame,
  body.enable-scroll-shrink .work-hero .frame,
  body.enable-scroll-shrink .work-shot .frame {
    transform: none !important;
    transition: none !important;
  }
  body.enable-scroll-shrink .sd-photo-band::before,
  body.enable-scroll-shrink .photo-band::before,
  body.enable-scroll-shrink .rc-photo-band::before { display: none; }
}

/* =========================================
   Page TOC (sticky right rail, fieldcorp.jp style)
   - Add `.has-page-toc` to <body> on long pages
   - Use <nav class="page-toc"><ol><li><a href="#id">…</a></li>…</ol></nav>
   - Sections need matching id="…"
========================================= */
/* Pill at bottom-left: shows the current section title with a small "01 / 07"
   counter. Hover (or focus) to expand into a vertical list of all sections. */
.page-toc {
  position: fixed;
  left: clamp(20px, 3vw, 40px);
  bottom: clamp(20px, 3vw, 40px);
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s ease, transform .5s ease;
  transform: translateY(8px);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--c-line);
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  max-width: min(420px, 90vw);
}
.page-toc.is-ready {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.page-toc::before { content: none; }

/* Collapsed state: shows compact "INDEX / 02 / 07 — 現在のセクション名" */
.page-toc-current {
  display: flex; align-items: center;
  gap: 14px;
  padding: 14px 22px;
  cursor: pointer;
  user-select: none;
}
.page-toc-current .label-en {
  font-family: var(--font-en);
  font-size: 12px; letter-spacing: 0.28em;
  color: var(--c-sub);
}
.page-toc-current .counter {
  font-family: var(--font-en);
  font-size: 12px; letter-spacing: 0.18em;
  color: var(--c-black);
  display: inline-flex; gap: 6px;
}
.page-toc-current .counter .total { color: var(--c-sub); }
.page-toc-current .divider { width: 1px; height: 14px; background: var(--c-line); }
.page-toc-current .title {
  font-size: 13px; letter-spacing: 0.06em;
  color: var(--c-black); font-weight: 500;
  max-width: 220px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.page-toc-current .chev {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: auto;
}
.page-toc-current .chev::before {
  content: '';
  width: 6px; height: 6px;
  border-top: 1px solid var(--c-black);
  border-right: 1px solid var(--c-black);
  transform: rotate(-45deg) translate(2px, -2px);
  transition: transform .25s ease;
}
.page-toc.is-open .page-toc-current .chev::before {
  transform: rotate(135deg) translate(-2px, -2px);
}

/* Expanded list: hidden by default, shown when .is-open */
.page-toc ol {
  list-style: none;
  margin: 0; padding: 0;
  border-top: 1px solid var(--c-line);
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,.0,.2,1);
}
.page-toc.is-open ol {
  max-height: min(60vh, 540px);
  overflow-y: auto;
}
.page-toc li {
  position: relative;
}
.page-toc li + li { border-top: 1px solid var(--c-line); }
.page-toc li a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--c-text);
  transition: background .25s ease, color .25s ease;
}
.page-toc li a:hover {
  background: var(--c-bg);
  color: var(--c-black);
}
.page-toc li a .num {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-sub);
  flex-shrink: 0;
  min-width: 22px;
}
.page-toc li a .label {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.page-toc li.is-active a {
  background: var(--c-bg);
  color: var(--c-black);
  font-weight: 500;
}
.page-toc li.is-active a .num { color: var(--c-black); }
.page-toc li.is-active::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--c-black);
}

/* Smaller screens: reduce footprint */
@media (max-width: 700px) {
  .page-toc { left: 12px; bottom: 12px; }
  .page-toc-current { padding: 12px 16px; gap: 10px; }
  .page-toc-current .title { max-width: 140px; font-size: 12px; }
  .page-toc-current .label-en { display: none; }
  .page-toc li a { padding: 10px 16px; }
  .page-toc.is-open ol { max-height: 50vh; }
}

/* =========================================
   2026-05-05 改：右レール sticky TOC
   fieldcorp.jp/about/ の c-pageLink--fixed に倣った右側スティッキーレール。
   従来の左下ピル UI を完全に上書きし、has-page-toc-auto が付いたページで適用。
   - 各項目：横線（短）+ 英数字 + 日本語ラベル
   - is-active：横線が伸び、文字色が黒に
========================================= */
/* 2026-05-05 改：左下に格納したコンパクトなアコーディオン UI へ。
   通常時は INDEX ラベル + 現在のセクション名 1 行のみ表示。
   ホバー / クリックで展開、is-bouncing で軽く上下に動いて目を引く。 */
body.has-page-toc-auto .page-toc {
  position: fixed;
  left: clamp(16px, 2vw, 28px);
  bottom: 40px;
  top: auto;
  right: auto;
  transform: none;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border: 1px solid var(--c-line);
  border-radius: 4px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  max-width: min(360px, calc(100vw - 32px));
  padding: 0;
  pointer-events: auto;
  overflow: hidden;
}
body.has-page-toc-auto .page-toc.is-ready { transform: none; opacity: 1; }
/* 軽く上下に揺れて目を引く（is-bouncing クラスを JS で付与） */
@keyframes pageTocBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
body.has-page-toc-auto .page-toc.is-bouncing {
  animation: pageTocBounce 1.4s cubic-bezier(.4,.0,.2,1) infinite;
}
body.has-page-toc-auto .page-toc.is-open.is-bouncing { animation: none; }

/* ピル UI（INDEX / ◯◯ — タイトル）= 折りたたみ時のヘッダー */
body.has-page-toc-auto .page-toc-current {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
  background: transparent;
}
body.has-page-toc-auto .page-toc-current .label-en {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--c-sub);
  flex-shrink: 0;
}
body.has-page-toc-auto .page-toc-current .counter,
body.has-page-toc-auto .page-toc-current .divider { display: none; }
body.has-page-toc-auto .page-toc-current .title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--c-black);
  font-weight: 500;
  max-width: 200px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
}
body.has-page-toc-auto .page-toc-current .chev {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
body.has-page-toc-auto .page-toc-current .chev::before {
  content: '';
  width: 6px; height: 6px;
  border-top: 1px solid var(--c-black);
  border-right: 1px solid var(--c-black);
  transform: rotate(-45deg) translate(-1px, 1px);
  transition: transform .25s ease;
}
body.has-page-toc-auto .page-toc.is-open .page-toc-current .chev::before {
  transform: rotate(135deg) translate(-1px, 1px);
}

/* 展開時の OL */
body.has-page-toc-auto .page-toc ol {
  border-top: 1px solid var(--c-line) !important;
  max-height: 0 !important;
  overflow-y: auto !important;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin: 0;
  transition: max-height .35s cubic-bezier(.4,.0,.2,1);
}
body.has-page-toc-auto .page-toc.is-open ol {
  max-height: min(60vh, 480px) !important;
}
body.has-page-toc-auto .page-toc li { border: 0 !important; }
body.has-page-toc-auto .page-toc li + li { border-top: 1px solid var(--c-line) !important; }
body.has-page-toc-auto .page-toc li::before { display: none !important; }
body.has-page-toc-auto .page-toc li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: transparent !important;
  color: var(--c-text);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: color .25s ease, background .25s ease;
}
body.has-page-toc-auto .page-toc li a:hover {
  background: var(--c-bg) !important;
  color: var(--c-black);
}
body.has-page-toc-auto .page-toc li a .num {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-sub);
  flex-shrink: 0;
  min-width: 20px;
}
body.has-page-toc-auto .page-toc li a .label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: inherit;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
body.has-page-toc-auto .page-toc li.is-active a {
  background: var(--c-bg) !important;
  color: var(--c-black);
  font-weight: 500;
}
body.has-page-toc-auto .page-toc li.is-active a .num { color: var(--c-black); }

/* タブレット幅以下では非表示 */
@media (max-width: 700px) {
  body.has-page-toc-auto .page-toc { display: none !important; }
}

/* =========================================
   Subpage sidebar (fieldcorp.jp 風 2カラム)
   - body[data-sibling-nav] に対して JS が <aside.subpage-sidebar> を注入する。
   - Desktop: 左 280px の固定カラム + body 全体に padding-left。
   - SP: サイドバーがインライン上部に来る。
========================================= */
:root { --subnav-w: clamp(220px, 18vw, 260px); }

@media (min-width: 901px) {
  body.has-sibling-nav { padding-left: var(--subnav-w); }
  body.has-sibling-nav .site-header > .header-inner {
    padding-left: calc(var(--subnav-w) + var(--pad-x));
  }
  body.has-sibling-nav .float-cta { right: clamp(20px, 3vw, 40px); }

  .subpage-sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--subnav-w);
    height: 100vh;
    height: 100dvh;
    padding: clamp(110px, 14vh, 140px) clamp(20px, 2vw, 32px) 32px;
    background: var(--c-bg-soft);
    border-right: 1px solid var(--c-line);
    overflow-y: auto;
    z-index: 80;
  }
}
@media (max-width: 900px) {
  .subpage-sidebar {
    padding: 24px var(--pad-x);
    background: var(--c-bg-soft);
    border-bottom: 1px solid var(--c-line);
  }
}

.subpage-sidebar .group-label {
  display: block;
  font-family: var(--font-en);
  font-size: 12px; letter-spacing: 0.28em;
  color: var(--c-sub);
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--c-line);
}
.subpage-sidebar .group-label .group-jp {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px; letter-spacing: 0.06em;
  color: var(--c-text);
  margin-top: 6px;
}
.subpage-sidebar ul { list-style: none; padding: 0; margin: 0; }
.subpage-sidebar li { margin: 0; }
.subpage-sidebar li a {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--c-sub);
  position: relative;
  transition: color .25s ease, padding-left .3s ease;
  line-height: 1.5;
}
.subpage-sidebar li a::before {
  content: ''; width: 0; height: 1px;
  background: currentColor; flex-shrink: 0;
  transition: width .3s ease;
  margin-right: 0;
}
.subpage-sidebar li a:hover { color: var(--c-black); }
.subpage-sidebar li a:hover::before { width: 16px; margin-right: 6px; }
.subpage-sidebar li.is-current a { color: var(--c-black); font-weight: 500; }
.subpage-sidebar li.is-current a::before { width: 24px; background: var(--c-black); margin-right: 6px; }

/* Group separator inside sidebar (e.g. when listing CATCH UP / DESIGN groups) */
.subpage-sidebar .nav-group + .nav-group {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--c-line);
}
.subpage-sidebar .nav-group h4 {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--c-sub);
  margin-bottom: 10px;
}

/* Hide redundant horizontal tabs (rc-tabs) on pages that have a sidebar instead */
body.has-sibling-nav .rc-tabs { display: none; }

/* Adjust .page-toc position when sidebar is open so it doesn't overlap */
@media (min-width: 901px) {
  body.has-sibling-nav .page-toc { left: calc(var(--subnav-w) + clamp(20px, 3vw, 40px)); }
}

/* Auto-built TOC for service-detail / industry pages
   - Body class `has-page-toc-auto` triggers JS to scan sections and build .page-toc
   - Identical visual behavior as fieldcorp .c-pageLink--fixed
*/

/* =========================================
   Tag / Meta
========================================= */
.tag-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-sub);
  border: 1px solid var(--c-line);
  padding: 6px 14px;
  border-radius: 999px;
}

/* =========================================================
   Process Horizontal Slider — homepage PROCESS / design-concept process
   isuru-baby aboutus 風の写真+テキスト横スクロールスナップ
========================================================= */
.proc-slider {
  position: relative;
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding: 0;
}
.proc-slider .proc-viewport {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-padding-left: clamp(24px, 6vw, 112px);
}
.proc-slider .proc-viewport::-webkit-scrollbar { display: none; }
.proc-slider .proc-track {
  display: flex;
  gap: clamp(24px, 3vw, 48px);
  padding: 0 clamp(24px, 6vw, 112px);
  align-items: stretch;
}
.proc-slide {
  flex: 0 0 min(720px, 80vw);
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 56px);
  align-items: center;
}
.proc-slide .img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--c-bg-soft);
}
.proc-slide .img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(.2,.8,.2,1);
}
.proc-slide:hover .img img { transform: scale(1.04); }
.proc-slide .body { padding: clamp(8px, 1vw, 16px) 0; }
.proc-slide .body .num {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--c-sub);
  display: block;
  margin-bottom: 12px;
}
.proc-slide .body .en {
  font-family: var(--font-en);
  font-style: normal;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--c-sub);
  margin-bottom: 14px;
  display: block;
  text-transform: uppercase;
}
.proc-slide .body h3 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--c-black);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-line);
  line-height: 1.6;
}
.proc-slide .body p {
  font-size: 14px;
  line-height: 2.2;
  letter-spacing: 0.06em;
  color: var(--c-text);
}

/* Controls */
.proc-controls {
  margin: clamp(40px, 5vw, 64px) auto 0;
  padding: 0 clamp(24px, 6vw, 112px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 40px);
}
.proc-arrow {
  width: 56px; height: 56px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: background .25s ease, border-color .25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.proc-arrow:hover { background: var(--c-black); border-color: var(--c-black); }
.proc-arrow:hover::before { border-color: #fff; }
.proc-arrow:disabled { opacity: 0.3; cursor: not-allowed; }
.proc-arrow:disabled:hover { background: transparent; border-color: var(--c-line); }
.proc-arrow:disabled:hover::before { border-color: var(--c-black); }
.proc-arrow::before {
  content: '';
  width: 8px; height: 8px;
  border-top: 1px solid var(--c-black);
  border-right: 1px solid var(--c-black);
  transition: border-color .25s ease;
}
.proc-arrow.prev::before { transform: rotate(-135deg) translate(-2px, -2px); }
.proc-arrow.next::before { transform: rotate(45deg) translate(-2px, -2px); }
.proc-dots {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}
.proc-dot {
  width: 28px; height: 1px;
  background: var(--c-line);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .3s ease, width .3s ease;
}
.proc-dot.is-active { background: var(--c-black); width: 48px; }

@media (max-width: 800px) {
  .proc-slide { flex: 0 0 88vw; grid-template-columns: 1fr; gap: 24px; }
  .proc-slide .img { aspect-ratio: 16 / 11; }
  .proc-arrow { width: 44px; height: 44px; }
  .proc-arrow::before { width: 6px; height: 6px; }
}

/* =========================================================
   Chat widget — 画面右下のゆるっと相談（雑談）チャット
   AIっぽく見せかけているが、内部はキーワードマッチの返答。
========================================================= */
.chat-widget {
  position: fixed;
  right: clamp(20px, 3vw, 32px);
  bottom: clamp(20px, 3vh, 32px);
  z-index: 90;
  font-family: var(--font-jp);
}

/* FAB（折りたたみ時のボタン） */
.chat-fab {
  appearance: none;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 8px 18px 8px 8px;
  display: inline-flex; align-items: center; gap: 12px;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(20, 20, 20, 0.08);
  transition: transform .25s ease, box-shadow .25s ease, opacity .3s ease;
  color: var(--c-black);
  position: relative;
}
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(20,20,20,0.12); }
.chat-fab-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--c-bg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: var(--c-black);
  flex-shrink: 0;
}
.chat-fab-avatar svg { width: 36px; height: auto; max-height: 44px; }
.chat-fab-avatar img { width: 100%; height: 100%; object-fit: contain; }
.chat-fab-avatar .chat-character-svg { display: block; }
.chat-fab-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-text);
}
.chat-fab-bubble {
  position: absolute;
  top: -6px; right: -6px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c-black);
  color: #fff;
  font-size: 12px;
  font-family: var(--font-en);
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0;
  animation: chat-bubble-pulse 2.4s ease-in-out infinite;
}
@keyframes chat-bubble-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}
.chat-widget.is-open .chat-fab { opacity: 0; pointer-events: none; transform: translateY(8px); }

/* パネル */
.chat-panel {
  position: absolute;
  right: 0; bottom: 0;
  width: min(360px, calc(100vw - 32px));
  height: min(540px, calc(100vh - 160px));
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(20, 20, 20, 0.12);
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0; pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transition: opacity .3s ease, transform .3s cubic-bezier(.2,.8,.2,1);
}
.chat-widget.is-open .chat-panel {
  opacity: 1; pointer-events: auto;
  transform: translateY(0) scale(1);
}

.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 14px 16px 18px;
  border-bottom: 1px solid var(--c-line);
}
.chat-head-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-bg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: var(--c-black);
  flex-shrink: 0;
}
.chat-head-avatar svg { width: 30px; height: auto; max-height: 38px; }
.chat-head-avatar img { width: 100%; height: 100%; object-fit: contain; }
.chat-head-meta { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.chat-head-meta .name {
  font-size: 14px; font-weight: 500;
  color: var(--c-black); letter-spacing: 0.06em;
}
.chat-head-meta .role {
  font-size: 12px; color: var(--c-sub);
  letter-spacing: 0.08em;
}
.chat-close {
  appearance: none;
  background: transparent; border: none;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-sub);
  cursor: pointer;
  transition: color .25s ease;
}
.chat-close:hover { color: var(--c-black); }
.chat-close svg { width: 18px; height: 18px; }

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--c-bg);
  scrollbar-width: thin;
}
.chat-log::-webkit-scrollbar { width: 6px; }
.chat-log::-webkit-scrollbar-thumb { background: var(--c-line); border-radius: 3px; }

.chat-msg {
  display: flex; gap: 10px;
  align-items: flex-end;
  max-width: 100%;
  opacity: 0;
  transform: translateY(8px);
  animation: chat-msg-in .35s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes chat-msg-in {
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg .av {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--c-line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  color: var(--c-black);
}
.chat-msg .av svg { width: 22px; height: auto; max-height: 28px; }
.chat-msg .av img { width: 100%; height: 100%; object-fit: contain; }
.chat-msg .bubble {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: var(--c-text);
  background: #fff;
  border-radius: 14px 14px 14px 4px;
  border: 1px solid var(--c-line);
  max-width: calc(100% - 38px);
  min-width: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
}
.chat-msg.user {
  flex-direction: row-reverse;
}
.chat-msg.user .av { display: none; }
.chat-msg.user .bubble {
  background: var(--c-black);
  color: #fff;
  border-color: var(--c-black);
  border-radius: 14px 14px 4px 14px;
}

.chat-msg.typing .bubble {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.chat-msg.typing .bubble span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--c-sub);
  animation: chat-typing 1s infinite ease-in-out;
}
.chat-msg.typing .bubble span:nth-child(2) { animation-delay: 0.15s; }
.chat-msg.typing .bubble span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-3px); }
}

.chat-form {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 12px 14px;
  border-top: 1px solid var(--c-line);
  background: #fff;
}
.chat-form input {
  flex: 1;
  appearance: none;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-family: inherit;
  color: var(--c-text);
  background: var(--c-bg);
  letter-spacing: 0.04em;
  transition: border-color .25s ease;
}
.chat-form input:focus {
  outline: none;
  border-color: var(--c-black);
}
.chat-form button {
  appearance: none;
  background: var(--c-black);
  color: #fff;
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}
.chat-form button:hover { opacity: 0.85; }
.chat-form button:active { transform: scale(0.94); }
.chat-form button svg { width: 18px; height: 18px; }

/* スマホでは画面ほぼ全面のパネル。viewport から fixed で位置指定して
   chat-widget の position に依存しないようにする */
@media (max-width: 600px) {
  .chat-widget {
    right: 12px;
    bottom: 16px;
  }
  .chat-panel {
    position: fixed;
    inset: 16px 12px 76px 12px;
    width: auto;
    height: auto;
    max-height: none;
    border-radius: 14px;
  }
  .chat-fab-label { display: none; }
  .chat-fab { padding: 6px; }
  .chat-fab-avatar { width: 44px; height: 44px; }
  .chat-fab-avatar svg { width: 30px; }
  .chat-head { padding: 14px 12px 14px 16px; }
  .chat-head-avatar { width: 36px; height: 36px; }
  .chat-head-meta .name { font-size: 13px; }
  .chat-head-meta .role { font-size: 12px; }
  .chat-log { padding: 14px 12px; gap: 12px; }
  .chat-msg .bubble { font-size: 13px; padding: 9px 13px; }
  .chat-form { padding: 10px 10px 12px; gap: 8px; }
  .chat-form input {
    padding: 9px 14px;
    font-size: 13px;
    min-width: 0;
  }
  .chat-form button {
    width: 42px;
    height: 42px;
    min-width: 42px;
    flex: 0 0 42px;
    padding: 0;
    aspect-ratio: 1 / 1;
  }
  .chat-form button svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
  /* メッセージバブルが SP で内側 padding 不足にならないよう */
  .chat-msg .bubble {
    max-width: calc(100% - 34px);
    padding: 10px 13px;
    font-size: 13px;
    line-height: 1.8;
  }
  .chat-msg.user .bubble {
    max-width: calc(100% - 12px);
  }
}

/* =========================================================
   /contact/ ページ専用 — page-templates/contact.php で使用
========================================================= */
/* Sales notice 帯 */
.contact-sales-notice {
  background: transparent;
  padding: 0 0 clamp(80px, 10vw, 128px);
}
.contact-sales-notice .container-narrow {
  /* #1801 padding 36→50 / #1800 内部テキスト幅 848→940 にするため max-width も 920→1040（940 + 50×2） */
  max-width: 1040px;
  margin: 0 auto;
  padding: 50px;
  background: var(--c-bg-soft);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.18), 0 2px 6px -3px rgba(0, 0, 0, 0.08);
  text-align: center;
}
.contact-sales-notice .en {
  display: block;
  font-family: var(--font-en);
  font-size: 28px; letter-spacing: 0.24em;
  color: var(--c-sub);
  margin-bottom: 14px;
}
.contact-sales-notice p {
  font-size: 14px; line-height: 2.0; /* #1800 13→14px / line-height 2.0×14=28px */
  color: var(--c-text);
  letter-spacing: 0.04em;
  margin: 0 0 20px;
}
.contact-sales-notice .sales-link {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 24px;
  border: 1px solid var(--c-black);
  border-radius: 999px;
  font-size: 12px; letter-spacing: 0.12em;
  color: var(--c-black);
  text-decoration: none;
  transition: background .25s ease, color .25s ease;
}
.contact-sales-notice .sales-link:hover { background: var(--c-black); color: #fff; }
.contact-sales-notice .sales-link .arrow {
  width: 14px; height: 1px; background: currentColor; position: relative;
}
.contact-sales-notice .sales-link .arrow::after {
  content: ''; position: absolute; right: 0; top: -3px;
  width: 6px; height: 6px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

/* 3 WAYS のラッパー（.contact-grid 自体は既存） */
.contact-methods {
  background: var(--c-bg-soft);
  padding-top: clamp(60px, 8vw, 100px);
  padding-bottom: clamp(60px, 8vw, 100px);
}
.contact-methods .contact-grid {
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

/* Form */
.contact-form-wrap {
  background: var(--c-bg-soft);
  padding: 0 0 clamp(80px, 10vw, 140px);
}

/* /contact/sales/ — ご連絡前のお願い ブロック（ミニマル numbered list） */
.sales-please-note {
  background: #ffffff; /* #1802 背景 #333→#fff（中の文字は元々ダークで dark-on-dark だったため白地で可読化） */
  padding: 0 0 120px; /* #4318 下80->120 */
}
.sales-please-note .container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}
.sales-please-note .head {
  text-align: center;
  margin-bottom: clamp(28px, 3.2vw, 44px);
}
.sales-please-note .head .en {
  display: block;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--c-sub);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.sales-please-note .head h2 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--c-black);
  margin: 0;
}
.sales-please-note ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--c-line);
}
.sales-please-note ol li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: clamp(16px, 2vw, 24px);
  align-items: baseline;
  padding: clamp(20px, 2.4vw, 28px) 0;
  border-bottom: 1px solid var(--c-line);
}
.sales-please-note ol li .num {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--c-sub);
  font-weight: 400;
}
.sales-please-note ol li p {
  margin: 0;
  font-size: clamp(13px, 1.05vw, 14px);
  line-height: 2.0;
  color: var(--c-text);
  letter-spacing: 0.06em;
}
@media (max-width: 600px) {
  .sales-please-note ol li {
    grid-template-columns: 48px 1fr;
  }
  .sales-please-note ol li .num { font-size: 12px; }
}
.contact-form-wrap .container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}
.contact-form {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px clamp(28px, 4vw, 64px);
  padding-top: 0; /* #1803 上 padding 56→0 */
}
.contact-form .field { display: contents; }
.contact-form .field label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--c-black);
  padding-top: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.contact-form .field label .req,
.contact-form .field label .opt {
  font-size: 12px;
  color: #fff;
  background: var(--c-black);
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 400;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
}
.contact-form .field .input { display: block; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 16px 18px;
  border: 1px solid var(--c-line);
  background: #fafafa;
  color: var(--c-black);
  outline: none;
  border-radius: 4px;
  transition: background .15s ease, border-color .15s ease;
}
.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover { background: #f4f4f4; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  background: #333333;
  border-color: var(--c-black);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #a0a0a0; }
.contact-form textarea {
  min-height: 200px; resize: vertical; line-height: 1.9;
}
.contact-form .check-row { display: flex; flex-direction: column; gap: 12px; }
.contact-form .check-row label.option {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-jp);
  font-size: 14px; letter-spacing: 0.04em;
  color: var(--c-text);
  padding-top: 0; cursor: pointer;
}
.contact-form .check-row input[type="checkbox"] { accent-color: var(--c-black); }
.contact-form .submit-row {
  grid-column: 1 / -1;
  display: flex; justify-content: center;
  margin-top: 32px;
}
.contact-form button[type="submit"] {
  background: var(--c-black);
  color: #fff;
  border: 1px solid var(--c-black);
  padding: 28px 110px;
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 999px;
}
.contact-form button[type="submit"]:hover { background: transparent; color: var(--c-black); }
@media (max-width: 700px) {
  .contact-form { grid-template-columns: 1fr; }
  .contact-form .field label { padding-top: 0; padding-bottom: 6px; }
}

/* ============================================
   2026-05-05: Contact Form 7 を /contact/sales/ の .contact-form と同一レイアウトに揃える
   （ラベル左 220px / 入力右 1fr の 2 カラム grid + .field { display: contents }）
============================================ */
.contact-form-wrap .wpcf7 { margin: 0 auto; max-width: 880px; }
.contact-form-wrap .wpcf7-form {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px clamp(28px, 4vw, 64px);
  border-top: 0;
  padding-top: clamp(32px, 4vw, 56px);
}
.contact-form-wrap .wpcf7-form > .cf7-field {
  display: contents;
}
.contact-form-wrap .wpcf7-form > .cf7-field > label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--c-black);
  padding-top: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.contact-form-wrap .wpcf7-form > .cf7-field > label .req {
  font-size: 12px;
  color: #fff;
  background: var(--c-black);
  letter-spacing: 0.06em;
  font-family: 'Noto Sans JP', sans-serif;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 400;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
}
.contact-form-wrap .wpcf7-form > .cf7-field > label .opt {
  font-size: 12px;
  color: #fff;
  background: var(--c-black);
  letter-spacing: 0.06em;
  font-family: 'Noto Sans JP', sans-serif;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 400;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
}
/* CF7 が生成する wpcf7-form-control-wrap を右カラムとして展開（境界線は input 側で表現） */
.contact-form-wrap .wpcf7-form > .cf7-field > .wpcf7-form-control-wrap,
.contact-form-wrap .wpcf7-form > .cf7-field > p {
  display: block;
}
/* 入力要素：明確な枠＋背景＋大きめ padding でクリック可能領域を視認しやすく */
.contact-form-wrap .wpcf7-form input[type="text"],
.contact-form-wrap .wpcf7-form input[type="email"],
.contact-form-wrap .wpcf7-form input[type="tel"],
.contact-form-wrap .wpcf7-form select,
.contact-form-wrap .wpcf7-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 16px 18px;
  border: 1px solid var(--c-line);
  background: #fafafa;
  color: var(--c-black);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 4px;
  box-shadow: none;
  letter-spacing: 0.04em;
  transition: background .15s ease, border-color .15s ease;
}
.contact-form-wrap .wpcf7-form input[type="text"]:hover,
.contact-form-wrap .wpcf7-form input[type="email"]:hover,
.contact-form-wrap .wpcf7-form input[type="tel"]:hover,
.contact-form-wrap .wpcf7-form select:hover,
.contact-form-wrap .wpcf7-form textarea:hover {
  background: #f4f4f4;
}
.contact-form-wrap .wpcf7-form input[type="text"]:focus,
.contact-form-wrap .wpcf7-form input[type="email"]:focus,
.contact-form-wrap .wpcf7-form input[type="tel"]:focus,
.contact-form-wrap .wpcf7-form select:focus,
.contact-form-wrap .wpcf7-form textarea:focus {
  background: #333333;
  border-color: var(--c-black);
}
.contact-form-wrap .wpcf7-form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='%23666'><polygon points='0,0 12,0 6,8'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 12px 8px;
  padding-right: 44px;
  cursor: pointer;
}
.contact-form-wrap .wpcf7-form input::placeholder,
.contact-form-wrap .wpcf7-form textarea::placeholder { color: #a0a0a0; }
.contact-form-wrap .wpcf7-form textarea {
  min-height: 200px;
  resize: vertical;
  line-height: 1.9;
}
/* チェックボックス（連絡手段）— 縦並び */
.contact-form-wrap .wpcf7-form .wpcf7-checkbox {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-form-wrap .wpcf7-form .wpcf7-checkbox .wpcf7-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.contact-form-wrap .wpcf7-form .wpcf7-checkbox .wpcf7-list-item-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--c-text);
  line-height: 1.4;
  cursor: pointer;
}
.contact-form-wrap .wpcf7-form input[type="checkbox"] {
  accent-color: var(--c-black);
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
}
/* 送信ボタン */
.contact-form-wrap .wpcf7-form .cf7-submit {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-top: 32px;
}
.contact-form-wrap .wpcf7-form input[type="submit"],
.contact-form-wrap .wpcf7-form button[type="submit"] {
  background: var(--c-black);
  color: #fff;
  border: 1px solid var(--c-black);
  padding: 28px 110px;
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 999px;
}
.contact-form-wrap .wpcf7-form input[type="submit"]:hover,
.contact-form-wrap .wpcf7-form button[type="submit"]:hover {
  background: transparent;
  color: var(--c-black);
}
/* CF7 のレスポンス領域・スピナー */
.contact-form-wrap .wpcf7 .wpcf7-response-output {
  grid-column: 1 / -1;
  margin: 24px 0 0;
  padding: 16px 20px;
  border: 1px solid var(--c-line);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--c-text);
}

/* ============================================
   CF7 ラジオボタン（応募種別など）— チェックボックスと同じ縦並び体裁
============================================ */
.contact-form-wrap .wpcf7-form .wpcf7-radio {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-form-wrap .wpcf7-form .wpcf7-radio .wpcf7-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.contact-form-wrap .wpcf7-form .wpcf7-radio .wpcf7-list-item-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--c-text);
  line-height: 1.4;
  cursor: pointer;
}
.contact-form-wrap .wpcf7-form input[type="radio"] {
  accent-color: var(--c-black);
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
}

/* ============================================
   ポートフォリオURL / 履歴書 など複数行 URL 入力
   ─ サイズを揃えるため独自クラス cf7-multilink を min-height で揃える
============================================ */
.contact-form-wrap .wpcf7-form textarea.cf7-multilink {
  min-height: 100px;
  line-height: 1.7;
}
/* /recruit/entry/ 専用：エントリーフォーム（hero 直下に置くので上に少しだけ呼吸） */
.entry-cf7-wrap { padding: clamp(40px, 5vw, 64px) 0 clamp(80px, 10vw, 140px); }
/* スピナーはフレックスの中央寄せに影響しないよう絶対配置にする（送信ボタンが左に寄るのを防ぐ） */
.contact-form-wrap .wpcf7 .wpcf7-spinner {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  margin: 0;
}
/* バリデーションエラー */
.contact-form-wrap .wpcf7-form .wpcf7-not-valid-tip {
  display: block;
  font-size: 12px;
  color: #c0392b;
  margin-top: 6px;
  letter-spacing: 0.02em;
}
.contact-form-wrap .wpcf7-form .wpcf7-not-valid {
  border-bottom-color: #c0392b !important;
}

@media (max-width: 700px) {
  /* 社長指示 2026-06-27: 項目(フィールド)間40px維持／ラベル↔入力・セレクト間は40の2/3≈27pxに分離（display:contents→flexで個別gat化） */
  .contact-form-wrap .wpcf7-form { display: flex; flex-direction: column; gap: 40px; }
  .contact-form-wrap .wpcf7-form > .cf7-field { display: flex; flex-direction: column; gap: 27px; }
  .contact-form-wrap .wpcf7-form > .cf7-field > label { padding-top: 0; padding-bottom: 0; }
}

/* FLOW timeline */
.flow-block {
  background: var(--c-bg);
  padding: clamp(120px, 14vw, 180px) 0;
}
.flow-list {
  max-width: 920px;
  margin: clamp(64px, 8vw, 100px) auto 0;
  position: relative;
}
.flow-list::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: clamp(120px, 18vw, 220px);
  width: 1px;
  background: var(--c-line);
}
.flow-item {
  display: grid;
  grid-template-columns: clamp(120px, 18vw, 220px) 1fr;
  gap: clamp(40px, 6vw, 80px);
  padding: clamp(36px, 5vw, 72px) 0;
  position: relative;
  align-items: start;
}
.flow-item::before {
  content: '';
  position: absolute;
  left: clamp(120px, 18vw, 220px);
  top: clamp(40px, 5.5vw, 80px);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--c-bg);
  border: 1px solid var(--c-black);
  transform: translate(-50%, 0);
  transition: background .4s ease;
}
.flow-item.is-in::before { background: var(--c-black); }
.flow-item .step {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1; letter-spacing: 0.02em;
  color: var(--c-black);
  text-align: right;
  padding-right: clamp(20px, 3vw, 40px);
  position: relative;
}
.flow-item .step .label {
  display: block;
  font-family: var(--font-en);
  font-size: 12px; letter-spacing: 0.32em;
  color: var(--c-sub);
  margin-top: 14px; font-weight: 400;
}
.flow-item .body { padding-left: clamp(20px, 3vw, 40px); }
.flow-item .body .en {
  font-family: var(--font-en);
  font-size: 13px; letter-spacing: 0.28em;
  color: var(--c-sub);
  margin-bottom: 16px;
  display: block;
}
.flow-item .body h3 {
  font-family: var(--font-serif-jp);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500; letter-spacing: 0.08em;
  color: var(--c-black);
  line-height: 1.6;
  margin-bottom: 24px; padding-bottom: 24px;
  border-bottom: 1px solid var(--c-line);
}
.flow-item .body p {
  font-size: 14px; line-height: 2.2;
  letter-spacing: 0.06em;
  color: var(--c-text);
}
@media (max-width: 700px) {
  .flow-list::before { left: 28px; }
  .flow-item {
    grid-template-columns: 56px 1fr;
    gap: 24px;
    padding: 36px 0;
  }
  .flow-item::before { left: 28px; top: 42px; }
  .flow-item .step {
    font-size: 32px;
    text-align: left;
    padding-right: 0;
    line-height: 1.1;
  }
  .flow-item .step .label { display: none; }
  .flow-item .body { padding-left: 0; }
  .flow-item .body h3 {
    font-size: 17px;
    margin-bottom: 16px;
    padding-bottom: 16px;
  }
}

/* page-hero の en-label 用（contact ページの「CONTACT」ラベル） */
.page-hero .en-label {
  font-family: var(--font-en);
  font-size: clamp(12px, 1.2vw, 14px);
  letter-spacing: 0.24em;
  color: var(--c-sub);
  display: block;
  margin-bottom: 14px;
}

/* ==========================================================================
   PAGINATION — シンプル丸アクティブ + 番号 + … + 矢印
   ========================================================================== */
.pagination,
.blog-pagination,
nav.posts-navigation,
.archive-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: clamp(48px, 7vw, 96px) 0 clamp(60px, 9vw, 120px);
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: .04em;
}
.pagination .page-numbers,
.blog-pagination .page-numbers,
.archive-pager .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  border-radius: 999px;
  color: #555;
  background: transparent;
  border: none;
  text-decoration: none;
  transition: background .25s ease, color .25s ease;
}
.pagination .page-numbers:hover,
.blog-pagination .page-numbers:hover,
.archive-pager .page-numbers:hover { color: #1a1a1a; background: rgba(0,0,0,.04); }
.pagination .page-numbers.current,
.blog-pagination .page-numbers.current,
.archive-pager .page-numbers.current {
  background: #ececec;
  color: #1a1a1a;
}
.pagination .page-numbers.dots,
.blog-pagination .page-numbers.dots,
.archive-pager .page-numbers.dots {
  background: transparent;
  color: #aaa;
  cursor: default;
  min-width: 28px;
}
.pagination .page-numbers.dots:hover,
.blog-pagination .page-numbers.dots:hover,
.archive-pager .page-numbers.dots:hover { background: transparent; }
.pagination .page-numbers.prev,
.pagination .page-numbers.next,
.blog-pagination .page-numbers.prev,
.blog-pagination .page-numbers.next,
.archive-pager .page-numbers.prev,
.archive-pager .page-numbers.next {
  font-size: 16px;
  color: #777;
  background: transparent;
  font-family: 'Oswald', sans-serif;
}
.pagination .page-numbers.prev:hover,
.pagination .page-numbers.next:hover,
.blog-pagination .page-numbers.prev:hover,
.blog-pagination .page-numbers.next:hover,
.archive-pager .page-numbers.prev:hover,
.archive-pager .page-numbers.next:hover { color: #1a1a1a; background: rgba(0,0,0,.04); }

/* ==========================================================================
   HEADING REVEAL — 2026-05-05 削除
   左→右に表示されるワイプギミックは廃止。表示は静的に。
   `.is-revealed` クラスは付与され続けるが、clip-path は当てない。
   ========================================================================== */
.section-head .en-label,
.section-head h2,
.section-head .sub,
.page-hero .en-label,
.page-hero h1,
.head-reveal { clip-path: none; transition: none; }

/* =========================================================
   アーカイブ一覧（journal / note / project / topics 等の共通レイアウト）
   旧 inline style を整理して再利用可能にした。
========================================================= */
.archive-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 60px);
}
.archive-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
  padding-bottom: clamp(36px, 4vw, 48px);
  border-bottom: 1px solid var(--c-line);
  text-decoration: none;
  color: inherit;
}
.archive-card .img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--c-bg-soft);
}
.archive-card .img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(.2, .8, .2, 1);
}
.archive-card:hover .img img { transform: scale(1.04); }
.archive-card .meta {
  display: flex; gap: 14px;
  font-family: var(--font-en);
  font-size: 12px; letter-spacing: 0.18em;
  color: var(--c-sub);
  margin-bottom: 12px;
}
.archive-card h3 {
  font-family: var(--font-serif-jp);
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--c-black);
  margin-bottom: 12px;
}
.archive-card p {
  font-size: 13px;
  line-height: 1.95;
  color: var(--c-text);
  letter-spacing: 0.04em;
}
@media (max-width: 700px) {
  .archive-card { grid-template-columns: 1fr; }
}

.archive-empty {
  color: var(--c-sub);
  padding: clamp(40px, 5vw, 64px) 0;
  text-align: center;
}
.pagination-wrap {
  margin-top: 0;
  padding-bottom: 0;
  text-align: center;
}
.section-foot {
  margin-top: clamp(40px, 5vw, 64px);
  text-align: center;
}

/* =========================================================
   Utility classes — 旧 inline style から抽出した汎用ヘルパー
========================================================= */
.u-text-center  { text-align: center; }
.u-pt-section   { padding-top: clamp(40px, 6vw, 80px); }
.u-narrow       { max-width: 760px; margin-inline: auto; }
.u-narrow-880   { max-width: 880px; margin-inline: auto; }
.u-narrow-720   { max-width: 720px; margin-inline: auto; }
.u-bg-soft      { background: var(--c-bg-soft); }
.u-bg           { background: var(--c-bg); }

/* アイキャッチの無い NEWS 記事は 1 カラムに（旧 home.php インライン style から集約） */
.archive-card.has-no-thumb { grid-template-columns: 1fr; }

/* ボット除けの隠しフィールド（旧 contact-sales / recruit インライン style から集約） */
.honeypot { position: absolute; left: -9999px; width: 0; height: 0; opacity: 0; }

/* 本文（editorial）を淡い背景で囲うセクション（旧 page / contact / contact-sales インライン style から集約） */
.editorial-section { background: var(--c-bg-soft); padding: clamp(60px, 10vw, 120px) 0; }
.editorial-section.is-sm { padding: clamp(40px, 5vw, 80px) 0; }
.editorial-section.is-bottom { padding: 0 0 clamp(40px, 5vw, 64px); }

/* 営業お問い合わせフォーム下の注記（旧 contact-sales インライン style から集約） */
.sales-form-note { text-align: center; font-size: 12px; color: var(--c-sub); letter-spacing: 0.06em; margin: 40px 0 0; }
.sales-form-note a { color: var(--c-black); border-bottom: 1px solid var(--c-line); }

/* ============================================================
 * 2026-05-12: タブレット最適化（768px-1199px）
 * iPad 縦 768×1024、横 1024×1366、Surface Go、その他中型タブレット向け
 * ============================================================ */

/* ===== タブレット横（1024px〜1199px）— デスクトップ寄り、間隔だけ縮小 ===== */
@media (min-width: 1024px) and (max-width: 1199px) {
  :root {
    --pad-x: clamp(28px, 4vw, 56px);
    --section-py: clamp(72px, 9vw, 120px);
  }
  .hero-text .hero-en-1 { font-size: clamp(48px, 6.5vw, 88px); }
  .hero-text .hero-en-2 { font-size: clamp(34px, 4.6vw, 64px); }
  /* contact-cta 3 列 → 多少詰め */
  .contact-grid { gap: clamp(32px, 4vw, 56px); }
}

/* ===== タブレット縦（768px〜1023px）— 縦持ちタブレットの主帯域 ===== */
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --pad-x: clamp(28px, 5vw, 64px);
    --section-py: clamp(64px, 9vw, 120px);
  }

  /* ヘッダー：このサイズでは SP ハンバーガー（900px ブレークポイントの方が利く） */

  /* セクション見出し */
  .section-head .en-label,
  .section-head.center .en-label { font-size: clamp(32px, 4.4vw, 50px); }
  .post-hero h1, .page-hero h1, .sd-mv h1, .ind-mv h1, .rc-mv h1 {
    font-size: clamp(26px, 4vw, 38px);
  }
  .lead-fv, .post-hero .lead, .page-hero .lead { font-size: clamp(13px, 1.5vw, 16px); }

  /* === ホーム === */
  /* HERO 2-col は維持（タブレット縦でも 2-col が活きる） */
  .hero-grid { gap: 16px; }
  .hero-text { padding: 0 clamp(20px, 4vw, 56px); }
  .hero-text .hero-en-1 { font-size: clamp(36px, 5.5vw, 60px); }
  .hero-text .hero-en-2 { font-size: clamp(26px, 4.2vw, 44px); }
  /* SERVICE は service-list（flex column）に変更済みのため override 不要 */
  /* PROCESS / PROMO は横スライダーで対応済み */
  /* STAFF 4→2 col */
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
  /* JOURNAL 3 cards → 2 col */
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  /* TONE VILLAGE slideshow 維持 */

  /* === サービス詳細 (sd-*) === */
  .sd-mv .container { grid-template-columns: 1fr; gap: 32px; }
  .sd-deliverables { grid-template-columns: repeat(2, 1fr); }
  .sd-pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .sd-philosophy-grid { grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 48px); }

  /* === WEB制作 (wb-*) === */
  .wb-pillars-grid { grid-template-columns: 1fr; gap: 24px; }
  .wb-design-row,
  .wb-design-row--reverse {
    grid-template-columns: 1fr;
    gap: clamp(24px, 4vw, 36px);
  }
  .wb-design-row--reverse .wb-design-photo { order: 0; }
  .wb-design-row--reverse .wb-design-body  { order: 0; }
  .wb-spec-grid { grid-template-columns: repeat(2, 1fr); }
  .wb-services-grid,
  .wb-services-grid:has(> :nth-child(3)) { grid-template-columns: repeat(2, 1fr); }
  .wb-support-cards { grid-template-columns: repeat(2, 1fr); }
  /* wb-reason-slide / wb-concept slide は 100% 幅で横スライダーなので OK だが、内側 grid を縦積み */
  .wb-reason-slider .proc-slide.wb-reason-slide { padding: 0 clamp(56px, 8vw, 96px); }

  /* === 業種別 (ind-*) === */
  .ind-issue-grid { grid-template-columns: repeat(2, 1fr); }
  .ind-approach-grid { grid-template-columns: 1fr; gap: clamp(28px, 4vw, 40px); }
  .ind-such-grid { grid-template-columns: 1fr; }

  /* === グラフィック詳細 (gp-*) === */
  .gp-values { grid-template-columns: repeat(2, 1fr); }
  .gp-spec-grid { grid-template-columns: repeat(2, 1fr); }
  .gp-pricing-list { grid-template-columns: repeat(2, 1fr); }

  /* === Contact === */
  .contact-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  /* フォーム：ラベル左カラム → 上に積む */
  .contact-form,
  .contact-form-wrap .wpcf7-form {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .contact-form .field label,
  .contact-form-wrap .wpcf7-form > .cf7-field > label {
    padding-top: 4px;
    padding-bottom: 4px;
  }
  .contact-form .submit-row,
  .contact-form-wrap .wpcf7-form .cf7-submit { margin-top: 24px; }

  /* === Recruit === */
  .rc-page { grid-template-columns: 200px 1fr; gap: 32px; }
  .rc-sidebar { padding: clamp(24px, 4vw, 40px) clamp(16px, 2.4vw, 28px) 0; }
  .rc-job-inner,
  .rc-job-inner.alt {
    grid-template-columns: 1fr;
    gap: clamp(28px, 4vw, 48px);
    direction: ltr;
  }
  .env-stance,
  .env-stance.alt {
    grid-template-columns: 1fr;
    gap: clamp(28px, 4vw, 40px);
    direction: ltr;
  }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .req-anchor-grid { grid-template-columns: repeat(3, 1fr); }

  /* === 料金 (price) === */
  .pr-anchors { grid-template-columns: repeat(3, 1fr); }
  .pr-plans,
  .pr-plans-3 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .pr-table { font-size: 13px; }
  .pr-case-list { padding: 0 clamp(8px, 2vw, 24px); }

  /* === About === */
  .mva-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .approach-grid { grid-template-columns: 1fr; }
  .office-grid { grid-template-columns: 1fr; gap: 32px; }
  .msg-body-grid { grid-template-columns: 1fr; gap: clamp(32px, 5vw, 48px); }
  .msg-photo { position: relative; max-width: 480px; margin: 0 auto; }

  /* === Staff (single) === */
  .sf-interview-grid { grid-template-columns: 1fr; gap: 32px; }
  .sf-portrait { max-width: 480px; margin: 0 auto; }

  /* === Works / Project / Voice / Journal === */
  .related-banners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive-card { grid-template-columns: 240px 1fr; gap: 24px; }
  .blog-grid { grid-template-columns: 1fr; }   /* journal sidebar 縦積み */
  .blog-sidebar { margin-top: 48px; }

  /* === Works archive === */
  .works-filter-cols { grid-template-columns: 1fr; }
  .works-list { grid-template-columns: repeat(2, 1fr); }

  /* === Footer === */
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-col { min-width: 0; }

  /* === Brand Collage（トップ ONE BRAND） === */
  /* 既存の 768px breakpoint と 1024px 間の中間調整 */
  .brand-collage .bc-main {
    width: calc(clamp(220px, 28vw, 360px) * (1 - var(--progress, 0)) + 100% * var(--progress, 0));
    height: calc(clamp(180px, 22vw, 280px) * (1 - var(--progress, 0)) + 100% * var(--progress, 0));
  }

  /* === Page TOC（追従目次） === */
  .page-toc { display: none; }   /* タブレット縦では非表示（横では戻る） */
}

/* （旧）小型 desktop の nav 詰め — 1100px までハンバーガー化のため不要 */

/* =========================================
   Title wipe-reveal animation (yamamoto coffee inspired)
   .section-head h2 が viewport に入ったときに、blur + opacity + mask で左→右に滑らかに浮かび上がる
   ========================================= */
.section-head h2 {
  /* mask が effective に効くよう、ブロック要素として確実に幅を持つ */
  display: inline-block;
  max-width: 100%;
}

/* 見出しのワイプリビールは廃止（FOUC・静的プレビューでテキストが見えない問題のため）。
   常時表示にする。 */
.section-head.reveal h2,
.section-head.reveal.is-in h2 {
  filter: none;
  opacity: 1;
  -webkit-mask-image: none;
          mask-image: none;
  transition: none;
}

/* ユーザー設定で動きを抑えている人には適用しない */
@media (prefers-reduced-motion: reduce) {
  .section-head.reveal h2,
  .section-head.reveal.is-in h2 {
    filter: none;
    opacity: 1;
    -webkit-mask-image: none;
            mask-image: none;
    transition: none;
  }
}

/* Heading Reveal は廃止（FOUC・静的プレビュー対策のため）。
   見出しは常時表示。残り CSS の互換のためルール定義は残すが effect 無効化。 */
html.headings-anim h1,
html.headings-anim h2,
html.headings-anim h3,
html.headings-anim h4,
html.headings-anim h5,
html.headings-anim h6,
html.headings-anim .en-label,
html.headings-anim h1.is-revealed,
html.headings-anim h2.is-revealed,
html.headings-anim h3.is-revealed,
html.headings-anim h4.is-revealed,
html.headings-anim h5.is-revealed,
html.headings-anim h6.is-revealed,
html.headings-anim .en-label.is-revealed {
  opacity: 1;
  transform: none;
  filter: none;
  transition: none;
}

/* =========================================
   Logo marquee（/service/logo-branding/ 用）
   2 段の無限スクロール（上段 = RTL、下段 = LTR）。
   制作実績のロゴサムネを連続表示する。
========================================= */
.logo-marquee {
  padding: clamp(60px, 8vw, 120px) 0;
  overflow: hidden;
  background: var(--c-bg);
}
.logo-marquee-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.6vw, 28px);
}
.logo-marquee-row {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.logo-marquee-track {
  display: flex;
  gap: clamp(16px, 1.6vw, 28px);
  width: max-content;
  animation: logo-marquee-rtl 60s linear infinite;
}
.logo-marquee-ltr .logo-marquee-track {
  animation-name: logo-marquee-ltr;
}
.logo-marquee:hover .logo-marquee-track,
.logo-marquee-row:focus-within .logo-marquee-track {
  animation-play-state: paused;
}
.logo-marquee-item {
  flex: 0 0 auto;
  display: block;
  width: clamp(160px, 14vw, 220px);
  aspect-ratio: 4 / 3;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color .3s ease;
}
.logo-marquee-item:hover {
  border-color: var(--c-black);
}
.logo-marquee-img {
  display: block;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #fff;
}
@keyframes logo-marquee-rtl {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes logo-marquee-ltr {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track { animation: none !important; }
}

/* =========================================
   2026-06-08 / SP コメント反映
   - #381: SP ドロワーの nav 項目を等高に揃える
   - #382/#383: /about/ の vm / philosophy 両サイド余白を狭く
========================================= */
@media (max-width: 1100px) {
  /* SP gnav の項目を等高に。div.nav-item（+アイコンあり）と a.nav-link
     の見た目高さが揃わない問題を、min-height で統一する。 */
  .gnav > .nav-item > .nav-trigger,
  .gnav > a.nav-link {
    min-height: 72px;
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
  }
  /* 縦の中央寄せに */
  .gnav > .nav-item > .nav-trigger,
  .gnav > a.nav-link { align-items: center; }

  /* /about/ vm セクションの両サイド余白を「少し狭く」（32+20 → 20+12 = 32px each side） */
  .vm .container { padding-left: 20px; padding-right: 20px; }
  .vm-block { padding-left: 12px; padding-right: 12px; }

  /* /about/ philosophy 両サイド余白を「少し狭く」（32 → 20） */
  .philosophy .ph-intro {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* 2026-06-20 #2412 /contact/ フォーム見出し（sub のみ）中央寄せ */
body.page-id-11982 #form .section-head { text-align: center; }
body.page-id-11982 #form .section-head .sub { margin-left: auto; margin-right: auto; }

/* 2026-06-20 SUCH AS セクションを一旦非表示（ユーザー指示・復元時はこのブロックを削除）
   .sd-such（「SUCH AS...」サービス21p）＋ .ind-issue（「SUCH AS」業種12p）。FOR YOU(.sd-such.ind-such)は除外 */
.sd-such:not(.ind-such),
.ind-issue { display: none; }

/* 2026-06-21 sp-br：SP専用改行ユーティリティ（home以外＝サービス等でも効くよう common に定義）
   既定は非表示、スマホ帯（≤767）でのみ改行。※home.css の旧定義と同等。 */
.sp-br { display: none; }
@media (max-width: 767px) { .sp-br { display: inline; } }

/* 2026-06-26 websupport #3452/#3455/#3458/#3462/#3465 — p.sub 全ページ SP 14px/lh28（社長指示「同一クラス全ページ」）。価格は #1930 のため price.css 側で別途上書き。 */
@media (max-width: 900px) {
  p.sub { font-size: 14px; line-height: 28px; }
}

/* 2026-06-26 websupport #3482 — .related-banners gap 16->40 全ページ SP（industryは industry.css 側で別途上書き済） */
@media (max-width: 900px) {
  .related-banners { gap: 40px; }
}

/* 2026-06-26 websupport #3486-#3489,#3494 — archive-card / section-head en-label SP（全ページ同一クラス） */
@media (max-width: 900px) {
  .archive-card { padding-bottom: 40px; }                          /* #3489 ->40 */
  .archive-card .meta { margin-bottom: 7px; letter-spacing: 1px; }    /* #3487 12->7 / #3756・#3757 ls 2.2px->1px */
  .archive-card h3 { font-weight: 700; line-height: 34px; }        /* #3488 500->700 / lh->34 */
  .attachment-apricot-card { padding-bottom: 5px; }                /* #3486 ->5 */
  .section-head .en-label { margin-bottom: 10px; }                 /* #3494 16->10 */
}

/* 2026-06-26 websupport #3508 — .contact-cta 上下border削除 全ページ SP */
@media (max-width: 900px) {
  .contact-cta { border-top-width: 0; border-bottom-width: 0; }
}

/* 2026-06-27 websupport #3611 — img.attachment-apricot-hero 下margin 全ページ SP */
@media (max-width: 900px) {
  img.attachment-apricot-hero { margin-bottom: 40px; }
}

/* 2026-06-27 websupport #3644 — CF7 textarea 全ページ SP 14px/lh28.4 */
@media (max-width: 900px) {
  textarea.wpcf7-form-control { font-size: 14px; line-height: 28.4px; }
}

/* 2026-06-27 websupport #3678/#3680 — CF7 label/select 全ページ SP */
@media (max-width: 900px) {
  .wpcf7-form > div > label,
  .wpcf7-form > .cf7-field > label { font-size: 16px; }   /* #3678 ->16 */
  select.wpcf7-form-control { margin-bottom: 0; }          /* #3680->#3759 mb 30->0（flex化で field間40pxが効くため解除） */
}


/* ============== ハンバーガーを全幅表示。PCはFV右上のマス（右80px×ヘッダー72px）に配置 ============== */
@media (min-width: 1101px) {
  .nav-toggle {
    position: fixed;
    top: 0;
    right: 0;
    width: 80px;
    height: 72px;
    z-index: 10000;
    color: #fff;
    gap: 6px;
  }
  html.is-scrolled .nav-toggle { color: var(--c-black); }
  body.menu-open .nav-toggle { color: var(--c-black); }
}

/* ============== 画面左下に固定追従するお問い合わせCTA（旧 gnav 内 cta-link を移設） ============== */
.float-cta {
  position: fixed;
  left: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 250px;
  height: 80px;
  padding: 0;
  background: var(--c-black);
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-align: center;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(0,0,0,0.22);
  transition: transform .3s ease, background .3s ease, opacity .3s ease;
}
.float-cta:hover { transform: translateY(-2px); background: #000; }
.float-cta-arrow {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1px solid currentColor;
  position: relative;
  flex-shrink: 0;
}
.float-cta-arrow::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 5px; height: 5px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translate(-65%, -50%) rotate(45deg);
}
@media (max-width: 760px) {
  .float-cta { height: 54px; font-size: 14px; gap: 10px; }   /* SP: 高さ 80->54 (約2/3) */
}

/* ====== PC: ヘッダーのナビゲーションを左へ100px移動（右上マス/縦線を避ける） ====== */
@media (min-width: 1101px) {
  .header-inner .gnav { margin-right: 100px; }
}

/* ====== PC: ハンバーガーは開閉に関わらず右上マスに固定（ドロワー有効時のSPピル装飾を打ち消す） ====== */
@media (min-width: 1101px) {
  html.drawer-mode .nav-toggle,
  html .nav-toggle {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    width: 80px !important;
    height: 72px !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    z-index: 10000;
    gap: 6px;
  }
  /* 色：透過ヘッダー（FV上部）=白、明るいヘッダー/メニュー展開時=黒 */
  .nav-toggle { color: var(--c-black); }
  html:not(.hdr-light) .nav-toggle { color: #fff; }
  html.is-scrolled .nav-toggle,
  body.menu-open .nav-toggle { color: var(--c-black) !important; }
  /* 3本線はテキスト色に追従（ドロワー時の #fff 強制を上書き） */
  html.drawer-mode .nav-toggle-bars span,
  .nav-toggle-bars span { background: currentColor !important; }
}


/* ABOUT/RECRUIT は横並びナビでは隠し、ハンバーガー（drawer-mode）でのみ表示 */
html:not(.drawer-mode) .gnav > .drawer-only { display: none; }


/* 2026-06-27 websupport #3900-#3902 SP: CF7 入力フォーム要素 16->14（全ページ） */
@media (max-width: 767px) {
  input.wpcf7-form-control,
  select.wpcf7-form-control,
  textarea.wpcf7-form-control { font-size: 14px; }
}


/* 2026-06-30 websupport #4084 SP: footer .label 18->16 / 500->400 / 4.3px->3px */
@media (max-width: 767px) {
  .footer-office .label { font-size: 16px; font-weight: 400; letter-spacing: 3px; }
}


/* 2026-06-30 ドロワー上部ロゴ（drawer-mode のみ表示） */
.gnav-logo { display: none; }
html.drawer-mode .gnav-logo {
  display: block;
  width: clamp(170px, 44vw, 220px);
  height: auto;
  margin: 0 auto clamp(28px, 6vw, 44px);
}
html.drawer-mode .gnav-logo img { width: 100%; height: auto; display: block; filter: none; }


/* 2026-06-30 websupport #4097 SP: ドロワー上部ロゴを非表示（ヘッダー左上ロゴと重複のため） */
@media (max-width: 767px) {
  html.drawer-mode .gnav-logo { display: none; }
}


/* 2026-06-30 メニュー展開中はヘッダー左上ロゴを隠す（ドロワーへの被り解消） */
body.menu-open .site-header .logo { opacity: 0; visibility: hidden; pointer-events: none; }
/* メニュー展開中はヘッダー（.header-inner の白帯）を出さない。閉じる×ボタンは
   .nav-toggle＝<header>外の body 直下要素なので影響を受けない */
body.menu-open .site-header { display: none !important; }

/* ============================================================
 * ハンバーガードロワー：kobe-wu 風 3カラム
 *   左＝よく見られるページ＋SNS ／ 中央＝ドロップダウン ／ 右＝CTAアイコン
 *   右からスライドする白パネル・日本語ラベル・色/フォントはアプリコット踏襲  2026-07-02
 * ============================================================ */
/* 背後オーバーレイ */
html.drawer-mode body::after { content:''; position:fixed; inset:0; background:rgba(20,20,20,.42); z-index:9996; opacity:0; visibility:hidden; pointer-events:none; transition:opacity .5s ease, visibility .5s; }
html.drawer-mode body.menu-open::after { opacity:1; visibility:visible; }

/* パネル：白・右アンカー・右からスライド・3カラムグリッド */
html.drawer-mode .gnav {
  left:auto; right:0; top:0; bottom:0;
  width:min(1040px,100%);
  background:#fff; color:var(--c-black);
  display:grid;
  grid-template-columns:220px minmax(0,1fr) 132px;
  column-gap:clamp(28px,3vw,56px);
  align-content:start;
  transform:translateX(100%); opacity:0; visibility:hidden;
  transition:transform .6s cubic-bezier(.23,1,.32,1), opacity .6s cubic-bezier(.23,1,.32,1), visibility .6s;
  padding:clamp(92px,12vh,120px) clamp(34px,4vw,56px) clamp(48px,6vw,72px);
  box-shadow:-20px 0 60px rgba(0,0,0,.12);
  overflow-y:auto;
}
html.drawer-mode body.menu-open .gnav { transform:translateX(0); opacity:1; visibility:visible; }
html.drawer-mode .gnav > * { opacity:0; transform:translateX(12px); transition:opacity .6s ease .18s, transform .6s ease .18s; }
html.drawer-mode body.menu-open .gnav > * { opacity:1; transform:none; }

/* 列割り当て（左右はラッパー無しで全高スパン、中央にナビ項目） */
html.drawer-mode .gnav > .gnav-side-left  { grid-column:1; grid-row:1 / span 60; }
html.drawer-mode .gnav > .gnav-side-right { grid-column:3; grid-row:1 / span 60; }
html.drawer-mode .gnav > .nav-link,
html.drawer-mode .gnav > .nav-item { grid-column:2; }
html.drawer-mode .gnav > .gnav-footer { display:none !important; }

/* 日本語ラベル表示 */
html.drawer-mode .gnav .txt-en { display:none !important; }
html.drawer-mode .gnav .txt-ja { display:inline !important; font-size:clamp(16px,1.5vw,18px) !important; font-weight:600; letter-spacing:.05em; color:var(--c-black) !important; }

/* 左列：よく見られるページ＋SNS */
html.drawer-mode .gnav-side-left { border-right:1px solid var(--c-line); padding-right:clamp(16px,2vw,28px); }
.gs-label { font-family:var(--font-en); font-size:11px; letter-spacing:.14em; color:var(--c-sub); margin:0 0 14px; }
.gs-popular { list-style:none; margin:0 0 30px; padding:0; display:grid; gap:11px; }
.gs-popular a { font-size:14px; color:var(--c-text); text-decoration:none; letter-spacing:.02em; }
.gs-popular a:hover { color:var(--c-black); opacity:.6; }
.gs-sns { display:flex; flex-wrap:wrap; gap:16px; align-items:center; }
.gs-sns a { color:var(--c-sub); display:inline-flex; transition:color .3s ease; }
.gs-sns a:hover { color:var(--c-black); }
.gs-sns svg { width:20px; height:20px; display:block; }

/* 右列：CTAアイコン */
html.drawer-mode .gnav-side-right { display:flex; flex-direction:column; gap:14px; align-items:stretch; }
.gs-cta { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; text-decoration:none; color:var(--c-black); border:1px solid var(--c-line); border-radius:4px; padding:18px 8px; transition:background .3s ease, color .3s ease, border-color .3s ease; }
.gs-cta:hover { background:var(--c-black); color:#fff; border-color:var(--c-black); }
.gs-cta-icon { display:flex; align-items:center; justify-content:center; color:inherit; }
.gs-cta-icon svg { width:24px; height:24px; }
.gs-cta-label { font-size:11px; letter-spacing:.06em; color:inherit; }

/* 狭い幅：1カラムに縦積み（中央→左→右の順） */
@media (max-width:900px){
  html.drawer-mode .gnav { grid-template-columns:1fr; }
  html.drawer-mode .gnav > .gnav-side-left,
  html.drawer-mode .gnav > .gnav-side-right,
  html.drawer-mode .gnav > .nav-link,
  html.drawer-mode .gnav > .nav-item { grid-column:1; grid-row:auto; }
  html.drawer-mode .gnav-side-left { border-right:0; padding-right:0; margin-top:34px; padding-top:28px; border-top:1px solid var(--c-line); }
  html.drawer-mode .gnav-side-right { flex-direction:row; justify-content:flex-start; gap:24px; margin-top:26px; }
}

/* ハンバーガー：白パネルなので開いても黒 */
body.menu-open .nav-toggle { color:var(--c-black) !important; }
body.menu-open .nav-toggle-bars span { background:currentColor !important; }


/* 中央ドロップダウン：メガは中央列内に収める（SP全幅ネガマージン解除） */
html.drawer-mode .gnav > .nav-item .mega-menu { margin-left:0 !important; margin-right:0 !important; background:transparent !important; }

/* ============================================================
 * 中央ドロップダウンの展開後レイアウトを kobe-wu 風に整える 2026-07-02
 * ============================================================ */
/* パネル幅と中央列を kobe-wu 寄せ（main ≒ 500px） */
html.drawer-mode .gnav { width: min(960px, 100%); grid-template-columns: 210px minmax(0,1fr) 120px; }

/* カテゴリ行：ラベル左＋プラス右（下線付き・全幅） */
html.drawer-mode .gnav > .nav-item > .nav-trigger,
html.drawer-mode .gnav > .nav-link {
  padding-right: 34px !important;
}

/* 展開パネル（メガ）＝中央列内・インデント・クリーンな縦リスト */
html.drawer-mode .gnav > .nav-item .mega-menu { margin: 0 !important; background: transparent !important; }
html.drawer-mode .gnav > .nav-item .mega-inner {
  display: block !important; flex-direction: initial !important;
  padding: 2px 0 16px 2px !important; gap: 0 !important;
}
html.drawer-mode .gnav > .nav-item .mega-side { display: none !important; }
html.drawer-mode .gnav > .nav-item .mega-cols { display: block !important; gap: 0 !important; }
html.drawer-mode .gnav > .nav-item .mega-col { margin: 0 0 6px !important; padding: 0 !important; border: 0 !important; }
html.drawer-mode .gnav > .nav-item .mega-col h4 {
  font-family: var(--font-en) !important; font-size: 11px !important; letter-spacing: .12em !important;
  color: var(--c-sub) !important; font-weight: 600 !important; margin: 12px 0 3px !important; padding: 0 !important; border: 0 !important;
}
html.drawer-mode .gnav > .nav-item .mega-col ul,
html.drawer-mode .gnav > .nav-item .mega-col ul.mega-pills {
  display: block !important; margin: 0 !important; padding: 0 !important; list-style: none !important;
}
html.drawer-mode .gnav > .nav-item .mega-col ul li { margin: 0 !important; padding: 0 !important; border: 0 !important; }
html.drawer-mode .gnav > .nav-item .mega-col ul li a {
  display: block !important; padding: 6px 0 !important; font-size: 13.5px !important;
  color: var(--c-text) !important; border: 0 !important; letter-spacing: .02em !important;
}
html.drawer-mode .gnav > .nav-item .mega-col ul li a:hover { color: var(--c-black) !important; opacity: .55; padding-left: 0 !important; }
html.drawer-mode .gnav > .nav-item .mega-col ul li a::before,
html.drawer-mode .gnav > .nav-item .mega-col ul li a::after { display: none !important; }
html.drawer-mode .gnav > .nav-item .mega-col ul li a .count { display: none !important; }
/* SERVICE グラフィックデザインの入れ子アコーディオンは常時展開でフラット表示 */


/* 2026-07-02 ドロップダウン内の英字小見出し（COMPANY / OUR PROJECT 等）は非表示 */
html.drawer-mode .gnav > .nav-item .mega-col h4 { display: none !important; }

/* ============================================================
 * kobe-wu ドロワー追い込み 2026-07-02
 *  ・開くアニメは全体スライド+フェードのみ（子の個別モーション撤去＝スマホのブレ解消）
 *  ・中央+右カラム=薄グレー / 左カラム=白
 *  ・右CTA=枠なしアイコン+名称 / 中央に検索ボックス / サブタイトル日本語
 * ============================================================ */
html.drawer-mode .gnav > * { opacity:1 !important; transform:none !important; transition:none !important; }

html.drawer-mode .gnav { background:#f4f4f4 !important; }
html.drawer-mode .gnav-side-left { background:#fff; border-right:0 !important; padding:clamp(22px,3vw,30px) clamp(18px,2.4vw,26px) !important; }

/* 右カラム CTA：濃いグレーのボタン／アイコン+テキスト白（社長指示 2026-07-02） */
.gs-cta { background:#555555 !important; color:#fff !important; border:0 !important; border-radius:4px !important; padding:14px 8px !important; gap:8px !important; transition:background .3s ease !important; }
.gs-cta:hover { background:#3f3f3f !important; color:#fff !important; border:0 !important; opacity:1; }
.gs-cta-icon, .gs-cta-icon svg { color:#fff !important; }
.gs-cta-label { color:#fff !important; }
html.drawer-mode .gnav-side-right { gap:22px !important; padding-top:4px; }

/* 中央カラム 検索ボックス */
html.drawer-mode .gnav > .gs-search {
  grid-column:2; display:flex; align-items:center; background:#fff;
  border-radius:6px; padding:0 12px 0 16px; height:52px;
  margin-bottom:clamp(20px,3vw,30px); box-shadow:0 1px 3px rgba(0,0,0,.05);
}
.gs-search-input { flex:1; min-width:0; border:0; background:transparent; font-size:14px; height:100%; outline:none; color:var(--c-black); }
.gs-search-btn { border:0; background:transparent; color:#1a1a1a; cursor:pointer; display:flex; align-items:center; padding:0; }
.gs-search-btn svg { width:20px; height:20px; }

/* ドロップダウンのサブタイトル＝日本語表示 */
.m4-en { display:none; }
.m4-ja { display:inline; font-family: var(--font-jp); letter-spacing: 0.08em; }
html.drawer-mode .gnav .m4-en { display:none; }
html.drawer-mode .gnav .m4-ja { display:inline; font-size:18px; color:#333333; } /* #4108 11→18px / #777→#333（全ページ） */
html.drawer-mode .gnav > .nav-item .mega-col h4 {
  display:block !important; font-family:inherit !important; font-size:11px !important; font-weight:600 !important;
  letter-spacing:.06em !important; color:var(--c-sub) !important; margin:14px 0 4px !important;
}

/* ============================================================
 * 2026-07-02 ドロワー追い込み②（社長指示）
 *  ・ドロップダウン内の各サービス項目 先頭に「+」（見やすく）
 *  ・グラフィックデザイン（アコーディオン）を他項目と同サイズ／+を左に
 *  ・よく見られるページ 18px ／ 左SNS ダークグレー・3列中央寄せ
 * ============================================================ */
/* 各サービス項目（トップレベルのリンク）の先頭に + マーカー
   ※旧 d-a-h風ルール(843-)が ::before を position:absolute にしているため、
     必ず static に戻してインラインで頭に置く（テキストと被らないように） */
html.drawer-mode .gnav > .nav-item .mega-col > ul > li > a::before {
  content:"+" !important; position:static !important; left:auto !important; top:auto !important;
  display:inline-block !important; margin-right:9px !important; line-height:inherit !important;
  color:var(--c-sub) !important; font-family:var(--font-en) !important; font-weight:400 !important;
}
/* グラフィックデザイン：写真撮影・動画制作などのリンクと同サイズ・同書体、+ を左寄せに */
html.drawer-mode .gnav .mega-accordion > li > .mega-acc-toggle {
  font-size:13.5px !important; letter-spacing:.02em !important; font-family:'Noto Sans JP', sans-serif !important;
  justify-content:flex-start !important;
}
html.drawer-mode .gnav .mega-accordion > li > .mega-acc-toggle::after {
  order:-1 !important; margin-left:0 !important; margin-right:9px !important;
}
/* よく見られるページ：タイトル（.gs-label）SP=16px＋下線／PCは14px(#4110)。リンク一覧=13px(#4111) */
html.drawer-mode .gnav-side-left .gs-label {
  font-size:16px !important; padding-bottom:12px !important;
  border-bottom:1px solid var(--c-line) !important;
}
@media (min-width:901px){ html.drawer-mode .gnav-side-left .gs-label { font-size:14px !important; } } /* #4110 PC版のみ14px（SPは16px維持・この要素のみ） */
html.drawer-mode .gnav-side-left .gs-popular li,
html.drawer-mode .gnav-side-left .gs-popular a { font-size:13px !important; } /* #4111 15→13 全ページ・PC/SP両方 */
/* 左カラム SNS：ダークグレー・3個ずつ中央寄せ */
html.drawer-mode .gnav-side-left .gs-sns {
  display:grid !important; grid-template-columns:repeat(3, max-content) !important;
  justify-content:center !important; gap:20px 26px !important;
}
html.drawer-mode .gnav-side-left .gs-sns a { color:#555555 !important; }
html.drawer-mode .gnav-side-left .gs-sns a:hover { color:#333333 !important; }

/* ============================================================
 * 2026-07-02 スマホ ドロワー レイアウト修正
 *  症状：SPでハンバーガーメニューが横に動く／レイアウトが崩れる。
 *  原因：3カラム定義(4576) がメディアクエリ外で全幅に効き、SPでも
 *        210px / 0px / 120px の3列のまま＝中央ナビ列が0px・検索が
 *        右にはみ出して横スクロール発生。
 *  対応：≤900px は 1カラムに強制。全子要素を col1 に。
 *        並び順＝検索 → メインナビ → CTA → よく見られるページ+SNS。
 * ============================================================ */
@media (max-width:900px){
  html.drawer-mode .gnav {
    grid-template-columns:1fr !important;
    column-gap:0 !important;
    overflow-x:hidden !important;
  }
  html.drawer-mode .gnav > .gnav-side-left,
  html.drawer-mode .gnav > .gnav-side-right,
  html.drawer-mode .gnav > .gs-search,
  html.drawer-mode .gnav > .nav-link,
  html.drawer-mode .gnav > .nav-item { grid-column:1 !important; grid-row:auto !important; width:auto !important; }
  /* 並び順：検索(0) → メインナビ(1) → CTA(2) → よく見られる+SNS(3) */
  html.drawer-mode .gnav > .gs-search       { order:0 !important; margin:0 0 22px !important; }
  html.drawer-mode .gnav > .nav-link,
  html.drawer-mode .gnav > .nav-item        { order:1 !important; }
  /* CTA：スマホは画面いっぱいの3分割（お問い合わせ／お電話／資料請求）均等ボタン */
  html.drawer-mode .gnav > .gnav-side-right {
    order:2 !important; margin-top:30px !important;
    display:grid !important; grid-template-columns:repeat(3,1fr) !important; gap:8px !important;
  }
  html.drawer-mode .gnav-side-right .gs-cta { padding:16px 6px !important; }
  html.drawer-mode .gnav > .gnav-side-left  {
    order:3 !important; background:transparent !important;
    padding:28px 0 0 !important; margin-top:30px !important;
    border-top:1px solid var(--c-line) !important; border-right:0 !important;
  }
  /* SNS：スマホは1行で表示（6個を1列に・中央寄せ） */
  html.drawer-mode .gnav-side-left .gs-sns {
    grid-template-columns:repeat(6, max-content) !important; gap:14px !important;
  }
}

/* ============================================================
 * 検索結果ページ（search.php）2026-07-02
 * ============================================================ */
.post-hero .search-count { font-size:13px; letter-spacing:.06em; color:var(--c-sub); margin-top:12px; }
.search-empty { padding:16px 0 40px; }
.search-empty .archive-empty { font-size:15px; line-height:2; color:var(--c-text); margin-bottom:28px; }
.search-again { display:flex; align-items:center; max-width:420px; border:1px solid var(--c-line); border-radius:6px; padding:0 12px 0 16px; height:52px; background:#fff; }
.search-again input { flex:1; min-width:0; border:0; background:transparent; font-size:14px; height:100%; outline:none; color:var(--c-black); }
.search-again button { border:0; background:transparent; color:var(--c-black); cursor:pointer; display:flex; align-items:center; padding:0; }
.search-again button svg { width:20px; height:20px; }


/* ===== お気に入りランチャー（チャットの上・保存した実績の一覧） ===== */
.fav-launcher {
  position: fixed;
  top: clamp(88px, 11vh, 112px);                 /* ハンバーガー(MENU)の下 */
  right: var(--edge-inset);   /* パンくず左余白と同一（社長指示） */
  z-index: 95;
  font-family: var(--font-jp);
}
.fav-launcher[hidden] { display: none; }
.fav-launcher-btn {
  appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--c-line); border-radius: 999px;
  padding: 8px 14px 8px 16px; color: var(--c-black);
  font-size: 12px; letter-spacing: 0.14em;
  transition: transform .25s ease;
}
.fav-launcher-btn:hover { transform: translateY(-2px); }
.fav-launcher-ico { color: #111; font-size: 14px; line-height: 1; }
.fav-launcher-num {
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: #111; color: #fff;
  font-family: var(--font-en); font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center;
}
.fav-panel {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: min(320px, calc(100vw - 32px));
  max-height: min(60vh, 460px); overflow: auto;
  background: #fff; border: 1px solid var(--c-line); border-radius: 14px;
  box-shadow: 0 18px 48px rgba(20,20,20,0.16);
  padding: 8px;
}
.fav-panel[hidden] { display: none; }
.fav-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 10px; }
.fav-panel-ttl { font-size: 12px; letter-spacing: 0.14em; color: var(--c-text); }
.fav-panel-close { appearance: none; background: none; border: 0; cursor: pointer; font-size: 18px; line-height: 1; color: var(--c-sub); padding: 2px 4px; }
.fav-panel-close:hover { color: #111; }
.fav-panel-list { list-style: none; margin: 0; padding: 0; }
.fav-item { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px; }
.fav-item:hover { background: var(--c-bg); }
.fav-item-link { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; color: var(--c-black); }
.fav-item-thumb { width: 52px; height: 40px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: var(--c-bg); }
.fav-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fav-item-title { font-size: 12.5px; line-height: 1.5; letter-spacing: 0.04em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fav-item-remove { appearance: none; background: none; border: 0; cursor: pointer; font-size: 16px; line-height: 1; color: var(--c-sub); padding: 4px 6px; flex-shrink: 0; }
.fav-item-remove:hover { color: #111; }
.fav-panel-empty { font-size: 12px; color: var(--c-sub); line-height: 1.8; padding: 12px 10px 16px; margin: 0; }

/* ===== BRAND COLLAGE（front-page から /about/ へ移設・2026-07-04）＝home.css から移動 ===== */
/* ============================================================
   BRAND COLLAGE  ─  botanistofficial.com /about/sustainability/ をトレース
   ・ sticky-container + sticky-area で要素を viewport に pin
   ・ --progress 0→1 を JS（scroll position）で更新
   ・ 中央 main 画像が 22.1×16.1rem → 100%×100% に成長
   ・ 4枚の sub 画像が --p (1.0→1.5) で外側へ拡散
   ============================================================ */
.brand-collage {
  --progress: 0;
  display: block;
  position: relative;
  z-index: 0;
  background: var(--c-bg, #f2f2f2);
}

/* 絶対配置：.brand-collage の高さ = animation-area + spacing 全体。
   中で sticky-area が pin される */
.brand-collage .bc-sticky-container {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.brand-collage .bc-sticky-area {
  position: sticky;
  z-index: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: auto;
}

/* ─────────── 中央 main：写真のみ。テキストは終盤（progress >= 0.7）で登場 ─────────── */
.brand-collage .bc-main {
  position: relative;
  /* 初期サイズ：参考バランスに合わせて 21.25vw × 17.5vw 相当 */
  width:  calc(clamp(280px, 22vw, 480px) * (1 - var(--progress)) + 100% * var(--progress));
  height: calc(clamp(220px, 15vw, 400px) * (1 - var(--progress)) + 100% * var(--progress));
  overflow: hidden;
  z-index: 1;
  /* 背景は無し：写真が bc-main を完全に埋める */
  background: transparent;
  container-type: inline-size;
}
/* 背景写真：bc-main 全面、scale 1.0 でフレーム無しの完全 fill */
.brand-collage .bc-main-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* テキスト可読性のための flat ダークティント（影・グラデーションではない） */
.brand-collage .bc-main-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000000;
  /* 0..0.7 で完全透明、0.7..1.0 で 0→0.42 へ */
  opacity: calc(max(0, var(--progress) - 0.7) / 0.3 * 0.42);
  pointer-events: none;
}
/* 中央テキスト：終盤のみ表示。白カードなし。
   inner で 1 ブロック化して中心に集める */
.brand-collage .bc-main-text {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: clamp(20px, 6cqw, 80px);
  color: #ffffff;
  /* 0..0.7 で非表示、0.7..1.0 で 0→1 へ */
  opacity: calc(max(0, var(--progress) - 0.7) / 0.3);
  /* テキスト全体を 12px 下から立ち上げる */
  transform: translateY(calc((1 - max(0, var(--progress) - 0.7) / 0.3) * 12px));
  transition: opacity .15s linear, transform .15s linear;
  pointer-events: none;
}
.brand-collage .bc-main-text-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: auto;
}
.brand-collage .bc-main-text .en-label {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  letter-spacing: 0.08em;
  font-size: clamp(22px, 4.0cqw, 70px);
  line-height: 1;
  /* gap to h2 */
  margin-bottom: clamp(25px, 2.2cqw, 30px);
  color: #ffffff;
}
.brand-collage .bc-main-text h2 {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: clamp(13px, 2.1cqw, 30px);
  line-height: 1.85;
  letter-spacing: 0.08em;
  /* very tight gap to sub */
  margin: 0 0 clamp(25px, 2.2cqw, 30px);
  color: #ffffff;
  white-space: nowrap;
}
.brand-collage .bc-main-text .sub {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: clamp(12px, 0.95cqw, 13px);
  line-height: 2.1;
  margin: 0;
  color: #ffffff;
  letter-spacing: 0.04em;
}

/* ─────────── 4枚の sub ─────────── */
/* botanist 原典 --p: 1 → 1.5。
   p=0（progress=0）で参考画像のバランスに一致させるため、
   各 sub の base offset/size を vw で校正する。 */
.brand-collage .bc-sub {
  --p: calc(1 + var(--progress) * 0.5);
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0; /* main の下 */
  margin: 0;
  overflow: hidden;
}
.brand-collage .bc-sub img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-collage .bc-sub figcaption {
  position: absolute;
  left: 8px;
  bottom: -28px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  color: var(--c-text, #333);
  white-space: nowrap;
  /* progress 進行で透明度を下げる（外に飛び出すと見えにくくなるので消す） */
  opacity: calc(1 - var(--progress));
  transition: opacity .15s ease;
}
.brand-collage .bc-sub .bc-tag {
  font-weight: 500;
  letter-spacing: 0.18em;
}
.brand-collage .bc-sub .bc-jp {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--c-sub, #777);
  letter-spacing: 0.04em;
  font-weight: 400;
}

/* デスクトップ：参考画像 (2000vp) に校正済みの vw 値 */
/* TL: DARK ROAST coffee bag - 大型ポートレート */
.brand-collage .bc-sub-1 {
  width:  clamp(280px, 31vw, 460px);
  height: clamp(380px, 30.6vw, 680px);
  translate:
    calc(-77% - clamp(380px, 26vw, 560px) * var(--p))
    calc(-50% - clamp(80px, 5.9vw, 130px) * var(--p));
}
/* BL: tone cafe pamphlet - 中型ランドスケープ */
.brand-collage .bc-sub-2 {
  width:  clamp(230px, 17.5vw, 380px);
  height: clamp(180px, 13vw, 290px);
  translate:
    calc(-43% - clamp(340px, 23.75vw, 510px) * var(--p))
    calc(-73% + clamp(220px, 16.3vw, 360px) * var(--p));
}
/* TR: iced coffee on wood - 大型ランドスケープ */
.brand-collage .bc-sub-3 {
  width:  clamp(340px, 27.85vw, 580px);
  height: clamp(310px, 18.8vw, 540px);
  translate:
    calc(-48% + clamp(450px, 32vw, 700px) * var(--p))
    calc(-39% - clamp(120px, 8.6vw, 190px) * var(--p));
}
/* BR: cafe shelf interior - 大型ランドスケープ */
.brand-collage .bc-sub-4 {
  width:  clamp(360px, 20.25vw, 595px);
  height: clamp(260px, 14.9vw, 440px);
  translate:
    calc(-66% + clamp(444px, 32vw, 700px) * var(--p))
    calc(-67% + clamp(180px, 13.4vw, 300px) * var(--p));
}

/* ─────────── スクロール量を稼ぐ ─────────── */
.brand-collage .bc-animation-area {
  position: relative;
  top: 0;
  width: 100%;
  /* 元のbotanistは300vh。やや控えめに250vhへ */
  height: 250vh;
}
.brand-collage .bc-spacing {
  position: relative;
  height: 25vh;
}

/* ─────────── タブレット 〜768px：rem 値を縮小 ─────────── */
@media (max-width: 1100px) {
  .brand-collage .bc-sub-1 {
    width: 13rem; height: 17.6rem;
    translate: calc(-50% - 30rem * var(--p)) calc(-50% - 7rem * var(--p));
  }
  .brand-collage .bc-sub-2 {
    width: 13rem; height: 11.5rem;
    translate: calc(-50% - 27rem * var(--p)) calc(-50% + 15rem * var(--p));
  }
  .brand-collage .bc-sub-3 {
    width: 16.7rem; height: 13.5rem;
    translate: calc(-50% + 30rem * var(--p)) calc(-50% - 10rem * var(--p));
  }
  .brand-collage .bc-sub-4 {
    width: 23.3rem; height: 15.3rem;
    translate: calc(-50% + 32rem * var(--p)) calc(-50% + 10rem * var(--p));
  }
}

/* ─────────── スマホ（≤768px）：参考バランスに合わせた縮小レイアウト
   ・ main 17rem × 11.5rem を中央に配置（390px viewport で左右に約 60px のマージン）
   ・ p=1（progress=0）で 4 枚の sub が main の脇から覗くオフセット
   ・ p=1.5（progress=1）で sub は画面外へ広がる
   ・ テキストは progress >= 0.7 で main を埋め尽くしながら登場 */
@media (max-width: 768px), (orientation: portrait) and (hover: none) {
  .brand-collage .bc-animation-area { height: 200vh; }
  .brand-collage .bc-spacing { height: 15vh; }
  .brand-collage .bc-main {
    width:  calc(17rem * (1 - var(--progress)) + 100% * var(--progress));
    height: calc(11.5rem * (1 - var(--progress)) + 100% * var(--progress));
  }
  /* TL: 細長ポートレート（pamphlet 上） */
  .brand-collage .bc-sub-1 {
    width: 6.8rem; height: 9rem;
    translate:
      calc(-50% - 9rem * var(--p))
      calc(-50% - 4.4rem * var(--p));
  }
  /* BL: 横長中型（main 左下） */
  .brand-collage .bc-sub-2 {
    width: 6.5rem; height: 5rem;
    translate:
      calc(-50% - 8.4rem * var(--p))
      calc(-50% + 5.5rem * var(--p));
  }
  /* TR: 横長中型（main 右上） */
  .brand-collage .bc-sub-3 {
    width: 7.8rem; height: 5.6rem;
    translate:
      calc(-50% + 9rem * var(--p))
      calc(-50% - 4rem * var(--p));
  }
  /* BR: 横長大型（main 右下） */
  .brand-collage .bc-sub-4 {
    width: 8.6rem; height: 5.8rem;
    translate:
      calc(-50% + 9.4rem * var(--p))
      calc(-50% + 5.5rem * var(--p));
  }
  .brand-collage .bc-sub figcaption { font-size: 9px; bottom: -22px; left: 4px; }
  /* テキスト：SP では小さく密に */
  .brand-collage .bc-main-text { padding: 16px; }
  .brand-collage .bc-main-text .en-label {
    font-size: clamp(20px, 7.5cqw, 36px);
    margin-bottom: 16px;
  }
  .brand-collage .bc-main-text h2 {
    font-size: clamp(13px, 4.6cqw, 18px);
    margin-bottom: 16px;
    white-space: normal;
  }
  .brand-collage .bc-main-text .sub {
    font-size: clamp(12px, 3.2cqw, 12px);
    line-height: 1.9;
  }
}

/* ≤480px の極小スクリーン：main をさらに縮める */
@media (max-width: 480px) {
  .brand-collage .bc-main {
    width:  calc(15rem * (1 - var(--progress)) + 100% * var(--progress));
    height: calc(10rem * (1 - var(--progress)) + 100% * var(--progress));
  }
  .brand-collage .bc-sub-1 {
    width: 5.8rem; height: 7.6rem;
    translate: calc(-50% - 7.6rem * var(--p)) calc(-50% - 3.6rem * var(--p));
  }
  .brand-collage .bc-sub-2 {
    width: 5.6rem; height: 4.4rem;
    translate: calc(-50% - 7.2rem * var(--p)) calc(-50% + 4.6rem * var(--p));
  }
  .brand-collage .bc-sub-3 {
    width: 6.6rem; height: 4.8rem;
    translate: calc(-50% + 7.6rem * var(--p)) calc(-50% - 3.4rem * var(--p));
  }
  .brand-collage .bc-sub-4 {
    width: 7.2rem; height: 5rem;
    translate: calc(-50% + 8rem * var(--p)) calc(-50% + 4.6rem * var(--p));
  }
}

/* ─────────── reduce motion ─────────── */
@media (prefers-reduced-motion: reduce) {
  .brand-collage { --progress: 0.6 !important; }
  .brand-collage .bc-main-bg { scale: 0.92; }
}

/* ─────────── 直後の SERVICE セクションをパララックス立ち上げ ───────────
   ONE BRAND が表示された直後、SERVICE が下からゆっくり迫り上がる演出。
   --rise 1（画面下）→ 0（定位置）を JS で更新する。 */
.brand-collage + .service {
  --rise: 1;
  position: relative;
  z-index: 2;
  background: var(--c-bg-soft, #ffffff);
  transform: translate3d(0, calc(var(--rise) * 8vh), 0);
  transition: transform .15s linear;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .brand-collage + .service {
    --rise: 0;
    transform: none;
  }
}

/* ===== PC: ハンバーガーの右余白をヘッダーロゴの左余白と同じに（社長指示・--edge-inset で鏡像化） ===== */
@media (min-width: 1101px) {
  html.drawer-mode .nav-toggle,
  html .nav-toggle {
    right: var(--edge-inset) !important;
  }
}
