/* ==========================================================================
   ARCANA base styles（全ページ共通）
   ページ固有のスタイルは assets/css/pages/<page>.css
   ========================================================================== */

:root {
  --ink: #0B1026;
  --ink-2: #141B3A;
  --gold: #C9A96E;
  --gold-light: #E8D5A8;
  --gold-deep: #7E6334;
  --paper: #F7F5F0;
  --text: #1A1A1F;
  --text-muted: #5E5E68;
  --muted-on-dark: #B4B8CB;
  --text-muted-on-sand: #5E5E68;
  --line-input: #8E8A82;
  --focus: #7E6334;
  --aurora-1: #3B5BDB;
  --aurora-2: #7FB5FF;
  --header-h: 72px;
  --font-serif-en: 'Cormorant Garamond', serif;
  --font-serif-ja: 'Shippori Mincho B1', serif;
  --font-sans: 'Noto Sans JP', sans-serif;
  --font-label: Inter, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg, canvas { max-width: 100%; }
a { color: var(--gold-deep); text-decoration: none; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
button { font: inherit; }
main { display: block; position: relative; background: var(--paper); }

@keyframes arcanaScroll { 0% { transform: translateY(-28px); } 100% { transform: translateY(72px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.screen-reader-text, .sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px;
  background: var(--gold); color: var(--ink); font-size: 14px; transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--ink); }

/* PC / スマホの出し分け（ブレークポイント 1100px） */
.u-pc { display: contents; }
.u-sp { display: none; }
.u-pc-flex { display: flex; }
.u-sp-flex, .u-sp-block { display: none; }
@media (max-width: 1099.98px) {
  .u-pc, .u-pc-flex { display: none !important; }
  .u-sp { display: contents; }
  .u-sp-flex { display: flex; }
  .u-sp-block { display: block; }
}

/* ---------- スクロール演出（common.js が .is-in を付与） ---------- */
.js-anim [data-reveal]:not(.is-in) { opacity: 0 !important; transform: translateY(20px) !important; }
.js-anim [data-bar]:not(.is-in) { transform: scaleX(0) !important; }
.js-anim [data-split]:not(.is-split) { opacity: 0; }
[data-split] .split-char { display: inline-block; white-space: pre; opacity: 0; transform: translateY(0.5em); transition: opacity .6s ease-out, transform .6s ease-out; }
[data-split].is-in .split-char { opacity: 1; transform: none; }

/* ---------- ロゴ ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--paper); }
.logo:hover { color: var(--paper); }
.logo__mark { position: relative; display: inline-block; width: 13px; height: 19px; border: 1px solid var(--gold); border-radius: 2px; }
.logo__star { position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 8px var(--gold-light); }
.logo__text { font-family: var(--font-serif-en); font-weight: 500; font-size: 19px; letter-spacing: 0.34em; }

/* ---------- ボタン ---------- */
.btn-shine {
  white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: 56px; padding: 0 30px; border-radius: 8px; color: #0B1026; font-size: 15px; font-weight: 500; letter-spacing: 0.08em;
  background: linear-gradient(105deg,#C9A96E 0%,#C9A96E 38%,#F3E6C6 50%,#C9A96E 62%,#C9A96E 100%);
  background-size: 260% 100%; background-position: 100% 0;
  transition: background-position 0.9s cubic-bezier(.2,.7,.2,1);
}
.btn-shine:hover { background-position: 0% 0; color: #0B1026; }
.btn-outline {
  white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: 56px; padding: 0 30px; border-radius: 8px; border: 1px solid var(--gold); color: var(--gold-light);
  font-size: 15px; font-weight: 500; letter-spacing: 0.08em; transition: background 0.4s;
}
.btn-outline:hover { background: rgba(201,169,110,0.12); color: var(--gold-light); }
.btn-outline--sm { height: 48px; padding: 0 22px; font-size: 14px; }
.btn-outline--light { border-color: var(--gold-deep); color: var(--gold-deep); }
.btn-outline--light:hover { background: rgba(126,99,52,0.08); color: var(--gold-deep); }
.arrow { font-family: var(--font-label); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; font-weight: 500; letter-spacing: 0.08em;
  color: var(--text); border-bottom: 1px solid var(--gold-deep);
}
@media (hover: hover) { .link-arrow:hover { color: var(--gold-deep); } }
.link-arrow:focus-visible { color: var(--gold-deep); }
/* ボタン群: 600px未満で縦積み */
@media (max-width: 599.98px) {
  .btn-group { flex-direction: column; align-items: stretch !important; }
  .btn-group > a, .btn-group > button { flex: 0 0 auto !important; width: 100%; justify-content: center; }
}

/* ---------- 見出しパーツ ---------- */
.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.eyebrow__line { width: 32px; height: 1px; background: var(--gold-deep); }
.eyebrow__text { font-family: var(--font-label); font-size: 11px; font-weight: 500; letter-spacing: 0.3em; color: var(--gold-deep); }
.eyebrow--dark .eyebrow__line { background: var(--gold); }
.eyebrow--dark .eyebrow__text { color: var(--gold); }
.eyebrow--center { justify-content: center; }
.h2 { margin: 0; font-family: var(--font-serif-ja); font-weight: 500; font-size: clamp(26px,3.6vw,44px); line-height: 1.6; letter-spacing: 0.04em; }
.section { padding: clamp(96px,11vw,160px) clamp(20px,5vw,40px); background: var(--paper); }
.section--line { border-top: 1px solid rgba(126,99,52,0.18); }
.section--dark { position: relative; background: var(--ink); color: var(--paper); overflow: hidden; }
.container { max-width: 1200px; margin: 0 auto; }
.lead { margin: 0; font-size: 15px; line-height: 1.9; color: var(--text-muted); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: rgba(11,16,38,0); border-bottom: 1px solid rgba(201,169,110,0);
  transition: background 0.5s, border-color 0.5s, backdrop-filter 0.5s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__inner {
  max-width: 1280px; margin: 0 auto; padding: 28px clamp(20px,4vw,40px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: padding 0.5s;
}
.is-scrolled .site-header {
  background: rgba(11,16,38,0.72); border-bottom-color: rgba(201,169,110,0.18);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
}
.is-scrolled .site-header__inner { padding-top: 12px; padding-bottom: 12px; }
.menu-open .site-header { background: rgba(11,16,38,0.72); }
@media (max-width: 1099.98px) { .site-header__inner { padding-top: 16px; padding-bottom: 16px; } }

.gnav { align-items: center; gap: clamp(18px,2.4vw,36px); font-size: 13px; letter-spacing: 0.06em; }
.gnav__link { white-space: nowrap; color: rgba(247,245,240,0.82); }
.gnav__link:hover, .gnav__link[aria-current="page"] { color: var(--gold-light); }
.gnav__cta { height: 44px; padding: 0 22px; font-size: 13px; gap: 10px; }

.site-header__sp { align-items: center; gap: 10px; }
.site-header__sp-cta {
  display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 8px;
  background: var(--gold); color: #0B1026; font-size: 13px; font-weight: 500; letter-spacing: 0.06em;
}
.site-header__sp-cta:hover { color: #0B1026; }
.burger { position: relative; width: 44px; height: 44px; border: 1px solid rgba(201,169,110,0.4); border-radius: 8px; background: transparent; cursor: pointer; }
.burger__line { position: absolute; left: 13px; right: 13px; height: 1px; background: var(--gold-light); transition: transform 0.4s; }
.burger__line--1 { top: 18px; }
.burger__line--2 { top: 25px; }
.menu-open .burger__line--1 { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger__line--2 { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- スマホメニュー ---------- */
.sp-menu {
  position: fixed; inset: 0; z-index: 55; background: rgba(11,16,38,0.97);
  visibility: hidden; opacity: 0; transition: opacity 0.5s, visibility 0.5s;
  padding: 112px 28px 40px; display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto;
}
.menu-open .sp-menu { visibility: visible; opacity: 1; }
.sp-menu__nav { display: flex; flex-direction: column; }
.sp-menu__link {
  display: flex; align-items: baseline; justify-content: space-between; padding: 18px 0;
  border-bottom: 1px solid rgba(201,169,110,0.18); color: var(--paper);
  opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.menu-open .sp-menu__link { opacity: 1; transform: none; transition-delay: calc(0.12s + var(--i) * 0.07s); }
.sp-menu__link:hover, .sp-menu__link[aria-current="page"] { color: var(--gold-light); }
.sp-menu__ja { font-family: var(--font-serif-ja); font-size: 20px; letter-spacing: 0.06em; }
.sp-menu__en { font-family: var(--font-label); font-size: 10px; letter-spacing: 0.26em; color: var(--gold); }
.sp-menu__tagline { font-family: var(--font-serif-en); font-style: italic; font-size: 18px; color: var(--gold-light); opacity: 0; transition: opacity 0.8s 0.6s; }
.menu-open .sp-menu__tagline { opacity: 1; }

/* ---------- カーソルの光 ---------- */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 320px; height: 320px; border-radius: 50%; pointer-events: none; z-index: 70; opacity: 0;
  background: radial-gradient(circle, rgba(232,213,168,0.18) 0%, rgba(201,169,110,0.06) 32%, rgba(201,169,110,0) 65%);
  transition: opacity 0.6s; will-change: transform;
}

/* ---------- 下層ページのヒーロー ---------- */
.page-hero { position: relative; min-height: 50vh; background: var(--ink); color: var(--paper); overflow: hidden; display: flex; }
.page-hero__bg { position: absolute; inset: 0; background: radial-gradient(ellipse 50% 80% at 85% 20%, rgba(59,91,219,0.20), rgba(59,91,219,0) 70%), linear-gradient(180deg,#0B1026 0%,#0E1430 100%); }
.page-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.6; }
.page-hero__inner {
  position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto;
  padding: clamp(128px,16vh,180px) clamp(20px,5vw,40px) clamp(48px,7vh,72px);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 40px;
}
.page-hero__title { margin: 0; font-family: var(--font-serif-ja); font-weight: 500; font-size: clamp(26px,4.6vw,60px); line-height: 1.5; letter-spacing: 0.04em; }
.nw { white-space: nowrap; }
@media (max-width: 359px) { .page-hero__title { font-size: 24px; } } /* 幅320px前後のスマホで、見出しの最後の1文字だけが次の行に落ちないように */
/* 見出しは文節の切れ目（inc/phrase.php が入れる <wbr>）と句読点でだけ改行する。
   1文節が画面幅より長いときだけ、文字の途中で折り返す（はみ出し防止） */
h1, h2, h3, h4, blockquote { word-break: keep-all; overflow-wrap: break-word; line-break: strict; text-wrap: balance; }
.page-hero__tax { font-size: 0.42em; letter-spacing: 0.04em; color: var(--muted-on-dark); vertical-align: 0.35em; margin: 0 0.15em; }
.breadcrumb { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: 0.08em; color: var(--muted-on-dark); flex-wrap: wrap; }
.breadcrumb__link { color: var(--muted-on-dark); }
.breadcrumb__link:hover { color: var(--gold-light); }
.breadcrumb__sep { width: 16px; height: 1px; background: rgba(201,169,110,0.5); }
.breadcrumb__current { color: var(--gold-light); }

/* ---------- 汎用CTA ---------- */
.cta-section { position: relative; padding: clamp(112px,13vw,200px) clamp(20px,5vw,40px); background: var(--ink); color: var(--paper); overflow: hidden; text-align: center; }
.cta-section__bg { position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(59,91,219,0.22), rgba(59,91,219,0) 70%); }
.cta-section canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-section__inner { position: relative; max-width: 840px; margin: 0 auto; }
.cta-section__title { margin: 0; font-family: var(--font-serif-ja); font-weight: 500; font-size: clamp(22px,4.4vw,54px); line-height: 1.6; letter-spacing: 0.04em; text-wrap: balance; }
.cta-section__lead { margin: 28px 0 0; font-size: clamp(14px,1.4vw,16px); line-height: 1.9; color: #D3D6E3; }
.cta-section__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 48px; }

/* ---------- アコーディオン（common.js の data-acc） ---------- */
[data-acc-panel] { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s cubic-bezier(.2,.7,.2,1); }
[data-acc-panel] > * { overflow: hidden; min-height: 0; }
[data-acc-item].is-open > [data-acc-panel] { grid-template-rows: 1fr; }
[data-acc-icon] { transition: transform 0.4s; }
[data-acc-item].is-open [data-acc-icon] { transform: rotate(90deg) scaleY(0); }

/* ---------- タブ（common.js の data-tabs） ---------- */
[data-tab-item][hidden] { display: none !important; }
[data-tab-item].is-entering { animation: arcanaFadeUp .5s ease-out both; }
@keyframes arcanaFadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 0 clamp(20px,5vw,40px); }
.site-footer__inner { max-width: 1200px; margin: 0 auto; border-top: 1px solid rgba(201,169,110,0.22); padding-top: clamp(56px,6vw,88px); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: 48px clamp(48px,6vw,96px); }
.site-footer__tagline { margin: 20px 0 0; font-family: var(--font-serif-ja); font-size: 14px; line-height: 1.9; color: var(--muted-on-dark); }
.site-footer__company { margin: 20px 0 0; font-size: 13px; color: var(--muted-on-dark); }
.site-footer__brand .btn-outline { margin-top: 28px; height: 44px; padding: 0 20px; font-size: 14px; }
.site-footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-content: start; }
.site-footer__group { display: flex; flex-direction: column; }
.site-footer__group a { display: flex; align-items: center; min-height: 40px; font-size: 14px; color: #D3D6E3; }
@media (hover: hover) { .site-footer__group a:hover { color: var(--gold-light); } }
.site-footer__group a[aria-current="page"] { color: var(--gold-light); }
.site-footer__label { font-family: var(--font-label); font-size: 10px; letter-spacing: 0.26em; color: var(--gold); margin-bottom: 16px; }
.site-footer__bottom {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px;
  margin-top: clamp(56px,6vw,88px); padding: 28px 0 36px; border-top: 1px solid rgba(201,169,110,0.14); font-size: 12px; color: var(--muted-on-dark);
}
.site-footer__bottom a { color: var(--muted-on-dark); }
.site-footer__bottom a:hover { color: var(--gold-light); }
.site-footer__copy { font-family: var(--font-label); letter-spacing: 0.12em; }
@media (max-width: 1099.98px) {
  .site-footer { padding-bottom: 88px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__nav { gap: 24px; }
  .site-footer__group a { min-height: 44px; }
  .site-footer__brand .btn-outline { width: 100%; }
}

/* ---------- スマホ固定CTA ---------- */
.sp-fixed-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(11,16,38,0.82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid rgba(201,169,110,0.2); transition: transform 0.5s;
}
.sp-fixed-cta { transform: translateY(120%); }
.sp-fixed-cta.is-visible { transform: none; }
.menu-open .sp-fixed-cta { transform: translateY(120%); }
.sp-fixed-cta__btn {
  display: flex; align-items: center; justify-content: center; gap: 12px; height: 52px; border-radius: 8px;
  background: var(--gold); color: #0B1026; font-size: 15px; font-weight: 500; letter-spacing: 0.08em;
}
.sp-fixed-cta__btn:hover { color: #0B1026; }

/* ---------- 汎用ページ本文（page.php / プライバシーポリシー） ---------- */
.entry { max-width: 760px; margin: 0 auto; font-size: 16px; line-height: 2; color: var(--text); }
.entry h2 { margin: 64px 0 20px; font-family: var(--font-serif-ja); font-weight: 500; font-size: clamp(20px,2.2vw,26px); line-height: 1.6; letter-spacing: 0.04em; padding-bottom: 12px; border-bottom: 1px solid rgba(126,99,52,0.3); }
.entry h3 { margin: 40px 0 12px; font-family: var(--font-serif-ja); font-weight: 500; font-size: 19px; }
.entry p { margin: 0 0 1.2em; }
.entry ul, .entry ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.entry a:hover { color: var(--text); }

/* ---------- ブロックで編集するページ（page-templates/block-page.php） ---------- */
.block-page { background: var(--paper); }
.block-page > .wp-block-group { margin-block: 0; }
.block-page :where(h2, h3) { margin-block: 0 0.75rem; }
.block-page :where(p, ul, ol, figure) { margin-block: 0 1rem; }
.block-page .wp-block-columns { margin-block: 1.5rem; }
.block-page .wp-block-table { margin-block: 1.5rem 0.5rem; }
.block-page a:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
