/* 那覇石敢當専門店 — 共通スタイル */
:root {
  --bg: #f6f3ec;
  --surface: #ffffff;
  --stone: #ebe5d8;
  --text: #24231f;
  --muted: #625e55;
  --accent: #2e5d57;
  --accent-dark: #224742;
  --accent-soft: #e2ebe8;
  --red: #a63d2f;
  --line: #ddd6c7;
  --radius: 14px;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --sans: "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { overflow-wrap: anywhere; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.9; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
ul, ol { padding-left: 1.4em; }
:focus-visible { outline: 3px solid #e0a43a; outline-offset: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 243, 236, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; max-width: 1280px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-right: auto; white-space: nowrap; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.brand strong { display: block; font-family: var(--serif); font-size: 1.1rem; letter-spacing: .06em; line-height: 1.3; }
.brand small { display: block; font-size: .7rem; color: var(--muted); line-height: 1.3; }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav ul { display: flex; gap: 4px 16px; list-style: none; padding: 0; }
.site-nav ul a { color: var(--text); text-decoration: none; font-size: .88rem; white-space: nowrap; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: var(--accent); }
.site-nav ul a[aria-current="page"] { font-weight: 700; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { font-size: .85rem; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--text); background: #fff; white-space: nowrap; }
.menu-toggle { display: none; font: inherit; font-size: .85rem; background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; }
@media (max-width: 1240px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; flex-direction: column; align-items: stretch; box-shadow: 0 12px 24px rgba(0,0,0,.06); }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-actions { justify-content: space-between; padding-top: 14px; }
}

/* ---------- buttons ---------- */
.btn { white-space: nowrap; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 13px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; line-height: 1.4; border: 2px solid transparent; transition: background .2s, color .2s; text-align: center; }
.btn .small { font-size: .72rem; font-weight: 500; opacity: .9; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: var(--accent); color: var(--accent); background: #fff; }
.btn-outline:hover { background: var(--accent-soft); }
.btn-light { background: #fff; color: var(--accent-dark); font-size: 1.25rem; letter-spacing: .04em; }
.btn-light:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn-outline-light { border-color: rgba(255,255,255,.8); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-sm { padding: 6px 16px; font-size: .85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- page head & sections ---------- */
.page-head { padding: 64px 0 40px; background:
  linear-gradient(118deg, transparent 40%, rgba(120,110,95,.10) 41%, transparent 43%),
  linear-gradient(162deg, transparent 58%, rgba(120,110,95,.08) 59%, transparent 61%),
  linear-gradient(135deg, #f4f0e7, #e6dfcf); border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--accent); font-size: .78rem; letter-spacing: .28em; font-weight: 700; text-transform: uppercase; }
.page-head h1 { font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: .06em; line-height: 1.4; margin-top: 6px; }
.page-head .lead { color: var(--muted); max-width: 720px; margin-top: 14px; }
.section { padding: 72px 0; }
.section.alt { background: var(--surface); }
.section + .section:not(.alt) { padding-top: 0; }
.sec-title { font-family: var(--serif); font-size: clamp(1.4rem, 4vw, 1.9rem); letter-spacing: .06em; line-height: 1.5; margin-bottom: 20px; }
.sec-title.center, .center { text-align: center; }
h3 { font-size: 1.15rem; line-height: 1.6; margin-bottom: 6px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-family: var(--serif); font-size: clamp(1.35rem, 3.6vw, 1.75rem); letter-spacing: .05em; margin-top: 2.4em; padding-bottom: 8px; border-bottom: 2px solid var(--accent-soft); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }
.muted { color: var(--muted); }
.note { font-size: .9rem; color: var(--muted); }

/* notice box */
.notice { background: var(--surface); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; }
.notice.warn { border-left-color: var(--red); }
.notice strong { display: block; margin-bottom: 4px; }

/* ---------- home hero ---------- */
.hero { position: relative; overflow: hidden; background:
  linear-gradient(115deg, transparent 38%, rgba(130,120,105,.12) 39%, transparent 41%),
  linear-gradient(160deg, transparent 55%, rgba(130,120,105,.10) 56%, transparent 58.5%),
  radial-gradient(ellipse at 15% 25%, #fff 0%, transparent 55%),
  linear-gradient(135deg, #f3efe6, #e3dccb); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; padding: 72px 20px; }
.hero h1 { font-family: var(--serif); font-size: clamp(2rem, 6vw, 3.3rem); line-height: 1.4; letter-spacing: .06em; margin: 12px 0 18px; }
.hero .lead { color: var(--muted); font-size: 1.05rem; max-width: 520px; }
.hero-photo { border-radius: 24px; overflow: hidden; box-shadow: 0 24px 48px rgba(60,50,30,.18); aspect-ratio: 4 / 5; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .hero-inner { grid-template-columns: minmax(0, 1fr); padding: 48px 20px; } .hero-photo { max-width: 360px; } }

.open-banner { background: var(--accent); color: #fff; }
.open-banner .wrap { display: grid; grid-template-columns: auto 1fr; gap: 8px 28px; align-items: center; padding-top: 28px; padding-bottom: 28px; }
.open-banner .tag { font-weight: 800; letter-spacing: .2em; font-size: .8rem; border: 1px solid rgba(255,255,255,.7); padding: 4px 12px; border-radius: 999px; }
.open-banner a { color: #fff; }
.open-banner p { font-size: .95rem; }
.open-banner .big { font-family: var(--serif); font-size: 1.3rem; }
@media (max-width: 640px) { .open-banner .wrap { grid-template-columns: minmax(0, 1fr); } .open-banner .tag { justify-self: start; } }

/* ---------- cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.section.alt .card { background: var(--bg); border-color: transparent; }
.card p { color: var(--muted); font-size: .95rem; }
.link-card { display: block; text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s; }
.link-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(60,50,30,.10); color: var(--text); }
.link-card .en { font-size: .72rem; letter-spacing: .22em; color: var(--accent); font-weight: 700; }
.link-card .more { display: inline-block; margin-top: 10px; color: var(--accent); font-weight: 700; font-size: .9rem; }

/* products / shop */
.product { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.product .photo { aspect-ratio: 4 / 3; background: var(--stone); }
.product .photo img { width: 100%; height: 100%; object-fit: cover; }
.product .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; color: var(--accent); background: var(--accent-soft); padding: 2px 10px; border-radius: 999px; align-self: flex-start; }
.badge.out { color: #fff; background: var(--red); }
.price { font-size: 1.5rem; font-weight: 800; color: var(--text); letter-spacing: .02em; }
.price small { font-size: .8rem; font-weight: 500; color: var(--muted); }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: .9rem; border-top: 1px dashed var(--line); padding-top: 12px; }
.spec dt { color: var(--muted); }
.product .btn-row { margin-top: auto; padding-top: 8px; }
.product .btn { padding: 10px 18px; font-size: .9rem; flex: 1; }

/* tables */
.info-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.info-table th, .info-table td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th { width: 9em; background: var(--stone); font-weight: 600; font-size: .92rem; }
@media (max-width: 560px) { .info-table th, .info-table td { display: block; width: 100%; } .info-table th { padding-bottom: 6px; } .info-table td { padding-top: 6px; } }

/* steps */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 18px 74px; }
.section.alt .steps li { background: var(--bg); border-color: transparent; }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: 18px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; }
.steps strong { display: block; }
.steps span { color: var(--muted); font-size: .93rem; }

.check-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 12px; height: 7px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }

.figure { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.figure figcaption { padding: 12px 16px; font-size: .9rem; color: var(--muted); }
.diagram { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.diagram svg { width: 100%; height: auto; max-height: 360px; }

.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--stone); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* posts (news / works) */
.post-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: grid; grid-template-columns: 7.5em 1fr; gap: 6px 18px; padding: 16px 4px; text-decoration: none; color: var(--text); }
.post-list a:hover .t { color: var(--accent); text-decoration: underline; }
.post-list time { color: var(--muted); font-size: .9rem; }
@media (max-width: 560px) { .post-list a { grid-template-columns: 1fr; gap: 0; } }
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 22px; }
.work-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.work-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(60,50,30,.10); color: var(--text); }
.work-card .photo { aspect-ratio: 4 / 3; background: var(--stone); }
.work-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.work-card .body { padding: 18px 20px; }
.work-card time { font-size: .82rem; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.post-body p + p { margin-top: 1em; }
.post-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 28px 0; }
.post-gallery img { border-radius: var(--radius); width: 100%; }
.post-meta { color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.back-link { display: inline-block; margin-top: 40px; }

/* forms */
.form { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.req { display: inline-block; margin-left: 8px; font-size: .7rem; color: #fff; background: var(--red); padding: 1px 8px; border-radius: 4px; vertical-align: 2px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #c9c1b0; border-radius: 10px; background: #fff; color: var(--text); }
.field textarea { min-height: 170px; resize: vertical; }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form button[type=submit] { font: inherit; cursor: pointer; justify-self: start; }
.form-status { padding: 14px 18px; border-radius: 10px; display: none; }
.form-status.ok { display: block; background: var(--accent-soft); color: var(--accent-dark); }
.form-status.err { display: block; background: #f8e3df; color: var(--red); }

/* ---------- CTA & footer ---------- */
.cta { background: var(--accent); color: #fff; text-align: center; padding: 64px 0; }
.cta h2 { font-family: var(--serif); font-size: clamp(1.35rem, 4vw, 1.9rem); letter-spacing: .05em; }
.cta p { opacity: .9; margin-top: 8px; }
.cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 26px; }
.cta-hours { font-size: .85rem; }
.site-footer { background: #2a2925; color: #d9d4c8; padding: 48px 0 24px; font-size: .9rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
.footer-grid p + p { margin-top: 10px; }
.footer-name { font-weight: 700; color: #fff; font-size: 1rem; }
.footer-links { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.copy { text-align: center; margin-top: 36px; font-size: .8rem; opacity: .7; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
