/* =============================================================
   安城市川島町中田 No.38 GX志向基準クリア住宅 LP
   style.css — Main Stylesheet
   ============================================================= */

/* ─────────────────────────────────────────────
   CSS Custom Properties（デザイントークン）
───────────────────────────────────────────── */
:root {
  /* Colors */
  --color-white: #ffffff;
  --color-bg: #f8f8f6;
  --color-bg-gray: #f0f2f4;
  --color-bg-dark: #1a2e4a;
  --color-text: #2c2c2c;
  --color-text-light: #666666;
  --color-text-white: #ffffff;
  --color-border: #e0e0e0;

  /* Brand */
  --color-navy: #1a2e4a;
  --color-navy-light: #243b5a;
  --color-charcoal: #333333;
  --color-green: #2d6a4f;
  --color-green-light: #52b788;
  --color-blue: #1565c0;
  --color-blue-light: #4a90d9;
  --color-brown: #8b5e3c;
  --color-brown-light: #a07040;
  --color-orange: #e07b39;

  /* Typography */
  --font-family: "Noto Sans JP", "Yu Gothic", "游ゴシック", sans-serif;
  --font-size-xs: 0.75rem; /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem; /* 16px */
  --font-size-md: 1.125rem; /* 18px */
  --font-size-lg: 1.25rem; /* 20px */
  --font-size-xl: 1.5rem; /* 24px */
  --font-size-2xl: 2rem; /* 32px */
  --font-size-3xl: 2.5rem; /* 40px */
  --font-size-4xl: 3.5rem; /* 56px */

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;
  --space-5xl: 10rem;
  --space-6xl: 12rem;
  --space-7xl: 14rem;
  --space-8xl: 16rem;
  --space-9xl: 18rem;
  --space-10xl: 20rem;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
  /* Text shadows（FV 見出し・本文の可読性） */
  --shadow-text-fv-headline:
    0 0 28px rgba(0, 0, 0, 0.55), 0 2px 12px rgba(0, 0, 0, 0.65),
    0 1px 3px rgba(0, 0, 0, 0.9);
  --shadow-text-fv-accent:
    0 0 24px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.55),
    0 1px 2px rgba(0, 0, 0, 0.85);
  --shadow-text-fv-sub:
    0 0 50px rgba(53, 53, 53, 0.4), 0 2px 8px rgba(77, 77, 77, 0.5),
    0 1px 2px rgba(59, 59, 59, 0.6);

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;

  /* Layout */
  --container-max: 1280px;
  --container-pad: clamp(1.5rem, 5vw, 4rem);
  --header-height: 72px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Utility */
.sp-only {
  display: none;
}
@media (max-width: 767px) {
  .sp-only {
    display: inline;
  }
}

/* ─────────────────────────────────────────────
   Container
───────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  margin-bottom: var(--space-md);
}

/* ─────────────────────────────────────────────
   Section 共通
───────────────────────────────────────────── */
.section {
  padding-block: var(--space-4xl);
}
.section--gray {
  background-color: var(--color-bg-gray);
}
.section--dark {
  background-color: var(--color-navy);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-label {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-green);
  background: rgba(45, 106, 79, 0.08);
  padding: 0.3em 1em;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
}
.section-label--light {
  color: var(--color-green-light);
  background: rgba(82, 183, 136, 0.15);
}

.section-title {
  font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-3xl));
  font-weight: 900;
  line-height: 1.35;
  color: var(--color-navy);
  margin-bottom: var(--space-md);
}
.section-title--light {
  color: var(--color-white);
}

.section-lead {
  font-size: var(--font-size-md);
  color: var(--color-text-light);
  line-height: 1.85;
}
.section-lead--light {
  color: rgba(255, 255, 255, 0.8);
}

/* ─────────────────────────────────────────────
   Buttons
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.75em 1.75em;
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: 700;
  letter-spacing: 0.05em;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--color-green);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(45, 106, 79, 0.35);
}
.btn--primary:hover {
  background: #235840;
  box-shadow: 0 8px 24px rgba(45, 106, 79, 0.45);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}
.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-navy);
  box-shadow: var(--shadow-md);
}
.btn--white:hover {
  background: var(--color-bg);
  box-shadow: var(--shadow-lg);
}

.btn--lg {
  padding: 0.875em 2.25em;
  font-size: var(--font-size-md);
}

/* ─────────────────────────────────────────────
   FIXED CTA
───────────────────────────────────────────── */
.fixed-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  background: var(--color-navy);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform var(--transition-base);
}
.fixed-cta.is-visible {
  transform: translateY(0);
}

.fixed-cta__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 1em 0.5em;
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-white);
  text-align: center;
  transition: background var(--transition-fast);
}
.fixed-cta__btn svg {
  width: 16px;
  height: 16px;
}
.fixed-cta__btn--primary {
  background: var(--color-green);
}
.fixed-cta__btn--primary:hover {
  background: #235840;
}
.fixed-cta__btn--secondary {
  background: var(--color-blue);
}
.fixed-cta__btn--secondary:hover {
  background: #0d47a1;
}
.fixed-cta__btn--tel {
  background: var(--color-charcoal);
}
.fixed-cta__btn--tel:hover {
  background: #111;
}

/* ─────────────────────────────────────────────
   HEADER
───────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base);
}
.header.is-scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.75em;
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo-img {
  width: 100%;
  max-width: 160px;
  height: 100%;
  object-fit: contain;
}

.header__logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-green);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 900;
  border-radius: var(--radius-md);
  letter-spacing: 0.05em;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.55em 1.25em;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 700;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast);
}
.header__cta-btn svg {
  width: 14px;
  height: 14px;
}
.header__cta-btn:hover {
  transform: translateY(-1px);
}

.header__cta-btn--doc {
  background: var(--color-green);
  color: var(--color-white);
}
.header__cta-btn--doc:hover {
  background: #235840;
}

.header__cta-btn--visit {
  background: var(--color-blue);
  color: var(--color-white);
}
.header__cta-btn--visit:hover {
  background: #0d47a1;
}

.header__cta-btn--tel {
  background: var(--color-navy);
  color: var(--color-white);
}
.header__cta-btn--tel:hover {
  background: #111f32;
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
}
.header__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition:
    transform var(--transition-base),
    opacity var(--transition-base);
}
.header__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.header__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.header__mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}
.header__mobile-menu.is-open {
  max-height: 450px;
}
.header__mobile-link {
  display: block;
  padding: 1em var(--container-pad);
  font-size: var(--font-size-base);
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}
.header__mobile-link:hover {
  background: var(--color-bg-gray);
}
.header__mobile-link--cta {
  background: var(--color-green);
  color: white;
  text-align: center;
  font-weight: 700;
}
.header__mobile-link--cta:hover {
  background: #235840;
}

/* ─────────────────────────────────────────────
   FIRST VIEW
───────────────────────────────────────────── */
.fv {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-4xl);
  padding-top: var(--header-height);
  overflow: hidden;
}

.fv__bg {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.fv__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.fv__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.fv__content {
  position: relative;
  z-index: 10;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  width: 100%;
}

/* SP のみ表示（767px 以下で表示） */
.fv__more-cta {
  display: none;
}

.fv__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: linear-gradient(
    135deg,
    var(--color-green) 0%,
    var(--color-green-light) 45%,
    #9ccc65 100%
  );
  color: white;
  font-size: var(--font-size-md);
  font-weight: 700;
  padding: 0.4em 1.2em;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.03em;
}
.fv__badge-icon {
  font-size: 0.85em;
}
.fv__badge strong {
  font-weight: 900;
}

.fv__headline {
  font-size: clamp(2rem, 5vw, var(--font-size-4xl));
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.25;
  margin-bottom: var(--space-md);
  text-shadow: var(--shadow-text-fv-sub);
}
.fv__headline-accent {
  display: block;
  color: var(--color-green-light);
  text-shadow: var(--shadow-text-fv-sub);
}

.fv__subheadline {
  font-size: clamp(var(--font-size-base), 2.2vw, var(--font-size-lg));
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
  text-shadow: var(--shadow-text-fv-sub);
}

.fv__label-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-xl);
}
.fv__label {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: white;
  font-size: var(--font-size-xs);
  font-weight: 700;
  padding: 0.35em 0.9em;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}

.fv__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: var(--space-3xl);
}

.fv__scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.fv__scroll-hint span {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.6);
}
.fv__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
  animation: scrollLine 2s infinite;
}
@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ─────────────────────────────────────────────
   CONCEPT
───────────────────────────────────────────── */
.concept__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.concept__visual {
  position: relative;
}
.concept__img {
  width: 100%;
  border-radius: var(--radius-md);
}
.concept__img-badge {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 72px;
  height: 72px;
  background: var(--color-green);
  color: white;
  font-size: 20px;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  letter-spacing: -0.03em;
}

.concept__point {
  display: flex;
  gap: 1.25rem;
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base);
}
.concept__point:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.concept__point:last-child {
  margin-bottom: 0;
}

.concept__point-icon {
  flex-shrink: 0;
}
.concept__point-icon svg {
  width: 48px;
  height: 48px;
}

.concept__point-title {
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.4em;
}
.concept__point-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: 1.75;
}

/* ─────────────────────────────────────────────
   GX
───────────────────────────────────────────── */
.gx__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
}

.gx__card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  transition:
    background var(--transition-base),
    transform var(--transition-base);
}
.gx__card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.gx__card p {
  text-align: left;
}

.gx__card-icon {
  margin-bottom: var(--space-md);
}
.gx__card-icon svg {
  width: 64px;
  height: 64px;
  margin-inline: auto;
}

.gx__card-title {
  font-size: var(--font-size-xl);
  font-weight: 900;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}
.gx__card-desc {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
}

.gx__summary {
  text-align: center;
  padding: var(--space-xl);
  border: 1px solid rgba(82, 183, 136, 0.35);
  border-radius: var(--radius-);
  background: rgba(82, 183, 136, 0.08);
}
.gx__summary-text {
  font-size: clamp(var(--font-size-xl), 3vw, var(--font-size-2xl));
  font-weight: 900;
  color: var(--color-green-light);
  line-height: 1.5;
  margin-bottom: 0.75em;
}
.gx__summary-sub {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.65);
}

/* ─────────────────────────────────────────────
   PERFORMANCE
───────────────────────────────────────────── */
.performance__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.perf-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-md);
  position: relative;
  overflow: hidden;
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base);
}
.perf-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.perf-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-green), var(--color-blue));
}

.perf-card__num {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-green);
  opacity: 0.12;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.perf-card__icon {
  margin-bottom: var(--space-md);
}
.perf-card__icon svg {
  width: 56px;
  height: 56px;
}
.perf-card__icon-img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  display: block;
}

.perf-card__title {
  font-size: var(--font-size-lg);
  font-weight: 900;
  color: var(--color-navy);
  margin-bottom: 0.6em;
  line-height: 1.4;
}
.perf-card__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.perf-card__bar {
  height: 6px;
  background: var(--color-bg-gray);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.5em;
}
.perf-card__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-green), var(--color-blue));
  border-radius: var(--radius-full);
  width: 0;
  transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.perf-card__level {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-green);
  letter-spacing: 0.05em;
}

/* ─────────────────────────────────────────────
   DATA VISUALIZATION
───────────────────────────────────────────── */
.data__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.data__chart-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
}
.data__chart-wrap canvas {
  max-width: 360px;
  max-height: 360px;
}

.metric-item {
  margin-bottom: var(--space-md);
}
.metric-item__label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.4em;
}
.metric-item__bar-wrap {
  background: var(--color-bg-gray);
  border-radius: var(--radius-full);
  height: 32px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}
.metric-item__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-green), var(--color-blue));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.75em;
  width: 0;
  transition: width 1.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.metric-item__value {
  font-size: var(--font-size-xs);
  font-weight: 900;
  color: white;
  white-space: nowrap;
}

.data__note {
  margin-top: var(--space-md);
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
  font-style: italic;
}

/* ─────────────────────────────────────────────
   SUBSIDY NOTE
───────────────────────────────────────────── */
.subsidy .container {
  max-width: 900px;
}

.subsidy__box {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: #fff8f4;
  border: 1.5px solid var(--color-orange);
  border-radius: var(--radius-xl);
  align-items: flex-start;
}

.subsidy__icon {
  flex-shrink: 0;
  margin-top: 2px;
}
.subsidy__icon svg {
  width: 32px;
  height: 32px;
}

.subsidy__title {
  font-size: var(--font-size-lg);
  font-weight: 900;
  color: var(--color-orange);
  margin-bottom: 0.5em;
}
.subsidy__text {
  font-size: var(--font-size-sm);
  color: var(--color-text);
  line-height: 1.85;
}

/* ─────────────────────────────────────────────
   FLOOR PLAN
───────────────────────────────────────────── */
.floorplan__layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.floorplan__img-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-gray);
}
.floorplan__img {
  width: 100%;
}

.floorplan__zoom-btn {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-md);
  display: flex;
  align-items: center;
  gap: 0.4em;
  background: rgba(26, 46, 74, 0.85);
  color: white;
  font-size: var(--font-size-sm);
  font-weight: 700;
  padding: 0.6em 1.2em;
  border-radius: var(--radius-md);
  backdrop-filter: blur(4px);
  transition: background var(--transition-fast);
}
.floorplan__zoom-btn svg {
  width: 16px;
  height: 16px;
}
.floorplan__zoom-btn:hover {
  background: rgba(26, 46, 74, 1);
}

.floorplan__features-title {
  font-size: var(--font-size-xl);
  font-weight: 900;
  color: var(--color-navy);
  margin-bottom: var(--space-lg);
}

.floorplan__feature-list {
  margin-bottom: var(--space-xl);
}
.floorplan__feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  padding: 0.75em 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--font-size-sm);
  color: var(--color-text);
}
.floorplan__feature-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.floorplan__spec {
  background: var(--color-bg-gray);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.floorplan__spec-item {
  display: flex;
  justify-content: space-between;
  padding: 0.85em var(--space-md);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--font-size-sm);
}
.floorplan__spec-item:last-child {
  border-bottom: none;
}
.floorplan__spec-label {
  color: var(--color-text-light);
  font-weight: 500;
}
.floorplan__spec-value {
  font-weight: 700;
  color: var(--color-navy);
}

/* ─────────────────────────────────────────────
   MODAL
───────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-base);
}
.modal.is-open {
  pointer-events: all;
  opacity: 1;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.modal__content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  width: 100%;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: scale(0.9);
  transition: transform var(--transition-base);
}
.modal.is-open .modal__content {
  transform: scale(1);
}

.modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 1;
  transition: background var(--transition-fast);
}
.modal__close svg {
  width: 20px;
  height: 20px;
}
.modal__close:hover {
  background: rgba(0, 0, 0, 0.8);
}
.modal__img {
  width: 100%;
  display: block;
}

/* ─────────────────────────────────────────────
   MAP SECTION
───────────────────────────────────────────── */
.map-section__layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.map-section__map {
  border-radius: var(--radius-md);
  overflow: hidden;
}
.map-section__img {
  width: 100%;
}

.map-section__info-title {
  font-size: var(--font-size-xl);
  font-weight: 900;
  color: var(--color-navy);
  margin-bottom: var(--space-lg);
}

.map-facility {
  display: grid;
  grid-template-columns: 2rem 6rem 1fr;
  gap: 0.5em;
  align-items: center;
  padding: 0.8em 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--font-size-sm);
}
.map-facility:last-child {
  border-bottom: none;
}

.map-facility__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.map-facility__icon svg {
  width: 14px;
  height: 14px;
}
.map-facility__icon--school {
  background: var(--color-navy);
}
.map-facility__icon--nursery {
  background: var(--color-green);
}
.map-facility__icon--supermarket {
  background: var(--color-blue);
}
.map-facility__icon--hospital {
  background: #c0392b;
}
.map-facility__icon--station {
  background: var(--color-charcoal);
}
.map-facility__icon--park {
  background: var(--color-green-light);
}

.map-facility__label {
  font-weight: 700;
  color: var(--color-navy);
}
.map-facility__dist {
  color: var(--color-text-light);
}

.map-section__address {
  margin-top: var(--space-xl);
  padding: var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.map-section__address h4 {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 0.4em;
  letter-spacing: 0.05em;
}
.map-section__address p {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-navy);
}

/* ─────────────────────────────────────────────
   GALLERY
───────────────────────────────────────────── */
.gallery {
  overflow: hidden;
}

.gallery__swiper-wrap {
  margin-top: var(--space-2xl);
  position: relative;
}

.gallery-swiper {
  padding-inline: clamp(1rem, 5vw, 4rem);
}

.gallery__slide {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.gallery__slide img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}
.gallery__slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  font-size: var(--font-size-sm);
  font-weight: 700;
  padding: 2em 1.5em 1em;
}

/* Swiper custom */
.gallery-swiper .swiper-slide {
  width: min(960px, 80vw);
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}
.gallery-swiper .swiper-slide:not(.swiper-slide-active) {
  opacity: 0.6;
  transform: scale(0.96);
}

.gallery-pagination {
  margin-top: 1.5rem !important;
}
.gallery-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: var(--color-navy);
  opacity: 0.25;
}
.gallery-pagination .swiper-pagination-bullet-active {
  opacity: 1;
}

.gallery-prev,
.gallery-next {
  color: var(--color-navy) !important;
  background: white;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}
.gallery-prev::after,
.gallery-next::after {
  font-size: 16px !important;
  font-weight: 900 !important;
}

/* ─────────────────────────────────────────────
   CTA SECTION
───────────────────────────────────────────── */
.cta {
  position: relative;
  padding-block: var(--space-4xl);
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  inset: 0;
}
.cta__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 46, 74, 0.96),
    rgba(45, 106, 79, 0.88)
  );
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
}

.cta__card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: var(--space-md);
  text-align: center;
  backdrop-filter: blur(4px);
  transition:
    background var(--transition-base),
    transform var(--transition-base);
}
.cta__card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
}

.cta__card-icon {
  margin-bottom: var(--space-md);
}
.cta__card-icon svg {
  width: 48px;
  height: 48px;
  margin-inline: auto;
}

.cta__card-title {
  font-size: var(--font-size-xl);
  font-weight: 900;
  color: white;
  margin-bottom: 0.6em;
}
.cta__card-desc {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.cta__tel {
  text-align: center;
  padding: var(--space-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.06);
}
.cta__tel-label {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5em;
  letter-spacing: 0.08em;
}
.cta__tel-number {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: white;
  letter-spacing: 0.05em;
  margin-bottom: 0.3em;
  transition: color var(--transition-fast);
}
.cta__tel-number:hover {
  color: var(--color-green-light);
}
.cta__tel-hours {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.6);
}

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.footer {
  background: var(--color-charcoal);
  color: rgba(255, 255, 255, 0.85);
}

.footer__main {
  padding-block: var(--space-3xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.75em;
  margin-bottom: var(--space-md);
}
.footer__logo-name {
  font-size: var(--font-size-md);
  font-weight: 700;
}

.footer__address {
  font-style: normal;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.85;
  margin-bottom: var(--space-md);
}
.footer__address a {
  transition: color var(--transition-fast);
}
.footer__address a:hover {
  color: var(--color-green-light);
}

.footer__hours {
  display: flex;
  gap: 1em;
  font-size: var(--font-size-sm);
}
.footer__hours-label {
  font-weight: 700;
  color: var(--color-green-light);
}

.footer__nav-title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}
.footer__nav-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5em;
}
.footer__nav-list a {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.4em 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color var(--transition-fast);
}
.footer__nav-list a:hover {
  color: var(--color-green-light);
}

.footer__legal {
  padding-block: var(--space-xl);
  background: rgba(0, 0, 0, 0.2);
}

.footer__disclaimer {
  margin-bottom: var(--space-lg);
}
.footer__disclaimer-title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.75em;
}
.footer__disclaimer-list {
  list-style: disc;
  padding-left: 1.2em;
}
.footer__disclaimer-list li {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.85;
  margin-bottom: 0.25em;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  text-align: center;
}
.footer__copy {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.4);
}

/* ─────────────────────────────────────────────
   GSAP Fade（初期状態）
───────────────────────────────────────────── */
.gs-fade {
  opacity: 0;
  transform: translateY(30px);
}

/* ─────────────────────────────────────────────
   RESPONSIVE — Tablet (768px–1279px)
───────────────────────────────────────────── */
@media (max-width: 1279px) {
  .performance__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .performance__grid .perf-card:last-child {
    grid-column: span 2;
    max-width: 480px;
    margin-inline: auto;
    width: 100%;
  }

  .data__layout {
    gap: var(--space-xl);
  }

  .concept__grid {
    gap: var(--space-xl);
  }

  .cta__cards {
    gap: var(--space-md);
  }
}

@media (max-width: 1023px) {
  .header__cta-btn--tel {
    display: none;
  }

  .concept__grid {
    grid-template-columns: 1fr;
  }
  .concept__visual {
    max-width: 520px;
    margin-inline: auto;
    width: 100%;
  }

  .gx__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gx__grid .gx__card:last-child {
    grid-column: span 2;
  }

  .data__layout {
    grid-template-columns: 1fr;
  }
  .data__chart-wrap {
    max-width: 400px;
    margin-inline: auto;
  }

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

  .map-section__layout {
    grid-template-columns: 1fr;
  }

  .cta__cards {
    grid-template-columns: 1fr 1fr;
  }
  .cta__cards .cta__card:last-child {
    grid-column: span 2;
    max-width: 400px;
    margin-inline: auto;
    width: 100%;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

/* ─────────────────────────────────────────────
   RESPONSIVE — Mobile (≤767px)
───────────────────────────────────────────── */
@media (max-width: 767px) {
  :root {
    --space-3xl: 4rem;
    --space-4xl: 5rem;
  }

  .section {
    padding-block: var(--space-3xl);
  }

  /* Header */
  .header__nav {
    display: none;
  }
  .header__hamburger {
    display: flex;
  }
  .header__mobile-menu {
    display: block;
  }

  /* Logo simplified */
  .header__logo-text .header__company {
    display: none;
  }

  /* FV — テキストをヘッダー直下付近へ（PCは下端配置のまま） */
  .fv {
    flex-direction: column;
    align-items: stretch;
    padding-top: calc(var(--header-height) + var(--space-3xl));
    padding-bottom: var(--space-xl);
  }

  .fv__more-cta {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--space-8xl);
    margin-inline: var(--container-pad);
    padding: 0.5em 0.25em;
    border-radius: var(--radius-full);
    font-size: var(--font-size-md);
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--color-white);
    text-decoration: none;
    background: var(--color-orange);
    box-shadow: 0 4px 14px rgba(45, 106, 79, 0.35);
    transition:
      transform var(--transition-base),
      box-shadow var(--transition-base),
      filter var(--transition-base);
  }
  .fv__more-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(45, 106, 79, 0.45);
    filter: brightness(1.05);
  }
  .fv__more-cta:active {
    transform: translateY(0);
  }

  .fv__bg-img {
    object-position: 60% 100%;
  }

  .fv__headline {
    font-size: 1.75rem;
  }
  .fv__cta-group {
    flex-direction: column;
  }
  .fv__cta-group .btn {
    width: 100%;
  }
  .btn--lg {
    font-size: var(--font-size-base);
  }

  /* Concept */
  .concept__grid {
    gap: var(--space-xl);
  }

  /* GX */
  .gx__grid {
    grid-template-columns: 1fr;
  }
  .gx__grid .gx__card:last-child {
    grid-column: span 1;
  }

  /* Performance */
  .performance__grid {
    grid-template-columns: 1fr;
  }
  .performance__grid .perf-card:last-child {
    grid-column: span 1;
    max-width: 100%;
  }

  /* Data */
  .data__layout {
    gap: var(--space-xl);
  }

  /* Subsidy */
  .subsidy__box {
    flex-direction: column;
    gap: 0.75rem;
  }

  /* CTA Cards */
  .cta__cards {
    grid-template-columns: 1fr;
  }
  .cta__cards .cta__card:last-child {
    grid-column: span 1;
    max-width: 100%;
  }

  /* Footer */
  .footer__nav-list {
    grid-template-columns: 1fr;
  }

  /* Gallery swiper */
  .gallery-swiper .swiper-slide {
    width: 90vw;
  }
  .gallery-prev,
  .gallery-next {
    display: none !important;
  }

  /* Fixed CTA labels */
  .fixed-cta__btn {
    font-size: 11px;
    padding: 0.85em 0;
  }
}

@media (max-width: 480px) {
  .fv__headline {
    font-size: 1.75rem;
  }
  .fv__subheadline {
    font-size: var(--font-size-sm);
  }
  .section-title {
    font-size: 1.6rem;
  }
  .concept__img-badge {
    width: 56px;
    height: 56px;
    font-size: 16px;
    top: -0.75rem;
    right: -0.75rem;
  }
}
