/* WebP と JPEG を出し分ける <picture> が、中の画像の大きさ・配置を変えないようにする */
picture { display: contents; }
/* <source> は Chrome で display:block のため、<picture> を display:contents にすると格子・flex の1つの枠になり、列や間隔がずれる。消しても画像の選び分けには影響しない */
picture > source { display: none; }
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --ocean-deep: #0C3347;
  --ocean-mid: #2E9BB5;
  --ocean-light: #7ECDE0;
  --ocean-dark: #061820;
  --text-muted: rgba(255,255,255,0.65);
  --text-hint: rgba(255,255,255,0.55);
  --sans: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  /* 見出しは明朝。写真の多いページで、ゴシックの細字・太字の組み合わせより落ち着いて見える */
  --serif: 'Hiragino Mincho ProN', 'Yu Mincho', YuMincho, 'Noto Serif JP', 'Noto Serif TC', serif;
}
:root:lang(en) { --serif: Georgia, 'Times New Roman', serif;
}
/* 繁体字は和文の明朝だと句読点の位置が違う（左下に寄る）ので、繁体字の明朝にする */
:root:lang(zh) { --serif: 'Songti TC', 'Noto Serif TC', PMingLiU, serif; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--ocean-dark);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}
nav {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 201;
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to bottom, rgba(6,24,32,0.95), transparent);
}
.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.nav-logo img { width: 26px; height: 26px; }
/* ロゴのリンクも、navの高さを変えずに押せる範囲だけ上下に広げて高さ44px以上にする */
.nav-logo { position: relative; }
.nav-logo::after { content: ""; position: absolute; inset: -10px -4px; }
.nav-logo-text { font-size: 13px; font-weight: 600; letter-spacing: 2px; color: #fff; }
.lang-switch { display: flex; gap: 4px; }
.lang-switch a {
  font-size: 12px; color: var(--text-muted); letter-spacing: 0.5px;
  padding: 4px 9px; border-radius: 20px; text-decoration: none;
  border: 0.5px solid rgba(126,205,224,0.2);
}
.lang-switch a.active {
  color: var(--ocean-light); background: rgba(46,155,181,0.2);
  border-color: rgba(126,205,224,0.4);
}
.nav-right { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  width: 30px; height: 24px; display: flex; flex-direction: column;
  justify-content: space-between; cursor: pointer; background: none; border: none; padding: 0;
}
.menu-btn span { display: block; height: 1.5px; background: #fff; border-radius: 2px; }
/* 押せる範囲を44px四方以上にする（言語は丸の幅を44px以上にして上下を::afterで広げ、横の広げ幅は言語の間の4px・メニューとの間の10pxを分け合って重ねない。メニューは見た目30×24pxのまま） */
.lang-switch a, .menu-btn { position: relative; }
.lang-switch a { min-width: 44px; text-align: center; }
.lang-switch a::after { content: ""; position: absolute; inset: -10px -2px; }
.menu-btn::after { content: ""; position: absolute; inset: -11px -8px; }
/* 開いたメニューの上にもボタンを出し、✕にして同じ場所で閉じられるようにする（navをメニュー・暗幕より上に置く） */
.menu-btn span { transition: transform 0.25s ease, opacity 0.25s ease; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(11.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-11.25px) rotate(-45deg); }
/* メニューを開いている間は、後ろのページをスクロールさせない */
body:has(.menu-panel.open) { overflow: hidden; }
.menu-panel {
  position: fixed; top: 0; right: 0; left: auto; height: 100%; width: 240px; max-width: 70%;
  background: var(--ocean-deep); z-index: 200; padding: 80px 24px 24px;
  transform: translateX(100%); transition: transform 0.25s ease, visibility 0s linear 0.25s; visibility: hidden;
  border-left: 0.5px solid rgba(126,205,224,0.2);
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
}
/* 閉じている間はリンクをTabと読み上げの対象から外す（閉じる動きの後に隠す） */
.menu-panel.open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
.menu-panel a {
  display: block; font-size: 14px; color: #fff; text-decoration: none;
  padding: 14px 0; border-bottom: 0.5px solid rgba(126,205,224,0.12);
}
.menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 199;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.menu-overlay.open { opacity: 1; pointer-events: auto; }
/* 動きを減らす設定の人には、メニューの開閉をすぐ切り替える（ai-native-web の static の指摘） */
@media (prefers-reduced-motion: reduce) { .menu-btn span, .menu-panel, .menu-overlay { transition: none; } }
.hero {
  position: relative; min-height: 100svh; height: 100svh;
  overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 0 56px; /* 左右は .hero-content の24pxだけにして下の節とそろえる。下の56pxは文字の高さの位置を変えないため残す */
}
.hero-bg {
  position: absolute; inset: 0;
  /* 協会トップの写真は、人の写っていない作品の全景（作家の許諾済みの素材を縮小だけしたもの） */
  background-image: url('../images/home-hero.jpg');
  background-image: image-set(url('../images/home-hero.webp') type('image/webp'), url('../images/home-hero.jpg') type('image/jpeg'));
  background-size: cover; background-position: center 45%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(6,24,32,0.25) 0%, rgba(6,24,32,0.15) 30%, rgba(6,24,32,0.55) 60%, rgba(6,24,32,0.97) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 0 24px 44px; }
/* 作品の写真のクレジット（作家との約束で必ず入れる。#755） */
.hero-credit { position: absolute; right: 24px; bottom: 16px; z-index: 1; font-size: 11px; color: rgba(255,255,255,0.55); }
.hero-title { font-family: var(--serif); font-size: 36px; font-weight: 500; line-height: 1.3; letter-spacing: 0.02em; margin-bottom: 16px; }
.hero-sub { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 26px; max-width: 320px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px; background: #1F7A8F; color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: 0.02em; padding: 14px 24px; border-radius: 6px;
  text-decoration: none; border: none; cursor: pointer; width: 100%;
  justify-content: center; text-align: center; text-wrap: balance;
}
section { padding: 56px 24px; }
.section-title { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.45; margin-bottom: 16px; }
.section-body { font-size: 14px; color: var(--text-muted); line-height: 1.8; }


/* 写真は画面の端まで使い、説明は写真の下に短く置く */
.text-link { display: inline-block; margin-top: 12px; font-size: 14px; color: var(--ocean-light); }
.cta-note { font-size: 13px; color: var(--text-muted); margin-top: 10px; }
/* パスの見本：会員ページの実際の画面を切り出した画像。カードの角は画像の外側の背景を隠すため丸める */

/* FORM */
.form-section { background: linear-gradient(to bottom, var(--ocean-dark), var(--ocean-deep)); }
.form-card { margin-top: 24px; }
.form-group { margin-bottom: 16px; }
.form-optional { margin: 8px 0 20px; }
.form-optional > summary { color: var(--ocean-light); font-size: 16px; line-height: 24px; padding: 10px 0; cursor: pointer; }
.form-optional[open] > summary { margin-bottom: 12px; }
.form-optional > summary:focus-visible { outline: 2px solid var(--ocean-light); outline-offset: 4px; }
.form-label { display: block; font-size: 13px; color: var(--ocean-light); letter-spacing: 0.5px; margin-bottom: 6px; }
.form-label .req { color: #E89; font-size: 11px; margin-left: 4px; }
.form-input, .form-select, .form-textarea {
  width: 100%; background: rgba(255,255,255,0.06); border: 0.5px solid rgba(126,205,224,0.25);
  border-radius: 8px; padding: 12px 14px; color: #fff; font-size: 16px; font-family: inherit;
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-select { appearance: none; -webkit-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; }
.radio-group, .check-group { display: flex; flex-direction: column; gap: 8px; }
.radio-option, .check-option {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.04); border: 0.5px solid rgba(126,205,224,0.15);
  border-radius: 8px; padding: 11px 14px; min-height: 44px; box-sizing: border-box; cursor: pointer;
}
.radio-option input, .check-option input { accent-color: var(--ocean-mid); width: 16px; height: 16px; flex-shrink: 0; }
.radio-option span, .check-option span { font-size: 14px; color: rgba(255,255,255,0.85); }
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0; min-height: 44px; }
/* 同意のチェックは押しやすいよう24px（押せる大きさの最小の目安）。ラベルは別の要素なので、四角そのものを大きくする */
.consent-row input { margin-top: 0; accent-color: var(--ocean-mid); width: 24px; height: 24px; flex-shrink: 0; }
.consent-row label { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.consent-row a { color: var(--ocean-light); text-decoration: underline; }
.form-lead { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 24px; }
.form-lead a { color: var(--ocean-light); }
.form-note { font-size: 12px; color: var(--text-hint); margin-top: 16px; line-height: 1.7; text-align: center; }

/* FAQ */


/* PCでは本文の列を少し広げる（スマホの幅のまま中央に細く並べない） */
@media (min-width: 760px) {
  body, nav:not(.menu-panel) { max-width: 560px; }
  .hero-sub { max-width: 420px; }
}

/* 広いPCでは、スマホの縦長の1列を中央に置かず、写真を大きく使って横にも並べる（文言と構成は変えない） */
@media (min-width: 1024px) {
  body, nav:not(.menu-panel) { max-width: 1120px; }
  nav:not(.menu-panel) { padding: 20px 48px; }
  .hero { padding-bottom: 72px; }
  .hero-content { padding: 0 48px 48px; max-width: 640px; }
  .hero-title { font-size: 52px; }
  .hero-sub { font-size: 16px; max-width: 520px; }
  .btn-primary { width: auto; padding: 14px 32px; }
  section { padding: 80px 48px; }
  .section-title { font-size: 32px; }
  .section-body { font-size: 15px; max-width: 640px; }
  /* お知らせの登録は、見出しを左、フォームを右に置く */
  .form-section { display: grid; grid-template-columns: 1fr 2fr; column-gap: 48px; align-content: start; }
  .form-section > h2 { grid-row: 1 / span 20; }
  .form-section > :not(h2) { grid-column: 2; }
  /* フォームは本文と同じ幅にし、選択肢は2列に並べる（右半分が空き、縦に2画面分ほど続いていた） */
  .form-card { max-width: 760px; }
  /* 左にそろえた送信ボタンの下で、注記だけが中央に寄らないようにする */
  .form-note { text-align: left; }
  .radio-group, .check-group { display: grid; grid-template-columns: 1fr 1fr; }
}
