/* ==========================================
 * Components
 * BEM記法で記述
 * ========================================== */

/* --- Container --- */
.section__container {
  width: 100%;
  max-width: var(--container-base);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}
.section__container--narrow {
  max-width: var(--container-narrow);
}
.section__container--base {
  max-width: var(--container-base);
}
.section__container--wide {
  max-width: var(--container-wide);
}

/* --- Section --- */
.section {
  padding: var(--space-7) 0;
}
.section--dark {
  background: var(--color-dark-primary);
  color: var(--color-text-on-dark);
}
.section--light {
  background: var(--color-light-primary);
  color: var(--color-text-body);
}
.section--light-alt {
  background: var(--color-light-secondary);
  color: var(--color-text-body);
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-8) 0;
  }
}
@media (min-width: 1024px) {
  .section {
    padding: var(--space-9) 0;
  }
}

/* --- Section Label (Overline) --- */
.section__label {
  font-family: var(--font-heading-en);
  font-size: var(--text-overline);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  display: block;
}
.section--light .section__label,
.section--light-alt .section__label {
  color: var(--color-accent-dark);
}

/* --- Section Title --- */
.section__title {
  font-family: var(--font-section-en);
  font-size: var(--text-h2);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.3;
  margin-bottom: var(--space-6);
}
/* 日本語セクションタイトル */
.section__title--ja {
  font-family: var(--font-body-ja);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.section--dark .section__title {
  color: var(--color-text-white);
}
.section__title + .section__note {
  margin-top: -43px;
  margin-bottom: 30px;
}
.section__note {
  font-size: var(--text-overline);
  color: var(--color-text-muted-on-dark);
}
.section--light .section__note,
.section--light-alt .section__note {
  color: var(--color-text-muted);
}
.page-hero__note {
  font-size: var(--text-overline);
  color: var(--color-text-muted-on-dark);
  margin-top: var(--space-2);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-header);
  height: var(--header-height-sp);
  background: transparent;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}
.header--scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Logo */
.header__logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.header__logo-text {
  font-family: var(--font-heading-en);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-white);
  letter-spacing: 0.02em;
}
.header__logo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* PC Navigation */
.global-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.global-nav__link {
  font-family: var(--font-heading-en);
  font-size: var(--text-body-sm);
  font-weight: 400;
  color: var(--color-text-on-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.3s ease;
}
.global-nav__link:hover {
  color: var(--color-accent);
}

@media (min-width: 768px) {
  .header {
    height: var(--header-height-pc);
  }
}

/* --- Hamburger (SP) --- */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: calc(var(--z-mobile-nav) + 1);
  position: relative;
}
.hamburger__line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text-on-dark);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
/* 開いた状態: X字 */
.hamburger.is-active .hamburger__line:first-child {
  transform: translateY(4px) rotate(45deg);
}
.hamburger.is-active .hamburger__line:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* --- Mobile Navigation --- */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--color-dark-primary);
  z-index: var(--z-mobile-nav);
  display: flex;
  align-items: center;
  justify-content: center;
  /* transform で隠す（right: -100% 禁止） */
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.5s var(--ease-out-expo), opacity 0.3s var(--ease-out-quad);
}
.mobile-nav.is-open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.mobile-nav__link {
  font-family: var(--font-heading-en);
  font-size: var(--text-display);
  font-weight: 800;
  color: var(--color-text-white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}
.mobile-nav__link:hover {
  color: var(--color-accent);
}

/* --- Footer --- */
.footer {
  background: var(--color-dark-secondary);
}

/* CTA Band */
.footer__cta {
  background: var(--color-dark-primary);
  padding: 48px 0;
  text-align: center;
}
.footer__cta-inner {
  max-width: var(--container-base);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}
.footer__cta-text {
  font-family: var(--font-section-en);
  font-size: var(--text-h2);
  font-weight: 300;
  color: var(--color-text-white);
  margin-bottom: var(--space-5);
  letter-spacing: 0.08em;
}

@media (min-width: 1024px) {
  .footer__cta {
    padding: 80px 0;
  }
}

/* Footer Main */
.footer__main {
  border-top: 1px solid var(--color-border-dark);
  padding: 32px 0;
}
.footer__inner {
  max-width: var(--container-base);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .footer__main {
    padding: 40px 0;
  }
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Footer Logo */
.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.footer__logo-text {
  font-family: var(--font-heading-en);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-white);
}
.footer__logo-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* Footer Nav */
.footer__nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__nav-link {
  font-family: var(--font-heading-en);
  font-size: var(--text-body-sm);
  color: var(--color-text-muted-on-dark);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}
.footer__nav-link:hover {
  color: var(--color-text-white);
}

/* Footer SNS */
.footer__sns {
  display: flex;
  gap: var(--space-3);
}
.footer__sns-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-text-muted-on-dark);
  transition: color 0.3s ease;
}
.footer__sns-link:hover {
  color: var(--color-text-white);
}
.footer__sns-icon {
  width: 24px;
  height: 24px;
}

/* Footer Copyright */
.footer__copyright {
  color: var(--color-text-muted-on-dark);
  font-size: var(--text-caption);
}
.footer__copyright small {
  color: var(--color-text-muted-on-dark);
}

/* --- Button --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body-ja);
  font-size: var(--text-body);
  font-weight: 500;
  height: 48px;
  padding: 0 32px;
  border: none;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.btn--primary {
  background: var(--color-accent-dark);
  color: #FFFFFF;
}
.btn--primary:hover {
  background: var(--color-accent-darker);
  transform: translateY(-2px);
}
.btn--secondary {
  background: transparent;
  color: var(--color-text-on-dark);
  border: 1px solid currentColor;
}
.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}
/* ライト背景でのセカンダリボタン */
.section--light .btn--secondary,
.section--light-alt .btn--secondary {
  color: var(--color-text-body);
}
.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

@media (min-width: 1024px) {
  .btn {
    height: 56px;
    padding: 0 40px;
  }
}

/* --- Text Link Button --- */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body-ja);
  font-weight: 500;
  font-size: var(--text-body);
  position: relative;
  text-decoration: none;
}
.section--dark .text-link {
  color: var(--color-accent);
}
.section--light .text-link,
.section--light-alt .text-link {
  color: var(--color-accent-dark);
}
.text-link__arrow {
  transition: transform 0.3s ease;
}
.text-link:hover .text-link__arrow {
  transform: translateX(8px);
}
/* 下線アニメーション */
.text-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out-quad);
}
.text-link:hover::after {
  transform: scaleX(1);
}

/* --- Card (Works) --- */
.card-works {
  display: block;
}
.card-works__link {
  display: block;
  text-decoration: none;
}
.card-works__image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 正方形 */
  overflow: hidden;
  background-color: var(--color-dark-surface); /* 足りない箇所の背景色 */
}
.card-works__image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: contain; /* 画像全体を表示、足りない部分は背景色 */
  transition: filter 0.6s var(--ease-out-expo);
}
.card-works:hover .card-works__image {
  transform: translate(-50%, -50%) scale(1.02);
  filter: brightness(1.05);
}
.card-works__body {
  padding-top: var(--space-3);
}
.card-works__title {
  font-family: var(--font-heading-en);
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--color-text-white);
  margin-top: 0;
}
.card-works__category {
  display: block;
  font-size: var(--text-overline);
  color: var(--color-text-muted-on-dark);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: var(--space-1);
}
.card-works__excerpt {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted-on-dark);
  line-height: 1.6;
  margin-top: var(--space-2);
}

/* ライト背景上のカード色オーバーライド */
.section--light .card-works__title {
  color: var(--color-text-primary);
}
.section--light .card-works__category {
  color: var(--color-text-muted);
}
.section--light .card-works__excerpt {
  color: var(--color-text-body);
}

/* ======================================
 * Loading Screen
 * ====================================== */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-dark-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s var(--ease-out-expo);
}
.loading.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.loading__content {
  text-align: center;
}
.loading__text {
  font-family: var(--font-heading-en);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 500;
  color: var(--color-text-white);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 16px;
  opacity: 0;
  animation: loading-text-in 0.3s var(--ease-out-quad) 0.1s forwards;
}
.loading__bar {
  width: 200px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 auto;
  overflow: hidden;
}
.loading__bar-fill {
  width: 0%;
  height: 100%;
  background: var(--color-accent);
  animation: loading-bar 0.6s var(--ease-out-expo) 0.2s forwards;
}

@keyframes loading-text-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes loading-bar {
  to { width: 100%; }
}

/* prefers-reduced-motion 対応 */
@media (prefers-reduced-motion: reduce) {
  .loading {
    display: none;
  }
}

/* ======================================
 * Hero
 * ====================================== */
.hero {
  background: var(--color-dark-primary);
  padding: 80px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}
.hero__label {
  font-family: var(--font-heading-en);
  font-size: var(--text-overline);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  display: block;
}
.hero__title {
  font-family: var(--font-heading-en);
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--color-text-white);
  margin-bottom: var(--space-4);
}
.hero__subtitle {
  font-family: var(--font-body-ja);
  font-size: var(--text-h2);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-6);
  max-width: 600px;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading-en);
  font-weight: 500;
  font-size: var(--text-body);
  color: var(--color-accent);
  text-decoration: none;
  transition: gap 0.3s ease;
}
.hero__cta:hover {
  gap: 16px;
}
.hero__cta-arrow {
  transition: transform 0.3s ease;
}
.hero__cta:hover .hero__cta-arrow {
  transform: translateX(4px);
}

/* ======================================
 * Hero Decoration: Technology Marquee
 * ====================================== */
.hero__marquee {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  animation: hero-marquee-appear 0.6s var(--ease-out-quad) 1.5s forwards;
}

.hero__marquee-track {
  display: flex;
  width: max-content;
  animation: hero-marquee-scroll 35s linear 1.5s infinite;
}

.hero__marquee-text {
  flex-shrink: 0;
  font-family: var(--font-heading-en);
  font-size: 40px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  text-transform: uppercase;
  line-height: 1;
  padding-bottom: 8px;
  user-select: none;
}

@keyframes hero-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes hero-marquee-appear {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive: Tablet (768px+) */
@media (min-width: 768px) {
  .hero {
    padding: 120px 0;
  }

  .hero__marquee {
    bottom: 28px;
  }

  .hero__marquee-text {
    font-size: 56px;
  }
}

/* Responsive: PC (1024px+) */
@media (min-width: 1024px) {
  .hero {
    padding: var(--space-hero) 0;
  }

  .hero__marquee {
    bottom: 32px;
  }

  .hero__marquee-text {
    font-size: 64px;
  }
}

/* Responsive: Wide (1280px+) */
@media (min-width: 1280px) {
  .hero__marquee {
    bottom: 40px;
  }

  .hero__marquee-text {
    font-size: 80px;
  }
}

/* ======================================
 * Hero Decoration: prefers-reduced-motion
 * ====================================== */
@media (prefers-reduced-motion: reduce) {

  .hero__marquee {
    animation: none;
    opacity: 1;
  }

  .hero__marquee-track {
    animation: none;
  }
}

/* --- Page Hero (Lower pages) --- */
.page-hero {
  background: var(--color-dark-primary);
  padding: calc(var(--header-height-sp) + 64px) 0 64px;
  text-align: left;
}
.page-hero__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}
.page-hero__title {
  font-family: var(--font-heading-en);
  font-size: var(--text-display);
  font-weight: 800;
  color: var(--color-text-white);
  margin-bottom: var(--space-2);
}
.page-hero__subtitle {
  font-size: var(--text-body);
  color: var(--color-text-muted-on-dark);
}
@media (min-width: 768px) {
  .page-hero {
    padding: calc(var(--header-height-pc) + 80px) 0 80px;
  }
}
@media (min-width: 1024px) {
  .page-hero {
    padding: calc(var(--header-height-pc) + 120px) 0 120px;
  }
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: var(--space-3) 0;
  background: var(--color-light-primary);
}
.breadcrumb__list {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  list-style: none;
  font-size: var(--text-caption);
  color: var(--color-text-muted);
}
.breadcrumb__link {
  color: var(--color-text-muted);
  text-decoration: none;
}
.breadcrumb__link:hover {
  color: var(--color-accent-dark);
}
.breadcrumb__separator {
  margin: 0 var(--space-1);
}
.breadcrumb__current {
  color: var(--color-text-primary);
}

/* --- FAQ Accordion --- */

.faq-item {
  border-bottom: 1px solid var(--color-border-light);
}
.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  font-size: var(--text-body);
  color: var(--color-text-primary);
  line-height: 1.6;
}
/* WebKit のデフォルトマーカーを消す */
.faq-item__question::-webkit-details-marker {
  display: none;
}
.faq-item__question::marker {
  display: none;
  content: '';
}
.faq-item__question-text {
  flex: 1;
}
.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* + / - アイコン（CSS疑似要素） */
.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  background: var(--color-text-muted);
  transition: transform 0.3s var(--ease-out-quad);
}
.faq-item__icon::before {
  width: 16px;
  height: 2px;
}
.faq-item__icon::after {
  width: 2px;
  height: 16px;
}
/* 開いた状態: - に変化 */
.faq-item[open] .faq-item__icon::after {
  transform: rotate(90deg);
}
.faq-item__answer {
  overflow: hidden;
}
.faq-item__answer p {
  padding: 0 0 var(--space-4);
  color: var(--color-text-body);
  font-size: var(--text-body);
  line-height: 1.8;
}

/* --- Pricing Table --- */

.pricing-card {
  background: var(--color-light-primary);
  border: 1px solid var(--color-border-light);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.3s ease;
}
.pricing-card:hover {
  box-shadow: var(--shadow-lg);
}
.pricing-card--recommended {
  border: 2px solid var(--color-accent-dark);
}
.pricing-card__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-accent-dark);
  color: #FFFFFF;
  font-family: var(--font-body-ja);
  font-size: var(--text-caption);
  font-weight: 700;
  padding: var(--space-1) var(--space-4);
  white-space: nowrap;
}
.pricing-card__header {
  margin-bottom: var(--space-4);
}
.pricing-card__name {
  font-family: var(--font-body-ja);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}
.pricing-card__price {
  margin-bottom: var(--space-3);
  line-height: 1;
  white-space: nowrap;
}
.pricing-card__price-prefix {
  font-family: var(--font-mono);
  font-size: var(--text-h4);
  font-weight: 700;
  color: var(--color-accent-dark);
}
.pricing-card__price-value {
  font-family: var(--font-mono);
  font-size: var(--text-price);
  font-weight: 700;
  color: var(--color-accent-dark);
}
.pricing-card__price-unit {
  font-family: var(--font-body-ja);
  font-size: var(--text-body);
  color: var(--color-text-muted);
  margin-left: var(--space-1);
}
.pricing-card__desc {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
  flex: 1;
  border-top: 1px solid var(--color-border-subtle);
  padding-top: var(--space-4);
}
.pricing-card__feature-item {
  font-size: var(--text-body-sm);
  color: var(--color-text-body);
  padding: var(--space-2) 0;
  padding-left: var(--space-4);
  position: relative;
}
.pricing-card__feature-item::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}
.pricing-card__cta {
  margin-top: auto;
}
.pricing-card__cta .btn {
  width: 100%;
}

/* --- Timeline --- */
/* タイムラインのコンポーネントスタイルは theme.css に集約 */

/* --- Contact Form --- */
.contact-form__lead {
  font-size: var(--text-body);
  color: var(--color-text-on-dark);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}
.contact-form__group {
  margin-bottom: var(--space-4);
}
.contact-form__label {
  display: block;
  font-size: var(--text-body-sm);
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-1);
}
/* 必須マーク */
.contact-form__group--required .contact-form__label::after {
  content: '*';
  color: var(--color-error);
  margin-left: 4px;
}
.contact-form__input,
.contact-form__textarea,
.contact-form__select {
  width: 100%;
  background: transparent;
  border: 1px solid var(--color-border-dark);
  color: var(--color-text-white);
  padding: 12px 16px;
  font-size: var(--text-body);
  font-family: var(--font-body-ja);
  transition: border-color 0.3s ease;
}
.contact-form__input:focus,
.contact-form__textarea:focus,
.contact-form__select:focus {
  border-color: var(--color-accent);
  outline: none;
}
.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: var(--color-text-muted-on-dark);
}
/* select カスタム矢印 */
.contact-form__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999999' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  padding-right: 40px;
  cursor: pointer;
}
/* select の option（ブラウザのドロップダウン内） */
.contact-form__select option {
  background: var(--color-dark-primary);
  color: var(--color-text-white);
}
.contact-form__textarea {
  resize: vertical;
  min-height: 160px;
}
.contact-form__submit {
  margin-top: var(--space-5);
}
.contact-form__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body-ja);
  font-size: var(--text-body);
  font-weight: 500;
  height: 48px;
  padding: 0 32px;
  border: none;
  border-radius: 0;
  background: var(--color-accent-dark);
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  width: 100%;
}
.contact-form__btn:hover {
  background: var(--color-accent-darker);
  transform: translateY(-2px);
}
.contact-form__btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

@media (min-width: 768px) {
  .contact-form__btn {
    width: auto;
  }
}
@media (min-width: 1024px) {
  .contact-form__btn {
    height: 56px;
    padding: 0 40px;
  }
}

/* --- CF7 のスタイルオーバーライド --- */
/* wpautop が挿入する p タグと br タグをリセット */
.wpcf7 .contact-form p {
  margin: 0;
  padding: 0;
}
.wpcf7 .contact-form__group p br {
  display: none;
}
/* CF7 が生成する input/textarea/select に同じスタイルを適用 */
.wpcf7 .contact-form__input,
.wpcf7 .contact-form__textarea,
.wpcf7 .contact-form__select {
  width: 100%;
  background: transparent;
  border: 1px solid var(--color-border-dark);
  color: var(--color-text-white);
  padding: 12px 16px;
  font-size: var(--text-body);
  font-family: var(--font-body-ja);
  transition: border-color 0.3s ease;
}
.wpcf7 .contact-form__input:focus,
.wpcf7 .contact-form__textarea:focus,
.wpcf7 .contact-form__select:focus {
  border-color: var(--color-accent);
  outline: none;
}
.wpcf7 .contact-form__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999999' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  padding-right: 40px;
  cursor: pointer;
}
.wpcf7 .contact-form__select option {
  background: var(--color-dark-primary);
  color: var(--color-text-white);
}
.wpcf7 .contact-form__textarea {
  resize: vertical;
  min-height: 160px;
}
/* CF7 submit ボタン — input[type=submit] なので全プロパティ明示 */
.wpcf7 input.contact-form__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body-ja);
  font-size: var(--text-body);
  font-weight: 500;
  height: 48px;
  padding: 0 32px;
  border: none;
  border-radius: 0;
  background: var(--color-accent-dark);
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  width: 100%;
}
.wpcf7 input.contact-form__btn:hover {
  background: var(--color-accent-darker);
  transform: translateY(-2px);
}
.wpcf7 input.contact-form__btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}
@media (min-width: 768px) {
  .wpcf7 input.contact-form__btn {
    width: auto;
  }
}
@media (min-width: 1024px) {
  .wpcf7 input.contact-form__btn {
    height: 56px;
    padding: 0 40px;
  }
}
/* CF7 wpcf7-form-control-wrap が inline-block でレイアウト崩すので修正 */
.wpcf7 .wpcf7-form-control-wrap {
  display: block;
}
/* CF7 バリデーションエラー */
.wpcf7-not-valid {
  border-color: var(--color-error) !important;
}
.wpcf7-not-valid-tip {
  color: var(--color-error);
  font-size: var(--text-caption);
  margin-top: var(--space-1);
  display: block;
}
/* CF7 送信結果メッセージ */
.wpcf7-response-output {
  border: 1px solid var(--color-border-dark) !important;
  padding: var(--space-3) var(--space-4) !important;
  margin: var(--space-4) 0 0 !important;
  font-size: var(--text-body-sm);
}
.wpcf7 form.sent .wpcf7-response-output {
  border-color: var(--color-success) !important;
  color: var(--color-success);
}
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  border-color: var(--color-error) !important;
  color: var(--color-error);
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  border-color: var(--color-warning) !important;
  color: var(--color-warning);
}
/* CF7 スピナー非表示 */
.wpcf7 .wpcf7-spinner {
  display: none;
}

/* --- Contact Thanks --- */
.contact-thanks {
  text-align: center;
  padding: var(--space-9) 0;
}
.contact-thanks__title {
  font-family: var(--font-heading-en);
  font-size: var(--text-display);
  font-weight: 800;
  color: var(--color-text-white);
}
.contact-thanks__message {
  color: var(--color-text-on-dark);
  line-height: 1.8;
  margin: var(--space-5) 0 var(--space-6);
}

/* --- 404 Error --- */
.error-404 {
  text-align: center;
  padding: var(--space-9) 0;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.error-404__number {
  font-family: var(--font-heading-en);
  font-size: clamp(6rem, 5rem + 5vw, 10rem);
  font-weight: 800;
  color: var(--color-accent);
  opacity: 0.3;
  line-height: 1;
}
.error-404__title {
  font-family: var(--font-heading-en);
  font-size: var(--text-display);
  font-weight: 800;
  color: var(--color-text-white);
  margin-top: var(--space-3);
}
.error-404__message {
  color: var(--color-text-on-dark);
  margin: var(--space-4) 0 var(--space-6);
}

/* --- PREV/NEXT Side Navigation --- */
.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: var(--z-side-nav);
}
.side-nav__link {
  position: absolute;
  top: 50%;
  pointer-events: auto;
  writing-mode: vertical-rl;
  text-decoration: none;
  font-family: var(--font-heading-en);
  font-size: var(--text-caption);
  font-weight: 400;
  color: var(--color-text-muted-on-dark);
  letter-spacing: 0.1em;
  transition: color 0.3s ease, transform 0.3s ease;
}
.side-nav__link--prev {
  left: 20px;
  transform: translateY(-50%);
}
.side-nav__link--next {
  right: 20px;
  transform: translateY(-50%);
}
.side-nav__link--prev:hover {
  color: var(--color-accent);
  transform: translateY(-50%) translateX(-4px);
}
.side-nav__link--next:hover {
  color: var(--color-accent);
  transform: translateY(-50%) translateX(4px);
}

/* --- CTA Section --- */
.section-cta {
  background: var(--color-dark-primary);
  padding: 64px 0;
  text-align: center;
}
.section-cta__inner {
  max-width: var(--container-base);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}
.section-cta__text {
  font-family: var(--font-body-ja);
  font-size: var(--text-h2);
  font-weight: 500;
  color: var(--color-text-white);
  margin-bottom: var(--space-6);
}
.section-cta__buttons {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .section-cta {
    padding: 80px 0;
  }
}
@media (min-width: 1024px) {
  .section-cta {
    padding: var(--space-9) 0;
  }
}

/* --- Scroll Animation --- */
/* JS が読み込まれた時だけ初期状態を適用（プログレッシブエンハンスメント） */
.js-ready .js-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-quad), transform 0.8s var(--ease-out-quad);
}
.js-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
