:root {
  --bg: #ffffff;
  --surface: #f5f7fa;
  --navy: #0b1a2f;
  --navy-deep: #08111f;
  --text: #111827;
  --muted: #4b5563;
  --line: #d7dde5;
  --accent: #d32f2f;
  --accent-dark: #a82424;
  --white: #ffffff;
  --container: 1120px;
  --narrow: 860px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Yu Gothic", "Hiragino Sans", Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
}

body.is-ready .hero-copy {
  animation: heroCopyRise 0.9s ease 0.15s both;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.narrow-container {
  width: min(var(--narrow), 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(11, 26, 47, 0.1);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.99);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.site-nav a {
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.menu-toggle {
  display: none;
}

.header-entry,
.btn,
.floating-entry-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.header-entry:hover,
.header-entry:focus-visible,
.btn:hover,
.btn:focus-visible,
.floating-entry-link:hover,
.floating-entry-link:focus-visible {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.header-entry.is-disabled,
.btn.is-disabled,
.floating-entry-link.is-disabled {
  background: #6b7280;
  border-color: #6b7280;
  cursor: not-allowed;
  opacity: 0.92;
}

.section {
  padding: 88px 0;
}

.section-heading {
  position: relative;
  margin-bottom: 30px;
}

.section-heading::after {
  content: "";
  display: block;
  width: 84px;
  height: 3px;
  margin-top: 16px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s ease;
}

.align-center.section-heading::after {
  margin-left: auto;
  margin-right: auto;
  transform-origin: center;
}

.section-reveal.is-visible .section-heading::after {
  transform: scaleX(1);
}

.section-heading h2,
.cta-panel h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  font-weight: 900;
}

.section-label,
.cta-caption {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.align-center {
  text-align: center;
}

.section-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.text-link::after {
  content: "+";
  color: var(--accent);
}

.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.25s linear;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0.5) 34%, rgba(0, 0, 0, 0.64) 68%, rgba(0, 0, 0, 0.82) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.56) 0%, rgba(0, 0, 0, 0.28) 48%, rgba(0, 0, 0, 0.44) 100%),
    radial-gradient(circle at center, rgba(11, 26, 47, 0.24), rgba(11, 26, 47, 0) 44%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 92px 0 52px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.hero-copy {
  position: relative;
  max-width: 640px;
  text-align: left;
  color: var(--white);
  padding: 28px 28px 24px;
  margin-left: clamp(0px, 3vw, 36px);
  background: linear-gradient(180deg, rgba(11, 26, 47, 0.16), rgba(11, 26, 47, 0.54));
  border-left: 4px solid rgba(211, 47, 47, 0.92);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: auto auto -22% calc(100% - 96px);
  width: min(44vw, 240px);
  aspect-ratio: 1 / 1;
  background: url("../images/logo-main.png") center / contain no-repeat;
  opacity: 0.06;
  transform: none;
  pointer-events: none;
  animation: logoFloat 9s ease-in-out infinite;
}

.hero-kicker,
.hero-date {
  position: relative;
  z-index: 1;
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero-kicker {
  font-size: 0.82rem;
  opacity: 0.9;
}

.hero-lead {
  position: relative;
  z-index: 1;
  margin: 18px 0 12px;
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  font-weight: 700;
}

.hero-copy h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 9.5em;
  font-size: clamp(2.1rem, 5.6vw, 4.4rem);
  line-height: 1.03;
  font-weight: 900;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
}

.hero-date {
  margin-top: 18px;
  font-size: 0.96rem;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-start;
  margin-top: 24px;
}

.floating-entry {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 999;
}

.floating-entry-link {
  min-height: 56px;
  padding: 0 22px;
  box-shadow: 0 10px 30px rgba(11, 26, 47, 0.16);
  animation: floatingPulse 2.8s ease-in-out infinite;
}

.intro-section,
.final-cta {
  position: relative;
  overflow: hidden;
}

.intro-section::before,
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/logo-main.png") center / min(480px, 62vw) no-repeat;
  opacity: 0.04;
  pointer-events: none;
}

.intro-section .container,
.final-cta .container {
  position: relative;
  z-index: 1;
}

.overview-table {
  border-top: 2px solid var(--navy);
  border-bottom: 1px solid var(--navy);
}

.overview-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.overview-row:first-child {
  border-top: 0;
}

.overview-label {
  color: var(--navy);
  font-weight: 800;
}

.overview-value {
  color: var(--text);
  font-weight: 600;
  white-space: pre-line;
}

.news-section {
  background: var(--surface);
}

.news-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.news-feed {
  border-top: 2px solid var(--navy);
}

.news-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease, background 0.2s ease;
}

.news-row:hover {
  background: rgba(11, 26, 47, 0.03);
}

.news-row time {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.news-row h3 {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 700;
}

.visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: 40px;
  align-items: center;
}

.visual-copy h2 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 900;
}

.visual-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.visual-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.section-reveal.is-visible .visual-image img {
  transform: scale(1.02);
}

.mid-cta,
.final-cta {
  background: var(--navy);
}

.cta-panel {
  padding: 56px 32px;
  text-align: center;
  color: var(--white);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.7s ease, opacity 0.7s ease;
}

.cta-panel.final {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.cta-panel h2 {
  color: var(--white);
}

.cta-panel p {
  max-width: 620px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.78);
}

.cta-panel .btn {
  margin-top: 28px;
}

.cta-deadline {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.rules-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.rule-summary-item {
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.rule-summary-item p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.rule-summary-item strong {
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.7;
}

.rules-detail {
  border-top: 2px solid var(--navy);
  border-bottom: 1px solid var(--navy);
  transition: border-color 0.35s ease;
}

.rules-detail summary {
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  color: var(--navy);
  font-weight: 800;
}

.rules-detail summary::-webkit-details-marker {
  display: none;
}

.rules-detail summary::after {
  content: "+";
  float: right;
  color: var(--accent);
}

.rules-detail[open] summary::after {
  content: "-";
}

.rule-body,
.empty-note {
  color: var(--muted);
}

.site-footer {
  background: var(--navy-deep);
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
}

.footer-title {
  margin: 0 0 6px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.14em;
}

.footer-branding p,
.footer-links a,
.copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

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

.copyright {
  padding: 18px 16px 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
}

.prose {
  padding: 64px 0 88px;
}

.prose h1,
.prose h2,
.prose h3 {
  color: var(--navy);
  font-weight: 800;
  line-height: 1.2;
}

.prose a {
  color: var(--accent);
}

.info-table-wrap {
  overflow-x: auto;
  margin: 0 0 20px;
}

.info-table,
.prose .table1 {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--navy);
  border-bottom: 1px solid var(--navy);
}

.info-table th,
.info-table td,
.prose .table1 th,
.prose .table1 td {
  padding: 16px 14px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.info-table tr:first-child th,
.info-table tr:first-child td,
.prose .table1 tr:first-child th,
.prose .table1 tr:first-child td {
  border-top: 0;
}

.info-table th,
.prose .table1 th {
  width: 28%;
  color: var(--navy);
  background: #f8fafc;
}

.form-card,
.prose .form {
  padding: 28px 24px;
  border: 1px solid var(--line);
  background: #fff;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-card label {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  font-weight: 700;
}

.form-card label span {
  color: var(--accent);
  margin-left: 4px;
}

.form-card input,
.form-card textarea,
.prose .table1 input[type="text"],
.prose .table1 input[type="email"],
.prose .table1 input[type="tel"],
.prose .table1 select,
.prose .table1 textarea {
  width: 100%;
  padding: 14px 12px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.form-card textarea,
.prose .table1 textarea {
  min-height: 140px;
  resize: vertical;
}

.form-card input:focus,
.form-card textarea:focus,
.prose .table1 input:focus,
.prose .table1 select:focus,
.prose .table1 textarea:focus {
  outline: 2px solid rgba(211, 47, 47, 0.24);
  outline-offset: 1px;
}

.form-notice {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  font-weight: 700;
}

.form-notice.success {
  color: #166534;
  background: #f0fdf4;
  border-color: #86efac;
}

.form-notice.error {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fca5a5;
}

.entry-closed-note {
  padding: 28px 24px;
  border-left: 4px solid var(--accent);
  background: #f8fafc;
}

.entry-closed-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.entry-closed-note h2 {
  margin: 0 0 12px;
}

.entry-closed-note p:last-child {
  margin-bottom: 0;
}

.prose .send,
.prose input[type="submit"].send,
.prose .mw_wp_form input[type="submit"],
.prose .mw_wp_form input[type="button"],
.prose .mw_wp_form button[type="submit"],
.prose .mw_wp_form button,
.prose .mw_wp_form .mwform-btn,
.prose .mw_wp_form .mwform-submit input {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.prose .mw_wp_form .mwform-submit,
.prose .mw_wp_form .send,
.prose .mw_wp_form p:has(> input[type="submit"]),
.prose .mw_wp_form p:has(> button[type="submit"]) {
  margin-top: 20px;
  text-align: center;
}

.prose .mw_wp_form .error,
.prose .error {
  display: block;
  margin-top: 8px;
  color: #b91c1c;
  font-size: 0.88rem;
  font-weight: 700;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.section-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-reveal.is-visible .overview-row,
.section-reveal.is-visible .news-row,
.section-reveal.is-visible .rule-summary-item,
.section-reveal.is-visible .cta-panel {
  opacity: 1;
  transform: translateY(0);
}

.section-reveal.is-visible .overview-row:nth-child(2),
.section-reveal.is-visible .news-row:nth-child(2),
.section-reveal.is-visible .rule-summary-item:nth-child(2) {
  transition-delay: 0.08s;
}

.section-reveal.is-visible .overview-row:nth-child(3),
.section-reveal.is-visible .news-row:nth-child(3),
.section-reveal.is-visible .rule-summary-item:nth-child(3) {
  transition-delay: 0.16s;
}

.section-reveal.is-visible .overview-row:nth-child(4),
.section-reveal.is-visible .news-row:nth-child(4) {
  transition-delay: 0.24s;
}

@keyframes heroCopyRise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes floatingPulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 10px 30px rgba(11, 26, 47, 0.16);
  }

  50% {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(11, 26, 47, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 960px) {
  .site-nav {
    gap: 14px;
  }

  .visual-grid,
  .rules-summary {
    grid-template-columns: 1fr;
  }

  .visual-image {
    max-width: 560px;
  }
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 68px;
    flex-wrap: wrap;
  }

  .brand {
    max-width: calc(100% - 124px);
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    margin-left: auto;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--navy);
    font-weight: 800;
    letter-spacing: 0.08em;
  }

  .site-nav {
    display: none;
    width: 100%;
    order: 4;
    margin-left: 0;
    padding: 12px 0 4px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    min-height: 74vh;
  }

  .hero-inner {
    padding: 86px 0 42px;
    justify-content: center;
  }

  .hero-copy {
    margin-left: 0;
    max-width: 92%;
  }

  .news-heading,
  .footer-inner,
  .overview-row,
  .news-row {
    grid-template-columns: 1fr;
  }

  .news-heading,
  .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .brand span {
    font-size: 0.76rem;
  }

  .header-entry,
  .btn,
  .floating-entry-link {
    width: 100%;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .hero-copy {
    text-align: left;
    padding: 22px 18px 18px;
    max-width: 100%;
  }

  .hero-actions {
    margin-top: 24px;
    justify-content: flex-start;
  }

  .floating-entry {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .overview-row,
  .news-row {
    gap: 8px;
  }

  .cta-panel {
    padding: 42px 20px;
  }

  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td,
  .prose .table1,
  .prose .table1 tbody,
  .prose .table1 tr,
  .prose .table1 th,
  .prose .table1 td {
    display: block;
    width: 100%;
  }

  .info-table th,
  .prose .table1 th {
    border-bottom: 0;
    padding-bottom: 8px;
  }

  .info-table td,
  .prose .table1 td {
    padding-top: 8px;
  }

  .form-card,
  .prose .form {
    padding: 22px 16px;
  }
}
