:root {
  --bg: #f7f4fd;
  --surface: #ffffff;
  --accent: #b62ee0;
  --accent-deep: #8d1fbb;
  --accent-soft: #f3e1fb;
  --blue: #3f8fe0;
  --blue-soft: #e3effc;
  --amber: #f0a43a;
  --amber-soft: #fdf1dc;
  --text: #27232e;
  --text-2: #655e70;
  --text-3: #958ea0;
  --line: #e8e0f3;
  /* アイコンの「あ」と同じ、紫から青への色 */
  --gradient: linear-gradient(135deg, #e03cf0 0%, #9a4cf5 55%, #4d8ef7 100%);
  --shadow: 0 10px 30px rgba(110, 50, 170, 0.11);
  --radius: 22px;
  --max: 1080px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
}

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

a {
  color: var(--accent-deep);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 244, 253, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(110, 50, 170, 0.15);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  color: var(--text-2);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent-deep);
}

/* 言語の切り替え。ほかのリンクと区別するため枠で囲む */
.site-nav .lang {
  padding: 2px 10px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
}

/* App Store バッジ（Apple 公式アートワークは加工しない） */

.store-badge {
  display: inline-block;
  line-height: 0;
  transition: transform 0.15s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
}

.store-badge img {
  height: 60px;
  width: auto;
}

/* 英語版のダウンロードボタン。公式バッジ（英語）を入れるまでの代わり */

.store-button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.store-button:hover {
  color: #fff;
  transform: translateY(-2px);
}

/* ヒーロー */

.hero {
  padding: 56px 0 72px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(32px, 5.2vw, 52px);
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.hero h1 em,
.spotlight h2 em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  margin: 0 0 32px;
  color: var(--text-2);
  font-size: 17px;
}

.hero-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text-3);
}

/* 翻訳結果の画面を HTML で描いた端末。スクリーンショットの代わり */

.phone {
  justify-self: center;
  width: min(100%, 330px);
  padding: 12px;
  border-radius: 46px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 24px 48px rgba(110, 50, 170, 0.18);
}

.phone-screen {
  padding: 22px 16px 20px;
  border-radius: 36px;
  background: #faf6fd;
  font-size: 14px;
  line-height: 1.6;
}

.phone-topic {
  margin: 0 0 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.phone-topic small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.9;
}

.phone-ask {
  margin: 0 0 14px;
  color: var(--text-3);
  font-size: 11px;
  text-align: center;
}

.reply {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.reply img {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.bubble {
  position: relative;
  padding: 8px 14px 10px;
  border-radius: 16px 16px 16px 4px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(110, 50, 170, 0.08);
}

.bubble .who {
  display: block;
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 700;
}

.bubble .say {
  font-size: 16px;
  font-weight: 700;
}

.bubble .reading {
  display: block;
  color: var(--text-3);
  font-size: 11px;
}

.phone-caption {
  margin: 14px 0 0;
  color: var(--text-3);
  font-size: 11px;
  text-align: center;
}

/* 3つの手順 */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 52px 24px 26px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: -18px;
  left: 24px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--gradient);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.steps p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}

/* 特長 */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  padding: 28px 24px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: var(--accent-soft);
  font-size: 26px;
  line-height: 1;
}

.feature img.feature-mark {
  padding: 4px;
  object-fit: contain;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.5;
}

.feature p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}

/* 47都道府県の地図。2列を逆向きにゆっくり流す（動かないときは手で横に送れる） */

.map-strip {
  display: grid;
  gap: 14px;
  margin: 0 -20px;
  /* 両端で途切れて見えないよう、端をぼかす */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.map-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 20px;
  scrollbar-width: none;
}

.map-row::-webkit-scrollbar {
  display: none;
}

.map-row figure {
  flex: 0 0 auto;
  width: 112px;
  margin: 0;
  padding: 12px 10px 8px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(110, 50, 170, 0.08);
  text-align: center;
}

.map-row img {
  width: 76px;
  height: 76px;
  margin: 0 auto 4px;
  object-fit: contain;
}

.map-row figcaption {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
}

.js-anim .map-row {
  overflow: hidden;
}

.js-anim .map-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee var(--duration, 80s) linear infinite;
}

.js-anim .map-row.reverse .map-track {
  animation-direction: reverse;
}

.js-anim .map-row:hover .map-track {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 7px)); }
}

.map-track {
  display: contents;
}

/* 地図の出典。OpenStreetMap のデータから描いているため表示が必要 */
.map-credit {
  margin: 20px 0 0;
  color: var(--text-3);
  font-size: 12px;
  text-align: center;
}

.map-credit a {
  color: inherit;
}

/* チケット。説明を左、カードを右に置く */

.spotlight {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.spotlight h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.35;
}

.spotlight .lead {
  margin: 0 0 20px;
  color: var(--text-2);
  font-size: 17px;
}

.checks {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 30px;
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.spotlight-note {
  margin: 0;
  color: var(--text-2);
  font-size: 13px;
}

.ticket-card {
  justify-self: center;
  width: min(100%, 340px);
  padding: 28px;
  background: var(--surface);
  border-radius: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.ticket-label {
  margin: 0 0 14px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 700;
}

.tickets {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.tickets li {
  position: relative;
  width: 44px;
  height: 30px;
  border-radius: 6px;
  background: var(--gradient);
}

/* チケットらしく左右を半円に欠く。カードと同じ白の丸を重ねる */
.tickets li::before,
.tickets li::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--surface);
}

.tickets li::before {
  left: -5px;
}

.tickets li::after {
  right: -5px;
}

.tickets li.used {
  background: var(--line);
}

.ticket-timer {
  margin: 0 0 18px;
  color: var(--text-3);
  font-size: 13px;
}

.ticket-ad {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: #b26b07;
  font-size: 14px;
  font-weight: 700;
}

/* セクション */

section {
  padding: 72px 0;
}

.section-title {
  margin: 0 0 12px;
  text-align: center;
  font-size: clamp(24px, 3.6vw, 32px);
  line-height: 1.4;
}

.section-lead {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
  color: var(--text-2);
}

.alt {
  background: var(--surface);
}

.alt .feature,
.alt .steps li,
.alt .point {
  background: var(--bg);
  box-shadow: none;
}

/* 安心ポイント */

.points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.point {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.point-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
  font-size: 20px;
}

.point h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.point p {
  margin: 0;
  font-size: 15px;
  color: var(--text-2);
}

/* 締め */

.cta {
  text-align: center;
}

.cta > .container > img {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

/* 文書ページ（プライバシーポリシー・利用規約・サポート） */

.doc {
  padding: 48px 0 80px;
}

.doc .container {
  max-width: 780px;
}

.doc-card {
  padding: 48px 52px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.doc h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.4;
}

.doc .meta {
  margin: 0 0 32px;
  color: var(--text-3);
  font-size: 14px;
}

.doc h2 {
  margin: 44px 0 12px;
  padding-left: 14px;
  border-left: 5px solid var(--accent);
  font-size: 20px;
  line-height: 1.5;
}

.doc h3 {
  margin: 28px 0 8px;
  font-size: 17px;
}

.doc ul,
.doc ol {
  padding-left: 1.4em;
}

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

.summary {
  margin: 0 0 8px;
  padding: 20px 24px;
  background: var(--blue-soft);
  border-radius: 16px;
}

.summary h2 {
  margin: 0 0 8px;
  padding: 0;
  border: none;
  font-size: 16px;
}

.summary ul {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

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

.doc th {
  background: var(--bg);
  white-space: nowrap;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

.faq summary {
  cursor: pointer;
  padding: 14px 4px;
  font-weight: 700;
  list-style: none;
}

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

.faq summary::before {
  content: "Q.";
  margin-right: 8px;
  color: var(--accent);
}

.faq details > div {
  padding: 0 4px 12px 30px;
}

.faq details > div > :first-child {
  margin-top: 0;
}

.contact {
  margin: 16px 0;
  padding: 20px 24px;
  background: var(--amber-soft);
  border-radius: 16px;
  font-size: 17px;
  font-weight: 700;
  word-break: break-all;
}

/* フッター */

.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 13px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  color: var(--text-2);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-deep);
}

/* スマホ */

@media (max-width: 860px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-icon {
    margin-left: auto;
    margin-right: auto;
  }

  .spotlight {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

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

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

  .brand {
    gap: 8px;
    font-size: 16px;
  }

  .site-nav {
    gap: 12px;
    font-size: 13px;
  }

  .site-nav .nav-optional {
    display: none;
  }

  .hero {
    padding: 32px 0 48px;
  }

  section {
    padding: 56px 0;
  }

  .map-strip {
    margin: 0 -16px;
  }

  .map-row {
    padding: 4px 16px;
  }

  .map-row figure {
    width: 96px;
  }

  .map-row img {
    width: 64px;
    height: 64px;
  }

  .doc {
    padding: 24px 0 56px;
  }

  .doc-card {
    padding: 28px 20px;
    border-radius: 18px;
  }
}

/* 英語の長いアプリ名でもヘッダーが1行に収まるよう、狭い画面ではプライバシーをフッターだけにする */
@media (max-width: 400px) {
  .site-nav .nav-narrow-hide {
    display: none;
  }
}

/* 動き。reveal と data-anim は site.js が付ける（「視差効果を減らす」のときは js-anim ごと付かない） */

.js-anim .reveal {
  opacity: 0;
  transition:
    opacity 0.7s ease var(--delay, 0s),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay, 0s);
}

.js-anim .reveal[data-anim="up"] { transform: translateY(32px); }
.js-anim .reveal[data-anim="down"] { transform: translateY(-16px); }
.js-anim .reveal[data-anim="left"] { transform: translateX(-72px); }
.js-anim .reveal[data-anim="right"] { transform: translateX(72px); }
.js-anim .reveal[data-anim="pop"] { transform: scale(0.85); }
.js-anim .reveal[data-anim="soft"] { transform: translateY(14px); }

.js-anim .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* 横から滑り込む前の要素がはみ出して、ページが横にずれないようにする */
.js-anim main {
  overflow-x: clip;
}

/* ヒーローの端末は、現れたあとゆっくり上下に揺らす */
.js-anim .phone.is-in {
  animation: float 6s ease-in-out 1.4s infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* 締めのアイコンは、乗せると少し弾む */
.js-anim .cta > .container > img.is-in:hover {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px) rotate(-4deg); }
  70% { transform: translateY(0) rotate(2deg); }
}

/* よくある質問は、開いた中身をふわっと出す */
.js-anim .faq details[open] > div {
  animation: faq-open 0.35s ease;
}

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
