/* 公開ページ（トップ・ガイド一覧・ガイド詳細・使い方など）の見た目
   色はマイページ（style.css）と同じ値を使う。マイページの style.css は読み込まない */

:root {
  --ink: #2B2621;          /* 文字（墨色） */
  --amber: #c67e05;        /* ブランドの色（ボタンなど） */
  --amber-dark: #a86a04;   /* 小さな文字用の琥珀色 */
  --amber-tint: #fbf0dc;   /* 琥珀色の淡い背景 */
  --muted: #99928b;        /* 控えめな文字 */
  --muted-light: #b2aba4;
  --line: #eae7e4;         /* 線 */
  --tint: #f9f8f6;         /* 淡い背景 */
  --thumb: #eeeceb;        /* 画像の下地 */
  --white: #fff;
  --width: 720px;
  --gutter: 16px;
}

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

html {
  font-family: -apple-system, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}

body.site {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ===== ヘッダー ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 52px;
  padding: 0 var(--gutter);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header__logo img { height: 24px; width: auto; }
.site-header__nav { display: flex; gap: 16px; font-size: 14px; }
.site-header__nav a { text-decoration: none; }
.site-header__nav a:hover { color: var(--amber-dark); }

/* ===== 本文の枠 ===== */
.site-main {
  flex: 1;
  width: 100%;
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 var(--gutter) 48px;
}

.page-section { padding-top: 40px; }
.page-title { font-size: 24px; line-height: 1.4; margin-bottom: 20px; }
.section-title { font-size: 19px; line-height: 1.4; margin-bottom: 16px; }
.section-more { margin-top: 16px; font-size: 14px; }
.section-more a { color: var(--amber-dark); }
.empty { color: var(--muted); }
.note { margin-top: 24px; font-size: 13px; color: var(--muted); }

/* ===== ボタン ===== */
.button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.button--primary { background: var(--amber); color: var(--white); }
.button--primary:active { opacity: 0.85; }

/* ===== トップ ===== */
.hero { padding: 48px 0 8px; }
.hero__title { font-size: 28px; line-height: 1.45; margin-bottom: 16px; }
.hero__lead { color: var(--ink); margin-bottom: 24px; max-width: 34em; }

.feature-list { list-style: none; display: grid; gap: 12px; }
.feature { background: var(--tint); border-radius: 12px; padding: 16px; }
.feature__title { font-size: 16px; margin-bottom: 4px; }
.feature p { font-size: 14px; }

.steps { padding-left: 1.4em; display: grid; gap: 8px; }

@media (min-width: 640px) {
  .hero__title { font-size: 34px; }
  .feature-list { grid-template-columns: repeat(3, 1fr); }
}

/* ===== ガイドのカード（一覧・トップ） ===== */
.guide-list { list-style: none; display: grid; gap: 12px; }
.guide-card__link {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.guide-card__link:active { opacity: 0.6; }
.guide-card__thumb {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--thumb);
}
.guide-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.guide-card__body { min-width: 0; }
.guide-card__title { font-size: 16px; line-height: 1.4; }
.guide-card__place { font-size: 13px; color: var(--muted); margin-top: 2px; }
.guide-card__meta { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ===== ガイド詳細 ===== */
.guide__hero { padding-top: 24px; }
.guide__cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  background: var(--thumb);
  margin-bottom: 20px;
}
.guide__title { font-size: 24px; line-height: 1.4; }
.guide__speaker { font-size: 14px; color: var(--muted); margin-top: 4px; }

.guide-section { padding-top: 28px; }
.guide-section__title { font-size: 17px; margin-bottom: 12px; }
.guide-section p + p { margin-top: 0.8em; }
.guide__description { padding-top: 24px; }

.trial { width: 100%; }

/* 購入の欄 */
.purchase {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}
.purchase__facts { display: grid; gap: 4px; font-size: 14px; margin-bottom: 12px; }
.purchase__facts div { display: flex; gap: 12px; }
.purchase__facts dt { color: var(--muted); min-width: 5em; }
.purchase__status { font-size: 14px; color: var(--amber-dark); margin-bottom: 12px; }
.purchase__button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 999px;
  background: var(--amber);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.purchase__button:disabled { background: var(--line); color: var(--muted); cursor: default; }
a.purchase__button { display: block; text-align: center; text-decoration: none; }
a.purchase__button:active { opacity: 0.85; }
.purchase__note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.purchase__note a { color: var(--amber-dark); }
.price__tax { font-size: 12px; color: var(--muted); margin-left: 2px; }

/* 購入前の確認の小窓 */
.checkout {
  width: min(480px, calc(100% - 2 * var(--gutter)));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: none;
  border-radius: 16px;
  color: var(--ink);
  background: var(--white);
}
.checkout::backdrop { background: rgba(43, 38, 33, 0.5); }
.checkout__form { padding: 20px; }
.checkout__title { font-size: 18px; margin-bottom: 16px; }
.checkout__facts { display: grid; gap: 8px; font-size: 14px; }
.checkout__facts div { display: flex; gap: 12px; }
.checkout__facts dt { color: var(--muted); min-width: 5.5em; flex-shrink: 0; }
.checkout__note {
  margin: 16px 0;
  padding: 12px;
  border-radius: 8px;
  background: var(--tint);
  font-size: 13px;
  line-height: 1.7;
}
.checkout__label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.checkout__input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
}
.checkout__input:focus { outline: none; border-color: var(--amber); }
.checkout__hint { margin-top: 6px; font-size: 12px; color: var(--muted); }
.checkout__agree { margin-top: 16px; font-size: 12px; color: var(--muted); }
.checkout__agree a { color: var(--amber-dark); }
.checkout__error { min-height: 20px; margin: 12px 0 8px; font-size: 13px; color: #c00; }
.checkout__cancel {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
}

/* 巡る場所 */
.place-list { list-style: none; counter-reset: place; display: grid; gap: 12px; }
.place {
  counter-increment: place;
  position: relative;
  padding-left: 36px;
}
.place::before {
  content: counter(place);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.place__name { font-weight: 600; }
.place__area, .place__address { font-size: 13px; color: var(--muted); }
.place__map { font-size: 13px; color: var(--amber-dark); }

/* 収録内容 */
.chapter + .chapter { margin-top: 16px; }
.chapter__title { font-size: 15px; padding: 6px 12px; background: var(--tint); border-radius: 8px; margin-bottom: 4px; }
.track-list { list-style: none; }
.track {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.track__time { color: var(--muted); font-variant-numeric: tabular-nums; flex-shrink: 0; }

/* ===== 文章のページ（使い方・プライバシーポリシー） ===== */
.prose h2 { font-size: 18px; margin: 32px 0 8px; }
.prose h3 { font-size: 15px; margin: 20px 0 4px; }
.prose p + p { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 8px 0; }
.prose li + li { margin-top: 4px; }

/* お問い合わせのフォーム（入力欄・ボタンは購入の小窓と同じもの） */
.contact-form { margin-top: 24px; }
.contact-form__field + .contact-form__field { margin-top: 16px; }
.contact-form__textarea { resize: vertical; line-height: 1.7; }
.contact-form select.checkout__input { background: var(--white); color: var(--ink); }
.contact-form__turnstile { margin-top: 20px; min-height: 65px; }
.contact-done { margin-top: 24px; padding: 16px; border-radius: 12px; background: var(--tint); }
.contact-done h2 { margin-top: 0; }

/* 特定商取引法に基づく表記の表 */
.legal-table { border-top: 1px solid var(--line); font-size: 14px; }
.legal-table div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.legal-table dt { font-weight: 600; margin-bottom: 4px; }
.legal-table ul { margin: 4px 0 0; }
@media (min-width: 640px) {
  .legal-table div { display: flex; gap: 16px; }
  .legal-table dt { flex: 0 0 11em; margin-bottom: 0; }
}

/* ===== フッター ===== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px var(--gutter) 32px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.site-footer__nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 8px; }
.site-footer__nav a { color: var(--ink); text-decoration: none; }
