*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
/* 横揺れ防止。hidden は sticky・pin を壊すので clip */
html, body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.9;
  color: var(--fg);
  background: var(--bg);
  transition: background-color .3s ease, color .3s ease;
}
:root { --header-h: 72px; --font-en: "Outfit", "Helvetica Neue", Arial, sans-serif; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.4; letter-spacing: .02em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
img, svg, iframe { display: block; max-width: 100%; }
/* height 属性があると、幅だけ縮んで縦に伸びるため */
img { height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; width: auto; height: auto;
  margin: 0; padding: 10px 16px; clip: auto; overflow: visible; white-space: normal;
  background: var(--fg); color: var(--bg); border-radius: 999px; z-index: 300;
}

/* レイアウト */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { position: relative; padding: 112px 0; color: var(--fg); background: var(--bg); }
@media (max-width: 768px) { .section { padding: 80px 0; } }
.section-head { margin-bottom: 48px; }
.section-title { font-size: clamp(28px, 4vw, 40px); }
.section-title__en {
  display: block; font-family: var(--font-en); font-weight: 700; font-size: clamp(40px, 7vw, 64px);
  line-height: .95; letter-spacing: -.02em; text-transform: uppercase; margin-bottom: 12px;
}
.eyebrow {
  font-family: var(--font-en); font-size: 11px; font-weight: 600; letter-spacing: .3em;
  text-transform: uppercase; color: var(--fg-2); margin-bottom: 16px;
}
/* 文（.ph）の途中で改行させず、1行に収まらない文は文節で折り返す */
.lead { font-size: 18px; max-width: 40em; word-break: auto-phrase; text-wrap: pretty; }
.lead .ph { display: inline-block; }
.muted { color: var(--fg-2); }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; font-weight: 700; font-size: 14px; letter-spacing: .06em;
  text-decoration: none; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); }
.btn--sm { padding: 10px 18px; font-size: 13px; }

/* ヘッダー */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
  color: var(--fg);
  transition: transform .35s ease;
}
.site-header.is-hidden { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-en); font-weight: 700; font-size: 20px; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
/* ロゴマーク：本体は文字色（テーマ・メニュー展開に追従）、差し色は担当色 */
.brand__mark { flex: none; width: auto; height: 1.3em; fill: currentColor; }
.brand__mark .m1 { fill: var(--p1); }
.brand__mark .m2 { fill: var(--p2); }
.brand__mark .m3 { fill: var(--p3); }
.site-nav ul { display: flex; gap: 28px; }
.site-nav a { font-family: var(--font-en); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.nav-toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav-toggle span:not(.sr-only) { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle span:nth-child(1) { top: 16px; } .nav-toggle span:nth-child(2) { top: 26px; }
/* JS 無効時は固定を解き、ナビが折り返せるよう高さを内容に合わせる */
html:not(.js) .site-header {
  position: static; height: auto; flex-wrap: wrap; padding: 12px 24px; gap: 8px 16px;
  color: var(--fg);
}
html:not(.js) .hero { padding-top: 40px; }
html:not(.js) .site-nav ul { flex-wrap: wrap; }
@media (max-width: 768px) {
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-nav {
    position: static; z-index: auto; opacity: 1; visibility: visible;
    flex-direction: row; flex-wrap: wrap; gap: 12px; background: none; color: inherit;
  }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; gap: 14px; }
  .nav-toggle { display: block; }
  /* 開いたメニューの地（--inv-bg）の上でもロゴやボタンが読めるように */
  .site-header.is-open .brand,
  .site-header.is-open .site-nav ul,
  .site-header.is-open .nav-toggle { color: var(--inv-fg); }
  .site-nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 40px;
    background: var(--inv-bg); color: var(--inv-fg); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s;
  }
  .site-header.is-open .site-nav { opacity: 1; visibility: visible; transition-delay: 0s; }
  .site-nav ul { flex-direction: column; align-items: center; gap: 24px; }
  .site-nav a { font-size: 16px; }
  .site-nav .btn { background: var(--inv-accent); color: var(--inv-accent-fg); }
  .site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .site-header.is-open .nav-toggle span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }
}

@media (prefers-reduced-motion: reduce) {
  .site-header, .site-nav, .nav-toggle span:not(.sr-only) { transition: none; }
  body, .btn { transition: none; }
}

/* フッター */
.site-footer { padding: 48px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--fg-2); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-footer ul { display: flex; gap: 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* サブページ共通 */
.page { padding: calc(var(--header-h) + 64px) 0 96px; }
html:not(.js) .page { padding-top: 64px; }
.page .container { max-width: 800px; }
.page h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 24px; }
.page h2 { font-size: 20px; margin: 40px 0 12px; }
.page-en { display: block; font-family: var(--font-en); font-weight: 700; font-size: 14px; letter-spacing: .3em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 12px; }

/* プライバシーポリシーの事業者・窓口 */
.policy-contact { display: grid; gap: 8px; margin: 12px 0 16px; }
.policy-contact div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; }
.policy-contact dt { color: var(--fg-2); }
.policy-contact dd { margin: 0; }
