@charset "UTF-8";
/* ==========================================================================
   日本設備保全株式会社 — Corporate Site
   Color base: logo.png (NSH cyan + navy)
   ========================================================================== */

:root {
  --navy: #15365f;
  --navy-deep: #0c2340;
  --navy-ink: #0a1c33;
  --blue: #1e86c6;
  --cyan: #23a6e0;
  --cyan-soft: #7fd0f1;
  --light: #e8f4fa;
  --gray: #f5f7f9;
  --line: #dde5ec;
  --text: #263746;
  --muted: #5d6f80;
  --white: #ffffff;

  --ff-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --ff-head: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --ff-en: "Outfit", "Helvetica Neue", Arial, sans-serif;

  --fs-base: 17px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 6px;
  --radius-lg: 12px;
  --header-h: 88px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--ff-jp);
  font-size: var(--fs-base);
  line-height: 1.95;
  letter-spacing: .04em;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 1;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-family: var(--ff-head); font-weight: 700; line-height: 1.5; letter-spacing: .06em; color: var(--navy-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
body.is-locked { overflow: hidden; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: var(--radius);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: calc(920px + var(--gutter) * 2); }
.section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.section-sm { padding: clamp(64px, 7vw, 100px) 0; }
.bg-gray { background: var(--gray); }
.bg-light { background: var(--light); }
.pc-only { display: inline; }
.sp-only { display: none; }
@media (max-width: 768px) { .pc-only { display: none; } .sp-only { display: inline; } }

/* ---------- Section heading ---------- */
.sec-head { margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head.is-center { text-align: center; }
.en-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--ff-en); font-weight: 600; font-size: 14px; letter-spacing: .24em;
  color: var(--blue); text-transform: uppercase; margin-bottom: 14px; line-height: 1;
}
.en-label { max-width: 100%; flex-wrap: wrap; row-gap: 8px; }
.en-label::before { content: ""; width: 28px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--blue)); }
.sec-head.is-center .en-label::after { content: ""; width: 28px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.sec-title { font-size: clamp(26px, 3.2vw, 40px); }
.sec-title small { display: block; font-size: .5em; color: var(--muted); letter-spacing: .1em; margin-top: 8px; font-family: var(--ff-jp); font-weight: 500; }
.sec-lead { margin-top: 22px; max-width: 760px; color: var(--muted); }
.sec-head.is-center .sec-lead { margin-left: auto; margin-right: auto; }
.h3 { font-size: clamp(20px, 2vw, 25px); margin-bottom: 18px; }

.prose p + p { margin-top: 1.2em; }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 2; color: var(--navy-ink); font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  min-height: 60px; padding: 0 30px 0 34px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 16px; letter-spacing: .08em; line-height: 1.3;
  overflow: hidden; isolation: isolate; border: 1px solid transparent;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, var(--blue), var(--cyan));
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn .arrow { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; transition: transform .4s var(--ease-out); flex-shrink: 0; }
.btn .arrow svg { width: 14px; height: 14px; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-outline { --bg: transparent; --fg: var(--navy); border-color: var(--navy); }
.btn-outline .arrow { background: var(--light); }
.btn-outline:hover { --fg: #fff; border-color: transparent; }
.btn-white { --bg: #fff; --fg: var(--navy); }
.btn-white .arrow { background: var(--light); }
.btn-white:hover { --fg: #fff; }
.btn-ghost { --bg: rgba(255,255,255,.08); --fg: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.btn-block { width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.text-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); font-size: 15px; letter-spacing: .08em; }
.text-link .line { width: 32px; height: 1px; background: currentColor; transition: width .4s var(--ease-out); }
.text-link:hover .line, a:hover .text-link .line { width: 52px; }

/* ==========================================================================
   Header (transparent)
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  color: #fff;
  transition: background-color .4s var(--ease), color .4s var(--ease), height .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -40px 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,22,42,.55), rgba(7,22,42,0));
  transition: opacity .4s;
}
.site-header.is-scrolled {
  --header-h: 72px;
  background: rgba(255,255,255,.92); color: var(--navy-ink);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.site-header.is-scrolled::before { opacity: 0; }
.header-inner {
  position: relative; height: 100%; display: flex; align-items: center; gap: 24px;
  padding: 0 clamp(16px, 2.2vw, 40px) 0 0;
}
.logo {
  flex-shrink: 0; align-self: flex-start; display: block;
  background: #fff; padding: 10px 14px 12px; margin-left: clamp(12px, 2vw, 36px);
  border-radius: 0 0 10px 10px;
  transition: padding .4s var(--ease);
}
/* PC時はロゴを大きめに表示（タブレット・スマホは下の1024px以下の指定で調整） */
.logo { padding: 12px 18px 14px; }
.logo img { height: clamp(86px, 6.6vw, 100px); width: auto; transition: height .4s var(--ease); }
.site-header.is-scrolled .logo { padding: 7px 14px 9px; }
.site-header.is-scrolled .logo img { height: 70px; }

.gnav { flex: 1; min-width: 0; display: flex; justify-content: flex-end; }
.gnav-list {
  display: flex; align-items: center; flex-wrap: nowrap; max-width: 100%; overflow: hidden;
  font-size: clamp(12px, calc(.55vw + 6.4px), 15px);
  gap: 0;
}
.gnav-list li { flex-shrink: 0; white-space: nowrap; }
.gnav-list a {
  position: relative; display: block; padding: .9em .85em; font-weight: 500; letter-spacing: .05em; line-height: 1;
}
.gnav-list a::after {
  content: ""; position: absolute; left: .85em; right: .85em; bottom: .35em; height: 2px; border-radius: 2px;
  background: var(--cyan); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out);
}
.gnav-list a:hover::after, .gnav-list a.is-current::after { transform: scaleX(1); transform-origin: left; }
.gnav-list .gnav-cta { margin-left: .6em; }
.gnav-list .gnav-cta a {
  background: linear-gradient(100deg, var(--blue), var(--cyan)); color: #fff; border-radius: 999px;
  padding: 1.05em 1.5em; font-weight: 700; transition: filter .3s, transform .3s;
}
.gnav-list .gnav-cta a::after { display: none; }
.gnav-list .gnav-cta a:hover { filter: brightness(1.08); transform: translateY(-1px); }

.header-tel, .menu-btn { display: none; }

@media (max-width: 1024px) {
  :root { --header-h: 72px; }
  .site-header.is-scrolled { --header-h: 64px; }
  .gnav { display: none; }
  .logo { padding: 7px 10px 9px; }
  .logo img { height: 56px; }
  .site-header.is-scrolled .logo { padding: 5px 9px 7px; }
  .site-header.is-scrolled .logo img { height: 50px; }
  .header-inner { justify-content: flex-end; gap: 10px; }
  .logo { margin-right: auto; }
  .header-tel, .menu-btn {
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.7); background: var(--navy); color: #fff; cursor: pointer;
    transition: background .3s, border-color .3s, color .3s;
  }
  .menu-btn { background: linear-gradient(135deg, var(--blue), var(--cyan)); border-color: transparent; }
  .site-header.is-scrolled .menu-btn { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--blue), var(--cyan)); }
  .site-header.is-scrolled .header-tel { color: var(--navy); }
  .site-header.is-scrolled .header-tel { border-color: var(--line); background: #fff; }
  .header-tel svg { width: 20px; height: 20px; }
  .header-tel span { display: none; }
  .menu-btn { position: relative; z-index: 2; padding: 0; }
  .menu-btn span { position: absolute; left: 14px; right: 14px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease-out), opacity .3s; }
  .menu-btn span:nth-child(1) { top: 17px; }
  .menu-btn span:nth-child(2) { top: 23px; }
  .menu-btn span:nth-child(3) { top: 29px; }
  .is-menu-open .menu-btn, .is-menu-open .site-header.is-scrolled .menu-btn { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }
  .is-menu-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .is-menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .is-menu-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .is-menu-open .site-header { background: transparent; border-color: transparent; color: #fff; backdrop-filter: none; }
  .is-menu-open .header-tel, .is-menu-open .site-header.is-scrolled .header-tel { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }
}

/* ---------- Drawer ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 90; background: var(--navy-deep); color: #fff;
  visibility: hidden; opacity: 0; transition: opacity .45s var(--ease), visibility .45s;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.drawer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 50% at 100% 0%, rgba(35,166,224,.28), transparent 60%), radial-gradient(60% 40% at 0% 100%, rgba(30,134,198,.25), transparent 60%);
}
.is-menu-open .drawer { visibility: visible; opacity: 1; }
.drawer-inner { position: relative; min-height: 100%; padding: 104px var(--gutter) 48px; display: flex; flex-direction: column; gap: 36px; max-width: 640px; margin: 0 auto; }
.drawer-list li { border-bottom: 1px solid rgba(255,255,255,.12); opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .6s var(--ease-out); }
.is-menu-open .drawer-list li { opacity: 1; transform: none; }
.drawer-list li:nth-child(1) { transition-delay: .05s; } .drawer-list li:nth-child(2) { transition-delay: .09s; }
.drawer-list li:nth-child(3) { transition-delay: .13s; } .drawer-list li:nth-child(4) { transition-delay: .17s; }
.drawer-list li:nth-child(5) { transition-delay: .21s; } .drawer-list li:nth-child(6) { transition-delay: .25s; }
.drawer-list li:nth-child(7) { transition-delay: .29s; } .drawer-list li:nth-child(8) { transition-delay: .33s; }
.drawer-list li:nth-child(9) { transition-delay: .37s; }
/* メニューは日本語表記のみ（英字ラベル非表示）で、長い項目名も1行に収める */
.drawer-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 4px; font-size: clamp(15px, 4.6vw, 18px); font-weight: 700; letter-spacing: .04em; line-height: 1.5; white-space: nowrap; }
.drawer-list a .en { display: none; }
.drawer-list a::after { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-top: 2px solid var(--cyan-soft); border-right: 2px solid var(--cyan-soft); transform: rotate(45deg); margin-right: 6px; }
.drawer-list a.is-current { color: var(--cyan-soft); }
.drawer-contact { display: grid; gap: 12px; }
.drawer-tel { display: flex; flex-direction: column; align-items: center; padding: 16px; border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius-lg); }
.drawer-tel small { font-size: 13px; color: rgba(255,255,255,.7); }
.drawer-tel strong { font-family: var(--ff-en); font-size: 28px; letter-spacing: .06em; line-height: 1.3; }

/* ==========================================================================
   Home hero (full-bleed)
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; color: #fff; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; background: var(--navy-deep);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 18s var(--ease) forwards; }
.hero-media .hero-sp { display: none; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
/* メイン画像はフィルターなし（写真本来の明るさ）。文字側のシャドウで視認性を確保 */
.hero-content { position: relative; z-index: 1; padding-top: calc(var(--header-h) + 60px); padding-bottom: 48px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero-content {
  --ts: 0 1px 2px rgba(6,22,44,.55), 0 2px 10px rgba(6,22,44,.45), 0 6px 32px rgba(6,22,44,.4);
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 14px; font-family: var(--ff-en); letter-spacing: .3em; font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 28px; text-shadow: var(--ts); }
.hero-eyebrow::before { content: ""; width: 44px; height: 2px; background: currentColor; box-shadow: 0 1px 6px rgba(6,22,44,.45); }
.hero-title {
  font-size: clamp(38px, 6vw, 84px); line-height: 1.32; letter-spacing: .08em; color: #fff; font-weight: 700;
  text-shadow: var(--ts);
}
.hero-title .ln { display: block; overflow: hidden; }
.hero-title .ln > span { display: inline-block; transform: translateY(105%); animation: lineUp 1.1s var(--ease-out) forwards; }
.hero-title .ln:nth-child(2) > span { animation-delay: .15s; }
.hero-title .ln:nth-child(3) > span { animation-delay: .3s; }
/* キャッチコピー：背景の水色と同系色になる水色アクセントをやめ、純白で統一。
   「水」は色ではなくサイズで強調し、写真になじみつつ際立たせる */
.hero-title .accent { color: #fff; font-size: 1.14em; line-height: 1; }
.hero-title .ln { padding: 0 .2em .12em 0; margin-bottom: -.12em; }
@keyframes lineUp { to { transform: none; } }
.hero-sub { margin-top: 30px; max-width: 640px; font-size: 17px; font-weight: 500; line-height: 2; color: #fff; text-shadow: var(--ts); opacity: 0; animation: fadeIn 1s .7s var(--ease) forwards; }
.hero-sub strong { display: block; color: #fff; font-size: clamp(17px, 1.5vw, 20px); font-weight: 700; margin-bottom: 8px; letter-spacing: .08em; }
.hero .btn-ghost { --bg: rgba(12,35,64,.55); border-color: rgba(255,255,255,.85); }
/* ナビ：ホームの透明ナビは暗いグラデーションを使わず、文字シャドウで読みやすく */
body:has(.hero) .site-header::before { display: none; }
body:has(.hero) .site-header:not(.is-scrolled) .gnav-list > li:not(.gnav-cta) a { text-shadow: 0 1px 2px rgba(6,22,44,.6), 0 2px 12px rgba(6,22,44,.45); font-weight: 700; }
.hero .btn-group { opacity: 0; animation: fadeIn 1s .9s var(--ease) forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero-services { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.25); background: rgba(12,35,64,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero-services ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-services li + li { border-left: 1px solid rgba(255,255,255,.16); }
.hero-services a { display: flex; align-items: center; gap: 16px; padding: 24px clamp(16px, 2vw, 32px); transition: background .35s; height: 100%; }
.hero-services a:hover { background: rgba(35,166,224,.22); }
.hero-services .num { font-family: var(--ff-en); font-size: 13px; color: var(--cyan-soft); letter-spacing: .1em; }
.hero-services .name { font-weight: 700; font-size: clamp(14px, 1.15vw, 17px); letter-spacing: .06em; line-height: 1.5; }
.hero-services .go { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); display: grid; place-items: center; flex-shrink: 0; transition: background .3s, border-color .3s; }
.hero-services .go svg { width: 12px; height: 12px; }
.hero-services a:hover .go { background: var(--cyan); border-color: var(--cyan); }

.scroll-cue { position: absolute; right: clamp(20px, 3vw, 48px); bottom: 130px; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; font-family: var(--ff-en); font-size: 11px; letter-spacing: .3em; writing-mode: vertical-rl; color: rgba(255,255,255,.8); }
.scroll-cue::after { content: ""; width: 1px; height: 64px; background: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,0)); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 1024px) {
  .hero-services ul { grid-template-columns: repeat(2, 1fr); }
  .hero-services li:nth-child(3) { border-left: 0; }
  .hero-services li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.16); }
  .scroll-cue { display: none; }
}
@media (max-width: 768px) {
  .hero-media .hero-pc { display: none; }
  .hero-media .hero-sp { display: block; }
  .hero-content { justify-content: flex-end; padding-top: calc(var(--header-h) + 40px); padding-bottom: 32px; }
  .hero-content { --ts: 0 1px 2px rgba(6,22,44,.7), 0 2px 8px rgba(6,22,44,.55), 0 4px 24px rgba(6,22,44,.5); }
  .hero-title { font-size: clamp(36px, 10.5vw, 48px); }
  .hero-eyebrow { font-size: 12px; letter-spacing: .2em; margin-bottom: 20px; }
  .hero-sub { font-size: 16px; line-height: 1.9; }
  .hero-sub strong { font-size: 17px; }
  .hero .btn-group { margin-top: 28px; }
  .hero .btn-group .btn { flex: 1 1 100%; }
  .hero-services a { padding: 16px 14px; gap: 10px; }
  .hero-services .go { width: 26px; height: 26px; }
  .hero-services .name { font-size: 13.5px; }
}

/* ==========================================================================
   Home hero — B案「Clean Water」
   明るい背景＋ネイビー文字（シャドウなし）＋アーチ型の写真＋水の流れの波線
   ※ .hero から .hero--b を外すと A案（全面写真＋白文字）に戻ります
   ========================================================================== */
.hero--b {
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(35,166,224,.14), transparent 70%),
    linear-gradient(180deg, #f7fbfe 0%, #eaf5fb 100%);
  color: var(--navy-ink);
}
/* 背景の波線（装飾SVG） */
.hero--b::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 70px; height: 62%; pointer-events: none; z-index: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 400' preserveAspectRatio='none' fill='none' stroke='%2323a6e0' stroke-width='1.2'%3E%3Cpath opacity='.55' d='M0 300 C240 220 420 380 720 300 S1200 200 1440 270'/%3E%3Cpath opacity='.4' d='M0 330 C260 260 460 400 760 330 S1220 240 1440 300'/%3E%3Cpath opacity='.28' d='M0 360 C280 300 500 420 800 360 S1240 280 1440 330'/%3E%3Cpath opacity='.18' d='M0 270 C220 190 400 340 700 270 S1180 170 1440 240'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  animation: waveDrift 14s ease-in-out infinite alternate;
}
@keyframes waveDrift { from { transform: translateX(-2%); } to { transform: translateX(2%); } }

/* アーチ型の写真 */
.hero--b .hero-media {
  inset: auto; top: calc(var(--header-h) + 44px); bottom: 128px; right: clamp(24px, 4.5vw, 72px);
  width: min(40vw, 600px); border-radius: 600px 600px 24px 24px; overflow: hidden; z-index: 1;
}
.hero--b .hero-media::after { display: none; }
/* アーチの外側の細い輪郭線（ずらして重ねる） */
.hero--b::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  top: calc(var(--header-h) + 24px); bottom: 148px; right: calc(clamp(24px, 4.5vw, 72px) + 22px);
  width: min(40vw, 600px); border-radius: 600px 600px 24px 24px; border: 1px solid rgba(30,134,198,.45);
}

/* テキスト：写真と重ならない幅に */
.hero--b .hero-content { --ts: none; }
.hero--b .hero-content > * { max-width: min(52%, 660px); }
.hero--b .hero-eyebrow { color: var(--blue); text-shadow: none; }
.hero--b .hero-eyebrow::before { box-shadow: none; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.hero--b .hero-title { color: var(--navy-ink); text-shadow: none; font-size: clamp(38px, 5.4vw, 78px); letter-spacing: .1em; }
.hero--b .hero-title .accent { color: var(--blue); font-size: 1em; position: relative; }
/* 「水」の背後に水滴のような淡い円 */
.hero--b .hero-title .accent::before {
  content: ""; position: absolute; left: 50%; top: 54%; width: 1.25em; height: 1.25em; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(127,208,241,.45), rgba(35,166,224,.12) 70%); z-index: -1;
}
.hero--b .hero-title .ln > span { position: relative; z-index: 0; }
/* 「水」の円が行の表示範囲（overflow:hidden）で切れないよう、余白を広げて同じ分だけ負のマージンで相殺 */
.hero--b .hero-title .ln { padding: .24em .3em .24em .24em; margin: -.24em -.3em -.24em -.24em; }
.hero--b .hero-title .ln > span { transform: translateY(140%); }
.hero--b .hero-sub { color: var(--text); text-shadow: none; font-weight: 400; margin-top: 34px; }
.hero--b .hero-sub strong { color: var(--navy-ink); padding-left: 16px; border-left: 3px solid var(--cyan); margin-bottom: 14px; line-height: 1.7; }
.hero--b .btn-white { --bg: var(--navy); --fg: #fff; }
.hero--b .btn-white .arrow { background: rgba(255,255,255,.16); }
.hero--b .btn-ghost { --bg: transparent; --fg: var(--navy); border-color: var(--navy); backdrop-filter: none; }
.hero--b .btn-ghost .arrow { background: var(--light); }
.hero--b .btn-ghost:hover { --fg: #fff; border-color: transparent; }
.hero--b .scroll-cue { color: var(--navy); left: clamp(16px, 2vw, 32px); right: auto; }
.hero--b .scroll-cue::after { background: linear-gradient(var(--navy), rgba(21,54,95,0)); }
.hero--b .hero-services { background: var(--navy); backdrop-filter: none; -webkit-backdrop-filter: none; border-top: 0; color: #fff; }
.hero--b .hero-services a, .hero--b .hero-services .num, .hero--b .hero-services .name { color: #fff; }
.hero--b .hero-services .go { border-color: rgba(255,255,255,.6); color: #fff; }

/* B案ではホームの透明ナビもネイビー文字 */
body:has(.hero--b) .site-header:not(.is-scrolled) { color: var(--navy-ink); }
body:has(.hero--b) .site-header:not(.is-scrolled) .gnav-list > li:not(.gnav-cta) a { text-shadow: none; }
.is-menu-open body:has(.hero--b) .site-header { color: #fff; }

/* タブレット・スマホ：写真を上、テキストを下に縦積み */
@media (max-width: 1024px) {
  .hero--b { justify-content: flex-start; }
  .hero--b .hero-media {
    position: relative; top: auto; bottom: auto; right: auto;
    width: auto; height: clamp(240px, 42vh, 420px); margin: calc(var(--header-h) + 20px) var(--gutter) 0;
    border-radius: 400px 400px 18px 18px;
  }
  .hero--b::after { display: none; }
  .hero--b::before { height: 45%; bottom: 140px; }
  .hero--b .hero-content { padding-top: 32px; padding-bottom: 36px; justify-content: flex-start; }
  .hero--b .hero-content > * { max-width: 100%; }
}
@media (max-width: 768px) {
  /* スマホ時は写真を出さず、背景（グラデーション＋波線）とコピーだけで見せる */
  .hero--b .hero-media { display: none; }
  .hero--b .hero-content { justify-content: center; padding-top: calc(var(--header-h) + 48px); padding-bottom: 48px; }
  .hero--b::before { height: 55%; bottom: 150px; }
  .hero--b .hero-title { font-size: clamp(34px, 10vw, 44px); }
  .hero--b .hero-sub { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) { .hero--b::before { animation: none; } }

/* ==========================================================================
   Home: about
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-visual { position: relative; padding-bottom: 18%; }
.about-visual .img-main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.2; }
.about-visual .img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-visual .img-sub { position: absolute; right: -6%; bottom: 0; width: 52%; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; border: 8px solid #fff; }
.about-visual .img-sub img { width: 100%; height: 100%; object-fit: cover; }
.about-year { position: absolute; left: -2%; bottom: 4%; font-family: var(--ff-en); line-height: .9; color: var(--navy); }
.about-year small { display: block; font-size: 13px; letter-spacing: .3em; color: var(--blue); margin-bottom: 6px; font-weight: 600; }
.about-year strong { font-size: clamp(64px, 8vw, 120px); font-weight: 300; letter-spacing: -.02em; background: linear-gradient(120deg, var(--navy), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { margin-right: 6%; }
}

/* ---------- Decorative wave background ---------- */
.wave-deco { position: absolute; pointer-events: none; color: var(--light); z-index: 0; }
.section > .container { position: relative; z-index: 1; }

/* ==========================================================================
   Service cards
   ========================================================================== */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.6vw, 36px); }
.service-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); transition: border-color .4s, transform .5s var(--ease-out); }
.service-card:hover { border-color: var(--cyan); transform: translateY(-4px); }
.service-card .thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.service-card:hover .thumb img { transform: scale(1.06); }
.service-card .num { position: absolute; left: 0; top: 0; background: var(--navy); color: #fff; font-family: var(--ff-en); font-size: 14px; letter-spacing: .14em; padding: 10px 18px; border-radius: 0 0 var(--radius-lg) 0; }
.service-card .body { padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; flex: 1; }
.service-card .en { font-family: var(--ff-en); font-size: 12px; letter-spacing: .22em; color: var(--blue); text-transform: uppercase; font-weight: 600; }
.service-card h3 { font-size: clamp(21px, 2vw, 26px); margin: 6px 0 14px; }
.service-card p { color: var(--muted); flex: 1; }
.service-card .text-link { margin-top: 24px; }
.service-card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.service-card:hover::after { transform: scaleX(1); }
@media (max-width: 680px) { .service-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Full-bleed message band
   ========================================================================== */
.bleed { position: relative; width: 100%; overflow: hidden; color: #fff; isolation: isolate; }
.bleed-media { position: absolute; inset: -10% 0; z-index: -1; }
.bleed-media img { width: 100%; height: 100%; object-fit: cover; }
.bleed-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(10,30,58,.86), rgba(10,30,58,.45) 60%, rgba(10,30,58,.25)); }
.message-band { padding: clamp(110px, 14vw, 200px) 0; }
.message-band .en-label { color: var(--cyan-soft); }
.message-band .en-label::before { background: var(--cyan-soft); }
.message-band h2 { color: #fff; font-size: clamp(30px, 5vw, 68px); letter-spacing: .1em; line-height: 1.45; }
.message-band h2 span { display: inline-block; }
.message-band p { margin-top: 28px; max-width: 640px; color: rgba(255,255,255,.88); }

/* Image band (photo only, full-bleed) */
.photo-band { position: relative; height: clamp(280px, 42vw, 560px); overflow: hidden; }
.photo-band img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; }
.photo-band .caption { position: absolute; left: var(--gutter); bottom: clamp(20px, 3vw, 40px); color: #fff; z-index: 1; font-family: var(--ff-head); font-weight: 700; font-size: clamp(20px, 3vw, 36px); letter-spacing: .1em; line-height: 1.5; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.photo-band .caption small { display: block; font-family: var(--ff-en); font-size: 12px; letter-spacing: .3em; color: var(--cyan-soft); font-weight: 500; }
.photo-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,26,50,.6), rgba(8,26,50,0) 55%); }

/* ==========================================================================
   Reason
   ========================================================================== */
.reason-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.reason-item { padding: 40px clamp(18px, 2vw, 32px) 44px; border-right: 1px solid var(--line); position: relative; }
.reason-item:first-child { border-left: 1px solid var(--line); }
.reason-item .no { font-family: var(--ff-en); font-size: 15px; letter-spacing: .14em; color: var(--blue); font-weight: 600; }
.reason-item .icon { width: 64px; height: 64px; border-radius: 50%; background: var(--light); color: var(--navy); display: grid; place-items: center; margin: 18px 0 22px; }
.reason-item .icon svg { width: 30px; height: 30px; }
.reason-item h3 { font-size: 19px; margin-bottom: 14px; line-height: 1.6; }
.reason-item p { font-size: 16px; color: var(--muted); line-height: 1.9; }
.reason-item::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width .8s var(--ease-out); }
.reason-item:hover::before { width: 100%; }
@media (max-width: 1024px) {
  .reason-grid { grid-template-columns: repeat(2, 1fr); }
  .reason-item:nth-child(3) { border-left: 1px solid var(--line); }
  .reason-item { border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .reason-grid { grid-template-columns: 1fr; }
  .reason-item { border-left: 1px solid var(--line); }
}

/* ==========================================================================
   Area
   ========================================================================== */
.area-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 5vw, 80px); align-items: start; }
.base-cards { display: grid; gap: 16px; margin-top: 32px; }
.base-card { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.base-card .pin { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.base-card .pin svg { width: 20px; height: 20px; }
.base-card h3 { font-size: 17px; margin-bottom: 2px; }
.base-card p { font-size: 15.5px; color: var(--muted); line-height: 1.8; }
.permit-table { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; }
.permit-table caption { text-align: left; font-family: var(--ff-head); font-weight: 700; font-size: 17px; color: var(--navy-ink); padding: 0 0 12px; }
.permit-table th, .permit-table td { padding: 18px 22px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 16px; line-height: 1.8; }
.permit-table tr:last-child th, .permit-table tr:last-child td { border-bottom: 0; }
.permit-table th { width: 26%; background: var(--light); color: var(--navy-ink); font-weight: 700; white-space: nowrap; }
.tag { display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: var(--navy); color: #fff; margin: 2px 6px 2px 0; letter-spacing: .04em; line-height: 1.6; }
.tag.is-sub { background: var(--light); color: var(--navy); }
.note { font-size: 14px; color: var(--muted); line-height: 1.8; margin-top: 14px; padding-left: 1.2em; text-indent: -1.2em; }
.note::before { content: "※"; margin-right: .2em; }
@media (max-width: 900px) { .area-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .permit-table th, .permit-table td { display: block; width: 100%; }
  .permit-table th { border-bottom: 0; padding-bottom: 8px; }
  .permit-table td { padding-top: 12px; }
}

/* ==========================================================================
   Company summary (home)
   ========================================================================== */
.company-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.company-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 4.4; }
.company-visual img { width: 100%; height: 100%; object-fit: cover; }
.company-visual .badge { position: absolute; left: 0; bottom: 0; background: #fff; padding: 22px 28px; border-radius: 0 var(--radius-lg) 0 0; }
.company-visual .badge small { display: block; font-family: var(--ff-en); font-size: 12px; letter-spacing: .26em; color: var(--blue); font-weight: 600; }
.company-visual .badge strong { font-family: var(--ff-head); font-size: 20px; color: var(--navy-ink); }
@media (max-width: 900px) { .company-grid { grid-template-columns: 1fr; } .company-visual { aspect-ratio: 16 / 10; } }
/* ホーム会社情報（写真なしレイアウト） */
.company-grid.is-text { grid-template-columns: .85fr 1.15fr; align-items: start; }
.company-year { font-family: var(--ff-en); line-height: .9; margin-bottom: 24px; }
.company-year small { display: block; font-size: 13px; letter-spacing: .3em; color: var(--blue); font-weight: 600; margin-bottom: 6px; }
.company-year strong { font-size: clamp(64px, 8vw, 112px); font-weight: 300; letter-spacing: -.02em; background: linear-gradient(120deg, var(--navy), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.company-lead { color: var(--muted); max-width: 420px; }
.company-intro .btn-group { margin-top: 32px; }
@media (max-width: 900px) { .company-grid.is-text { grid-template-columns: 1fr; gap: 36px; } }

.dl-table { border-top: 1px solid var(--navy); }
.dl-table > div { display: grid; grid-template-columns: 9em 1fr; gap: 20px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.dl-table dt { font-weight: 700; color: var(--navy-ink); }
.dl-table dd { color: var(--text); }
@media (max-width: 560px) { .dl-table > div { grid-template-columns: 1fr; gap: 2px; } }

/* ==========================================================================
   News
   ========================================================================== */
.news-wrap { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 5vw, 80px); }
.news-list { border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a, .news-list .news-item { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 22px; padding: 24px 6px; transition: background .3s, padding .4s var(--ease-out); }
.news-list a:hover { background: var(--gray); padding-left: 16px; }
.news-list time { font-family: var(--ff-en); font-size: 15px; letter-spacing: .08em; color: var(--muted); }
.news-list .cat { font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: var(--light); color: var(--navy); white-space: nowrap; }
.news-list .ttl { font-weight: 500; }
.news-list .go { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--navy); }
.news-list .go svg { width: 12px; height: 12px; }
.news-list .is-placeholder { color: var(--muted); }
@media (max-width: 900px) { .news-wrap { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .news-list a, .news-list .news-item { grid-template-columns: auto 1fr; gap: 6px 14px; }
  .news-list .ttl { grid-column: 1 / -1; }
  .news-list .go { display: none; }
}

/* ==========================================================================
   CTA (full-bleed)
   ========================================================================== */
.cta { position: relative; overflow: hidden; color: #fff; isolation: isolate; padding: clamp(90px, 11vw, 150px) 0; }
.cta-bg { position: absolute; inset: 0; z-index: -2; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, rgba(12,35,64,.95) 0%, rgba(21,54,95,.88) 50%, rgba(30,134,198,.72) 100%); }
.cta-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.cta .en-label { color: var(--cyan-soft); }
.cta .en-label::before { background: var(--cyan-soft); }
.cta h2 { color: #fff; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.6; }
.cta p { margin-top: 20px; color: rgba(255,255,255,.85); }
.cta-actions { display: grid; gap: 16px; }
.cta-tel { display: flex; flex-direction: column; align-items: center; padding: 26px 20px; border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); backdrop-filter: blur(8px); transition: background .3s, border-color .3s; }
.cta-tel:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.6); }
.cta-tel .label { font-size: 14px; color: rgba(255,255,255,.8); }
.cta-tel .num { display: flex; align-items: center; gap: 12px; font-family: var(--ff-en); font-size: clamp(30px, 3.4vw, 44px); font-weight: 500; letter-spacing: .06em; line-height: 1.25; }
.cta-tel .num svg { width: .7em; height: .7em; color: var(--cyan-soft); }
.cta .btn { min-height: 72px; font-size: 17px; }
@media (max-width: 900px) { .cta-inner { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-ink); color: rgba(255,255,255,.78); padding: clamp(64px, 8vw, 100px) 0 0; font-size: 15px; line-height: 1.9; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr; gap: clamp(32px, 4vw, 64px); }
.footer-logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: 10px; }
.footer-logo img { height: 70px; width: auto; }
.footer-name { margin-top: 18px; color: #fff; font-family: var(--ff-head); font-weight: 700; font-size: 18px; letter-spacing: .08em; }
.footer-msg { color: var(--cyan-soft); font-size: 14px; margin-top: 4px; letter-spacing: .1em; }
.footer-offices { display: grid; gap: 22px; }
.footer-offices h3 { color: #fff; font-size: 15px; letter-spacing: .1em; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.footer-offices h3::before { content: ""; width: 14px; height: 2px; background: var(--cyan); }
.footer-offices a { color: #fff; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; align-content: start; }
.footer-nav a { display: inline-block; padding: 4px 0; transition: color .3s; font-size: 14.5px; }
.footer-nav a:hover { color: var(--cyan-soft); }
.footer-bottom { margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom small { font-family: var(--ff-en); letter-spacing: .08em; font-size: 12.5px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Back to top
   ========================================================================== */
.to-top {
  position: fixed; right: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); z-index: 80;
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(12,35,64,.25);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .4s var(--ease), transform .4s var(--ease-out), visibility .4s, background .3s;
}
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue); }
.to-top .ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.to-top .ring circle { fill: none; stroke-width: 2; }
.to-top .ring .track { stroke: rgba(255,255,255,.15); }
.to-top .ring .bar { stroke: var(--cyan); stroke-linecap: round; stroke-dasharray: 163.4; stroke-dashoffset: 163.4; }
.to-top .icon { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; font-family: var(--ff-en); font-size: 10px; letter-spacing: .14em; line-height: 1; }
.to-top .icon svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.to-top:hover .icon svg { transform: translateY(-3px); }

/* ==========================================================================
   Sub page hero (full-bleed)
   ========================================================================== */
/* 下層ページのヘッダー画像：共通の水色背景画像（フィルターなし）＋ネイビー文字 */
.page-hero { position: relative; min-height: clamp(360px, 52vh, 520px); display: flex; align-items: flex-end; color: var(--navy-ink); overflow: hidden; isolation: isolate; background: var(--light); }
.page-hero-media { position: absolute; inset: 0; z-index: -1; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 14s var(--ease) forwards; }
.page-hero-inner { padding-top: calc(var(--header-h) + 60px); padding-bottom: clamp(48px, 6vw, 80px); }
.page-hero .en-label { color: var(--blue); text-shadow: 0 0 12px rgba(255,255,255,.9); }
.page-hero .en-label::before { background: linear-gradient(90deg, var(--blue), var(--navy)); }
.page-hero h1 { color: var(--navy-ink); font-size: clamp(30px, 4.6vw, 58px); letter-spacing: .08em; line-height: 1.35; text-shadow: 0 0 18px rgba(255,255,255,.85), 0 0 2px rgba(255,255,255,.9); opacity: 0; animation: fadeIn 1s .15s var(--ease) forwards; }
.page-hero .hero-desc { margin-top: 18px; max-width: 640px; color: var(--navy-ink); font-weight: 500; font-size: 17px; text-shadow: 0 0 12px rgba(255,255,255,.95), 0 0 2px rgba(255,255,255,.9); opacity: 0; animation: fadeIn 1s .35s var(--ease) forwards; }
.page-hero .big-en { position: absolute; right: -0.04em; bottom: -0.2em; font-family: var(--ff-en); font-weight: 600; font-size: clamp(80px, 14vw, 220px); line-height: 1; color: rgba(255,255,255,.45); letter-spacing: -.02em; pointer-events: none; white-space: nowrap; z-index: -1; }
@media (max-width: 768px) { .page-hero .big-en { display: none; } .page-hero .hero-desc { font-size: 16px; } }

/* 下層ページ：明るいヘッダー画像上の透明ナビはネイビー文字に */
body:not(:has(.hero)) .site-header::before { display: none; }
body:not(:has(.hero)) .site-header:not(.is-scrolled) { color: var(--navy-ink); }
body:not(:has(.hero)) .site-header:not(.is-scrolled) .gnav-list > li:not(.gnav-cta) a { font-weight: 700; text-shadow: 0 0 10px rgba(255,255,255,.9); }
body:not(:has(.hero)) .site-header:not(.is-scrolled) .header-tel { border-color: transparent; }
.is-menu-open body:not(:has(.hero)) .site-header { color: #fff; }

.breadcrumb { background: var(--gray); border-bottom: 1px solid var(--line); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; padding: 14px 0; font-size: 13.5px; color: var(--muted); }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li + li::before { content: ""; width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); margin: 0 14px 0 10px; opacity: .6; }
.breadcrumb a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(21,54,95,.3); }
.breadcrumb a:hover { text-decoration-color: currentColor; }

/* ---------- Page TOC (anchor chips) ---------- */
.page-toc { display: flex; flex-wrap: wrap; gap: 10px; }
.page-toc a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; font-weight: 500; background: #fff; transition: border-color .3s, color .3s, background .3s; }
.page-toc a::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--blue); border-bottom: 1.5px solid var(--blue); transform: rotate(45deg) translateY(-2px); }
.page-toc a:hover { border-color: var(--blue); color: var(--blue); background: var(--light); }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 88px); align-items: center; }
.split.is-reverse > :first-child { order: 2; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; position: relative; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media.is-tall { aspect-ratio: 4 / 4.6; }
.split-media .frame { position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.55); border-radius: 8px; pointer-events: none; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.is-reverse > :first-child { order: 0; } }

/* ---------- Cards / lists ---------- */
.point-list { display: grid; gap: 12px; margin-top: 26px; }
.point-list li { position: relative; padding: 16px 20px 16px 58px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 500; line-height: 1.7; }
.point-list li::before { content: ""; position: absolute; left: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e86c6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.bg-gray .point-list li, .bg-light .point-list li { border-color: transparent; }

.num-list { counter-reset: n; display: grid; gap: 0; border-top: 1px solid var(--line); }
.num-list li { counter-increment: n; display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.num-list li::before { content: counter(n, decimal-leading-zero); font-family: var(--ff-en); font-size: 26px; font-weight: 300; color: var(--blue); line-height: 1.2; }
.num-list strong { display: block; font-family: var(--ff-head); font-size: 18px; color: var(--navy-ink); margin-bottom: 4px; }
.num-list p { color: var(--muted); font-size: 16px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.feature-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 3vw, 40px); border: 1px solid var(--line); position: relative; overflow: hidden; }
.feature-card .no { font-family: var(--ff-en); font-size: 48px; font-weight: 300; line-height: 1; background: linear-gradient(120deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.feature-card h3 { font-size: 20px; margin: 18px 0 12px; }
.feature-card p { color: var(--muted); font-size: 16px; }
.feature-card .icon { width: 56px; height: 56px; border-radius: 50%; background: var(--light); color: var(--navy); display: grid; place-items: center; }
.feature-card .icon svg { width: 26px; height: 26px; }
.bg-gray .feature-card, .bg-light .feature-card { border-color: transparent; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

.cause-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cause-item { background: #fff; border-radius: var(--radius-lg); padding: 28px 18px 26px; text-align: center; border: 1px solid var(--line); }
.cause-item .icon { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; background: var(--light); color: var(--navy); display: grid; place-items: center; }
.cause-item .icon svg { width: 28px; height: 28px; }
.cause-item .no { font-family: var(--ff-en); font-size: 12px; letter-spacing: .2em; color: var(--blue); font-weight: 600; }
.cause-item h3 { font-size: 17px; margin-top: 4px; line-height: 1.6; }
.cause-item p { font-size: 14.5px; color: var(--muted); margin-top: 10px; line-height: 1.8; text-align: left; }
.bg-gray .cause-item { border-color: transparent; }
@media (max-width: 1024px) { .cause-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .cause-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .cause-grid { grid-template-columns: 1fr; } }

/* ---------- Info box ---------- */
.info-box { border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); background: var(--light); border-left: 4px solid var(--blue); }
.info-box h3 { font-size: 19px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.info-box h3 svg { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; }
.info-box p + p { margin-top: .8em; }
.info-box.is-white { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); }

.confirm-box { border: 1px dashed #9fb3c6; border-radius: var(--radius); padding: 18px 22px; background: #fbfcfd; color: var(--muted); font-size: 15px; line-height: 1.8; }
.confirm-box strong { color: var(--navy); }
.pending { font-size: 14px; color: #8a99a8; letter-spacing: .04em; }
/* 許可番号（許可証PDFへのリンク） */
.permit-link { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(30,134,198,.35); transition: color .3s, text-decoration-color .3s; }
.permit-link:hover { color: var(--navy); text-decoration-color: currentColor; }
.pdf-badge { display: inline-block; font-family: var(--ff-en); font-size: 11px; font-weight: 600; letter-spacing: .08em; line-height: 1; padding: 4px 7px; border-radius: 4px; background: #c8343a; color: #fff; text-decoration: none; }

/* ---------- Frequency / data table ---------- */
.data-table { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.data-table th, .data-table td { padding: 18px 22px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 16px; line-height: 1.8; }
.data-table thead th { background: var(--navy); color: #fff; font-size: 15px; letter-spacing: .08em; }
.data-table tbody th { background: var(--gray); color: var(--navy-ink); width: 30%; font-weight: 700; }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: 0; }
.data-table .freq { font-weight: 700; color: var(--blue); white-space: nowrap; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) {
  .data-table.is-stack thead { display: none; }
  .data-table.is-stack tr { display: block; border-bottom: 1px solid var(--line); }
  .data-table.is-stack tr:last-child { border-bottom: 0; }
  .data-table.is-stack th, .data-table.is-stack td { display: block; width: 100%; border-bottom: 0; }
  .data-table.is-stack tbody th { padding-bottom: 10px; }
  .data-table.is-stack td { padding-top: 10px; }
  .data-table.is-stack td[data-label]::before { content: attr(data-label); display: block; font-size: 12.5px; color: var(--muted); font-weight: 700; letter-spacing: .06em; }
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 24px); }
.gallery figure { position: relative; }
.gallery .ph { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--light); }
.gallery .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.gallery figure:hover .ph img { transform: scale(1.05); }
.gallery figcaption { margin-top: 12px; font-size: 15px; line-height: 1.7; display: flex; gap: 10px; }
.gallery figcaption .n { font-family: var(--ff-en); color: var(--blue); font-weight: 600; font-size: 13px; letter-spacing: .1em; padding-top: 2px; }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- Before / After ---------- */
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(16px, 2.4vw, 32px); align-items: center; }
.ba-item { margin: 0; }
.ba-ph { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--gray); }
.ba-ph img { width: 100%; height: 100%; object-fit: cover; }
.ba-label {
  position: absolute; left: 0; top: 0; z-index: 1; display: flex; align-items: baseline; gap: 10px;
  padding: 12px 20px; border-radius: 0 0 var(--radius-lg) 0;
  font-family: var(--ff-en); font-size: 15px; font-weight: 600; letter-spacing: .2em; color: #fff; line-height: 1;
}
.ba-label small { font-family: var(--ff-jp); font-size: 12.5px; letter-spacing: .08em; font-weight: 700; opacity: .9; }
.is-before .ba-label { background: #5d6f80; }
.is-after .ba-label { background: linear-gradient(100deg, var(--blue), var(--cyan)); }
.is-after .ba-ph { outline: 3px solid var(--cyan); outline-offset: -3px; }
.ba-item figcaption { margin-top: 16px; font-size: 16px; line-height: 1.85; color: var(--text); }
.is-after figcaption { color: var(--navy-ink); font-weight: 500; }
.ba-arrow { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: .1em; margin-top: -60px; }
.ba-arrow svg { width: 56px; height: 56px; padding: 14px; border-radius: 50%; background: var(--light); }
@media (max-width: 760px) {
  .ba { grid-template-columns: 1fr; gap: 12px; }
  .ba-arrow { margin: 4px 0; flex-direction: row; }
  .ba-arrow svg { transform: rotate(90deg); width: 48px; height: 48px; padding: 12px; }
}

/* ---------- Before / After 事例一覧（グリストラップ：写真を左右に並べる） ---------- */
.ba-cases { display: grid; gap: clamp(40px, 5vw, 64px); max-width: none; margin: 0 auto; }

/* 写真を大きく見せる：矢印用の列をなくし、矢印は2枚の境目に重ねて表示（全ページ共通） */
.ba, .ba.is-plain { position: relative; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 20px); }
.ba .ba-arrow, .ba.is-plain .ba-arrow {
  position: absolute; left: 50%; top: 50%; z-index: 2; margin: 0; transform: translate(-50%, -50%); pointer-events: none;
}
.ba .ba-arrow span { display: none; }
.ba .ba-arrow svg, .ba.is-plain .ba-arrow svg { width: 52px; height: 52px; padding: 13px; background: #fff; color: var(--blue); border: 3px solid var(--light); }
@media (max-width: 760px) {
  .ba, .ba.is-plain { grid-template-columns: 1fr; gap: 12px; }
  .ba .ba-arrow svg, .ba.is-plain .ba-arrow svg { transform: rotate(90deg); width: 46px; height: 46px; padding: 11px; }
}
.ba-case-no { display: flex; align-items: center; gap: 12px; font-family: var(--ff-en); font-size: 14px; font-weight: 600; letter-spacing: .22em; color: var(--blue); margin-bottom: 14px; }
.ba-case-no::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ba.is-plain .ba-arrow { margin-top: 0; }
.machine-fig { margin: 0; }
.machine-fig figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.gallery figcaption { font-weight: 500; }
.ba.is-plain .ba-arrow svg { background: #fff; }

/* ---------- Before / After 比較スライダー（現在未使用） ---------- */
.cmp-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.cmp-case { background: #fff; border-radius: var(--radius-lg); overflow: hidden; }
.cmp { --pos: 50%; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--gray); user-select: none; -webkit-user-select: none; }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cmp-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.cmp-tag {
  position: absolute; top: 12px; z-index: 2; padding: 6px 12px; border-radius: 999px;
  font-family: var(--ff-en); font-size: 12px; font-weight: 600; letter-spacing: .16em; color: #fff; line-height: 1; pointer-events: none;
}
.cmp-tag.is-before { left: 12px; background: rgba(60,75,90,.85); }
.cmp-tag.is-after { right: 12px; background: linear-gradient(100deg, var(--blue), var(--cyan)); }
.cmp-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2; width: 0; pointer-events: none;
}
.cmp-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; }
.cmp-handle svg {
  position: absolute; top: 50%; left: 0; width: 44px; height: 44px; padding: 11px; transform: translate(-50%, -50%);
  border-radius: 50%; background: #fff; color: var(--navy); box-shadow: 0 4px 14px rgba(12,35,64,.28);
  transition: transform .3s var(--ease-out);
}
.cmp:hover .cmp-handle svg, .cmp-range:focus-visible ~ .cmp-handle svg { transform: translate(-50%, -50%) scale(1.08); }
.cmp-range {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0;
  cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent; touch-action: pan-y;
}
.cmp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100%; }
.cmp:has(.cmp-range:focus-visible) { outline: 3px solid var(--cyan); outline-offset: 3px; }
.cmp-body { padding: 20px 22px 24px; }
.cmp-no { font-family: var(--ff-en); font-size: 13px; font-weight: 600; letter-spacing: .2em; color: var(--blue); margin-bottom: 6px; }
.cmp-body p:not(.cmp-no) { font-size: 16px; line-height: 1.85; }
@media (max-width: 1024px) { .cmp-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cmp-list { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .3s; }
.faq-item[open] { border-color: var(--blue); }
.faq-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px 1fr 28px; gap: 16px; align-items: center; padding: 22px clamp(18px, 2.4vw, 30px); font-weight: 700; font-family: var(--ff-head); font-size: 17.5px; color: var(--navy-ink); line-height: 1.6; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .q, .faq-item .a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--ff-en); font-weight: 600; font-size: 18px; }
.faq-item .q { background: var(--navy); color: #fff; }
.faq-item .a { background: var(--light); color: var(--blue); }
.faq-item .toggle { position: relative; width: 28px; height: 28px; }
.faq-item .toggle::before, .faq-item .toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--blue); border-radius: 2px; transition: transform .35s var(--ease-out); }
.faq-item .toggle::after { transform: rotate(90deg); }
.faq-item[open] .toggle::after { transform: rotate(0); }
.faq-body { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 0 clamp(18px, 2.4vw, 30px) 26px; }
.faq-body p { padding-top: 6px; }
.bg-gray .faq-item { border-color: transparent; }
.bg-gray .faq-item[open] { border-color: var(--blue); }
@media (max-width: 560px) {
  .faq-item summary { grid-template-columns: 36px 1fr 22px; gap: 12px; font-size: 16px; }
  .faq-body { grid-template-columns: 36px 1fr; gap: 12px; }
  .faq-item .q, .faq-item .a { width: 36px; height: 36px; font-size: 15px; }
}

/* ---------- Related services ---------- */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.related-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; color: #fff; isolation: isolate; }
.related-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease-out); }
.related-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8,26,50,.88), rgba(8,26,50,.15) 70%); transition: background .4s; }
.related-card:hover img { transform: scale(1.07); }
.related-card:hover::before { background: linear-gradient(0deg, rgba(21,54,95,.92), rgba(30,134,198,.35) 80%); }
.related-card .body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.related-card .en { font-family: var(--ff-en); font-size: 11px; letter-spacing: .22em; color: var(--cyan-soft); text-transform: uppercase; display: block; }
.related-card h3 { color: #fff; font-size: 19px; line-height: 1.5; }
.related-card .go { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); display: grid; place-items: center; flex-shrink: 0; transition: background .3s, border-color .3s; }
.related-card .go svg { width: 13px; height: 13px; }
.related-card:hover .go { background: var(--cyan); border-color: var(--cyan); }
@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .related-grid { grid-template-columns: 1fr; } .related-card { aspect-ratio: 16 / 9; } }

/* ---------- Check list (drain pipe) ---------- */
.check-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-panel li { display: flex; gap: 16px; align-items: center; padding: 20px 22px; background: #fff; border-radius: var(--radius-lg); font-weight: 500; line-height: 1.6; border: 1px solid var(--line); }
.check-panel .box { width: 30px; height: 30px; border-radius: 8px; border: 2px solid var(--blue); display: grid; place-items: center; flex-shrink: 0; color: var(--blue); }
.check-panel .box svg { width: 18px; height: 18px; }
.bg-light .check-panel li { border-color: transparent; }
@media (max-width: 700px) { .check-panel { grid-template-columns: 1fr; } }

/* ---------- Three roles (septic) ---------- */
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.role-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.role-card .head { background: var(--navy); color: #fff; padding: 24px 26px; }
.role-card:nth-child(2) .head { background: var(--blue); }
.role-card:nth-child(3) .head { background: #2a5f8f; }
.role-card .head small { font-family: var(--ff-en); font-size: 12px; letter-spacing: .22em; color: rgba(255,255,255,.75); display: block; }
.role-card .head h3 { color: #fff; font-size: 22px; }
.role-card .body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.role-card .body p { font-size: 16px; }
.role-card .who { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 14.5px; color: var(--muted); line-height: 1.8; }
.role-card .who strong { display: block; color: var(--navy-ink); font-size: 13px; letter-spacing: .1em; }
.role-card .self { display: inline-flex; align-self: flex-start; font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--light); color: var(--blue); }
@media (max-width: 900px) { .role-grid { grid-template-columns: 1fr; } }

/* Septic diagram */
.diagram { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); padding: clamp(20px, 3vw, 40px); }
.diagram svg { width: 100%; height: auto; }
.diagram figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; }
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.type-card { padding: 24px; border-radius: var(--radius-lg); background: var(--gray); }
.type-card h4 { font-size: 18px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.type-card h4 .tag { margin: 0; }
.type-card p { font-size: 16px; color: var(--text); }
@media (max-width: 640px) { .type-grid { grid-template-columns: 1fr; } }

/* ---------- Greeting ---------- */
.greeting { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 5vw, 88px); align-items: start; }
.greeting-media { position: sticky; top: 110px; }
.greeting-media .ph { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.greeting-media .ph img { width: 100%; height: 100%; object-fit: cover; }
.sign { margin-top: 36px; text-align: right; font-family: var(--ff-head); }
.sign small { display: block; font-size: 14px; color: var(--muted); }
.sign strong { font-size: 24px; letter-spacing: .2em; color: var(--navy-ink); }
@media (max-width: 900px) { .greeting { grid-template-columns: 1fr; } .greeting-media { position: static; } .greeting-media .ph { aspect-ratio: 16 / 10; } }

/* Outline table */
.outline-table { border-top: 2px solid var(--navy); }
.outline-table th, .outline-table td { padding: 20px 24px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.outline-table th { width: 220px; background: var(--gray); color: var(--navy-ink); font-weight: 700; }
.outline-table td a { color: var(--blue); }
@media (max-width: 640px) {
  .outline-table th, .outline-table td { display: block; width: 100%; }
  .outline-table th { padding: 12px 16px; border-bottom: 0; }
  .outline-table td { padding: 12px 16px 20px; }
}

/* Timeline */
.timeline { position: relative; padding-left: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 160px 1fr; gap: 32px; padding: 0 0 40px; }
.timeline li::before { content: ""; position: absolute; left: 160px; top: 10px; bottom: -10px; width: 1px; background: var(--line); transform: translateX(16px); }
.timeline li:last-child::before { display: none; }
.timeline .year { font-family: var(--ff-en); font-size: 30px; font-weight: 500; color: var(--navy); line-height: 1.1; text-align: right; }
.timeline .year small { display: block; font-size: 13px; color: var(--muted); font-family: var(--ff-jp); letter-spacing: .06em; margin-top: 4px; }
.timeline .ev { position: relative; padding-left: 32px; }
.timeline .ev::before { content: ""; position: absolute; left: 10px; top: 9px; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--cyan); }
.timeline .ev h3 { font-size: 19px; }
.timeline .ev p { color: var(--muted); font-size: 16px; }
@media (max-width: 600px) {
  .timeline li { grid-template-columns: 1fr; gap: 6px; padding-left: 32px; }
  .timeline li::before { left: 0; transform: translateX(6px); }
  .timeline .year { text-align: left; font-size: 24px; }
  .timeline .ev { padding-left: 0; }
  .timeline .ev::before { left: -32px; top: -28px; }
}

/* Qualification chips */
.qual-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.qual-card { display: flex; align-items: center; gap: 18px; padding: 26px 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.qual-card .icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; flex-shrink: 0; }
.qual-card .icon svg { width: 26px; height: 26px; }
.qual-card h3, .qual-card h4 { font-size: 17.5px; line-height: 1.6; }
/* 主な点検項目：項目名を1行に収め、幅が足りないときは自動で1列に */
.qual-grid.is-compact { gap: 10px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)) !important; }
.qual-grid.is-compact .qual-card { padding: 14px 16px; gap: 12px; }
.qual-grid.is-compact .qual-card .icon { width: 36px; height: 36px; }
.qual-grid.is-compact .qual-card .icon svg { width: 18px; height: 18px; }
.qual-grid.is-compact .qual-card h4 { font-size: 16px; line-height: 1.5; white-space: nowrap; }
.bg-light .qual-card { border-color: transparent; }
@media (max-width: 900px) { .qual-grid { grid-template-columns: 1fr; } .qual-grid.is-2col { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .qual-grid.is-2col { grid-template-columns: 1fr; } }
.feature-grid.is-2col { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 680px) { .feature-grid.is-2col { grid-template-columns: 1fr; } }
.js .reveal.reveal-img { transition: opacity 1s var(--ease), transform 1.1s var(--ease-out), clip-path 1.3s var(--ease-out); }

/* Access */
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.access-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.access-card .map { aspect-ratio: 16 / 10; background: var(--light); }
.access-card .map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.8); }
.access-card .body { padding: 26px 28px 30px; }
.access-card h3 { font-size: 20px; margin-bottom: 10px; }
.access-card dl > div { display: grid; grid-template-columns: 4.5em 1fr; gap: 12px; padding: 6px 0; font-size: 16px; }
.access-card dt { color: var(--muted); font-weight: 700; }
.access-card a { color: var(--blue); }
@media (max-width: 800px) { .access-grid { grid-template-columns: 1fr; } }

/* ---------- Recruit ---------- */
.recruit-msg { text-align: center; }
.recruit-msg .catch { font-family: var(--ff-head); font-size: clamp(26px, 3.6vw, 46px); font-weight: 700; line-height: 1.6; color: var(--navy-ink); letter-spacing: .1em; }
.recruit-msg .catch em { font-style: normal; background: linear-gradient(transparent 62%, rgba(35,166,224,.25) 62%); }
.recruit-msg .prose { max-width: 760px; margin: 32px auto 0; text-align: left; }
.photo-mosaic { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: clamp(10px, 1.4vw, 18px); }
.photo-mosaic figure { border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.photo-mosaic figure:first-child { grid-row: span 2; }
.photo-mosaic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.photo-mosaic figure:first-child img { aspect-ratio: auto; height: 100%; }
.photo-mosaic figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.92); color: var(--navy-ink); font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
@media (max-width: 700px) { .photo-mosaic { grid-template-columns: 1fr 1fr; } .photo-mosaic figure:first-child { grid-column: 1 / -1; grid-row: auto; } .photo-mosaic figure:first-child img { aspect-ratio: 16 / 10; } }

/* ---------- 採用情報：メッセージ ---------- */
.recruit-message { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.recruit-message .sec-title { font-size: clamp(26px, 3vw, 38px); line-height: 1.6; }
.recruit-message-close { font-family: var(--ff-head); font-weight: 700; font-size: clamp(18px, 1.7vw, 21px); color: var(--blue); }
@media (max-width: 900px) { .recruit-message { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- 採用情報：こんな人材求めています ---------- */
.wanted-lead { font-weight: 700; color: var(--navy-ink); }
/* 1項目ずつ縦に並べる（全画面幅共通） */
.wanted-list { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 720px; margin: 0 auto; }
.wanted-list li {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 26px; background: #fff; border-radius: var(--radius-lg); border-left: 4px solid var(--cyan);
  font-family: var(--ff-head); font-weight: 700; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--navy-ink);
}
.wanted-no { flex-shrink: 0; font-family: var(--ff-en); font-size: 26px; font-weight: 300; line-height: 1; background: linear-gradient(120deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wanted-close { max-width: 820px; margin: 36px auto 0; text-align: center; }
@media (max-width: 640px) {
  .wanted-list li { gap: 14px; padding: 15px 18px; }
  .wanted-no { font-size: 22px; }
  .wanted-close { text-align: left; }
}

/* ---------- 採用情報：導入 ---------- */
.recruit-intro { text-align: center; }
.recruit-intro .en-label::after { content: ""; width: 28px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.recruit-catch { font-size: clamp(28px, 4vw, 50px); line-height: 1.5; letter-spacing: .08em; }
.recruit-catch-sub { display: block; font-size: .42em; color: var(--blue); letter-spacing: .1em; margin-bottom: 10px; }
.recruit-catch em { font-style: normal; background: linear-gradient(transparent 62%, rgba(35,166,224,.28) 62%); }
.recruit-lead { margin: 22px auto 0; max-width: 720px; font-size: clamp(17px, 1.5vw, 19px); font-weight: 500; color: var(--navy-ink); }
.recruit-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.recruit-points li { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 150px; height: 150px; border-radius: 50%; background: var(--light); border: 1px solid rgba(30,134,198,.2); }
.recruit-points .rp-label { font-size: 13.5px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.recruit-points strong { font-family: var(--ff-head); font-size: 30px; line-height: 1.3; color: var(--navy); }
.recruit-points strong small { font-size: .5em; margin-left: 2px; }
@media (max-width: 640px) {
  .recruit-points { gap: 10px; }
  .recruit-points li { width: calc(33.333% - 7px); height: auto; aspect-ratio: 1; }
  .recruit-points .rp-label { font-size: 11.5px; }
  .recruit-points strong { font-size: 22px; }
}

/* ---------- 採用情報：仕事内容 ---------- */
.job-note { font-weight: 700; color: var(--blue); margin-top: -6px; }
.ok-box { background: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 3.4vw, 44px); border-top: 4px solid var(--cyan); }
.ok-box p + p { margin-top: 1em; }
.ok-head { display: inline-block; font-family: var(--ff-head); font-weight: 700; font-size: 15px; color: #fff; background: var(--navy); padding: 6px 16px; border-radius: 999px; letter-spacing: .06em; }
.ok-strong { font-family: var(--ff-head); font-size: clamp(20px, 2vw, 24px); font-weight: 700; color: var(--navy-ink); margin-top: 14px !important; }

/* ---------- 採用情報：対象となる方 ---------- */
.target-head { margin-bottom: 36px; }
.tag-row { margin-bottom: 14px; }
.target-plus { margin-top: 8px; font-weight: 700; color: var(--blue); }
.target-plus::before { content: "＋ "; }
.target-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.target-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 3.4vw, 44px); border: 2px solid var(--navy); }
.target-card.is-support { border-color: var(--cyan); }
.target-card p + p, .target-card ul + p { margin-top: 14px; }
.target-card-label { font-family: var(--ff-head); font-size: clamp(19px, 1.8vw, 22px); font-weight: 700; color: var(--navy-ink); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.target-card-label::before { content: "◇"; color: var(--blue); margin-right: 6px; }
.target-need { font-size: 17px; }
.target-need strong { color: var(--navy); font-size: 1.15em; }
.voice-list { display: grid; gap: 10px; margin-top: 18px; }
.voice-list li { position: relative; padding: 12px 18px; background: var(--light); border-radius: 10px; font-weight: 700; color: var(--navy-ink); }
.voice-list li::before { content: "「"; }
.voice-list li::after { content: "」"; }
.target-close { font-family: var(--ff-head); font-weight: 700; font-size: 19px; color: var(--blue); }
.license-list { display: grid; gap: 8px; margin-top: 16px; }
.license-list li { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy-ink); }
.license-list li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); flex-shrink: 0; }
.target-card .em { color: #c8343a; }
@media (max-width: 800px) { .target-grid { grid-template-columns: 1fr; } }

/* ---------- 採用情報：募集要項 ---------- */
.req-table td p + p, .req-table td ul + ul, .req-table td p + ul, .req-table td ul + p { margin-top: 8px; }
.req-head { font-weight: 700; color: var(--navy-ink); }
.req-head::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--blue); margin-right: 8px; vertical-align: middle; }
.mt-xs { margin-top: 14px !important; }
.req-big { font-family: var(--ff-head); font-size: clamp(19px, 1.8vw, 22px); font-weight: 700; color: var(--navy); }
.req-big span { font-family: var(--ff-jp); font-size: 15px; font-weight: 500; color: var(--text); margin-left: 6px; }
.req-list { display: grid; gap: 8px; }
.req-list > li { position: relative; padding-left: 1.3em; line-height: 1.8; }
.req-list > li::before { content: "□"; position: absolute; left: 0; color: var(--blue); }
.req-notes { display: grid; gap: 2px; }
.req-notes li { font-size: 14.5px; color: var(--muted); padding-left: 1.2em; text-indent: -1.2em; line-height: 1.75; }
.req-notes li::before { content: "※"; margin-right: .2em; }
.req-sub { font-size: 14.5px; color: var(--muted); line-height: 1.75; }
.req-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.req-badges .tag { margin: 0; }
.req-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; margin: 8px 0 4px; }
.req-dl > div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 12px; background: var(--gray); border-radius: 6px; font-size: 15px; }
.req-dl dt { color: var(--muted); }
.req-dl dd { font-weight: 700; color: var(--navy-ink); }

/* ---------- 採用情報：ご応募について ---------- */
.entry .entry-bring { margin-top: 26px; padding: 18px 22px; border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius-lg); background: rgba(255,255,255,.06); }
.entry .entry-bring p { margin-top: 0; }
.entry .entry-bring-head { font-weight: 700; color: #fff; margin-bottom: 4px !important; }
.entry .entry-close { margin-top: 22px; font-family: var(--ff-head); font-weight: 700; font-size: clamp(17px, 1.6vw, 20px); color: #fff; }

/* 職場風景（2枚） */
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 28px); }
.photo-pair figure { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--gray); }
.photo-pair img { width: 100%; height: 100%; object-fit: cover; }
.photo-pair figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.94); color: var(--navy-ink); font-size: 14px; font-weight: 700; padding: 5px 14px; border-radius: 999px; }
@media (max-width: 640px) { .photo-pair { grid-template-columns: 1fr; } }

.apply-box { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: #fff; border: 2px solid var(--navy); }
.apply-box h3 { font-size: 22px; }
.apply-tel { display: flex; flex-direction: column; align-items: flex-start; }
.apply-tel small { color: var(--muted); font-size: 14px; }
.apply-tel strong { font-family: var(--ff-en); font-size: clamp(30px, 3.4vw, 42px); color: var(--navy); font-weight: 500; letter-spacing: .05em; line-height: 1.2; }
@media (max-width: 800px) { .apply-box { grid-template-columns: 1fr; } }

/* ==========================================================================
   お知らせ（一覧・記事詳細）— 静的サイトと WordPress テーマ共通
   ========================================================================== */
/* 2カラム（メイン＋サイドカラム） */
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(40px, 5vw, 72px); align-items: start; }
.news-main { min-width: 0; }
.news-side { display: grid; gap: 28px; position: sticky; top: 104px; }
@media (max-width: 960px) {
  .news-layout { grid-template-columns: 1fr; }
  .news-side { position: static; grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 640px) { .news-side { grid-template-columns: 1fr; } }

.news-main-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.news-main-head h2 { font-size: clamp(20px, 2vw, 24px); }
.news-count { font-size: 14px; color: var(--muted); }

/* サイドカラムのウィジェット */
.side-widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.side-widget-title { display: flex; align-items: baseline; gap: 10px; padding: 16px 22px; background: var(--navy); color: #fff; font-family: var(--ff-head); font-size: 16px; font-weight: 700; letter-spacing: .08em; }
.side-widget-title small { font-family: var(--ff-en); font-size: 11px; font-weight: 500; letter-spacing: .2em; color: var(--cyan-soft); text-transform: uppercase; }
.side-latest li + li { border-top: 1px solid var(--line); }
.side-latest a { display: block; padding: 14px 22px; transition: background .3s; }
.side-latest a:hover { background: var(--light); }
.side-latest time { display: block; font-family: var(--ff-en); font-size: 13px; letter-spacing: .06em; color: var(--muted); }
.side-latest .ttl { display: block; margin-top: 2px; font-size: 15px; line-height: 1.7; font-weight: 500; color: var(--navy-ink); }
.side-latest a[aria-current="page"] .ttl { color: var(--blue); }
.side-cats { padding: 8px 0; }
.side-cats a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 22px; font-size: 15px; font-weight: 500; transition: background .3s, color .3s; }
.side-cats a::before { content: ""; width: 7px; height: 7px; border-top: 2px solid var(--blue); border-right: 2px solid var(--blue); transform: rotate(45deg); flex-shrink: 0; margin-right: 2px; }
.side-cats a .name { flex: 1; }
.side-cats a .count { min-width: 30px; padding: 1px 8px; border-radius: 999px; background: var(--gray); font-family: var(--ff-en); font-size: 12.5px; text-align: center; color: var(--muted); }
.side-cats a:hover, .side-cats a[aria-current="page"] { background: var(--light); color: var(--blue); }
.side-cats a[aria-current="page"] .count { background: var(--blue); color: #fff; }
.side-empty { padding: 16px 22px; font-size: 14.5px; color: var(--muted); }

/* ページ見出し（記事詳細では h1 ではなく p で同じ見た目） */
.page-hero .nsh-hero-title {
  color: var(--navy-ink); font-family: var(--ff-head); font-weight: 700;
  font-size: clamp(30px, 4.6vw, 58px); letter-spacing: .08em; line-height: 1.35;
  text-shadow: 0 0 18px rgba(255,255,255,.85), 0 0 2px rgba(255,255,255,.9);
  opacity: 0; animation: fadeIn 1s .15s var(--ease) forwards;
}

/* ページ送り（WordPress の paginate_links にも対応） */
.nsh-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.nsh-pager .page-numbers, .nsh-pager > span, .nsh-pager > a {
  min-width: 46px; height: 46px; padding: 0 10px; border-radius: 999px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); font-family: var(--ff-en); font-size: 15px; background: #fff;
  transition: background .3s, color .3s, border-color .3s;
}
.nsh-pager a:hover { border-color: var(--navy); color: var(--navy); }
.nsh-pager .current, .nsh-pager [aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.nsh-pager .dots { border: 0; background: transparent; }

/* 記事詳細 */
.nsh-article-head { padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.nsh-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.nsh-article-meta time { font-family: var(--ff-en); font-size: 15px; letter-spacing: .08em; color: var(--muted); }
.nsh-article-meta .cat { font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: var(--light); color: var(--navy); transition: background .3s, color .3s; }
.nsh-article-meta .cat:hover { background: var(--navy); color: #fff; }
.nsh-article-title { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.55; letter-spacing: .04em; }
.nsh-article-thumb { margin: 0 0 36px; border-radius: var(--radius-lg); overflow: hidden; }
.nsh-article-thumb img { width: 100%; height: auto; }

/* 本文 */
.nsh-entry { font-size: 17px; line-height: 2; word-break: break-word; }
.nsh-entry > * + * { margin-top: 1.4em; }
.nsh-entry h2 { margin-top: 2.4em; padding: 14px 20px; font-size: clamp(21px, 2.2vw, 25px); line-height: 1.6; background: var(--light); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; }
.nsh-entry h3 { margin-top: 2em; padding-bottom: 8px; font-size: clamp(19px, 1.9vw, 21px); border-bottom: 2px solid var(--line); }
.nsh-entry h4 { margin-top: 1.8em; font-size: 18px; color: var(--navy); }
.nsh-entry a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.nsh-entry a:hover { color: var(--navy); }
.nsh-entry strong { color: var(--navy-ink); }
.nsh-entry ul, .nsh-entry ol { padding-left: 1.5em; }
.nsh-entry ul { list-style: disc; }
.nsh-entry ol { list-style: decimal; }
.nsh-entry li + li { margin-top: .4em; }
.nsh-entry img { border-radius: var(--radius); height: auto; }
.nsh-entry figure { margin-left: 0; margin-right: 0; }
.nsh-entry figcaption, .nsh-entry .wp-element-caption { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }
.nsh-entry blockquote { margin: 1.6em 0; padding: 18px 24px; background: var(--gray); border-left: 4px solid var(--cyan); border-radius: 0 var(--radius) var(--radius) 0; }
.nsh-entry table { width: 100%; border-collapse: collapse; font-size: 16px; }
.nsh-entry th, .nsh-entry td { padding: 12px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.nsh-entry th { background: var(--gray); color: var(--navy-ink); }
.nsh-entry .wp-block-table { overflow-x: auto; }
.nsh-entry .wp-block-button__link { display: inline-flex; padding: 14px 28px; border-radius: 999px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 700; }
.nsh-entry .wp-block-button__link:hover { background: var(--blue); color: #fff; }
.nsh-entry hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.nsh-entry .alignleft { float: left; margin: .4em 1.6em 1em 0; }
.nsh-entry .alignright { float: right; margin: .4em 0 1em 1.6em; }
.nsh-entry .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.nsh-entry::after { content: ""; display: table; clear: both; }
@media (max-width: 640px) {
  .nsh-entry { font-size: 16px; }
  .nsh-entry .alignleft, .nsh-entry .alignright { float: none; margin: 1em 0; }
}

/* 前後の記事・一覧へ戻る */
.nsh-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.nsh-post-nav a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; transition: border-color .3s, background .3s; }
.nsh-post-nav a:hover { border-color: var(--blue); background: var(--light); }
.nsh-post-nav .label { font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: .06em; }
.nsh-post-nav .ttl { font-weight: 500; line-height: 1.6; color: var(--navy-ink); }
.nsh-post-nav .is-prev .label::before { content: "‹ "; }
.nsh-post-nav .is-next { text-align: right; }
.nsh-post-nav .is-next a { align-items: flex-end; }
.nsh-post-nav .is-next .label::after { content: " ›"; }
@media (max-width: 640px) {
  .nsh-post-nav { grid-template-columns: 1fr; }
  .nsh-post-nav .is-next { text-align: left; }
  .nsh-post-nav .is-next a { align-items: flex-start; }
}
.nsh-back { margin-top: 40px; text-align: center; }

/* WordPress（お知らせ）：管理バー表示時、固定ヘッダーが隠れないように */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* ---------- News page ---------- */
.news-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.news-filter button { padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 14.5px; font-weight: 500; transition: all .3s; }
.news-filter button[aria-pressed="true"], .news-filter button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.empty-state { margin-top: 40px; text-align: center; padding: clamp(40px, 6vw, 72px) 24px; border-radius: var(--radius-lg); background: var(--gray); }
.empty-state .icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: #fff; color: var(--blue); display: grid; place-items: center; }
.empty-state .icon svg { width: 32px; height: 32px; }
.empty-state h2 { font-size: 22px; }
.empty-state p { color: var(--muted); margin-top: 10px; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pager span, .pager a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-family: var(--ff-en); }
.pager .is-current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager .is-disabled { opacity: .4; }

/* ---------- Contact ---------- */
.contact-methods { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.method-card { border-radius: var(--radius-lg); padding: clamp(28px, 3.4vw, 44px); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.method-card .icon { width: 58px; height: 58px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; }
.method-card .icon svg { width: 26px; height: 26px; }
.method-card h2, .method-card h3 { font-size: 21px; }
.method-card .tel-num { font-family: var(--ff-en); font-size: clamp(34px, 4vw, 48px); font-weight: 500; color: var(--navy); letter-spacing: .04em; line-height: 1.15; }
.method-card .tel-num:hover { color: var(--blue); }
.method-card p { color: var(--muted); font-size: 16px; }
.method-card .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 760px) { .contact-methods { grid-template-columns: 1fr; } }

.steps { display: flex; justify-content: center; gap: 0; margin-bottom: 48px; counter-reset: st; }
.steps li { position: relative; flex: 1; max-width: 220px; text-align: center; font-size: 14.5px; font-weight: 700; color: var(--muted); counter-increment: st; }
.steps li::before { content: counter(st); display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%; background: #fff; border: 2px solid var(--line); font-family: var(--ff-en); font-size: 17px; position: relative; z-index: 1; transition: all .4s; }
.steps li + li::after { content: ""; position: absolute; top: 22px; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.steps li.is-active, .steps li.is-done { color: var(--navy); }
.steps li.is-active::before { background: var(--navy); border-color: var(--navy); color: #fff; }
.steps li.is-done::before { background: var(--light); border-color: var(--blue); color: var(--blue); }
.steps li.is-active::after, .steps li.is-done::after { background: var(--blue); }

.form { background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 56px); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.form-row:first-child { padding-top: 0; }
.form-label { font-weight: 700; color: var(--navy-ink); display: flex; align-items: flex-start; gap: 10px; padding-top: 12px; line-height: 1.6; flex-wrap: wrap; }
.req, .opt { font-size: 12px; padding: 2px 9px; border-radius: 4px; font-weight: 700; letter-spacing: .06em; line-height: 1.6; }
.req { background: #c8343a; color: #fff; }
.opt { background: var(--gray); color: var(--muted); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; min-height: 56px; padding: 12px 16px; border: 1px solid #c9d4de; border-radius: var(--radius); background: #fbfcfd; font-size: 17px; transition: border-color .3s, background .3s, box-shadow .3s;
}
.form textarea { min-height: 200px; resize: vertical; line-height: 1.8; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(35,166,224,.16); }
.form .is-error input, .form .is-error select, .form .is-error textarea { border-color: #c8343a; background: #fff7f7; }
.form .err-msg { display: none; color: #c8343a; font-size: 14px; margin-top: 6px; font-weight: 500; }
.form .is-error .err-msg { display: block; }
.form .hint { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.radio-group { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.radio-group label { position: relative; cursor: pointer; }
.radio-group input { position: absolute; opacity: 0; }
.radio-group span { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 1px solid #c9d4de; border-radius: 999px; font-size: 16px; transition: all .3s; background: #fbfcfd; }
.radio-group span::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #b5c3cf; transition: all .3s; }
.radio-group input:checked + span { border-color: var(--blue); background: var(--light); color: var(--navy); font-weight: 700; }
.radio-group input:checked + span::before { border: 5px solid var(--blue); }
.radio-group input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.agree { margin-top: 32px; text-align: center; }
.agree label { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 500; }
.agree input { width: 22px; height: 22px; accent-color: var(--blue); }
.agree a { color: var(--blue); text-decoration: underline; }
.agree .err-msg { text-align: center; }
.form-actions { display: flex; justify-content: center; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.form-actions .btn { min-width: 260px; }
.form .hp { position: absolute; left: -9999px; }
.confirm-table th, .confirm-table td { padding: 18px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.confirm-table th { width: 240px; background: var(--gray); color: var(--navy-ink); }
.confirm-table td { white-space: pre-wrap; word-break: break-word; }
.complete { text-align: center; padding: 20px 0; }
.complete .icon { width: 84px; height: 84px; margin: 0 auto 24px; border-radius: 50%; background: var(--light); color: var(--blue); display: grid; place-items: center; }
.complete .icon svg { width: 40px; height: 40px; }
.complete h3 { font-size: 24px; margin-bottom: 14px; }
[hidden] { display: none !important; }
@media (max-width: 760px) {
  .form-row { grid-template-columns: 1fr; gap: 8px; }
  .form-label { padding-top: 0; }
  .confirm-table th, .confirm-table td { display: block; width: 100%; }
  .confirm-table th { border-bottom: 0; padding: 12px 16px 4px; }
  .confirm-table td { padding: 4px 16px 16px; }
  .form-actions .btn { min-width: 0; width: 100%; }
  .steps li { font-size: 12.5px; }
}

.policy { counter-reset: pol; }
.policy h3 { font-size: 19px; margin: 36px 0 10px; display: flex; gap: 12px; align-items: baseline; }
.policy h3::before { counter-increment: pol; content: counter(pol, decimal-leading-zero); font-family: var(--ff-en); color: var(--blue); font-size: 16px; }
.policy ul { list-style: disc; padding-left: 1.4em; margin-top: 8px; }
.policy ul li { margin: 4px 0; }
.policy-box { max-height: none; }

/* ==========================================================================
   Reveal animations
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1.1s var(--ease-out); }
.js .reveal.is-inview { opacity: 1; transform: none; }
/* 画像の演出：clip-pathで隠すと遅延読み込み・表示判定が働かない環境があるため、透明度のみで表示 */
.js .reveal-img { opacity: 0; transition: opacity 1.2s var(--ease); }
.js .reveal-img.is-inview { opacity: 1; }
.js .reveal-img img { transform: scale(1.06); transition: transform 1.6s var(--ease-out); }
.js .reveal-img.is-inview img { transform: none; }
.js .service-card.reveal { transition: opacity 1s var(--ease), transform .6s var(--ease-out), border-color .4s; }
.js .service-card.reveal.is-inview:hover { transform: translateY(-4px); }
.js [data-delay="1"] { transition-delay: .1s; }
.js [data-delay="2"] { transition-delay: .2s; }
.js [data-delay="3"] { transition-delay: .3s; }
.js [data-delay="4"] { transition-delay: .4s; }

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

/* Spacing utilities */
/* TOPデザイン確認用：無効化したリンク（js/preview-lock.js） */
a.is-link-off { cursor: default; }
.mt-s { margin-top: 24px; } .mt-m { margin-top: 48px; } .mt-l { margin-top: clamp(64px, 8vw, 100px); }
.center { text-align: center; }
