﻿/* HAKOBAN.life 製品サイト（アプリに合わせて常にライトテーマ） */
:root {
  --brand: #5B50E0;
  --brand-dark: #3C3489;
  --lavender: #ECEAFD;
  --peach: #FDF0DD;
  --peach-ink: #8A4F08;
  --peach-accent: #D07214;
  --mint: #E3F5EC;
  --mint-ink: #17664A;
  --rose: #F9E3E8;
  --rose-ink: #A33A55;
  --yellow: #FFF3C9;
  --yellow-ink: #8A6A00;
  --blue: #E5F0FF;
  --blue-ink: #2A5DA8;
  --neutral: #F7F6FC;
  --ink: #23213A;
  --ink-soft: #5E5B75;
  --line: #E6E4F0;
  --bg: #FFFFFF;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(60, 52, 137, .10);
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
}
/* 英語ページ（en/）は欧文フォントを優先し、行間を少し詰める */
html[lang="en"] { --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
html[lang="en"] body { line-height: 1.65; }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.35; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 780px; }

/* ヘッダ */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: .02em; }
.brand img { border-radius: 8px; }
.brand-dot { color: var(--peach-accent); }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { background: var(--lavender); color: var(--brand-dark); }
.header-right { display: flex; align-items: center; gap: 8px; }
.lang-switch { flex: 0 0 auto; color: var(--brand-dark); text-decoration: none; font-size: 13px; font-weight: 700; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.lang-switch:hover { background: var(--lavender); }

/* ヒーロー */
.hero {
  background:
    radial-gradient(900px 500px at 85% 20%, #FFE6BE 0%, rgba(255, 230, 190, 0) 70%),
    radial-gradient(700px 500px at 0% 100%, var(--lavender) 0%, rgba(236, 234, 253, 0) 70%),
    #FFFBF2;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand-dark); background: var(--lavender); padding: 4px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); font-weight: 900; letter-spacing: .01em; }
.hero h1 em { font-style: normal; color: var(--peach-accent); }
.lead { margin-top: 20px; color: var(--ink-soft); font-size: 17px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 14px; font-weight: 700; text-decoration: none; font-size: 16px; }
.btn-store { background: var(--ink); color: #fff; line-height: 1.2; }
.btn-store small { display: block; font-size: 11px; font-weight: 500; opacity: .8; }
.btn-ghost { background: #fff; color: var(--brand); border: 2px solid var(--brand); }
.btn-ghost:hover { background: var(--lavender); }
.price-note { margin-top: 14px; font-size: 14px; color: var(--ink-soft); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-blob { position: absolute; inset: 8% 6%; background: linear-gradient(140deg, var(--peach), var(--mint)); border-radius: 42% 58% 55% 45% / 50% 40% 60% 50%; }
.hero-phone { position: relative; width: min(300px, 72%); filter: drop-shadow(0 24px 40px rgba(60, 52, 137, .25)); }

/* セクション共通 */
.section { padding: 88px 0; }
.section-tint { background: var(--neutral); }
.section-title { text-align: center; font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; margin-bottom: 44px; }
.section-title span { display: block; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.section-title.align-left { text-align: left; margin-bottom: 24px; }

/* 特長 */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.feature h3 { font-size: 19px; margin: 16px 0 8px; }
.feature p { color: var(--ink-soft); font-size: 15px; }
.feature-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--tone-bg); color: var(--tone-ink); }
.feature-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tone-peach { --tone-bg: var(--peach); --tone-ink: var(--peach-ink); }
.tone-lavender { --tone-bg: var(--lavender); --tone-ink: var(--brand-dark); }
.tone-mint { --tone-bg: var(--mint); --tone-ink: var(--mint-ink); }
.tone-rose { --tone-bg: var(--rose); --tone-ink: var(--rose-ink); }
.tone-yellow { --tone-bg: var(--yellow); --tone-ink: var(--yellow-ink); }
.tone-blue { --tone-bg: var(--blue); --tone-ink: var(--blue-ink); }

/* 使い方 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 36px 24px 28px; border: 1px solid var(--line); }
.step-num { position: absolute; top: -18px; left: 24px; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 18px; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(91, 80, 224, .35); }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* 画面イメージ */
.gallery {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px max(16px, calc((100vw - 1120px) / 2 + 16px)) 24px;
  scrollbar-width: thin;
}
.gallery:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.gallery figure { margin: 0; flex: 0 0 auto; width: 220px; scroll-snap-align: center; text-align: center; }
.gallery img { width: 100%; height: auto; filter: drop-shadow(0 10px 18px rgba(60, 52, 137, .16)); }
.gallery figcaption { margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--ink-soft); }

/* 製品情報 */
.spec-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.spec-card { background: #fff; border-radius: var(--radius); padding: 36px 24px; text-align: center; box-shadow: var(--shadow); }
.spec-card img { margin: 0 auto; border-radius: 26px; box-shadow: 0 8px 20px rgba(138, 79, 8, .18); }
.spec-name { margin-top: 18px; font-size: 22px; font-weight: 800; }
.spec-sub { font-size: 14px; color: var(--ink-soft); }
.spec-list { margin: 0; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.spec-list div { display: grid; grid-template-columns: 8em 1fr; gap: 16px; padding: 14px 22px; border-top: 1px solid var(--line); }
.spec-list div:first-child { border-top: 0; }
.spec-list dt { font-weight: 700; color: var(--brand-dark); }
.spec-list dd { margin: 0; }

/* FAQ */
.faq { border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq p { padding: 0 22px 20px; color: var(--ink-soft); font-size: 15px; }

/* フッタ */
.site-footer { background: #FFFBF2; border-top: 1px solid var(--line); padding: 36px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; font-size: 14px; }
.footer-links a { color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--brand); text-decoration: underline; }
.is-pending { color: var(--ink-soft); }
.copyright { font-size: 13px; color: var(--ink-soft); width: 100%; }

/* 下層ページ（プライバシーポリシー・利用規約・お問い合わせ） */
.nav a[aria-current="page"] { background: var(--lavender); color: var(--brand-dark); }
.doc-page { padding: 64px 0 88px; }
.doc-title { text-align: center; font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; margin-bottom: 36px; }
.doc-title span { display: block; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.doc-lead { color: var(--ink-soft); margin-bottom: 36px; }
.doc-note { margin: -16px 0 36px; padding: 12px 18px; background: var(--neutral); border-radius: 12px; font-size: 14px; color: var(--ink-soft); }
.doc-section { margin-top: 36px; }
.doc-section h2 { font-size: 19px; font-weight: 800; padding-bottom: 8px; margin-bottom: 14px; border-bottom: 2px solid var(--lavender); }
.doc-section p + p { margin-top: 10px; }
.doc-ol { margin: 0; padding-left: 1.6em; }
.doc-ol li + li { margin-top: 6px; }
.doc-list { margin: 14px 0 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.doc-list div { display: grid; grid-template-columns: 6em 1fr; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); }
.doc-list div:first-child { border-top: 0; }
.doc-list dt { font-weight: 700; color: var(--brand-dark); }
.doc-list dd { margin: 0; }
.doc-owner { font-weight: 700; }
.doc-date { margin-top: 48px; text-align: right; font-size: 14px; color: var(--ink-soft); }
.contact-notes { margin: 0 0 32px; padding: 20px 24px 20px 2.6em; background: var(--neutral); border-radius: 16px; font-size: 15px; }
.contact-notes li + li { margin-top: 6px; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.contact-form iframe { display: block; width: 100%; height: 1200px; border: 0; }
.contact-fallback { margin-top: 16px; font-size: 14px; color: var(--ink-soft); text-align: center; }

/* タブレット */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 48px; gap: 36px; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .steps { row-gap: 36px; }
  .spec-wrap { grid-template-columns: 1fr; gap: 28px; }
  .spec-card { max-width: 360px; margin: 0 auto; width: 100%; }
  /* 英語のメニューは長いのでタブレット幅から隠す（言語切り替えは残す） */
  html[lang="en"] .nav { display: none; }
}

/* 言語切り替えを並べると窮屈になる幅ではメニューを隠す */
@media (max-width: 760px) {
  .nav { display: none; }
}

/* スマホ */
@media (max-width: 600px) {
  .nav { display: none; }
  .section { padding: 64px 0; }
  .section-title { margin-bottom: 32px; }
  .lead { font-size: 16px; }
  .btn { width: 100%; justify-content: center; }
  .features, .steps { grid-template-columns: 1fr; }
  .gallery figure { width: 62vw; max-width: 240px; }
  .spec-list div { grid-template-columns: 1fr; gap: 2px; padding: 12px 18px; }
  .doc-page { padding: 44px 0 64px; }
  .doc-list div { grid-template-columns: 1fr; gap: 2px; padding: 12px 18px; }
}
