/* aux.css — 補助ページ専用。共有トークンは style.css の :root に依存する。
   キー=LIGHT / warm-earth / soft-minimal / soft-shadow を踏襲。 */

/* --- フォールバックトークン（style.css が先に読まれる前提だが保険として宣言） --- */
:root {
  --c-bg: #f3ece1;
  --c-fg: #2a2420;
  --c-muted: #6f655a;
  --c-dark: #211c17;
  --c-on-dark: #f3ece1;
  --c-accent: #9a5b2c;
  --font-display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Songti SC", serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Microsoft YaHei", sans-serif;
}

/* --- ヘッダー --- */
.aux-header {
  background-color: var(--c-dark);
  color: var(--c-on-dark);
}
.aux-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: inherit;
  text-decoration: none;
}
.aux-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4, 24px);
}
.aux-nav a {
  color: var(--c-on-dark);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.aux-nav a[aria-current="page"] { font-weight: 700; }
.aux-nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.aux-nav__phone svg { color: var(--c-accent); }
@media (max-width: 640px) {
  .aux-header__inner { height: 72px; }
  .aux-nav { gap: 14px; }
  .aux-nav a:not(.aux-nav__phone) { display: none; }
}

/* --- 共通 ヒーロー --- */
.aux-hero {
  background-color: var(--c-bg);
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(42, 36, 32, 0.12);
}
.aux-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-fg);
  margin: 0.4em 0 0;
  max-width: 18ch;
}
.aux-hero__lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--c-muted);
  max-width: 56ch;
  margin-top: 1.2em;
}
.aux-hero--doc { padding-block: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin: 0;
}
.eyebrow--accent { color: var(--c-accent); }

.aux-doc__meta {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-muted);
  margin-top: 1em;
}

/* --- バンド --- */
.aux-band {
  padding-block: clamp(3rem, 6vw, 5rem);
  background-color: var(--c-bg);
}
.aux-band--tint {
  background-color: #eadfce;
}
.aux-band--last {
  padding-block: clamp(2.25rem, 4vw, 3.25rem) clamp(2.5rem, 4vw, 3.5rem);
}

.aux-band h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--c-fg);
  margin: 0.35em 0 0.7em;
}
.aux-band p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--c-fg);
  margin: 0 0 1.2em;
  max-width: 68ch;
}

/* --- プロース（about 本文 + img） --- */
.aux-prose img {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin-top: 1.5rem;
  border-radius: var(--radius-md, 10px);
  box-shadow: 0 10px 30px rgba(42, 36, 32, 0.12);
}

.aux-list {
  list-style: none;
  margin: 0.5em 0 0;
  padding: 0;
  max-width: 68ch;
}
.aux-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0.6em 0;
  border-bottom: 1px solid rgba(42, 36, 32, 0.12);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-fg);
}
.aux-list li svg {
  flex: none;
  margin-top: 4px;
  color: var(--c-accent);
}

/* --- 数字バンド --- */
.aux-figures {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 6vw, 4rem);
  margin-top: 1.5rem;
}
.aux-figure {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}
.aux-figure__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--c-fg);
}
.aux-figure__unit {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--c-muted);
  margin-left: 0.3em;
}
.aux-figure__cap {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-muted);
}

/* --- ドキュメント本文 --- */
.aux-doc { max-width: 100%; }
.aux-doc__intro {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--c-fg);
  max-width: 68ch;
  margin: 0 0 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(42, 36, 32, 0.14);
}
.aux-doc h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--c-fg);
  margin: 2.25rem 0 0.6rem;
}
.aux-doc p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--c-fg);
  max-width: 68ch;
  margin: 0 0 1em;
}

/* --- フッター --- */
.aux-footer {
  background-color: var(--c-dark);
  color: var(--c-on-dark);
  padding-block: clamp(2.5rem, 5vw, 4rem) 0;
}
.aux-footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.aux-footer .brand { color: var(--c-on-dark); }
.aux-footer__tag {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(243, 236, 225, 0.75);
  margin-top: 0.8em;
  max-width: 34ch;
}
.aux-footer__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243, 236, 225, 0.7);
  margin: 0 0 1em;
}
.aux-footer__col a,
.aux-footer__line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c-on-dark);
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-bottom: 0.7em;
}
.aux-footer__col a svg,
.aux-footer__line svg { flex: none; color: var(--c-accent); }
.aux-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-block: 1.25rem;
  border-top: 1px solid rgba(243, 236, 225, 0.18);
}
.aux-footer__bottom p {
  font-size: 0.75rem;
  color: rgba(243, 236, 225, 0.7);
  margin: 0;
}
.aux-footer__cookie {
  background: none;
  border: none;
  color: var(--c-on-dark);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 1024px) {
  .aux-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .aux-footer__inner { grid-template-columns: 1fr; }
}

/* --- ボタン（補助ページのダイアログ用） --- */
.btn {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--solid {
  background-color: var(--c-accent);
  color: #fff;
}
.btn--ghost {
  background: none;
  border: 1px solid rgba(42, 36, 32, 0.3);
  color: var(--c-fg);
}

/* --- Cookie バナー --- */
.is-hidden { display: none; }

.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 100;
  background-color: var(--c-dark);
  color: var(--c-on-dark);
  border-top: 1px solid rgba(243, 236, 225, 0.18);
}
.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2rem);
  padding-block: 1.1rem;
}
.cookie-banner__text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(243, 236, 225, 0.85);
  margin: 0;
  max-width: 64ch;
}
.cookie-banner__text a { color: var(--c-on-dark); text-underline-offset: 3px; }
.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex: none;
}
@media (max-width: 640px) {
  .cookie-banner__inner { flex-direction: column; align-items: stretch; }
  .cookie-banner__actions { justify-content: flex-end; }
}

/* --- Cookie 設定ダイアログ --- */
.cookie-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: rgba(33, 28, 23, 0.6);
}
.cookie-dialog__panel {
  background-color: var(--c-bg);
  color: var(--c-fg);
  border-radius: var(--radius-lg, 14px);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(42, 36, 32, 0.3);
}
.cookie-dialog__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
.cookie-dialog__text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--c-muted);
  margin: 0 0 1.5em;
}
.cookie-dialog__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9em 0;
  border-bottom: 1px solid rgba(42, 36, 32, 0.14);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-fg);
}
.cookie-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 1.75rem;
}


  /* WH-AUX-FOOTER:START */
  /* The policy pages carry their own footer markup (.aux-footer) that no stylesheet styled, so it
     rendered on the page background with whatever link colour the home footer needed. Paint it the
     way .site-footer is painted on the home page. */
  .aux-footer {
    background: var(--c-dark);
    color: var(--c-on-dark);
    padding: var(--space-5, 3rem) var(--space-4, 2rem) var(--space-3, 1.25rem);
    margin-top: var(--space-5, 3rem);
  }
  .aux-footer .footer-inner,
  .aux-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: var(--space-4, 2rem);
  }
  .aux-footer p,
  .aux-footer .footer-brand,
  .aux-footer .footer-contact,
  .aux-footer .footer-copy { color: var(--c-on-dark); }
  .aux-footer .footer-copy { opacity: 0.75; margin-top: var(--space-4, 2rem); }
  .aux-footer .footer-nav { display: grid; gap: var(--space-1, 0.375rem); }
  .aux-footer .footer-nav a,
  .aux-footer .footer-contact a { color: var(--c-on-dark); text-decoration: none; }
  .aux-footer .footer-nav a:hover,
  .aux-footer .footer-contact a:hover { text-decoration: underline; }
  @media (min-width: 641px) {
    .aux-footer .footer-inner,
    .aux-footer .container { grid-template-columns: repeat(3, 1fr); }
  }
  /* WH-AUX-FOOTER:END */
  

/* a11y: skip link + reduced motion */
.skip-link{position:absolute;left:1rem;top:-4rem;z-index:1000;padding:.6rem 1rem;background:#111;color:#fff;border-radius:4px;font-weight:700;text-decoration:none;transition:top .15s}
.skip-link:focus{top:1rem}
@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
/* CLS: width/height attrs on img need auto height */
img{height:auto}
/* WCAG 2.5.8 target size: footer/nav/tel links >= 24px tall (zero-specificity, class display rules still win) */
:where(footer, nav, .aux-nav, .site-header, .aux-header) :where(a, button), :where(main) a[href^="tel:"]{display:inline-flex;align-items:center;min-height:28px}
