/*
 * きょうトリップ LP の共通スタイル。
 * 色・角丸はアプリ（lib/src/presentation/theme/app_theme.dart）と同じ値を使う。
 * 書体もアプリと同じ Dela Gothic One（見出し・切符）/ Zen Kaku Gothic New（本文）。
 */

:root {
  --ink: #1b1d2c;
  --paper: #f8f7f2;
  --white: #ffffff;
  --sun: #ffd241;
  --sun-soft: #fff0b3;
  --matcha-soft: #d9f1e1;
  --mist: #ecebe4;
  --mist-deep: #dddcd3;
  --slate: #5b5c68;
  --hairline: #d9d8cf;
  --ink-dash: rgba(27, 29, 44, 0.45);

  --font-display: "Dela Gothic One", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;

  --radius-card: 24px;
  --radius-ticket: 28px;
  --radius-control: 14px;
  --notch: 14px;

  --page-max: 1120px;
  --gutter: clamp(16px, 5vw, 40px);

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  font-weight: 400;
  overflow-wrap: break-word;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-color: var(--ink-dash);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-control);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  fill: currentColor;
  flex: none;
}

/* ── ヘッダー / フッター ─────────────────────────────── */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 18px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 44px;
  height: 44px;
}

.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-control);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer {
  border-top: 1px solid var(--hairline);
  color: var(--slate);
  font-size: 0.875rem;
  line-height: 1.8;
}

.site-footer__inner {
  display: grid;
  gap: 20px;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 40px var(--gutter) 56px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--ink);
}

.site-footer p {
  margin: 0;
}

/* ── ボタン ─────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

/* ストアへの導線。公開前は「近日公開」として押せない見た目にする。 */
.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 168px;
  min-height: 60px;
  padding: 8px 20px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--white);
  line-height: 1.25;
  text-decoration: none;
}

.store__name {
  font-size: 1.125rem;
  font-weight: 700;
}

.store__note {
  font-size: 0.8125rem;
}

.store.is-soon {
  border-style: dashed;
  background: transparent;
  color: var(--ink);
}

.store.is-soon .store__note {
  color: var(--slate);
}

/* ── ヒーロー ───────────────────────────────────────── */

.hero {
  display: grid;
  gap: 40px;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 24px var(--gutter) 80px;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.25rem, 13vw, 6.25rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-feature-settings: "palt";
}

.hero__lead {
  max-width: 24em;
  margin: 24px 0 32px;
  font-size: 1.125rem;
  line-height: 1.9;
}

.hero__actions {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.hero__note {
  margin: 0;
  color: var(--slate);
  font-size: 0.875rem;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
    padding-top: 48px;
    padding-bottom: 112px;
  }
}

/* ── 切符（ヒーローの結果例・料金） ──────────────────── */

.ticket {
  --ticket-paper: var(--sun);
  color: var(--ink);
}

.ticket__body,
.ticket__stub {
  background: var(--ticket-paper);
  padding: 26px 28px;
}

.ticket__body {
  position: relative;
  border-radius: var(--radius-ticket) var(--radius-ticket) 0 0;
}

.ticket__stub {
  border-radius: 0 0 var(--radius-ticket) var(--radius-ticket);
}

/* 半券との境目。左右を半円にくり抜いて点線を引く（アプリの TicketCard と同じ見立て）。 */
.ticket__perf {
  position: relative;
  height: calc(var(--notch) * 2);
  background:
    radial-gradient(circle at 0 50%, transparent var(--notch), var(--ticket-paper) calc(var(--notch) + 0.5px)) left / 50.5% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent var(--notch), var(--ticket-paper) calc(var(--notch) + 0.5px)) right / 50.5% 100% no-repeat;
}

.ticket__perf::after {
  content: "";
  position: absolute;
  left: calc(var(--notch) + 12px);
  right: calc(var(--notch) + 12px);
  top: 50%;
  border-top: 2px dashed var(--ink-dash);
}

.ticket--muted {
  --ticket-paper: var(--mist-deep);
}

/* ヒーローの切符。ページを開いたときに 1 度だけ差し出され、当日券のスタンプが押される。 */
.hero-ticket {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 8px 4px;
}

.hero-ticket .ticket {
  width: min(100%, 440px);
  transform: rotate(-4deg);
  filter: drop-shadow(0 20px 28px rgba(27, 29, 44, 0.16));
}

.hero-ticket__caption {
  margin: 0;
  color: var(--slate);
  font-size: 0.8125rem;
}

.result__label {
  margin: 0;
  font-weight: 700;
  font-size: 0.9375rem;
}

.result__name {
  margin: 10px 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 9vw, 2.875rem);
  line-height: 1.15;
}

.result__address {
  margin: 0;
  font-size: 0.9375rem;
}

.tag {
  display: inline-block;
  margin-top: 12px;
  padding: 2px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
}

.stamp {
  position: absolute;
  right: 20px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  font-weight: 900;
  font-size: 0.9375rem;
  line-height: 1.1;
  transform: rotate(-14deg);
}

.stamp::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  margin: 0;
}

.stats div {
  min-width: 0;
}

.stats dt {
  color: var(--slate);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.stats dd {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 5.4vw, 1.625rem);
  line-height: 1.2;
  white-space: nowrap;
}

.stats dd.stats__text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.0625rem, 4.6vw, 1.25rem);
}

@media (max-width: 480px) {
  .ticket__body,
  .ticket__stub {
    padding: 22px;
  }

  .stamp {
    right: 14px;
    top: 14px;
    width: 68px;
    height: 68px;
    font-size: 0.8125rem;
  }
}

.ticket__fineprint {
  margin: 18px 0 0;
  color: var(--slate);
  font-size: 0.75rem;
  line-height: 1.6;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-ticket .ticket {
    animation: hand-over 900ms cubic-bezier(0.2, 0.9, 0.25, 1.12) 150ms both;
  }

  .hero-ticket .stamp {
    animation: stamp-press 420ms cubic-bezier(0.3, 1.6, 0.5, 1) 1050ms both;
  }
}

@keyframes hand-over {
  from {
    opacity: 0;
    transform: translateY(64px) rotate(10deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(-4deg);
  }
}

@keyframes stamp-press {
  from {
    opacity: 0;
    transform: scale(1.9) rotate(-14deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(-14deg);
  }
}

/* ── セクション共通 ─────────────────────────────────── */

.section {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 64px var(--gutter);
}

.section__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  line-height: 1.3;
  font-feature-settings: "palt";
}

.section__intro {
  max-width: 34em;
  margin: 0 0 40px;
  color: var(--slate);
}

/* ── 選ぶのは 3 つだけ（アプリのホームと同じ配色のステッカー） ──
   アプリのホームは小さなカードなので傾けているが、LP はカードが大きく
   中身も多く、傾けると縁と文字の並びがガタつくので傾けない。 */

.conditions {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sticker {
  padding: 26px 24px 28px;
  border-radius: var(--radius-card);
}

.sticker--budget {
  background: var(--sun-soft);
}

.sticker--duration {
  background: var(--matcha-soft);
}

.sticker--transport {
  background: var(--mist-deep);
}

.sticker__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
}

.sticker__icon .icon {
  width: 26px;
  height: 26px;
}

.sticker__title {
  margin: 14px 0 0;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.4;
}

.sticker__ask {
  margin: 0;
  color: var(--slate);
  font-size: 0.875rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.6;
}

.genres {
  margin-top: 48px;
}

.genres__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
}

.genres__note {
  margin: 0;
  color: var(--slate);
  font-size: 0.875rem;
}

.chips--outline li {
  background: transparent;
  border: 1.5px solid var(--hairline);
}

@media (min-width: 760px) {
  .conditions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ── 出かけるまで（半券の点線の線路に駅を並べる） ─────────── */

.rail {
  position: relative;
  display: grid;
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: station;
}

.rail li {
  position: relative;
  padding-left: 64px;
  counter-increment: station;
}

/* 駅と駅のあいだの線路。最後の駅から先には引かない。 */
.rail li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 48px;
  bottom: -28px;
  border-left: 2px dashed var(--ink-dash);
}

.rail li::before {
  content: counter(station);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--sun);
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1;
}

.rail h3 {
  margin: 4px 0 6px;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.5;
}

.rail p {
  margin: 0;
  max-width: 24em;
}

@media (min-width: 820px) {
  .rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }

  .rail li {
    padding-left: 0;
    padding-top: 64px;
  }

  .rail li:not(:last-child)::after {
    left: 52px;
    right: -20px;
    top: 19px;
    bottom: auto;
    border-left: 0;
    border-top: 2px dashed var(--ink-dash);
  }
}

/* ── アプリでできること ─────────────────────────────── */

.features-layout {
  display: grid;
  gap: 8px 56px;
}

.features {
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--hairline);
}

.features li:last-child {
  border-bottom: 1px solid var(--hairline);
}

.features .icon {
  width: 28px;
  height: 28px;
  margin-top: 2px;
}

.features h3 {
  margin: 0 0 4px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
}

.features p {
  margin: 0;
}

@media (min-width: 900px) {
  .features-layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
  }
}

/* ── 料金（2 枚の切符） ─────────────────────────────── */

.plans {
  display: grid;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 2 枚並べたときに下端を揃える（半券の側が伸びる）。 */
.plans > .ticket {
  display: flex;
  flex-direction: column;
}

.plans .ticket__stub {
  flex: 1;
}

.plan__name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.plan__price {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1.2;
}

.plan__price small {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
}

/* 年間プラン（決めごと #29）。月額の下に一回り小さく並べ、お得さを添える。 */
.plan__price--alt {
  margin-top: 4px;
  font-size: 1.75rem;
}

.plan__price--alt em {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sun, #f6c344);
  color: var(--ink, #1b1d2c);
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.plan__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan__list li {
  position: relative;
  padding-left: 1.4em;
}

.plan__list li::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 0.75em;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--ink);
}

.plans__note {
  max-width: 40em;
  margin: 28px 0 0;
  color: var(--slate);
  font-size: 0.875rem;
}

@media (min-width: 760px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 880px;
  }
}

/* ── 締めの導線（墨色の帯） ─────────────────────────── */

.closing {
  background: var(--ink);
  color: var(--paper);
}

.closing__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 72px var(--gutter) 80px;
}

.closing .section__title {
  color: var(--sun);
}

.closing p {
  max-width: 34em;
  margin: 0 0 32px;
}

.closing :focus-visible {
  outline-color: var(--sun);
}

.closing .store {
  border-color: var(--sun);
  background: var(--sun);
  color: var(--ink);
}

.closing .store.is-soon {
  background: transparent;
  color: var(--paper);
}

.closing .store.is-soon .store__note {
  color: var(--mist-deep);
}


/* ── 法務文書（利用規約・プライバシーポリシー・特商法表記） ── */

.doc {
  max-width: 44rem;
  margin: 0 auto;
  padding: 16px var(--gutter) 96px;
}

.doc__title {
  margin: 24px 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  line-height: 1.3;
  font-feature-settings: "palt";
}

.doc__dates {
  margin: 0 0 32px;
  color: var(--slate);
  font-size: 0.875rem;
}

.doc h2 {
  margin: 48px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  scroll-margin-top: 16px;
}

.doc h3 {
  margin: 28px 0 8px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.5;
}

.doc p {
  margin: 0 0 12px;
}

.doc ul,
.doc ol {
  margin: 0 0 12px;
  padding-left: 1.5em;
}

.doc li + li {
  margin-top: 6px;
}

.doc .note {
  color: var(--slate);
  font-size: 0.9375rem;
}

.toc {
  margin: 0 0 16px;
  padding: 20px 24px;
  border-radius: var(--radius-card);
  background: var(--mist);
}

.toc__title {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  font-weight: 700;
}

.toc ol {
  margin: 0;
  padding-left: 1.6em;
  font-size: 0.9375rem;
}

.toc li + li {
  margin-top: 2px;
}

/* 表は狭い画面で 1 行ずつのカードに並べ替える（見出しは data-label から出す）。 */
.data-table {
  width: 100%;
  margin: 8px 0 20px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.data-table th,
.data-table td {
  padding: 12px 10px 12px 0;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  border-bottom: 2px solid var(--ink);
  font-size: 0.875rem;
}

.data-table td:first-child {
  font-weight: 700;
}

@media (max-width: 640px) {
  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
  }

  .data-table tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--hairline);
  }

  .data-table td {
    padding: 2px 0;
    border: 0;
  }

  .data-table td[data-label]:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    color: var(--slate);
    font-size: 0.8125rem;
    font-weight: 700;
  }
}

/* 特商法表記など、項目名と内容の組。 */
.facts {
  margin: 0;
}

.facts div {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}

.facts div:first-child {
  border-top: 1px solid var(--hairline);
}

.facts dt {
  font-weight: 700;
}

.facts dd {
  margin: 4px 0 0;
}

@media (min-width: 640px) {
  .facts div {
    display: grid;
    grid-template-columns: 13em minmax(0, 1fr);
    gap: 16px;
  }

  .facts dd {
    margin: 0;
  }
}

/* ── 404 ─────────────────────────────────────────── */

.not-found {
  max-width: 44rem;
  margin: 0 auto;
  padding: 48px var(--gutter) 120px;
}

.not-found p {
  margin: 0 0 28px;
}

/* アプリから開いたとき（?store=）は、その端末のストアの記述だけを見せる。lp/public/store.js が html に付ける。 */
html.from-app-store [data-store="play"],
html.from-app-store [data-store="sep"],
html.from-play-store [data-store="app"],
html.from-play-store [data-store="sep"] {
  display: none;
}
