/* いちご韓国語 — 本文を読むためのシンプルなデザイン。スマホ優先。 */
:root {
  --bg: #fff;
  --bg-soft: #faf7f6;
  --ink: #222426;
  --ink-2: #4a4d52;
  --muted: #6f747b;
  --line: #ebe6e4;
  --accent: #e8453f;
  --accent-ink: #c4302b;
  --accent-soft: #fff1ef;
  --blue-soft: #eef5fb;
  --green-soft: #eef7f0;
  --yellow-soft: #fff9e6;
  --radius: 14px;
  --radius-s: 8px;
  --shadow: 0 1px 2px rgba(40, 20, 20, .06), 0 4px 16px rgba(40, 20, 20, .06);
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Noto Sans JP", "Noto Sans KR", "Malgun Gothic", Meiryo, system-ui, sans-serif;
  --measure: 720px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17181a; --bg-soft: #1f2023; --ink: #ececec; --ink-2: #c8cacd; --muted: #9a9ea5; --line: #303236;
    --accent: #ff6b64; --accent-ink: #ff8f89; --accent-soft: #2e1f1f; --blue-soft: #1c2630; --green-soft: #1c2a21; --yellow-soft: #2b2718;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  }
  .hd__logo img, .ft__logo img { filter: brightness(1.15); }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.8 var(--font); overflow-wrap: anywhere; }
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--accent-ink); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wrap--post { max-width: calc(var(--measure) + 32px); }
main { min-height: 60vh; padding-bottom: 56px; }
[lang="ko"] { font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", var(--font); }

/* ヘッダー */
.hd { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hd__in { display: flex; align-items: center; gap: 14px; height: 60px; }
.hd__logo { display: flex; align-items: center; margin-right: auto; }
.hd__logo img { width: auto; height: 30px; display: block; }
.hd__nav { display: none; gap: 4px; }
.hd__nav a, .hd__panel a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.hd__nav a:hover, .hd__nav a[aria-current] { background: var(--accent-soft); color: var(--accent-ink); }
.hd__search { display: grid; place-items: center; width: 40px; height: 40px; color: var(--ink); border-radius: 50%; }
.hd__search:hover { background: var(--accent-soft); color: var(--accent-ink); }
.hd__menu { position: relative; }
.hd__menu summary { list-style: none; display: grid; gap: 5px; width: 40px; height: 40px; place-content: center; cursor: pointer; }
.hd__menu summary::-webkit-details-marker { display: none; }
.hd__menu summary span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.hd__menu[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hd__menu[open] summary span:nth-child(2) { opacity: 0; }
.hd__menu[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.hd__panel { position: absolute; right: 0; top: 48px; width: min(300px, 86vw); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; display: grid; }
.hd__panel a { border-radius: var(--radius-s); padding: 12px; }
.hd__panel a:hover { background: var(--accent-soft); }
@media (min-width: 900px) {
  .hd__nav { display: flex; }
  .hd__menu { display: none; }
  .hd__logo img { height: 34px; }
}

/* ヒーロー */
.hero { background: linear-gradient(180deg, var(--accent-soft), var(--bg)); padding: 40px 0 28px; }
.hero__kicker { margin: 0 0 8px; color: var(--accent-ink); font-weight: 700; font-size: 14px; letter-spacing: .08em; }
.hero__title { margin: 0 0 12px; font-size: clamp(26px, 6.2vw, 42px); line-height: 1.3; letter-spacing: -.01em; }
.hero__lead { margin: 0 0 20px; color: var(--ink-2); max-width: 36em; }
.hero__cats, .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero__cats a, .chips a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; }
.hero__cats a:hover, .chips a:hover { border-color: var(--accent); color: var(--accent-ink); }
.hero__cats .hero__quiz { background: var(--accent); border-color: var(--accent); color: #fff; }
.hero__cats .hero__quiz:hover { color: #fff; filter: brightness(.94); }

/* 一覧 */
.sec { margin-top: 36px; }
.sec__h { margin: 0 0 18px; font-size: 22px; line-height: 1.4; display: flex; align-items: baseline; gap: 10px; }
.sec__h::before { content: ""; width: 6px; height: 1.1em; background: var(--accent); border-radius: 3px; align-self: center; }
.sec__h small { font-size: 13px; color: var(--muted); font-weight: 500; }
.grid { display: grid; gap: 22px 18px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.card { display: flex; flex-direction: column; background: var(--bg); border-radius: var(--radius); }
.card__img { display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.card:hover .card__img img { transform: scale(1.04); }
.card__noimg { display: grid; place-items: center; height: 100%; font-size: 40px; font-weight: 800; color: var(--accent); }
.card__body { padding: 12px 2px 0; }
.card__meta { margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 12.5px; color: var(--muted); }
.card__title { margin: 0; font-size: 16px; line-height: 1.55; font-weight: 700; }
.card__title a { color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a:hover { color: var(--accent-ink); }
.tag { display: inline-block; background: var(--accent-soft); color: var(--accent-ink); padding: 1px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; text-decoration: none; }
.lhead { padding: 18px 0 8px; }
.lhead__t { margin: 6px 0 8px; font-size: clamp(24px, 5vw, 32px); line-height: 1.35; }
.lhead__d { margin: 0 0 14px; color: var(--ink-2); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 36px 0 0; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.pager a:hover { border-color: var(--accent); color: var(--accent-ink); }
.pager .pager__cur { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager .pager__gap { border: 0; min-width: 0; padding: 0 2px; }
.crumbs { margin: 14px 0 4px; font-size: 13px; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; }
.crumbs li + li::before { content: "›"; margin: 0 8px; opacity: .6; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); text-decoration: underline; }

/* 記事 */
.post { padding-top: 6px; }
.post__cat { margin: 14px 0 0; }
.post__title { margin: 10px 0 10px; font-size: clamp(24px, 5.6vw, 34px); line-height: 1.4; letter-spacing: -.005em; }
.post__title small { font-size: .55em; color: var(--muted); font-weight: 500; margin-left: .4em; }
.post__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 18px; color: var(--muted); font-size: 13.5px; }
.post__eye { margin: 0 0 24px; }
.post__eye img { width: 100%; border-radius: var(--radius); display: block; background: var(--bg-soft); }
.toc { margin: 0 0 32px; padding: 0; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.toc summary { cursor: pointer; padding: 14px 18px; font-weight: 800; list-style: none; display: flex; justify-content: space-between; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "▾"; color: var(--muted); transition: transform .2s; }
.toc[open] summary::after { transform: rotate(180deg); }
.toc ol { margin: 0; padding: 0 18px 16px; list-style: none; counter-reset: t; }
.toc li { margin: 5px 0; line-height: 1.6; font-size: 15px; }
.toc__l2 { counter-increment: t; font-weight: 600; }
.toc__l2::before { content: counter(t) "."; display: inline-block; min-width: 1.6em; color: var(--accent-ink); font-weight: 800; }
.toc__l3 { margin-left: 2.2em; font-size: 14px; }
.toc__l3::before { content: "–"; margin-right: .5em; color: var(--muted); }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent-ink); text-decoration: underline; }

.prose { font-size: 17px; line-height: 1.95; }
.prose > * { margin-top: 0; margin-bottom: 1.35em; }
.prose h2 { margin: 2.6em 0 1em; padding: .1em 0 .1em .7em; font-size: 1.45em; line-height: 1.45; border-left: 6px solid var(--accent); }
.prose h3 { margin: 2.1em 0 .8em; padding-bottom: .3em; font-size: 1.22em; line-height: 1.5; border-bottom: 2px solid var(--accent); }
.prose h4 { margin: 1.8em 0 .6em; font-size: 1.07em; color: var(--accent-ink); }
.prose h5, .prose h6 { margin: 1.5em 0 .5em; font-size: 1em; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 700; background: linear-gradient(transparent 62%, #ffe3dd 62%); }
@media (prefers-color-scheme: dark) { .prose strong { background: linear-gradient(transparent 62%, #5a2a26 62%); } }
.prose mark { background: linear-gradient(transparent 55%, #fff1a8 55%); color: inherit; }
.prose .em { color: var(--accent-ink); font-weight: 700; }
.prose img { border-radius: var(--radius-s); display: block; margin-left: auto; margin-right: auto; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 8px; }
.prose p > img { margin: .4em auto; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose blockquote { margin-left: 0; padding: 4px 18px; border-left: 4px solid var(--line); color: var(--ink-2); }
.prose pre { overflow-x: auto; background: var(--bg-soft); padding: 14px 16px; border-radius: var(--radius-s); white-space: pre-wrap; }
.prose ruby { ruby-position: over; }
.prose :is(p, li, td, th, h2, h3, h4, .box, .balloon__body):has(ruby) { padding-top: .55em; }
.prose td:has(ruby), .prose th:has(ruby) { padding-top: calc(10px + .45em); }
.prose rt { font-size: .5em; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.prose a { font-weight: 600; }
.table-wrap { overflow-x: auto; margin: 1.6em 0; border-radius: var(--radius-s); border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: .92em; line-height: 1.7; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--accent); color: #fff; font-weight: 700; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(even) td { background: var(--bg-soft); }
.prose td:first-child { font-weight: 600; }

/* ボックス */
.box { margin: 1.6em 0; padding: 16px 18px 16px 20px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); font-size: .96em; line-height: 1.85; }
.box > :first-child { margin-top: 0; }
.box > :last-child { margin-bottom: 0; }
.box ul, .box ol { margin: .4em 0; padding-left: 1.3em; }
.box--tip { background: var(--yellow-soft); border-color: #f2e3a6; }
.box--phrase { background: var(--accent-soft); border-color: #f8d3cf; }
.box--example { background: var(--blue-soft); border-color: #cfe1f1; }
.box--memo { background: var(--bg-soft); }
.box--info { background: var(--blue-soft); border-color: #cfe1f1; }
.box--profile { background: var(--bg-soft); border-left: 6px solid var(--accent); }
.box--good { background: var(--green-soft); border-color: #cde5d3; }
.box--alert { background: #fff3f3; border-color: #f4c8c8; }
.box--point { background: var(--yellow-soft); border-color: #f2e3a6; }
.box--emoji { text-align: center; background: transparent; border: 0; font-size: 1.2em; }
.box--link { padding: 12px 16px; background: var(--bg); }
.box--link a { text-decoration: none; }
@media (prefers-color-scheme: dark) { .box { border-color: var(--line); } .box--alert { background: #2c1d1d; } }
.balloon { display: flex; gap: 12px; margin: 1.6em 0; align-items: flex-start; }
.balloon--r { flex-direction: row-reverse; }
.balloon__icon { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--line); background: #fff; margin: 0 !important; }
.balloon__body { position: relative; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; font-size: .95em; line-height: 1.8; }
.balloon__body > :first-child { margin-top: 0; }
.balloon__body > :last-child { margin-bottom: 0; }
.balloon--l .balloon__body::before, .balloon--r .balloon__body::before { content: ""; position: absolute; top: 18px; width: 12px; height: 12px; background: inherit; border: inherit; transform: rotate(45deg); }
.balloon--l .balloon__body::before { left: -7px; border-right: 0; border-top: 0; }
.balloon--r .balloon__body::before { right: -7px; border-left: 0; border-bottom: 0; }
.copy { display: flex; gap: 8px; align-items: center; margin: .8em 0; padding: 8px 8px 8px 16px; border: 1px dashed var(--accent); border-radius: var(--radius-s); background: var(--accent-soft); }
.copy__text { flex: 1; font-weight: 700; }
.copy::after { content: "コピー"; flex: none; cursor: pointer; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; }
.copy.is-copied::after { content: "コピーしました"; background: #2f9e5f; }
.embed { margin: 1.6em 0; position: relative; }
.embed--video iframe, .embed--map iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-s); display: block; }
.embed--map iframe { aspect-ratio: 4 / 3; }
.embed--form iframe { width: 100%; border: 0; min-height: 851px; }
.embed--social { display: flex; justify-content: center; }
.embed--social blockquote { max-width: 540px; width: 100%; }
.bcard { display: flex; gap: 14px; align-items: stretch; margin: 1.4em 0; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--bg); transition: box-shadow .2s, border-color .2s; font-weight: 400 !important; }
.bcard:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.bcard__img { flex: none; width: 112px; aspect-ratio: 16 / 9; align-self: center; border-radius: var(--radius-s); overflow: hidden; background: var(--bg-soft); }
.bcard__img img { width: 100%; height: 100%; object-fit: cover; margin: 0 !important; border-radius: 0 !important; }
.bcard__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bcard__title { font-weight: 700; line-height: 1.5; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bcard__snip { color: var(--muted); font-size: 13px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bcard__host { color: var(--muted); font-size: 12px; }
@media (min-width: 600px) { .bcard__img { width: 160px; } }

/* 宣伝（記事末） */
.promo { margin-top: 48px; padding-top: 12px; border-top: 1px solid var(--line); }
.promo__h { font-size: 17px; margin: 28px 0 14px; }
.promo__grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .promo__grid { grid-template-columns: 1fr 1fr; } }
.pcard { display: flex; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.pcard__img { flex: none; width: 96px; align-self: flex-start; }
.pcard__img img { width: 100%; height: auto; border-radius: var(--radius-s); display: block; }
.pcard__label { margin: 0; color: var(--accent-ink); font-size: 12px; font-weight: 700; }
.pcard__name { margin: 0 0 6px; font-weight: 800; line-height: 1.4; }
.pcard__list { margin: 0 0 10px; padding-left: 1.2em; font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none; }
.btn:hover { filter: brightness(.93); }
.promo__note { font-size: 12px; color: var(--muted); margin-top: 18px; }
.notfound { text-align: center; padding-top: 48px; }
.notfound__code { font-size: 72px; font-weight: 800; color: var(--accent); margin: 0; line-height: 1; }
.notfound .chips { justify-content: center; }
.plain { padding-left: 1.2em; }

/* フッター */
.ft { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 36px 0 44px; text-align: center; }
.ft__logo img { height: 28px; width: auto; }
.ft__tag { color: var(--muted); font-size: 14px; margin: 10px 0 18px; }
.ft__nav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin-bottom: 18px; }
.ft__nav a { color: var(--ink-2); font-size: 14px; text-decoration: none; font-weight: 600; }
.ft__nav a:hover { color: var(--accent-ink); }
.ft__copy { color: var(--muted); font-size: 12.5px; margin: 0; }

/* クイズ */
.quiz { margin: 8px 0 24px; }
.quiz__intro { background: var(--accent-soft); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.quiz__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 60px; z-index: 5; background: var(--bg); padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.quiz__progress { flex: 1; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.quiz__progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s; }
.quiz__timer { font-variant-numeric: tabular-nums; min-width: 4.5em; text-align: right; }
.quiz__timer.is-low { color: var(--accent-ink); }
.q { margin: 22px 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.q__n { color: var(--accent-ink); font-weight: 800; font-size: 13px; letter-spacing: .06em; margin: 0 0 4px; }
.q__t { margin: 0 0 12px; font-weight: 700; line-height: 1.7; }
.q__opts { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.q__opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-s); cursor: pointer; line-height: 1.6; }
.q__opt:hover { border-color: var(--accent); }
.q__opt input { margin-top: .4em; accent-color: var(--accent); }
.q__opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.q.is-done .q__opt { cursor: default; }
.q__opt.is-right { border-color: #2f9e5f; background: var(--green-soft); }
.q__opt.is-wrong { border-color: #d33; background: #fff3f3; }
.q__ex { margin: 12px 0 0; font-size: 14.5px; color: var(--ink-2); }
.quiz__go { display: flex; gap: 10px; justify-content: center; margin: 24px 0; }
.quiz__go button, .quiz__share { font: inherit; cursor: pointer; border: 0; }
.btn--ghost { background: var(--bg); color: var(--ink); border: 1px solid var(--line) !important; }
.result { text-align: center; background: var(--accent-soft); border-radius: var(--radius); padding: 28px 18px; margin: 24px 0; }
.result__score { font-size: 54px; font-weight: 800; color: var(--accent-ink); line-height: 1.1; }
.result__score small { font-size: 18px; color: var(--muted); }
.result__msg { margin: 8px 0 0; font-weight: 700; }

@media print { .hd, .ft, .promo, .pager { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* AdSense の自動広告が差し込まれても、ヘッダー・フッター・一覧の並びを壊さない */
.hd .google-auto-placed, .hd ins.adsbygoogle, .ft .google-auto-placed, .ft ins.adsbygoogle,
.crumbs .google-auto-placed, .crumbs ins.adsbygoogle, .pager .google-auto-placed { display: none !important; }
.grid > .google-auto-placed { grid-column: 1 / -1; }
.hd__nav a, .hd__panel a { white-space: nowrap; }
.hd__in > * { flex-shrink: 0; }
.hd__logo { flex-shrink: 1; min-width: 0; }
