* { margin: 0; padding: 0; box-sizing: border-box; }
/* 会員ページと同じ色と書体。写真で海とサンゴの様子を先に見せ、説明は短く区切る */
:root {
  --bg: #F6F3EC; --paper: #FFFDF8; --line: #E3DCCF; --ink: #10242C; --ink-2: #46575D;
  --sea: #0A2F3B; --accent: #0B6470; --foam: #E2EFEC;
  --sans: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic', YuGothic, Meiryo, 'Noto Sans JP', 'Noto Sans CJK JP', 'Helvetica Neue', Arial, sans-serif;
}
body { font-family: var(--sans); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
body > nav { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px; max-width: 1040px; margin: 0 auto; }
/* タブレット・PCは左右の余白をトップページと同じ24pxにする */
@media (min-width: 600px) { .wrap { padding: 0 24px; } body > nav { padding: 6px 24px; } }
.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); min-height: 44px; }
.nav-logo img { width: 24px; height: 24px; filter: brightness(0); opacity: .85; }
.nav-logo-text { font-size: 14px; font-weight: 700; letter-spacing: .08em; }
.nav-page { font-size: 13px; font-weight: 600; color: var(--ink-2); padding-left: 10px; border-left: 1px solid var(--line); }
.lang-switch { display: flex; margin-right: -8px; }
.lang-switch a { font-size: 13px; color: var(--ink-2); min-width: 44px; min-height: 44px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; text-decoration: underline 2px transparent; text-underline-offset: 6px; }
.lang-switch a[aria-current] { color: var(--ink); font-weight: 600; text-decoration-color: var(--accent); }
/* 狭い画面で「アートパスポート」と「日本語」が途中で2行に割れないよう、1行に保ち、入らない幅ではページ名を隠す（会員ページと同じ） */
.nav-page, .lang-switch a { white-space: nowrap; }
@media (max-width: 359px) { .nav-page { display: none; } }

/* 最初の画面：海の色の上に、パスの名前と一文。作家の許諾が出るまで、パスの画面には作品の写真を出さない（RATA 2026-11-04 #755） */
.hero { position: relative; color: #fff; background: linear-gradient(160deg, #12414F, var(--sea)); min-height: min(52svh, 420px); display: flex; align-items: flex-end; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,47,59,0) 30%, rgba(10,47,59,.82) 100%); }
.hero .wrap { position: relative; padding-top: 120px; padding-bottom: 28px; width: 100%; }
/* 見出しの上の白い丸い札は、下の白いボタンと目を取り合うので、写真の上の文字にとどめる */
.badge { display: block; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.hero h1 { font-size: clamp(30px, 6vw, 48px); line-height: 1.2; font-weight: 700; margin-bottom: 10px; }
.hero p { font-size: 16px; max-width: 36em; color: rgba(255,255,255,.92); }
.hero-place { font-size: 13px; opacity: .85; margin-top: 12px; }
/* 写真の上のボタンは、すぐ下の料金と登録フォームのカードへ移る */
.hero-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 32px; margin-top: 20px; border-radius: 12px; background: #fff; color: var(--sea); font-weight: 700; font-size: 17px; text-decoration: none; }
/* 暗い写真の上では、ほかの場所の濃い青緑の枠が見えないので、白い枠にする */
.hero-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

section { padding: 40px 0 8px; }
/* PC：料金と登録フォームのカードと「パスを受け取るまで」、よくある質問と「ご利用にあたって」を左右に並べ、右半分を空けない */
@media (min-width: 900px) {
  main.wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; align-items: start; }
  main.wrap > section { grid-column: 1 / -1; }
  main.wrap > #passRegister, main.wrap > #faqSection { grid-column: 1; }
  main.wrap > #passRegister + section, main.wrap > #faqSection + section { grid-column: 2; }
}
h2 { font-size: 22px; line-height: 1.35; margin-bottom: 14px; }
.lead { color: var(--ink-2); max-width: 40em; margin-bottom: 18px; }

/* スマホは文の行を縦に並べて細い線で区切り、PCは3列に並べる */
.features { display: grid; border-bottom: 1px solid var(--line); }
.feature { padding: 14px 0; border-top: 1px solid var(--line); min-width: 0; }
.feature h3 { font-size: 16px; line-height: 1.4; margin-bottom: 4px; }
@media (min-width: 760px) {
  .features { grid-template-columns: repeat(3, 1fr); gap: 14px; border-bottom: 0; }
  .feature { padding: 16px 0 0; border-top: 1px solid var(--line); }
  .feature h3 { font-size: 17px; margin-bottom: 6px; }
}
.feature p { font-size: 14px; color: var(--ink-2); }
.feature p + p { margin-top: 6px; }

/* 無料期間のパスのカード：料金（¥0）のすぐ下に登録フォームを置き、ボタンは送信の1つだけにする（受付停止中は案内文を出す） */
.plan { background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
@media (min-width: 760px) { .plan { padding: 24px 28px; } }
.plan-price { font-size: 32px; font-weight: 700; line-height: 1.1; }
.plan-price small { font-size: 15px; font-weight: 600; margin-left: 6px; color: var(--ink-2); }
.plan-note { font-size: 14px; color: var(--ink-2); margin: 8px 0 4px; }

/* 無料パスの登録フォーム（受付中のときだけ js/pass-register.js が表示する） */
.register { max-width: 32em; }
.register [hidden] { display: none !important; }
.register-form { display: grid; gap: 6px; }
.register-form label { font-weight: 600; font-size: 14px; margin-top: 8px; }
.register-form label span { font-weight: 400; color: var(--ink-2); }
.register-form input[type=email], .register-form input[type=text], .register-form select { font: inherit; font-size: 16px; min-height: 48px; padding: 8px 12px; border: 1px solid #7B8A91; border-radius: 10px; background: var(--paper); color: var(--ink); width: 100%; }
/* Safari は既定の見た目の select に高さ・余白を当てず、細い灰色の欄になるため、見た目を外して矢印を描く */
.register-form select { -webkit-appearance: none; appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-repeat: no-repeat; background-size: 5px 5px; background-position: right 18px center, right 13px center; }
.register-form .consent { display: flex; align-items: center; gap: 10px; font-weight: 400; min-height: 44px; }
.register-form .consent input { width: 22px; height: 22px; flex-shrink: 0; accent-color: var(--accent); }
.register-form button { font: inherit; font-weight: 700; font-size: 17px; min-height: 52px; border: 0; border-radius: 12px; background: var(--sea); color: #fff; margin-top: 8px; cursor: pointer; }
.register-form button:disabled { opacity: .7; cursor: default; }
.form-note { font-size: 13px; color: var(--ink-2); }
.reg-message:empty { display: none; }
.reg-message { color: #A3261B; font-size: 14px; }
.register-done { background: var(--foam); border-radius: 12px; padding: 16px; }
.register-done:focus, #registerClosed:focus { outline: 2px solid var(--accent); outline-offset: 3px; }
input:focus-visible, select:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* パスを受け取るまで：番号の輪とつなぐ線をやめ、番号の文字と細い線の区切りだけで順に並べる */
.steps { list-style: none; counter-reset: step; max-width: 46em; border-bottom: 1px solid var(--line); }
.steps li { counter-increment: step; position: relative; padding: 10px 0 10px 32px; border-top: 1px solid var(--line); font-size: 15px; }
.steps li::before { content: counter(step); position: absolute; left: 4px; top: 10px; color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }

.notice { list-style: none; display: grid; gap: 8px; max-width: 46em; }
.notice li { padding-left: 16px; position: relative; color: var(--ink-2); font-size: 14px; }
.notice li::before { content: '・'; position: absolute; left: 0; }

/* よくある質問：箱にせず細い線で区切り、右の＋で開閉が分かるようにする */
.faq { max-width: 46em; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 700; cursor: pointer; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; content: '+' / ''; flex-shrink: 0; font-size: 22px; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 16px; color: var(--ink-2); font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* 英語・繁体字のパスの名前は長いため、日本語版より広い幅でページ名を隠す */
@media (max-width: 479px) { :lang(en) .nav-page, :lang(zh) .nav-page { display: none; } }
