/*
Theme Name: Bennavi Crown
Theme URI: https://crown.bennavi.com/
Author: Asiro Inc.
Author URI: https://asiro.co.jp/
Description: ベンナビ crown サービス紹介ページ用 WordPress テーマ。3カラム構成（固定左ナビ・中央375pxスクロール・固定右ステートメント）、ティール基調のブランドカラーと明朝体見出しによるプレミアム表現。Hero〜FAQ〜最終CTAまでの12セクションを front-page.php に実装。
Version: 1.1.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: bennavi-crown.com
*/

/* =========================================================================
   ベンナビ crown — Service Introduction Page
   DESIGN SYSTEM  (derived from the source PDF brand deck)
   -------------------------------------------------------------------------
   COLOR  · Petrol-teal brand sampled directly from the deck:
            bright #288EA7 · primary #20768D · deep #14525E · ink-teal #0C333B
            near-black #101115 · navy #1B2A44
            warm paper #FBFAF6 / #F3EEE4 · hairline rgba(16,17,21,.12)
            premium gold accent #B8975A ("crown" tier — used sparingly)
   TYPE   · Headings : Zen Old Mincho (上品な明朝, crown feel)
            Body     : Noto Sans JP (信頼感・可読性)
            Latin/label : Cormorant Garamond (elegant serif, the "crown" mark)
            Small caps label : Noto Sans JP, tracked
   LAYOUT · 3-column "site-in-a-window" after the SANU reference:
            fixed LEFT rail (logo + anchor nav + 資料CTA),
            centered 375px SCROLLING content column (the page itself),
            fixed RIGHT rail (brand statement), over a fixed full-bleed bg.
   RHYTHM · 8px base. Section padding 40/28. Radius 4 (cards) / 999 (pills).
   ========================================================================= */

:root{
  --teal-bright:#288EA7;
  --teal:#20768D;
  --teal-deep:#14525E;
  --teal-ink:#0C333B;
  --navy:#1B2A44;
  --ink:#101115;
  --paper:#FBFAF6;
  --paper-2:#F3EEE4;
  --gold:#B8975A;
  --line:rgba(16,17,21,.12);
  --line-soft:rgba(16,17,21,.07);
  --muted:#5E6B6E;

  --col-w:375px;
  --head-serif:"Zen Old Mincho",serif;
  --body:"Noto Sans JP",sans-serif;
  --latin:"Cormorant Garamond",serif;

  --shadow-col:0 30px 80px -20px rgba(8,30,36,.55), 0 4px 18px rgba(8,30,36,.25);
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:var(--body);
  color:var(--ink);
  background:#0C2228;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  line-height:1.8;
}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}

/* ---------- fixed full-bleed background ---------- */
.bg{
  position:fixed; inset:0; z-index:0;
  background:
    linear-gradient(180deg, rgba(10,42,49,.55), rgba(8,30,36,.72)),
    linear-gradient(120deg, rgba(40,142,167,.30), rgba(20,82,94,.55)),
    var(--bg-img, var(--bg-default)) center/cover no-repeat fixed;
}
.bg::after{
  content:""; position:absolute; inset:0;
  background:radial-gradient(120% 90% at 50% 0%, transparent 40%, rgba(6,24,29,.55) 100%);
}

/* ===========================================================
   CENTER COLUMN — the 375px scrolling "page"
   =========================================================== */
.phone{
  position:relative; z-index:3;
  width:var(--col-w);
  margin:0 auto;
  background:var(--paper);
  box-shadow:var(--shadow-col);
  overflow:hidden;
}
.phone section{ position:relative; }

/* shared section bits */
.sec{ padding:46px 26px; }
.sec--tight{ padding:34px 26px; }
.sec--teal{ background:var(--teal-ink); color:#EAF3F4; }
.sec--paper2{ background:var(--paper-2); }

.eyebrow{
  font-family:var(--latin);
  font-size:13px; letter-spacing:.32em; text-transform:uppercase;
  color:var(--teal); font-weight:600;
  display:flex; align-items:center; gap:10px; margin-bottom:14px;
}
.eyebrow::before{ content:""; width:22px; height:1px; background:var(--gold); }
.sec--teal .eyebrow{ color:#7FD0DE; }
.sec--teal .eyebrow::before{ background:var(--gold); }

.h2{
  font-family:var(--head-serif);
  font-weight:600; font-size:25px; line-height:1.45;
  letter-spacing:.01em; text-wrap:balance;
}
.h2 em{ font-style:normal; color:var(--teal); }
.sec--teal .h2 em{ color:#6FC8D8; }
.lead{ margin-top:14px; font-size:13.5px; color:var(--muted); line-height:1.95; }
.sec--teal .lead{ color:rgba(234,243,244,.78); }

/* point bullets (要点) */
.points{
  margin-top:18px; padding:16px 16px 16px 18px;
  background:#fff; border:1px solid var(--line-soft);
  border-left:3px solid var(--gold); border-radius:3px;
  box-shadow:0 1px 0 rgba(16,17,21,.02);
}
.points .pt-h{ font-size:11px; letter-spacing:.18em; color:var(--gold); font-weight:700; margin-bottom:8px; }
.points ul{ list-style:none; display:flex; flex-direction:column; gap:7px; }
.points li{ position:relative; padding-left:16px; font-size:12.5px; color:#33424a; line-height:1.7; }
.points li::before{ content:""; position:absolute; left:0; top:9px; width:5px; height:5px; border-radius:50%; background:var(--teal); }

/* ===========================================================
   HERO
   =========================================================== */
.hero{ position:relative; color:#fff; min-height:560px; display:flex; flex-direction:column; }
.hero__img{ position:absolute; inset:0; background:var(--hero-img,var(--hero-default)) center/cover no-repeat; }
.hero__scrim{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(12,51,59,.42) 0%, rgba(12,51,59,.18) 38%, rgba(8,30,36,.86) 86%, rgba(8,30,36,.96) 100%),
    linear-gradient(115deg, rgba(20,82,94,.55), rgba(16,17,21,.15));
}
.hero__top{ position:relative; padding:24px 26px 0; }
.hero__logo{ display:flex; flex-direction:column; line-height:1; }
.hero__logo b{ font-family:var(--head-serif); font-weight:700; font-size:25px; letter-spacing:.06em; }
.hero__logo span{ font-family:var(--latin); font-size:12px; letter-spacing:.34em; margin-top:5px; padding-left:3px; color:#CFE6EA; font-weight:500; }
.hero__body{ position:relative; margin-top:auto; padding:26px; }
.hero__kicker{ font-family:var(--latin); font-size:14px; letter-spacing:.26em; text-transform:uppercase; color:#9FDCE8; margin-bottom:14px; }
.hero h1{
  font-family:var(--head-serif); font-weight:700; font-size:30px; line-height:1.5;
  letter-spacing:.01em; text-shadow:0 2px 24px rgba(0,0,0,.35);
}
.hero h1 .em{ color:#79CEDD; }
.hero__sub{ margin-top:16px; font-size:13.5px; line-height:1.9; color:rgba(255,255,255,.9); }
.hero__sub b{ color:#fff; font-weight:700; }
.hero__price{ margin-top:6px; font-size:12.5px; color:#BFE0E6; }

/* ===========================================================
   BUTTONS
   =========================================================== */
.cta-row{ display:flex; flex-direction:column; gap:11px; margin-top:22px; }
.btn{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  width:100%; padding:0; height:58px;
  border:none; cursor:pointer; border-radius:3px; overflow:hidden;
  font-family:var(--body); font-weight:700; font-size:15px; letter-spacing:.04em;
  transition:transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s;
  text-decoration:none;
}
.btn__badge{ flex:0 0 auto; align-self:stretch; display:flex; align-items:center; padding:0 16px;
  background:var(--ink); color:#fff; font-size:12px; letter-spacing:.08em; font-weight:700; }
.btn__txt{ flex:1; text-align:center; }
.btn__arr{ flex:0 0 auto; padding-right:18px; font-family:var(--latin); font-size:20px; transition:transform .25s; }
.btn--primary{ background:var(--teal); color:#fff; box-shadow:0 12px 30px -10px rgba(20,118,141,.7); }
.btn--gold{ background:var(--gold); color:#2a2113; }
.btn--gold .btn__badge{ background:#2a2113; }
.btn--ghost{ background:transparent; border:1.5px solid currentColor; color:var(--teal); height:52px; justify-content:center; }
.btn--ghost .btn__arr{ padding-right:0; margin-left:8px; }
.btn:hover{ transform:translateY(-2px); }
.btn--primary:hover{ box-shadow:0 18px 40px -10px rgba(20,118,141,.85); }
.btn:hover .btn__arr{ transform:translateX(4px); }

/* ===========================================================
   悩み (problems)
   =========================================================== */
.worry{ display:flex; flex-direction:column; gap:10px; margin-top:20px; }
.worry__item{
  display:flex; gap:13px; align-items:flex-start;
  background:#fff; border:1px solid var(--line-soft); border-radius:4px; padding:15px 15px;
}
.worry__ic{ flex:0 0 38px; height:38px; border-radius:50%; display:grid; place-items:center; background:var(--paper-2); color:var(--teal); }
.worry__ic svg{ width:19px; height:19px; }
.worry__t{ font-size:13.5px; font-weight:700; color:var(--ink); line-height:1.55; }
.worry__d{ font-size:11.5px; color:var(--muted); margin-top:3px; line-height:1.65; }

/* ===========================================================
   特徴 (3 features)
   =========================================================== */
.feat{ display:flex; flex-direction:column; gap:12px; margin-top:22px; }
.feat__card{
  position:relative; background:#fff; border:1px solid var(--line-soft); border-radius:4px;
  padding:20px 18px 20px 20px; display:flex; gap:16px; align-items:center;
  box-shadow:0 1px 0 rgba(16,17,21,.02);
}
.feat__no{ flex:0 0 auto; font-family:var(--latin); font-size:34px; font-weight:600; color:var(--gold); line-height:1; width:34px; }
.feat__big{ font-family:var(--head-serif); font-weight:700; font-size:15px; color:var(--ink); }
.feat__big b{ color:var(--teal); font-size:25px; }
.feat__txt{ font-size:11.5px; color:var(--muted); margin-top:5px; line-height:1.65; }
.note{ margin-top:14px; font-size:11px; color:var(--muted); line-height:1.7; padding:11px 13px; background:rgba(184,151,90,.1); border-radius:3px; }
.note b{ color:var(--teal-deep); }

/* ===========================================================
   数字 (stats) — on teal
   =========================================================== */
.stats{ display:grid; grid-template-columns:1fr 1fr; gap:1px; margin-top:22px; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.14); border-radius:5px; overflow:hidden; }
.stat{ background:var(--teal-ink); padding:22px 14px; text-align:center; }
.stat__n{ font-family:var(--latin); font-weight:600; font-size:36px; line-height:1; color:#fff; letter-spacing:-.01em; }
.stat__n .u{ font-family:var(--head-serif); font-size:15px; font-weight:600; margin-left:2px; }
.stat__l{ font-size:11px; color:#9FCBD3; margin-top:9px; letter-spacing:.05em; }
.stat__sub{ font-size:9px; color:rgba(159,203,211,.7); margin-top:3px; }

/* ===========================================================
   対応分野 (8 fields accordion)
   =========================================================== */
.fields{ margin-top:20px; border-top:1px solid var(--line); }
.field{ border-bottom:1px solid var(--line); }
.field__head{ width:100%; background:none; border:none; cursor:pointer; display:flex; align-items:center; gap:13px; padding:15px 4px; text-align:left; font-family:var(--body); }
.field__ic{ flex:0 0 30px; height:30px; color:var(--teal); display:grid; place-items:center; }
.field__ic svg{ width:21px; height:21px; }
.field__name{ flex:1; font-size:14.5px; font-weight:700; color:var(--ink); font-family:var(--head-serif); }
.field__plus{ flex:0 0 auto; width:20px; height:20px; position:relative; }
.field__plus::before,.field__plus::after{ content:""; position:absolute; background:var(--teal); transition:transform .3s; }
.field__plus::before{ left:0; top:9px; width:20px; height:2px; }
.field__plus::after{ left:9px; top:0; width:2px; height:20px; }
.field[aria-expanded="true"] .field__plus::after{ transform:scaleY(0); }
.field__body{ overflow:hidden; max-height:0; transition:max-height .4s ease; }
.field__inner{ padding:0 4px 18px 47px; }
.field__inner li{ list-style:none; position:relative; padding-left:15px; font-size:12px; color:#3a474d; line-height:1.7; margin-bottom:6px; }
.field__inner li::before{ content:""; position:absolute; left:0; top:9px; width:5px; height:1.5px; background:var(--gold); }
.field__inner .mini{ margin-top:8px; font-size:10.5px; color:var(--muted); background:var(--paper-2); padding:8px 10px; border-radius:3px; }

/* ===========================================================
   弁護士 (lawyers)
   =========================================================== */
.lawyers{ display:flex; flex-direction:column; gap:14px; margin-top:20px; }
.law{ display:flex; gap:14px; background:#fff; border:1px solid var(--line-soft); border-radius:4px; overflow:hidden; }
.law__ph{ flex:0 0 96px; align-self:stretch; background:#ddd center/cover no-repeat; min-height:128px; }
.law__info{ padding:13px 13px 13px 0; flex:1; }
.law__name{ font-family:var(--head-serif); font-weight:700; font-size:16px; }
.law__org{ font-size:10.5px; color:var(--teal); letter-spacing:.04em; margin-top:2px; }
.law__field{ font-size:11px; color:var(--muted); margin-top:8px; line-height:1.6; }
.law__tags{ display:flex; flex-wrap:wrap; gap:5px; margin-top:9px; }
.tag{ font-size:9.5px; letter-spacing:.04em; color:var(--teal-deep); background:var(--paper-2); border:1px solid var(--line-soft); padding:3px 7px; border-radius:999px; }

/* ===========================================================
   ステップ (steps)
   =========================================================== */
.steps{ display:flex; flex-direction:column; gap:26px; margin-top:22px; }
.step{ position:relative; }
.step__bar{ display:flex; flex-direction:column; gap:10px; margin-bottom:14px; }
.step__no{
  font-family:var(--latin);
  font-size:13px; letter-spacing:.32em; text-transform:uppercase;
  color:var(--teal); font-weight:600;
  display:flex; align-items:center; gap:10px;
}
.step__no::before{ content:""; width:22px; height:1px; background:var(--gold); flex:0 0 22px; }
.step__no b{
  font-family:var(--latin); font-size:13px; letter-spacing:.18em;
  color:var(--teal); font-weight:700; display:inline; margin-left:4px;
}
.step__t{
  font-family:var(--head-serif); font-weight:600; font-size:22px;
  line-height:1.45; letter-spacing:.01em; color:var(--ink);
  text-wrap:balance;
}
.step__d{ font-size:12px; color:var(--muted); line-height:1.8; }
.step__shot{ margin-top:12px; border:1px solid var(--line); border-radius:5px; overflow:hidden; background:#fff; box-shadow:0 8px 24px -14px rgba(8,30,36,.4); }
.step__shot img{ width:100%; }
.step__conn{ height:18px; width:1px; background:var(--line); margin:2px 0 0 8px; }

/* ===========================================================
   料金比較 (pricing table)
   =========================================================== */
.ptab{ margin-top:22px; border:1px solid var(--line); border-radius:6px; overflow:hidden; font-size:11.5px; }
.ptab__row{ display:grid; grid-template-columns:1.05fr 1.25fr .9fr .9fr; }
.ptab__row + .ptab__row{ border-top:1px solid var(--line); }
.ptab__cell{ padding:11px 8px; display:flex; flex-direction:column; gap:2px; align-items:center; justify-content:center; text-align:center; line-height:1.4; border-left:1px solid var(--line-soft); }
.ptab__cell:first-child{ border-left:none; align-items:flex-start; text-align:left; font-weight:700; color:var(--ink); background:var(--paper-2); }
.ptab__row--head .ptab__cell{ font-weight:700; font-size:11px; background:#fff; color:var(--muted); }
.ptab__row--head .ptab__cell.is-crown{ background:var(--teal); color:#fff; font-family:var(--head-serif); font-size:12.5px; letter-spacing:.02em; }
.ptab__cell.is-crown{ background:rgba(32,118,141,.07); color:var(--teal-deep); font-weight:700; }
.ptab__cell.is-crown b{ color:var(--teal); }
.ptab__cell .x{ color:#b9b9b9; }

/* ===========================================================
   注意 (notes)
   =========================================================== */
.cautions{ margin-top:20px; display:flex; flex-direction:column; gap:11px; }
.caution{ background:#fff; border:1px solid var(--line-soft); border-left:3px solid var(--teal); border-radius:3px; padding:13px 15px; }
.caution__t{ font-size:12.5px; font-weight:700; color:var(--teal-deep); margin-bottom:4px; }
.caution__d{ font-size:11.5px; color:var(--muted); line-height:1.7; }

/* ===========================================================
   運営会社 (company)
   =========================================================== */
.company{ margin-top:20px; }
.company__photo{ width:100%; border-radius:5px; overflow:hidden; margin-bottom:16px; box-shadow:0 12px 30px -18px rgba(8,30,36,.5); }
.ctable{ width:100%; border-collapse:collapse; font-size:11.5px; }
.ctable th,.ctable td{ text-align:left; padding:10px 4px; border-bottom:1px solid var(--line-soft); vertical-align:top; }
.ctable th{ width:88px; color:var(--teal); font-weight:700; white-space:nowrap; }
.ctable td{ color:#33424a; line-height:1.6; }

/* ===========================================================
   FAQ
   =========================================================== */
.faq{ margin-top:20px; }
.qa{ border-bottom:1px solid var(--line); }
.qa__q{ width:100%; background:none; border:none; cursor:pointer; display:flex; gap:11px; align-items:flex-start; padding:15px 2px; text-align:left; font-family:var(--body); }
.qa__qmk{ flex:0 0 auto; font-family:var(--latin); font-size:18px; font-weight:700; color:var(--gold); line-height:1.4; }
.qa__qt{ flex:1; font-size:13px; font-weight:700; color:var(--ink); line-height:1.6; }
.qa__chev{ flex:0 0 auto; width:14px; height:14px; margin-top:4px; border-right:2px solid var(--teal); border-bottom:2px solid var(--teal); transform:rotate(45deg); transition:transform .3s; }
.qa[aria-expanded="true"] .qa__chev{ transform:rotate(-135deg); }
.qa__body{ overflow:hidden; max-height:0; transition:max-height .4s ease; }
.qa__inner{ display:flex; gap:11px; padding:0 2px 16px; }
.qa__amk{ flex:0 0 auto; font-family:var(--latin); font-size:18px; font-weight:700; color:var(--teal); }
.qa__at{ flex:1; font-size:12px; color:#3a474d; line-height:1.85; }

/* ===========================================================
   最終CTA
   =========================================================== */
.final{ position:relative; color:#fff; padding:48px 26px; background:var(--teal-ink); overflow:hidden; }
.final::before{ content:""; position:absolute; inset:0; background:linear-gradient(135deg, rgba(40,142,167,.35), transparent 60%); }
.final__crown{ position:relative; width:38px; height:38px; color:var(--gold); margin-bottom:18px; }
.final h2{ position:relative; font-family:var(--head-serif); font-weight:700; font-size:24px; line-height:1.5; }
.final p{ position:relative; margin-top:14px; font-size:13px; color:rgba(234,243,244,.82); line-height:1.9; }
.final .cta-row{ position:relative; z-index:1; }

/* footer */
.foot{ background:var(--ink); color:rgba(255,255,255,.55); padding:26px; font-size:10.5px; line-height:1.8; }
.foot b{ color:#fff; font-family:var(--head-serif); font-weight:700; font-size:15px; letter-spacing:.05em; display:block; margin-bottom:8px; }
.foot .latin{ font-family:var(--latin); letter-spacing:.2em; }

/* ===========================================================
   SIDE RAILS (fixed)
   =========================================================== */
.side{ position:fixed; top:0; height:100vh; z-index:2; display:flex; flex-direction:column; justify-content:center;
  width:clamp(280px, calc((100vw - var(--col-w))/2), 460px); padding:48px clamp(28px,4vw,64px); color:#fff; }
.side-left{ left:0; align-items:flex-start; }
.side-right{ right:0; align-items:flex-start; text-align:left; }

.rail-logo{ display:flex; flex-direction:column; line-height:1; margin-bottom:54px; }
.rail-logo b{ font-family:var(--head-serif); font-weight:700; font-size:30px; letter-spacing:.05em; }
.rail-logo span{ font-family:var(--latin); font-size:1.0em; letter-spacing:.34em; margin-top:7px; padding-left:4px; color:#CFE6EA; font-weight:500; }

/* OEM: image logo (falls back to text mark when no image is set) */
.rail-logo img{ width:auto; max-height:52px; align-self:flex-start; }
.hero__logo img{ width:auto; max-height:44px; align-self:flex-start; }

.nav{ display:flex; flex-direction:column; gap:3px; }
.nav a{ display:flex; align-items:baseline; gap:11px; padding:8px 0; opacity:.6; transition:opacity .25s, transform .25s; white-space:nowrap; }
.nav a:hover{ opacity:1; transform:translateX(5px); }
.nav a.is-active{ opacity:1; }
.nav__mk{ flex:0 0 auto; width:18px; height:1px; background:rgba(255,255,255,.4); align-self:center; transition:width .25s,background .25s; }
.nav a:hover .nav__mk,.nav a.is-active .nav__mk{ width:26px; background:var(--gold); }
.nav__en{ font-family:var(--latin); font-size:21px; font-weight:600; letter-spacing:.03em; }
.nav__jp{ font-size:11px; letter-spacing:.06em; color:rgba(255,255,255,.62); }
.nav__jp::before{ content:"["; margin-right:4px; opacity:.5; }
.nav__jp::after{ content:"]"; margin-left:4px; opacity:.5; }

.rail-cta{ margin-top:46px; max-width:300px; }
.rail-cta__lead{ font-size:12.5px; line-height:1.8; color:rgba(255,255,255,.9); margin-bottom:14px; }
.rail-cta__lead b{ color:#fff; }
.rail-cta__doc{ display:flex; gap:10px; margin-bottom:16px; }
.rail-cta__doc .docpic{ width:120px; height:84px; border-radius:3px; background:#fff center/cover; box-shadow:0 10px 24px -12px rgba(0,0,0,.6); }

/* right rail brand statement */
.rail-state__en{ font-family:var(--latin); font-size:46px; font-weight:600; line-height:1.05; letter-spacing:.01em; }
.rail-state__en em{ font-style:italic; color:#8FD6E3; }
.rail-state__rule{ width:40px; height:1px; background:var(--gold); margin:22px 0; }
.rail-state__jp{ font-family:var(--head-serif); font-size:15px; line-height:2; letter-spacing:.06em; color:rgba(255,255,255,.9); }
.rail-state__crown{ width:34px; height:34px; color:var(--gold); margin-bottom:30px; }

/* scroll cue under left cta */
.scrollcue{ margin-top:22px; font-family:var(--latin); font-size:11px; letter-spacing:.2em; color:rgba(255,255,255,.55); display:flex; align-items:center; gap:8px; }
.scrollcue::after{ content:"↓"; animation:bob 1.8s ease-in-out infinite; }
@keyframes bob{ 0%,100%{transform:translateY(0)} 50%{transform:translateY(4px)} }

/* ---------- reveal animation ---------- */
@media (prefers-reduced-motion: no-preference){
  .reveal{ opacity:0; transform:translateY(18px); transition:opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
  .reveal.in{ opacity:1; transform:none; }
}

/* ---------- responsive: hide rails on narrow ---------- */
@media (max-width:1180px){
  .side{ display:none; }
  .phone{ box-shadow:0 0 0 1px rgba(255,255,255,.06); }
}
@media (max-width:440px){
  :root{ --col-w:100vw; }
  .phone{ box-shadow:none; }
}

/* hide WordPress admin bar offset on the immersive layout */
html.bcrown-immersive{ margin-top:0 !important; }
body.admin-bar .side{ top:32px; height:calc(100vh - 32px); }
@media (max-width:782px){
  body.admin-bar .side{ top:46px; height:calc(100vh - 46px); }
}
