/* ============================================================
   ビジネスStockr — ギフトライセンス 共通スタイル
   ブランド方針: 静かな上質 / bright / 機能の誇示をしない
   ============================================================ */

:root {
  --paper: #FAF8F5;
  --paper-deep: #F1EDE7;
  --ink: #26221F;
  --ink-soft: #5C554E;
  --line: #E3DDD4;
  --accent: #2E5E4E;        /* 深緑: CTA・リンク */
  --accent-soft: #EAF0ED;
  --foil: #B08D57;          /* 箔: カード・アクセント */
  --white: #FFFFFF;
  --radius: 14px;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: "Shippori Mincho", "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.8; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

.kicker {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--foil);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title { font-size: 30px; margin-bottom: 20px; }
.section-lead { color: var(--ink-soft); max-width: 640px; margin-bottom: 48px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { font-family: "Shippori Mincho", serif; font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: 0.04em; }
.brand span { color: var(--foil); }
.nav { display: flex; gap: 28px; align-items: center; font-size: 14px; }
.nav a:not(.btn) { color: var(--ink-soft); }
.nav .btn { padding: 9px 20px; font-size: 14px; }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 36px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.03em;
  transition: opacity 0.2s ease, transform 0.1s ease;
  cursor: pointer;
  border: 1.5px solid transparent;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { opacity: 0.85; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-block { display: block; width: 100%; }

/* ---------- hero ---------- */
.hero { padding: 88px 0 96px; }
.hero .inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center;
}
.hero h1 { font-size: 44px; margin-bottom: 24px; }
.hero .lead { color: var(--ink-soft); margin-bottom: 32px; max-width: 520px; }
.hero .price-line { font-size: 15px; color: var(--ink-soft); margin-bottom: 28px; }
.hero .price-line strong { font-family: "Shippori Mincho", serif; font-size: 22px; color: var(--ink); margin-right: 4px; }
.hero .cta-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero .cta-note { font-size: 13px; color: var(--ink-soft); margin-top: 16px; }
@media (max-width: 860px) {
  .hero { padding: 56px 0 64px; }
  .hero .inner { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { font-size: 32px; }
}

/* ---------- license card mock ---------- */
.card-stage { display: flex; justify-content: center; }
.license-card {
  width: 340px; aspect-ratio: 1.586;
  background: linear-gradient(135deg, #FFFEFC 0%, #F5F0E8 55%, #EFE7DA 100%);
  border-radius: 16px;
  border: 1px solid #E8E0D2;
  box-shadow: 0 24px 48px rgba(38, 34, 31, 0.14), 0 4px 12px rgba(38, 34, 31, 0.06);
  padding: 26px 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  transform: rotate(-3deg);
}
.license-card .wordmark { font-family: "Shippori Mincho", serif; font-size: 21px; font-weight: 700; letter-spacing: 0.06em; color: var(--foil); }
.license-card .card-label { font-size: 10px; letter-spacing: 0.22em; color: var(--ink-soft); }
.license-card .code { font-family: "Courier New", monospace; font-size: 15px; letter-spacing: 0.28em; color: var(--ink); }
.license-card .card-foot { display: flex; justify-content: space-between; font-size: 10px; color: var(--ink-soft); letter-spacing: 0.08em; }
@media (max-width: 400px) { .license-card { width: 100%; } }

/* ---------- cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.card h3 { font-size: 19px; margin-bottom: 12px; }
.card p { font-size: 14.5px; color: var(--ink-soft); }
.card .tag { display: inline-block; font-size: 12px; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 3px 12px; margin-bottom: 14px; letter-spacing: 0.05em; }

.step-num {
  font-family: "Shippori Mincho", serif;
  font-size: 15px; color: var(--foil);
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}

/* ---------- price ---------- */
.price-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 56px 48px;
  max-width: 560px; margin: 0 auto;
  text-align: center;
}
.price-panel .amount { font-family: "Shippori Mincho", serif; font-size: 52px; line-height: 1.2; }
.price-panel .amount small { font-size: 18px; }
.price-panel .terms { color: var(--ink-soft); font-size: 14.5px; margin: 12px 0 28px; }
.price-panel ul { list-style: none; text-align: left; margin: 0 auto 32px; max-width: 340px; font-size: 14.5px; }
.price-panel li { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.price-panel li::before { content: "— "; color: var(--foil); }
@media (max-width: 560px) { .price-panel { padding: 40px 24px; } .price-panel .amount { font-size: 40px; } }

/* ---------- voice ---------- */
.voice-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.voice-card p { font-size: 14.5px; margin-bottom: 16px; }
.voice-card .who { font-size: 12.5px; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 20px 32px 20px 0; position: relative;
  font-weight: 600; font-size: 15.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "＋"; position: absolute; right: 4px; top: 20px; color: var(--foil); font-weight: 400;
}
.faq-item[open] summary::after { content: "－"; }
.faq-item .a { padding: 0 0 20px; color: var(--ink-soft); font-size: 14.5px; max-width: 720px; }

/* ---------- corporate strip ---------- */
.strip {
  background: var(--paper-deep);
  border-radius: 20px;
  padding: 48px;
  display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 32px; align-items: center;
}
.strip h2 { font-size: 24px; margin-bottom: 12px; }
.strip p { color: var(--ink-soft); font-size: 14.5px; }
@media (max-width: 780px) { .strip { grid-template-columns: 1fr; padding: 36px 28px; } }

/* ---------- closing ---------- */
.closing { text-align: center; background: var(--white); border-top: 1px solid var(--line); }
.closing h2 { font-size: 30px; margin-bottom: 16px; }
.closing p { color: var(--ink-soft); margin-bottom: 36px; }
.closing .cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 64px; font-size: 13px; color: var(--ink-soft); }
.site-footer .inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--ink-soft); }

/* ---------- form (order page) ---------- */
.form-wrap { max-width: 640px; margin: 0 auto; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 48px; }
@media (max-width: 560px) { .form-card { padding: 32px 20px; } }
.field { margin-bottom: 28px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 8px; }
.field .req { color: #A4462E; font-size: 11px; margin-left: 6px; vertical-align: middle; }
.field .hint { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="date"],
.field input[type="number"], .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  background: var(--white);
}
.field .error-msg { display: none; color: #A4462E; font-size: 12.5px; margin-top: 6px; }
.field.invalid input, .field.invalid select { border-color: #A4462E; }
.field.invalid .error-msg { display: block; }

.order-summary {
  background: var(--paper-deep); border-radius: 12px;
  padding: 20px 24px; margin: 32px 0;
  display: flex; justify-content: space-between; align-items: baseline;
}
.order-summary .total { font-family: "Shippori Mincho", serif; font-size: 26px; }

.terms-box {
  border: 1px solid var(--line); border-radius: 10px;
  max-height: 200px; overflow-y: auto;
  padding: 16px 18px; font-size: 12.5px; color: var(--ink-soft);
  background: var(--paper); margin-bottom: 14px;
}
.agree-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 32px; }
.agree-row input { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--accent); }

.notice { font-size: 12.5px; color: var(--ink-soft); margin-top: 20px; }

/* legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.legal h1 { font-size: 28px; margin-bottom: 32px; }
.legal h2 { font-size: 18px; margin: 36px 0 12px; }
.legal p, .legal li { font-size: 14.5px; color: var(--ink-soft); }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.legal th { background: var(--paper-deep); width: 32%; font-weight: 600; }
.draft-band { background: #FFF6E5; border: 1px solid #EED9A8; color: #7A5B1F; border-radius: 10px; padding: 12px 18px; font-size: 13px; margin-bottom: 32px; }

/* ギフトLP: ブランド補助表記 */
.brand .brand-sub { font-size: 12px; letter-spacing: 0.12em; font-family: "Noto Sans JP", sans-serif; font-weight: 600; }

/* ---------- メールプレビューモーダル ---------- */
.email-dialog {
  /* 縦横センタリング（PC/スマホ共通）: top layerでfixed+inset0+margin:autoが最も確実 */
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
  overflow-y: auto;               /* 内容が最大高さを超えたらダイアログ内でスクロール */
  overscroll-behavior: contain;   /* 背景ページのスクロール連鎖を防ぐ */
  border: none; border-radius: 18px; padding: 0;
  width: min(600px, calc(100vw - 32px));
  max-height: min(85svh, 760px);  /* svh: モバイルのアドレスバー変動に追従 */
  box-shadow: 0 32px 80px rgba(38, 34, 31, 0.3);
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
}
.email-dialog::backdrop { background: rgba(38, 34, 31, 0.45); }
.email-dialog-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  font-weight: 600; font-size: 14px; background: var(--white);
  position: sticky; top: 0;
}
.email-dialog-close {
  border: none; background: none; font-size: 22px; line-height: 1;
  color: var(--ink-soft); cursor: pointer; padding: 4px 8px;
}
.email-mock { padding: 20px; }
.email-meta {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px 10px 0 0;
  padding: 12px 16px; font-size: 12.5px; color: var(--ink-soft);
  display: grid; gap: 4px;
}
.email-meta-label {
  display: inline-block; width: 3.5em; color: var(--foil); font-weight: 600;
}
.email-body {
  background: var(--white); border: 1px solid var(--line); border-top: none;
  border-radius: 0 0 10px 10px; padding: 18px 16px;
  font-size: 13px; line-height: 1.8;
}
.email-body p { margin-bottom: 12px; }
.email-h { font-weight: 600; margin-bottom: 4px !important; }
.email-code {
  font-family: "Courier New", monospace; font-size: 17px; letter-spacing: 0.18em;
  background: var(--paper-deep); border-radius: 8px; padding: 10px 14px;
  display: inline-block;
}
.email-quote {
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  border-radius: 0 8px 8px 0; padding: 12px 14px; font-size: 12.5px;
}
.email-quote p { margin-bottom: 8px; }
.email-quote p:last-child { margin-bottom: 0; }
.email-dialog-foot {
  padding: 16px 20px 20px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-soft); line-height: 1.9;
}
.email-foot-title { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
