/* がくサバ！ 公式サイト（ゲームの UI と同じ色：紺・クリーム・黄色・空色） */
:root {
  --navy: #17284a;
  --navy-2: #22396a;
  --cream: #fff7e8;
  --paper: #fffdf7;
  --yellow: #f6c32b;
  --yellow-2: #e0a812;
  --sky: #3f8ae0;
  --green: #22b573;
  --pink: #f2557a;
  --ink: #1d2a3f;
  --muted: #5a6577;
  --line: #e6dcc4;
  --radius: 18px;
  --shadow: 0 6px 0 rgba(23, 40, 74, .18);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-weight: 500;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); }
a:hover { color: var(--navy-2); }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(23, 40, 74, .94);
  backdrop-filter: blur(8px);
  border-bottom: 4px solid var(--yellow);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.site-header .brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 6px; flex-wrap: nowrap; justify-content: flex-end; }
.nav a {
  color: #fff; text-decoration: none; font-weight: 800; font-size: .95rem; white-space: nowrap;
  padding: 6px 12px; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--yellow); color: var(--navy); }
@media (max-width: 640px) {
  .site-header .wrap { height: 56px; }
  .site-header .brand img { height: 32px; }
  .nav { gap: 2px; }
  .nav a { font-size: .8rem; padding: 4px 8px; }
  .release { flex-direction: column; gap: 0; border-radius: 24px; padding: 10px 22px; }
  .nav .wide { display: none; }
}

/* ---------- トップの大きな絵 ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(88vh, 760px);
  display: grid; place-items: center;
  background: #5b7aa0 url("courtyard.webp") center 62% / cover no-repeat;
  text-align: center; color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 23, 43, .10) 0%, rgba(10, 23, 43, .05) 45%, rgba(10, 23, 43, .55) 100%);
}
.hero-inner { position: relative; padding: 48px 16px 72px; }
.hero-logo {
  width: min(820px, 92vw); margin: 0 auto;
  filter: drop-shadow(0 10px 18px rgba(10, 23, 43, .35));
  animation: bob 4.5s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } html { scroll-behavior: auto; } }
.catch {
  margin: 18px 0 0;
  font-family: "Mochiy Pop One", "M PLUS Rounded 1c", sans-serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 4.6vw, 2.6rem);
  line-height: 1.35;
  text-shadow: 0 3px 0 var(--navy), 0 0 18px rgba(10, 23, 43, .6);
  -webkit-text-stroke: 1px var(--navy);
}
.release {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 26px; padding: 12px 26px;
  background: var(--yellow); color: var(--navy);
  border: 3px solid var(--navy); border-radius: 999px;
  font-weight: 800; font-size: clamp(1rem, 2.6vw, 1.2rem);
  box-shadow: 0 5px 0 var(--navy);
}
.release small { font-weight: 700; font-size: .8em; opacity: .8; }
.release, .release small { white-space: nowrap; }

/* ---------- 見出し・セクション ---------- */
section { padding: 72px 0; }
.sec-title {
  margin: 0 0 32px; text-align: center;
  font-family: "Mochiy Pop One", "M PLUS Rounded 1c", sans-serif;
  font-weight: 400; color: var(--navy);
  font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.3;
}
.sec-title span { display: block; font-family: "M PLUS Rounded 1c", sans-serif; font-weight: 800; font-size: .95rem; letter-spacing: .2em; color: var(--sky); }

.about { background: var(--paper); }
.about-box { display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: center; max-width: 860px; margin: 0 auto; }
.about-box img { border-radius: 44px; box-shadow: var(--shadow); border: 4px solid var(--navy); }
.about-box p { margin: 0 0 .8em; font-size: 1.08rem; }
.about-box strong { background: linear-gradient(transparent 60%, rgba(246, 195, 43, .55) 60%); }
@media (max-width: 640px) {
  .about-box { grid-template-columns: 1fr; text-align: left; gap: 20px; }
  .about-box img { width: 140px; border-radius: 32px; margin: 0 auto; }
}

/* ---------- 特徴カード ---------- */
.features { background: var(--sky); background-image: radial-gradient(rgba(255,255,255,.12) 2px, transparent 2px); background-size: 22px 22px; }
.features .sec-title { color: #fff; text-shadow: 0 3px 0 var(--navy); }
.features .sec-title span { color: var(--yellow); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (min-width: 1020px) { .cards { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 3px solid var(--navy); border-radius: var(--radius);
  padding: 24px 22px 20px; box-shadow: 0 6px 0 var(--navy);
}
.card .num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--yellow); color: var(--navy); border: 3px solid var(--navy);
  font-family: "Cherry Bomb One", sans-serif; font-size: 1.3rem; line-height: 1;
}
.card h3 { margin: 12px 0 6px; color: var(--navy); font-size: 1.22rem; line-height: 1.45; font-weight: 800; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- お知らせ ---------- */
.news-list { list-style: none; margin: 0 auto; padding: 0; max-width: 780px; background: #fff; border: 3px solid var(--navy); border-radius: var(--radius); box-shadow: var(--shadow); }
.news-list li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 18px 22px; border-top: 2px dashed var(--line); }
.news-list li:first-child { border-top: 0; }
.news-list time { font-weight: 800; color: var(--sky); }
@media (max-width: 520px) { .news-list li { grid-template-columns: 1fr; gap: 0; } }

/* ---------- 下のリンク ---------- */
.site-footer { background: var(--navy); color: #cfd8ea; padding: 44px 0 36px; text-align: center; font-size: .92rem; }
.site-footer img { height: 46px; width: auto; margin: 0 auto 14px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 0 0 14px; padding: 0; list-style: none; }
.foot-links a { color: #fff; font-weight: 700; text-decoration: none; }
.foot-links a:hover { color: var(--yellow); text-decoration: underline; }
.site-footer small { display: block; color: #8f9cb6; }

/* ---------- 文章のページ（プライバシー・サポート） ---------- */
.doc-head { background: var(--navy); color: #fff; padding: 48px 0 40px; text-align: center; border-bottom: 6px solid var(--yellow); }
.doc-head h1 {
  margin: 0; font-family: "Mochiy Pop One", "M PLUS Rounded 1c", sans-serif; font-weight: 400;
  font-size: clamp(1.8rem, 5.5vw, 2.6rem); line-height: 1.3;
}
.doc-head p { margin: 8px 0 0; color: #cfd8ea; }
.doc { padding: 44px 0 72px; }
.doc .paper {
  max-width: 820px; margin: 0 auto; background: var(--paper);
  border: 3px solid var(--navy); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(22px, 5vw, 48px);
}
.doc h2 {
  margin: 2.2em 0 .6em; padding: 4px 0 4px 14px; border-left: 8px solid var(--yellow);
  color: var(--navy); font-size: 1.28rem; line-height: 1.5; font-weight: 800;
}
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin: 1.6em 0 .4em; color: var(--navy); font-size: 1.08rem; font-weight: 800; }
.doc p, .doc li { font-size: 1rem; }
.doc p { margin: 0 0 .9em; }
.doc ul, .doc ol { margin: 0 0 1em; padding-left: 1.4em; }
.doc li + li { margin-top: .35em; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .95rem; }
.doc th, .doc td { border: 2px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: #fff3d1; color: var(--navy); white-space: nowrap; }
@media (max-width: 600px) {
  .doc table, .doc tbody, .doc tr, .doc th, .doc td { display: block; width: 100%; }
  .doc tr { margin-bottom: 10px; }
  .doc th { border-bottom: 0; }
}
.note { background: #eaf3ff; border: 2px solid #b9d3f5; border-radius: 12px; padding: 14px 16px; margin: 0 0 1.2em; }
.mail {
  display: inline-block; margin: 4px 0 10px; padding: 10px 20px;
  background: var(--yellow); color: var(--navy); border: 3px solid var(--navy); border-radius: 999px;
  font-weight: 800; text-decoration: none; box-shadow: 0 4px 0 var(--navy);
}
.mail:hover { background: #ffd65a; color: var(--navy); }
.faq details { border: 2px solid var(--line); border-radius: 12px; background: #fff; margin: 0 0 12px; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 800; color: var(--navy); list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; position: absolute; right: 16px; top: 12px; color: var(--sky); font-weight: 800; }
.faq details[open] summary::after { content: "－"; }
.faq details > div { padding: 0 16px 6px; }
.updated { color: var(--muted); font-size: .9rem; text-align: right; margin-top: 2em; }

/* ---------- お問い合わせフォーム ---------- */
.steps { display: flex; gap: 8px; list-style: none; margin: 0 0 28px; padding: 0; counter-reset: st; }
.steps li {
  flex: 1; text-align: center; padding: 8px 4px; border-radius: 999px;
  background: #ece5d3; color: var(--muted); font-weight: 800; font-size: .95rem; counter-increment: st;
}
.steps li::before { content: counter(st) ". "; }
.steps li.on { background: var(--navy); color: #fff; }
.cform h2 { margin-top: 0; }
.hint { margin: 0 0 24px; padding: 14px 16px 14px 34px; background: #fff3d1; border-radius: 12px; font-size: .93rem; }
.group { border: 0; margin: 0 0 8px; padding: 0; min-width: 0; }
.group legend {
  width: 100%; margin: 26px 0 12px; padding: 4px 0 4px 14px; border-left: 8px solid var(--yellow);
  color: var(--navy); font-size: 1.15rem; font-weight: 800;
}
.field { margin: 0 0 18px; }
.field > label { display: block; margin: 0 0 6px; font-weight: 800; color: var(--navy); }
.req {
  display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 6px;
  background: var(--pink); color: #fff; font-size: .75rem; line-height: 1.7; vertical-align: 2px;
}
.req[hidden] { display: none; }
.cform input:not([type="checkbox"]):not([type="file"]), .cform select, .cform textarea {
  width: 100%; padding: 12px 14px; border: 2px solid #cfc4a8; border-radius: 12px; background: #fff;
  color: var(--ink); font: inherit; font-size: 16px; line-height: 1.6;
}
.cform textarea { resize: vertical; min-height: 6em; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: 3px solid rgba(63, 138, 224, .35); border-color: var(--sky); }
.cform input[type="file"] { display: block; max-width: 100%; font: inherit; font-size: .95rem; }
.cform .bad { border-color: var(--pink) !important; background: #fff1f4 !important; }
.agree .bad, input[type="checkbox"].bad { outline: 3px solid var(--pink); }
.help { margin: 6px 0 0 !important; color: var(--muted); font-size: .88rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.agree { margin: 26px 0 8px; padding: 16px; border: 2px dashed var(--line); border-radius: 12px; background: #fff; }
.agree label { display: flex; gap: 10px; align-items: center; font-weight: 800; color: var(--navy); }
.agree input { width: 22px; height: 22px; flex: none; }
.error { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #fff1f4; border: 2px solid var(--pink); color: #a3123a; font-weight: 700; white-space: pre-line; }
.error[hidden] { display: none; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.btn {
  display: inline-block; min-width: 200px; padding: 14px 28px; border: 3px solid var(--navy); border-radius: 999px;
  background: var(--yellow); color: var(--navy); font: inherit; font-weight: 800; font-size: 1.05rem; text-align: center;
  text-decoration: none; cursor: pointer; box-shadow: 0 5px 0 var(--navy);
}
.btn:hover { background: #ffd65a; color: var(--navy); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--navy); }
.btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: 0 5px 0 var(--navy); }
.btn.ghost { background: #fff; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.thumbs:empty { display: none; }
.thumbs figure { position: relative; margin: 0; width: 110px; }
.thumbs img { width: 110px; height: 110px; object-fit: cover; border-radius: 10px; border: 2px solid var(--line); background: #fff; }
.thumbs .del {
  position: absolute; right: 4px; top: 4px; padding: 2px 8px; border: 0; border-radius: 999px;
  background: rgba(23, 40, 74, .85); color: #fff; font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer;
}
.review { display: grid; grid-template-columns: 11em 1fr; margin: 0 0 12px; border-top: 2px solid var(--line); }
.review dt, .review dd { margin: 0; padding: 10px 8px; border-bottom: 2px solid var(--line); }
.review dt { font-weight: 800; color: var(--navy); background: #fff3d1; }
.review dd { white-space: pre-wrap; }
@media (max-width: 560px) {
  .review { grid-template-columns: 1fr; }
  .review dt { border-bottom: 0; padding-bottom: 4px; }
}
