/* momotechまなびのサイト 共通スタイル（色は momotech HP と同じ） */

:root {
  --main: #597594;
  --main-dark: #43586f;
  --main-thin: #eef2f7;
  --accent: #31af42;
  --danger: #e44141;
  --text: #333;
  --muted: #6b7684;
  --bg: #f7f9ff;
  --white: #fff;
  --border: #dde3ea;
  --pale-yellow: #fdf9ee;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 15px; }
@media (min-width: 600px) { html { font-size: 16px; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "游ゴシック体", YuGothic, "Yu Gothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-weight: 500;
  line-height: 1.8;
  overflow-wrap: anywhere;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--main); }
h1 { font-size: 1.6rem; line-height: 1.4; margin: 0 0 .8em; }
h2 { font-size: 1.25rem; line-height: 1.4; margin: 1.8em 0 .6em; padding-left: .6em; border-left: 5px solid var(--main); }
h3 { font-size: 1.05rem; margin: 1.4em 0 .4em; }

.l-container { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.main { padding: 32px 16px 56px; }

/* ---------- ヘッダー・フッター ---------- */
.site-header { background: var(--white); border-bottom: 3px solid var(--main); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.site-logo { color: var(--main-dark); font-size: 1.4rem; font-weight: 700; text-decoration: none; letter-spacing: .02em; }
.site-logo span { font-size: .8rem; margin-left: .5em; color: var(--muted); }
/* スマホ：ロゴの下に「まなびのサイト」、右に登録・ログインを1行で */
@media (max-width: 480px) {
  .site-logo { font-size: 1.2rem; line-height: 1.2; }
  .site-logo span { display: block; margin-left: 0; font-size: .7rem; }
  .site-nav { gap: 10px; font-size: .8rem; }
  .hero--top h1 { font-size: 1.45rem; }
}
.site-nav { display: flex; gap: 16px; font-size: .9rem; }
.site-nav { align-items: center; }
.site-nav a { text-decoration: none; white-space: nowrap; }
.site-nav__join { background: var(--accent); color: #fff !important; border-radius: 999px; padding: 4px 14px; font-weight: 700; }
.site-nav a[aria-current="page"]:not(.site-nav__join) { font-weight: 700; }

.site-footer { background: var(--main-dark); color: #fff; padding: 24px 0; font-size: .85rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: #fff; }
.site-footer p { margin: 12px 0 0; opacity: .8; }

/* ---------- 部品 ---------- */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
@media (min-width: 600px) { .card { padding: 32px 40px; } }
.card--narrow { max-width: 640px; margin-left: auto; margin-right: auto; }

.hero { text-align: center; padding: 24px 0 8px; }
.hero h1 { font-size: 1.9rem; color: var(--main-dark); }
.hero p { color: var(--muted); margin: 0; }

/* トップの見出し：文章＋絵（スマホでは絵が上） */
.hero--top { display: flex; flex-direction: column-reverse; align-items: center; gap: 8px; text-align: center; padding: 8px 0 24px; }
.hero--top .hero__lead { color: var(--text); font-size: 1.05rem; margin-bottom: .6em; }
.hero--top .btn { margin-top: 12px; }
.hero__img { width: 100%; max-width: 420px; height: auto; }
@media (min-width: 800px) {
  .hero--top { flex-direction: row; justify-content: space-between; text-align: left; gap: 24px; }
  .hero--top .hero__text { flex: 1 1 50%; }
  .hero__img { flex: 0 1 460px; max-width: 460px; }
}

.benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 700px) { .benefits { grid-template-columns: 1fr 1fr; } }
.benefits li { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.benefits img { flex: 0 0 56px; width: 56px; height: 56px; }
.benefits strong { display: block; color: var(--main-dark); }

/* 会員ページのアプリ紹介 */
.app { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--border); }
.app:last-of-type { border-bottom: 0; }
.app__icon { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 22%; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
@media (min-width: 600px) { .app__icon { flex-basis: 96px; width: 96px; height: 96px; } }
.app__body { flex: 1 1 auto; min-width: 0; }
.app__body h3 { margin: .2em 0 .3em; }
.app__body p { margin: 0 0 .6em; }
.shots { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; margin: 8px 0 12px; scroll-snap-type: x mandatory; }
.shots img { flex: 0 0 130px; width: 130px; height: auto; border-radius: 12px; border: 1px solid var(--border); scroll-snap-align: start; }
@media (min-width: 600px) { .shots img { flex-basis: 150px; width: 150px; } }
.btn.btn--store { background: #111; padding: 8px 22px; font-size: .9rem; }
.soon { display: inline-block; padding: 6px 18px; border-radius: 999px; border: 1px dashed var(--main); color: var(--main); font-size: .9rem; font-weight: 700; }

.btn {
  display: inline-block; border: 0; border-radius: 999px; padding: 12px 28px;
  background: var(--accent); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn--sub { background: var(--main); }
.btn--danger { background: var(--danger); }
.btn--small { padding: 4px 14px; font-size: .85rem; font-weight: 500; }
.btn:disabled { opacity: .5; cursor: default; }

.field { margin: 0 0 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 4px; }
input[type="email"], input[type="text"], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px;
  font: inherit; background: #fff; color: var(--text);
}
textarea { min-height: 220px; line-height: 1.7; }
.check { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 20px; }
.check input { margin-top: .45em; }

.note { font-size: .85rem; color: var(--muted); }
.notice { background: var(--pale-yellow); border-left: 5px solid #e5c24e; padding: 12px 16px; border-radius: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.inline-form { display: inline; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* お知らせ */
.news { border-bottom: 1px solid var(--border); padding: 16px 0; }
.news h2 { border: 0; padding: 0; margin: .2em 0 .4em; font-size: 1.1rem; }
.news__meta { margin: 0; font-size: .85rem; color: var(--muted); }
.news__audio { margin: 10px 0 4px; }
.news__audio-label { margin: 0 0 4px; font-size: .85rem; font-weight: bold; }
.news__audio-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.news__audio audio { display: block; flex: 1 1 260px; max-width: 420px; }
.news__audio-note { margin: 4px 0 0; font-size: .8rem; color: var(--muted); line-height: 1.6; }
.news__ja { white-space: nowrap; padding: 8px 22px; }
.tag { display: inline-block; background: var(--main); color: #fff; border-radius: 4px; padding: 0 8px; margin-right: 8px; font-size: .8rem; }
.tag--new { background: #e5484d; }
.tag--update { background: var(--accent); }
.app__meta { font-size: .85rem; color: var(--muted); }
/* App Store の画面写真：縦長（スマホ）も横長（ゲーム）も、高さをそろえて横にならべる */
.shots--auto { align-items: flex-start; }
.shots--auto img { flex: 0 0 auto; width: auto; height: auto; max-height: 240px; max-width: 300px; }
@media (min-width: 600px) { .shots--auto img { flex-basis: auto; width: auto; max-height: 280px; max-width: 340px; } }
.news--link { display: block; color: inherit; text-decoration: none; }
.news--link h2 { color: var(--main); text-decoration: underline; text-underline-offset: 3px; }
.news--link:hover h2 { text-decoration-thickness: 2px; }
.news__topics { margin: .3em 0 .6em; padding-left: 1.4em; list-style: disc; }
.news__topics li { margin: .25em 0; line-height: 1.6; }
.news__more { display: inline-block; margin: 2px 0 12px; padding: 6px 16px; border: 1px solid currentColor; border-radius: 999px; font-size: .9rem; font-weight: bold; color: var(--main); }
.news--link:hover .news__more { background: var(--main); color: #fff; }
.news__excerpt { margin: 0; font-size: .9rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.chip { border: 1px solid var(--border); border-radius: 999px; padding: 2px 12px; font-size: .85rem; color: var(--text); text-decoration: none; }
.chip--on { background: var(--main); border-color: var(--main); color: #fff; }
.mail-body { line-height: 1.9; overflow-wrap: anywhere; }
.video { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 8px 0; }
.video--short { max-width: 320px; aspect-ratio: 9 / 16; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }

/* 管理者ページの表 */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .85rem; }
th, td { border-bottom: 1px solid var(--border); padding: 8px; text-align: left; white-space: nowrap; }
th { background: var(--main-thin); }
.status-active { color: var(--accent); font-weight: 700; }
.status-pending { color: var(--muted); }
.status-banned { color: var(--danger); font-weight: 700; }
.stats { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.stats div { background: var(--main-thin); border-radius: var(--radius); padding: 8px 16px; }
.message { min-height: 1.8em; font-weight: 700; }

/* トップのサンプル動画 */
.sample__videos { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin: 16px 0 8px; }
.sample__videos figure { margin: 0; flex: 0 1 280px; text-align: center; }
.sample__videos figcaption { margin-top: 6px; font-weight: 700; color: var(--main); }
.sample__video { width: 100%; max-width: 280px; height: auto; aspect-ratio: 9 / 16; border-radius: 16px; background: #000; margin: 0 auto; }
.sample__note { text-align: center; color: var(--muted); font-size: .9rem; }
.sample__sources-title { font-size: 1rem; margin: 20px 0 8px; }
.sample__sources { margin: 0 0 16px; padding-left: 1.4em; line-height: 1.7; }
.sample__sources li { margin-bottom: 8px; }
.sample__sources a { font-size: .9rem; overflow-wrap: anywhere; }
.sample__cta { text-align: center; }
.sample__orig { margin-left: 8px; color: var(--muted); font-size: .8rem; }
.video-sources { margin: 8px 0 4px; padding-left: 1.4em; } .video-sources li { margin: 0 0 12px; line-height: 1.7; }
