/* =====================================================
   FONTS
   ===================================================== */
@font-face {
  font-family: 'Titulata';
  src: url('../font/Titulata-Fat.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* =====================================================
   STELLARIUM GARDEN
   White × Sky Blue Theme
   ===================================================== */

/* --- Custom Properties --- */
:root {
  /* Colors */
  --c-bg:          #FFFFFF;
  --c-surface:     #F5F9FD;
  --c-surface-2:   #EBF3FB;
  --c-border:      rgba(100, 175, 215, 0.18);
  --c-border-hi:   rgba(100, 175, 215, 0.45);

  /* Sky Blue accent */
  --c-teal:        #8CD0EB;
  --c-teal-mid:    #62B8D8;
  --c-teal-dark:   #3A9AC2;
  --c-teal-pale:   #E5F4FB;
  --c-teal-glow:   rgba(140, 208, 235, 0.14);
  --c-teal-shadow: rgba(58, 154, 194, 0.18);

  /* Text */
  --c-text:        #1A2A38;
  --c-text-muted:  #4A6478;
  --c-text-dim:    #94B4C8;

  /* Typography */
  --f-logo:     'Castoro Titling', serif;
  --f-display:  'Cormorant Garamond', 'Noto Serif JP', Georgia, serif;
  --f-body:     'Noto Serif JP', 'Hiragino Mincho ProN', Georgia, serif;

  /* Spacing */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  2rem;
  --sp-lg:  4rem;
  --sp-xl:  6rem;
  --sp-2xl: 9rem;

  /* Radius */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  24px;

  /* Transitions */
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --dur-fast: 200ms;
  --dur-mid:  400ms;
  --dur-slow: 700ms;

  /* Layout */
  --max-width: 1100px;
  --header-h:  72px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-weight: 300;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }

/* --- Utility --- */
.container {
  width: min(var(--max-width), 100% - 3rem);
  margin-inline: auto;
}
.section {
  padding-block: var(--sp-2xl);
  position: relative;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
.section__label {
  font-family: var(--f-display);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-teal-mid);
  margin-bottom: var(--sp-sm);
}
.section__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.3;
  color: var(--c-text);
  margin-bottom: var(--sp-md);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.75em 2em;
  border-radius: var(--r-sm);
  font-family: var(--f-display);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  transition: all var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--c-teal-mid), var(--c-teal));
  color: #fff;
}
.btn--primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--c-teal-shadow);
}
.btn--hero {
  border: 1px solid var(--c-border-hi);
  color: var(--c-text);
}
.btn--hero:hover {
  background: linear-gradient(135deg, var(--c-teal-mid), var(--c-teal));
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--c-teal-shadow);
}
.btn--full { width: 100%; justify-content: center; }
.btn--ghost {
  background: transparent;
  border: 1px solid #8a9ab5;
  color: #8a9ab5;
}
.btn--ghost:hover {
  border-color: #e0e8f0;
  color: #e0e8f0;
}

/* =====================================================
   SCROLL REVEAL
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  transition: background var(--dur-mid) var(--ease),
              box-shadow var(--dur-mid) var(--ease);
}
.header.scrolled {
  box-shadow: 0 1px 0 var(--c-border);
}
.header.scrolled::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: -1;
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
}

/* Logo */
.logo { display: flex; align-items: center; flex-shrink: 0; line-height: 1; }

/* Nav */
.nav ul { display: flex; gap: var(--sp-md); align-items: center; }
.nav__link {
  font-family: var(--f-display);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  transition: color var(--dur-fast) var(--ease);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--c-teal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-fast) var(--ease);
}
.nav__link:hover { color: var(--c-teal-dark); }
.nav__link:hover::after,
.nav__link.active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.active { color: var(--c-teal-dark); }

/* Header wordmark — Castoro Titling */
.header-wordmark {
  font-family: var(--f-logo);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-decoration: none;
}

/* 未スクロール時：透過水色背景 */
.header:not(.scrolled)::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(58, 154, 194, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: -1;
}
.header:not(.scrolled) .nav__link,
.header:not(.scrolled) .header-wordmark {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.header:not(.scrolled) .nav__link:hover,
.header:not(.scrolled) .header-wordmark:hover { color: #fff; }
.header:not(.scrolled) .nav__link.active { color: #fff; }
.header:not(.scrolled) .nav__link::after { background: rgba(255, 255, 255, 0.85); }
.header.scrolled .header-wordmark { color: var(--c-teal-dark); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--c-text);
  border-radius: 1px;
  transition: all var(--dur-fast) var(--ease);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__slideshow { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease;
  background-size: cover;
  background-position: center;
}
.hero__slide.active { opacity: 1; }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(4, 10, 20, 0.45) 0%,
      rgba(4, 10, 20, 0.55) 50%,
      rgba(4, 10, 20, 0.7) 100%);
}

/* Starfield */
.starfield { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: twinkle var(--dur, 3s) var(--delay, 0s) ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.1; }
  50%       { opacity: 0.9; }
}

/* Hero content */
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 2rem;
}
.hero__eyebrow {
  font-family: var(--f-display);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
}
.hero__title {
  font-family: var(--f-logo);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 40px rgba(140, 208, 235, 0.4);
}
.hero__brand {
  font-family: 'Titulata', serif;
  font-size: clamp(0.9rem, 2.25vw, 1.75rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.2;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 24px rgba(140, 208, 235, 0.3);
}
.hero__subtitle {
  font-family: var(--f-display);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}
.hero__tags {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero__tag {
  font-family: var(--f-display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  padding: 0.35em 1.2em;
}
.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}
.hero .btn--hero {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.hero .btn--hero:hover {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--f-display);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  z-index: 2;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(140, 208, 235, 0.7), transparent);
  animation: scroll-hint 2s ease-in-out infinite;
}
@keyframes scroll-hint {
  0%, 100% { opacity: 0.4; transform: scaleY(0.6); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

/* =====================================================
   SERVICES (removed)
   ===================================================== */
.service__bg-deco {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 35% at 85% 15%, rgba(140,208,235,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.service__header {
  text-align: center;
  margin-bottom: var(--sp-xl);
}
.service__catch {
  font-family: var(--f-display);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-style: italic;
  font-weight: 300;
  color: var(--c-text-muted);
  margin-top: 0.5em;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}
.srv-card {
  border: 1px solid var(--c-border-hi);
  border-radius: var(--r-lg);
  padding: 2.5rem 2rem;
  background: linear-gradient(145deg, #fff 0%, var(--c-teal-pale) 100%);
  box-shadow: 0 4px 32px rgba(106,190,221,0.07);
  transition: border-color var(--dur-mid) var(--ease),
              box-shadow var(--dur-mid) var(--ease),
              transform var(--dur-mid) var(--ease);
}
.srv-card:hover {
  border-color: var(--c-teal);
  box-shadow: 0 8px 48px rgba(106,190,221,0.14);
  transform: translateY(-4px);
}
.srv-card__icon {
  color: var(--c-teal-mid);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.srv-card__title {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--c-teal-dark);
  margin-bottom: 0.75rem;
}
.srv-card__body {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  line-height: 1.9;
}


/* =====================================================
   ABOUT
   ===================================================== */
.about-section {
  background: var(--c-bg);
  border-top: 1px solid var(--c-border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 720px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-card {
  padding: 2.5rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--dur-mid) var(--ease),
              border-color var(--dur-mid) var(--ease);
}
.about-card > * + * {
  margin-top: 1rem;
}

.about-card:hover {
  border-color: var(--c-border-hi);
  box-shadow: 0 8px 32px var(--c-teal-glow);
}

.about-card__eyebrow {
  font-family: var(--f-display);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-teal-mid);
}

.about-card__title {
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--c-text);
  line-height: 1.3;
}

.about-card__body {
  font-family: var(--f-body);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 2;
  color: var(--c-text-muted);
}

.about-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  font-family: var(--f-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--c-teal-dark);
  transition: color var(--dur-fast) var(--ease);
}

.about-card__link:hover {
  color: var(--c-teal-mid);
}

.about-card__arrow {
  margin-left: 0.4em;
  font-style: normal;
  transition: transform var(--dur-fast) var(--ease);
}

.about-card__link:hover .about-card__arrow {
  transform: translateX(3px);
}

/* =====================================================
   MODELS
   ===================================================== */
.models-section {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
}

/* =====================================================
   CONTACT
   ===================================================== */
.contact-section {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
}
.contact-wrap { max-width: 680px; margin-inline: auto; }
.contact-form { display: flex; flex-direction: column; gap: var(--sp-md); }
.form-field { display: flex; flex-direction: column; gap: 0.4em; }
.form-field label {
  font-family: var(--f-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--c-text-muted);
}
.required { color: var(--c-teal-mid); }
.form-field input,
.form-field select,
.form-field textarea {
  background: #fff;
  border: 1px solid var(--c-border-hi);
  border-radius: var(--r-sm);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 0.9rem;
  padding: 0.75em 1em;
  width: 100%;
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
  -webkit-appearance: none;
}
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a6e72' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  background-size: 16px;
  background-color: #fff;
  padding-right: 3em;
  cursor: pointer;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--c-teal);
  box-shadow: 0 0 0 3px var(--c-teal-glow);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--c-text-dim); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note {
  font-size: 0.75rem;
  color: var(--c-text-dim);
  text-align: center;
  margin-top: -0.5rem;
}
.form-success {
  padding: var(--sp-lg);
  border: 1px solid var(--c-teal);
  border-radius: var(--r-md);
  background: var(--c-teal-pale);
  text-align: center;
  font-family: var(--f-display);
  font-size: 1rem;
  color: var(--c-teal-dark);
  line-height: 1.8;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--c-surface-2);
  border-top: 1px solid var(--c-border);
  padding-block: var(--sp-xl);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
  text-align: center;
}
.footer__brand { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.footer__logo {
  font-family: var(--f-logo);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--c-teal-dark);
}
.footer__tagline {
  font-family: var(--f-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--c-text-dim);
  text-transform: uppercase;
}
.footer__nav {
  display: flex;
  gap: var(--sp-md);
}
.footer__nav a {
  font-family: var(--f-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-text-dim);
}
.footer__nav a:hover { color: var(--c-teal-dark); }
.footer__copy {
  font-size: 0.75rem;
  color: var(--c-text-dim);
  letter-spacing: 0.05em;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 680px) {
  :root { --sp-2xl: 5rem; }
  .hero__content { padding: 2rem 1rem 2.5rem; }
  .hero__title { font-size: clamp(1.8rem, 8vw, 3rem); }
  .nav-toggle { display: flex; }
  .header:not(.scrolled) .nav-toggle span { background: #fff; }
  .header:not(.scrolled) .nav-toggle.active span { background: var(--c-text); }
  .nav {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-mid) var(--ease);
    z-index: 105;
  }
  .nav.open { opacity: 1; pointer-events: all; }
  .nav ul { flex-direction: column; align-items: center; gap: var(--sp-lg); }
  .nav__link { font-size: 1.4rem; letter-spacing: 0.15em; color: var(--c-text); }
  .header:not(.scrolled) .nav__link { color: var(--c-text-muted); text-shadow: none; }
  .header:not(.scrolled) .nav__link.active { color: var(--c-teal-dark); }
  .header:not(.scrolled) .nav__link:hover { color: var(--c-teal-dark); }
  .header:not(.scrolled) .nav__link::after { background: var(--c-teal); }
  .hero__actions { flex-direction: column; align-items: center; width: 100%; }
  .hero__actions .btn { width: auto; min-width: 200px; justify-content: center; }
}

@media (max-width: 480px) {
  .hero__services { flex-direction: column; gap: 0.5em; }
  .hero__services .divider { display: none; }
  .services-grid { gap: var(--sp-sm); }
}

/* =====================================================
   Modal (Confirmation)
   ===================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 20, 0.85);
  backdrop-filter: blur(8px);
}

.modal__content {
  position: relative;
  width: 100%;
  max-width: 540px;
  background: #141728;
  border: 1px solid rgba(140, 208, 235, 0.12);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal.active .modal__content {
  transform: translateY(0);
}

.modal__title {
  text-align: center;
  font-family: var(--f-display);
  font-size: 1.5rem;
  color: #8CD0EB;
  margin-bottom: 2rem;
}

.modal__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.modal__item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(140, 208, 235, 0.08);
  padding-bottom: 1.25rem;
}

.modal__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.modal__label {
  font-size: 0.75rem;
  color: #4a5a78;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.modal__value {
  font-size: 1rem;
  color: #e0e8f0;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

.modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .modal__content {
    padding: 2rem 1.25rem;
  }
  .modal__actions {
    grid-template-columns: 1fr;
  }
}

/* ---- reCAPTCHA badge ---- */
.grecaptcha-badge { visibility: hidden !important; }
