:root {
  --ink: #17151a;
  --sub: #5d5864;
  --line: #e7e1e6;
  --bg: #fffafb;
  --card: #ffffff;
  --pink: #ff4f8b;
  --pink-soft: #ffe3ec;
  --pink-ink: #c2185b;
  --blue-soft: #e4ecff;
  --blue-ink: #2f4fb5;
  --yellow: #ffe45c;
  --r: 16px;
  --shadow: 4px 4px 0 var(--ink);
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --ko: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  background-image: radial-gradient(var(--pink-soft) 1.2px, transparent 1.2px); background-size: 22px 22px;
  font-family: var(--font); font-weight: 500; font-size: 16px; line-height: 1.85;
}
[lang="ko"] { font-family: var(--ko); }
a { color: var(--pink-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 20px; padding-bottom: 64px; }
h1, h2, h3 { line-height: 1.4; font-weight: 900; }
h1 { font-size: clamp(26px, 5.4vw, 40px); margin: 6px 0 12px; letter-spacing: .01em; }
h2 { font-size: clamp(20px, 4vw, 26px); margin: 52px 0 16px; padding-left: 14px; border-left: 8px solid var(--pink); }
h3 { font-size: 18px; margin: 32px 0 10px; }
h3::before { content: "♡ "; color: var(--pink); }
p { margin: 0 0 16px; }
ul, ol { padding-left: 1.3em; margin: 0 0 16px; }
li { margin-bottom: 6px; }
.small, .note { font-size: 13px; color: var(--sub); }
.num { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* 上の帯・ヘッダー */
.pr-bar { margin: 0; padding: 4px 16px; font-size: 12px; text-align: center; background: var(--ink); color: #fff; }
.pr-bar a { color: var(--yellow); }
.site-h { background: var(--card); border-bottom: 3px solid var(--ink); position: sticky; top: 0; z-index: 10; }
.site-h .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: 20px; color: var(--ink); text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--pink); color: #fff; border: 2px solid var(--ink); font-size: 17px; }
.site-h nav { margin-left: auto; }
.site-h nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-h nav li { margin: 0; }
.site-h nav a { display: block; padding: 8px 10px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; }
.site-h nav a:hover, .site-h nav a[aria-current="page"] { background: var(--pink-soft); color: var(--pink-ink); }
.menu-btn { display: none; margin-left: auto; font: inherit; font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--ink); background: var(--yellow); color: var(--ink); cursor: pointer; }

/* ヒーロー */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: end; padding: 28px 28px 0; margin-top: 8px; background: linear-gradient(135deg, #fff 0%, var(--pink-soft) 100%); border: 3px solid var(--ink); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; }
.hero-t { padding-bottom: 28px; }
.hero h1 { font-size: clamp(28px, 6vw, 46px); }
.hero-c { display: flex; align-items: flex-end; justify-content: center; }
.hero-c img { width: 36%; margin: 0 -3%; filter: drop-shadow(0 6px 0 rgba(23, 21, 26, .12)); }
.hero-c img:nth-child(2) { width: 40%; z-index: 1; }
.kicker { display: inline-block; margin: 0 0 6px; padding: 2px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.lead { font-size: 17px; }
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--ink); background: var(--pink); color: #fff; font-weight: 900; text-decoration: none; box-shadow: 3px 3px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.btn:hover { color: #fff; transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.is-ghost { background: #fff; color: var(--ink); }
.btn.is-ghost:hover { color: var(--ink); }

.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 52px 0 16px; }
.sec-h h2 { margin: 0; }
.sec-h a { font-weight: 700; font-size: 14px; }

/* グループのカード */
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gcard { display: flex; flex-direction: column; gap: 2px; padding: 16px 16px 14px; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; position: relative; overflow: hidden; }
.gcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; background: var(--pink); }
.gcard.is-boy::before { background: #6f8dff; }
.gcard:hover { color: var(--ink); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.gcard-n { font-size: 20px; font-weight: 900; margin-top: 6px; line-height: 1.3; }
.gcard-k { font-size: 12px; color: var(--sub); }
.gcard-m { font-size: 13px; margin-top: 6px; }
.gcard-e { align-self: flex-start; margin-top: 8px; padding: 1px 10px; border-radius: 999px; background: var(--yellow); font-size: 12px; font-weight: 700; }
.gcard[hidden], tr[hidden], .word[hidden] { display: none; }

/* 記事のカード */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.card:hover { color: var(--ink); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.card-k { align-self: flex-start; padding: 0 10px; border-radius: 999px; background: var(--pink-soft); color: var(--pink-ink); font-size: 12px; font-weight: 700; }
.card-t { font-size: 18px; font-weight: 900; line-height: 1.45; }
.card-d { font-size: 13px; color: var(--sub); line-height: 1.7; }

/* ひと単語 */
.words { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.word { display: flex; flex-direction: column; padding: 14px; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); color: var(--ink); text-decoration: none; transition: background .12s; }
.word:hover { background: var(--pink-soft); color: var(--ink); }
.word-ko { font-size: 22px; font-weight: 900; line-height: 1.35; }
.word-kana { font-size: 12px; color: var(--sub); }
.word-ja { font-weight: 700; margin-top: 4px; }
.word-go { margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--pink-ink); }
.search { display: block; margin: 20px 0 16px; }
.search span { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.search input { width: 100%; max-width: 420px; font: inherit; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; }
.trio { display: flex; justify-content: center; align-items: flex-end; gap: 4px; margin: 8px 0 16px; }
.trio img { width: 110px; }

/* 例文カード */
.ph { position: relative; padding: 14px 84px 14px 18px; margin: 0 0 12px; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); border-left: 10px solid var(--pink); }
.ph p { margin: 0; }
.ph-ko { font-size: 21px; font-weight: 700; line-height: 1.5; }
.ph-kana { font-size: 13px; color: var(--sub); }
.ph-ja { font-weight: 700; margin-top: 2px; }
.ph-copy { position: absolute; top: 12px; right: 12px; font: inherit; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; border: 2px solid var(--ink); background: var(--yellow); color: var(--ink); cursor: pointer; }
.ph-copy.is-done { background: var(--ink); color: #fff; }

/* 表 */
.table-wrap { overflow-x: auto; margin: 0 0 12px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
th, td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--ink); color: #fff; font-size: 12px; white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 900; white-space: nowrap; }
table { min-width: 640px; }
table.kv { min-width: 0; }
table.kv th { width: 9em; background: var(--pink-soft); }
.src { white-space: nowrap; font-size: 12px; }
.tag, .lv { display: inline-block; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.tag.is-live { background: var(--pink); color: #fff; }
.tag.is-etc { background: var(--blue-soft); color: var(--blue-ink); }
.lv.is-ok { background: #d9f5df; color: #176b2c; }
.lv.is-rep { background: #f0ecef; color: var(--sub); }

/* 更新情報 */
.news { list-style: none; padding: 0; margin: 0; }
.news li { display: grid; grid-template-columns: 5.6em 9.5em 1fr; gap: 4px 12px; padding: 14px 0; border-bottom: 2px dotted var(--line); margin: 0; align-items: start; }
.news time { font-size: 13px; color: var(--sub); font-variant-numeric: tabular-nums; padding-top: 2px; }
.news-g { justify-self: start; padding: 0 10px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; color: var(--ink); font-size: 12px; font-weight: 900; text-decoration: none; }
.news-g:hover { background: var(--yellow); }
.news-t { font-weight: 900; margin: 0 0 2px; }
.news-b { font-size: 14px; color: var(--sub); margin: 0; }

/* 記事 */
article { background: var(--card); border: 2px solid var(--ink); border-radius: 24px; padding: clamp(18px, 4vw, 40px); box-shadow: var(--shadow); }
.crumbs { font-size: 12px; color: var(--sub); margin: 0 0 12px; }
.crumbs a { color: var(--sub); }
.art-h { margin-bottom: 20px; }
.byline { font-size: 13px; color: var(--sub); margin: 0; }
.g-sub { display: block; font-size: 14px; font-weight: 700; color: var(--sub); margin-top: 4px; }
.g-sub span { margin-left: 10px; }
.toc { margin: 24px 0; padding: 16px 20px; background: var(--pink-soft); border-radius: var(--r); }
.toc-h { font-weight: 900; margin: 0 0 6px; }
.toc ol { margin: 0; }
.toc a { color: var(--ink); }
.members { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.members li { margin: 0; padding: 4px 16px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; font-weight: 900; }
.now li { margin-bottom: 10px; }
.srcs { font-size: 14px; }
.box { margin: 24px 0; padding: 16px 20px; border: 2px solid var(--ink); border-radius: var(--r); background: #fff; }
.box p:last-child { margin-bottom: 0; }
.box-h { font-weight: 900; margin: 0 0 4px; }
.box.is-point { background: var(--yellow); }
.box.is-warn { background: #fff0e6; border-color: #c2410c; }
.box.is-warn .box-h { color: #c2410c; }
.cta { position: relative; margin: 32px 0; padding: 24px 20px 20px; background: var(--pink-soft); border: 3px solid var(--ink); border-radius: 20px; text-align: center; }
.cta .pr { position: absolute; top: -12px; left: 16px; padding: 0 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
.cta-h { font-size: 19px; font-weight: 900; }
.cta small { display: block; margin-top: 12px; color: var(--sub); }
.faq details { border: 2px solid var(--ink); border-radius: var(--r); padding: 12px 16px; margin-bottom: 10px; background: #fff; }
.faq summary { font-weight: 900; cursor: pointer; }
.faq details p { margin: 10px 0 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.chip { font: inherit; font-size: 14px; font-weight: 700; padding: 6px 16px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; }
.chip.is-on { background: var(--ink); color: #fff; }
.related h2 { margin-top: 56px; }
.about-box { margin-top: 56px; padding: 24px; background: var(--card); border: 2px dashed var(--ink); border-radius: 20px; }
.about-box h2 { margin-top: 0; }
dl.terms { margin: 0 0 16px; }
dl.terms dt { font-weight: 900; margin-top: 16px; padding-top: 14px; border-top: 2px dotted var(--line); }
dl.terms dt span { margin-left: 8px; font-size: 13px; font-weight: 700; color: var(--pink-ink); }
dl.terms dd { margin: 2px 0 0; }

/* フッター */
.site-f { background: var(--ink); color: #fff; padding: 36px 0 28px; }
.site-f a { color: #fff; }
.site-f .small { color: #b9b3bd; }
.f-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 20px; }
.f-h { font-weight: 900; color: var(--yellow); margin: 0 0 6px; }
.f-cols ul { list-style: none; padding: 0; margin: 0; font-size: 14px; }

:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 2px; }

@media (max-width: 760px) {
  .menu-btn { display: block; }
  .site-h nav { display: none; width: 100%; margin: 0 0 10px; }
  .site-h nav.is-open { display: block; }
  .site-h nav ul { flex-direction: column; }
  .hero { grid-template-columns: 1fr; padding: 22px 18px 0; }
  .hero-t { padding-bottom: 8px; }
  .hero-c img { width: 30%; }
  .hero-c img:nth-child(2) { width: 34%; }
  .news li { grid-template-columns: auto 1fr; }
  .news li > div { grid-column: 1 / -1; }
  .ph { padding-right: 18px; padding-bottom: 46px; }
  .ph-copy { top: auto; bottom: 10px; }
  .trio img { width: 84px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* 公式MVの埋め込み（グループページ） */
.mv { margin: 24px 0 32px; }
.mv-frame { position: relative; aspect-ratio: 16 / 9; border: 3px solid var(--ink, #111); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink, #111); overflow: hidden; background: #000; }
.mv-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mv figcaption { margin-top: 10px; font-size: .85rem; color: #555; }

/* 手紙の完成例 */
blockquote.letter { margin: 20px 0; padding: 20px 22px; background: var(--card); border: 2px dashed var(--pink); border-radius: var(--r); font-family: "Noto Sans KR", sans-serif; line-height: 2; }
blockquote.letter p { margin: 0 0 12px; }
blockquote.letter p:last-child { margin-bottom: 0; text-align: right; }
