/* ==========================================================================
   Office Reo — 共通スタイル
   地はクリーム。アクセントはテラコッタ1色。装飾にブルーとグリーン。
   クリーム地に白ボックスは置かない（トーン面かアクセントの淡いウォッシュ）。
   ========================================================================== */

:root {
  --canvas:        #faf9f5;
  --surface-soft:  #f0ede6;
  --surface-card:  #e8e6dc;
  --hairline:      #e8e6dc;
  --rule-strong:   #d8d5cb;

  --ink:           #141413;
  --body:          #35322e;
  --muted:         #46433d;
  --faint:         #7b776d;
  --on-dark:       #faf9f5;

  --accent:        #d97757;
  --accent-deep:   #c26344;
  --accent-tint:   #f7e4db;
  --blue:          #6a9bcc;
  --blue-tint:     #e6eff8;
  --green:         #788c5d;
  --green-tint:    #eaeee1;

  --edge:          64px;   /* 画面の端からの最低余白 */
  --content:       1440px; /* 中身の最大幅 */
  /* 画面が広いほど左右を広げ、中身は --content に収める。
     ヘッダー・メインビジュアル・本文がすべて同じ位置でそろう。 */
  --gut:           max(var(--edge), calc((100vw - var(--content)) / 2 + var(--edge)));
  --band:          72px;   /* セクションの上下 */

  /* ふわっと動かすときの緩急。これが未定義だと transition の宣言ごと無効になり、
     カードのホバーや数字のせり上がりが effectively 効かなくなっていた */
  --ease-rv:       cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

/* Noto Sans JP（Webフォント）の「・」は文字の下寄りに描かれるため、
   その1文字だけシステムフォントのグリフで上書きして中央に寄せる */
@font-face {
  font-family: 'Noto Sans JP';
  src: local('Hiragino Kaku Gothic ProN'), local('Hiragino Sans'), local('YuGothic');
  unicode-range: U+30FB;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-weight: 500;          /* 細いと年配の方には読みづらい */
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; transition: color .12s cubic-bezier(.2,.7,.2,1); }
a:hover { color: var(--accent-deep); }

img { max-width: 100%; height: auto; display: block; }
video, iframe, embed, object { max-width: 100%; }
video { height: auto; }

.en { font-family: 'Poppins', Arial, sans-serif; }

.wrap { width: 100%; }

/* 背景・罫線は画面の端まで。中身は --gut で内側にそろえる */

/* ── ヘッダー ───────────────────────────────── */
.hd {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 18px var(--gut);
  border-bottom: 1px solid var(--hairline);
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 245, .92);
  backdrop-filter: blur(8px);
}
.hd__mark { display: inline-flex; align-items: center; font-size: 19px; font-weight: 600; letter-spacing: .02em; color: var(--ink); }
.hd__mark img { display: block; height: 44px; width: auto; }
@media (max-width: 720px) { .hd__mark img { height: 36px; } }
.hd__mark span { color: var(--accent); }
.hd__nav { display: flex; align-items: center; gap: 26px; font-size: 16px; font-weight: 600; }
.hd__nav a { color: var(--ink); }
.hd__nav a:hover { color: var(--accent); }
.hd__cta {
  background: var(--accent); color: #fff !important;
  padding: 11px 24px; border-radius: 2px; font-size: 15px; font-weight: 700;
}
.hd__cta:hover { background: var(--ink); color: #fff !important; }
.hd__burger { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }

/* ── ヒーロー ───────────────────────────────── */
.hero { border-bottom: 1px solid var(--hairline); }
.hero__top { position: relative; overflow: hidden; }
.hero__bg {
  position: absolute; inset: -3% 0 0 0; display: flex; flex-direction: column;
  justify-content: space-between; gap: 0; pointer-events: none; user-select: none;
}
.hero__bg div {
  white-space: nowrap; font-size: clamp(44px, 6.4vw, 116px); font-weight: 700;
  line-height: 1.14; letter-spacing: -.03em;
}
.hero__veil {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg,
    rgba(250,249,245,.97) 0%, rgba(250,249,245,.93) 46%,
    rgba(250,249,245,.55) 72%, rgba(250,249,245,.35) 100%);
}
.hero__in { position: relative; padding: clamp(56px, 7vw, 104px) var(--gut) clamp(48px, 6vw, 88px); }
.hero h1 {
  margin: 0 0 30px; font-size: clamp(30px, 4.2vw, 60px);
  font-weight: 700; line-height: 1.4; letter-spacing: .01em;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { margin: 0 0 40px; font-size: clamp(16px, 1.4vw, 20px); color: var(--muted); white-space: nowrap; }
.hero__acts { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px; font-size: 16px; font-weight: 700;
  border-radius: 2px; border: 1px solid transparent;
  transition: background .12s cubic-bezier(.2,.7,.2,1), color .12s;
}
.btn--fill, .btn--line { background: var(--accent); border-color: var(--accent); color: #fff !important; }
.btn--fill:hover, .btn--line:hover { background: var(--ink); border-color: var(--ink); color: #fff !important; }

/* ── 実績カウンター ─────────────────────────── */
.stats {
  position: relative; padding: 0 var(--gut) clamp(32px, 4vw, 52px);
}
.stats__grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong); padding-top: 30px; gap: 4px 16px;
}
/* 項目名を上、数字を下に置いて中央にそろえる。
   横に並べると、隣の列の項目名と数字が近く見えて読み違えるため。 */
.stat {
  display: block; text-align: center;
  padding: 16px 0 20px; border-bottom: 1px solid var(--hairline);
}
.stat.is-armed { transform: translateY(16px); opacity: 0; }
.stat.is-armed.is-in { transform: none; opacity: 1; transition: transform .95s var(--ease-rv), opacity .7s ease; }
.stat__n {
  display: block;
  font-size: clamp(34px, 4.2vw, 58px); font-weight: 700; line-height: 1;
  letter-spacing: -.045em; font-variant-numeric: tabular-nums;
}
.stat__s { font-size: .38em; letter-spacing: .02em; margin-left: .12em; }
.stat__l { font-size: clamp(12px, 1.1vw, 16px); font-weight: 700; line-height: 1.5; margin-bottom: 2px; white-space: nowrap; }

/* ── YouTube ───────────────────────────────── */
.ytb {
  background: var(--surface-soft);
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  padding: clamp(44px, 5vw, 66px) var(--gut) clamp(34px, 4vw, 46px);
}
.ytb__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ytb__head svg { flex: none; }
.ytb h2 {
  margin: 0; min-width: 0; font-size: clamp(22px, 2.4vw, 31px);
  font-weight: 700; line-height: 1.5; letter-spacing: .01em;
}
.ytb__lead {
  margin: 0 0 26px;
  font-size: clamp(17px, 1.5vw, 20px); font-weight: 700; line-height: 1.6; color: var(--body);
}
/* ボタンの右の余白を使って、実績を横一列に置く（枠では囲まない） */
.ytb__row { display: flex; align-items: center; gap: clamp(28px, 4vw, 64px); flex-wrap: wrap; }
.ytb__row .btn { flex: none; }
.ytb__stats {
  flex: 1 1 520px; min-width: 0;      /* 画面が狭いときに縮めるため */
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(16px, 2vw, 32px);
}
.ytn { text-align: center; padding-bottom: 12px; border-bottom: 1px solid var(--rule-strong); }
.ytn.is-armed { transform: translateY(16px); opacity: 0; }
.ytn.is-armed.is-in { transform: none; opacity: 1; transition: transform .95s var(--ease-rv), opacity .7s ease; }
.ytn__l { font-size: clamp(12px, 1.1vw, 15px); font-weight: 700; color: var(--faint); margin-bottom: 2px; white-space: nowrap; }
.ytn__n {
  display: block;
  font-size: clamp(26px, 2.9vw, 40px); font-weight: 700; line-height: 1.1;
  letter-spacing: -.045em; color: var(--ink); font-variant-numeric: tabular-nums;
}
.ytn__u { font-size: .4em; letter-spacing: .02em; margin-left: .12em; }

/* ── セクション（左に貼り付く見出し）─────────── */
.band { padding: var(--band) var(--gut); border-top: 1px solid var(--hairline); }
.band:first-of-type { border-top: none; }
.sec { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 52px; align-items: start; }
.rail { position: sticky; top: 92px; }
.rail__kick { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
/* 画面が狭いときに横へはみ出さない。SVGは縦横比を保ったまま枠内に収まる */
.dotmark { height: 20px; width: auto; max-width: 100%; display: block; }
/* 下層ページのあしらいの英字も、トップと同じドット文字にそろえる。
   ドット1個は「高さ ÷ 70 × 3.4」の半径になるので、
   元の文字サイズより少し大きめの高さにしないと粒がつぶれて読めない。 */
.pv__kick .dotmark  { height: 18px; }
.pgrail__ttl .dotmark { height: 13px; }
.cend__kick .dotmark { height: 14px; margin: 0 auto; }
.pg-body .a--h2rich-subcopy .dotmark { height: 16px; }
.svc__en .dotmark { height: 13px; margin: 0 auto; }
.body .hp-concept__en .dotmark,
.body .hp-step__en .dotmark,
.body .hp-note__k .dotmark,
.body .hp-fee__kick .dotmark { height: 12px; }
.body .hp-fee__cap-en .dotmark { height: 11px; display: inline-block; vertical-align: middle; }
.rail h2 { margin: 0; font-size: 27px; font-weight: 700; line-height: 1.6; letter-spacing: .01em; }
.rail__more { display: inline-block; margin-top: 20px; font-size: 16px; font-weight: 600; }

/* ── お知らせ ──────────────────────────────── */
.news__row {
  display: flex; align-items: baseline; gap: 22px;
  padding: 15px 0; border-bottom: 1px solid var(--hairline);
}
.news__date { font-size: 15px; color: var(--faint); flex: none; width: 96px; }
.news__cat { font-size: 14px; font-weight: 700; color: var(--accent-deep); flex: none; width: 150px; }
.news__ttl { font-size: 17px; color: var(--ink); }

/* ── About ────────────────────────────────── */
.about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; }
.about__lead { margin: 0 0 24px; font-size: clamp(20px, 1.9vw, 26px); font-weight: 700; line-height: 1.68; letter-spacing: .01em; }
.about p { margin: 0 0 18px; font-size: 17px; color: var(--body); }
.about__ph { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 2px; }
.ph {
  background: var(--surface-card); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; letter-spacing: .18em; color: #a8a49c;
}

/* ── 強み ─────────────────────────────────── */
/* ベタ塗りに白文字。パステルの面は使わない */
.str { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.str__c {
  border-radius: 2px; padding: 30px 26px 32px; display: flex; flex-direction: column;
  color: var(--on-dark);
  transition: transform .35s var(--ease-rv), box-shadow .35s var(--ease-rv);
}
.str__c:hover { transform: translateY(-6px); box-shadow: 0 20px 36px rgba(20,20,19,.16); }
.str__hd {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 16px; margin-bottom: 20px;
  border-bottom: 1px solid rgba(250,249,245,.45);
}
.str__no { font-size: 34px; font-weight: 700; line-height: .85; letter-spacing: -.05em; opacity: .8; }
.str__ja { font-size: 28px; font-weight: 700; line-height: 1.4; }
/* about など記事ページは左に目次レールがある分、カードの実効幅がトップページより
   狭く、同じ文字サイズだと「18年の弁護士経験」等が折り返してしまうため縮める */
.pg-body .str__ja { font-size: 24px; }
.str__en {
  display: inline-flex; align-items: center; opacity: .68;
  align-self: flex-end; margin-top: auto; padding-top: 20px;
}
.dotmark--str { height: 20px; width: auto; display: block; }
.str__b { margin: 0; font-size: 17px; line-height: 1.95; color: rgba(250,249,245,.92); }

/* ── サービス ─────────────────────────────── */
/* 写真の上に暗幕を敷いて白文字を置く。現行サイトと同じ組み方 */
.svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.svc__c {
  position: relative; overflow: hidden; border-radius: 2px;
  aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
  color: var(--on-dark) !important;
  transition: transform .35s var(--ease-rv), box-shadow .35s var(--ease-rv);
}
.svc__c:hover { transform: translateY(-6px); box-shadow: 0 20px 36px rgba(20,20,19,.22); }
.svc__ph {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease-rv);
}
.svc__c:hover .svc__ph { transform: scale(1.05); }
.svc__veil { position: absolute; inset: 0; background: rgba(20,20,19,.55); }
.svc__in { position: relative; text-align: center; padding: 0 16px; }
.svc__ja {
  display: block; font-size: clamp(17px, 1.6vw, 21px); font-weight: 700;
  line-height: 1.5; letter-spacing: .01em;
}
/* 日本語と英語のあいだの短い区切り線 */
.svc__ja::after {
  content: ""; display: block; width: 56px; height: 1px;
  margin: 12px auto; background: rgba(250,249,245,.65);
}
.svc__en { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; }

/* ── クライアントの声 ──────────────────────── */
.voice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.voice__c {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--surface-soft); border-radius: 2px; padding: 24px 22px;
  transition: transform .35s var(--ease-rv), box-shadow .35s var(--ease-rv);
}
.voice__c:hover { transform: translateY(-6px); box-shadow: 0 18px 32px rgba(20,20,19,.12); }
.voice__b { margin: 0; font-size: 17px; line-height: 1.9; flex-grow: 1; }
.voice__who { display: flex; align-items: center; gap: 12px; }
.voice__ph { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; background: #ddd9cd; flex: none; }
.voice__off { font-size: 13px; color: var(--faint); line-height: 1.6; }
.voice__nm { font-size: 16px; font-weight: 700; line-height: 1.6; }
/* 「弁護士」で改行し、お名前と「先生」は必ず1行に収める */
.voice__ttl { display: block; font-size: 14px; font-weight: 700; line-height: 1.5; }
.voice__who2 { display: block; white-space: nowrap; }

/* ── ブログ ───────────────────────────────── */
.blog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 18px; }
.blog__c {
  display: flex; flex-direction: column; gap: 9px;
  transition: transform .35s var(--ease-rv);
}
.blog__c:hover { transform: translateY(-6px); }
.blog__c .ph { aspect-ratio: 16/10; }
.blog__meta { display: flex; gap: 8px; align-items: center; }
.blog__date { font-size: 13px; color: var(--faint); }
.blog__cat { font-size: 13px; font-weight: 700; color: var(--accent-deep); }
.blog__ttl { font-size: 16px; font-weight: 700; line-height: 1.65; color: var(--ink); transition: color .2s ease; }
.blog__c:hover .blog__ttl { color: var(--accent-deep); }

/* ── お問い合わせ ─────────────────────────── */
.contact { position: relative; overflow: hidden; color: var(--on-dark); text-align: center; padding: clamp(56px, 7vw, 92px) var(--gut); }
.contact__ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact__veil { position: absolute; inset: 0; background: rgba(20,20,19,.72); }
.contact__in { position: relative; }
.contact__kick { display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.contact__kick .dotmark { height: 40px; }
.contact h2 { margin: 0 0 20px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: .01em; }
.contact p { margin: 0 auto 34px; font-size: clamp(17px, 1.5vw, 20px); font-weight: 500; max-width: 620px; color: var(--on-dark); }

/* ── フッター ─────────────────────────────── */
.ft {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 26px var(--gut); font-size: 15px; color: var(--muted);
}
.ft__mark { display: inline-flex; align-items: center; font-size: 16px; font-weight: 600; color: var(--ink); }
.ft__mark img { display: block; height: 30px; width: auto; }
@media (max-width: 720px) { .ft__mark img { height: 26px; } }
.ft__mark span { color: var(--accent); }
.ft__links { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.ft__copy { display: inline-flex; align-items: center; }
.dotmark--ft { height: 13px; width: auto; display: block; }
.ft a { color: var(--faint); }

/* ══ タブレット ══════════════════════════════ */
@media (max-width: 1080px) {
  :root { --edge: 36px; --band: 56px; }
  .sec { grid-template-columns: 1fr; gap: 26px; }
  .rail { position: static; }
  .blog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 36px; }
  .svc, .str, .voice { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 1fr; }
  .ytb__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 20px; }
}

/* ══ スマホ ══════════════════════════════════ */
@media (max-width: 900px) {
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 幅が足りないので、ボタンの下に2列で置く */
  .ytb__row { flex-direction: column; align-items: stretch; gap: 26px; }
  .ytb__row .btn { align-self: flex-start; }
  .ytb__stats { flex: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
}

@media (max-width: 720px) {
  :root { --edge: 20px; --band: 44px; }
  body { line-height: 1.8; }

  .hd__nav { display: none; }
  .hd__nav.is-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--canvas); border-bottom: 1px solid var(--hairline);
    padding: 22px var(--gut) 26px;
  }
  .hd__burger { display: block; }

  .hero__bg div { opacity: .3; }
  .hero__veil { background: linear-gradient(180deg, rgba(250,249,245,.94) 0%, rgba(250,249,245,.88) 100%); }
  .hero__lead { white-space: normal; }

  .stats__grid { grid-template-columns: 1fr; gap: 0; padding-top: 22px; }

  .svc, .str, .voice, .blog { grid-template-columns: 1fr; }
  .blog { gap: 20px; }

  .news__row { flex-wrap: wrap; gap: 6px 14px; }
  .news__date { width: auto; }
  .news__cat { width: auto; }
  .news__ttl { width: 100%; font-size: 14px; }

  .yt { flex-wrap: wrap; gap: 8px 16px; }
  .btn { padding: 14px 26px; font-size: 14px; }
  .hero__acts .btn { flex: 1 1 auto; justify-content: center; }

  .ft { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* 動きを減らす設定を尊重する */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stat, .stat.is-armed { transform: none; transition: none; }
  .svc__c:hover { transform: none; }
}

/* 一覧のサムネイル */
.blog__c img { aspect-ratio: 16/10; width: 100%; object-fit: cover; border-radius: 2px; }

/* ── 一覧ページの見出し ───────────────────── */
.listhead { margin-bottom: 40px; }
/* 写真ヒーローのページ（.pv h1）と同じ大きさにそろえる */
.listhead h1 {
  margin: 0 0 14px; font-size: clamp(33px, 3.6vw, 48px);
  font-weight: 700; line-height: 1.45; letter-spacing: .01em;
  line-break: strict; text-wrap: balance;
}
.listhead__note { margin: 0 0 12px; font-size: 17px; color: var(--muted); max-width: 680px; }
.listhead__count { font-size: 14px; color: var(--faint); margin: 0; }

/* ── ふわっと浮き上がる（控えめ）─────────────
   既定は見える状態。JSが動くときだけ armed を付けて隠し、画面に入ったら戻す。
   移動は 10px、時間は 460ms。跳ねない。                                    */
/* 現れ方は、ゆっくり減速して静かに止まる曲線（expo out）でそろえる。
   派手な動きは足さず、速さと止まり方だけで「今っぽさ」を出す。 */
:root { --ease-rv: cubic-bezier(.19, 1, .22, 1); }

.reveal.is-armed { opacity: 0; transform: translateY(20px) scale(.95); filter: blur(5px); }
.reveal.is-armed.is-shown {
  opacity: 1; transform: none; filter: blur(0);
  transition: opacity .5s ease var(--rv-d, 0s), transform .6s var(--ease-rv) var(--rv-d, 0s),
              filter .5s ease var(--rv-d, 0s);
}

/* 見出しは、下から現れるように上下の窓を開く（文字は動かしすぎない・ぼかさない）*/
.rvh.is-armed { opacity: 0; clip-path: inset(0 0 105% 0); transform: translateY(8px); filter: none; }
.rvh.is-armed.is-shown {
  opacity: 1; clip-path: inset(0 0 0 0); transform: none; filter: none;
  transition: clip-path .55s var(--ease-rv) var(--rv-d, 0s),
              opacity .4s ease var(--rv-d, 0s),
              transform .55s var(--ease-rv) var(--rv-d, 0s);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-armed, .rvh, .rvh.is-armed {
    opacity: 1 !important; transform: none !important;
    clip-path: none !important; transition: none !important;
  }
}

/* ==========================================================================
   グローバルメニューの「サービス」一覧
   マウスを乗せる／キーボードで進むと下に開く
   ========================================================================== */
.hd__has { position: relative; display: flex; align-items: center; }
.hd__has > a { display: inline-flex; align-items: center; gap: 6px; }
.hd__cv { transition: transform .16s cubic-bezier(.2,.7,.2,1); }
.hd__has:hover .hd__cv, .hd__has:focus-within .hd__cv { transform: rotate(180deg); }

.hd__sub {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 268px; padding: 10px; z-index: 60;
  background: var(--canvas); border: 1px solid var(--hairline); border-radius: 6px;
  box-shadow: 0 18px 40px rgba(20, 20, 19, .12);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .16s cubic-bezier(.2,.7,.2,1), transform .16s cubic-bezier(.2,.7,.2,1);
}
/* マウスが降りてくる間に閉じないよう、上に見えない橋をかける */
.hd__has::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 14px; }
.hd__has:hover .hd__sub, .hd__has:focus-within .hd__sub {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.hd__sub a {
  display: block; padding: 11px 14px; border-radius: 4px;
  font-size: 16px; font-weight: 600; color: var(--ink);
  transition: background .12s cubic-bezier(.2,.7,.2,1);
}
.hd__sub a:hover { background: var(--surface-soft); color: var(--ink); }
.hd__sub .en {
  display: block; font-size: 10px; font-weight: 700; letter-spacing: .16em;
  color: var(--accent-deep); margin-bottom: 2px;
}

/* ==========================================================================
   ページ末の問い合わせ導線（写真＋暗幕）
   ========================================================================== */
.cend {
  position: relative; overflow: hidden; border-radius: 4px;
  margin-top: 64px; padding: clamp(48px, 5vw, 76px) clamp(26px, 3.2vw, 52px);
  background: #232220;
}
.cend__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cend__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35,34,32,.72) 0%, rgba(35,34,32,.60) 46%, rgba(35,34,32,.80) 100%);
}
.cend__in { position: relative; text-align: center; }
.cend__kick {
  margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .2em; color: #fff;
}
.cend h2 {
  margin: 0 0 18px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 700;
  line-height: 1.5; color: #fff;
}
.cend__lead {
  margin: 0 auto 30px; max-width: 34em;
  font-size: clamp(17px, 1.3vw, 19px); line-height: 1.95; font-weight: 500; color: #faf9f5;
}
.cend .btn--fill { box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }

@media (max-width: 1080px) {
  .hd__sub {
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    min-width: 0; margin: 4px 0 8px; box-shadow: none; background: var(--surface-soft);
  }
  .hd__has { display: block; }
  .hd__cv { display: none; }
}
