:root {
  --brand-maroon: #781f32;
  --brand-maroon-dark: #4f1422;
  --brand-gold: #d5a34b;
  --brand-navy: #182235;
  --brand-paper: #fffaf2;
  --ink: #171717;
  --muted: #66615b;
  --line: rgba(24, 34, 53, 0.14);
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(25, 18, 20, 0.14);
  --radius: 8px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fffdf8;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.7;
  letter-spacing: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: var(--max);
  min-height: 64px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  width: 112px;
  height: 38px;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(120, 31, 50, 0.18);
  border-radius: 6px;
  background: var(--brand-maroon);
}

.brand-copy {
  display: grid;
  line-height: 1.2;
  min-width: 0;
}

.brand-copy strong {
  font-size: 0.95rem;
  color: var(--brand-maroon-dark);
}

.brand-copy span {
  font-size: 0.72rem;
  color: var(--muted);
}

.nav-links {
  display: none;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.button:hover,
.portal-tile:hover,
.report-card:hover,
.feature-card:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--brand-maroon);
  box-shadow: 0 10px 22px rgba(120, 31, 50, 0.24);
}

.button-secondary {
  color: var(--brand-maroon-dark);
  background: var(--white);
  border-color: rgba(120, 31, 50, 0.24);
}

.button-ghost {
  color: var(--brand-maroon-dark);
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero {
  position: relative;
  min-height: 74svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--brand-maroon-dark);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 15, 18, 0.82) 0%, rgba(18, 15, 18, 0.44) 48%, rgba(18, 15, 18, 0.08) 100%),
    linear-gradient(0deg, rgba(18, 15, 18, 0.65) 0%, rgba(18, 15, 18, 0.08) 44%);
  z-index: 1;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 76px 18px 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #ffe9b6;
  font-size: 0.82rem;
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--brand-gold);
}

.hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.8rem, 12vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 620px;
  margin: 16px 0 0;
  font-size: clamp(1rem, 3.7vw, 1.28rem);
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 620px;
  margin: 28px 0 0;
  padding: 0;
}

.hero-stats li {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
}

.hero-stats span,
.hero-stats strong {
  display: block;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
}

.hero-stats strong {
  margin-top: 2px;
  font-size: 0.96rem;
}

.section {
  padding: 54px 18px;
}

.section-muted {
  background: var(--brand-paper);
}

.section-dark {
  color: var(--white);
  background: var(--brand-navy);
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.section-heading p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.section-dark .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.section-heading h2 {
  margin: 0;
  color: var(--brand-maroon-dark);
  font-size: clamp(1.55rem, 6vw, 2.35rem);
  line-height: 1.25;
  letter-spacing: 0;
}

.section-dark .section-heading h2 {
  color: var(--white);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.feature-card,
.report-card,
.notice-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 18px;
  box-shadow: 0 8px 24px rgba(24, 34, 53, 0.06);
  transition: transform 0.18s ease;
}

.feature-card h3,
.report-card h3,
.notice-card h3 {
  margin: 0 0 8px;
  color: var(--brand-maroon-dark);
  font-size: 1.05rem;
}

.feature-card p,
.report-card p,
.notice-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.profile-band {
  display: grid;
  gap: 18px;
  align-items: start;
}

.team-profile {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.profile-row {
  display: grid;
  grid-template-columns: 118px 1fr;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
}

.profile-row:last-child {
  border-bottom: 0;
}

.profile-row dt,
.profile-row dd {
  margin: 0;
  padding: 14px;
}

.profile-row dt {
  color: var(--brand-maroon-dark);
  font-weight: 800;
  background: rgba(120, 31, 50, 0.06);
}

.profile-row dd {
  color: var(--ink);
}

.crest-panel {
  min-height: 220px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 18%, rgba(213, 163, 75, 0.28), transparent 32%),
    linear-gradient(145deg, var(--brand-maroon), var(--brand-maroon-dark));
  box-shadow: var(--shadow);
}

.crest-panel img {
  width: min(86%, 520px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.report-card time {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand-maroon);
  font-size: 0.78rem;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.schedule-list,
.result-list,
.weekly-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.schedule-row,
.weekly-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.schedule-date,
.weekly-date {
  display: grid;
  place-items: center;
  min-height: 58px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--brand-maroon);
  text-align: center;
}

.schedule-date strong,
.weekly-date strong,
.schedule-date span,
.weekly-date span {
  display: block;
}

.schedule-date span,
.weekly-date span {
  font-size: 0.78rem;
  opacity: 0.84;
}

.schedule-row h3,
.weekly-item h3 {
  margin: 0;
  color: var(--brand-maroon-dark);
  font-size: 1rem;
}

.schedule-row p,
.weekly-item p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.weekly-item small {
  display: block;
  margin-top: 4px;
  color: var(--brand-maroon);
  font-weight: 700;
}

.result-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.result-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 62px 48px;
  gap: 8px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.result-row:last-child {
  border-bottom: 0;
}

.result-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.result-row b {
  color: var(--brand-maroon-dark);
}

.result-row em {
  justify-self: end;
  color: var(--brand-maroon);
  font-style: normal;
  font-weight: 800;
}

.cta-band {
  display: grid;
  gap: 18px;
  align-items: center;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.cta-band h2 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 6vw, 2.2rem);
  line-height: 1.28;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 0;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px;
  color: var(--brand-maroon-dark);
  font-weight: 800;
}

.faq-item p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
}

.site-footer {
  padding: 28px 18px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--brand-maroon-dark);
}

.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.portal-page {
  min-height: 100svh;
  background:
    linear-gradient(180deg, rgba(120, 31, 50, 0.1), rgba(255, 253, 248, 0) 260px),
    #fffdf8;
}

.portal-main {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 18px 14px 42px;
}

.portal-hero {
  padding: 22px 0 16px;
}

.portal-hero h1 {
  margin: 10px 0 4px;
  color: var(--brand-maroon-dark);
  font-size: clamp(1.85rem, 8vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.portal-hero p {
  margin: 0;
  color: var(--muted);
}

.portal-status {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, var(--brand-maroon), var(--brand-maroon-dark));
  box-shadow: var(--shadow);
}

.portal-status span,
.portal-status small {
  color: rgba(255, 255, 255, 0.76);
}

.portal-status strong {
  font-size: 1.2rem;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 32px;
}

.portal-tile {
  min-height: 116px;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(24, 34, 53, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.portal-tile:hover {
  border-color: rgba(120, 31, 50, 0.32);
}

.tile-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-maroon-dark);
  background: rgba(213, 163, 75, 0.2);
  font-weight: 900;
}

.portal-tile strong {
  color: var(--brand-maroon-dark);
  font-size: 1rem;
}

.portal-tile small {
  color: var(--muted);
  line-height: 1.35;
}

.portal-section {
  margin-top: 28px;
}

.portal-section h2 {
  margin: 0 0 12px;
  color: var(--brand-maroon-dark);
  font-size: 1.35rem;
}

.notice-card {
  margin-bottom: 10px;
}

.notice-card span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--brand-maroon-dark);
  background: rgba(213, 163, 75, 0.2);
  font-size: 0.78rem;
  font-weight: 800;
}

.portal-bottom-actions {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 28px -14px -42px;
  padding: 10px 14px max(10px, env(safe-area-inset-bottom));
  background: rgba(255, 253, 248, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

@media (min-width: 740px) {
  .header-inner {
    padding-inline: 24px;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
  }

  .nav-links a {
    text-decoration: none;
  }

  .section {
    padding: 78px 24px;
  }

  .hero-inner {
    padding-inline: 24px;
    padding-bottom: 52px;
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-band,
  .split,
  .cta-band {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .cta-band {
    align-items: center;
  }

  .cta-actions {
    justify-self: end;
  }

  .portal-main {
    padding: 26px 20px 54px;
  }

  .portal-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .portal-bottom-actions {
    position: static;
    margin: 30px 0 0;
    padding: 0;
    border-top: 0;
    background: transparent;
    backdrop-filter: none;
  }
}

@media (max-width: 430px) {
  .brand-logo {
    width: 94px;
    height: 34px;
  }

  .header-actions .button-secondary {
    display: none;
  }

  .button {
    min-height: 40px;
    padding-inline: 12px;
    font-size: 0.86rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .profile-row {
    grid-template-columns: 1fr;
  }

  .profile-row dt,
  .profile-row dd {
    padding: 10px 14px;
  }

  .schedule-row,
  .weekly-item {
    grid-template-columns: 74px 1fr;
    gap: 10px;
    padding: 12px;
  }

  .result-row {
    grid-template-columns: 42px minmax(0, 1fr) 52px;
  }

  .result-row em {
    display: none;
  }
}
