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

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: "Zen Kaku Gothic New", sans-serif;
  overflow-x: hidden;
  width: 100%;
  color: #333;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: hidden;
  margin: 0;
  padding: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 16px 24px;
  pointer-events: none;
}

.icon-image {
  width: 10%;
  height: auto;
  margin: 0 auto;
}

.hero-texts {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding: 0 24px;
  filter: drop-shadow(0 0 18px rgba(16, 16, 16, 0.35));
}

.text-reveal-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  width: min(520px, 100%);
}

.reveal-title,
.reveal-subtitle {
  display: block;
  margin: 0;
  letter-spacing: 0.08em;
  will-change: clip-path, transform, opacity;
}

.reveal-title {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.2;
}

.reveal-subtitle {
  margin-top: 1rem;
  font-size: clamp(1rem, 3vw, 1.5rem);
  line-height: 1.6;
  opacity: 0.85;
}

/* スクロールダウン（デスクトップ・スマホ共通） */
.scroll {
  position: absolute;
  right: 3%;
  bottom: 5%;
  writing-mode: vertical-rl;
  color: #ffffff;
  display: block;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  z-index: 20;
}

.scroll::before {
  animation: scroll 2s infinite;
  background-color: #ffffff;
  bottom: -115px;
  content: "";
  height: 100px;
  left: 0;
  margin: auto;
  position: absolute;
  right: 0;
  width: 1px;
}

/* スマホのみ位置調整 */
@media (max-width: 768px) {
  .scroll {
    top: 10%;
    bottom: auto;
  }
}

.hero-images {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
}

.hero-image {
  position: absolute;
  width: auto;
  height: 100vh;
  width: auto;
  object-fit: cover;
  opacity: 0;
  will-change: opacity, transform;
}

/* 最初の画像は表示状態 */
.hero-image:first-child {
  opacity: 1;
}

/* Main Content */
.content {
  min-height: 100vh;
  padding: 100px 20px;
  background: #f7f7f7;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
}

.content .container {
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  align-items: center;
}

/* contentセクションのスクロールダウン */
.content .scroll {
  position: absolute;
  right: 3%;
  bottom: 5%;
  writing-mode: vertical-rl;
  color: #000000;
  display: block;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  z-index: 20;
}

.content .scroll::before {
  animation: scroll 2s infinite;
  background-color: #000000;
  bottom: -115px;
  content: "";
  height: 100px;
  left: 0;
  margin: auto;
  position: absolute;
  right: 0;
  width: 1px;
}

/* スクロールダウンのアニメーション */
@keyframes scroll {
  0% {
    transform: scale(1, 0);
    transform-origin: 0 0;
  }
  50% {
    transform: scale(1, 1);
    transform-origin: 0 0;
  }
  51% {
    transform: scale(1, 1);
    transform-origin: 0 100%;
  }
  100% {
    transform: scale(1, 0);
    transform-origin: 0 100%;
  }
}

.content-budge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  background: #000;
  color: #fff;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(3px);
}

.content-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
}

.content-title h2 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.35;
  font-weight: 600;
  color: #1c1c1c;
  margin: 0;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.content-title p {
  font-size: 0.6rem;
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.05em;
  line-height: 1.5;
  color: #000000;
  text-align: left;
  display: block;
}

[data-animate-text] {
  display: inline-block;
  perspective: 900px;
  text-align: center;
}

[data-animate-text] .char {
  display: inline-block;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}

.content-title + p,
.content .lead-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #666;
}

/* Questions Section */
.questions {
  min-height: 100vh;
  padding: 100px 20px;
  background: #dfdfdf;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.questions-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 2rem;
  display: block;
  text-align: center;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.questions-container {
  max-width: 960px;
  width: 100%;
  position: relative;
  min-height: 400px;
}

.answers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.step {
  opacity: 0;
  display: none;
  width: 100%;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step.active {
  opacity: 1;
  display: block;
}

.step p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  color: #1c1c1c;
}

.step label {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  margin-bottom: 0;
  cursor: pointer;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  background: #fff;
  transition: all 0.3s ease;
  position: relative;
  user-select: none;
}

.step label:hover {
  background-color: #f8f8f8;
  border-color: #b0b0b0;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.step input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 0;
  height: 0;
}

.step label::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid #999;
  border-radius: 50%;
  margin-right: 0.75rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
  background: #fff;
}

.step label.radio-selected {
  background-color: #f0f0f0;
  border-color: #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.step label.radio-selected::before {
  border-color: #000;
  background: #000;
  box-shadow: inset 0 0 0 4px #fff;
}

.step label.radio-selected:hover {
  background-color: #f5f5f5;
  border-color: #000;
}

.step button {
  margin-top: 1.5rem;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.step .next-button {
  background: #000;
  color: #fff;
  margin-right: 1rem;
}

.step .next-button:hover {
  background: #333;
}

.step .prev-button {
  background: #f0f0f0;
  color: #333;
}

.step .prev-button:hover {
  background: #e0e0e0;
}

#result-section {
  text-align: center;
}

#result-section .result {
  margin: 2rem 0;
}

#result-section .btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: #1ebb03;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 1rem;
}

#result-section .btn:hover {
  background: #333;
}

.site-footer {
  color: #ffffff;
  background: #0f0f0f;
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  font-size: 0.65rem;
  padding: 0.5rem;
  display: flex;
  justify-content: center;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .hero-image {
    /* スマホ画像（1080px × 1920px）を最適表示 */
    width: 100vw;
    height: 100vh;
  }

  .hero-overlay {
    padding: 12px 16px;
  }

  /* スマホでのcontentセクションのスクロール位置調整 */
  .content .scroll {
    top: 10%;
    bottom: auto;
  }

  .icon-image {
    width: 20%;
  }

  .hero-texts {
    padding: 0 16px;
  }

  .reveal-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .reveal-subtitle {
    font-size: clamp(0.95rem, 4.5vw, 1.2rem);
  }

  .content {
    padding-top: 60px;
    padding-bottom: 60px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .content .container {
    gap: 0.5rem;
  }

  .content-budge {
    padding: 0.6rem 1.55rem;
    letter-spacing: 0.12em;
  }

  .content-subtitle {
    font-size: 1rem;
  }

  .content-title h2 {
    font-size: 2rem;
  }

  .content-title + p,
  .content .lead-text {
    font-size: 1rem;
  }

  .step {
    padding: 1.5rem;
  }

  .step p {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  .step label {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }

  .step label::before {
    width: 18px;
    height: 18px;
    margin-right: 0.625rem;
  }

  .step label.radio-selected::before {
    box-shadow: inset 0 0 0 3px #fff;
  }

  .answers {
    gap: 0.625rem;
    margin-bottom: 1.5rem;
  }

  .step button {
    padding: 0.625rem 1.5rem;
    font-size: 0.95rem;
    width: 100%;
    margin-top: 1rem;
  }

  .step .next-button {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}
