/* ================================================================
   SORA — Personal Activity Site
   Design: Navy + Vermillion + Gold (祭り × 世界)
   ================================================================ */

:root {
  --navy:       #0b1f38;
  --navy-mid:   #102844;
  --navy-light: #1a3a5c;
  --vermillion: #c43a24;
  --vermillion-dark: #a8301c;
  --gold:       #d4a843;
  --gold-light: #f5c842;
  --white:      #fafaf7;
  --paper:      #f5ede0;
  --paper-deep: #e8d8c4;
  --ink:        #1a1a1a;
  --muted:      #6b7280;
  --border:     rgba(26, 26, 26, 0.1);

  --shadow-sm:  0 4px 16px rgba(11, 31, 56, 0.1);
  --shadow-md:  0 12px 40px rgba(11, 31, 56, 0.16);
  --shadow-lg:  0 24px 64px rgba(11, 31, 56, 0.2);

  --edge:   clamp(20px, 5vw, 56px);
  --max:    1200px;
  --radius: 10px;
  --header-height: 72px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html {
  margin: 0;
  padding: 0;
  background: var(--navy);
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overscroll-behavior-y: none;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", system-ui,
               -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
.keep-together { white-space: nowrap; }

/* ── Language toggle ── */
[data-lang="en"] .ja { display: none; }
[data-lang="ja"] .en { display: none; }

/* ── Reveal animations ── */
.reveal {
  opacity: 1;
  transform: none;
}
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 680ms ease, transform 680ms ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 1ms !important; }
}

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0;
  z-index: 50;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 var(--edge);
  color: var(--white);
  transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}
.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(250, 250, 247, 0.94);
  box-shadow: 0 4px 24px rgba(11, 31, 56, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: currentColor;
  flex-shrink: 0;
}
.site-header.is-scrolled .brand,
.site-header.is-open .brand { color: var(--navy); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.site-nav a {
  position: relative;
  padding: 6px 0;
  opacity: 0.9;
  white-space: nowrap;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--vermillion);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}
.site-nav a:hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-toggle {
  height: 34px;
  padding: 0 14px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: currentColor;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 160ms, color 160ms;
}
.lang-toggle:hover {
  background: var(--vermillion);
  border-color: var(--vermillion);
  color: var(--white);
}

.menu-button {
  display: none;
  width: 40px; height: 40px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-button span {
  display: block;
  width: 16px; height: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}
.site-header.is-open .menu-button span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .menu-button span:nth-child(2) { opacity: 0; }
.site-header.is-open .menu-button span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
  padding: 140px var(--edge) 80px;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.hero-media,
.hero-media img,
.hero-media video,
.hero-shade {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
}
.hero-media img,
.hero-media video {
  object-fit: cover;
  object-position: center 30%;
}

/* Video plays on top; hide the fallback img once video is ready */
.hero-video {
  z-index: 1;
  pointer-events: none;
  background: transparent;
  outline: none;
  border: none;
}
.hero-img { z-index: 0; }

/* Suppress all native video overlay controls on WebKit/Safari */
.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-panel,
.hero-video::-webkit-media-controls-play-button,
.hero-video::-webkit-media-controls-start-playback-button { display: none !important; }
.hero-shade {
  background:
    linear-gradient(100deg, rgba(11,31,56,.82) 0%, rgba(11,31,56,.46) 52%, rgba(11,31,56,.12) 100%),
    linear-gradient(0deg, rgba(11,31,56,.7) 0%, rgba(11,31,56,.02) 48%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.01em;
}
.hero h1 .en {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
}

.hero-sub {
  margin-bottom: 36px;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.85;
  color: rgba(250, 250, 247, 0.88);
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.6;
}
.scroll-arrow {
  display: block;
  width: 20px; height: 20px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
  animation: bounce 1.6s ease infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  white-space: nowrap;
  border: none;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  color: var(--navy);
  background: var(--gold);
  box-shadow: 0 8px 28px rgba(212, 168, 67, 0.4);
}
.btn-gold:hover { background: var(--gold-light); }

.btn-outline-white {
  color: var(--white);
  background: transparent;
  border: 2px solid rgba(250,250,247,0.55);
}
.btn-outline-white:hover {
  background: rgba(250,250,247,0.12);
  border-color: var(--white);
}

.btn-vermillion {
  color: var(--white);
  background: var(--vermillion);
  box-shadow: 0 8px 28px rgba(196, 58, 36, 0.3);
}
.btn-vermillion:hover { background: var(--vermillion-dark); }

.btn-lg { min-height: 56px; padding: 14px 32px; font-size: 1rem; }

/* ================================================================
   SECTIONS — common
   ================================================================ */
.section { padding: clamp(72px, 10vw, 120px) var(--edge); }
.section-paper  { background: var(--paper); }
.section-white  { background: var(--white); }
.section-navy   { background: var(--navy); color: var(--white); }

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

.section-kicker {
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vermillion);
}
.kicker-gold { color: var(--gold); }

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.18;
}
.section-heading .en {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}
.section-heading-center {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.section-navy .section-heading h2 { color: var(--white); }

/* ================================================================
   ABOUT
   ================================================================ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.about-photo {
  position: sticky;
  top: 100px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.about-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}

.about-text .section-kicker { display: block; }
.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 28px;
}
.about-body p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 1.02rem;
}
.about-mission {
  margin-top: 28px;
  padding: 20px 24px;
  border-left: 4px solid var(--gold);
  background: rgba(212, 168, 67, 0.07);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink) !important;
  font-weight: 600;
}

.about-sns { margin-top: 32px; }
.sns-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  transition: background 160ms, border-color 160ms;
}
.sns-pill:hover {
  background: var(--paper-deep);
  border-color: var(--ink);
}

/* ================================================================
   GLOBE
   ================================================================ */
.globe-hint {
  margin-top: 12px;
  font-size: 0.84rem;
  color: rgba(250,250,247,0.55);
  letter-spacing: 0.02em;
}

.globe-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
}

.globe-canvas-wrap {
  display: flex;
  justify-content: center;
}

#globe-canvas {
  display: block;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  cursor: grab;
  touch-action: none;   /* prevent page scroll while rotating the globe */
  border-radius: 50%;
  box-shadow:
    0 0 0 2px rgba(110,184,247,0.45),
    0 0 80px rgba(60,140,240,0.35),
    0 30px 70px rgba(0,0,0,0.5);
}
#globe-canvas:active { cursor: grabbing; }

.globe-popup {
  position: relative;   /* needed for .popup-close absolute positioning */
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.globe-popup.hidden {
  display: none;
}
.globe-popup:not(.hidden) {
  animation: popupIn 260ms ease forwards;
}
@keyframes popupIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.popup-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  color: var(--white);
  cursor: pointer;
  z-index: 2;
  transition: background 160ms;
}
.popup-close:hover { background: rgba(0,0,0,0.65); }

.popup-photo-wrap {
  position: relative;
  overflow: hidden;
}
.popup-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.popup-body {
  padding: 20px 22px 24px;
}
.popup-date {
  margin-bottom: 4px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.popup-event {
  margin-bottom: 4px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
}
.popup-place {
  margin-bottom: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--vermillion);
}
.popup-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.75;
}
.popup-event-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.popup-event-list[hidden] {
  display: none;
}
.popup-event-item {
  width: 100%;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms, background 160ms, transform 160ms;
}
.popup-event-item:hover,
.popup-event-item:focus-visible {
  border-color: var(--gold);
  background: var(--white);
  transform: translateY(-1px);
}
.popup-event-item.is-active {
  border-color: var(--gold);
  background: rgba(212,168,67,0.1);
}
.popup-event-thumb {
  width: 56px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}
.popup-event-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.popup-event-date {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.popup-event-title {
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--navy);
}
.popup-event-place {
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--muted);
}

/* ================================================================
   HAPPI
   ================================================================ */
.happi-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.happi-image {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  background: #f0f0f0;
}
.happi-image img {
  width: 100%;
  object-fit: contain;
  padding: 16px;
}

.happi-text h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 28px;
}
.happi-body p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 1.02rem;
}
.happi-highlight {
  padding: 16px 20px;
  border-left: 4px solid var(--gold);
  background: rgba(212,168,67,0.07);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink) !important;
  font-weight: 600;
}

/* ================================================================
   SERVICES
   ================================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 220ms ease, transform 220ms ease;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.service-card-featured {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(212,168,67,0.04), var(--white));
}

.service-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.service-number {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.service-icon {
  width: 40px; height: 40px;
  color: var(--navy);
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--navy);
}
.service-tagline {
  margin-bottom: 16px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--vermillion);
}
.service-body {
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  flex: 1;
}

.service-list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.service-list li {
  padding: 5px 0 5px 20px;
  position: relative;
  font-size: 0.86rem;
  color: var(--muted);
}
.service-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.8rem;
}

.session-concept {
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--navy);
  font-weight: 700;
}
.countries-text {
  margin-bottom: 24px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ================================================================
   TIMELINE
   ================================================================ */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.timeline-event {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}

.timeline-meta {
  position: sticky;
  top: 100px;
  padding-top: 6px;
}

.timeline-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  margin-bottom: 14px;
  box-shadow: 0 0 0 4px rgba(212,168,67,0.2);
}

.timeline-date {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.timeline-place {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.5;
}

.timeline-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.timeline-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.timeline-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  transition: transform 300ms ease;
}
.timeline-photos img:hover { transform: scale(1.03); }

.timeline-text h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
}
.timeline-role {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 12px;
  background: rgba(212,168,67,0.12);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--gold);
}
.timeline-text p {
  margin-bottom: 14px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.85;
}

/* ================================================================
   VISION BANNER
   ================================================================ */
.vision-banner {
  padding: clamp(72px, 10vw, 112px) var(--edge);
  background:
    linear-gradient(rgba(11,31,56,0.76), rgba(11,31,56,0.76)),
    url("assets/images/IMG_0487.JPG") center 60% / cover;
  text-align: center;
  color: var(--white);
}
.vision-banner-inner { max-width: 880px; margin: 0 auto; }
.vision-banner p {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.35;
}
.vision-banner .en {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  color: var(--gold);
}
.vision-banner .ja { margin-bottom: 16px; }

/* ================================================================
   CONTACT
   ================================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact-intro h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}
.contact-intro > p {
  margin-bottom: 0;
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.85;
}

.contact-sns { margin-top: 28px; }
.sns-label {
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sns-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form.hidden { display: none; }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}
.required { color: var(--vermillion); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.94rem;
  transition: border-color 160ms, box-shadow 160ms;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11,31,56,0.08);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: var(--vermillion); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { appearance: none; cursor: pointer; }

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 4px;
}
.form-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.contact-form .btn:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.form-error {
  margin: 0;
  padding: 12px 14px;
  border-left: 4px solid var(--vermillion);
  border-radius: 0 8px 8px 0;
  background: rgba(196,58,36,0.08);
  color: var(--vermillion-dark);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.65;
}
.form-error.hidden { display: none; }

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 32px;
}
.form-success.hidden { display: none; }
.success-check {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(212,168,67,0.15);
  color: var(--gold);
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 20px;
}
.form-success h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
}
.form-success p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: #080f1c;
  color: rgba(250,250,247,0.7);
  padding: 56px var(--edge) 40px;
  text-align: center;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }

.footer-brand {
  margin-bottom: 10px;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--white);
}
.footer-tagline {
  margin-bottom: 28px;
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-tagline .ja {
  color: rgba(250,250,247,0.8);
  white-space: nowrap;
}
.footer-tagline .en {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 24px;
  margin-bottom: 28px;
  font-size: 0.82rem;
  font-weight: 700;
}
.footer-nav a { opacity: 0.7; transition: opacity 160ms; }
.footer-nav a:hover { opacity: 1; }

.footer-sns {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}
.footer-sns a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(250,250,247,0.2);
  border-radius: 50%;
  color: rgba(250,250,247,0.7);
  transition: background 160ms, border-color 160ms, color 160ms;
}
.footer-sns a:hover {
  background: var(--vermillion);
  border-color: var(--vermillion);
  color: var(--white);
}

.footer-copy {
  margin: 0;
  font-size: 0.76rem;
  opacity: 0.45;
}
.footer-credit {
  margin: 8px 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  opacity: 0.35;
}

/* ================================================================
   RESPONSIVE — 1080px
   ================================================================ */
@media (max-width: 1080px) {
  .globe-layout {
    grid-template-columns: 1fr;
  }
  .globe-canvas-wrap {
    justify-content: center;
  }
  #globe-canvas { max-width: 480px; }
  .globe-popup {
    max-width: 500px;
    margin: 0 auto;
  }

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

  .timeline-event {
    grid-template-columns: 160px 1fr;
    gap: 32px;
  }

  .timeline-content {
    grid-template-columns: 1fr;
  }
  .timeline-photos {
    grid-template-columns: 1fr 1fr;
  }
}

/* ================================================================
   RESPONSIVE — 860px
   ================================================================ */
@media (max-width: 860px) {
  .site-nav {
    position: fixed;
    top: var(--header-height); left: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--edge) 20px;
    background: rgba(250,250,247,0.97);
    box-shadow: 0 20px 40px rgba(11,31,56,0.14);
    transform: translateY(calc(-100% - var(--header-height) - 8px));
    visibility: hidden;
    pointer-events: none;
    transition: transform 220ms ease, visibility 0s linear 220ms;
    z-index: 40;
    backdrop-filter: blur(16px);
  }
  .site-header.is-open .site-nav {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .site-nav a {
    width: 100%;
    padding: 16px 0;          /* larger touch target */
    border-bottom: 1px solid rgba(11,31,56,0.08);
    color: var(--ink);
    font-size: 1rem;
  }
  .site-nav a:last-child { border-bottom: none; }

  .menu-button { display: flex; }

  .about-layout { grid-template-columns: 1fr; }
  .about-photo {
    position: static;
    max-width: 340px;
    margin: 0 auto;
  }

  .happi-layout { grid-template-columns: 1fr; }
  .happi-image { max-width: 480px; margin: 0 auto; }

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

  .timeline-event {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .timeline-meta { position: static; }

  .contact-layout { grid-template-columns: 1fr; }

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

  /* ── iOS: prevent zoom on form focus (16px minimum) ── */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 1rem;
    padding: 13px 16px;
  }

  /* ── Larger touch targets ── */
  .lang-toggle { height: 40px; padding: 0 16px; }
  .btn { min-height: 52px; }
}

/* ================================================================
   RESPONSIVE — 520px (スマートフォン)
   ================================================================ */
@media (max-width: 520px) {
  :root { --header-height: 62px; }

  html { scroll-padding-top: var(--header-height); }

  /* ── Section padding: tighter on small screens ── */
  .section { padding: 56px var(--edge); }

  /* ── Hero ── */
  .hero {
    min-height: 94svh;
    align-items: flex-end;
    padding-top: 86px;
    padding-bottom: 104px;
  }
  .hero-media img,
  .hero-media video {
    object-position: 58% 28%;
    filter: brightness(0.66) saturate(0.84) contrast(0.96);
  }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(11,31,56,0.48) 0%, rgba(11,31,56,0.76) 42%, rgba(11,31,56,0.96) 100%),
      linear-gradient(90deg, rgba(11,31,56,0.94) 0%, rgba(11,31,56,0.68) 66%, rgba(11,31,56,0.5) 100%);
  }
  .hero-inner {
    max-width: 360px;
  }
  .eyebrow {
    margin-bottom: 14px;
    font-size: 0.56rem;
    letter-spacing: 0.06em;
  }
  .hero h1 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 10vw, 2.32rem);
    line-height: 1.06;
    text-shadow: 0 4px 22px rgba(0,0,0,0.46);
  }
  .hero-sub {
    margin-bottom: 24px;
    font-size: 0.88rem;
    line-height: 1.72;
    color: rgba(250, 250, 247, 0.94);
    text-shadow: 0 3px 18px rgba(0,0,0,0.44);
  }
  /* Stack buttons vertically and make them fill the row */
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero-buttons .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    min-height: 52px;
  }

  /* ── Globe ── */
  #globe-canvas { max-width: 320px; }
  .globe-popup { margin-top: 16px; }

  /* ── About ── */
  .about-photo { max-width: 280px; }
  .about-text h2 { font-size: 1.7rem; }

  /* ── Services ── */
  .service-card { padding: 28px 22px; }

  /* ── Timeline ── */
  .timeline { gap: 48px; }
  .timeline-photos { grid-template-columns: 1fr; }
  .timeline-photos img:last-child { display: none; }
  .timeline-text h3 { font-size: 1.1rem; }

  /* ── Contact form ── */
  .form-foot { flex-direction: column; align-items: stretch; }
  .btn-lg { width: 100%; }
  .form-success { padding: 36px 20px; }

  /* ── Footer ── */
  .footer-nav { gap: 4px 20px; font-size: 0.78rem; }
}

/* ================================================================
   RESPONSIVE — 400px (超小型端末)
   ================================================================ */
@media (max-width: 400px) {
  :root { --edge: 16px; }

  .hero h1 { font-size: 1.9rem; }
  .eyebrow { font-size: 0.66rem; }

  #globe-canvas { max-width: 280px; }

  .section-heading h2 { font-size: 1.6rem; }

  .service-card { padding: 22px 18px; }

  .popup-body { padding: 16px 18px 20px; }
}
