:root {
  --ink: #333333;
  --muted: #707070;
  --surface: #ffffff;
  --soft: #f6e9f0;
  --line: #ebebeb;
  --accent: #a51e6d;
  --gradient-brand: linear-gradient(135deg, #ff5757, #8c52ff);
  --warning: #fff7df;
  --max: 1120px;
  font-family: "Noto Sans JP", "Avenir Next Arabic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--ink);
  background: #fbfafc;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.75; }
a { color: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { width: min(calc(100% - 32px), 1240px); min-height: 72px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { text-decoration: none; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: white; background: var(--gradient-brand); }
.global-nav { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 700; }
.global-nav a { text-decoration: none; }
.nav-cta { padding: 10px 16px; color: white; border-radius: 999px; background: var(--ink); }
.menu-button { display: none; border: 0; background: transparent; font-size: 24px; }
.hero { padding: 88px 0 64px; background: radial-gradient(circle at 80% 10%,#f6e9f0 0,transparent 32%),radial-gradient(circle at 8% 85%,#f6e9f0 0,transparent 28%),linear-gradient(180deg,#fff,#faf6f8); border-bottom: 1px solid var(--line); }
.eyebrow { font-weight: 800; color: var(--accent); letter-spacing: .08em; }
.hero .eyebrow { display: inline-flex; align-items: center; padding: 8px 18px; border-radius: 999px; background: var(--soft); font-size: 13px; }
h1 { font-size: clamp(36px,6vw,68px); line-height: 1.15; margin: 12px 0 20px; letter-spacing: -.03em; }
h2 { font-size: clamp(27px,4vw,40px); line-height: 1.3; margin: 0 0 16px; }
h3 { line-height: 1.4; }
.lead { max-width: 720px; font-size: 18px; color: var(--muted); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 12px; font-weight: 800; text-decoration: none; border: 1px solid var(--line); background: white; }
.button.primary { color: white; border-color: transparent; background: var(--gradient-brand); }
.button.dark { color: white; background: var(--ink); border-color: var(--ink); }
.button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.section { padding: 76px 0; }
.section.soft { background: var(--soft); }
.section-heading { margin-bottom: 32px; }
.section-heading p { color: var(--muted); max-width: 760px; }
.section-heading.compact h2 { font-size: clamp(22px,3vw,28px); }
.notice { padding: 18px 20px; border: 1px solid #ecdca3; background: var(--warning); border-radius: 14px; }
.grid { display: grid; gap: 20px; }
.grid.three { grid-template-columns: repeat(3,1fr); }
.grid.two { grid-template-columns: repeat(2,1fr); }
.grid.four { grid-template-columns: repeat(4,1fr); }
.card { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 10px 24px rgba(51,51,51,.04); }
.day-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; counter-increment: dayNum; }
#days-map .grid.three { counter-reset: dayNum; }
.day-card-head { position: relative; overflow: hidden; padding: 22px 24px 38px; color: white; background: var(--gradient-brand); }
.day-card-head::after { content: counter(dayNum); position: absolute; right: -4px; bottom: -30px; font-size: 96px; font-weight: 900; line-height: 1; color: rgba(255,255,255,.18); pointer-events: none; }
.day-card-head .day-badge { position: relative; z-index: 1; display: inline-flex; align-self: flex-start; padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 800; color: white; background: rgba(255,255,255,.22); }
.day-card-head .weekday { position: relative; z-index: 1; display: block; margin-top: 10px; font-size: 14px; font-weight: 800; color: white; }
.day-card-body { padding: 22px 24px 4px; flex: 1; }
.day-card-body h3 { margin: 0 0 10px; font-size: 20px; }
.day-card-body p { margin: 0; color: var(--muted); }
.day-card-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 24px 24px; margin-top: auto; }
.day-card-actions .button { width: 100%; }
.link-quiet { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.link-quiet[aria-disabled="true"] { opacity: .55; cursor: not-allowed; text-decoration: none; }
.day-badge { display: inline-flex; align-self: flex-start; padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 800; color: var(--accent); background: var(--soft); }
.weekday { font-size: 14px; font-weight: 800; color: var(--accent); }
.steps { counter-reset: step; display: grid; gap: 14px; }
.step { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.step::before { content: counter(step); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font-weight: 900; color: white; background: var(--accent); }
.step-flow { counter-reset: stepFlow; display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.step-flow-item { position: relative; counter-increment: stepFlow; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.step-flow-item:not(:last-child)::after { content: "\203a"; position: absolute; top: 50%; right: -15px; transform: translate(50%,-50%); font-size: 22px; font-weight: 900; color: var(--line); z-index: 1; }
.step-flow-num { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font-weight: 900; color: white; background: var(--accent); }
.step-flow-num::before { content: counter(stepFlow); }
.step-flow-item h3 { margin: 16px 0 8px; font-size: 17px; }
.step-flow-item p { margin: 0; color: var(--muted); font-size: 14px; }
.step-flow-item .button { margin-top: 16px; width: 100%; }
.quick-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 16px; background: var(--soft); border: 1px solid transparent; }
.quick-card:hover, .quick-card:focus-visible { border-color: #e4bcd3; }
.quick-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: white; color: var(--accent); font-weight: 900; font-size: 16px; }
.quick-card h3 { margin: 0; font-size: 16px; }
.quick-card p { margin: 0; color: var(--muted); font-size: 14px; }
.info-directory { display: grid; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.info-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.info-row:first-child { border-top: 0; padding-top: 0; }
.info-row dt { font-weight: 800; min-width: 220px; }
.info-row dd { margin: 0; color: var(--muted); }
.info-row dd strong { color: var(--ink); font-weight: 800; }
.page-hero { padding: 64px 0 42px; background: linear-gradient(180deg,#fff,#faf6f8); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(34px,5vw,56px); }
.meta-strip { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.meta-item { padding: 8px 12px; border-radius: 10px; background: white; border: 1px solid var(--line); font-weight: 700; }
.resource-list { display: grid; gap: 14px; }
.resource { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.resource p { margin: 4px 0 0; color: var(--muted); }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 800; cursor: pointer; }
.site-footer { padding: 42px 0; background: var(--ink); color: white; }
.footer-inner { display: flex; justify-content: space-between; gap: 28px; }
.footer-inner p { color: #c9c3d5; }
.footer-links { display: flex; gap: 18px; }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
@media (max-width: 900px) {
  .menu-button { display: block; }
  .global-nav { display: none; position: absolute; top: 72px; left: 16px; right: 16px; padding: 18px; flex-direction: column; align-items: stretch; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px rgba(51,51,51,.15); }
  .global-nav.is-open { display: flex; }
  .grid.three,.grid.two { grid-template-columns: 1fr; }
  .grid.four { grid-template-columns: repeat(2,1fr); }
  .resource { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 1180px) {
  .step-flow { grid-template-columns: repeat(2,1fr); }
  .step-flow-item::after { display: none; }
}
@media (max-width: 600px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .hero { padding-top: 64px; }
  .section { padding: 58px 0; }
  .grid.four { grid-template-columns: 1fr; }
  .step-flow { grid-template-columns: 1fr; }
  .day-card-head::after { font-size: 72px; bottom: -22px; }
  .info-row dt { min-width: 100%; }
  .footer-inner { flex-direction: column; }
}

/* Header and DAY navigation have different roles:
   header = site functions / DAY navigation = learning progression. */
.day-journey {
  position: relative;
  z-index: 10;
  padding: 16px 0 18px;
  border-top: 1px solid rgba(165,30,109,.08);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.98);
}
.day-journey-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  color: var(--muted);
}
.day-journey-grid {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 10px;
}
.day-journey-item {
  min-width: 0;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  background: white;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.day-journey-item:hover,
.day-journey-item:focus-visible {
  transform: translateY(-2px);
  border-color: #e4bcd3;
  box-shadow: 0 10px 24px rgba(51,51,51,.08);
}
.day-journey-item.is-current {
  color: white;
  border-color: transparent;
  background: var(--gradient-brand);
  box-shadow: 0 12px 26px rgba(165,30,109,.22);
}
.day-journey-day { font-size: 12px; font-weight: 900; }
.day-journey-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 800; }
.day-journey-weekday { font-size: 12px; font-weight: 800; color: var(--muted); }
.day-journey-item.is-current .day-journey-weekday { color: rgba(255,255,255,.82); }

.glossary-search-wrap { margin-bottom: 24px; }
.glossary-search {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--ink);
  font: inherit;
}
.glossary-search:focus { outline: 3px solid rgba(165,30,109,.16); border-color: var(--accent); }
.glossary-category { margin-top: 34px; }
.glossary-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.glossary-term { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.glossary-term h3 { margin: 0 0 8px; }
.glossary-term p { margin: 0; color: var(--muted); }
.term-en { display: block; margin-top: 4px; font-size: 12px; color: var(--accent); font-weight: 800; }
.inline-support { margin-top: 18px; padding: 18px 20px; border-radius: 14px; background: var(--soft); }
.inline-support a { font-weight: 900; color: var(--accent); }

@media (max-width: 1080px) {
  .day-journey-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .day-journey { padding: 13px 0 15px; }
  .day-journey-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .day-journey-item { grid-template-columns: 1fr; gap: 1px; min-height: 76px; padding: 10px 8px; text-align: center; }
  .day-journey-title { white-space: normal; line-height: 1.3; font-size: 12px; }
  .day-journey-weekday { font-size: 11px; }
  .glossary-list { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .day-journey-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .day-journey-grid .day-journey-item:last-child { grid-column: 1 / -1; }
}
