/* ═══════════════════════════════════════════════════════
   css/plan.css
   UP47 Shimane — Plan your JOURNEY
   配色: top.cssに準拠（parchment背景・deep-night文字）
═══════════════════════════════════════════════════════ */

body {
  background: var(--parchment);
  color: var(--deep-night);
}


/* ───────────────────────────────────────
   1. HERO
─────────────────────────────────────── */
.plan-hero {
  margin-top: 70px;
  padding: 80px 6vw 64px;
  background: var(--parchment);
  border-bottom: 1px solid rgba(28, 24, 48, 0.1);
}
.plan-hero-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.4em;
  color: rgba(28, 24, 48, 0.35);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}
.plan-hero-h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--deep-night);
  margin-bottom: 1.2rem;
}
.plan-hero-h1 em {
  font-style: italic;
  color: var(--dusk-purple);
}
.plan-hero-sub {
  font-family: var(--jp);
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: rgba(28, 24, 48, 0.5);
  max-width: 480px;
}

@media (max-width: 768px) {
  .plan-hero { margin-top: 60px; padding: 60px 6vw 48px; }
}


/* ───────────────────────────────────────
   2. SELECTOR
─────────────────────────────────────── */
.plan-selector {
  padding: 0 6vw 80px;
  background: var(--parchment);
}
.plan-selector-inner {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 64px;
}

.step-label {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.step-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(28, 24, 48, 0.28);
}
.step-title {
  font-family: var(--jp);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--deep-night);
}

/* ボタン群 */
.step-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 選択ボタン — top.cssのselect-wrapスタイルに準拠 */
.step-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 1rem 1.2rem;
  min-width: 108px;
  border: 1px solid rgba(28, 24, 48, 0.22);
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}
.step-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(28, 24, 48, 0.05);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease-out);
}
.step-btn:hover::before { transform: scaleX(1); }
.step-btn:hover {
  border-color: rgba(28, 24, 48, 0.45);
  transform: translateY(-2px);
}
.step-btn.is-active {
  border-color: var(--deep-night);
  background: rgba(28, 24, 48, 0.05);
}
.step-btn.is-active::before { transform: scaleX(1); }
.step-btn.is-active .step-btn-icon { color: var(--deep-night); }
.step-btn.is-active .step-btn-jp   { color: var(--deep-night); }
.step-btn.is-active .step-btn-en   { color: rgba(28, 24, 48, 0.45); }

.step-btn-icon {
  color: rgba(28, 24, 48, 0.3);
  transition: color 0.25s;
  display: flex;
}
.step-btn-jp {
  font-family: var(--jp);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(28, 24, 48, 0.6);
  transition: color 0.25s;
  white-space: nowrap;
}
.step-btn-en {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: rgba(28, 24, 48, 0.28);
  transition: color 0.25s;
}

/* ステップ区切り線 */
.step-divider {
  height: 1px;
  background: linear-gradient(to right, rgba(28, 24, 48, 0.1), transparent);
  margin: 2.4rem 0;
}

/* 生成ボタン — top.cssの.btn-openに準拠 */
.plan-generate {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.generate-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  width: 276px;
  height: 52px;
  justify-content: center;
  border: 1px solid rgba(28, 24, 48, 0.35);
  background: transparent;
  font-family: var(--jp);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--deep-night);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.3s, border-color 0.3s;
}
.generate-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(28, 24, 48, 0.08);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.generate-btn:not(:disabled):hover::before { transform: scaleX(1); }
.generate-btn:not(:disabled):hover {
  border-color: var(--deep-night);
}
.generate-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.generate-hint {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(28, 24, 48, 0.28);
}

@media (max-width: 640px) {
  .step-btn { min-width: calc(50% - 4px); flex: 1; }
}


/* ───────────────────────────────────────
   3. RESULT
─────────────────────────────────────── */
.plan-result {
  background: var(--parchment);
  border-top: 1px solid rgba(28, 24, 48, 0.1);
  padding: 72px 6vw 80px;
  animation: resultFadeIn 0.65s var(--ease-out) forwards;
}
@keyframes resultFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.plan-result-inner {
  max-width: 860px;
  margin: 0 auto;
}

/* コースヘッダー */
.result-header {
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(28, 24, 48, 0.1);
}
.result-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.4em;
  color: rgba(28, 24, 48, 0.3);
  margin-bottom: 0.8rem;
}
.result-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 400;
  color: var(--deep-night);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}
.result-subtitle {
  font-family: var(--jp);
  font-size: 14px;
  line-height: 1.8;
  color: rgba(28, 24, 48, 0.5);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.result-tag {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  padding: 3px 10px;
  border: 1px solid rgba(28, 24, 48, 0.2);
  color: rgba(28, 24, 48, 0.5);
  background: transparent;
}

/* タイムライン */
.result-timeline {
  display: flex;
  flex-direction: column;
}
.tl-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0 1.6rem;
  padding: 1.8rem 0;
  border-top: 1px solid rgba(28, 24, 48, 0.08);
  animation: tlFadeIn 0.5s var(--ease-out) both;
}
@keyframes tlFadeIn {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}
.tl-item:last-child { border-bottom: 1px solid rgba(28, 24, 48, 0.08); }

.tl-time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 0.15rem;
}
.tl-time-val {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(28, 24, 48, 0.35);
  white-space: nowrap;
}
.tl-time-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  border: 1px solid rgba(28, 24, 48, 0.25);
  background: var(--parchment);
  margin-top: 0.5rem;
}
.tl-phase {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.28em;
  color: rgba(28, 24, 48, 0.28);
  margin-bottom: 0.4rem;
}
.tl-spot-name {
  font-family: var(--jp);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: var(--deep-night);
  margin-bottom: 0.3rem;
}
.tl-spot-en {
  font-family: var(--serif);
  font-size: 11px;
  font-style: italic;
  color: rgba(28, 24, 48, 0.3);
  margin-bottom: 0.6rem;
}
.tl-spot-desc {
  font-family: var(--jp);
  font-size: 12px;
  line-height: 22px;
  color: rgba(28, 24, 48, 0.6);
  letter-spacing: 0.03em;
}
.tl-spot-access {
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(28, 24, 48, 0.3);
  line-height: 1.8;
}
.tl-spot-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.8rem;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(28, 24, 48, 0.4);
  text-decoration: none;
  border-bottom: 1px solid rgba(28, 24, 48, 0.15);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.tl-spot-link:hover {
  color: var(--deep-night);
  border-color: var(--deep-night);
}

/* アクションボタン */
.result-actions {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.reset-btn, .share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 44px;
  padding: 0 1.6rem;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  border: 1px solid rgba(28, 24, 48, 0.2);
  background: transparent;
  color: rgba(28, 24, 48, 0.45);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.reset-btn:hover, .share-btn:hover {
  border-color: var(--deep-night);
  color: var(--deep-night);
}


/* ───────────────────────────────────────
   4. SCROLL TO TOP — top.cssに準拠
─────────────────────────────────────── */
.scroll-top-fixed {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 700;
  width: 44px; height: 44px;
  border: 1px solid rgba(28, 24, 48, 0.25);
  background: rgba(245, 240, 233, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--deep-night);
  transition: border-color 0.2s;
}
.scroll-top-fixed:hover {
  border-color: var(--deep-night);
}


/* ───────────────────────────────────────
   5. FOOTER — top.cssに準拠
─────────────────────────────────────── */
footer {
  background: var(--deep-night);
}
.footer-nav,
.footer-nav a,
.footer-nav span,
.footer-credit,
.footer-credit a,
.footer-copy {
  color: var(--gold) !important;
}
.footer-nav a:hover { opacity: 0.65; }
