/*
 * Travel Inbox — ランディングページ
 *
 * アプリアイコン（紙飛行機・大きな円・小さな円・細い縦線・淡いブルー・紙）を
 * ページ全体に展開する。地はアイボリーの紙、色は淡いブルーとブルーグレーだけ。
 * 影はごく薄く、情報は罫線と余白で区切る。
 *
 * Web フォントは読み込まない（外部通信なし・表示待ちなし）。
 * 明朝／ゴシックは各OSの標準フォントを使う。
 */

/* ------------------------------------------------------------------ */
/* Tokens                                                              */
/* ------------------------------------------------------------------ */

:root {
  /* 色は brand.html のパレット（アプリの theme.ts と同じ値）。 */
  --paper: #faf8f4;
  --surface: #ffffff;
  --sunken: #f2eee6;

  --ink: #1a1815;
  --ink-muted: #5c564b;
  --ink-faint: #706858;
  --ink-inverse: #ffffff;
  --rule: #e8e3d9;
  --rule-strong: #cfc8ba;

  --indigo: #3d6891;
  --indigo-pressed: #2c5178;
  --indigo-wash: #e7eef6;
  --vermilion: #b44431;
  --vermilion-wash: #fbeae5;
  --moss: #3d7556;
  --moss-pressed: #2d5c42;
  --moss-wash: #e6f1ea;
  --danger: #a33a28;
  --danger-wash: #f8eae7;

  /* ブランドの装飾色（アイコン由来）。文字・操作には使わない。 */
  --powder: #d6e4ef;
  --powder-deep: #a8c4dc;
  --sky-line: #7fa3c4;
  --kraft-light: #f3ece0;
  --kraft: #e3d6c2;
  --kraft-deep: #cdbda3;
  --kraft-line: #8f7f67;
  /* 空色と空色・濃の中間。新しい色ではなく、円のグラデーションのための混色。 */
  --powder-mid: color-mix(in srgb, var(--powder) 50%, var(--powder-deep));

  --shadow-sm: 0 1px 2px rgb(74 60 42 / 0.06), 0 4px 14px rgb(74 60 42 / 0.05);
  --shadow-md: 0 2px 6px rgb(74 60 42 / 0.06), 0 18px 40px -12px rgb(74 60 42 / 0.16);

  --font-serif: 'Hiragino Mincho ProN', 'Yu Mincho', YuMincho, 'Noto Serif JP', 'Noto Serif CJK JP', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic UI', 'Yu Gothic',
    YuGothic, Meiryo, system-ui, sans-serif;
  --font-latin: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;

  /* 文字サイズ。使ってよいのはこの10段だけ（ワードマークと料金の数字、スマホ模型の中は除く）。 */
  --fs-hero: clamp(34px, 3.9vw, 56px); /* 明朝 400 */
  --fs-display: clamp(26px, 2.4vw, 34px); /* 明朝 400 */
  --fs-title: 22px; /* 明朝 600 */
  --fs-item-title: 17px; /* 明朝 600 */
  --fs-heading: 16px; /* ゴシック 700 */
  --fs-body: 16px; /* ゴシック 400 */
  --fs-button: 15px; /* ゴシック 600 */
  --fs-body-s: 14px; /* ゴシック 400 */
  --fs-caption: 13px; /* ゴシック 400 */
  --fs-label: 12px; /* ゴシック 600 */

  --container: 1240px;
  --gutter: clamp(20px, 4.2vw, 56px);
  --section-y: clamp(80px, 8vw, 112px);
  --radius: 16px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --header-h: 76px;
  color-scheme: light;
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background-color: var(--paper);
  /* ごく薄い紙の繊維。外部画像を使わずインラインのノイズで。 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .28 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.85;
  letter-spacing: 0.02em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute !important;
  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: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

/* 日本語の見出しは文節で折り返す（対応ブラウザのみ） */
.hero-title,
.section-title,
.cta-title,
.feature h3,
.hero-lead,
.section-lead {
  word-break: auto-phrase;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.btn {
  --h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9em;
  min-height: var(--h);
  padding: 0 1.9em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: var(--fs-button);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.btn .icon {
  transition: transform 0.3s var(--ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--indigo-pressed) 70%, transparent);
}

.btn-primary:hover {
  background: var(--indigo-pressed);
  box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--indigo-pressed) 80%, transparent);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgb(255 255 255 / 0.35);
  border-color: var(--ink-faint);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--ink);
}

.btn-ghost:hover .icon {
  transform: none;
}

.btn-lg {
  --h: 58px;
  min-width: 232px;
  font-size: var(--fs-body);
}

.btn-sm {
  --h: 44px;
  padding: 0 1.6em;
  font-size: var(--fs-body-s);
}

.round-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    opacity 0.3s;
}

.round-btn svg {
  width: 20px;
  height: 20px;
}

.round-btn:hover {
  border-color: var(--ink-faint);
}

.round-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  transition:
    background-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}

.brand-mark {
  width: 46px;
  height: 37px;
  filter: drop-shadow(0 3px 3px rgb(90 74 54 / 0.12));
}

.brand-name {
  font-family: var(--font-latin);
  font-size: 25px;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--ink);
}

.global-nav {
  display: flex;
  align-items: center;
  flex: 1;
}

.global-nav ul {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  margin-left: clamp(24px, 5vw, 80px);
}

.global-nav a:not(.btn) {
  position: relative;
  padding: 8px 0;
  font-size: var(--fs-body-s);
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--ink-muted);
  transition: color 0.3s;
}

.global-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.global-nav a:not(.btn):hover {
  color: var(--ink);
}

.global-nav a:not(.btn):hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: none;
}

.header-cta {
  margin-left: auto;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border: 0;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  place-items: center;
}

.menu-toggle .icon {
  width: 24px;
  height: 24px;
}

/* ------------------------------------------------------------------ */
/* Shared typography                                                   */
/* ------------------------------------------------------------------ */

.eyebrow {
  font-size: var(--fs-caption);
  letter-spacing: 0.32em;
  color: var(--ink-faint);
}

.eyebrow-en {
  margin-bottom: 22px;
  font-family: var(--font-latin);
  font-size: var(--fs-label);
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.section-lead {
  margin-top: 24px;
  font-size: var(--fs-body);
  line-height: 2;
  color: var(--ink-muted);
}

.section-lead a {
  color: var(--indigo);
  text-underline-offset: 4px;
}

.section-intro .btn {
  margin-top: 36px;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(24px, 4vw, 56px));
  padding-bottom: clamp(40px, 4vw, 64px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-bottom: 24px;
}

.hero-eyebrow {
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-hero);
  line-height: 1.42;
  letter-spacing: 0.04em;
  color: var(--ink);
  /* 鉤括弧の前の空きを詰めて、行頭をそろえる */
  font-feature-settings: 'palt' 1;
}

.hero-title .line {
  display: block;
  white-space: nowrap;
}

.hero-title .line:first-child {
  margin-left: -0.42em;
}

.hero-lead {
  max-width: 34em;
  margin-top: 32px;
  font-size: var(--fs-body);
  line-height: 2.05;
  color: var(--ink-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 44px;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: var(--fs-caption);
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  white-space: pre;
}

.hero-note::before,
.hero-note::after {
  content: '';
  width: 12px;
  height: 1px;
  background: var(--ink-faint);
  transform: rotate(60deg);
}

.hero-note::after {
  transform: rotate(-60deg);
}

/* --- stage ------------------------------------------------------- */

.hero-stage {
  /* スマホ内のUIはすべて em 基準。ここの font-size で全体を拡縮する。 */
  --u: clamp(9px, 1.02vw, 15px);
  position: relative;
  font-size: var(--u);
  width: 48.4em;
  height: 44em;
  justify-self: end;
  margin-right: -2em;
}

.shape {
  position: absolute;
  pointer-events: none;
}

.hero-stage .shape-circle-lg {
  left: 7em;
  top: 1.5em;
  width: 38em;
  height: 38em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e1ecf5, var(--powder) 55%, var(--powder-mid));
}

.hero-stage .shape-circle-sm {
  right: 1.2em;
  top: 0.5em;
  width: 3.6em;
  height: 3.6em;
  border-radius: 50%;
  background: var(--powder-deep);
}

.shape-line {
  width: 1.5px;
  background: var(--sky-line);
  opacity: 0.9;
}

.hero-stage .shape-line-top {
  left: 26em;
  top: -3.5em;
  height: 5.5em;
}

.hero-stage .shape-line-bottom {
  left: 26em;
  top: 39.5em;
  height: 5em;
}

/* --- phone ------------------------------------------------------- */

.phone {
  --w: 17em;
  position: absolute;
  width: var(--w);
  aspect-ratio: 9 / 19.2;
  padding: 0.42em;
  border-radius: 2.9em;
  background: linear-gradient(145deg, #f2eee8, #d9d3ca 45%, #efebe4);
  box-shadow:
    inset 0 0 0 0.08em rgb(255 255 255 / 0.9),
    inset 0 0 0 0.16em rgb(150 140 126 / 0.35),
    0 0.3em 0.6em rgb(70 58 42 / 0.12),
    0 2.6em 3.4em -1.6em rgb(70 58 42 / 0.42);
  animation: float 7s ease-in-out infinite;
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 0.34em solid #1d1c1a;
  border-radius: 2.5em;
  background: var(--surface);
  font-size: 0.62em;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--ink);
}

/* Dynamic Island */
.phone-screen::before {
  content: '';
  position: absolute;
  top: 1.05em;
  left: 50%;
  width: 8.6em;
  height: 2.5em;
  border-radius: 2em;
  background: #1d1c1a;
  transform: translateX(-50%);
  z-index: 5;
}

.phone-inbox {
  left: 0;
  top: 5.2em;
  rotate: -7deg;
  z-index: 3;
  animation-delay: -1s;
}

.phone-map {
  left: 14.2em;
  top: 1.6em;
  rotate: -1.5deg;
  z-index: 2;
  animation-delay: -3.4s;
}

.phone-cal {
  left: 31.2em;
  top: 5.8em;
  rotate: 6deg;
  z-index: 1;
  animation-delay: -5.2s;
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -0.55em;
  }
}

.status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.35em 2.4em 0.6em 2.8em;
  font-size: 1.05em;
  font-weight: 600;
  position: relative;
  z-index: 3;
}

.status-icons {
  width: 3.8em;
  height: 0.9em;
  background:
    linear-gradient(currentColor, currentColor) 0 100% / 0.28em 40% no-repeat,
    linear-gradient(currentColor, currentColor) 0.4em 100% / 0.28em 60% no-repeat,
    linear-gradient(currentColor, currentColor) 0.8em 100% / 0.28em 80% no-repeat,
    linear-gradient(currentColor, currentColor) 1.2em 100% / 0.28em 100% no-repeat,
    linear-gradient(currentColor, currentColor) 100% 50% / 1.7em 100% no-repeat;
  border-radius: 0.2em;
}

.app-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8em 1.5em 0.6em;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-latin);
  font-size: 1.55em;
}

.app-brand svg {
  width: 1.4em;
  height: 1.1em;
}

.app-ico {
  width: 1.7em;
  height: 1.7em;
  color: var(--ink-muted);
}

.app-search {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin: 0.3em 1.3em 0.7em;
  padding: 0.65em 0.9em;
  border-radius: 0.9em;
  background: var(--sunken);
  color: var(--ink-faint);
  font-size: 0.95em;
}

.app-search svg {
  width: 1.2em;
  height: 1.2em;
}

.app-tabs {
  display: flex;
  gap: 1.6em;
  padding: 0 1.5em;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95em;
  color: var(--ink-faint);
}

.app-tabs span {
  padding: 0.35em 0 0.55em;
}

.app-tabs .is-on {
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 -0.18em var(--indigo);
}

.app-list {
  flex: 1;
  padding: 0.4em 1.2em;
  overflow: hidden;
}

.app-list li,
.sheet,
.fv-event {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85em;
}

.app-list li {
  padding: 0.7em 0;
  border-bottom: 1px solid var(--rule);
}

.app-list img,
.sheet img,
.fv-event img {
  width: 4.4em;
  height: 4.4em;
  border-radius: 0.8em;
  object-fit: cover;
}

.app-list b,
.sheet b {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheet > div,
.app-list li > div {
  min-width: 0;
}

.app-list b,
.sheet b,
.cal-list b,
.fv-event b {
  display: block;
  font-size: 1.02em;
  font-weight: 600;
  line-height: 1.35;
}

.app-list small,
.sheet small,
.cal-list small,
.fv-event small {
  display: block;
  font-size: 0.85em;
  color: var(--ink-faint);
}

.src {
  /*
   * 出典はアプリと同じ形：色は小さな印だけで、名前は淡墨のまま。
   * 淡い地に同じ色相の文字を置かない（brand.html の「状態とタグ」）。
   */
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 0.3em;
  font-size: 0.75em;
  font-style: normal;
  font-weight: 600;
  color: var(--ink-muted);
}

.src::before {
  content: '';
  flex: none;
  width: 0.65em;
  height: 0.65em;
  border-radius: 50%;
  background: var(--src-color, var(--ink-faint));
}

/* 出典の色（brand.html・アプリの sourceColors と同じ値） */
.src-ig {
  --src-color: #ae3a60;
}

.src-gm {
  --src-color: #2e7449;
}

.src-web {
  --src-color: #35649a;
}

.src-x {
  --src-color: #3a3833;
}

.fav {
  fill: none;
  width: 1.5em;
  height: 1.5em;
  color: var(--ink-faint);
}

.fav.is-on {
  color: #c77575;
  fill: #e2a4a1;
}

.tabbar {
  display: flex;
  justify-content: space-around;
  padding: 0.7em 0.6em 1.6em;
  border-top: 1px solid var(--rule);
  background: var(--surface);
  font-size: 0.66em;
  color: var(--ink-faint);
  position: relative;
  z-index: 3;
}

.tabbar span {
  display: grid;
  justify-items: center;
  gap: 0.3em;
}

.tabbar svg {
  width: 2.4em;
  height: 2.4em;
}

.tabbar .is-on {
  color: var(--indigo);
  font-weight: 600;
}

/* map screen */
.map {
  position: relative;
  flex: 1;
  margin-top: -3.6em;
  overflow: hidden;
}

.map-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-search {
  position: absolute;
  top: 5.2em;
  left: 50%;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.6em 1.2em;
  border-radius: 2em;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 0.95em;
  white-space: nowrap;
  color: var(--ink-muted);
}

.map-search svg {
  width: 1.15em;
  height: 1.15em;
}

.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 1.9em;
  height: 1.9em;
  translate: -50% -100%;
  border-radius: 50% 50% 50% 0;
  rotate: -45deg;
  background: var(--indigo);
  box-shadow: 0 0.2em 0.4em rgb(40 60 80 / 0.25);
}

.pin::after {
  content: '';
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  background: #fff;
}

.pin-active {
  width: 2.8em;
  height: 2.8em;
  background: var(--indigo-pressed);
  z-index: 2;
}

.pin-active::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1.2em;
  height: 1.2em;
  translate: -50% 50%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--indigo) 35%, transparent);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0% {
    scale: 0.6;
    opacity: 0.9;
  }
  100% {
    scale: 3;
    opacity: 0;
  }
}

.here {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 1.2em;
  height: 1.2em;
  translate: -50% -50%;
  border: 0.22em solid #fff;
  border-radius: 50%;
  background: #4a8fd6;
  box-shadow: 0 0 0 0.6em rgb(74 143 214 / 0.18);
}

.map-locate {
  position: absolute;
  right: 1.2em;
  bottom: 9.8em;
  display: grid;
  place-items: center;
  width: 2.8em;
  height: 2.8em;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.map-locate svg {
  width: 1.5em;
  height: 1.5em;
  color: var(--indigo);
}

.sheet {
  position: absolute;
  left: 0.9em;
  right: 0.9em;
  bottom: 0.9em;
  padding: 0.8em;
  border-radius: 1.2em;
  background: var(--surface);
  box-shadow: 0 0.3em 1.4em rgb(60 48 32 / 0.16);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em;
  margin-top: 0.35em;
}

.chips i {
  padding: 0.05em 0.55em;
  border-radius: 1em;
  background: var(--sunken);
  font-size: 0.75em;
  font-style: normal;
  color: var(--ink-muted);
}

/* calendar screen */
.cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9em 1.6em 0.6em;
}

.cal-head b {
  font-size: 1.3em;
  font-family: var(--font-serif);
  font-weight: 600;
}

.cal-head svg {
  width: 1.4em;
  height: 1.4em;
  color: var(--ink-faint);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 0.25em;
  padding: 0 1.1em;
  text-align: center;
  font-size: 0.9em;
}

.cal-grid span {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  margin: 0 auto;
  width: 2.2em;
  border-radius: 50%;
}

.cal-grid .dow {
  font-size: 0.85em;
  color: var(--ink-faint);
}

.cal-grid .sun {
  color: #b0645c;
}

.cal-grid .sat {
  color: var(--indigo);
}

.cal-grid .has::after {
  content: '';
  position: absolute;
  bottom: 0.08em;
  width: 0.36em;
  height: 0.36em;
  border-radius: 50%;
  background: var(--sky-line);
}

.cal-grid .sel {
  background: var(--indigo);
  color: #fff;
  font-weight: 600;
}

.cal-grid .sel::after {
  background: #fff;
}

.cal-grid .rng {
  /* アプリのカレンダーと同じく、旅行の期間は藍の wash に墨の数字。 */
  background: var(--indigo-wash);
  color: var(--ink);
  font-weight: 600;
  border-radius: 0;
  width: 100%;
}

.cal-grid .rng-s {
  border-radius: 2em 0 0 2em;
}

.cal-grid .rng-e {
  border-radius: 0 2em 2em 0;
}

.cal-day {
  margin: 0.8em 1.5em 0.3em;
  padding-top: 0.8em;
  border-top: 1px solid var(--rule);
  font-weight: 600;
  font-size: 1em;
}

.cal-list {
  flex: 1;
  padding: 0 1.3em;
}

.cal-list li {
  display: grid;
  grid-template-columns: 3.2em auto 1fr;
  align-items: center;
  gap: 0.6em;
  padding: 0.55em 0.5em;
  margin-top: 0.4em;
  border-radius: 0.8em;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--rule);
}

.cal-list time {
  font-size: 0.9em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}

.cal-list .bar {
  width: 0.3em;
  height: 2.4em;
  border-radius: 1em;
  background: #d8b98c;
}

.cal-list .bar-art {
  background: #a99ad0;
}

.cal-list .bar-sight {
  background: var(--sky-line);
}

.fab {
  position: absolute;
  right: 1.4em;
  bottom: 6.2em;
  display: grid;
  place-items: center;
  width: 3.4em;
  height: 3.4em;
  border-radius: 50%;
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 0.4em 0.9em color-mix(in srgb, var(--indigo-pressed) 35%, transparent);
  z-index: 4;
}

.fab svg {
  width: 1.6em;
  height: 1.6em;
}

/* ------------------------------------------------------------------ */
/* Benefits                                                            */
/* ------------------------------------------------------------------ */

.benefits {
  position: relative;
  background: color-mix(in srgb, var(--sunken) 72%, transparent);
  border-block: 1px solid var(--rule);
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.benefit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px clamp(12px, 1.6vw, 24px);
}

.benefit + .benefit {
  border-left: 1px solid var(--rule-strong);
}

.benefit-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--powder);
  color: var(--indigo);
}

.benefit-icon svg {
  width: 24px;
  height: 24px;
}

.benefit h2 {
  font-family: var(--font-serif);
  font-size: var(--fs-item-title);
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  line-height: 1.5;
}

.benefit p {
  margin-top: 2px;
  font-size: var(--fs-body-s);
  white-space: nowrap;
  color: var(--ink-faint);
}

/* ------------------------------------------------------------------ */
/* Features                                                            */
/* ------------------------------------------------------------------ */

.features-grid {
  display: grid;
  grid-template-columns: minmax(250px, 285px) 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.features .section-intro {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature {
  display: flex;
  flex-direction: column;
  padding: 14px 14px 26px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--rule) 80%, transparent),
    var(--shadow-sm);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--rule) 80%, transparent),
    var(--shadow-md);
}

.feature-num {
  margin: 26px 6px 6px;
  font-family: var(--font-latin);
  font-size: var(--fs-body-s);
  letter-spacing: 0.1em;
  color: var(--indigo);
}

.feature h3 {
  margin: 0 6px;
  font-family: var(--font-serif);
  font-size: var(--fs-item-title);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.05em;
}

.feature > p:last-child {
  margin: 14px 6px 0;
  font-size: var(--fs-body-s);
  line-height: 1.95;
  color: var(--ink-muted);
}

.feature-visual {
  --u: 13px;
  position: relative;
  aspect-ratio: 1 / 1.05;
  border-radius: 12px;
  overflow: hidden;
  background: var(--sunken);
  font-size: var(--u);
}

.feature-visual svg {
  width: 1.2em;
  height: 1.2em;
}

/* 01 save */
.fv-save {
  background: linear-gradient(180deg, #eef3f7, var(--sunken));
}

.fv-sources {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5em;
  padding: 1.1em 0.8em 0;
}

/* 保存元サービスのマーク。ロゴまわりに余白を確保するため、白い円形のバッジに載せる。 */
.src-dot {
  display: grid;
  place-items: center;
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}

.src-dot svg {
  width: 1.3em;
  height: 1.3em;
}

.fv-shot {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 30%;
  bottom: 20%;
  border-radius: 10px;
  overflow: hidden;
  rotate: -4deg;
  box-shadow: var(--shadow-md);
}

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

.fv-save-btn {
  position: absolute;
  right: 0.5em;
  bottom: 0.5em;
  display: grid;
  place-items: center;
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  background: var(--surface);
  color: var(--indigo);
  box-shadow: var(--shadow-sm);
}

.fv-toast {
  position: absolute;
  left: 50%;
  bottom: 0.9em;
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.4em 0.8em;
  border-radius: 2em;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.72em;
  white-space: nowrap;
}

/* 02 organize */
.fv-organize {
  padding: 1em;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--rule);
}

.fv-title {
  display: flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.86em;
  font-weight: 600;
  margin-bottom: 0.5em;
}

.fv-organize li {
  display: flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.52em 0.1em;
  border-bottom: 1px solid var(--rule);
  font-size: 0.8em;
}

.fv-organize li svg {
  color: var(--indigo);
}

.fv-organize li span {
  margin-left: auto;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.fv-tags {
  display: flex;
  gap: 0.35em;
  margin-top: 0.8em;
}

.fv-tags i {
  /* アプリのタグのチップと同じ：濃い罫の線に墨の名前、「#」だけ藍。 */
  padding: 0.15em 0.6em;
  border: 1px solid var(--rule-strong);
  border-radius: 0.5em;
  color: var(--ink);
  font-size: 0.72em;
  font-style: normal;
  font-weight: 600;
}

.fv-tags b {
  font-weight: inherit;
  color: var(--indigo);
}

/* 03 map */
.fv-map-art {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.fv-map .pin {
  font-size: 0.8em;
}

.fv-thumbs {
  position: absolute;
  left: 0.6em;
  right: 0.6em;
  bottom: 0.6em;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4em;
}

.fv-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid var(--surface);
  box-shadow: var(--shadow-sm);
}

/* 04 calendar */
.fv-cal {
  padding: 0.9em 0.5em;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--rule);
}

.fv-cal .fv-title {
  justify-content: center;
  font-family: var(--font-serif);
}

.cal-grid-mini {
  padding: 0;
  font-size: 0.66em;
  row-gap: 0;
}

.cal-grid-mini span {
  width: 2em;
}

.fv-event {
  margin: 0.8em 0.3em 0;
  padding: 0.5em;
  border-radius: 0.7em;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--rule);
  grid-template-columns: auto 1fr;
  font-size: 0.78em;
}

.fv-event img {
  width: 3.2em;
  height: 3.2em;
}

/* ------------------------------------------------------------------ */
/* How it works                                                        */
/* ------------------------------------------------------------------ */

.how {
  padding-top: 0;
}

.how-grid {
  display: grid;
  grid-template-columns: minmax(260px, 330px) 1fr;
  gap: clamp(32px, 5vw, 72px);
  padding-top: var(--section-y);
  border-top: 1px solid var(--rule);
}

.timeline-wrap {
  position: relative;
  padding-right: 96px;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  counter-reset: step;
}

/* 丸を結ぶ細い線 */
.timeline::before {
  content: '';
  position: absolute;
  left: calc(100% / 12);
  right: calc(100% / 12 - 110px);
  top: 67px;
  height: 1px;
  background: linear-gradient(90deg, var(--sky-line), var(--powder-deep));
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-num {
  font-family: var(--font-latin);
  font-size: var(--fs-body-s);
  letter-spacing: 0.1em;
  color: var(--indigo);
}

.step-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-top: 12px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1px var(--powder-mid),
    0 0 0 8px var(--paper);
  color: var(--indigo);
  transition: background-color 0.4s var(--ease);
}

.step-icon svg {
  width: 26px;
  height: 26px;
}

.step:hover .step-icon {
  background: var(--powder);
}

.step-icon-last {
  background: var(--powder);
}

.step h3 {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: var(--fs-item-title);
  font-weight: 600;
  letter-spacing: 0.12em;
}

.step p {
  margin-top: 8px;
  font-size: var(--fs-caption);
  line-height: 1.85;
  color: var(--ink-muted);
}

.flight {
  position: absolute;
  right: -12px;
  top: 0;
  width: 150px;
  height: auto;
  overflow: visible;
}

.flight-plane {
  animation: glide 6s ease-in-out infinite;
}

@keyframes glide {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 4px -5px;
  }
}

/* ------------------------------------------------------------------ */
/* Inspiration                                                         */
/* ------------------------------------------------------------------ */

.inspiration {
  background: color-mix(in srgb, var(--sunken) 72%, transparent);
  border-block: 1px solid var(--rule);
  overflow: hidden;
}

.insp-grid {
  display: grid;
  grid-template-columns: minmax(260px, 350px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.insp-controls {
  display: flex;
  gap: 12px;
  margin-top: 36px;
}

.insp-track {
  --card: clamp(200px, 17vw, 240px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--card);
  gap: 20px;
  /* 右端はコンテナを越えて画面端まで流す */
  margin-right: calc(-1 * max(var(--gutter), (100vw - var(--container)) / 2));
  padding: 8px max(var(--gutter), (100vw - var(--container)) / 2) 16px 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 4px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.insp-track::-webkit-scrollbar {
  display: none;
}

.insp-card {
  scroll-snap-align: start;
}

.insp-card:nth-child(even) {
  margin-top: 36px;
}

.insp-img {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: var(--kraft);
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.5s var(--ease),
    transform 0.5s var(--ease);
}

.insp-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.insp-card:hover .insp-img {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.insp-card:hover .insp-img img {
  transform: scale(1.04);
}

.insp-tag {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  color: var(--ink);
}

.insp-save {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--indigo);
  opacity: 0;
  translate: 0 6px;
  transition:
    opacity 0.4s var(--ease),
    translate 0.4s var(--ease);
}

.insp-save svg {
  width: 17px;
  height: 17px;
}

.insp-card:hover .insp-save {
  opacity: 1;
  translate: 0 0;
}

.insp-card figcaption {
  padding: 14px 2px 0;
}

.insp-card figcaption b {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--fs-item-title);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.6;
  /* 1文字だけ次の行に落ちないよう、文節で折り返して行をそろえる。 */
  word-break: auto-phrase;
  text-wrap: balance;
}

.insp-card figcaption span {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-caption);
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}

/* ------------------------------------------------------------------ */
/* Pricing & FAQ                                                       */
/* ------------------------------------------------------------------ */

.pricing-grid,
.faq-grid {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
}

.pricing-body {
  display: grid;
  gap: 16px;
  align-content: start;
  padding-left: clamp(0px, 3vw, 48px);
  border-left: 1px solid var(--rule-strong);
}

.pricing-text {
  font-size: var(--fs-body);
  line-height: 2;
  color: var(--ink-muted);
  max-width: 36em;
}

.pricing-points {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.pricing-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-body-s);
}

.pricing-points svg {
  width: 18px;
  height: 18px;
  color: var(--indigo);
  flex: none;
}

.faq {
  padding-top: 0;
}

.faq-grid {
  padding-top: var(--section-y);
  border-top: 1px solid var(--rule);
}

.faq-list details {
  border-bottom: 1px solid var(--rule-strong);
}

.faq-list details:first-child {
  border-top: 1px solid var(--rule-strong);
}

.faq-list summary {
  position: relative;
  display: block;
  padding: 24px 56px 24px 4px;
  font-family: var(--font-serif);
  font-size: var(--fs-item-title);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::before,
.faq-list summary::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--indigo);
  transition: rotate 0.35s var(--ease);
}

.faq-list summary::after {
  rotate: 90deg;
}

.faq-list details[open] summary::after {
  rotate: 0deg;
}

.faq-list summary:hover {
  color: var(--indigo-pressed);
}

.faq-list details p {
  padding: 0 56px 28px 4px;
  font-size: var(--fs-body);
  line-height: 2;
  color: var(--ink-muted);
}

/* ------------------------------------------------------------------ */
/* Final CTA                                                           */
/* ------------------------------------------------------------------ */

.final-cta {
  position: relative;
  padding-block: clamp(72px, 8vw, 104px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--sunken) 30%, transparent), color-mix(in srgb, var(--sunken) 85%, transparent));
  border-top: 1px solid var(--rule);
  overflow: hidden;
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr) minmax(0, 0.75fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.cta-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-display);
  letter-spacing: 0.08em;
  line-height: 1.4;
  white-space: nowrap;
}

.cta-copy p {
  margin-top: 18px;
  font-size: var(--fs-body);
  line-height: 2;
  color: var(--ink-muted);
}

.store {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 24px;
}

.store-icon {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow:
    0 0 0 1px rgb(74 60 42 / 0.08),
    var(--shadow-md);
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 8px 28px 8px 22px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--ink) 70%, transparent);
  transition:
    background-color 0.3s var(--ease),
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.store-btn:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -14px color-mix(in srgb, var(--ink) 80%, transparent);
}

.store-btn .icon {
  width: 26px;
  height: 26px;
}

.store-btn span {
  display: grid;
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.35;
  white-space: nowrap;
}

.store-btn small {
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0.12em;
  opacity: 0.8;
}

.store-note {
  margin-top: 12px;
  font-size: var(--fs-caption);
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

.store-status {
  min-height: 1.6em;
  margin-top: 4px;
  font-size: var(--fs-caption);
  color: var(--indigo);
}

.cta-art {
  position: relative;
  height: 260px;
}

.cta-art .shape-circle-lg {
  left: 0;
  top: 8%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e3edf5, var(--powder) 60%, var(--powder-mid));
}

.cta-art .shape-circle-sm {
  left: 70%;
  top: 80%;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--powder-deep);
}

.cta-plane {
  position: absolute;
  left: -14%;
  top: 22%;
  width: 250px;
  animation: glide 7s ease-in-out infinite;
}

.cta-vertical {
  position: absolute;
  right: 0;
  top: 10px;
  padding-left: 22px;
  border-left: 1px solid var(--rule-strong);
  font-family: var(--font-latin);
  font-size: var(--fs-label);
  letter-spacing: 0.5em;
  line-height: 2.6;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.site-footer {
  padding-block: 44px;
  border-top: 1px solid var(--rule);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px 48px;
}

.footer-brand .brand-mark {
  width: 40px;
  height: 32px;
}

.footer-brand .brand-name {
  font-size: 21px;
}

.footer-brand p {
  margin-top: 6px;
  font-size: var(--fs-caption);
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 36px;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.footer-nav a {
  font-size: var(--fs-caption);
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.copyright {
  font-size: var(--fs-label);
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}

/* ------------------------------------------------------------------ */
/* Reveal on scroll (JS が有効なときだけ隠す)                          */
/* ------------------------------------------------------------------ */

.js .reveal {
  opacity: 0;
  translate: 0 18px;
  transition:
    opacity 0.6s var(--ease),
    translate 0.6s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.js .reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

.js .hero-copy > *,
.js .hero-stage > * {
  animation: rise 0.6s var(--ease) both;
}

.js .hero-copy > :nth-child(2) {
  animation-delay: 0.08s;
}
.js .hero-copy > :nth-child(3) {
  animation-delay: 0.16s;
}
.js .hero-copy > :nth-child(n + 4) {
  animation-delay: 0.24s;
}

/* スマホは浮遊アニメーションと登場アニメーションを両立させる */
.js .hero-stage > .phone {
  animation:
    rise-phone 0.6s var(--ease) both,
    float 7s ease-in-out infinite;
}

.js .hero-stage > .phone-inbox {
  animation-delay: 0.2s, -1s;
}
.js .hero-stage > .phone-map {
  animation-delay: 0.3s, -3.4s;
}
.js .hero-stage > .phone-cal {
  animation-delay: 0.4s, -5.2s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes rise-phone {
  from {
    opacity: 0;
    margin-top: 1.6em;
  }
}

/* ------------------------------------------------------------------ */
/* Responsive — large tablet / small laptop                            */
/* ------------------------------------------------------------------ */

@media (max-width: 1180px) {
  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .feature-visual {
    aspect-ratio: 16 / 10;
    --u: 14px;
  }

  .fv-shot {
    left: 22%;
    right: 22%;
    top: 26%;
    bottom: 14%;
  }

  .timeline-wrap {
    padding-right: 0;
  }

  .timeline::before {
    right: calc(100% / 12);
  }

  .flight {
    display: none;
  }

  .cta-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }

  /* 紙飛行機は右上に小さく残す */
  .cta-art {
    position: absolute;
    right: calc(var(--gutter) - 20px);
    top: 36px;
    width: 250px;
    height: 250px;
    scale: 0.62;
    transform-origin: top right;
    pointer-events: none;
  }

  .cta-art .shape-circle-lg {
    left: 30px;
  }

  .cta-vertical {
    display: none;
  }

  .final-cta {
    padding-top: 150px;
  }
}

/* ------------------------------------------------------------------ */
/* Tablet                                                              */
/* ------------------------------------------------------------------ */

@media (max-width: 1023px) {
  :root {
    --fs-hero: clamp(34px, 6.4vw, 54px);
  }

  :root {
    --header-h: 68px;
  }

  .global-nav ul {
    margin-left: 32px;
    gap: 24px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-copy {
    max-width: 620px;
  }

  .hero-stage {
    --u: min(13px, calc((100vw - var(--gutter) * 2) / 46));
    justify-self: center;
    margin: 12px 0 0;
  }

    .benefit-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefit:nth-child(3) {
    border-left: 0;
  }

  .benefit:nth-child(n + 3) {
    border-top: 1px solid var(--rule-strong);
  }

  .features-grid,
  .how-grid,
  .insp-grid,
  .pricing-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .features .section-intro {
    position: static;
  }

  .section-intro {
    max-width: 560px;
  }

  .br-wide {
    display: none;
  }

  /* 縦のタイムライン */
  .timeline {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .timeline::before {
    left: 32px;
    right: auto;
    top: 32px;
    bottom: 64px;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--sky-line), var(--powder-deep));
  }

  .step {
    display: grid;
    grid-template-columns: 64px auto 1fr;
    grid-template-areas:
      'icon num title'
      'icon text text';
    align-items: center;
    column-gap: 22px;
    padding-bottom: 28px;
    text-align: left;
  }

  .step-icon {
    grid-area: icon;
    align-self: start;
    margin: 0;
  }

  .step-num {
    grid-area: num;
    align-self: end;
  }

  .step h3 {
    grid-area: title;
    margin: 0;
    align-self: end;
    margin-left: -8px;
  }

  .step p {
    grid-area: text;
    align-self: start;
    max-width: none;
    margin-top: 4px;
    font-size: var(--fs-body-s);
  }

  .insp-track {
    margin-right: calc(-1 * var(--gutter));
    margin-left: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scroll-padding-left: var(--gutter);
  }

  .insp-controls {
    display: none;
  }

  .pricing-body {
    padding-left: 0;
    border-left: 0;
  }

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

  .cta-grid > .reveal {
    max-width: 600px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

/* ------------------------------------------------------------------ */
/* Mobile                                                              */
/* ------------------------------------------------------------------ */

@media (max-width: 767px) {
  :root {
    --fs-hero: min(8.4vw, 40px);
    --fs-body: 15px;
  }

  :root {
    --header-h: 62px;
    --gutter: 20px;
    --section-y: 80px;
  }

  .brand-mark {
    width: 38px;
    height: 30px;
  }

  .brand-name {
    font-size: 21px;
  }

  .header-cta {
    --h: 40px;
    padding: 0 1.1em;
    font-size: var(--fs-caption);
    letter-spacing: 0.06em;
  }

  .menu-toggle {
    display: grid;
  }

  /* モバイルのナビゲーションはヘッダー直下に開くパネル */
  .global-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    padding: 8px var(--gutter) 28px;
    background: var(--paper);
    box-shadow: 0 18px 30px -18px rgb(74 60 42 / 0.3);
    border-top: 1px solid var(--rule);
    visibility: hidden;
    opacity: 0;
    translate: 0 -8px;
    transition:
      opacity 0.3s var(--ease),
      translate 0.3s var(--ease),
      visibility 0s 0.3s;
  }

  .global-nav.is-open {
    visibility: visible;
    opacity: 1;
    translate: 0 0;
    transition:
      opacity 0.3s var(--ease),
      translate 0.3s var(--ease);
  }

  .global-nav ul {
    flex-direction: column;
    gap: 0;
    margin: 0;
  }

  .global-nav a:not(.btn) {
    display: block;
    padding: 16px 4px;
    border-bottom: 1px solid var(--rule);
    font-size: var(--fs-body);
  }

  .global-nav a:not(.btn)::after {
    display: none;
  }

  .nav-cta {
    display: inline-flex;
    margin-top: 24px;
    --h: 52px;
  }

  .site-header:has(.is-open) {
    background: var(--paper);
  }

  .hero {
    padding-top: calc(var(--header-h) + 28px);
  }

  .hero-eyebrow {
    margin-bottom: 18px;
    font-size: var(--fs-label);
    letter-spacing: 0.22em;
  }

  .hero-title {
    line-height: 1.5;
    letter-spacing: 0.02em;
  }

  .hero-lead {
    margin-top: 22px;
    line-height: 2;
  }

  .hero-actions {
    margin-top: 30px;
    gap: 12px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
    min-width: 0;
  }

  .hero-note {
    margin-top: 20px;
    font-size: var(--fs-label);
    letter-spacing: 0.1em;
  }

  /* 真ん中の Map を手前に、Inbox と Calendar を左右に少しのぞかせる */
  .hero-stage {
    --u: calc((100vw - var(--gutter) * 2) / 36.5);
    width: 36.5em;
    height: 42em;
    margin: 20px 0 0;
  }

  .hero-stage .shape-circle-lg {
    left: 2.5em;
    top: 4em;
    width: 32em;
    height: 32em;
  }

  .hero-stage .shape-circle-sm {
    right: 0;
    top: 1.6em;
    width: 2.6em;
    height: 2.6em;
  }

  .hero-stage .shape-line-top,
  .hero-stage .shape-line-bottom {
    left: 18.25em;
  }

  .hero-stage .shape-line-top {
    top: -2em;
    height: 3em;
  }

  .hero-stage .shape-line-bottom {
    top: 38.6em;
    height: 3.6em;
  }

  .phone {
    --w: 16.4em;
  }

  .phone-inbox {
    left: 0;
    top: 4.6em;
    rotate: -8deg;
    z-index: 2;
  }

  .phone-map {
    left: 10em;
    top: 1.4em;
    rotate: 0deg;
    z-index: 3;
  }

  .phone-cal {
    left: 20.1em;
    top: 4.6em;
    rotate: 8deg;
    z-index: 1;
  }

  .benefit {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 24px 16px 24px 0;
  }

  .benefit:nth-child(even) {
    padding-left: 18px;
  }

  .benefit-icon {
    width: 46px;
    height: 46px;
  }

  .benefit h2,
  .benefit p {
    white-space: normal;
    /* 半幅のセルに収まらないので、文節で折り返して行をそろえる。 */
    word-break: auto-phrase;
    text-wrap: balance;
  }

  .hero-title .line:first-child {
    margin-left: -0.3em;
  }

  /* 機能カードは横スワイプ */
  .feature-list {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 82%;
    gap: 14px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--gutter);
    scrollbar-width: none;
  }

  .feature-list::-webkit-scrollbar {
    display: none;
  }

  .feature {
    scroll-snap-align: start;
  }

  .feature:hover {
    transform: none;
  }

  .feature-visual {
    aspect-ratio: 1 / 0.92;
    --u: 13.5px;
  }

  .fv-shot {
    left: 16%;
    right: 16%;
    top: 28%;
    bottom: 18%;
  }

  .section-intro .btn {
    width: 100%;
  }

  .features .section-intro .btn {
    display: none;
  }

  .step {
    grid-template-columns: 56px auto 1fr;
    column-gap: 18px;
  }

  .step-icon {
    width: 56px;
    height: 56px;
  }

  .timeline::before {
    left: 28px;
  }

  .insp-track {
    --card: 64vw;
    gap: 14px;
  }

  .insp-card:nth-child(even) {
    margin-top: 24px;
  }

  .faq-list summary {
    padding: 20px 44px 20px 0;
  }

  .faq-list summary::before,
  .faq-list summary::after {
    right: 4px;
  }

  .faq-list details p {
    padding: 0 0 24px;
  }

  .store {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .store-icon {
    width: 72px;
    height: 72px;
    border-radius: 17px;
  }

  .store-btn {
    width: 100%;
    justify-content: center;
  }

  .br-narrow {
    display: none;
  }

  .footer-nav {
    flex-direction: column;
    gap: 12px;
  }
}

@media (min-width: 768px) {
  .br-narrow {
    display: none;
  }
}

/* ------------------------------------------------------------------ */
/* Reduced motion                                                      */
/* ------------------------------------------------------------------ */

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js .reveal {
    opacity: 1;
    translate: none;
  }
}

.nw {
  white-space: nowrap;
}
