/* ======================================
   SPARCLE BLACK — Apple-Style Homepage
   Design System & Global Styles
   ====================================== */

/* ---------- CSS Variables ---------- */
:root {
  --color-bg: #0B0D10;
  --color-bg-elevated: #131519;
  --color-bg-card: #1A1D23;
  --color-bg-card-hover: #22262E;
  --color-text-primary: #F5F5F7;
  --color-text-secondary: #A1A1A6;
  --color-text-tertiary: #6E6E73;
  --color-accent: #6FA8DC;
  --color-accent-glow: rgba(111, 168, 220, 0.15);
  --color-divider: rgba(255, 255, 255, 0.08);
  --color-nav-bg: rgba(11, 13, 16, 0.85);
  --color-overlay-dark: rgba(0, 0, 0, 0.6);
  --color-overlay-heavy: rgba(0, 0, 0, 0.75);

  --font-primary: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Inter', 'Noto Sans JP', sans-serif;

  --nav-height: 56px;
  --section-padding: 160px 0;
  --container-width: 1120px;
  --transition-base: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

/* ---------- Utility ---------- */
.text-accent {
  color: var(--color-accent);
}

.sp-only {
  display: none;
}

/* ---------- Fade animation ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

/* ---------- 横スライド強化アニメーション ---------- */
.fade-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.fade-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.fade-left.is-visible,
.fade-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ======================================
   BACKGROUND STYLES (パララックス・リスペクト背景用)
   ====================================== */
.message-para-bg,
.respect-bg {
  background-image: repeating-linear-gradient(45deg,
      rgba(255, 255, 255, 0.03) 0px,
      rgba(255, 255, 255, 0.03) 2px,
      transparent 2px,
      transparent 10px), radial-gradient(circle at center, rgba(16, 19, 24, 0.8) 0%, var(--color-bg) 80%);
}

/* ======================================
   NAVIGATION
   ====================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background var(--transition-base), backdrop-filter var(--transition-base);
}

.nav.is-scrolled {
  background: var(--color-nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-divider);
}

.nav-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--color-text-primary);
  transition: opacity var(--transition-base);
}

.nav-logo:hover {
  opacity: 0.7;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--color-text-secondary);
  transition: color var(--transition-base);
}

.nav-link:hover {
  color: var(--color-text-primary);
}

.nav-link-shop {
  background: var(--color-accent);
  color: var(--color-bg) !important;
  padding: 6px 18px;
  border-radius: 20px;
  font-weight: 600;
  transition: transform var(--transition-spring), opacity var(--transition-base);
}

.nav-link-shop:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text-primary);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-hamburger.is-active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.is-active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(11, 13, 16, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-link {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 6px;
  color: var(--color-text-secondary);
  transition: color var(--transition-base), transform var(--transition-base);
}

.mobile-menu-link:hover {
  color: var(--color-text-primary);
  transform: translateX(8px);
}

.mobile-menu-link-shop {
  color: var(--color-accent);
}

/* ======================================
   HERO SECTION
   ====================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transform: scale(1.05);
  transition: transform 8s ease-out;
  /* video要素でもobject-fitが効くように明示 */
  position: absolute;
  top: 0;
  left: 0;
}

.hero.is-loaded .hero-bg-img {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(11, 13, 16, 0.3) 0%,
      rgba(11, 13, 16, 0.1) 30%,
      rgba(11, 13, 16, 0.4) 70%,
      rgba(11, 13, 16, 1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.hero-sub {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 8px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin-bottom: 32px;
  background: linear-gradient(135deg, #fff 0%, #C0C0C8 50%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 300;
  letter-spacing: 4px;
  color: var(--color-text-tertiary);
  line-height: 2;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.hero-scroll-text {
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--color-text-tertiary);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--color-accent));
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    top: -100%;
  }

  50% {
    top: 100%;
  }

  100% {
    top: 100%;
  }
}

/* ======================================
   SECTION COMMON
   ====================================== */
.section {
  position: relative;
  padding: var(--section-padding);
}

.section-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 6px;
  color: var(--color-accent);
  margin-bottom: 40px;
  text-transform: uppercase;
}

.section-headline {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 80px;
  color: var(--color-text-primary);
}

.section-headline-light {
  color: #fff;
}

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

.concept-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.concept-image {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.concept-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.concept-image:hover img {
  transform: scale(1.03);
}

.concept-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid var(--color-divider);
  pointer-events: none;
}

.concept-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: center;
}

.concept-paragraph {
  font-size: 18px;
  font-weight: 300;
  line-height: 2;
  color: var(--color-text-secondary);
  text-align: center;
}

.concept-small {
  font-size: 14px;
  color: var(--color-text-tertiary);
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--color-divider);
}

/* ======================================
   STORY SECTION (Horizontal Scroll)
   ====================================== */
.section-story {
  /* 縦スクロールを吸収するための高さを確保（5枚のカードなので 400vh 程度） */
  height: 400vh;
  position: relative;
  background: var(--color-bg);
}

.story-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.story-header {
  position: absolute;
  top: 15vh;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 10;
}

.story-gallery-wrap {
  position: relative;
  width: 100%;
  height: 65vh;
  /* 縦長画像を見せるために高さを拡大 */
  margin-top: 5vh;
}

.story-gallery {
  display: flex;
  gap: 48px;
  /* カード間の余白を調整 */
  padding: 0 calc(50vw - 150px);
  /* 中央付近から開始 */
  height: 100%;
  will-change: transform;
  /* transformは JS で制御 */
}

.story-card {
  flex-shrink: 0;
  width: auto;
  /* 高さに合わせて幅を自動化 */
  aspect-ratio: 3 / 4;
  /* 縦長（3:4）のアスペクト比に設定 */
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition-slow);
}

.story-card-img {
  width: 100%;
  height: 100%;
  background: var(--color-bg-elevated);
}

.story-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.story-card:hover .story-card-img img {
  transform: scale(1.05);
}

.story-card-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 32px 32px;
  background: linear-gradient(to top, rgba(11, 13, 16, 0.9) 0%, transparent 100%);
  color: #fff;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 300;
  letter-spacing: 2px;
}

/* ======================================
   MESSAGE SECTION
   ====================================== */
.section-message {
  background: var(--color-bg-elevated);
  padding: 200px 0;
}

.message-content {
  max-width: 800px;
  margin: 0 auto;
}

.message-quote {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.7;
  color: var(--color-text-primary);
  margin-bottom: 64px;
  position: relative;
  text-align: center;
}

.quote-mark {
  font-size: 1.5em;
  color: var(--color-accent);
  opacity: 0.5;
  line-height: 0;
  vertical-align: -0.15em;
}

.quote-mark-end {
  margin-left: 4px;
}

.message-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}

.message-body p {
  font-size: 16px;
  font-weight: 300;
  line-height: 2;
  color: var(--color-text-secondary);
}

.message-author {
  margin-top: 16px;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 4px;
  color: var(--color-text-tertiary) !important;
}

/* ======================================
   MESSAGE PARALLAX SECTION
   ====================================== */
.section-message-parallax {
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
}

.message-para-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  /* パララックスの可動域として少し高めにする */
  will-change: transform;
  /* 画像を背景として設定 */
  background-image: url('images/file_1773048336628.jpg');
  background-size: cover;
  background-position: center;
}

.message-para-img {
  display: none;
}

.message-para-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      var(--color-bg) 0%,
      transparent 20%,
      transparent 80%,
      var(--color-bg) 100%);
  pointer-events: none;
  /* 波紋クリックを妨げないようにする */
}

/* ======================================
   ITEMS SECTION
   ====================================== */
.section-items {
  background: var(--color-bg);
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.item-card {
  display: block;
  background: var(--color-bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-divider);
  transition: transform var(--transition-spring),
    background var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.item-card:hover {
  transform: translateY(-6px);
  background: var(--color-bg-card-hover);
  border-color: rgba(111, 168, 220, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px var(--color-accent-glow);
}

.item-card-image {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-bg-elevated), var(--color-bg-card));
  overflow: hidden;
}

.item-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.item-card:hover .item-card-image img {
  transform: scale(1.08);
}

.item-card-placeholder {
  width: 64px;
  height: 64px;
  color: var(--color-text-tertiary);
  opacity: 0.4;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.item-card:hover .item-card-placeholder {
  opacity: 0.6;
  transform: scale(1.1);
}

.item-card-info {
  padding: 20px;
}

.item-card-name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.item-card-price {
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text-tertiary);
  letter-spacing: 1px;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  border-radius: 40px;
  transition: transform var(--transition-spring), opacity var(--transition-base), box-shadow var(--transition-base);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(111, 168, 220, 0.3);
}

.btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-base);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

/* ======================================
   RESPECT SECTION
   ====================================== */
.section-respect {
  position: relative;
  padding: 200px 0;
  overflow: hidden;
}

.respect-bg {
  position: absolute;
  inset: 0;
}

.respect-bg-img {
  width: 100%;
  height: 130%;
  will-change: transform;
  /* 画像を背景として設定 */
  background-image: url('images/respect_bg.png');
  background-size: cover;
  background-position: center;
}

.respect-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(11, 13, 16, 0.85) 0%,
      rgba(11, 13, 16, 0.7) 50%,
      rgba(11, 13, 16, 0.9) 100%);
  pointer-events: none;
  /* 波紋クリックを妨げないようにする */
}

.respect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.respect-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 48px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  transition: transform var(--transition-spring),
    background var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.respect-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(111, 168, 220, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px var(--color-accent-glow);
}

.respect-card-icon {
  width: 48px;
  height: 48px;
  color: var(--color-text-secondary);
  transition: color var(--transition-base), transform var(--transition-spring);
}

.respect-card:hover .respect-card-icon {
  color: var(--color-accent);
  transform: scale(1.1);
}

.respect-card-title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--color-text-primary);
}

.respect-card-text {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  text-align: center;
}

/* ======================================
   FIELD TESTER SECTION (Horizontal Scroll)
   ====================================== */
.section-field-tester {
  height: 400vh;
  /* スクロール用 */
  position: relative;
  background: var(--color-bg);
}

.field-tester-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tester-gallery-wrap {
  position: relative;
  width: 100%;
  height: 65vh;
  margin-top: 5vh;
}

.tester-gallery {
  display: flex;
  gap: 48px;
  padding: 0 calc(50vw - 150px);
  height: 100%;
  will-change: transform;
}

.tester-card {
  flex-shrink: 0;
  width: auto;
  aspect-ratio: 3 / 4;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition-slow);
  cursor: pointer;
}

.tester-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.tester-card-img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.tester-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.tester-card:hover .tester-card-img img {
  transform: scale(1.05);
  /* ズーム効果 */
}

.tester-card-name {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  text-align: center;
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 4px;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  /* 名前が背景に埋もれないように影をつける */
  pointer-events: none;
}

.tester-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 32px;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.tester-card:hover .tester-card-overlay {
  opacity: 1;
}

.tester-card-overlay span {
  color: #fff;
  font-size: 14px;
  letter-spacing: 2px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 8px 20px;
  border-radius: 30px;
  backdrop-filter: blur(4px);
}

/* ======================================
   TESTER MODAL
   ====================================== */
.tester-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  /* 他要素より上に */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  /* 初期はクリック不可 */
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tester-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.tester-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tester-modal-content {
  position: relative;
  width: 90%;
  max-width: 500px;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px 32px;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  z-index: 10;
  text-align: center;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.tester-modal.is-active .tester-modal-content {
  transform: translateY(0) scale(1);
}

.tester-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
  z-index: 20;
}

.tester-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.tester-modal-close svg {
  width: 20px;
  height: 20px;
}

.tester-modal-scroll {
  overflow-y: auto;
  padding-right: 8px;
  /* スクロールバー用余白 */
  /* スクロールバー非表示 */
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.tester-modal-scroll::-webkit-scrollbar {
  display: none;
}

.tester-modal-img-wrap {
  width: 160px;
  height: 160px;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.tester-modal-img-wrap img {
  width: 100%;
  height: 100%;
  /* 顔部分が綺麗に出るようにobject-fitと少し上部寄りの配置に */
  object-fit: cover;
  object-position: center 20%;
}

.tester-modal-name {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.tester-modal-motto {
  font-size: 14px;
  color: var(--color-accent);
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.tester-modal-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  text-align: center;
}

/* ======================================
   MESSAGE PARALLAX SECTION
   ====================================== */
.section-links {
  background: var(--color-bg-elevated);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-divider);
  border-radius: 16px;
  padding: 24px 28px;
  transition: transform var(--transition-base),
    background var(--transition-base),
    border-color var(--transition-base);
}

.link-card:hover {
  transform: translateX(4px);
  background: var(--color-bg-card-hover);
  border-color: rgba(111, 168, 220, 0.15);
}

.link-card-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  color: var(--color-accent);
  opacity: 0.7;
}

.link-card-info {
  flex: 1;
  min-width: 0;
}

.link-card-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.link-card-desc {
  font-size: 12px;
  font-weight: 300;
  color: var(--color-text-tertiary);
  line-height: 1.6;
}

.link-card-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-text-tertiary);
  transition: transform var(--transition-base), color var(--transition-base);
}

.link-card:hover .link-card-arrow {
  transform: translateX(4px);
  color: var(--color-accent);
}

/* ======================================
   CUTOUT SECTION（中抜き文字）
   300vh + sticky で スクロール連動の大→小アニメーション
   ====================================== */
.section-cutout {
  position: relative;
  height: 300vh;
  /* スクロール距離を確保 */
  background: var(--color-bg);
  /* 外側の背景 */
}

/* sticky: 画面上に固定しながらスクロールさせる */
.cutout-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* はみ出た部分を隠す */
  background: var(--color-bg);
}

.cutout-content {
  text-align: center;
  padding: 0 24px;
  width: 100%;
}

/*
  中抜き文字の実装:
  - background-clip:text で文字の形だけ画像が透けて見える
  - 外側の黒背景はそのまま
  - JS が scale と background-size/position を連動して制御
  - 背景は常に画面サイズ固定で表示（文字だけ変わる）
*/
.cutout-text {
  font-size: clamp(80px, 18vw, 180px);
  /* 煌黒の2文字なので大きく */
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  color: transparent;
  background-image: url('images/cutout_bg.jpg');
  /* background-size / background-position は JS が動的に設定 */
  -webkit-background-clip: text;
  background-clip: text;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transform-origin: center center;
  /* GPUによるラスタライズキャッシュ（低画質拡大）を防ぐため will-change は外す */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.cutout-text.is-shining {
  animation: cutout-shine 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes cutout-shine {
  0% {
    filter: brightness(1) drop-shadow(0 0 0px rgba(255, 255, 255, 0));
  }

  30% {
    filter: brightness(2.5) drop-shadow(0 0 40px rgba(111, 168, 220, 1)) drop-shadow(0 0 80px rgba(111, 168, 220, 0.6));
  }

  100% {
    filter: brightness(1) drop-shadow(0 0 0px rgba(255, 255, 255, 0));
  }
}

.cutout-ruby {
  font-size: 0.22em;
  /* 親（煌黒）に対する相対サイズ。小さめに設定 */
  letter-spacing: 0.4em;
  font-weight: 600;
}

.cutout-sub {
  font-size: clamp(10px, 1.5vw, 14px);
  font-weight: 300;
  letter-spacing: 8px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 48px;
  display: block;
  text-transform: uppercase;
  opacity: 0;
  /* JSで表示 */
  transition: opacity 0.8s ease;
}

.cutout-sub.is-visible {
  opacity: 1;
}

.cutout-sub.is-shining {
  animation: cutout-sub-shine 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes cutout-sub-shine {
  0% {
    text-shadow: 0 0 0px rgba(255, 255, 255, 0);
    color: rgba(255, 255, 255, 0.5);
  }

  30% {
    text-shadow: 0 0 20px rgba(111, 168, 220, 1), 0 0 40px rgba(111, 168, 220, 0.8);
    color: rgba(255, 255, 255, 1);
  }

  100% {
    text-shadow: 0 0 0px rgba(255, 255, 255, 0);
    color: rgba(255, 255, 255, 0.5);
  }
}

/* ======================================
   NUMBERS SECTION（カウントアップ）
   ====================================== */
.section-numbers {
  background: var(--color-bg-elevated);
  padding: 160px 0;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 80px;
}

.number-item {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid var(--color-divider);
  border-radius: 20px;
  background: var(--color-bg-card);
  transition: transform var(--transition-spring),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.number-item:hover {
  transform: translateY(-4px);
  border-color: rgba(111, 168, 220, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 40px var(--color-accent-glow);
}

.number-value {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

.number-suffix {
  font-size: 0.5em;
  font-weight: 400;
  -webkit-text-fill-color: var(--color-accent);
}

.number-label {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 3px;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.number-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--color-text-tertiary);
  line-height: 1.8;
}

/* ======================================
   FOOTER
   ====================================== */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-divider);
  padding: 64px 0;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

.footer-brand {
  margin-bottom: 32px;
}

.footer-logo {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 4px;
  color: var(--color-text-tertiary);
}

.footer-copy {
  font-size: 11px;
  font-weight: 300;
  color: var(--color-text-tertiary);
  letter-spacing: 1px;
}

/* ======================================
   RESPONSIVE
   ====================================== */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --section-padding: 120px 0;
  }

  .concept-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .respect-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 500px;
    margin: 0 auto;
  }

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

  .numbers-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 80px auto 0;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-padding: 100px 0;
    --nav-height: 52px;
  }

  .sp-only {
    display: inline;
  }

  /* Nav */
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-inner {
    padding: 0 20px;
  }

  /* Hero */
  .hero {
    overflow: hidden;
  }

  .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
  }

  .hero-sub {
    font-size: 11px;
    letter-spacing: 6px;
  }

  .hero-tagline {
    letter-spacing: 2px;
  }

  /* Sections */
  .section-inner {
    padding: 0 20px;
  }

  .section-headline {
    margin-bottom: 56px;
  }

  .section-label {
    margin-bottom: 28px;
  }

  /* Concept */
  .concept-paragraph {
    font-size: 15px;
  }

  .concept-paragraph br {
    display: none;
  }

  /* Cutout Animation (Anti-aliasing for mobile) */
  .cutout-text {
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    /* スマホでの拡大時のジャギーを軽減するため、初期フォントサイズを少し大きめにしておくか、GPUアクセラレーションを強制する */
  }

  /* Message */
  .section-message {
    padding: 140px 0;
  }

  .message-quote {
    margin-bottom: 48px;
  }

  .message-body p {
    font-size: 14px;
  }

  .message-body p br {
    display: none;
  }

  /* Parallax Image Fix for Mobile */
  .section-message-parallax {
    height: 70vh;
    /* スマホでは高さを少し抑える */
    min-height: 400px;
  }

  .message-para-img {
    display: none;
  }


  /* Items */
  .items-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .item-card-info {
    padding: 16px;
  }

  .item-card-name {
    font-size: 12px;
  }

  .item-card-price {
    font-size: 12px;
  }

  .btn-primary {
    padding: 14px 32px;
    font-size: 13px;
  }

  /* Respect */
  .section-respect {
    padding: 140px 0;
  }

  .respect-card {
    padding: 36px 28px;
  }

  /* Links */
  .link-card {
    padding: 20px;
    gap: 16px;
  }

  .link-card-icon {
    width: 28px;
    height: 28px;
  }

  /* Footer */
  .footer {
    padding: 48px 0;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .items-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .item-card-image {
    padding: 24px;
  }

  .item-card-placeholder {
    width: 48px;
    height: 48px;
  }
}