/* 日本酒マップ LP / 規約ページ共通スタイル。アプリの配色（app_colors.dart）に合わせている。 */
:root {
  --font-display: "Kaisei Tokumin", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --bg: #f6efe1;
  --bg-2: #f2ede6;
  --surface: #ffffff;
  --primary: #e07b18;
  --primary-dark: #b9640f;
  --primary-soft: #f6dab6;
  --text: #1f1b16;
  --text-2: #6a635b;
  --sub: #857d73;
  --border: #e5ddd3;
  --divider: #ede7df;
  --radius: 20px;
  --max: 1080px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #f6efe1 url("images/washi.jpg") repeat;
  background-size: 400px 400px;
  color: var(--text);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
  font-feature-settings: "palt";
}

img { max-width: 100%; display: block; }
a { color: var(--primary-dark); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ── ヘッダー ── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(246, 239, 225, 0.82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--divider);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
/* 筆で一筆払ったような「ダウンロード」。墨の擦れは images/brush.png（生成画像） */
.header-cta {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-width: 132px; height: 44px; padding: 0 22px;
  font-family: var(--font-display); font-size: 15px; font-weight: 800; letter-spacing: 0.12em;
  color: #fff; text-decoration: none; text-shadow: 0 1px 2px rgba(110, 50, 0, 0.35);
  background: url("images/brush.png") center / 100% 100% no-repeat;
  transition: transform .2s ease, filter .2s ease;
}
.header-cta:hover { transform: rotate(-1.5deg) scale(1.04); filter: saturate(1.15) brightness(0.95); }

/* ── ボタン ── */
.btn-store {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--text); color: #fff; text-decoration: none;
  padding: 12px 22px 12px 18px; border-radius: 14px;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 20px rgba(31, 27, 22, 0.18);
}
.btn-store:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(31, 27, 22, 0.22); }
.btn-store svg { width: 26px; height: 26px; flex: none; }
.btn-store small { display: block; font-size: 11px; line-height: 1.2; opacity: .8; }
.btn-store strong { display: block; font-size: 18px; line-height: 1.3; letter-spacing: 0.01em; }

/* ── ヒーロー ── */
.hero { position: relative; isolation: isolate; margin-top: -61px; padding: 117px 0 48px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("images/hero_wash.jpg") center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent);
  mask-image: linear-gradient(to bottom, #000 65%, transparent);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--primary-dark);
  background: var(--primary-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.6vw, 60px); line-height: 1.35; letter-spacing: 0.02em;
  margin: 0 0 22px; font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p.lead { font-size: 17px; color: var(--text-2); margin: 0 0 28px; max-width: 34em; }
.hero-note { font-size: 13px; color: var(--sub); margin-top: 14px; }

.phone {
  width: 100%; max-width: 300px; margin: 0 auto;
  border-radius: 44px; padding: 10px; background: var(--text);
  box-shadow: 0 30px 60px rgba(31, 27, 22, 0.18), 0 8px 18px rgba(31, 27, 22, 0.1);
}
.phone img { border-radius: 34px; width: 100%; height: auto; aspect-ratio: 1206 / 2622; object-fit: cover; background: var(--bg); }
.hero-visual img {
  width: 100%; height: auto; mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%);
}

/* ── 酒蔵イラストの帯 ── */
.band { position: relative; margin: 0; }
.band img { width: 100%; height: clamp(220px, 38vw, 440px); object-fit: cover; object-position: center 60%; }
.band figcaption {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  background: rgba(250, 248, 245, 0.92); padding: 10px 20px; border-radius: 999px;
  font-size: 15px; font-weight: 700; white-space: nowrap;
}

/* ── 数字 ── */
.numbers { padding: 8px 0 24px; }
.numbers ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.numbers li {
  background: rgba(255, 255, 255, 0.72); border: 1px solid var(--divider); border-radius: 16px;
  padding: 18px 12px; text-align: center;
}
.numbers b { display: block; font-size: 28px; font-weight: 900; color: var(--primary); line-height: 1.2; font-variant-numeric: tabular-nums; }
.numbers span { font-size: 13px; color: var(--text-2); }

/* ── 機能 ── */
section.block { padding: 64px 0; }
.section-title { text-align: center; margin: 0 0 8px; font-family: var(--font-display); font-size: clamp(24px, 3.6vw, 34px); font-weight: 800; letter-spacing: 0.02em; line-height: 1.5; }
.section-sub { text-align: center; color: var(--text-2); margin: 0 auto 40px; max-width: 36em; }

.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 40px 0;
}
.feature + .feature { border-top: 1px solid var(--divider); }
.feature:nth-of-type(even) .feature-visual { order: -1; }
.feature-num { font-size: 13px; font-weight: 800; color: var(--primary); letter-spacing: 0.08em; }
.feature h3 { font-family: var(--font-display); font-size: clamp(22px, 3vw, 28px); line-height: 1.55; margin: 6px 0 14px; font-weight: 800; letter-spacing: 0.02em; }
.feature p { color: var(--text-2); margin: 0 0 12px; }
.feature ul { margin: 0; padding: 0; list-style: none; }
.feature li { position: relative; padding-left: 22px; color: var(--text-2); margin: 6px 0; }
.feature li::before {
  content: ""; position: absolute; left: 4px; top: 0.72em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--primary);
}
.feature-visual .phone { max-width: 270px; }

/* ── ギャラリー ── */
.gallery {
  display: flex; gap: 16px; overflow-x: auto; padding: 8px 16px 24px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  max-width: var(--max); margin: 0 auto;
}
.gallery figure { margin: 0; flex: 0 0 200px; scroll-snap-align: center; }
.gallery .phone { padding: 7px; border-radius: 32px; }
.gallery .phone img { border-radius: 26px; }
.gallery figcaption { text-align: center; font-size: 13px; color: var(--text-2); margin-top: 10px; }

/* ── CTA ── */
.cta {
  text-align: center; padding: 72px 16px;
  background: linear-gradient(135deg, #f0a456, var(--primary));
  color: #fff;
}
.cta img.icon { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 20px; box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.cta h2 { font-family: var(--font-display); font-size: clamp(24px, 4vw, 36px); margin: 0 0 10px; font-weight: 800; line-height: 1.5; letter-spacing: 0.02em; }
.cta p { margin: 0 0 28px; opacity: .95; }

/* ── フッター ── */
.site-footer { padding: 40px 0 48px; color: var(--text-2); font-size: 13px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: flex-start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer nav a { color: var(--text-2); text-decoration: none; }
.site-footer nav a:hover { color: var(--primary-dark); text-decoration: underline; }
.site-footer .warn { width: 100%; padding-top: 16px; border-top: 1px solid var(--divider); color: var(--sub); }

/* ── 規約ページ ── */
.doc { padding: 40px 0 72px; }
.doc .wrap { max-width: 760px; }
.doc-card { background: rgba(255, 255, 255, 0.86); border: 1px solid var(--divider); border-radius: var(--radius); padding: 40px 44px; }
.doc h1 { font-family: var(--font-display); font-size: clamp(26px, 4vw, 34px); margin: 0 0 12px; line-height: 1.5; font-weight: 800; letter-spacing: 0.04em; }
.doc h2 { font-size: 20px; margin: 40px 0 12px; line-height: 1.5; padding-left: 12px; border-left: 4px solid var(--primary); }
.doc h3 { font-size: 16px; margin: 28px 0 8px; }
.doc p { margin: 8px 0; font-size: 15px; }
.doc ol, .doc ul { margin: 8px 0; padding-left: 1.6em; font-size: 15px; }
.doc li { margin: 4px 0; }
.doc li > ol, .doc li > ul { margin: 4px 0; }
.doc hr { border: 0; border-top: 1px solid var(--divider); margin: 32px 0; }
.doc .dates { color: var(--sub); font-size: 14px; margin: 0; }
.doc a { word-break: break-all; }
.doc-nav { display: flex; gap: 16px; font-size: 14px; margin-bottom: 16px; }
.doc-nav a { color: var(--text-2); }

@media (max-width: 860px) {
  .hero { padding: 93px 0 32px; }
  .hero::before { background-position: 30% bottom; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .band figcaption { font-size: 13px; padding: 8px 14px; }
  .numbers ul { gap: 8px; }
  .numbers b { font-size: 22px; }
  .numbers span { font-size: 11px; }
  .feature { grid-template-columns: 1fr; gap: 28px; padding: 32px 0; }
  .feature:nth-of-type(even) .feature-visual { order: 0; }
  .feature-visual .phone { max-width: 230px; }
  section.block { padding: 44px 0; }
  .doc { padding: 20px 0 48px; }
  .doc-card { padding: 28px 20px; border-radius: 16px; }
  .header-cta { min-width: 112px; height: 38px; padding: 0 16px; font-size: 13px; }
}
