/* =========================================================
   accel theme 1.0.1 (ACCEL CREATIVE WORKS)
   デザイントークンは 設計書.md「4. デザインシステム」と対応
   ========================================================= */

:root {
  /* --- Brand（現サイトの色を基準） --- */
  --c-primary: #03A9F4;        /* アクセントの青（現サイト）: 線・アイコン・濃色背景上の文字 */
  --c-primary-alt: #00ABFA;    /* 現サイトの補助の青 */
  --c-primary-ink: #0277BD;    /* 白背景上の青文字・リンク（コントラスト 4.5:1 以上） */
  --c-deep: #01467E;           /* ロゴの濃い青 */
  --c-logo-mid: #0C7BD4;       /* ロゴの中間の青 */
  --c-logo-light: #0F94F8;     /* ロゴの明るい青 */
  --g-brand: linear-gradient(120deg, #01467E 0%, #0C7BD4 55%, #03A9F4 100%); /* 装飾用（文字を載せない） */
  --g-button: linear-gradient(120deg, #01467E 0%, #0563AD 55%, #0277BD 100%); /* 白文字を載せる面：全域で 4.5:1 以上 */

  /* --- Neutral（現サイトの濃いグレー） --- */
  --c-ink-900: #222B34;        /* 濃色セクション背景 */
  --c-ink-800: #23282D;        /* 本文 */
  --c-ink-700: #313439;
  --c-ink-600: #3C424F;        /* 見出し補助・リード文 */
  --c-ink-500: #5F6B7A;        /* 小さな補足文字（AA 対応） */
  --c-ink-400: #8E9DAE;        /* 現サイトの薄いグレー: 装飾・大きな文字のみ */
  --c-line: #E3ECF3;
  --c-line-strong: #CFDCE7;

  /* --- Background --- */
  --c-bg: #FFFFFF;
  --c-bg-soft: #F5FAFD;        /* 現サイトの淡い背景 */
  --c-bg-tint: #EAF6FD;

  /* --- State --- */
  --c-success: #1E8E5A;
  --c-warning: #B7791F;
  --c-error: #D14343;
  --c-info: var(--c-primary-ink);

  /* --- Typography --- */
  --f-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --f-en: "Mulish", "Noto Sans JP", sans-serif;
  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-h4: 1.25rem;
  --fs-h3: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --fs-h2: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  --fs-h1: clamp(2.25rem, 1.4rem + 4vw, 4.5rem);

  /* --- Spacing（4px 基準） --- */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px; --sp-10: 128px;
  --section-y: clamp(72px, 10vw, 128px);
  --gutter: clamp(16px, 4vw, 40px);
  --container: 1160px;

  /* --- Radius / Shadow --- */
  --r-sm: 4px; --r-md: 8px; --r-lg: 16px; --r-pill: 999px;
  --sh-sm: 0 1px 2px rgba(34, 43, 52, .06);
  --sh-md: 0 10px 30px -12px rgba(34, 43, 52, .22);
  --sh-lg: 0 30px 60px -24px rgba(1, 70, 126, .32);

  /* --- Motion（控えめ） --- */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 800ms;

  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--f-ja);
  font-size: var(--fs-base);
  line-height: 1.9;
  letter-spacing: .04em;
  color: var(--c-ink-800);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 0;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary-ink); text-underline-offset: .2em; }
a:hover { color: var(--c-deep); }
h1, h2, h3, h4 { line-height: 1.45; letter-spacing: .06em; margin: 0; color: var(--c-ink-900); font-weight: 700; font-feature-settings: "palt" 1; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--c-primary-ink); outline-offset: 3px; border-radius: 2px; }
.section--dark :focus-visible, .hero :focus-visible, .page-hero :focus-visible, .site-footer :focus-visible, .cta-band :focus-visible { outline-color: var(--c-primary); }
.table td, .panel, .contact__mail { overflow-wrap: anywhere; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: #fff; padding: 8px 16px; border-radius: var(--r-sm); }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { padding-block: var(--section-y); }
.section--soft { background: var(--c-bg-soft); }
.section--dark { background: var(--c-ink-900); color: #DCE4EC; }
.section--dark h2, .section--dark h3 { color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Section heading ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-en); font-weight: 700; font-size: var(--fs-xs);
  letter-spacing: .24em; text-transform: uppercase; color: var(--c-primary-ink);
  margin-bottom: var(--sp-4);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--g-brand); border-radius: 2px; }
.section--dark .eyebrow { color: var(--c-primary); }
.sec-head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 760px; }
.sec-head h2 { font-size: var(--fs-h2); }
.sec-head p { margin-top: var(--sp-5); color: var(--c-ink-600); }
.section--dark .sec-head p { color: #B8C4D0; }
.sec-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-5); flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--g-button);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px;
  font-family: var(--f-ja); font-weight: 700; font-size: var(--fs-sm); letter-spacing: .08em;
  color: #fff; text-decoration: none; background: var(--_bg); background-size: 140% 100%; background-position: 0 0;
  border: 0; border-radius: var(--r-pill); cursor: pointer;
  transition: background-position var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  box-shadow: 0 12px 24px -14px rgba(1, 70, 126, .7);
}
.btn:hover { color: #fff; background-position: 100% 0; transform: translateY(-2px); }
.btn .arrow { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--c-ink-900); box-shadow: inset 0 0 0 1px var(--c-line-strong); }
.btn--ghost:hover { color: var(--c-deep); background: var(--c-bg-soft); box-shadow: inset 0 0 0 1px var(--c-primary); }
.btn--on-dark.btn--ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.btn--on-dark.btn--ghost:hover { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1px var(--c-primary); }
.btn[aria-disabled="true"] { background: #E9EEF3; color: var(--c-ink-500); box-shadow: none; cursor: not-allowed; transform: none; }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-en); font-weight: 700; font-size: var(--fs-sm); letter-spacing: .12em;
  text-decoration: none; color: var(--c-ink-900);
}
.text-link .arrow { width: 32px; height: 32px; padding: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--c-line-strong); transition: all var(--dur) var(--ease); color: var(--c-primary-ink); }
.text-link:hover { color: var(--c-deep); }
.text-link:hover .arrow { background: var(--c-primary-ink); color: #fff; box-shadow: none; transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: #FFFFFF; /* ロゴPNGが白背景のため不透明の白（透過ロゴ入手後に半透明へ） */
  border-bottom: 1px solid transparent;
  transition: height var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled { --header-h: 64px; height: 64px; border-color: var(--c-line); box-shadow: var(--sh-sm); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); }
.site-logo { display: block; flex-shrink: 0; }
.site-logo img { width: 160px; height: auto; mix-blend-mode: multiply; }
.gnav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); min-width: 0; }
.gnav__list { display: flex; list-style: none; gap: clamp(16px, 2.2vw, 32px); }
.gnav__list > li { flex-shrink: 0; }
.gnav__list a {
  position: relative; display: block; padding: 8px 0;
  font-size: var(--fs-sm); font-weight: 500; letter-spacing: .08em; color: var(--c-ink-800); text-decoration: none;
  white-space: nowrap; /* 1.0.1：メニュー文字を2段に折り返さない */
}
.gnav .btn { white-space: nowrap; flex-shrink: 0; }
/* サブメニューがある項目の「▼」 */
.gnav__list > .has-sub > a, .gnav__list > .menu-item-has-children > a {
  padding-right: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F6B7A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right center / 10px no-repeat;
}
.gnav__list a.is-current-parent::after { transform: scaleX(1); transform-origin: left; }
.gnav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--g-brand);
  transform: scaleX(0); transform-origin: right; transition: transform var(--dur) var(--ease);
}
.gnav__list a:hover::after, .gnav__list a[aria-current="page"]::after, .gnav__list .current-menu-ancestor > a::after { transform: scaleX(1); transform-origin: left; }
.gnav .btn { min-height: 44px; padding: 0 22px; }
.has-sub, .gnav__list .menu-item-has-children { position: relative; }
.subnav, .gnav__list .sub-menu {
  position: absolute; top: 100%; left: -20px; min-width: 240px; list-style: none; padding: 10px;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); box-shadow: var(--sh-md);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all var(--dur-fast) var(--ease);
}
.has-sub:hover .subnav, .has-sub:focus-within .subnav, .menu-item-has-children:hover > .sub-menu, .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.subnav a, .gnav__list .sub-menu a { padding: 10px 12px; border-radius: var(--r-sm); font-weight: 500; }
.subnav a::after, .gnav__list .sub-menu a::after { display: none; }
.subnav a:hover, .gnav__list .sub-menu a:hover { background: var(--c-bg-soft); color: var(--c-deep); }
.subnav small { display: block; font-family: var(--f-en); font-size: 10px; letter-spacing: .16em; color: var(--c-ink-500); line-height: 1.4; }

.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--c-ink-900); border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur-fast); }
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .site-logo img { width: 140px; }
  .gnav {
    position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch; gap: var(--sp-5);
    padding: var(--sp-5) var(--gutter) var(--sp-7); background: #fff; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all var(--dur) var(--ease);
  }
  .gnav.is-open { opacity: 1; visibility: visible; transform: none; }
  .gnav__list { flex-direction: column; gap: 0; }
  .gnav__list > li { border-bottom: 1px solid var(--c-line); }
  .gnav__list a { padding: 16px 0; font-size: var(--fs-base); }
  .gnav__list a::after { display: none; }
  .gnav__list > .has-sub > a, .gnav__list > .menu-item-has-children > a { padding-right: 0; background: none; }
  .gnav__list a { white-space: normal; }
  /* 1.0.2：visibility は親（閉じたメニュー）に合わせる。visible にすると、閉じたメニューの中の子メニューだけが透明のまま押せる状態で残り、下にあるリンクを押せなくなる */
  .subnav, .gnav__list .sub-menu { position: static; opacity: 1; visibility: inherit; transform: none; box-shadow: none; border: 0; padding: 0 0 12px 12px; min-width: 0; }
  .subnav a, .gnav__list .sub-menu a { padding: 8px 0; font-size: var(--fs-sm); }
  .gnav .btn { min-height: 52px; }
}
body.menu-open { overflow: hidden; } /* 開閉式メニューを開いている間（スマホ・.is-compact とも）は背景をスクロールさせない */

/* 1.0.1：961px 以上でもメニューが1行に収まらないとき（管理画面で項目の多いメニューを割り当てた場合など）、
   main.js が .site-header に .is-compact を付けて、スマホと同じ開閉式メニューに切り替える */
.site-header.is-compact .menu-toggle { display: block; }
.site-header.is-compact .gnav {
  position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch; gap: var(--sp-5);
  padding: var(--sp-5) var(--gutter) var(--sp-7); background: #fff; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all var(--dur) var(--ease);
}
.site-header.is-compact .gnav.is-open { opacity: 1; visibility: visible; transform: none; }
.site-header.is-compact .gnav__list { flex-direction: column; gap: 0; }
.site-header.is-compact .gnav__list > li { border-bottom: 1px solid var(--c-line); }
.site-header.is-compact .gnav__list a { padding: 16px 0; font-size: var(--fs-base); white-space: normal; }
.site-header.is-compact .gnav__list a::after { display: none; }
.site-header.is-compact .gnav__list > .has-sub > a, .site-header.is-compact .gnav__list > .menu-item-has-children > a { padding-right: 0; background: none; }
.site-header.is-compact .subnav, .site-header.is-compact .gnav__list .sub-menu { position: static; opacity: 1; visibility: inherit; transform: none; box-shadow: none; border: 0; padding: 0 0 12px 12px; min-width: 0; }
.site-header.is-compact .subnav a, .site-header.is-compact .gnav__list .sub-menu a { padding: 8px 0; font-size: var(--fs-sm); }
.site-header.is-compact .gnav .btn { min-height: 52px; }

/* ---------- Hero (top) ---------- */
.hero { position: relative; min-height: min(100svh, 860px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--c-ink-900); }
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hero__slide.is-active img { animation: kenburns 9s linear forwards; }
.hero.is-paused .hero__slide img { animation-play-state: paused; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(34, 43, 52, .92) 0%, rgba(34, 43, 52, .72) 38%, rgba(34, 43, 52, .12) 75%),
    linear-gradient(0deg, rgba(34, 43, 52, .7) 0%, rgba(34, 43, 52, 0) 45%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-top: calc(var(--header-h) + 64px); padding-bottom: clamp(56px, 9vw, 112px); }
.hero__label { font-family: var(--f-en); font-weight: 700; font-size: var(--fs-xs); letter-spacing: .32em; color: var(--c-primary); text-transform: uppercase; margin-bottom: var(--sp-5); display: flex; align-items: center; gap: 14px; }
.hero__label::before { content: ""; width: 40px; height: 1px; background: currentColor; }
.hero h1 { color: #fff; font-size: var(--fs-h1); letter-spacing: .08em; line-height: 1.3; font-weight: 700; }
.hero h1 .accent { background: linear-gradient(90deg, #6FD3FF, #03A9F4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { margin-top: var(--sp-5); font-size: clamp(1rem, .9rem + .4vw, 1.2rem); color: #DCE4EC; max-width: 36em; }
.hero__actions { margin-top: var(--sp-7); display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.hero__meta { position: absolute; right: var(--gutter); bottom: clamp(56px, 9vw, 112px); z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.hero__dots { display: flex; gap: 8px; }
.hero__dots button { width: 28px; height: 3px; padding: 0; border: 0; border-radius: 2px; background: rgba(255,255,255,.35); cursor: pointer; transition: background var(--dur), width var(--dur) var(--ease); }
.hero__dots button[aria-current="true"] { background: var(--c-primary); width: 48px; }
.hero__pause { font: 700 11px/1 var(--f-ja); letter-spacing: .08em; color: #fff; background: rgba(34,43,52,.5); border: 1px solid rgba(255,255,255,.35); border-radius: var(--r-pill); padding: 8px 14px; cursor: pointer; }
.hero__pause:hover { border-color: var(--c-primary); }
.scroll-cue { font-family: var(--f-en); font-size: 10px; letter-spacing: .3em; color: rgba(255,255,255,.7); writing-mode: vertical-rl; display: flex; align-items: center; gap: 12px; }
.scroll-cue::after { content: ""; width: 1px; height: 56px; background: linear-gradient(rgba(255,255,255,.7), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 720px) {
  .hero { min-height: 640px; }
  .hero::after { background: linear-gradient(0deg, rgba(34,43,52,.95) 10%, rgba(34,43,52,.55) 60%, rgba(34,43,52,.35) 100%); }
  .hero__meta { top: calc(var(--header-h) + 16px); bottom: auto; }
  .hero__meta .scroll-cue, .hero__dots { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- Page hero (lower pages) ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(56px, 8vw, 104px)) 0 clamp(56px, 8vw, 96px); color: #fff; background: var(--c-ink-900); overflow: hidden; isolation: isolate; }
.page-hero__bg { position: absolute; inset: 0; z-index: -1; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(34,43,52,.92) 20%, rgba(34,43,52,.45)); }
.page-hero h1 { color: #fff; font-size: clamp(1.75rem, 1.3rem + 2.2vw, 3rem); letter-spacing: .08em; }
.page-hero__en { font-family: var(--f-en); font-weight: 800; font-size: var(--fs-xs); letter-spacing: .32em; text-transform: uppercase; color: var(--c-primary); margin-bottom: var(--sp-4); }
.page-hero__lead { margin-top: var(--sp-4); color: #C9D4DF; max-width: 40em; }
.breadcrumb { margin-top: var(--sp-6); font-size: var(--fs-xs); color: #AEBBC8; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #6D7A88; }
.breadcrumb a { color: #DCE4EC; text-decoration: none; }
.breadcrumb a:hover { color: var(--c-primary); }

/* ---------- Intro (top) ---------- */
.intro { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.intro h2 { font-size: var(--fs-h2); }
.intro__body p { color: var(--c-ink-600); }
.intro__media { position: relative; }
.intro__media img { border-radius: var(--r-lg); box-shadow: var(--sh-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.intro__media::before { content: ""; position: absolute; inset: auto -16px -16px auto; width: 55%; height: 55%; border-radius: var(--r-lg); background: var(--g-brand); opacity: .14; z-index: -1; }
.stats { margin-top: var(--sp-6); display: flex; gap: var(--sp-6); flex-wrap: wrap; padding-top: var(--sp-5); border-top: 1px solid var(--c-line); }
.stats div { min-width: 120px; }
.stats strong { display: block; font-family: var(--f-en); font-size: 1.75rem; font-weight: 800; color: var(--c-ink-900); letter-spacing: .02em; line-height: 1.2; }
.stats span { font-size: var(--fs-xs); color: var(--c-ink-500); }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } .intro__media { order: -1; } }

/* ---------- Service cards ---------- */
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(16px, 2vw, 28px); list-style: none; }
.services > li { grid-column: span 2; }
.services > li:nth-child(4), .services > li:nth-child(5) { grid-column: span 3; }
.svc-card {
  height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg);
  overflow: hidden; text-decoration: none; color: inherit; position: relative;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: transparent; color: inherit; }
.svc-card--static:hover { transform: none; box-shadow: none; border-color: var(--c-line); }
.svc-card--static:hover .svc-card__media img { transform: none; }
.svc-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-bg-tint); }
.services > li:nth-child(n+4) .svc-card__media { aspect-ratio: 16 / 8; }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.svc-card:hover .svc-card__media img { transform: scale(1.04); }
.svc-card__body { padding: clamp(20px, 2.4vw, 32px); display: flex; flex-direction: column; flex: 1; }
.svc-card__num { font-family: var(--f-en); font-weight: 800; font-size: var(--fs-xs); letter-spacing: .2em; color: var(--c-primary-ink); display: flex; justify-content: space-between; align-items: center; }
.svc-card__num .tag { font-family: var(--f-ja); font-weight: 700; font-size: 11px; letter-spacing: .08em; color: var(--c-deep); background: var(--c-bg-tint); padding: 2px 10px; border-radius: var(--r-pill); }
.svc-card h3 { margin-top: var(--sp-3); font-size: var(--fs-h4); }
.svc-card p { margin-top: var(--sp-3); font-size: var(--fs-sm); line-height: 1.9; color: var(--c-ink-600); flex: 1; }
.svc-card__more { margin-top: var(--sp-4); display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-en); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .16em; color: var(--c-primary-ink); }
.svc-card__more svg { width: 16px; transition: transform var(--dur) var(--ease); }
.svc-card:hover .svc-card__more svg { transform: translateX(4px); }
@media (max-width: 960px) { .services > li, .services > li:nth-child(4), .services > li:nth-child(5) { grid-column: span 3; } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } .services > li, .services > li:nth-child(4), .services > li:nth-child(5) { grid-column: auto; } }

/* ---------- Works feature ---------- */
.work-feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.work-feature__visual { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); background: #0E1A24; }
.work-feature__visual svg { width: 100%; height: auto; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 4px 12px; border-radius: var(--r-pill); background: var(--c-bg-tint); color: var(--c-deep); }
.section--dark .badge { background: rgba(3, 169, 244, .16); color: #8FDBFF; }
.badge--muted { background: #EEF1F4; color: var(--c-ink-600); }
.section--dark .badge--muted { background: rgba(255,255,255,.08); color: #C9D4DF; }
.work-feature h3 { font-family: var(--f-en); font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); letter-spacing: .04em; margin-top: var(--sp-4); }
.work-feature__sub { font-size: var(--fs-sm); color: var(--c-ink-500); margin-top: 4px; }
.section--dark .work-feature__sub { color: #AEBBC8; }
.work-feature__desc { margin-top: var(--sp-5); }
.roles { margin-top: var(--sp-5); display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.roles li { font-size: 12px; padding: 4px 12px; border-radius: var(--r-sm); border: 1px solid var(--c-line-strong); color: var(--c-ink-600); }
.section--dark .roles li { border-color: rgba(255,255,255,.18); color: #DCE4EC; }
.note { font-size: var(--fs-xs); color: var(--c-ink-500); margin-top: var(--sp-4); line-height: 1.8; }
.section--dark .note { color: #9AA8B6; }
@media (max-width: 860px) { .work-feature { grid-template-columns: 1fr; } }

/* ---------- News ---------- */
.news { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 3vw, 40px); list-style: none; }
.news-card { display: grid; grid-template-columns: 44% 1fr; gap: var(--sp-5); align-items: center; text-decoration: none; color: inherit; }
.news-card__img { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 1024 / 559; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.news-card:hover .news-card__img img { transform: scale(1.04); }
.news-card time { font-family: var(--f-en); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; color: var(--c-ink-500); }
.news-card .cat { font-size: 11px; color: var(--c-primary-ink); margin-left: 10px; }
.news-card h3 { font-size: var(--fs-base); line-height: 1.7; margin-top: 6px; transition: color var(--dur-fast); }
.news-card:hover h3 { color: var(--c-primary-ink); }
@media (max-width: 860px) { .news { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .news-card { grid-template-columns: 1fr; gap: var(--sp-3); } }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; isolation: isolate; }
.contact__bg { position: absolute; inset: 0; z-index: -1; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__grid h2 { font-size: var(--fs-h2); }
.contact__lead { margin-top: var(--sp-5); color: #C9D4DF; }
.contact__mail { margin-top: var(--sp-5); font-family: var(--f-en); font-size: var(--fs-sm); }
.contact__mail a { color: #8FDBFF; }
.form { background: #fff; color: var(--c-ink-800); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); box-shadow: var(--sh-lg); }
.field + .field { margin-top: var(--sp-5); }
.field label { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 700; margin-bottom: 8px; }
.req, .opt { font-size: 10px; font-weight: 700; padding: 1px 8px; border-radius: var(--r-sm); letter-spacing: .06em; }
.req { background: var(--c-deep); color: #fff; }
.opt { background: #EEF1F4; color: var(--c-ink-600); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--c-ink-800); background: var(--c-bg-soft);
  border: 1px solid var(--c-line-strong); border-radius: var(--r-md); padding: 12px 14px;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(3,169,244,.18); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--c-error); }
.field__error { display: none; margin-top: 6px; font-size: var(--fs-xs); color: var(--c-error); }
.field.is-invalid .field__error { display: block; }
.form__privacy { margin-top: var(--sp-5); font-size: var(--fs-xs); color: var(--c-ink-500); }
.form .btn { margin-top: var(--sp-5); width: 100%; }
.form__status { margin-top: var(--sp-4); font-size: var(--fs-sm); padding: 12px 16px; border-radius: var(--r-md); background: #E8F6EE; color: var(--c-success); display: none; }
.form__status.is-shown { display: block; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

/* ---------- Lower page content blocks ---------- */
.lead-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.lead-block h2 { font-size: var(--fs-h2); }
.lead-block p { color: var(--c-ink-600); }
.lead-block__img img { border-radius: var(--r-lg); box-shadow: var(--sh-lg); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
@media (max-width: 860px) { .lead-block { grid-template-columns: 1fr; } }

.statement { text-align: center; max-width: 860px; margin-inline: auto; }
.statement h2 { font-size: var(--fs-h2); }
.statement p { margin-top: var(--sp-5); color: var(--c-ink-600); }
.section--dark .statement p { color: #C9D4DF; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); list-style: none; counter-reset: f; }
.feature { position: relative; padding: clamp(28px, 3vw, 40px); background: #fff; border-radius: var(--r-lg); border: 1px solid var(--c-line); }
.feature::before {
  counter-increment: f; content: "0" counter(f);
  display: block; font-family: var(--f-en); font-weight: 800; font-size: 2.5rem; line-height: 1;
  background: var(--g-brand); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: var(--sp-5);
}
.feature h3 { font-size: var(--fs-h4); }
.feature p { margin-top: var(--sp-4); font-size: var(--fs-sm); color: var(--c-ink-600); }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }

.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; list-style: none; border-top: 1px solid var(--c-line); }
.types li { padding: var(--sp-6) var(--sp-5) var(--sp-6) 0; border-bottom: 1px solid var(--c-line); }
.types li + li { padding-left: var(--sp-5); border-left: 1px solid var(--c-line); }
.types h3 { font-size: var(--fs-base); }
.types p { margin-top: 8px; font-size: var(--fs-sm); color: var(--c-ink-600); }
@media (max-width: 860px) { .types { grid-template-columns: 1fr; } .types li + li { padding-left: 0; border-left: 0; } }

.flow { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; counter-reset: s; position: relative; }
.flow--5 { grid-template-columns: repeat(5, 1fr); }
.flow li { position: relative; padding: 0 16px 0 0; }
.flow li::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  font-family: var(--f-en); font-weight: 800; font-size: var(--fs-sm); color: var(--c-deep);
  background: #fff; box-shadow: inset 0 0 0 1px var(--c-line-strong); position: relative; z-index: 1; margin-bottom: var(--sp-4);
}
.flow li::after { content: ""; position: absolute; top: 24px; left: 48px; right: 0; height: 1px; background: linear-gradient(90deg, var(--c-primary), var(--c-line-strong)); }
.flow li:last-child::after { display: none; }
.flow h3 { font-size: var(--fs-base); }
.flow p { margin-top: 6px; font-size: var(--fs-sm); color: var(--c-ink-600); line-height: 1.8; }
@media (max-width: 960px) {
  .flow, .flow--5 { grid-template-columns: 1fr; gap: var(--sp-5); }
  .flow li { padding: 0 0 0 68px; min-height: 48px; }
  .flow li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .flow li::after { top: 48px; bottom: calc(var(--sp-5) * -1); left: 24px; right: auto; width: 1px; height: auto; background: var(--c-line-strong); }
}

.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.two-col > *, .lead-block > *, .intro > *, .contact__grid > *, .work-feature > * { min-width: 0; }
.tags li { max-width: 100%; line-height: 1.6; padding: 8px 16px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--c-line); font-size: var(--fs-sm); }

/* table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--c-line); border-radius: var(--r-lg); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 560px; }
.table th, .table td { padding: 18px 24px; text-align: left; border-bottom: 1px solid var(--c-line); vertical-align: top; line-height: 1.8; }
.table thead th { font-size: var(--fs-xs); letter-spacing: .1em; color: var(--c-ink-500); background: var(--c-bg-soft); font-weight: 700; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody th { font-weight: 700; color: var(--c-ink-900); white-space: nowrap; }
.table .price { font-family: var(--f-en); font-weight: 800; font-size: 1.125rem; color: var(--c-ink-900); white-space: nowrap; }
.table--def { min-width: 0; }
.table--def th { width: 28%; background: var(--c-bg-soft); }
@media (max-width: 620px) {
  .table--def, .table--def tbody, .table--def tr, .table--def th, .table--def td { display: block; width: 100%; }
  .table--def th { padding-bottom: 6px; border-bottom: 0; }
  .table--def td { padding-top: 6px; }
}
@media (max-width: 620px) {
  .table--stack { min-width: 0; }
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table--stack tbody, .table--stack tr, .table--stack th, .table--stack td { display: block; width: 100%; }
  .table--stack tr { padding: 16px 20px; border-bottom: 1px solid var(--c-line); }
  .table--stack tbody tr:last-child { border-bottom: 0; }
  .table--stack th, .table--stack td { padding: 2px 0; border: 0; }
  .table--stack tbody th { font-size: var(--fs-base); margin-bottom: 4px; white-space: normal; }
  .table--stack td[data-label]::before { content: attr(data-label) "："; color: var(--c-ink-500); font-size: var(--fs-xs); }
}
.table-note { margin-top: var(--sp-4); font-size: var(--fs-xs); color: var(--c-ink-500); }

/* plain lists */
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 18px; height: 18px; border-radius: 50%; background: var(--c-bg-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230277BD' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); }
.panel h2, .panel h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-4); }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 24px); list-style: none; }
.values li { padding: var(--sp-6) var(--sp-5); border-radius: var(--r-lg); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.values strong { display: block; font-family: var(--f-en); font-weight: 800; font-size: 1.125rem; color: #fff; letter-spacing: .04em; }
.values span { display: block; margin-top: 8px; font-size: var(--fs-sm); color: #B8C4D0; }
@media (max-width: 960px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .values { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background-image: url("../images/ai_bg-flow.jpg") !important; background-size: cover !important; background-position: center !important; position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-lg); padding: clamp(40px, 6vw, 80px); color: #fff; background: var(--c-ink-900); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); flex-wrap: wrap; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .9; }
.cta-band h2 { color: #fff; font-size: var(--fs-h3); }
.cta-band p { margin: 8px 0 0; color: #C9D4DF; font-size: var(--fs-sm); }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-ink-900); color: #AEBBC8; padding: clamp(56px, 8vw, 96px) 0 32px; font-size: var(--fs-sm); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--sp-6); }
.footer-logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: var(--r-md); }
.footer-logo img { width: 150px; }
.site-footer__tagline { margin-top: var(--sp-4); color: #DCE4EC; font-weight: 500; }
.site-footer h2 { font-family: var(--f-en); font-size: var(--fs-xs); letter-spacing: .24em; color: var(--c-primary); margin-bottom: var(--sp-4); text-transform: uppercase; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: #DCE4EC; text-decoration: none; }
.site-footer a:hover { color: var(--c-primary); }
.site-footer__bottom { margin-top: var(--sp-8); padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; font-family: var(--f-en); font-size: var(--fs-xs); letter-spacing: .08em; }
.to-top { color: #DCE4EC; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* ---------- Prototype note ---------- */
.proto-note { background: #FFF8E6; color: #6B4E00; font-size: 12px; text-align: center; padding: 6px var(--gutter); position: relative; z-index: 101; }

/* ---------- Reveal animation（控えめ） ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   WordPress 用の追加スタイル（accel theme）
   ========================================================= */

/* 管理バー表示時（ログイン中のみ） */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.admin-bar .gnav { inset: calc(var(--header-h) + 32px) 0 0 0; }
@media (max-width: 782px) { .admin-bar .gnav { inset: calc(var(--header-h) + 46px) 0 0 0; } }
@media (min-width: 961px) { .admin-bar .gnav { inset: auto; } .admin-bar .site-header.is-compact .gnav { inset: calc(var(--header-h) + 32px) 0 0 0; } }
.site-logo img, .footer-logo img { height: auto; }
.custom-logo-link { display: block; }

/* 小さな共通クラス（ページ本文のカスタムHTMLで使う） */
.mt { margin-top: var(--sp-5); }
.mt-lg { margin-top: var(--sp-7); }
.muted { color: var(--c-ink-600); }
.small { font-size: var(--fs-sm); }
.h-sm { font-size: var(--fs-h3) !important; }
.h-xl { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem) !important; }
.h-work { font-family: var(--f-en); font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); letter-spacing: .04em; margin-top: var(--sp-4); }
.eyebrow--center { justify-content: center; }
.statement .eyebrow { justify-content: center; }
.tags { margin-top: var(--sp-5); }
.two-col .muted { margin-top: var(--sp-5); }
.section--compact { padding-bottom: var(--sp-6); }
.section--flush-top { padding-top: 0; }
.text-link--on-dark { color: #fff; }
.text-link--on-dark:hover { color: var(--c-primary); }
.check-list a { overflow-wrap: anywhere; }

/* 固定ページ・記事の本文 */
.entry-content--sections > :not(.section) {
  width: 100%; max-width: calc(820px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter);
}
.entry-content--sections > :not(.section):last-child { margin-bottom: var(--section-y); }
.entry-content--prose {
  width: 100%; max-width: calc(780px + var(--gutter) * 2); margin-inline: auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter);
}
.entry-content--prose > * + * { margin-top: 1.4em; }
.entry-content--prose h2 {
  margin-top: 2.6em; padding: 4px 0 4px 18px; font-size: var(--fs-h3);
  border-left: 4px solid; border-image: var(--g-brand) 1;
}
.entry-content--prose h3 { margin-top: 2em; font-size: var(--fs-h4); padding-bottom: 8px; border-bottom: 1px solid var(--c-line); }
.entry-content--prose h4 { margin-top: 1.8em; font-size: var(--fs-lg); }
.entry-content--prose p { margin: 0; }
.entry-content--prose ul, .entry-content--prose ol { padding-left: 1.4em; }
.entry-content--prose li + li { margin-top: .4em; }
.entry-content--prose img { border-radius: var(--r-md); }
.entry-content--prose figure { margin-inline: 0; }
.entry-content--prose figcaption { font-size: var(--fs-xs); color: var(--c-ink-500); margin-top: 8px; }
.entry-content--prose blockquote { margin-inline: 0; padding: 16px 24px; background: var(--c-bg-soft); border-left: 3px solid var(--c-primary); border-radius: 0 var(--r-md) var(--r-md) 0; }
.entry-content--prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.entry-content--prose th, .entry-content--prose td { padding: 14px 16px; border: 1px solid var(--c-line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.entry-content--prose thead th, .entry-content--prose tbody th { background: var(--c-bg-soft); font-weight: 700; }
.entry-content--prose .wp-block-table { overflow-x: auto; }
.entry-content--prose .wp-block-button__link { border-radius: var(--r-pill); background: var(--g-button); color: #fff; padding: 14px 28px; text-decoration: none; font-weight: 700; }
.entry-content--prose > .section { margin-inline: calc(var(--gutter) * -1); }
.post-thumb { margin: 0 0 var(--sp-6); }
.post-thumb img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--sh-md); }
.alignwide { max-width: 1100px; }
.alignfull { max-width: none; }
.aligncenter { margin-inline: auto; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.wp-caption-text, .wp-element-caption { font-size: var(--fs-xs); color: var(--c-ink-500); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 記事ヘッダー */
.page-hero--post { background: var(--c-ink-900) url("../images/ai_bg-flow.jpg") center / cover; }
.page-hero--post h1 { font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.375rem); line-height: 1.5; }
.post-meta { display: flex; flex-wrap: wrap; gap: 12px; font-family: var(--f-en); font-size: var(--fs-xs); letter-spacing: .12em; color: #AEBBC8; margin-bottom: var(--sp-4); }
.post-meta .cat { color: #8FDBFF; font-family: var(--f-ja); letter-spacing: .04em; }
.post-footer { padding-bottom: var(--sp-8); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); border-top: 1px solid var(--c-line); padding-top: var(--sp-6); }
.post-navigation a { display: block; padding: 16px 20px; border: 1px solid var(--c-line); border-radius: var(--r-md); text-decoration: none; color: var(--c-ink-800); height: 100%; }
.post-navigation a:hover { border-color: var(--c-primary); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.post-nav__label { display: block; font-size: var(--fs-xs); color: var(--c-ink-500); }
.post-nav__title { display: block; font-weight: 700; font-size: var(--fs-sm); line-height: 1.6; }
@media (max-width: 620px) { .post-navigation .nav-links { grid-template-columns: 1fr; } .post-navigation .nav-next { grid-column: auto; } }

/* 記事一覧 */
.cat-filter { margin-bottom: var(--sp-7); }
.cat-filter ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.cat-filter a { display: inline-block; padding: 8px 18px; border-radius: var(--r-pill); border: 1px solid var(--c-line-strong); text-decoration: none; color: var(--c-ink-800); font-size: var(--fs-sm); }
.cat-filter a:hover { border-color: var(--c-primary-ink); color: var(--c-primary-ink); }
.cat-filter a[aria-current="page"] { background: var(--c-ink-900); border-color: var(--c-ink-900); color: #fff; }
.news--list { row-gap: clamp(32px, 4vw, 48px); }
.pagination { margin-top: var(--sp-8); }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--c-line); text-decoration: none; color: var(--c-ink-800); font-family: var(--f-en); font-weight: 700; }
.pagination .page-numbers.current { background: var(--c-ink-900); color: #fff; border-color: var(--c-ink-900); }
.empty { color: var(--c-ink-500); }
.search-box { margin: var(--sp-5) 0 var(--sp-6); }
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form label { flex: 1; }
.search-field { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--c-line-strong); border-radius: var(--r-md); background: var(--c-bg-soft); }
.search-submit { font: inherit; font-weight: 700; padding: 0 20px; border: 0; border-radius: var(--r-md); background: var(--c-ink-900); color: #fff; cursor: pointer; }

/* Contact Form 7 */
.form-card { background: #fff; color: var(--c-ink-800); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); box-shadow: var(--sh-lg); }
.entry-content .wpcf7 { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); box-shadow: var(--sh-md); }
.form-card .wpcf7 { padding: 0; border: 0; box-shadow: none; }
.wpcf7 form > p, .wpcf7 form > div { margin: 0 0 var(--sp-5); }
.wpcf7 label { display: block; font-size: var(--fs-sm); font-weight: 700; color: var(--c-ink-900); }
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 8px; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="url"], .wpcf7 textarea, .wpcf7 select {
  width: 100%; font: inherit; font-size: 16px; font-weight: 400; color: var(--c-ink-800); background: var(--c-bg-soft);
  border: 1px solid var(--c-line-strong); border-radius: var(--r-md); padding: 12px 14px;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}
.wpcf7 textarea { min-height: 160px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { outline: none; background: #fff; border-color: var(--c-primary-ink); box-shadow: 0 0 0 4px rgba(3, 169, 244, .22); }
.wpcf7 .wpcf7-submit {
  width: 100%; min-height: 52px; border: 0; border-radius: var(--r-pill); cursor: pointer;
  font: 700 var(--fs-sm)/1 var(--f-ja); letter-spacing: .08em; color: #fff;
  background: var(--g-button); background-size: 140% 100%; transition: background-position var(--dur) var(--ease), transform var(--dur) var(--ease);
  box-shadow: 0 12px 24px -14px rgba(1, 70, 126, .7);
}
.wpcf7 .wpcf7-submit:hover { background-position: 100% 0; transform: translateY(-2px); }
.wpcf7 .wpcf7-spinner { display: block; margin: 12px auto 0; }
.wpcf7 .wpcf7-not-valid { border-color: var(--c-error) !important; }
.wpcf7 .wpcf7-not-valid-tip { color: var(--c-error); font-size: var(--fs-xs); font-weight: 500; margin-top: 6px; }
.wpcf7 form .wpcf7-response-output { margin: var(--sp-4) 0 0; padding: 12px 16px; border-radius: var(--r-md); font-size: var(--fs-sm); }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--c-success); background: #E8F6EE; color: var(--c-success); }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { border-color: var(--c-error); background: #FDEEEE; color: var(--c-error); }
.form-privacy-note { font-size: var(--fs-xs); color: var(--c-ink-500); margin-top: var(--sp-4); }
/* お問い合わせページ：フォームの枠を左右の余白の内側に収める */
.entry-content--sections > .wpcf7 { width: auto; max-width: 820px; margin-inline: var(--gutter); }
@media (min-width: 900px) { .entry-content--sections > .wpcf7 { margin-inline: auto; } }