@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  --bg: #FBF8F1;
  --panel: #FFFFFF;
  --text: #1E1E1E;
  --muted: #66625A;
  --line: #E4DED2;
  --accent: #F2C230;
  --accent-dark: #D9AA14;
  --error: #B3261E;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; margin: 0 auto; padding: 48px 16px 80px; }
.mt { margin-top: 32px; }
.mt-l { margin-top: 56px; }
.center { text-align: center; }

.site-header { background: var(--panel); border-bottom: 1px solid var(--line); }
.site-header .wrap { height: 60px; display: flex; align-items: center; }
.logo { font-weight: 700; font-size: 20px; text-decoration: none; }
.logo span { font-weight: 500; font-size: 14px; color: var(--muted); margin-left: 6px; }

.notice { margin: 16px 0; padding: 12px 16px; background: #FFF6D6; border: 1px solid var(--accent); border-radius: 6px; }
.notice-error { background: #FDECEA; border-color: var(--error); color: var(--error); }

.hero { padding: 72px 0 64px; text-align: center; }
.hero h1 { font-size: 34px; line-height: 1.5; font-weight: 700; }
.hero p { margin: 20px auto 32px; max-width: 520px; color: var(--muted); }

.sec-title { font-size: 24px; font-weight: 700; margin-bottom: 24px; }
.page-title { font-size: 26px; font-weight: 700; margin-bottom: 24px; line-height: 1.5; }
section { padding: 48px 0; }
.how { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 24px 20px; }
.step .num {
  display: inline-flex; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); font-weight: 700; align-items: center; justify-content: center; margin-bottom: 12px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; }
.product h3 { font-size: 17px; line-height: 1.6; margin-bottom: 8px; }
.product-img { border-radius: 6px; margin-bottom: 16px; aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.product-wide { display: grid; grid-template-columns: 1fr; gap: 20px; }
.product-wide:has(.product-img) { grid-template-columns: 280px 1fr; }
.price { font-size: 22px; font-weight: 700; }
.price small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.note { font-size: 14px; color: var(--muted); margin-top: 6px; }
.qty-row { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; font-weight: 500; }
.qty { font-size: 17px; padding: 8px 12px; min-width: 88px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-family: inherit; }

.tier { border-collapse: collapse; margin: 16px 0 4px; width: 100%; max-width: 420px; }
.tier th, .tier td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; font-size: 15px; }
.tier th { background: var(--bg); font-weight: 500; }

.routes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.route { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; cursor: pointer; font-weight: 500; }
.route input { width: 20px; height: 20px; accent-color: var(--accent-dark); }
.route small { font-weight: 400; color: var(--muted); }

.summary { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; margin: 24px 0 16px; }
.summary .row { display: flex; justify-content: space-between; padding: 6px 0; }
.summary .total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 20px; font-weight: 700; }

.btn-main {
  display: inline-block; background: var(--accent); color: var(--text); font-weight: 700; font-size: 17px;
  padding: 14px 32px; border-radius: 8px; border: none; text-decoration: none; cursor: pointer; font-family: inherit;
}
.btn-main:hover { background: var(--accent-dark); }
.btn-main:disabled { opacity: .6; cursor: default; }
.btn-block { display: block; width: 100%; }
.btn-sub { display: inline-block; border: 1px solid var(--text); padding: 10px 24px; border-radius: 8px; text-decoration: none; font-weight: 500; }
.error { color: var(--error); font-weight: 500; margin-bottom: 12px; }

.law { border-collapse: collapse; width: 100%; }
.law th, .law td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; font-size: 15px; }
.law th { background: var(--panel); width: 34%; font-weight: 500; }
.law td { background: #fff; }

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--muted); }

/* 注文管理 */
.admin main { padding-top: 24px; padding-bottom: 64px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; }
.tab { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--panel); font-size: 15px; }
.tab.on { background: var(--text); color: #fff; border-color: var(--text); }
.empty { color: var(--muted); }
.order-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; margin-bottom: 14px; }
.order-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: baseline; margin-bottom: 8px; }
.order-head strong { font-size: 18px; }
.order-head span { color: var(--muted); font-size: 14px; }
.order-items { list-style: none; margin: 4px 0 8px; }
.order-amount { font-size: 14px; color: var(--muted); }
.order-addr { margin: 10px 0 14px; padding: 10px 14px; background: var(--bg); border-radius: 6px; font-size: 15px; }

@media (max-width: 760px) {
  .hero h1 { font-size: 26px; }
  .steps, .grid, .routes { grid-template-columns: 1fr; }
  .product-wide:has(.product-img) { grid-template-columns: 1fr; }
}
