/* =========================================================
   Azumaya Recovery Pod — style.css
   Mobile-first / Responsive (320px〜)
   Breakpoints: 768px (tablet), 1200px (desktop)
   ========================================================= */

/* ----- Design Tokens ----- */
:root {
  --color-bg: #F8F6F1;      /* off-white base */
  --color-surface: #FFFFFF; /* cards */
  --color-navy: #0D1B2A;    /* main */
  --color-gold: #B8952A;    /* accent */
  --color-text: #1C2530;
  --color-text-muted: #5A6675;
  --color-border: #E5E0D6;

  --font-heading: Georgia, 'Times New Roman', 'Noto Sans JP', serif;
  --font-body: Calibri, system-ui, -apple-system, 'Noto Sans JP', sans-serif;

  --maxw: 1200px;
  --gutter: 20px;

  --nav-h: 64px;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 27, 42, 0.08);
  --shadow-hover: 0 16px 40px rgba(13, 27, 42, 0.14);
  --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----- Reset ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

/* ----- Layout helpers ----- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 72px 0;
}

.section__lead {
  color: var(--color-text-muted);
  max-width: 620px;
  margin: 0 auto;
}

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 700;
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  color: var(--color-navy);
  margin-bottom: 20px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}

/* Soft light ripple that blooms from the center on press */
.btn::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}

.btn--gold {
  background-color: var(--color-gold);
  color: #fff;
  box-shadow: 0 8px 24px rgba(184, 149, 42, 0.35);
}

.btn--gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(184, 149, 42, 0.45);
}

/* While held down: gently sink in */
.btn:active {
  transform: scale(0.96);
  transition-duration: 0.08s;
}

/* On press (JS toggles .btn--press): soft springy "pop" + ripple */
.btn--press {
  animation: btnPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn--press::after {
  animation: btnRipple 0.6s ease-out;
}

@keyframes btnPop {
  0%   { transform: scale(0.94); }
  45%  { transform: scale(1.05); box-shadow: 0 22px 46px rgba(184, 149, 42, 0.55); }
  100% { transform: scale(1); }
}

@keyframes btnRipple {
  0%   { transform: translate(-50%, -50%) scale(0);  opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(34); opacity: 0; }
}

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background-color: transparent;
  transition: background-color var(--transition), box-shadow var(--transition);
}

.nav.is-scrolled {
  background-color: var(--color-navy);
  box-shadow: 0 4px 20px rgba(13, 27, 42, 0.25);
}

.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
}

.nav__logo img {
  display: block;
  width: auto;
  height: 28px;
}

.nav__menu {
  display: none;
  list-style: none;
  align-items: center;
  gap: 28px;
}

.nav__menu a {
  color: #fff;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  position: relative;
  padding: 6px 2px;
  transition: color var(--transition);
}

.nav__menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: width var(--transition);
}

.nav__menu a:hover {
  color: var(--color-gold);
}

.nav__menu a:hover::after {
  width: 100%;
}

.nav__lang {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}

.nav__lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 8px;
  transition: color var(--transition), background-color var(--transition);
}

.nav__lang a.is-active {
  color: var(--color-gold);
}

.nav__lang a:hover {
  color: #fff;
}

.nav__lang span {
  color: rgba(255, 255, 255, 0.4);
}

/* Mobile menu toggle */
.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.nav__drawer {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  width: 100%;
  background-color: var(--color-navy);
  transform: translateY(-150%);
  transition: transform var(--transition);
  z-index: 999;
  padding: 16px var(--gutter) 28px;
  box-shadow: 0 12px 30px rgba(13, 27, 42, 0.3);
}

.nav__drawer.is-open {
  transform: translateY(0);
}

.nav__drawer ul {
  list-style: none;
}

.nav__drawer a {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  padding: 14px 4px;
  min-height: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav__drawer a:hover {
  color: var(--color-gold);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(13, 27, 42, 0.72) 0%, rgba(13, 27, 42, 0.55) 50%, rgba(13, 27, 42, 0.75) 100%),
    #0D1B2A;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-img, none);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 27, 42, 0.78) 0%, rgba(13, 27, 42, 0.5) 45%, rgba(13, 27, 42, 0.82) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 60px;
  max-width: 760px;
}

.hero__title {
  font-size: clamp(2rem, 8vw, 3.6rem);
  line-height: 1.25;
  margin-bottom: 22px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero__sub {
  font-size: clamp(1rem, 3.5vw, 1.35rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 36px;
  font-family: var(--font-body);
}

.hero .scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: floaty 2s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* =========================================================
   Concept
   ========================================================= */
.concept {
  background-color: var(--color-bg);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 48px;
}

.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(184, 149, 42, 0.12);
  color: var(--color-gold);
  margin-bottom: 20px;
}

.card__icon svg {
  width: 26px;
  height: 26px;
}

.card__title {
  font-size: 1.2rem;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.card__text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* =========================================================
   Why 20 (Science)
   ========================================================= */
.science {
  background-color: var(--color-navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.science__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.science__number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(8rem, 40vw, 18rem);
  line-height: 0.9;
  color: var(--color-gold);
  letter-spacing: -0.02em;
  position: relative;
  text-align: center;
}

.science__number small {
  font-size: 0.18em;
  letter-spacing: 0.1em;
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  margin-top: 0.4em;
  font-family: var(--font-body);
  font-weight: 700;
}

.science__title {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  margin-bottom: 20px;
  color: #fff;
}

.science__text {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
}

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

/* =========================================================
   Locations
   ========================================================= */
.locations__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
  margin-bottom: 44px;
}

.locations__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--color-gold);
  color: var(--color-navy);
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  background-color: var(--color-surface);
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
    transform var(--transition), box-shadow var(--transition);
}

.locations__tag-ic {
  width: 16px;
  height: 16px;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.locations__tag:hover,
.locations__tag:focus-visible {
  background-color: var(--color-gold);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(184, 149, 42, 0.3);
  outline: none;
}

.locations__tag:hover .locations__tag-ic,
.locations__tag:focus-visible .locations__tag-ic {
  opacity: 1;
}

.locations__tag:active {
  transform: scale(0.96);
  transition-duration: 0.08s;
}

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

.locations__img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.locations__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.locations__img:hover img {
  transform: scale(1.05);
}

/* =========================================================
   Lightbox (location images)
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(13, 27, 42, 0.88);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.is-visible {
  display: flex;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox__figure {
  margin: 0;
  max-width: 1000px;
  width: 100%;
  transform: scale(0.94);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.is-open .lightbox__figure {
  transform: scale(1);
}

.lightbox__img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.lightbox__caption {
  text-align: center;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  margin-top: 18px;
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: rotate(90deg);
}

/* =========================================================
   Testimonials
   ========================================================= */
.testimonials {
  background-color: var(--color-bg);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 48px;
}

.testimonial {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.testimonial__quote {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 24px;
  flex-grow: 1;
  position: relative;
  padding-top: 28px;
}

.testimonial__quote::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: -4px;
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: rgba(184, 149, 42, 0.3);
  line-height: 1;
}

.testimonial__meta {
  border-top: 1px solid var(--color-border);
  padding-top: 18px;
}

.testimonial__company {
  font-weight: 700;
  color: var(--color-navy);
  font-size: 1rem;
  margin-bottom: 4px;
}

.testimonial__person {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.testimonial__tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 999px;
  background-color: rgba(13, 27, 42, 0.06);
  color: var(--color-navy);
  font-weight: 700;
}

/* =========================================================
   CTA
   ========================================================= */
.cta {
  background:
    linear-gradient(160deg, rgba(13, 27, 42, 0.92), rgba(13, 27, 42, 0.78)),
    var(--cta-img, none);
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
}

.cta__title {
  font-size: clamp(1.8rem, 5.5vw, 2.8rem);
  margin-bottom: 18px;
  color: #fff;
}

.cta__text {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 36px;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background-color: var(--color-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 32px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
}

.footer__logo img {
  display: block;
  width: auto;
  height: 24px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__links a {
  font-size: 0.9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-gold);
}

.footer__copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* =========================================================
   Scroll reveal animation
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
  .hero .scroll-hint { animation: none; }
  .btn--press,
  .btn--press::after { animation: none; }
  .lightbox,
  .lightbox__figure { transition: none; }
  .lightbox__close:hover { transform: none; }
}

/* =========================================================
   Privacy policy page
   ========================================================= */
.legal {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 80px;
}

.legal h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--color-navy);
  margin-bottom: 12px;
}

.legal .legal__updated {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.3rem;
  color: var(--color-navy);
  margin: 40px 0 14px;
}

.legal p,
.legal li {
  color: var(--color-text);
  font-size: 0.98rem;
  margin-bottom: 14px;
}

.legal ul {
  padding-left: 1.4em;
}

.legal a {
  color: var(--color-gold);
  text-decoration: underline;
}

/* Privacy page nav stays navy (no transparent hero behind it) */
.nav--solid {
  background-color: var(--color-navy);
  box-shadow: 0 4px 20px rgba(13, 27, 42, 0.25);
}

/* =========================================================
   Tablet  ≥ 768px
   ========================================================= */
@media (min-width: 768px) {
  .section { padding: 96px 0; }

  .nav__toggle { display: none; }
  .nav__menu { display: flex; }
  .nav__drawer { display: none; }

  .cards { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .science__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
  }
  .science__number { text-align: left; }

  .locations__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

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

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* =========================================================
   Desktop  ≥ 1200px
   ========================================================= */
@media (min-width: 1200px) {
  .section { padding: 120px 0; }

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

  .hero__inner { padding-top: calc(var(--nav-h) + 60px); }
}
