/* ==========================================================
   usa.co.jp / site.css
   USA 250 — Celebrating 250 Years • 1776–2026
   Full stylesheet with clickable map + visual 50-state gateway
   ========================================================== */

:root {
  --navy: #09295a;
  --navy-2: #123d78;
  --navy-3: #061d42;
  --red: #b8202f;
  --red-2: #d9483f;
  --gold: #c89b3c;
  --gold-2: #e2bd63;
  --cream: #fff7e6;
  --paper: #f8edcf;
  --paper-2: #fffaf0;
  --paper-3: #f3e3bd;
  --ink: #1c2230;
  --muted: #637083;
  --line: rgba(9, 41, 90, 0.18);
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(9, 41, 90, 0.16);
  --soft-shadow: 0 14px 35px rgba(9, 41, 90, 0.12);
  --hard-shadow: 0 32px 84px rgba(6, 29, 66, 0.22);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --max: 1180px;
}

/* ==========================================================
   Base
   ========================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(200, 155, 60, 0.2), transparent 34rem),
    radial-gradient(circle at top right, rgba(184, 32, 47, 0.13), transparent 36rem),
    radial-gradient(circle at 50% 45rem, rgba(9, 41, 90, 0.08), transparent 40rem),
    linear-gradient(180deg, var(--paper-2), var(--paper));
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(9, 41, 90, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 41, 90, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--red);
}

button,
input,
select,
textarea {
  font: inherit;
}

::selection {
  background: rgba(184, 32, 47, 0.18);
}

/* ==========================================================
   Layout
   ========================================================== */

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

.section {
  padding: 72px 0;
}

.section-tight {
  padding: 44px 0;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

/* ==========================================================
   Top announcement / header
   ========================================================== */

.usa250-ribbon {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, var(--red), var(--navy), var(--red));
  color: var(--white);
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  padding: 9px 14px;
  text-transform: uppercase;
}

.usa250-ribbon::before,
.usa250-ribbon::after {
  content: "★ ★ ★";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.45em;
}

.usa250-ribbon::before {
  left: 18px;
}

.usa250-ribbon::after {
  right: 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 240, 0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(6, 29, 66, 0.06);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
  color: var(--navy);
  line-height: 1.05;
}

.logo:hover {
  color: var(--navy);
}

.logo strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: 0.03em;
}

.logo span {
  color: var(--red);
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 900;
  color: var(--navy);
  padding: 10px 13px;
  border-radius: 999px;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--white);
  background: var(--navy);
  transform: translateY(-1px);
}

/* ==========================================================
   Hero
   ========================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 50px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(255, 247, 230, 0.78));
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  opacity: 0.42;
  filter: blur(10px);
}

.hero::before {
  left: -160px;
  top: -160px;
  background: radial-gradient(circle, rgba(184, 32, 47, 0.22), transparent 68%);
}

.hero::after {
  right: -160px;
  bottom: -160px;
  background: radial-gradient(circle, rgba(9, 41, 90, 0.22), transparent 68%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 42px;
  align-items: center;
}

.hero-copy {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--red);
  background: rgba(184, 32, 47, 0.08);
  border: 1px solid rgba(184, 32, 47, 0.18);
  border-radius: 999px;
  padding: 7px 13px;
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
  content: "★";
  color: var(--gold);
  font-size: 0.85rem;
}

.hero h1 {
  margin: 18px 0 18px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.hero h1 .red {
  color: var(--red);
}

.hero-lede {
  max-width: 640px;
  color: #2e3a4f;
  font-size: clamp(1.04rem, 1.6vw, 1.22rem);
  line-height: 1.85;
}

.hero-lede + .hero-lede {
  margin-top: 12px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 19px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--red-2));
  box-shadow: 0 13px 24px rgba(184, 32, 47, 0.22);
}

.button-primary:hover {
  color: var(--white);
  box-shadow: 0 18px 32px rgba(184, 32, 47, 0.3);
}

.button-secondary {
  color: var(--navy);
  background: var(--white);
  border-color: rgba(9, 41, 90, 0.18);
  box-shadow: var(--soft-shadow);
}

.button-secondary:hover {
  color: var(--navy);
  box-shadow: 0 18px 36px rgba(9, 41, 90, 0.15);
}

.hero-card {
  position: relative;
  margin: 0;
  background: var(--white);
  border: 1px solid rgba(9, 41, 90, 0.14);
  border-radius: var(--radius-xl);
  padding: 14px;
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: calc(var(--radius-xl) + 10px);
  background:
    linear-gradient(135deg, rgba(184, 32, 47, 0.32), rgba(255, 255, 255, 0), rgba(9, 41, 90, 0.25));
}

.hero-map-image {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(9, 41, 90, 0.14);
}

.hero-caption {
  padding: 13px 8px 3px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* ==========================================================
   Section headings / cards
   ========================================================== */

.section-heading {
  max-width: 820px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2 {
  margin: 12px 0 12px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(9, 41, 90, 0.14);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 10px 28px rgba(9, 41, 90, 0.08);
}

.card h2,
.card h3 {
  color: var(--navy);
}

.card p:last-child {
  margin-bottom: 0;
}

/* ==========================================================
   Clickable image map area
   ========================================================== */

.map-section {
  padding: 52px 0 72px;
}

.map-wrap {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 230, 0.94));
  border: 1px solid rgba(9, 41, 90, 0.16);
  border-radius: var(--radius-xl);
  padding: clamp(14px, 2.2vw, 26px);
  box-shadow: var(--shadow);
}

.map-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.map-title h2 {
  margin: 12px 0 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.map-title p {
  margin: 0;
  max-width: 500px;
  color: var(--muted);
}

.clickable-map {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--paper);
  border: 1px solid rgba(9, 41, 90, 0.16);
}

.clickable-map img,
.clickable-map svg {
  width: 100%;
  display: block;
}

.clickable-map area {
  cursor: pointer;
}

.state-hotspot,
.clickable-map svg a,
.clickable-map svg path {
  transition: opacity 0.15s ease, filter 0.15s ease, transform 0.15s ease;
}

.clickable-map svg a:hover path,
.clickable-map svg path:hover {
  filter: drop-shadow(0 0 10px rgba(184, 32, 47, 0.45));
  opacity: 0.88;
}

.map-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

/* ==========================================================
   Visual State Gateway
   ========================================================== */

.visual-state-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(184, 32, 47, 0.09), transparent 28rem),
    radial-gradient(circle at 88% 22%, rgba(9, 41, 90, 0.09), transparent 32rem),
    linear-gradient(180deg, rgba(255, 250, 240, 0.82), rgba(255, 247, 230, 0.94));
}

.visual-state-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.visual-state-card {
  position: relative;
  display: block;
  min-height: 260px;
  overflow: hidden;
  border-radius: 22px;
  text-decoration: none;
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 16px 34px rgba(9, 41, 90, 0.16);
  border: 1px solid rgba(9, 41, 90, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.visual-state-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 54px rgba(9, 41, 90, 0.22);
  color: var(--white);
  border-color: rgba(200, 155, 60, 0.45);
}

.visual-state-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.01);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.visual-state-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.16) contrast(1.04);
}

.visual-state-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.72)),
    linear-gradient(135deg, rgba(184, 32, 47, 0.22), rgba(9, 41, 90, 0.18));
}

.visual-state-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
}

.visual-state-card-content {
  position: absolute;
  z-index: 3;
  left: 18px;
  right: 18px;
  bottom: 17px;
}

.visual-state-card-content strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.1;
  margin-bottom: 4px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.48);
}

.visual-state-card-content span {
  display: block;
  font-size: 0.9rem;
  opacity: 0.92;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
}

/* ==========================================================
   State directory cards
   ========================================================== */

.state-directory {
  background:
    linear-gradient(180deg, rgba(255, 247, 230, 0.6), rgba(255, 250, 240, 0.9));
}

.state-search-label {
  display: block;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 8px;
}

.state-search-input,
input[data-state-filter] {
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(9, 41, 90, 0.2);
  padding: 12px 18px;
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.state-search-input:focus,
input[data-state-filter]:focus {
  border-color: rgba(184, 32, 47, 0.48);
  box-shadow: 0 0 0 4px rgba(184, 32, 47, 0.11);
}

.state-card {
  position: relative;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(9, 41, 90, 0.14);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(9, 41, 90, 0.08);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.state-card::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -42px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(200, 155, 60, 0.24), transparent 66%);
}

.state-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--soft-shadow);
  border-color: rgba(184, 32, 47, 0.28);
  color: var(--ink);
}

.state-card strong {
  position: relative;
  z-index: 1;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
  line-height: 1.1;
}

.state-card span:not(.abbr) {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 0.92rem;
}

.state-card .abbr {
  position: absolute;
  right: 16px;
  top: 14px;
  color: rgba(184, 32, 47, 0.14);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1;
  font-weight: 900;
}

/* ==========================================================
   Feature panels
   ========================================================== */

.feature-band {
  background:
    radial-gradient(circle at 20% 0%, rgba(200, 155, 60, 0.18), transparent 26rem),
    radial-gradient(circle at 80% 100%, rgba(184, 32, 47, 0.2), transparent 30rem),
    linear-gradient(135deg, var(--navy), #061d42 58%, #0d3c7a);
  color: var(--white);
  border-block: 5px solid var(--red);
}

.feature-band .section-heading h2,
.feature-band .section-heading p {
  color: var(--white);
}

.feature-band .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--gold-2);
}

.feature-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-height: 230px;
  backdrop-filter: blur(6px);
}

.feature-panel h3 {
  margin: 0 0 10px;
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.feature-panel p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.84);
}

.feature-panel a {
  color: var(--white);
  font-weight: 900;
}

.feature-panel a:hover {
  color: var(--gold-2);
}

/* ==========================================================
   Footer
   ========================================================== */

.site-footer {
  background:
    radial-gradient(circle at 20% 0%, rgba(184, 32, 47, 0.18), transparent 24rem),
    linear-gradient(180deg, #061d42, #04152f);
  color: rgba(255, 255, 255, 0.82);
  padding: 46px 0 30px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
}

.footer-brand {
  color: var(--white);
}

.footer-brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 8px;
}

.footer-brand p {
  margin: 0;
  max-width: 680px;
}

.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.9rem;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transform: translateY(-1px);
}

.copyright {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
}

/* ==========================================================
   Utility
   ========================================================== */

.center {
  text-align: center;
}

.muted {
  color: var(--muted);
}

.red {
  color: var(--red);
}

.navy {
  color: var(--navy);
}

.gold {
  color: var(--gold);
}

.reveal {
  will-change: opacity, transform;
}

/* ==========================================================
   Accessibility
   ========================================================== */

:focus-visible {
  outline: 4px solid rgba(184, 32, 47, 0.35);
  outline-offset: 3px;
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 1100px) {
  .visual-state-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

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

  .hero-lede {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .map-title {
    display: block;
    text-align: center;
  }

  .map-title p {
    margin: 12px auto 0;
  }

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

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

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

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

  .header-inner {
    min-height: auto;
    padding: 16px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    justify-content: flex-start;
    width: 100%;
    gap: 6px;
  }

  .main-nav a {
    padding: 8px 10px;
    font-size: 0.88rem;
  }

  .section {
    padding: 52px 0;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 16vw, 4.5rem);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .visual-state-grid {
    grid-template-columns: 1fr;
  }

  .state-card {
    min-height: 126px;
  }

  .clickable-map {
    overflow-x: auto;
  }

  .clickable-map img,
  .clickable-map svg {
    min-width: 760px;
  }

  .usa250-ribbon {
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    padding-inline: 40px;
  }

  .usa250-ribbon::before,
  .usa250-ribbon::after {
    display: none;
  }
}

@media (max-width: 580px) {
  .visual-state-card,
  .visual-state-card img {
    min-height: 230px;
  }

  .visual-state-card-content strong {
    font-size: 1.3rem;
  }
}

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

  .hero-card,
  .map-wrap {
    border-radius: 20px;
    padding: 10px;
  }

  .button {
    width: 100%;
  }

  .footer-links a {
    width: 100%;
    text-align: center;
  }

  .card,
  .feature-panel {
    padding: 20px;
  }
}
