/* ============================================================================
   site.css — camjyo.com トップページ（2026-08 全面刷新）
   ----------------------------------------------------------------------------
   設計の約束
     ・書体は Noto Sans JP 一族だけ。見出しは太く詰め、本文は行間を広く。
     ・色は 紙・墨・線・アクセント1色 のみ。
     ・カードを作らない。写真と活字と罫線で組む。
     ・動きは「現れる」だけ。数字のカウントもマーキーも脈動もしない。
     ・画像は実写。生成物は山霧1枚のみ。
   ========================================================================== */

:root {
  --paper: #f6f3ee;
  --paper-2: #ece8e0;
  --ink: #1c1b19;
  --ink-2: #57544e;
  --ink-3: #8a867e;
  --line: #d8d3c9;
  --accent: #a24f2c;
  --white: #ffffff;

  --font: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(88px, 12vw, 168px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ── リセット ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 2;
  font-feature-settings: "palt" 1; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; }
::selection { background: var(--ink); color: var(--paper); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* ── 活字 ─────────────────────────────────────────── */
.kicker {
  display: block; font-size: .78rem; font-weight: 500; letter-spacing: .14em;
  color: var(--ink-3); margin-bottom: 18px;
}
.h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700;
  line-height: 1.35; letter-spacing: -.015em;
}
.h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.6; letter-spacing: -.01em; }
.lead { font-size: 1.0625rem; color: var(--ink-2); }
.small { font-size: .9rem; color: var(--ink-2); }
.section { padding: var(--section) 0; }
.section + .section { padding-top: 0; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* テキストリンク（唯一の装飾） */
.lnk {
  display: inline-block; font-weight: 700; padding-bottom: 2px;
  border-bottom: 1px solid var(--ink); transition: color .2s, border-color .2s;
}
.lnk:hover { color: var(--accent); border-color: var(--accent); }
.lnk::after { content: "\2192"; margin-left: .45em; font-weight: 400; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 30px; border: 1px solid var(--ink); border-radius: 999px;
  font-weight: 700; font-size: .95rem; line-height: 1;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); }

/* 現れるだけの動き */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ── ヘッダー ─────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 243, 238, .86); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.is-stuck { border-color: var(--line); }
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo img { height: 30px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.nav-link { font-size: .92rem; font-weight: 500; color: var(--ink-2); transition: color .2s; }
.nav-link:hover { color: var(--ink); }
.nav-cta {
  font-size: .9rem; font-weight: 700; padding: 11px 20px;
  border: 1px solid var(--ink); border-radius: 999px; transition: background .25s, color .25s;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }
.hamburger {
  display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px; padding: 0;
}
.hamburger span { width: 22px; height: 1.5px; background: var(--ink); transition: transform .3s, opacity .3s; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .main-nav {
    position: fixed; inset: 0; top: 66px; z-index: 40; background: var(--paper);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 0; padding: 20px var(--gutter) 40px; transform: translateX(100%);
    transition: transform .4s var(--ease);
  }
  .main-nav.is-open { transform: none; }
  .main-nav .nav-link { font-size: 1.25rem; font-weight: 700; color: var(--ink); padding: 16px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .main-nav .nav-cta { margin-top: 24px; }
}

/* ── ヒーロー ─────────────────────────────────────── */
.hero { padding: clamp(48px, 8vw, 110px) 0 0; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px); align-items: end;
}
/* 見出しは「列の幅」を基準に縮める。ビューポート基準だと列からはみ出し、
   1440/1512px で「人と自／然の、」のように熟語が割れる。cqi なら構造上起きない。 */
.hero-copy { container-type: inline-size; }
.hero-title {
  font-size: clamp(2.6rem, 6.2vw, 5.2rem);   /* コンテナクエリ非対応ブラウザ用 */
  font-size: clamp(2.4rem, 15.2cqi, 5rem);
  font-weight: 700; line-height: 1.18; letter-spacing: -.035em; text-indent: -.05em;
  text-wrap: nowrap;                          /* 明示した <br> 以外では折らない */
}
@supports not (width: 1cqi) { .hero-title { text-wrap: wrap; } }
.hero-lead { margin-top: clamp(28px, 4vw, 44px); color: var(--ink-2); max-width: 30em; }
.hero-actions { margin-top: clamp(28px, 4vw, 40px); display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.hero-doc { font-size: .88rem; color: var(--ink-2); }
.hero-doc:hover { color: var(--accent); }
.hero-figure { position: relative; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.hero-figure figcaption {
  position: absolute; left: 0; bottom: -2.4em; font-size: .74rem; color: var(--ink-3); letter-spacing: .04em;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-figure { order: -1; }
  .hero-figure img { aspect-ratio: 5 / 4; }
  .hero-figure figcaption { position: static; margin-top: 10px; }
}

/* ── CRYSTAL INSENCE ─────────────────────────────── */
.crystal-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.crystal-name { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; letter-spacing: .02em; line-height: 1.1; }
.crystal-name small { display: block; font-size: .95rem; font-weight: 500; letter-spacing: .06em; color: var(--ink-2); margin-top: 14px; }
.crystal-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(40px, 6vw, 72px); align-items: start; }
.crystal-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.crystal-photo--tall img { aspect-ratio: 3 / 4; }
.crystal-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.crystal-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }

.facts { border-top: 1px solid var(--line); margin-top: clamp(28px, 4vw, 44px); }
.facts div { display: grid; grid-template-columns: 7.5em 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .84rem; font-weight: 500; color: var(--ink-3); letter-spacing: .04em; padding-top: .2em; }
.facts dd { font-size: .95rem; line-height: 1.9; }
.facts a { border-bottom: 1px solid var(--line); transition: border-color .2s, color .2s; }
.facts a:hover { color: var(--accent); border-color: var(--accent); }

.crystal-actions { margin-top: clamp(28px, 4vw, 40px); display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }

/* 煙の帯（実写・黒地） */
.smoke {
  position: relative; margin-top: clamp(64px, 9vw, 120px);
  background: #141311; color: #eae5dc; overflow: hidden;
}
.smoke img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.smoke-inner { position: relative; padding: clamp(96px, 16vw, 220px) 0; }
.smoke-inner .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.smoke-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; line-height: 1.4; letter-spacing: -.015em; }
.smoke-text { font-size: .98rem; line-height: 2.1; color: rgba(234, 229, 220, .82); max-width: 32em; }
@media (max-width: 900px) {
  .crystal-head, .crystal-body, .smoke-inner .container { grid-template-columns: 1fr; }
  .crystal-photo--tall img { aspect-ratio: 4 / 3; }
}

/* ── 実績（取材・登壇・取扱い） ──────────────────── */
.press-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.press-list { border-top: 1px solid var(--line); margin-top: clamp(28px, 4vw, 44px); }
.press-item {
  display: grid; grid-template-columns: 7em 8em 1fr; gap: 16px 28px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line); transition: color .2s;
}
.press-item:hover { color: var(--accent); }
.press-item time { font-size: .86rem; color: var(--ink-3); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.press-item .type { font-size: .84rem; font-weight: 500; color: var(--ink-2); }
.press-item .title { font-size: 1rem; font-weight: 500; line-height: 1.8; }
.press-item .title small { display: block; font-size: .84rem; font-weight: 400; color: var(--ink-3); margin-top: 2px; }
@media (max-width: 700px) {
  .press-item { display: block; }
  .press-item time, .press-item .type { display: inline; }
  .press-item .type { margin-left: 12px; }
  .press-item .title { display: block; margin-top: 6px; }
}

.logos { margin-top: clamp(48px, 7vw, 80px); }
.logos p { font-size: .84rem; color: var(--ink-3); letter-spacing: .04em; margin-bottom: 26px; }
.logos ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 26px 30px; align-items: center; }
.logos img { width: 100%; max-height: 40px; object-fit: contain; filter: grayscale(1); opacity: .62; transition: opacity .3s; }
.logos li:hover img { opacity: 1; }
@media (max-width: 700px) { .logos ul { grid-template-columns: repeat(3, 1fr); gap: 20px 22px; } }

/* ── 共同代表 ─────────────────────────────────────── */
.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); margin-top: clamp(40px, 6vw, 72px); }
.leader-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: 2px; }
.leader-name { margin-top: 26px; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
.leader-name small { display: block; font-size: .8rem; font-weight: 500; letter-spacing: .12em; color: var(--ink-3); margin-top: 6px; }
.leader-role { font-size: .9rem; font-weight: 500; color: var(--ink-2); margin-top: 12px; }
.leader-text { margin-top: 18px; font-size: .98rem; color: var(--ink-2); }
.leader-ask { margin-top: 18px; font-size: .9rem; padding-left: 14px; border-left: 2px solid var(--line); color: var(--ink-2); }
.leader-ask b { color: var(--ink); font-weight: 700; }
.leader-more { margin-top: 20px; display: inline-block; }
@media (max-width: 700px) { .leaders { grid-template-columns: 1fr; } .leader-photo { aspect-ratio: 4 / 4.6; } }

/* ── 事業 ─────────────────────────────────────────── */
.biz-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.biz-list { border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 72px); }
.biz-item {
  display: grid; grid-template-columns: 3em minmax(0, 1.1fr) minmax(0, 1fr) 8em; gap: 16px 28px; align-items: start;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.biz-item .num { font-size: .84rem; color: var(--ink-3); letter-spacing: .06em; padding-top: .5em; font-variant-numeric: tabular-nums; }
.biz-item .name { font-size: 1.15rem; font-weight: 700; line-height: 1.5; letter-spacing: -.01em; }
.biz-item .name small { display: block; font-size: .84rem; font-weight: 500; color: var(--ink-2); margin-top: 4px; letter-spacing: .02em; }
.biz-item .desc { font-size: .95rem; color: var(--ink-2); line-height: 1.95; }
.biz-item .go { text-align: right; padding-top: .4em; }
.biz-item .go a { font-size: .9rem; font-weight: 700; border-bottom: 1px solid var(--ink); transition: color .2s, border-color .2s; }
.biz-item .go a:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 800px) {
  .biz-intro { grid-template-columns: 1fr; }
  .biz-item { grid-template-columns: 3em 1fr; }
  .biz-item .desc { grid-column: 2; }
  .biz-item .go { grid-column: 2; text-align: left; padding-top: 0; }
}

.sns { margin-top: clamp(48px, 7vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.sns-list { border-top: 1px solid var(--line); }
.sns-list a, .sns-list .sns-row { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .95rem; transition: color .2s; }
.sns-list a:hover { color: var(--accent); }
.sns-list span:first-child { font-weight: 500; }
.sns-list .sns-row { cursor: default; }
.sns-list span:last-child { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sns-list small { color: var(--ink-3); margin-left: 10px; font-size: .82rem; }
@media (max-width: 800px) { .sns { grid-template-columns: 1fr; } }

/* ── ニュース ─────────────────────────────────────── */
.news-list { border-top: 1px solid var(--line); margin-top: clamp(28px, 4vw, 44px); }
.news-item {
  display: grid; grid-template-columns: 7em 8em 1fr; gap: 12px 28px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--line); transition: color .2s;
}
.news-item:hover { color: var(--accent); }
.news-item__date { font-size: .86rem; color: var(--ink-3); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.news-item__cat { font-size: .84rem; font-weight: 500; color: var(--ink-2); }
.news-item__title { font-size: 1rem; font-weight: 500; line-height: 1.8; }
@media (max-width: 700px) {
  .news-item { display: block; }
  .news-item__date, .news-item__cat { display: inline; }
  .news-item__cat { margin-left: 12px; }
  .news-item__title { display: block; margin-top: 4px; }
}

/* ── マガジン ─────────────────────────────────────── */
.mag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.4vw, 40px); margin-top: clamp(28px, 4vw, 44px); }
.mag-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 2px; background: var(--paper-2); }
.mag-item .cat { display: block; font-size: .8rem; color: var(--ink-3); margin-top: 16px; letter-spacing: .04em; }
.mag-item .ttl { font-size: 1.02rem; font-weight: 700; line-height: 1.65; margin-top: 6px; letter-spacing: -.005em; transition: color .2s; }
.mag-item:hover .ttl { color: var(--accent); }
@media (max-width: 800px) { .mag-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ── 会社について（山霧の帯） ─────────────────────── */
.scene { position: relative; margin-top: var(--section); color: #f1ede5; overflow: hidden; background: #2b3330; }
.scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 24, 22, .78) 0%, rgba(20, 24, 22, .25) 55%, rgba(20, 24, 22, .05) 100%); }
.scene-inner { position: relative; z-index: 1; padding: clamp(160px, 26vw, 360px) 0 clamp(56px, 8vw, 88px); }
.scene-title { font-size: clamp(1.6rem, 4.6vw, 3.4rem); font-weight: 700; line-height: 1.3; letter-spacing: -.03em; }
.scene-text { margin-top: 22px; max-width: 34em; font-size: .98rem; color: rgba(241, 237, 229, .86); }

.about { padding-top: clamp(56px, 8vw, 96px); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-text p + p { margin-top: 1.2em; }
.about .facts { margin-top: 0; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }

/* ── よくあるご質問 ───────────────────────────────── */
.faq { border-top: 1px solid var(--line); margin-top: clamp(28px, 4vw, 44px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-weight: 700; font-size: 1.02rem; line-height: 1.7; transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  transform: translateY(-70%) rotate(45deg); transition: transform .3s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--accent); }
.faq .ans { padding: 0 0 26px; font-size: .96rem; color: var(--ink-2); max-width: 46em; }
.faq .ans a { border-bottom: 1px solid var(--line); }
.faq-note { margin-top: 26px; font-size: .82rem; color: var(--ink-3); line-height: 1.9; }

/* ── お問い合わせ ─────────────────────────────────── */
.contact { background: var(--paper-2); }
.contact-title { font-size: clamp(1.5rem, 2.7vw, 2.05rem); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-list { border-top: 1px solid var(--line); }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .96rem; color: var(--ink-2); }
.contact-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.contact-mail { font-size: .95rem; color: var(--ink-2); }
.contact-mail a { border-bottom: 1px solid var(--line); }
.contact-mail a:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* ── フッター ─────────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(246, 243, 238, .78); padding: clamp(56px, 8vw, 96px) 0 40px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 3fr); gap: clamp(32px, 6vw, 96px); }
.footer-logo img { height: 28px; width: auto; }
.footer-company { margin-top: 18px; font-weight: 700; color: var(--paper); }
.footer-tagline { margin-top: 4px; color: rgba(246, 243, 238, .6); }
.footer-addr { margin-top: 18px; font-size: .84rem; line-height: 1.9; color: rgba(246, 243, 238, .6); }
.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
.footer-col h4 { font-size: .8rem; font-weight: 500; letter-spacing: .1em; color: rgba(246, 243, 238, .5); margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; color: rgba(246, 243, 238, .82); transition: color .2s; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom { margin-top: clamp(40px, 6vw, 64px); padding-top: 24px; border-top: 1px solid rgba(246, 243, 238, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: .8rem; color: rgba(246, 243, 238, .5); }
.footer-sns { display: flex; gap: 22px; }
.footer-sns a { color: rgba(246, 243, 238, .6); transition: color .2s; display: inline-flex; align-items: center; }
.footer-sns a:hover { color: var(--paper); }
.footer-sns svg { width: 18px; height: 18px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } .footer-links { grid-template-columns: 1fr 1fr; } }

/* ── 浮かぶ相談ボタン（脈動なし） ───────────────── */
.floating-cta {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.floating-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.floating-cta a {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper); border-radius: 999px;
  padding: 13px 20px; font-size: .88rem; font-weight: 700;
  box-shadow: 0 8px 24px rgba(28, 27, 25, .18); transition: background .25s;
}
.floating-cta a:hover { background: var(--accent); }
.floating-cta svg { width: 16px; height: 16px; }

/* ── 会社案内のメール入力（doc-gate.js が生成） ───── */
.docgate[hidden] { display: none; }
.docgate { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.docgate__backdrop { position: absolute; inset: 0; background: rgba(28, 27, 25, .5); }
.docgate__card { position: relative; width: min(460px, 100%); background: var(--paper); border-radius: 6px; padding: 36px 32px 28px; }
.docgate__x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--ink-2); cursor: pointer; }
.docgate__title { font-size: 1.2rem; font-weight: 700; line-height: 1.5; }
.docgate__lead { font-size: .9rem; color: var(--ink-2); margin-top: 10px; line-height: 1.9; }
.docgate__label { display: block; font-size: .8rem; font-weight: 500; color: var(--ink-2); margin: 22px 0 6px; }
.docgate__input { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); font-size: 1rem; }
.docgate__input:focus { outline: none; border-color: var(--ink); }
.docgate__error { color: var(--accent); font-size: .82rem; margin-top: 8px; }
.docgate__hp { position: absolute; left: -9999px; }
.docgate__submit { width: 100%; margin-top: 18px; padding: 15px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; cursor: pointer; transition: background .25s; }
.docgate__submit:hover { background: var(--accent); }
.docgate__submit:disabled { opacity: .6; cursor: default; }
.docgate__note { font-size: .76rem; line-height: 1.8; color: var(--ink-3); margin-top: 14px; }

/* ============================================================================
   日本語の折り返し
   ----------------------------------------------------------------------------
   既定のブラウザは日本語を1文字単位で折るため「グランドオー／プン」「キャ／
   ンピングカー」のようにカタカナ語や固有名詞が泣き別れする。文節単位で折らせ、
   見出しは行末の孤立を避ける。auto-phrase / pretty 未対応のブラウザは従来動作。
   ========================================================================== */
body { line-break: strict; }

p, li, dd, dt,
.lead, .small, .hero-lead, .smoke-text, .scene-text,
.leader-text, .leader-ask, .about-text p,
.biz-item .name, .biz-item .desc,
.press-item .title, .news-item__title, .mag-item .ttl,
.faq summary, .faq .ans, .contact-list li,
.crystal-name small, .hero-figure figcaption {
  word-break: auto-phrase;
}

.hero-title, .h2, .h3, .crystal-name, .smoke-title, .scene-title,
.leader-name, .contact-title, .mg-section-title,
.press-item .title, .news-item__title, .mag-item .ttl, .faq summary {
  text-wrap: pretty;
}

/* 分割してはいけない固有名詞（欧文は空白で折れてしまうため） */
.nb { white-space: nowrap; }

/* 実績写真であることを静かに明示する（きれいな絵ではなく、証拠にする） */
.scene-credit {
  margin-top: 20px; padding-top: 16px; max-width: 40em;
  border-top: 1px solid rgba(241, 237, 229, .22);
  font-size: .82rem; line-height: 1.9; color: rgba(241, 237, 229, .68);
}
/* 夜景は元々暗いので、かぶせる黒を弱める */
.scene:has(img[src*="hinoyama"])::after {
  background: linear-gradient(to top, rgba(12,14,16,.72) 0%, rgba(12,14,16,.30) 50%, rgba(12,14,16,.10) 100%);
}

/* ── 顧問ページ ───────────────────────────────────── */
.adv-title {
  font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 700;
  line-height: 1.32; letter-spacing: -.03em; text-wrap: pretty;
}
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3.4vw, 44px); margin-top: clamp(36px, 5vw, 56px); }
.plan { border: 1px solid var(--line); border-radius: 4px; padding: clamp(26px, 3.4vw, 40px); background: var(--white); }
.plan--main { border-color: var(--ink); }
.plan__label {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  padding: 6px 14px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2);
}
.plan--main .plan__label { background: var(--ink); color: var(--paper); }
.plan__price { margin-top: 22px; font-size: clamp(2.4rem, 4.4vw, 3.2rem); font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.plan__price small { font-size: .34em; font-weight: 500; margin-left: 8px; letter-spacing: 0; }
.plan__note { margin-top: 12px; font-size: .84rem; color: var(--ink-3); }
.plan__list { margin-top: 26px; border-top: 1px solid var(--line); }
.plan__list li { padding: 13px 0 13px 20px; border-bottom: 1px solid var(--line); font-size: .94rem; line-height: 1.85; position: relative; }
.plan__list li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 8px; height: 1px; background: var(--ink-3); }
.plan__for { margin-top: 22px; font-size: .9rem; color: var(--ink-2); line-height: 1.9; }
.plans-note { margin-top: 26px; font-size: .86rem; color: var(--ink-3); line-height: 1.9; max-width: 44em; }
@media (max-width: 800px) { .plans { grid-template-columns: 1fr; } }

/* 顧問ページのヒーローは1カラム（トップの2カラム前提を打ち消す） */
.adv-title + .hero-lead { max-width: 42em; }
