/*
Theme Name: Fairy
Theme URI: https://kabushikikaisha-fairy.com/
Author: 株式会社フェアリー
Description: 株式会社フェアリーの会社サイト用オリジナルテーマ。ドローンによる外壁洗浄事業を紹介する明朝体・クリーム地のデザイン。
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fairy
*/

/* =========================================================
     プレビューの外枠（サイト本体ではない部分）
     ========================================================= */
  :root {
    --chrome-bg:    #1B2429;
    --chrome-ink:   #E7E0D3;
    --chrome-soft:  #8C9CA4;
    --chrome-line:  #2E3B42;

    /* ---- サイト本体の配色（舞子ビラ調：クリーム地＋チャコール＋金茶）---- */
    --ink:          #3C4044;
    --ink-soft:     #676D74;
    --ink-faint:    #9AA0A6;
    --paper:        #FBF7F1;
    --paper-2:      #F4EEE4;
    --line:         hsla(40, 6%, 70%, .45);
    --deep:         #3C4044;
    --deep-2:       #2B2F33;
    --primary:      #2B2F33;   /* ボタン。旧 #2068A3 は palette から浮いていた */
    --link:         #31576B;   /* リンク。図解と theme-color と同系統 */
    --accent:       #AE9564;
    --accent-dark:  #7D6C4B;
    --accent-pale:  #F3EADA;

    --font-jp:  "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    --font-min: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", "游明朝", serif;
    --font-en:  "Libre Baskerville", Georgia, "Times New Roman", serif;
    --font-mono: Consolas, "SF Mono", ui-monospace, "MS Gothic", monospace;
  }
* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--chrome-bg);
    color: var(--chrome-ink);
    font-family: var(--font-jp);
    -webkit-font-smoothing: antialiased;
  }
.site a:focus-visible, .site button:focus-visible, input:focus-visible { outline: 2px solid #AE9564; outline-offset: 2px; }
/* =========================================================
     サイト本体
     ========================================================= */
  .site {
    max-width: 82rem;
    margin: 0 auto;
    background: var(--paper);
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.9;
    box-shadow: 0 20px 60px -30px rgba(0,0,0,.8);
    overflow: hidden;
    transition: max-width .25s ease;
  }


  @media (prefers-reduced-motion: reduce) {
    .site { transition: none; }
  }
.site :where(h1, h2, h3, p, ul, ol) { margin: 0; }
.site ul { padding-left: 1.2rem; }
.inner {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 2rem;
  }
/* ---- ヘッダー ---- */
  .site-header {
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 0;
  }
.logo {
    font-size: 1.12rem;
    font-weight: 900;
    letter-spacing: .06em;
    color: var(--deep);
    white-space: nowrap;
  }
.logo-img {
    display: block;
    height: 2rem;
    width: 10.3rem;
    background-size: contain;
    background-position: left center;
    background-repeat: no-repeat;
    flex-shrink: 0;
  }
.site-footer .logo-img { height: 1.9rem; width: 9.7rem; margin-bottom: 1rem; }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav a {
    font-size: .84rem;
    color: var(--ink-soft);
    text-decoration: none;
    padding: .2rem 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
  }
.nav a:hover { color: var(--deep); border-bottom-color: var(--accent); }
.nav a[aria-current="page"] { color: var(--deep); font-weight: 700; border-bottom-color: var(--accent); }
.header-tel {
    font-size: .95rem;
    font-weight: 900;
    color: var(--deep);
    text-decoration: none;
    white-space: nowrap;
  }
.btn {
    display: inline-block;
    font-family: inherit;
    font-size: .84rem;
    font-weight: 700;
    text-decoration: none;
    padding: .58rem 1.15rem;
    border-radius: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
  }
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--deep); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--deep); }
.btn-light { background: #FFFFFF; color: var(--deep); }
.btn-light:hover { background: var(--paper-2); }
.burger {
  display: none; font-size: 1.4rem; background: none; border: 0;
  color: var(--deep); cursor: pointer; padding: 0 .2rem;
  position: relative; z-index: 1;
  touch-action: manipulation;              /* タップ後の300ms待ちをなくす */
  -webkit-tap-highlight-color: rgba(0,0,0,.08);
}
/* 見た目は26x34pxのままだが、指の当たる範囲だけ広げる。
   Androidの推奨は48x48dp。ヘッダーの高さは変えたくないので擬似要素で拡張する。 */
.burger::after { content: ""; position: absolute; inset: -8px -11px; }
/* ---- ヒーロー ---- */
  .hero {
    position: relative;
    background: linear-gradient(160deg, #4C5054 0%, #34383C 60%, #26292D 100%);
    color: #FFFFFF;
    overflow: hidden;
  }
.hero-photo {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center 42%;
    background-repeat: no-repeat;
  }

.hero-inner {
    position: relative;
    max-width: 64rem;
    margin: 0 auto;
    padding: 5.5rem 2rem 5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
  }
.hero h1 {
    font-size: 2.9rem;
    font-weight: 900;
    line-height: 1.32;
    letter-spacing: .01em;
    margin-bottom: 1.2rem;
    text-wrap: balance;
  }
.hero p {
    font-size: 1rem;
    line-height: 2;
    color: #E4DED4;
    max-width: 34rem;
    margin-bottom: 1.8rem;
  }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
/* ---- セクション共通 ---- */
  .sec { padding: 4.5rem 0; }
.sec.alt { background: var(--paper-2); }
.sec.dark { background: var(--deep); color: #FFFFFF; }
.sec-head { margin-bottom: 2.2rem; }
.sec :is(h1, h2) {
    font-size: 1.85rem;
    font-weight: 900;
    line-height: 1.5;
    letter-spacing: .01em;
    text-wrap: balance;
  }
.sec.dark :is(h1, h2) { color: #FFFFFF; }
.sec-lead { margin-top: .9rem; color: var(--ink-soft); max-width: 40rem; }
.sec.dark .sec-lead { color: #D6D0C6; }
.eyebrow {
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .18em;
    color: var(--accent);
    display: block;
    margin-bottom: .6rem;
  }
.sec.dark .eyebrow { color: #CBB98D; }
/* ---- 写真の入る場所 ---- */
  .ph {
    position: relative;
    background: repeating-linear-gradient(135deg, #EFE9DE 0 10px, #E7E0D3 10px 20px);
    border: 1px dashed #C3B9A7;
    color: #7D7466;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: .74rem;
    line-height: 1.7;
    padding: 1rem;
    border-radius: 2px;
  }
.ph.wide { aspect-ratio: 16 / 9; }
.ph.sq { aspect-ratio: 1 / 1; }
.ph.tall { aspect-ratio: 4 / 5; }
.ph.r43 { aspect-ratio: 4 / 3; }
.work-during { margin: 2px 0 0; }
.work-during figcaption {
    font-size: .78rem; color: var(--ink-faint);
    padding: .55rem .2rem 0; line-height: 1.7;
  }
.kit-shots { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: 1.1rem; }
.kit-shots .cap { font-size: .74rem; color: var(--ink-faint); margin-top: .35rem; }
/* ---- カード ---- */
  .cards {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, 1fr);
  }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card h3 { font-size: 1.06rem; font-weight: 900; margin: 1rem 0 .5rem; }
.card p { font-size: .89rem; color: var(--ink-soft); }
.card .more {
    display: inline-block;
    margin-top: .7rem;
    font-size: .82rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
  }
.card .more:hover { color: var(--accent); }
/* ---- 理由（4点） ---- */
  .reasons { display: grid; gap: 1.6rem 2.5rem; grid-template-columns: 1fr 1fr; }
.reason { display: grid; grid-template-columns: 2.6rem 1fr; gap: .1rem 1rem; }
.reason .icon {
    width: 2.6rem; height: 2.6rem;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    display: grid; place-items: center;
    color: var(--accent);
  }
.reason h3 { font-size: 1rem; font-weight: 900; padding-top: .35rem; }
.reason p { grid-column: 2; font-size: .89rem; color: var(--ink-soft); }
/* ---- 比較表 ---- */
  .table-wrap { overflow-x: auto; }
table.compare {
    border-collapse: collapse;
    width: 100%;
    min-width: 30rem;
    font-size: .88rem;
    background: var(--paper);
  }
table.compare th, table.compare td {
    border-bottom: 1px solid var(--line);
    padding: .85rem 1rem;
    text-align: left;
    vertical-align: top;
  }
table.compare thead th {
    font-size: .78rem;
    letter-spacing: .04em;
    color: var(--ink-faint);
    border-bottom-width: 2px;
    border-bottom-color: var(--deep);
    font-weight: 700;
  }
table.compare tbody th { font-weight: 700; white-space: nowrap; width: 8rem; }
table.compare td.us { font-weight: 700; color: var(--deep); background: var(--accent-pale); }
/* ---- 施工前後スライダー ---- */
  .ba { max-width: 42rem; }
.ba-frame {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 2px;
    border: 1px solid var(--line);
  }
.ba-layer { position: absolute; inset: 0; }
.wall {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, #CBC9C2 0%, #B9B6AE 55%, #ABA8A0 100%);
  }
.wall::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
      linear-gradient(90deg, rgba(0,0,0,.10) 1px, transparent 1px),
      linear-gradient(180deg, rgba(0,0,0,.10) 1px, transparent 1px);
    background-size: 3.2rem 2rem;
  }
.grime {
    position: absolute; inset: 0;
    filter: url(#grime);
    opacity: .78;
    mix-blend-mode: multiply;
  }
.ba-clip { position: absolute; inset: 0; clip-path: inset(0 var(--cut, 50%) 0 0); }
.ba-tag {
    position: absolute; bottom: .7rem;
    font-size: .7rem; font-weight: 700; letter-spacing: .08em;
    background: rgba(19,28,33,.82); color: #FFFFFF;
    padding: .2rem .6rem; border-radius: 2px;
  }
.ba-tag.before { left: .7rem; }
.ba-tag.after { right: .7rem; }
.ba-handle {
    position: absolute; top: 0; bottom: 0;
    left: var(--pos, 50%);
    width: 2px; background: #FFFFFF;
    box-shadow: 0 0 0 1px rgba(0,0,0,.25);
    pointer-events: none;
  }
.ba-handle::after {
    content: "";
    position: absolute; top: 50%; left: 50%;
    width: 2.1rem; height: 2.1rem;
    transform: translate(-50%,-50%);
    background: #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,.35);
  }
.ba input[type="range"] {
    width: 100%;
    margin-top: 1rem;
    accent-color: var(--accent);
  }
.ba-note { font-size: .78rem; color: var(--ink-faint); margin-top: .5rem; }
/* ---- 流れ ---- */
  .flow { display: grid; gap: 0; counter-reset: step; }
.flow-item {
    display: grid;
    grid-template-columns: 3.2rem 1fr;
    gap: .1rem 1.2rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--line);
  }
.flow-item:last-child { border-bottom: 0; }
.flow-item .num {
    counter-increment: step;
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
    padding-top: .15rem;
  }
.flow-item .num::before { content: counter(step, decimal-leading-zero); }
.flow-item h3 { font-size: 1rem; font-weight: 900; padding-top: .1rem; }
.flow-item p { grid-column: 2; font-size: .89rem; color: var(--ink-soft); }
/* ---- 得意・苦手 ---- */
  .pair { display: grid; gap: 1.5rem; grid-template-columns: 1fr 1fr; }
.panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 3px solid var(--primary);
    padding: 1.4rem 1.5rem;
    border-radius: 2px;
  }
.panel.no { border-top-color: var(--accent); }
.panel h3 { font-size: 1rem; font-weight: 900; margin-bottom: .6rem; }
.panel p { font-size: .89rem; color: var(--ink-soft); }
.panel figure { margin: 0 0 1rem; }
.panel figure svg { width: 100%; height: auto; display: block; background: var(--paper-2); border-radius: 2px; }
.panel figcaption { font-size: .76rem; color: var(--ink-faint); margin-top: .45rem; line-height: 1.65; }
/* ---- 実績カード ---- */
  .works { display: grid; gap: 1.6rem; grid-template-columns: repeat(3, 1fr); }
.work { background: var(--paper); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.work .ph { border: 0; border-bottom: 1px dashed #C3B9A7; }
.work-body { padding: 1rem 1.15rem 1.2rem; }
.work .cat {
    font-family: var(--font-mono);
    font-size: .68rem; letter-spacing: .1em;
    color: var(--accent);
  }
.work h3 { font-size: .98rem; font-weight: 900; margin: .3rem 0 .5rem; line-height: 1.6; }
.work dl {
    margin: 0;
    display: grid;
    grid-template-columns: 4.6rem 1fr;
    gap: .1rem .6rem;
    font-size: .8rem;
    color: var(--ink-soft);
  }
.work dt { color: var(--ink-faint); }
.work dd { margin: 0; font-variant-numeric: tabular-nums; }
.work p.body { font-size: .85rem; color: var(--ink-soft); margin-top: .8rem; }
/* ---- 声 ---- */
  .voices { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.voice {
    background: var(--paper);
    border-left: 3px solid var(--accent);
    padding: 1rem 1.2rem;
    font-size: .9rem;
    color: var(--ink-soft);
  }
/* ---- 会社概要表 ---- */
  table.spec { border-collapse: collapse; width: 100%; font-size: .89rem; }
table.spec th, table.spec td {
    border-bottom: 1px solid var(--line);
    padding: .85rem 1rem .85rem 0;
    text-align: left;
    vertical-align: top;
  }
table.spec th { width: 9rem; white-space: nowrap; color: var(--ink-faint); font-weight: 700; }
.kit { display: grid; gap: 1.5rem; grid-template-columns: 1fr 1fr; margin-top: 2.5rem; }
.kit-box { background: var(--paper-2); padding: 1.3rem 1.5rem; border-radius: 2px; }
.kit-box h3 { font-size: .95rem; font-weight: 900; margin-bottom: .7rem; }
.kit-box p { font-size: .89rem; color: var(--ink-soft); }
.kit-box .big { font-size: 1.15rem; font-weight: 900; color: var(--deep); }
/* ---- フォーム ---- */
  .form { display: grid; gap: 1.1rem; max-width: 36rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .85rem; font-weight: 700; }
.field .req {
    font-size: .68rem; font-weight: 700;
    color: #FFFFFF; background: var(--accent);
    padding: .05rem .35rem; border-radius: 2px;
    margin-left: .4rem; vertical-align: 1px;
  }
.field .help { font-size: .76rem; color: var(--ink-faint); }
.field input, .field textarea, .field select {
    font-family: inherit;
    font-size: .92rem;
    padding: .6rem .7rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--paper);
    color: var(--ink);
    width: 100%;
  }
.field textarea { min-height: 6rem; resize: vertical; }
.tel-block {
    background: var(--paper-2);
    border-radius: 2px;
    padding: 1.4rem 1.6rem;
    margin-bottom: 2.2rem;
    max-width: 36rem;
  }
.tel-block .num {
    font-size: 2rem;
    font-weight: 900;
    color: var(--deep);
    letter-spacing: .02em;
    text-decoration: none;
    display: inline-block;
    font-variant-numeric: tabular-nums;
  }
.tel-block p { font-size: .84rem; color: var(--ink-soft); margin-top: .5rem; }
/* ---- CTA帯 ---- */
  .cta-band { background: var(--deep-2); color: #FFFFFF; padding: 3.5rem 0; }
.cta-band h2 { font-size: 1.75rem; font-weight: 900; }
.cta-band p { color: #D6D0C6; margin-top: .9rem; max-width: 36rem; font-size: .95rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.6rem; }
.cta-tel { font-size: 1.5rem; font-weight: 900; color: #FFFFFF; text-decoration: none; font-variant-numeric: tabular-nums; }
/* ---- フッター ---- */
  .site-footer { background: var(--ink); color: #CFC8BD; padding: 3rem 0 2rem; font-size: .85rem; }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr; }
.site-footer .logo { color: #FFFFFF; display: block; margin-bottom: .9rem; }
.site-footer a { color: #CFC8BD; text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; }
.foot-links { display: grid; gap: .45rem; }
.foot-reg { margin-top: 1rem; font-size: .78rem; color: #B4ACA0; }
.copy { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid #4E5257; font-size: .75rem; color: #B4ACA0; }
/* ---- 注釈（見本であることの明示） ---- */
  .stub {
    background: #FFF6E8;
    border: 1px solid #E8CFA8;
    color: #6B4A15;
    font-size: .8rem;
    padding: .8rem 1rem;
    border-radius: 2px;
    margin-top: 2rem;
  }
/* WordPress の body_class() が付ける page クラスと衝突するため main に限定している */
main.page { display: none; }
main.page.on { display: block; }
/* 実写が入る要素 */
  .photo {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 0;
    color: transparent;
    font-size: 0;
  }
.photo.top { background-position: center 28%; }
.fig-wide { margin: 0; }
.fig-wide svg {
      width: 100%; height: auto; display: block;
      background: var(--paper-2);
      border-radius: 2px;
    }
.fig-wide figcaption {
      margin-top: .6rem;
      font-size: .78rem;
      color: var(--ink-faint);
      line-height: 1.7;
    }
/* 施工前後の2枚組 */
  .ba2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.ba2 .cell {
    position: relative;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center 25%;
    background-repeat: no-repeat;
    background-color: var(--paper-2);
  }
.ba2 .cell span {
    position: absolute; left: 0; bottom: 0;
    font-size: .66rem; font-weight: 700; letter-spacing: .06em;
    background: rgba(19,28,33,.82); color: #FFFFFF;
    padding: .12rem .5rem;
  }
[data-img="hero"]{background-image:url(images/hero.webp)}
[data-img="card-wall"]{background-image:url(images/card-wall.webp)}
[data-img="cta"]{background-image:url(images/cta.webp)}
[data-img="wash-before"]{background-image:url(images/wash-before.webp)}
[data-img="wash-after"]{background-image:url(images/wash-after.webp)}
[data-img="aerial-sakura"]{background-image:url(images/aerial-sakura.webp)}
[data-img="w-satsumagun"]{background-image:url(images/w-satsumagun.webp)}
[data-img="w-sakura"]{background-image:url(images/w-sakura.webp)}
[data-img="w-starland"]{background-image:url(images/w-starland.webp)}
[data-img="work-scene"]{background-image:url(images/work-scene.webp)}
[data-img="slider-before"]{background-image:url(images/slider-before.webp)}
[data-img="slider-after"]{background-image:url(images/slider-after.webp)}
[data-img="satsumagun-before"]{background-image:url(images/satsumagun-before.webp)}
[data-img="satsumagun-after"]{background-image:url(images/satsumagun-after.webp)}
[data-img="sakura-before"]{background-image:url(images/sakura-before.webp)}
[data-img="sakura-after"]{background-image:url(images/sakura-after.webp)}
[data-img="hayashida-before"]{background-image:url(images/hayashida-before.webp)}
[data-img="hayashida-after"]{background-image:url(images/hayashida-after.webp)}
[data-img="starland-before"]{background-image:url(images/starland-before.webp)}
[data-img="starland-after"]{background-image:url(images/starland-after.webp)}
[data-img="logo"]{background-image:url(images/logo.png)}
[data-img="logo-white"]{background-image:url(images/logo-white.png)}
[data-img="drone-kit"]{background-image:url(images/drone-kit.webp)}
[data-img="washer"]{background-image:url(images/washer.webp)}
[data-img="c-hospital"]{background-image:url(images/c-hospital.webp)}
[data-img="c-public"]{background-image:url(images/c-public.webp)}
[data-img="w-satsumagun-during"]{background-image:url(images/w-satsumagun-during.webp)}
[data-img="w-starland-during"]{background-image:url(images/w-starland-during.webp)}

/* =========================================================
   実サイト用の調整（見本HTMLからの変換時に追加）
   ========================================================= */
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
.site {
  max-width: none;
  margin: 0;
  box-shadow: none;
  overflow: visible;
  transition: none;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--deep); color: #fff; padding: .6rem 1rem;
}
.skip-link:focus { left: 0; }

@media (max-width: 767px) {
  .inner { padding: 0 1.2rem; }
  .logo-img { height: 1.7rem; width: 8.7rem; }
  .nav,
  .header-cta { display: none; }
  .burger { display: block; }
  .hero-inner { padding: 3.2rem 1.2rem 3rem; grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.85rem; }
  .hero p { font-size: .92rem; }
  .sec { padding: 2.8rem 0; }
  .sec :is(h1, h2) { font-size: 1.35rem; }
  .cards { grid-template-columns: 1fr; }
  .reasons { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr; }
  .works { grid-template-columns: 1fr; }
  .voices { grid-template-columns: 1fr; }
  table.spec th { width: 6rem; }
  .kit { grid-template-columns: 1fr; }
  .tel-block .num { font-size: 1.6rem; }
  .cta-band h2 { font-size: 1.3rem; }
  .foot-grid { grid-template-columns: 1fr; }

  /* スマホのメニュー */
  .site-header { position: relative; }
  .nav.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: .4rem 1.2rem 1rem;
    z-index: 60;
  }
  .nav.open a { padding: .75rem 0; border-bottom: 1px solid var(--line); }
  .nav.open a:last-child { border-bottom: 0; }
}

/* --- お問い合わせフォームの追加分 --- */
.form-agree { font-size: .82rem; color: var(--ink-soft); }
.form-agree a { color: var(--primary); text-decoration: underline; }
.form-notice {
  border: 1px solid var(--accent);
  background: var(--accent-pale);
  color: var(--ink);
  padding: .9rem 1.1rem;
  font-size: .9rem;
  line-height: 1.8;
}
.form input:invalid:not(:placeholder-shown),
.form select:invalid { border-color: var(--accent); }

/* --- お知らせ --- */
.news-empty {
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink-soft);
  padding: 2.2rem 1.2rem;
  text-align: center;
  font-size: .95rem;
}
.news-item { border-bottom: 1px solid var(--line); padding: 1.4rem 0; }
.news-item time { font-size: .82rem; color: var(--ink-faint); }
.news-item h3 { margin-top: .3rem; }
.news-item p { margin-top: .5rem; color: var(--ink-soft); font-size: .92rem; }

/* =========================================================
   タブレット幅（768〜1023px）
   3列組みが詰まるため2列に落とす
   ========================================================= */
@media (min-width: 768px) and (max-width: 1023px) {
  .inner { padding: 0 1.6rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .works { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { padding: 4.2rem 1.6rem 3.8rem; }
  .hero h1 { font-size: 2.3rem; }
  .sec { padding: 3.4rem 0; }
}

/* =========================================================
   舞子ビラ調のデザイン層（2026年8月19日）
   明朝体の見出し／クリーム地／金茶のアクセント／広い余白
   ここより下が後から効くので、上の指定を上書きします
   ========================================================= */

/* ---- 見出しは明朝、細めに、字間をあけて ---- */
.site :is(h1, h2, h3) { font-family: var(--font-min); }

.sec :is(h1, h2) {
  font-size: 2.15rem;
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: .06em;
}
.hero h1 {
  font-family: var(--font-min);
  font-size: 3.1rem;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .08em;
}
.site h3 {
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.75;
}
.cta-band :is(h1, h2) { font-size: 2rem; font-weight: 500; letter-spacing: .06em; }

/* ---- 英字ラベルはセリフ体で ---- */
.eyebrow {
  font-family: var(--font-en);
  font-size: .72rem;
  letter-spacing: .22em;
  color: var(--accent-dark);   /* 文字なので濃い金茶。明るい金は罫線だけに使う */
  margin-bottom: 1.1rem;
}
.hero-en {
  display: block;
  font-family: var(--font-en);
  font-size: .82rem;
  letter-spacing: .26em;
  color: rgba(255,255,255,.82);
  margin-bottom: 1.5rem;
}

/* ---- 余白を広く取る ---- */
.sec { padding: 7rem 0; }
.sec-head { margin-bottom: 3.2rem; }
.hero-inner { padding: 8rem 2rem 7rem; }
.site { font-size: 1rem; line-height: 2.0; }

/* ---- 罫線は細く、角は立てる ---- */
.btn {
  border-radius: 0;
  font-weight: 400;
  font-size: .82rem;
  letter-spacing: .12em;
  padding: .95rem 2.1rem;
  transition: background-color .3s var(--ease, ease), color .3s ease, border-color .3s ease;
}
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: #17517F; border-color: #17517F; }
.btn-ghost, .btn-light { border-radius: 0; }

/* ---- セクションの敷き分け ---- */
.sec.alt { background: var(--paper-2); }
.sec.dark { background: var(--deep); }
.sec.dark .eyebrow { color: #CBB98D; }

/* ---- 写真は角を立てる ---- */
.ph, .cell, .ba, .work-during .ph { border-radius: 0; }

/* ---- 見出しの下に細い金の罫 ---- */
.sec-head :is(h1, h2)::after {
  content: "";
  display: block;
  width: 2.6rem;
  height: 1px;
  background: var(--accent);
  margin-top: 1.6rem;
}
.sec.dark .sec-head :is(h1, h2)::after { background: #CBB98D; }

/* ---- 表・リード文 ---- */
.sec-lead { font-size: .96rem; line-height: 2.1; max-width: 44rem; margin-top: 1.4rem; }
table.spec th { font-family: var(--font-min); font-weight: 500; letter-spacing: .04em; }

/* ---- ヘッダーはクリーム地になじませる ---- */
/* ヘッダーは position:relative で固定されておらず、背後にぼかす対象がない。
   backdrop-filter は効果がないうえ、実機のAndroid/iOSでは合成レイヤーを作って
   ヘッダー内のボタンのタップ判定を壊すことがあるため外した（2026年8月27日）。 */
.site-header { background: var(--paper); position: relative; z-index: 100; }
.nav a { letter-spacing: .06em; font-size: .86rem; }

/* ---- フッター ---- */
.site-footer { background: var(--deep); }

@media (max-width: 767px) {
  .sec { padding: 4.2rem 0; }
  .sec :is(h1, h2) { font-size: 1.5rem; line-height: 1.85; }
  .hero h1 { font-size: 1.95rem; line-height: 1.8; }
  .hero-inner { padding: 5rem 1.2rem 4.2rem; }
  .sec-head { margin-bottom: 2.2rem; }
  .hero-en { font-size: .7rem; letter-spacing: .2em; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .sec { padding: 5.2rem 0; }
  .sec :is(h1, h2) { font-size: 1.8rem; }
  .hero h1 { font-size: 2.5rem; }
  .hero-inner { padding: 6rem 1.6rem 5rem; }
}

/* 文字として使う金茶は、読める濃さのものに寄せる */
.card .more:hover,
.panel.no h3 { color: var(--accent-dark); }

/* --- 機材セクション：写真を1枚に整理 --- */
.kit-shots.one { grid-template-columns: 1fr; max-width: 17rem; }
.kit-hero figcaption {
  font-size: .78rem;
  color: var(--ink-faint);
  line-height: 1.8;
  padding-top: .6rem;
}
.kit-hero { margin: 0; }

/* --- 施工実績ページ：1件ずつ全幅で見せる --- */
.works.detail { grid-template-columns: 1fr; gap: 3.4rem; }
.works.detail .work { border: 0; background: transparent; }
.works.detail .ba2 { gap: 4px; }
.works.detail .work-body { padding: 1.4rem 0 0; }
.works.detail .work h3 { font-size: 1.32rem; margin: .45rem 0 .9rem; }
.works.detail .work .ph { border-bottom: 0; }
.works.detail .work-during { margin-top: 4px; }
.works.detail .work p.body { font-size: .95rem; max-width: 46rem; }
.works.detail dl { font-size: .86rem; }

@media (min-width: 768px) and (max-width: 1023px) {
  .works.detail { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .works.detail { gap: 2.6rem; }
  .works.detail .work h3 { font-size: 1.12rem; }
}

/* --- YouTube 埋め込み（クリックするまで読み込まない） --- */
.video { margin: 0; }
.video-btn {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper-2) center/cover no-repeat;
  cursor: pointer;
  overflow: hidden;
}
.video-btn::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(43,47,51,.18);
  transition: background .3s ease;
}
.video-btn:hover::after { background: rgba(43,47,51,.06); }
.video-icon {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: 4.6rem; height: 4.6rem;
  border-radius: 50%;
  background: rgba(251,247,241,.92);
  border: 1px solid var(--line);
  z-index: 2;
  transition: transform .3s ease, background .3s ease;
}
.video-icon::before {
  content: "";
  position: absolute; left: 54%; top: 50%;
  transform: translate(-50%,-50%);
  border-style: solid;
  border-width: .62rem 0 .62rem 1.05rem;
  border-color: transparent transparent transparent var(--deep);
}
.video-btn:hover .video-icon { transform: translate(-50%,-50%) scale(1.06); background: #fff; }
.video-cap {
  font-size: .82rem;
  color: var(--ink-faint);
  line-height: 1.8;
  padding-top: .6rem;
}
.video iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 1px solid var(--line); }
@media (max-width: 767px) {
  .video-icon { width: 3.4rem; height: 3.4rem; }
  .video-icon::before { border-width: .46rem 0 .46rem .78rem; }
}

[data-img="yt-starland"]{background-image:url(images/yt-starland.webp)}
[data-img="yt-koatsu"]{background-image:url(images/yt-koatsu.webp)}
[data-img="yt-intro"]{background-image:url(images/yt-intro.webp)}

/* --- ヒーローの動画（重富海岸〜錦江湾。3カットを繋いで最後に桜島） ---
   2026年8月21日に、宮之城の壁面洗浄から差し替え。
   松林の岬 → 海面のきらめき → 海面から桜島 の12秒。継ぎ目は0.5秒のクロスフェード。 */
.hero-photo { z-index: 0; }
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}
.hero::after {              /* 文字を読ませるための暗幕。動画の上に重ねる */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(28,31,34,.88) 0%, rgba(33,36,39,.72) 42%, rgba(38,41,44,.40) 100%);
  z-index: 2;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 3; }

/* 動きを減らす設定の人には動画を出さない（ポスター画像のまま） */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

/* ============================================================
   ファーストビュー（2026年8月20日）
   画面いっぱいの動画の上に、日本語の見出しを行ごとに浮かび上がらせる。
   ============================================================ */

:root { --header-h: 3.85rem; }

.hero {
  min-height: calc(100vh - var(--header-h));   /* 古いブラウザ用 */
  min-height: calc(100svh - var(--header-h));  /* スマホのURLバーぶんを除く */
  display: grid;
  align-items: center;
}

.hero-inner {
  width: 100%;
  padding-top: 7rem;
  padding-bottom: 9rem;      /* 下のスクロール表示と重ならないように */
}

.hero h1 {
  font-size: clamp(2.05rem, 5vw, 4rem);
  line-height: 1.6;
  margin-bottom: 1.6rem;
}
.hero h1 .l { display: block; }
.hero p { font-size: 1.02rem; }

/* 覆い。右側は映像を見せたいので薄く、下端はスクロール表示のために締める */
.hero::after {
  background:
    linear-gradient(to top, rgba(20,23,26,.55) 0%, rgba(20,23,26,0) 26%),
    linear-gradient(100deg, rgba(28,31,34,.86) 0%, rgba(33,36,39,.66) 45%, rgba(38,41,44,.30) 100%);
}

/* 行ごとに下から浮かび上がる */
@keyframes heroRise { to { opacity: 1; transform: none; } }
.hero-en,
.hero h1 .l,
.hero p,
.hero-actions,
.hero-scroll {
  opacity: 0;
  transform: translateY(1.2rem);
  animation: heroRise .95s cubic-bezier(.22,.61,.36,1) forwards;
}
.hero-en                 { animation-delay: .20s; }
.hero h1 .l:nth-child(1) { animation-delay: .45s; }
.hero h1 .l:nth-child(2) { animation-delay: .68s; }
.hero p                  { animation-delay: .95s; }
.hero-actions            { animation-delay: 1.15s; }
.hero-scroll             { animation-delay: 1.50s; }

/* 下へ促す合図（幅を固定して負のマージンで中央寄せ。transform は浮き上がりに使うため空けておく） */
.hero-scroll {
  position: absolute;
  left: 50%;
  margin-left: -3rem;
  width: 6rem;
  bottom: 2rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-en);
  font-size: .62rem;
  letter-spacing: .28em;
  text-indent: .28em;
  color: rgba(255,255,255,.72);
  text-decoration: none;
}
.hero-scroll:hover { color: #FFFFFF; }
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 3.2rem;
  background: linear-gradient(to bottom, rgba(255,255,255,.8), rgba(255,255,255,0));
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top;    opacity: 0; }
  35%  { transform: scaleY(1); transform-origin: top;    opacity: 1; }
  70%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

@media (max-width: 767px) {
  :root { --header-h: 3.5rem; }
  .hero-inner { padding-top: 5rem; padding-bottom: 7rem; }
  .hero h1 { font-size: 1.95rem; line-height: 1.75; }
  .hero-scroll { bottom: 1.4rem; }
}

/* 動きを減らす設定の人には、いきなり最終状態で見せる */
@media (prefers-reduced-motion: reduce) {
  .hero-en,
  .hero h1 .l,
  .hero p,
  .hero-actions,
  .hero-scroll { opacity: 1; transform: none; animation: none; }
  .hero-scroll::after { animation: none; }
}

/* ============================================================
   内田鐵工所（uchida-st.co.jp）から取り入れた3点（2026年8月20日）
   1. セクションの余白を広げる
   2. 英字ラベルを画面の端に縦に立てる
   3. 巨大な半透明の英字を見出しの背後に敷く
   書体は変えていない（明朝のまま）。色も既存の金茶をそのまま使う。
   ============================================================ */

/* ---- 1. 余白を広げる（7rem → 10.5rem。内田は145〜260px） ---- */
.sec { padding: 10.5rem 0; }
.sec-head { margin-bottom: 4rem; }

@media (max-width: 1023px) {
  .sec { padding: 6.5rem 0; }
  .sec-head { margin-bottom: 2.8rem; }
}
@media (max-width: 767px) {
  .sec { padding: 5rem 0; }
  .sec-head { margin-bottom: 2.2rem; }
}

/* ---- 3. 巨大な半透明の英字 ---- */
.sec { position: relative; overflow: hidden; }
.sec-head { position: relative; }
.sec-head > * { position: relative; z-index: 1; }

/* 飾り字は、ラベルが縦に立つ幅でだけ出す。
   横組みラベルのままだと同じ単語が真上に重なって、ただの重複に見えるため。 */
@media (min-width: 1180px) {
  .sec-head[data-en]::before {
    content: attr(data-en);
    position: absolute;
    left: -.05em;
    bottom: 100%;               /* 見出しの上、セクションの余白の中に置く */
    z-index: 0;
    font-family: var(--font-en);
    font-size: clamp(3rem, 7.5vw, 6.4rem);
    line-height: .92;
    letter-spacing: .01em;
    color: var(--accent);
    opacity: .15;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
  }
  .sec.dark .sec-head[data-en]::before { color: #CBB98D; opacity: .13; }
}

/* ---- 2. 英字ラベルを縦に立てる ---- */
/* 本文の欄（64rem）の外側に余白ができる幅からだけ。狭い画面では今までどおり横組み。 */
@media (min-width: 1180px) {
  .sec-head .eyebrow {
    position: absolute;
    left: -3.4rem;                /* .sec-head 基準。.inner の内側余白2remの、さらに外へ */
    top: 0;
    margin: 0;
    writing-mode: vertical-rl;
    text-orientation: sideways;
    font-size: .68rem;
    letter-spacing: .32em;
    white-space: nowrap;
  }
  /* 縦のラベルの頭に短い金の罫を足して、柱に見せる */
  .sec-head .eyebrow::before {
    content: "";
    display: block;
    width: 1px;
    height: 2.2rem;
    background: var(--accent);
    margin: 0 auto .9rem;
  }
  .sec.dark .sec-head .eyebrow::before { background: #CBB98D; }
}

/* ごあいさつ（2026年8月21日に顔写真の枠を外して1カラムにした）。
   読みやすい行長で止める。従来は .pair の左半分に入っていた幅に近い。 */
.message-body { max-width: 46rem; }
.message-body p {
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 2.1;
  margin-top: 1.1rem;
}
.message-body p:first-child { margin-top: 0; }
.message-body .signature {
  margin-top: 1.8rem;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: .04em;
}

/* ---- 公開サイトから移した内容のための部品（2026年8月21日） ----
   空撮の料金プラン表と、農薬散布の節で使う。 */

/* 節の中の小見出し。sec-head の h2 より一段小さく、金の細罫は付けない */
.sub-head {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin: 2.6rem 0 1.1rem;
}
.panel .sub-head, .pair .sub-head { margin-top: 2rem; }

/* 料金表の「／1時間ごと」。金額より小さく、続けて読ませる */
.unit {
  font-size: .78rem;
  color: var(--ink-faint);
  font-weight: 400;
  white-space: nowrap;
}

/* 表のセルの中に添える小さな補足 */
.note-inline { font-size: .82rem; color: var(--ink-faint); }

/* 表や一覧のあとに添える但し書き */
.note-line {
  font-size: .84rem;
  line-height: 1.9;
  color: var(--ink-faint);
  margin-top: 1.1rem;
}

/* 農薬散布の利点。dt が見出し、dd が説明 */
.spec { margin: 0; font-size: .89rem; }
.spec dt {
  font-weight: 600;
  color: var(--ink);
  margin-top: 1rem;
}
.spec dt:first-child { margin-top: 0; }
.spec dd { margin: .25rem 0 0; color: var(--ink-soft); line-height: 1.9; }

/* 価格の行。パネルの下端に、上に細罫を引いて置く */
.price-line {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: .92rem;
}
.price-line strong {
  font-family: var(--font-en);
  font-size: 1.24rem;
  color: var(--accent-dark);
  letter-spacing: .02em;
}

/* ---- セクションを左右に分ける（2026年8月21日・FLOW節に適用） ----
   トップの中盤は「英字ラベル → 飾り字 → 見出し → 中身」が縦に5回繰り返され、
   どの節も同じリズムで一本調子だった。手順のように項目が縦に積み上がる節では、
   見出しを左の柱に逃がして中身を右に流すと、その繰り返しが1か所で崩れる。
   ラベルが縦に立つ 1180px 以上でだけ。狭い画面では今までどおり縦に積む。 */
@media (min-width: 1180px) {
  /* .sec は飾り字のはみ出しを切るため overflow:hidden を持っている。
     祖先に overflow があると sticky の基準がその要素に変わり、まったく動かなくなる。
     ここだけ戻す。この節は表も全幅の図もないので、戻しても横には広がらない。
     柱そのものは align-self:start で中身の高さに留めること。stretch にすると
     柱が .inner と同じ高さになり、動く余地がなくなって sticky が意味を失う。 */
  .sec.split { overflow: visible; }
  .sec.split .inner {
    display: grid;
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
    column-gap: 5rem;
  }
  /* 左の柱は、右の中身が流れていくあいだ画面に留まる */
  .sec.split .sec-head {
    margin-bottom: 0;
    position: sticky;
    top: 8rem;
    align-self: start;
    height: max-content;
  }
  /* 飾り字は見出しの上（bottom:100%）に絶対配置されるので、
     20rem の柱に収まるよう少し抑える。FLOW は4文字なのではみ出さない */
  .sec.split .sec-head[data-en]::before { font-size: clamp(3rem, 5vw, 5rem); }
}

/* ============================================================
   内田鐵工所の型：写真を大きく使う／セクションを噛み合わせる
   ============================================================ */

/* ---- 施工実績：箱をやめて写真を主役に ----
   トップページの3列グリッドだけ。works.html の1列詳細（.works.detail）は
   施工前/施工後の対比を16:9で並べる作りなので、触らない。 */
.works:not(.detail) .work {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.works:not(.detail) .work .ph {
  border: 0;
  border-bottom: 0;
  aspect-ratio: 4 / 3;          /* 16:9 は横長すぎて小さく見えていた */
}
.works:not(.detail) .work-body { padding: 1.1rem 0 0; }
.works:not(.detail) .work h3 { font-size: 1.12rem; margin: .4rem 0 .7rem; }

/* ---- セクションの噛み合わせは見送り ----
   内田は「セクションの最後が大きな写真」のときに負マージンで次の帯に食い込ませている。
   この節は写真のあとに説明文とボタンが続くため、負マージンがボタンを引き上げて
   カードの文字に重なってしまう。全幅の写真帯を作らないかぎり成立しない。 */

/* ヘッダーのCTA。以前はHTMLにインラインで display:flex が書かれており、
   スマホ用の display:none を打ち消して横スクロールの原因になっていた。 */
.header-cta { display: flex; align-items: center; gap: 1rem; }
@media (max-width: 767px) { .header-cta { display: none; } }

/* ヘッダーは1行に990px必要（ロゴ＋ナビ6項目＋電話＋ボタン）。
   これまで767pxを境にバーガーへ畳んでいたため、768〜990pxではみ出して
   横スクロールが出ていた。境目を1023pxに引き上げる。 */
@media (max-width: 1023px) {
  .nav,
  .header-cta { display: none; }
  .burger { display: block; }
  .site-header { position: relative; }
  .nav.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: .4rem 1.2rem 1rem;
    z-index: 60;
  }
  .nav.open a { padding: .75rem 0; border-bottom: 1px solid var(--line); }
  .nav.open a:last-child { border-bottom: 0; }
}

/* ヒーローは1列に（右にあった高さの目盛りは2026年8月20日に削除） */
.hero-inner { grid-template-columns: 1fr; }

/* 「洗えるもの」は建物の外壁・屋根の1項目だけになった（2026年8月20日）。
   3列グリッドに1枚だけだと1/3幅で寂しいので、写真を左・文を右の横並びにする。 */
.cards.one { grid-template-columns: 1fr; }
.cards.one .card {
  display: grid;
  /* 2026年8月21日：写真を 30rem 固定から 1.15fr に。1項目しかない節なので、
     写真が主役として立つ幅まで広げ、右の余白の空きを詰めた */
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  /* 上下の 1fr が、写真の高さと文章の高さの差を吸収する。
     align-content だと行間に散らばって本文とリンクが離れてしまう。 */
  grid-template-rows: 1fr auto auto auto auto 1fr;
  column-gap: 3.2rem;
  row-gap: 0;
}
.cards.one .card .ph   { grid-column: 1; grid-row: 1 / 7; align-self: start; }
.cards.one .card h3    { grid-column: 2; grid-row: 2; margin-top: 0; }
.cards.one .card p     { grid-column: 2; grid-row: 3; max-width: none; }
/* 1項目だけなので写真を大きく。正方形だと縦に伸びすぎるので4:3にする */
.cards.one .card .ph   { aspect-ratio: 4 / 3; }
.cards.one .card .more { grid-column: 2; grid-row: 5; justify-self: start; }

/* 洗える対象。もとは本文に「病院、学校、商業施設、倉庫、公共施設。」と
   埋め込まれていた列挙を、拾い読みできるように項目として立てた（2026年8月21日）。
   文言は増やしていない。角は立てるというサイトの約束ごとに従い border-radius は付けない */
.target-list {
  grid-column: 2; grid-row: 4;
  display: flex; flex-wrap: wrap;
  gap: .55rem;
  list-style: none;
  margin: 1.3rem 0 1.5rem;
  padding: 0;
}
.target-list li {
  font-size: .8rem;
  letter-spacing: .1em;
  color: var(--ink-soft);
  border: 1px solid rgba(174, 149, 100, .45);
  padding: .4rem .95rem;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .cards.one .card { grid-template-columns: 1fr; grid-template-rows: auto; }
  .cards.one .card .ph   { grid-column: 1; grid-row: auto; }
  .cards.one .card h3    { grid-column: 1; grid-row: auto; margin-top: 1rem; }
  .cards.one .card p     { grid-column: 1; grid-row: auto; }
  .cards.one .card .more { grid-column: 1; grid-row: auto; }
  .target-list           { grid-column: 1; grid-row: auto; }
}

/* ---- CTA帯を全幅の写真で締める（2026年8月20日） ----
   ヒーローと同じ向きの暗幕をかけ、ページの頭と尻で呼応させる。
   background の一括指定は使わない（[data-img] が入れた画像を消してしまうため）。 */
.cta-band {
  position: relative;
  padding: 8rem 0 7.5rem;
  background-color: var(--deep-2);
  background-size: cover;
  background-position: center 74%;
  background-repeat: no-repeat;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(24,27,30,.93) 0%, rgba(28,31,34,.82) 46%, rgba(32,35,38,.44) 100%);
}
.cta-band .inner { position: relative; z-index: 1; }
.cta-band :is(h1, h2) { font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.6; }
.cta-band p { max-width: 34rem; }
.cta-actions { gap: 1.2rem; margin-top: 2.2rem; }
.cta-tel { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: .04em; }

@media (max-width: 767px) {
  .cta-band { padding: 4.6rem 0 4.2rem; background-position: center 70%; }
  .cta-band :is(h1, h2) { font-size: 1.4rem; }
}

/* ---- 比較表：ドローン洗浄の列を1本の帯として立てる（2026年8月20日） ---- */
table.compare { font-size: .92rem; }
table.compare th,
table.compare td { padding: 1.05rem 1.2rem; }
table.compare thead th { font-size: .8rem; letter-spacing: .1em; padding-bottom: .85rem; }
table.compare thead th:nth-child(2) {
  color: var(--accent-dark);
  background: var(--accent-pale);
  border-bottom-color: var(--accent);
  font-weight: 700;
}
/* 料金プランの表（.plans）は3つが対等なので、2列目の強調を打ち消す。
   上の nth-child(2) は「足場を組む場合と、どう違うか」でドローン洗浄の列を
   1本の帯に見せるための指定で、対等に並べる表では邪魔になる（2026年8月21日）。 */
table.compare.plans thead th:nth-child(2) {
  color: var(--ink-faint);
  background: transparent;
  border-bottom-color: var(--deep);
  font-weight: 700;
}
table.compare.plans tbody th { white-space: nowrap; }

/* 見出し列は控えめに。比較そのものに目がいくように */
table.compare tbody th { font-weight: 500; color: var(--ink-soft); width: 9rem; }
table.compare td.us { background: var(--accent-pale); color: var(--deep); font-weight: 700; }

/* ---- 流れ：番号を大きく打つ ---- */
.flow-item {
  grid-template-columns: 4.6rem 1fr;
  gap: .3rem 1.8rem;
  padding: 1.7rem 0;
}
.flow-item .num {
  font-family: var(--font-en);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  padding-top: .05rem;
  font-variant-numeric: tabular-nums;
}
.flow-item h3 { font-size: 1.12rem; font-weight: 500; letter-spacing: .04em; padding-top: 0; }
.flow-item p { font-size: .92rem; margin-top: .35rem; }

@media (max-width: 767px) {
  table.compare th, table.compare td { padding: .8rem .8rem; }
  .flow-item { grid-template-columns: 3rem 1fr; gap: .2rem 1rem; padding: 1.3rem 0; }
  .flow-item .num { font-size: 1.4rem; }
  .flow-item h3 { font-size: 1rem; }
}

/* ---- トップの施工実績：1件目を大きく、残り2件を並べる（2026年8月20日） ---- */
@media (min-width: 768px) {
  .works:not(.detail) { grid-template-columns: 1fr 1fr; gap: 2.2rem; }
  .works:not(.detail) .work:first-child { grid-column: 1 / -1; }
  .works:not(.detail) .work:first-child h3 { font-size: 1.32rem; }
  /* 1件目は施工前後の2枚組。横に2枚並ぶので1枚あたりは3:2に抑える */
  .works:not(.detail) .work:first-child .ba2 .cell { aspect-ratio: 3 / 2; }
}

/* 一覧への出口は右下に置く（2026年8月21日）。
   左端に置くと、直上の左カードの続きに見えて散らかっていた。
   写真とテキストが左から流れてくるので、出口は右で受ける。 */
.works-more { margin-top: 2.6rem; display: flex; justify-content: flex-end; }
@media (max-width: 767px) { .works-more { justify-content: flex-start; } }

/* ============================================================
   開幕の幕（2026年8月20日・トップページのみ）
   「読み込み画面」ではない。読み込みの完了を待たず、クリーム地の幕が
   上下に割れてヒーローを見せる。CSSのアニメーションだけで開くので、
   JSが動かない環境でも閉じたままにならない。
   ============================================================ */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;        /* 幕が出ている間もページを操作できる */
}
.curtain::before,
.curtain::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 50.5%;               /* 継ぎ目に隙間が出ないよう少し重ねる */
  background: var(--paper);
  animation: curtainOpen 1.0s cubic-bezier(.76, 0, .24, 1) .85s forwards;
}
.curtain::before { top: 0; --dir: -100%; }
.curtain::after  { bottom: 0; --dir: 100%; }
@keyframes curtainOpen { to { transform: translateY(var(--dir)); } }

.curtain-logo {
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 1;                  /* ::after（下half）より上に置く。でないと下半分が隠れる */
  width: 13rem;
  height: 2.6rem;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation:
    curtainLogoIn  .55s ease .12s forwards,
    curtainLogoOut .28s ease .85s forwards;
}
@keyframes curtainLogoIn  { from { opacity: 0; transform: translateY(.5rem); }
                            to   { opacity: 1; transform: none; } }
@keyframes curtainLogoOut { to   { opacity: 0; } }

/* 幕が開ききったら隠す。display は animation で扱えないブラウザがあるので visibility を使う */
.curtain { animation: curtainGone 0s linear 1.9s forwards; }
@keyframes curtainGone { to { visibility: hidden; } }

/* 幕を出さないときは幕ごと消す。判定は header.php の先頭スクリプトが行う */
.no-curtain .curtain { display: none; }

/* 幕が開くのを待ってからヒーローの文字を出す（幕なしのときより約1秒遅らせる）。
   幕を出さないときは、上の既定の遅さ（.20s〜1.50s）のまま動かす */
html:not(.no-curtain) .hero-en                 { animation-delay: 1.15s; }
html:not(.no-curtain) .hero h1 .l:nth-child(1) { animation-delay: 1.40s; }
html:not(.no-curtain) .hero h1 .l:nth-child(2) { animation-delay: 1.62s; }
html:not(.no-curtain) .hero p                  { animation-delay: 1.88s; }
html:not(.no-curtain) .hero-actions            { animation-delay: 2.05s; }
html:not(.no-curtain) .hero-scroll             { animation-delay: 2.25s; }

/* 動きを減らす設定のときは幕を出さず、ヒーローも従来どおり即座に見せる */
@media (prefers-reduced-motion: reduce) {
  .curtain { display: none; }
}

/* ============================================================
   スクロールで洗い上がる節（2026年8月20日）
   施工前の写真の上に施工後を重ね、スクロール量に応じて上から現していく。
   JSが動かないときは、ただの静止した比較（半分ずつ）として成立させる。
   ============================================================ */
.wash {
  background: var(--deep-2);
  color: #FFFFFF;
  /* overflow は指定しないこと。祖先に overflow:hidden があると
     position:sticky が効かなくなる（はみ出しは .wash-stage 側で処理している） */
}
.wash-runway { height: auto; }                 /* JSが動いたら .is-live で高さを与える */
.wash-sticky {
  padding: 6rem 1.5rem;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2.4rem;
}
.wash.is-live .wash-runway { height: 260vh; }
.wash.is-live .wash-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding: 2rem 1.5rem;
}

.wash-head { max-width: 46rem; text-align: center; }
.wash-en {
  display: block;
  font-family: var(--font-en);
  font-size: .72rem;
  letter-spacing: .26em;
  color: #CBB98D;
  margin-bottom: 1.1rem;
}
.wash-head h2 {
  font-size: clamp(1.35rem, 2.9vw, 2.1rem);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .06em;
  margin: 0;
}
.wash-head p {
  margin: 1rem 0 0;
  font-size: .9rem;
  color: #C9C3B8;
  line-height: 2;
}

.wash-stage {
  --p: .5;                                     /* JSが無いときは半分だけ洗った状態で見せる */
  position: relative;
  width: min(94vw, 74rem);
  height: min(58svh, 32rem);
  overflow: hidden;
}
.wash-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 58%;
  background-repeat: no-repeat;
}
/* 上から順に「洗い上がった側」を現していく */
.wash-clean { clip-path: inset(0 0 calc((1 - var(--p)) * 100%) 0); }

/* 水が走っている境目 */
.wash-edge {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--p) * 100%);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.92) 18%, rgba(255,255,255,.92) 82%, transparent);
  box-shadow: 0 0 18px 3px rgba(255,255,255,.35);
  opacity: calc(1 - max(0, (var(--p) - .92) * 12));   /* 洗い終わったら消す */
  pointer-events: none;
}

.wash-tag {
  position: absolute;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  background: rgba(19,22,25,.82);
  color: #FFFFFF;
  padding: .2rem .6rem;
  pointer-events: none;
}
.wash-tag.t-before { left: .8rem; bottom: .8rem; opacity: calc(1 - var(--p)); }
.wash-tag.t-after  { left: .8rem; top: .8rem;    opacity: var(--p); }

@media (max-width: 767px) {
  .wash.is-live .wash-runway { height: 220vh; }
  .wash-sticky { gap: 1.6rem; padding: 1.5rem 1.1rem; }
  .wash-stage { width: 92vw; height: min(50svh, 20rem); }
  .wash-head p { font-size: .84rem; }
}

/* 動きを減らす設定：貼り付かせず、半分ずつの静止した比較にする */
@media (prefers-reduced-motion: reduce) {
  .wash.is-live .wash-runway { height: auto; }
  .wash.is-live .wash-sticky { position: static; height: auto; padding: 6rem 1.5rem; }
  .wash-stage { --p: .5 !important; }
  .wash-edge { opacity: 1; }
}

/* ============================================================
   文字組みの手当て（2026年8月20日）
   ============================================================ */

/* 小見出しの偽ボールドをやめる。
   Shippori Mincho B1 は 400/500/600/700 しか読み込んでいないのに
   font-weight:900 を指定していたため、ブラウザが太らせて合成していた。 */
.site :is(h3) { font-weight: 600; }

/* この会社の主張の中心なので、ここだけ見出しを大きく取る。
   全部が2.15remで並んでいて、強弱がまったく無かった。 */
.sec-head[data-en="WHY"] h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.6;
}

/* 数字の見せ場。目盛りが「謎」だったのは、数字だけあって
   何の数字か書いていなかったから。必ずラベルを添える。 */
.figure-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 .5rem;
  margin: 0 0 3.2rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.figure-line .n {
  font-family: var(--font-en);
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.figure-line .u {
  font-family: var(--font-en);
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  color: var(--accent);
}
.figure-line .cap {
  font-size: .88rem;
  color: var(--ink-soft);
  line-height: 1.9;
  margin-left: .8rem;
  max-width: 22rem;
}

@media (max-width: 767px) {
  .figure-line { margin-bottom: 2.2rem; padding-bottom: 1.2rem; }
  .figure-line .cap { margin-left: 0; flex-basis: 100%; margin-top: .4rem; }
}

/* ============================================================
   ⑥ 青の整理（2026年8月20日）
   #2068A3 は汎用のWebリンク色で、クリーム＋金茶＋チャコールの中で
   ここだけ別のデザインシステムから借りたように見えていた。
   サイトは既に #22414F（全ページの theme-color・図解の色）を持っているので、
   ボタンはチャコール、リンクは図解と同じ石板色に寄せる。
   ============================================================ */
.btn-primary { background: var(--primary); border-color: var(--primary); color: #FFFFFF; }
.btn-primary:hover { background: #15181B; border-color: #15181B; }

/* 濃い写真の上では反転させる。チャコールのままだと沈んで見えない */
.cta-band .btn-primary { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.cta-band .btn-primary:hover { background: #FFFFFF; border-color: #FFFFFF; }

.card .more,
.form-agree a { color: var(--link); }
.panel { border-top-color: var(--link); }

/* ============================================================
   ⑦ 触ったときの反応
   :hover が11箇所、transition が6箇所しかなく、手触りが無かった。
   ============================================================ */

/* 施工実績：写真がゆっくり寄る */
.works:not(.detail) .ba2 { overflow: hidden; }
.works:not(.detail) .ba2 .cell { transition: transform .8s cubic-bezier(.22, .61, .36, 1); }
.works:not(.detail) .work:hover .ba2 .cell { transform: scale(1.04); }
.works:not(.detail) .work h3 { transition: color .3s ease; }
.works:not(.detail) .work:hover h3 { color: var(--accent-dark); }

/* リンクの下線が左から伸びる */
.card .more,
.foot-links a {
  position: relative;
  display: inline-block;
}
.card .more::after,
.foot-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.22rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .38s cubic-bezier(.22, .61, .36, 1);
}
.card .more:hover::after,
.foot-links a:hover::after { transform: scaleX(1); }

/* ボタンがわずかに持ち上がる */
.btn { transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .25s ease; }
.btn:hover { transform: translateY(-1px); }

/* 動きを減らす設定のときは、位置も大きさも変えない */
@media (prefers-reduced-motion: reduce) {
  .works:not(.detail) .work:hover .ba2 .cell { transform: none; }
  .btn:hover { transform: none; }
  .card .more::after,
  .foot-links a::after { transition: none; }
}


/* =========================================================
   WordPress 化にあたって足したぶん
   ここから下は静的サイトには無かった記述
   ========================================================= */

/* 記事本文まわりの読み幅。1行が長くなりすぎないように絞る */
.inner-narrow { max-width: 46rem; }

/* 投稿エディタが吐くHTMLの体裁 */
.entry-content { line-height: 1.9; }
.entry-content > * + * { margin-top: 1.2rem; }
.entry-content h2 {
  font-family: "Shippori Mincho B1", serif;
  font-size: 1.35rem;
  margin-top: 2.4rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--line);
}
.entry-content h3 { font-size: 1.1rem; margin-top: 1.8rem; }
.entry-content ul,
.entry-content ol { padding-left: 1.4rem; }
.entry-content li + li { margin-top: .4rem; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content blockquote {
  border-left: 3px solid var(--line);
  padding-left: 1.1rem;
  color: var(--ink-soft);
}
.entry-content table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.entry-content th,
.entry-content td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; }
.entry-content a { color: var(--link); }

/* 一覧の見出しはリンクだが、色と下線は本文のままにする */
.news-item h3 a { color: inherit; text-decoration: none; }
.news-item h3 a:hover { text-decoration: underline; }

/* ページ送り */
.pagination { margin-top: 2.4rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-block;
  min-width: 2.2rem;
  padding: .45rem .6rem;
  border: 1px solid var(--line);
  text-align: center;
  font-size: .9rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--deep); color: var(--paper); border-color: var(--deep); }
.pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* WordPress が標準で使うクラス */
.alignleft { float: left; margin: .3rem 1.4rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.4rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { max-width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption {
  font-size: .82rem;
  color: var(--ink-faint);
  margin-top: .4rem;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   お問い合わせフォーム：送信結果とエラー表示（2026年8月24日・WordPress化で追加）
   ============================================================ */

/* 機械よけの欄。画面にも読み上げにも出さないが、display:none だと
   埋めてこないボットがいるので、位置で画面外へ逃がしている */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-notice.done {
  border-color: #4E8C63;
  background: #EEF5F0;
}
.form-notice.done a { color: var(--link); }

.form-notice.error {
  border-color: #C0673A;
  background: #FDF0EA;
}

/* 不備のある欄は枠を朱に */
.field.is-error input,
.field.is-error textarea,
.field.is-error select {
  border-color: #C0673A;
  background: #FEF7F4;
}

.field .err {
  display: block;
  font-size: .78rem;
  color: #A9502A;
  line-height: 1.7;
}
