/* JRBYG — three colors only: Navy, Ivory, Vermilion (accent) */
:root {
  --navy: #182B38;
  --ivory: #F7F5EF;
  --verm: #B35E43;
  /* tints are the same three colors at reduced opacity, never new hues */
  --navy-60: rgba(24, 43, 56, 0.6);
  --navy-25: rgba(24, 43, 56, 0.25);
  --navy-12: rgba(24, 43, 56, 0.12);
  --navy-06: rgba(24, 43, 56, 0.06);
  --ivory-70: rgba(247, 245, 239, 0.7);
  --ivory-25: rgba(247, 245, 239, 0.25);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Sans", "Noto Sans JP", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --measure: 38rem;
  --gutter: 1.25rem;
  --tap: 44px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { max-width: 100%; }
a { color: var(--verm); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible, textarea:focus-visible, input:focus-visible {
  outline: 2px solid var(--verm);
  outline-offset: 3px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(1.9rem, 2.2vw + 1.3rem, 2.8rem); }
h2 { font-size: clamp(1.35rem, 1vw + 1.1rem, 1.7rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
small, .small { font-size: 0.875rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--ivory); padding: 0.5rem 1rem; z-index: 100; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap { width: 100%; max-width: 60rem; margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--measure); }

/* Header */
.site-head { background: var(--navy); color: var(--ivory); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 0 1rem; min-height: 3.5rem; flex-wrap: wrap; }
.brand { font-family: var(--serif); color: var(--ivory); text-decoration: none; font-size: 1.25rem; letter-spacing: 0.08em; display: inline-flex; align-items: center; min-height: var(--tap); }
.brand span { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.02em; opacity: 0.75; margin-left: 0.75rem; display: none; }
.nav { display: flex; gap: 0.25rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--ivory); text-decoration: none; padding: 0 0.6rem; min-height: var(--tap); display: inline-flex; align-items: center; white-space: nowrap; font-size: 0.9rem; border-bottom: 2px solid transparent; }
.nav a[data-home] { display: none; }
@media (max-width: 559px) { .brand { min-height: 3.25rem; } .nav { width: 100%; justify-content: space-between; margin-top: -0.25rem; } .nav a { padding: 0 0.25rem; } }
@media (min-width: 560px) { .nav a { font-size: 0.95rem; padding: 0 0.7rem; } .nav a[data-home] { display: inline-flex; } }
.nav a[aria-current="page"] { border-bottom-color: var(--verm); }
.nav a:hover { border-bottom-color: var(--ivory-25); }
@media (min-width: 640px) { .brand span { display: inline; } }

/* Hero / page head */
.page-head { padding-top: 2.5rem; padding-bottom: 1.5rem; }
.page-head .kicker { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--verm); margin-bottom: 0.75rem; font-weight: 600; }
.page-head .lead { font-size: 1.15rem; color: var(--navy); opacity: 0.85; margin: 1rem 0 0; max-width: var(--measure); }
.hero { padding-top: 3.5rem; padding-bottom: 2.5rem; }
.hero h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.6rem); max-width: 22ch; }
.hero .lead { font-size: 1.2rem; }

/* Sections */
section { padding: 1.75rem 0; }
section + section { border-top: 1px solid var(--navy-12); }
.sec-title { margin-bottom: 1rem; }
.sec-title h2 { position: relative; padding-left: 0.9rem; }
.sec-title h2::before { content: ""; position: absolute; left: 0; top: 0.25em; bottom: 0.2em; width: 3px; background: var(--verm); border-radius: 2px; }

/* Cards */
.cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: block; background: #fff; border: 1px solid var(--navy-12); border-radius: 10px; padding: 1.25rem 1.25rem 1.1rem; color: var(--navy); text-decoration: none; transition: border-color 0.15s, transform 0.15s; min-height: var(--tap); }
.card:hover { border-color: var(--navy-60); transform: translateY(-1px); }
.card .num { font-family: var(--serif); color: var(--verm); font-size: 0.9rem; letter-spacing: 0.1em; }
.card h3 { margin: 0.35rem 0 0.5rem; font-family: var(--serif); font-weight: 500; font-size: 1.25rem; }
.card p { margin: 0; font-size: 0.95rem; opacity: 0.85; }
.card .go { display: inline-block; margin-top: 0.75rem; color: var(--verm); font-size: 0.9rem; }

/* Daily topic */
.topic { background: var(--navy); color: var(--ivory); border-radius: 12px; padding: 1.5rem 1.5rem 1.4rem; position: relative; overflow: hidden; }
.topic::after { content: ""; position: absolute; right: -2rem; top: -2rem; width: 9rem; height: 9rem; border-radius: 50%; border: 1px solid var(--ivory-25); pointer-events: none; }
.topic .label { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.8; display: flex; justify-content: space-between; gap: 1rem; }
.topic .label time { letter-spacing: 0.04em; text-transform: none; }
.topic h2 { font-size: 1.6rem; margin: 0.6rem 0 0.5rem; color: var(--ivory); }
.topic p { margin: 0 0 0.9rem; max-width: 36rem; opacity: 0.95; }
.topic a { color: var(--ivory); text-decoration-color: var(--verm); text-decoration-thickness: 2px; display: inline-flex; align-items: center; min-height: var(--tap); }
@media (min-width: 640px) { .topic { padding: 2rem 2.25rem; } }

/* Survey */
.survey { background: #fff; border: 1px solid var(--navy-12); border-radius: 10px; padding: 1.1rem 1.1rem 1rem; max-width: var(--measure); }
.survey legend, .survey .q { font-weight: 600; padding: 0; margin: 0 0 0.25rem; font-size: 1rem; }
.survey .note { font-size: 0.85rem; opacity: 0.7; margin: 0 0 0.75rem; }
.survey fieldset { border: 0; margin: 0; padding: 0; }
.survey .opts { display: grid; gap: 0.4rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .survey .opts { grid-template-columns: 1fr 1fr; } }
.survey label.opt { display: flex; align-items: center; gap: 0.6rem; min-height: var(--tap); padding: 0 0.75rem; border: 1px solid var(--navy-25); border-radius: 8px; cursor: pointer; font-size: 0.95rem; }
.survey label.opt:hover { border-color: var(--navy-60); }
.survey label.opt:has(input:checked) { border-color: var(--verm); box-shadow: inset 0 0 0 1px var(--verm); }
.survey input[type="radio"] { accent-color: var(--verm); width: 1.1rem; height: 1.1rem; margin: 0; }
.survey .row { display: flex; align-items: center; gap: 0.9rem; margin-top: 0.75rem; flex-wrap: wrap; }
.survey .done { margin: 0; font-size: 0.95rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: var(--tap); padding: 0 1.25rem; border-radius: 8px; border: 1px solid var(--navy); background: var(--navy); color: var(--ivory); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: #0f1d27; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy-06); }
.btn.accent { background: var(--verm); border-color: var(--verm); }
.btn.accent:hover { filter: brightness(0.92); }

/* Q&A */
.qa { border-top: 1px solid var(--navy-12); max-width: var(--measure); }
.qa:last-of-type { border-bottom: 1px solid var(--navy-12); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: 0.9rem; padding: 1rem 0; min-height: var(--tap); font-weight: 600; font-size: 1.05rem; line-height: 1.4; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .mark { flex: 0 0 auto; width: 1.5rem; height: 1.5rem; margin-top: 0.05rem; border-radius: 50%; border: 1px solid var(--navy-25); display: grid; place-items: center; position: relative; transition: transform 0.2s; }
.qa summary .mark::before, .qa summary .mark::after { content: ""; position: absolute; background: var(--verm); width: 0.65rem; height: 1.5px; border-radius: 1px; }
.qa summary .mark::after { transform: rotate(90deg); transition: transform 0.2s; }
.qa[open] summary .mark::after { transform: rotate(0); }
.qa[open] summary .mark { border-color: var(--verm); }
.qa .a { padding: 0 0 1.25rem 2.4rem; }
.qa .a p:last-child { margin-bottom: 0; }
.qa .a dl { margin: 0.75rem 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; font-size: 0.98rem; }
.qa .a dt { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--verm); padding-top: 0.25rem; }
.qa .a dd { margin: 0; }
.qa .a dd.jp { font-size: 1.25rem; font-family: var(--serif); }
.qa .a dd.ro { font-style: italic; }
.src { margin: 0.9rem 0 0; font-size: 0.85rem; opacity: 0.85; padding: 0.6rem 0.8rem; background: var(--navy-06); border-radius: 6px; }
.src a { word-break: break-word; }
.src .chk { display: block; margin-top: 0.15rem; opacity: 0.8; }
@media (max-width: 420px) { .qa .a { padding-left: 0; } .qa .a dl { grid-template-columns: 1fr; gap: 0.1rem; } .qa .a dt { margin-top: 0.5rem; } }

/* Shorts */
.shorts { display: grid; gap: 1.25rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 560px) { .shorts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .shorts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.short { max-width: 20rem; margin: 0 auto; width: 100%; }
.yt { position: relative; aspect-ratio: 9 / 16; background: var(--navy); border-radius: 12px; overflow: hidden; border: 0; padding: 0; width: 100%; display: block; cursor: pointer; }
.yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.yt .play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--verm); display: grid; place-items: center; box-shadow: 0 6px 24px rgba(24, 43, 56, 0.35); transition: transform 0.15s; }
.yt:hover .play { transform: translate(-50%, -50%) scale(1.06); }
.yt .play svg { width: 26px; height: 26px; margin-left: 4px; fill: var(--ivory); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt .nojs { position: absolute; inset: 0; display: block; }
.short .cap { margin: 0.6rem 0 0; font-size: 0.92rem; line-height: 1.4; }
.short .links { display: flex; gap: 0.25rem 1rem; flex-wrap: wrap; margin-top: 0.3rem; font-size: 0.88rem; }
.short .links a { display: inline-flex; align-items: center; min-height: 2rem; }
.more-shorts { margin-top: 1.5rem; max-width: none; }
.more-shorts summary { font-size: 1rem; }
.more-shorts .list { display: grid; gap: 0.5rem; grid-template-columns: 1fr; padding-bottom: 1rem; }
@media (min-width: 640px) { .more-shorts .list { grid-template-columns: 1fr 1fr; } }
.more-shorts .item { display: flex; align-items: center; gap: 0.8rem; padding: 0.4rem 0.5rem 0.4rem 0.4rem; border: 1px solid var(--navy-12); border-radius: 8px; background: #fff; min-height: var(--tap); text-decoration: none; color: var(--navy); }
.more-shorts .item:hover { border-color: var(--navy-60); }
.more-shorts .item img { width: 44px; height: 60px; object-fit: cover; border-radius: 5px; flex: 0 0 auto; background: var(--navy-12); }
.more-shorts .item span { font-size: 0.92rem; line-height: 1.35; }
.more-shorts .item small { display: block; color: var(--verm); font-size: 0.78rem; margin-top: 0.1rem; }
.sub-row { margin-top: 1rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Forms */
.form { max-width: var(--measure); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.field .hint { font-size: 0.85rem; opacity: 0.7; margin: 0.25rem 0 0; }
select, textarea { width: 100%; font: inherit; color: var(--navy); background: #fff; border: 1px solid var(--navy-25); border-radius: 8px; padding: 0.7rem 0.8rem; min-height: var(--tap); }
textarea { min-height: 10rem; resize: vertical; line-height: 1.5; }
.count { text-align: right; font-size: 0.82rem; opacity: 0.7; margin-top: 0.25rem; }
.notice { padding: 0.9rem 1rem; border-radius: 8px; background: var(--navy-06); border-left: 3px solid var(--verm); margin: 1rem 0; }
.notice.ok { border-left-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Social */
.social { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.social a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: var(--tap); padding: 0 0.9rem 0 0.7rem; border: 1px solid var(--navy-25); border-radius: 999px; color: var(--navy); text-decoration: none; font-size: 0.92rem; }
.social a:hover { border-color: var(--navy); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.site-foot .social a { color: var(--ivory); border-color: var(--ivory-25); }
.site-foot .social a:hover { border-color: var(--ivory); }

/* Footer */
.site-foot { background: var(--navy); color: var(--ivory); margin-top: 3rem; padding: 2.25rem 0 2rem; font-size: 0.9rem; }
.site-foot .cols { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .site-foot .cols { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-foot h2 { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; margin-bottom: 0.6rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li a { color: var(--ivory); text-decoration: none; display: inline-flex; align-items: center; min-height: 2.25rem; }
.site-foot li a:hover { text-decoration: underline; }
.site-foot .fine { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid var(--ivory-25); opacity: 0.7; font-size: 0.82rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-foot .fine a { color: var(--ivory); }

/* Privacy / long text */
.doc h2 { margin: 2rem 0 0.6rem; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: 0.3rem; }

/* Utilities */
.muted { opacity: 0.7; }
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
.hidden { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
