/* ZennChat - 共通スタイル
   アプリ本体のデザイン言語（温かいクリーム地・オレンジ・明朝見出し・円相）に合わせている */

:root {
  --bg: #f8f1e4;
  --bg-card: #fffdf8;
  --bg-soft: #fbeeda;
  --ink: #2a2520;
  --ink-muted: #7a6e60;
  --accent: #e8912a;
  --accent-deep: #c2701a;
  --line: rgba(42, 37, 32, 0.1);
  --shadow: 0 2px 24px rgba(120, 90, 40, 0.08);
  --radius: 18px;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1613;
    --bg-card: #241f1a;
    --bg-soft: #2e261c;
    --ink: #f2ece2;
    --ink-muted: #a89b8a;
    --accent: #f0a344;
    --accent-deep: #f5bd77;
    --line: rgba(242, 236, 226, 0.12);
    --shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow { max-width: 760px; }

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

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

/* ---------- ヘッダー ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand svg { flex: none; }

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--accent-deep); }

@media (max-width: 640px) {
  .site-nav { display: none; }
}

/* ---------- ヒーロー ---------- */

.hero {
  text-align: center;
  padding: 72px 0 56px;
}

.hero__enso { margin: 0 auto 28px; }

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 6.5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.06em;
  margin: 0 0 18px;
}

.hero__lead {
  color: var(--accent-deep);
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}

.hero__sub {
  color: var(--ink-muted);
  max-width: 40em;
  margin: 0 auto 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(232, 145, 42, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(232, 145, 42, 0.38);
}

.btn--ghost {
  background: transparent;
  color: var(--ink-muted);
  box-shadow: none;
  border: 1px solid var(--line);
}

.btn--ghost:hover { box-shadow: none; color: var(--ink); }

.hero__note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* ---------- セクション ---------- */

.section { padding: 64px 0; }

.section--soft { background: var(--bg-soft); }

.section__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
  margin: 0 0 12px;
}

.section__desc {
  text-align: center;
  color: var(--ink-muted);
  max-width: 38em;
  margin: 0 auto 44px;
}

/* ---------- 機能カード ---------- */

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

.feature {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
}

.feature__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.feature h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}

.feature p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.85;
}

/* ---------- スクリーンショット ---------- */

.shots {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 24px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shots img {
  flex: none;
  width: min(260px, 62vw);
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  scroll-snap-align: center;
}

/* ---------- 料金 ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
}

.plan {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow);
}

.plan--featured { border-color: var(--accent); }

.plan__name {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  margin: 0 0 6px;
}

.plan__price {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent-deep);
  margin: 0 0 4px;
}

.plan__period { color: var(--ink-muted); font-size: 0.85rem; margin: 0; }

.plans__note {
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.82rem;
  margin-top: 24px;
  line-height: 1.9;
}

/* ---------- フッター ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 56px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin-bottom: 20px;
}

.footer-nav a { color: var(--ink-muted); text-decoration: none; }

.footer-nav a:hover { color: var(--accent-deep); text-decoration: underline; }

/* ---------- 法的文書ページ ---------- */

.legal-hero {
  text-align: center;
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}

.legal-hero__sub { color: var(--ink-muted); font-size: 0.9rem; margin: 0; }

.legal-body { padding: 40px 0 72px; }

.legal-body h2 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.legal-body h2:first-of-type { margin-top: 0; }

.legal-body p { margin: 0 0 14px; }

.legal-body ul { margin: 0 0 16px; padding-left: 1.3em; }

.legal-body li { margin-bottom: 8px; }

.legal-body .note {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 0 0 20px;
}

.legal-body .en {
  color: var(--ink-muted);
  font-size: 0.86rem;
  line-height: 1.8;
  font-style: italic;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.94rem;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--bg-soft);
  width: 34%;
  font-weight: 600;
  white-space: nowrap;
}

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

.legal-meta {
  color: var(--ink-muted);
  font-size: 0.85rem;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
