/* Client revisions dated 2026-10-15. */
:root {
  --font-body: "Noto Sans JP", sans-serif;
  --font-display: "Shippori Mincho", serif;
  --cta-fill: #ffcd54;
  --cta-hover: #ffd975;
  --cta-border: #c58d18;
  --cta-ink: var(--ink-deep);
  --cta-disabled-fill: #f8e7b9;
  --cta-disabled-border: #dfc891;
  --cta-disabled-ink: #566273;
  --cta-shadow: 0 4px 10px rgb(8 40 90 / 12%);
}

/* The same yellow identifies every action leading to a seminar application. */
.button.button--primary {
  border-color: var(--cta-border);
  border-radius: 8px;
  background: var(--cta-fill);
  color: var(--cta-ink);
  font-family: var(--font-body);
  box-shadow: var(--cta-shadow);
  text-shadow: none;
}
.button.button--primary:not(:disabled):not([aria-disabled="true"]):hover {
  background: var(--cta-hover);
  color: var(--cta-ink);
  box-shadow: var(--cta-shadow);
  filter: none;
  transform: translateY(-1px);
}
.button.button--primary:focus-visible:not(:disabled):not([aria-disabled="true"]) {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--white);
}
.button.button--primary:not(:disabled):not([aria-disabled="true"]):active { transform: none; box-shadow: none; }
.button.button--primary:disabled,
.button.button--primary[aria-disabled="true"] {
  border-color: var(--cta-disabled-border);
  background: var(--cta-disabled-fill);
  color: var(--cta-disabled-ink);
  opacity: 1;
  box-shadow: none;
  filter: none;
  transform: none;
  cursor: not-allowed;
}
.form-submit-hint { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; text-align: center; }
.form-submit-hint[hidden],
.form-submit[data-sending="true"] + .form-submit-hint { display: none; }
.form-safety { row-gap: 6px; line-height: 1.7; }
.section-heading { font-family: var(--font-display); }

body[data-variant="a"] .hero h1,
body[data-variant="a"] .hero h1 em { color: #ad7a18; }

.measures-highlight { padding-block: 56px; background: #f0f5fb; }
.measures-highlight__heading { text-align: center; }
.measures-highlight__heading h2 { margin: 0; color: var(--ink); font-size: clamp(22px, 3vw, 34px); line-height: 1.5; }
.measures-highlight__heading h2 > span { display: inline-block; color: var(--accent-deep); }
.measures-highlight__heading > p { display: inline-block; margin: 16px 0 0; padding: 4px 24px; border-radius: 99px; color: #fff; background: var(--ink); font-size: 14px; font-weight: 700; letter-spacing: .12em; }
.measures-highlight .measures-grid { max-width: 980px; margin: 24px auto 0; }
.measures-highlight .measure-card { align-items: center; padding: 24px 20px; border-top: 3px solid var(--accent); text-align: center; }
.measures-highlight .measure-card h3 { width: 100%; margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 22px; }
.measures-highlight .measure-value { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 18px 0 10px; color: var(--ink); font-size: 16px; line-height: 1.1; }
.measures-highlight .measure-value strong { color: var(--ink); font-family: var(--font-body); font-size: clamp(44px, 5vw, 64px); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.measures-highlight .measure-value small { margin-left: 4px; font-size: .42em; }
.measures-highlight .measure-desc { margin: 0; color: var(--ink-soft); font-size: 14px; }
.measures-highlight .source-note { text-align: center; }
.seminar-next-step { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.seminar-next-step p { max-width: 48em; margin: 0 0 18px; color: var(--ink-soft); }
.seminar-next-step strong { color: var(--ink); }
.seminar-next-step small { display: block; margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.case-source-note { max-width: 64em; }
@media (max-width: 767px) {
  .seminar-next-step .button { width: 100%; }
}
.optional-badge { margin-inline-start: 8px; color: var(--muted); font-size: 11px; font-weight: 400; }

/* A quieter editorial rhythm: Japanese headings lead, without floating panels. */
.issue-card,
.case-card,
.date-card { border-radius: 10px; box-shadow: none; }
.section-index { letter-spacing: .08em; }
.section-heading { line-height: 1.4; }
#application-form { scroll-margin-top: 24px; }
.brand:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }

/* Let the current number of dates fill each row, including a short final row. */
#dates .date-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
#dates .date-card { flex: 1 1 calc((100% - 54px) / 4); min-width: 0; }
#dates .date-card:only-child { max-width: 720px; }

/* The three funding topics lead; examples and next steps share the second row. */
#seminar-value .program-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
#seminar-value .program-card { grid-column: span 2; min-width: 0; }
@media (min-width: 1024px) {
  #seminar-value .program-card:nth-child(n + 4) { grid-column: span 3; }
}
@media (max-width: 1179px) {
  #dates .date-card { flex-basis: calc((100% - 18px) / 2); }
}
@media (min-width: 768px) and (max-width: 1023px) {
  #seminar-value .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #seminar-value .program-card { grid-column: auto; min-height: 152px; padding: 18px; }
  #seminar-value .program-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  #diagnostic .diagnostic-shell { gap: 28px; }
  #diagnostic .diagnostic-aside > p { margin-bottom: 0; }
}
@media (max-width: 767px) {
  #dates .date-card { flex-basis: 100%; }
  #cases .regional-proof__stats > .regional-stat:first-child:nth-last-child(odd) {
    display: flex;
    grid-column: 1 / -1;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 0 0 16px;
    border-left: 0;
    border-bottom: 1px solid #537093;
  }
}

/* Keep the application and its supporting information together at PC widths. */
@media (min-width: 768px) {
  #apply .form-layout { gap: 40px; }
  #apply .form-aside .section-topline {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 24px;
  }
  #apply .organizer-contact { border-color: rgb(255 255 255 / 24%); }
  #apply .organizer-contact h3 { margin: 0 0 16px; font-size: 18px; }
  #apply .organizer-contact p { margin: 0; }
  #apply .organizer-contact p + p { margin-top: 16px; }
}
@media (min-width: 1024px) {
  #apply .form-layout {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(32px, 3.4vw, 48px);
  }
  #apply-title { font-size: clamp(30px, 2.8vw, 38px); letter-spacing: -.05em; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  #apply .form-aside {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    column-gap: 32px;
    max-width: none;
  }
  #apply .form-aside > .section-topline,
  #apply .form-aside > p { grid-column: 1; }
  #apply .form-aside > p { margin: 0; }
  #apply-title { font-size: clamp(28px, 3.2vw, 34px); }
  #apply .organizer-contact {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
    padding: 0 0 0 28px;
    border-top: 0;
    border-left: 1px solid rgb(255 255 255 / 24%);
  }
}

#issues-title { font-size: clamp(28px, 3.4vw, 44px); }
@media (max-width: 767px) {
  .reference-menu { min-width: 44px; min-height: 44px; padding: 10px; gap: 5px; justify-content: center; }
  .reference-mobile-nav { top: calc(48px + 7vw); }
  #seminar-value .program-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  #seminar-value .program-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    grid-column: 1 / -1;
    align-items: center;
    gap: 12px;
    min-height: 104px;
    padding: 15px 16px;
  }
  #seminar-value .program-card .program-number { margin: 0; font-size: 10px; line-height: 1.35; }
  #seminar-value .program-card h3 { font-size: clamp(18px, 4.9vw, 20px); line-height: 1.36; }
  .hero-actions .button { min-height: 54px; }
  body[data-variant="c"] .hero-title-phrase,
  body[data-variant="c"] .hero-title-prefix { display: block; }
  body { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .mobile-cta { display: block; right: 12px; left: 12px; }
  .mobile-cta .button { justify-content: center; gap: 12px; min-height: 54px; font-size: 15px; }
  .mobile-cta .button > span { white-space: nowrap; }
  .mobile-cta .button::after { flex: none; margin: 0; font-size: 18px; }
  .mobile-cta .button:hover { transform: none; }
  .field input,
  .field select { scroll-margin-bottom: 100px; }
  .measures-highlight { padding-block: 36px; }
  .measures-highlight .measures-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .measures-highlight .measure-card { padding: 18px 8px; }
  .measures-highlight .measure-card h3 { padding-bottom: 10px; font-size: 17px; }
  .measures-highlight .measure-value { display: grid; grid-template-rows: 1.6em auto; gap: 0; margin-top: 12px; font-size: 11px; line-height: 1.6; }
  .measures-highlight .measure-prefix { grid-row: 1; }
  .measures-highlight .measure-value strong { display: block; grid-row: 2; margin-left: 0; font-size: clamp(26px, 8vw, 44px); }
  .measures-highlight .measure-desc { font-size: 11px; line-height: 1.6; text-wrap: balance; }
  #issues-title { font-size: clamp(21px, 6vw, 30px); line-height: 1.5; }
  #issues-title .copy-phrase { white-space: normal; }
}
@media (max-width: 400px) {
  body[data-variant="b"] .hero-title-phrase { display: block; }
}
@media (max-width: 374px) {
  body[data-variant="a"] .hero-title-phrase { display: block; }
}
@media (max-width: 360px) {
  #seminar-value .program-card { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
