/* MINOHIDA 公式オンラインストア — /law・/done 用の軽量スタイル。
   トップ・商品LP（GET / ・GET /p/<slug>）はsrc/index.js内のインラインCSS（TOP_STYLE/PRODUCT_STYLE）で
   デザイン改装済み（2026-07-22）。本ファイルはデザイントークンをそちらに合わせてトーンのみ更新。 */
:root {
  --ink: #272b27;
  --green: #173b2a;
  --green-deep: #173b2a;
  --paper: #f8f6f0;
  --line: #d9d7cf;
  --accent: #a45f35;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, -apple-system, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  color: var(--green-deep);
  letter-spacing: 0.06em;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .brand img { height: 34px; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(180deg, var(--green-deep) 0%, var(--green) 100%);
  color: #f4f1e8;
  text-align: center;
  padding: 64px 20px 56px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(24px, 6vw, 40px);
  margin: 0 0 16px;
  letter-spacing: 0.04em;
}
.hero p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 15px;
  color: #e5e2d6;
}

/* ---- Sections ---- */
section { padding: 48px 16px; max-width: 960px; margin: 0 auto; }
section h2 {
  font-size: clamp(20px, 4vw, 28px);
  text-align: center;
  margin-bottom: 8px;
}
.section-lead { text-align: center; color: #6b6b62; margin-bottom: 32px; font-size: 14px; }

/* ---- Product cards ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #eee; }
.product-card .body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-card h3 { font-size: 17px; margin: 0 0 8px; }
.product-card .price { font-size: 18px; font-weight: 700; color: var(--accent); margin: 10px 0; }
.product-card p { font-size: 13.5px; color: #444; flex: 1; }
.product-card .meta { font-size: 12px; color: #888; margin-top: 8px; }

.set-card {
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.set-card img { width: 220px; border-radius: 4px; }
.set-card .body { flex: 1; min-width: 220px; }
.set-card .price { font-size: 20px; font-weight: 700; color: var(--accent); }

/* ---- Origin story ---- */
.origin { background: #fff; }
.origin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.origin-item { border-left: 3px solid var(--green); padding-left: 14px; }
.origin-item h4 { margin: 0 0 6px; font-size: 14px; color: var(--green-deep); }
.origin-item p { font-size: 13px; color: #555; margin: 0; }

/* ---- Order form ---- */
.order-section { background: #f2f0e8; }
.order-form { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 24px; max-width: 640px; margin: 0 auto; }
.order-items { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 16px; }
.order-item-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.order-item-row .name { font-size: 14px; }
.order-item-row .name small { display: block; color: #888; font-size: 12px; }
.order-item-row input[type=number] {
  width: 60px; padding: 6px; border: 1px solid var(--line); border-radius: 3px; text-align: center; font-size: 14px;
}
.order-summary { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; }
.order-summary.total { font-weight: 700; font-size: 17px; border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 6px; }

.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 13px; margin-bottom: 5px; color: #444; }
.form-field input, .form-field textarea {
  width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 3px; font-size: 14px; font-family: inherit;
}
.form-field textarea { min-height: 70px; resize: vertical; }
.form-row { display: flex; gap: 12px; }
.form-row .form-field { flex: 1; }

/* honeypot: 人間には見えないが、bot対策としてDOM上には存在させる */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn-submit {
  width: 100%; padding: 14px; background: var(--green-deep); color: #fff; border: none;
  border-radius: 3px; font-size: 16px; cursor: pointer; letter-spacing: 0.05em;
}
.btn-submit:disabled { opacity: 0.6; cursor: default; }
.form-msg { margin-top: 12px; font-size: 13.5px; }
.form-msg.error { color: #b23a3a; }
.form-msg.ok { color: #2e7d4f; }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq-item h4 { margin: 0 0 6px; font-size: 14.5px; color: var(--green-deep); }
.faq-item p { margin: 0; font-size: 13.5px; color: #555; }

/* ---- Footer ---- */
.site-footer {
  background: var(--green-deep); color: #cfd0c4; text-align: center; padding: 32px 16px; font-size: 12.5px;
}
.site-footer a { color: #e7e4d6; display: inline-block; margin: 0 10px 8px; }

/* ---- Done page ---- */
.done-page { max-width: 560px; margin: 40px auto; padding: 0 16px; }
.done-card { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 28px; text-align: center; }
.done-orderid { font-size: 15px; margin-bottom: 20px; }
.done-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13.5px; margin-bottom: 20px; }
.done-table th, .done-table td { padding: 8px 4px; border-bottom: 1px solid var(--line); }
.done-table .num { text-align: right; }
.done-table tfoot .total td { font-weight: 700; font-size: 16px; }
.done-notice { text-align: left; font-size: 13px; color: #555; background: #f7f6f0; border-radius: 4px; padding: 14px; margin-bottom: 20px; }
.done-notice p { margin: 6px 0; }
.btn-back { display: inline-block; padding: 10px 24px; background: var(--green-deep); color: #fff; border-radius: 3px; text-decoration: none; font-size: 14px; }

@media (max-width: 480px) {
  .form-row { flex-direction: column; }
  .set-card { flex-direction: column; }
  .set-card img { width: 100%; max-width: 260px; }
}
