/* ============================================================
   星空ナイトカヤックツアー LP - style.css
   reset → 変数 → base → components → sections → utilities
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

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

ul, ol {
  list-style: none;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* ---------- 変数 ---------- */
:root {
  --color-bg: #0F1D2E;
  --color-bg-deep: #0A1420;
  --color-surface: #1A2B3F;
  --color-text: #E8ECF2;
  --color-text-weak: #93A2B4;
  --color-cta: #F2C453;
  --color-cta-hover: #E0B03B;
  --color-line: rgba(232, 236, 242, 0.15);
  --font-serif: 'Zen Old Mincho', serif;
  --font-sans: 'Noto Sans JP', sans-serif;
  --dur: 0.8s;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --py-section: 72px;
  --sticky-bar-h: 64px;
}

@media (min-width: 768px) {
  :root {
    --py-section: 112px;
  }
}

/* ---------- base ---------- */
body {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 2.0;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: clip;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}

body.is-loaded {
  opacity: 1;
}

@media (min-width: 768px) {
  body {
    font-size: 15px;
  }
}

section {
  padding-top: var(--py-section);
  padding-bottom: var(--py-section);
}

/* ---------- components ---------- */

/* container */
.container {
  margin-inline: auto;
  padding-inline: 24px;
  width: 100%;
}

.container--narrow { max-width: calc(560px + 48px); }
.container--medium { max-width: calc(640px + 48px); }
.container--wide   { max-width: calc(1000px + 48px); }

/* section-title */
.section-title {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 48px;
}

.section-title__mark {
  display: block;
  font-size: 14px;
  color: var(--color-cta);
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 30px;
    margin-bottom: 56px;
  }
}

/* cta-btn */
.cta-btn {
  display: inline-block;
  background-color: var(--color-cta);
  color: #0A1420;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  padding: 15px 40px;
  border-radius: 999px;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.cta-btn:hover {
  background-color: var(--color-cta-hover);
}

.cta-btn:active {
  transform: scale(0.97);
}

.cta-btn--wide {
  display: block;
  width: 100%;
  padding: 16px 24px;
}

.cta-btn--pulse {
  animation: cta-pulse 4s ease-in-out infinite;
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(242, 196, 83, 0); }
  50% { box-shadow: 0 0 24px rgba(242, 196, 83, 0.35); }
}

/* カウントダウン終了後のCTA無効化 */
body.is-season-over .cta-btn {
  opacity: 0.4;
  pointer-events: none;
  animation: none;
}

@media (min-width: 768px) {
  .cta-btn {
    font-size: 17px;
  }
}

/* star（明滅する光点） */
.star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: #E8ECF2;
  box-shadow: 0 0 6px 1px rgba(232, 236, 242, 0.7);
  opacity: 0.2;
  animation: star-twinkle 4s ease-in-out infinite;
}

@keyframes star-twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

/* fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

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

/* ---------- sections ---------- */

/* 追従CTA */
.sticky-cta {
  position: fixed;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}

.sticky-cta--mobile {
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--sticky-bar-h);
  background-color: var(--color-bg-deep);
  border-top: 1px solid var(--color-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-inline: 16px;
  transform: translateY(16px);
}

.sticky-cta--mobile .sticky-cta__info {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-weak);
  white-space: nowrap;
}

.sticky-cta--mobile .sticky-cta__btn {
  font-size: 15px;
  height: 44px;
  padding: 0 32px;
  display: inline-flex;
  align-items: center;
}

.sticky-cta--desktop {
  top: 24px;
  right: 24px;
  transform: translateY(-16px);
  display: none;
}

.sticky-cta--desktop .cta-btn {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  font-size: 15px;
  padding: 12px 32px;
}

.sticky-cta.is-shown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (min-width: 1024px) {
  .sticky-cta--mobile { display: none; }
  .sticky-cta--desktop { display: block; }
}

/* ファーストビュー */
.fv {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 72px;
  background-color: var(--color-bg-deep);
  overflow: hidden;
}

.fv__bg {
  position: absolute;
  inset: 0;
}

.fv__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 写真の上下をページ背景に溶かすグラデーション */
.fv__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 20, 32, 0.55) 0%,
    rgba(10, 20, 32, 0.35) 35%,
    rgba(10, 20, 32, 0.55) 75%,
    #0F1D2E 100%
  );
}

.fv__stars,
.intro__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fv__inner {
  position: relative;
  text-align: center;
  max-width: 720px;
}

.fv__item {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

body.is-fv-ready .fv__item {
  opacity: 1;
  transform: translateY(0);
}

.fv__label {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--color-text-weak);
  margin-bottom: 16px;
}

.fv__tour-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-cta);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.fv__copy {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.8;
  margin-bottom: 20px;
}

.fv__meta {
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.fv__price {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-cta);
  line-height: 1.4;
  margin-bottom: 20px;
}

.fv__price-unit {
  font-size: 14px;
  font-weight: 500;
}

.fv__countdown {
  font-size: 13px;
  color: var(--color-text-weak);
  margin-top: 16px;
  min-height: 1.5em;
}

@media (min-width: 768px) {
  .fv__tour-name { font-size: 18px; }
  .fv__copy { font-size: 40px; margin-bottom: 24px; }
  .fv__meta { font-size: 13px; }
  .fv__price { font-size: 32px; }
}

/* 375pxでFV内が収まらない場合の縮小 */
@media (max-width: 374px) {
  .fv__copy { font-size: 22px; }
}

.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-indicator__text {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--color-text-weak);
}

.scroll-indicator__line {
  width: 1px;
  height: 40px;
  position: relative;
  overflow: hidden;
  background-color: var(--color-line);
}

.scroll-indicator__line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-text);
  animation: scroll-line 1.8s var(--ease) infinite;
}

@keyframes scroll-line {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* 導入 */
.intro {
  position: relative;
}

.intro__text {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
  line-height: 2.6;
}

.intro__img {
  margin-top: 56px;
}

.intro__img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
}

/* features */
.features__grid {
  display: grid;
  gap: 20px;
}

.feature-card {
  background-color: var(--color-surface);
  border-radius: 12px;
  padding: 32px;
}

.feature-card__num {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-cta);
  line-height: 1;
  margin-bottom: 16px;
}

.feature-card__title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 12px;
}

.feature-card__text {
  font-size: 14px;
  color: var(--color-text-weak);
}

.features__cta,
.outline__cta,
.voice__cta {
  text-align: center;
  margin-top: 48px;
}

@media (min-width: 768px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* schedule */
.schedule__list {
  max-width: 640px;
  margin-inline: auto;
}

.schedule-step {
  display: flex;
  gap: 20px;
  position: relative;
  padding-bottom: 36px;
}

.schedule-step:last-child {
  padding-bottom: 0;
}

.schedule-step__time {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-cta);
  line-height: 1.6;
  width: 52px;
  flex-shrink: 0;
  position: relative;
}

/* タイムラインの縦線とドット */
.schedule-step__time::after {
  content: "";
  position: absolute;
  top: 8px;
  right: -14px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--color-cta);
}

.schedule-step::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 62px;
  bottom: -6px;
  width: 1px;
  background-color: var(--color-line);
}

.schedule-step:last-child::before {
  display: none;
}

.schedule-step__body {
  padding-left: 16px;
}

.schedule-step__name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 4px;
}

.schedule-step__text {
  font-size: 13px;
  color: var(--color-text-weak);
}

@media (min-width: 768px) {
  .schedule-step__name { font-size: 17px; }
  .schedule-step__text { font-size: 14px; }
}

/* gallery */
.gallery {
  padding-inline: 8px;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-width: 1200px;
  margin-inline: auto;
}

.gallery__item {
  overflow: hidden;
  border-radius: 12px;
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.gallery__item:hover img {
  transform: scale(1.03);
}

@media (min-width: 768px) {
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* outline */
.outline-table {
  border-top: 1px solid var(--color-line);
}

.outline-table__row {
  border-bottom: 1px solid var(--color-line);
  padding: 18px 4px;
}

.outline-table__row dt {
  font-weight: 700;
  font-size: 13px;
  color: var(--color-text-weak);
  margin-bottom: 4px;
}

.outline-table__row dd {
  font-size: 14px;
}

.outline-table__price {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-cta);
}

@media (min-width: 768px) {
  .outline-table__row {
    display: flex;
    padding: 20px 8px;
  }

  .outline-table__row dt {
    width: 140px;
    flex-shrink: 0;
    font-size: 14px;
    margin-bottom: 0;
    padding-top: 2px;
  }

  .outline-table__row dd {
    font-size: 15px;
  }

  .outline-table__price {
    font-size: 32px;
  }
}

/* voice */
.voice__grid {
  display: grid;
  gap: 20px;
}

.voice-card {
  background-color: var(--color-surface);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.voice-card__text {
  font-size: 14px;
  flex-grow: 1;
}

.voice-card__attr {
  font-size: 12px;
  color: var(--color-text-weak);
  border-top: 1px solid var(--color-line);
  margin-top: 20px;
  padding-top: 14px;
}

@media (min-width: 768px) {
  .voice__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* faq */
.faq-item {
  border-bottom: 1px solid var(--color-line);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-line);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  padding: 20px 4px;
  min-height: 44px;
}

.faq-item__icon {
  color: var(--color-cta);
  font-size: 16px;
  flex-shrink: 0;
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
}

.faq-item__answer p {
  font-size: 14px;
  color: var(--color-text-weak);
  padding: 0 4px 20px;
}

@media (min-width: 768px) {
  .faq-item__question { font-size: 16px; }
}

/* apply */
.apply {
  background-color: var(--color-bg-deep);
  /* モバイル追従バーに隠れないよう下部に余白を追加 */
  padding-bottom: calc(var(--py-section) + var(--sticky-bar-h));
}

.apply__lead {
  text-align: center;
  font-size: 14px;
  margin-bottom: 40px;
}

.apply-form__field {
  margin-bottom: 22px;
}

.apply-form__field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}

.apply-form__req {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #0A1420;
  background-color: var(--color-cta);
  border-radius: 4px;
  padding: 0 6px;
  margin-left: 6px;
  line-height: 1.7;
  vertical-align: 1px;
}

.apply-form__field input,
.apply-form__field select,
.apply-form__field textarea {
  width: 100%;
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  color-scheme: dark;
}

.apply-form__field input:focus,
.apply-form__field select:focus,
.apply-form__field textarea:focus {
  outline: none;
  border-color: var(--color-cta);
}

.apply-form__field textarea {
  resize: vertical;
}

.apply-form .cta-btn--wide {
  margin-top: 8px;
}

.apply__done {
  text-align: center;
  font-size: 15px;
  line-height: 2.2;
  padding: 40px 0;
}

@media (min-width: 1024px) {
  .apply {
    padding-bottom: var(--py-section);
  }
}

/* footer */
.footer {
  background-color: var(--color-bg-deep);
  text-align: center;
  padding: 40px 24px calc(40px + var(--sticky-bar-h));
  border-top: 1px solid var(--color-line);
}

.footer__org,
.footer__copy {
  font-size: 13px;
  color: var(--color-text-weak);
}

@media (min-width: 1024px) {
  .footer {
    padding-bottom: 40px;
  }
}

/* ---------- utilities / a11y ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body,
  .fade-in,
  .fv__item,
  .sticky-cta,
  .gallery__item img,
  .cta-btn {
    transition: none;
  }

  .star,
  .cta-btn--pulse,
  .scroll-indicator__line::after {
    animation: none;
  }

  /* 星は静止表示 */
  .star {
    opacity: 0.6;
  }

  body {
    opacity: 1;
  }

  .fade-in,
  .fv__item {
    opacity: 1;
    transform: none;
  }
}
