/* ===== Design tokens(Softr 版 burug.co の配色・書体を踏襲) ===== */
:root {
  --bg: #ffffff;
  --bg-grey: #f2f2f2;
  --ink: #333333;
  --ink-soft: #7f7f7f;
  --line: #e6e6e6;
  --green: #00730a;
  --green-ink: #ffffff;
  --danger: #f73730;
  --font: "Noto Sans JP", "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1110px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { font-weight: 400; margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: #fff; padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; z-index: 100; }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.container-narrow { max-width: 540px; }
.text-center { text-align: center; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  padding: 12px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { width: 80px; height: auto; }
.nav { display: flex; gap: 32px; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.nav a { transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav-toggle {
  display: none; width: 40px; height: 40px; padding: 8px; border: 0; background: none; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink-soft); border-radius: 2px; transition: transform .2s, opacity .2s; }

/* ===== Hero ===== */
.hero {
  background: var(--bg) url("/assets/hero-bg.jpg") no-repeat center bottom / cover;
  padding: 192px 0 0;
  min-height: 920px;
}
.hero-inner { max-width: 730px; text-align: center; }
.hero-title { font-size: 30px; font-weight: 400; color: var(--ink-soft); margin: 0 0 16px; }
.hero-lead { font-size: 16px; font-weight: 300; color: var(--ink-soft); margin: 0 0 24px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 12px 40px; border-radius: 999px; border: 0;
  background: var(--green); color: var(--green-ink);
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: 0;
  cursor: pointer; transition: filter .2s, transform .1s;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; }
.btn-square { border-radius: 6px; font-size: 14px; font-weight: 300; padding: 12px 24px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn.is-disabled { cursor: default; filter: none; }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-grey { background: var(--bg-grey); }
.section-title { font-size: 24px; font-weight: 400; color: var(--ink-soft); margin: 0 0 8px; }
.section-lead { font-size: 16px; font-weight: 300; color: var(--ink-soft); max-width: 730px; margin: 0 auto 40px; }
#about .section-lead { margin-bottom: 0; }

/* ===== Products ===== */
.products { display: grid; grid-template-columns: repeat(2, 370px); justify-content: center; gap: 200px; text-align: left; }
.product {
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.product-media { position: relative; height: 384px; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(0,0,0,0); opacity: 0;
  transition: opacity .25s, background-color .25s;
}
.product:hover .product-overlay,
.product:focus-within .product-overlay { opacity: 1; background: rgba(0,0,0,.6); }
.product-btn { border-radius: 8px; padding: 12px 32px; white-space: nowrap; }
.product-body { padding: 24px 24px 28px; }
.product-name { font-size: 14px; color: var(--ink-soft); margin: 0 0 8px; }
.product-title { font-size: 18px; font-weight: 500; color: var(--ink-soft); line-height: 1.5; }
/* ホバーできない端末(スマホ等)では常にボタンを表示 */
@media (hover: none) {
  .product-overlay { opacity: 1; background: rgba(0,0,0,.35); }
}

/* ===== Gallery ===== */
.gallery { columns: 3; column-gap: 15px; }
.gallery-item { display: block; break-inside: avoid; margin: 0 0 15px; overflow: hidden; background: #eee; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
/* 実サイトのメイソンリーと同じ縦横比(幅 360px 基準の高さ) */
.gallery-item { aspect-ratio: 360 / 384; }
.gallery-item.h-xs { aspect-ratio: 360 / 192; }
.gallery-item.h-s  { aspect-ratio: 360 / 256; }
.gallery-item.h-l  { aspect-ratio: 360 / 448; }
.gallery-item.h-xl { aspect-ratio: 360 / 576; }
.gallery-item:hover img { transform: scale(1.03); }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.85);
  display: grid; place-items: center; padding: 48px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 96px); box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 40px; line-height: 1; padding: 12px; opacity: .8;
}
.lightbox button:hover { opacity: 1; }
.lightbox-close { top: 12px; right: 16px; }
.lightbox-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ===== Form ===== */
.form { display: grid; gap: 20px; text-align: left; }
.field label { display: block; font-size: 12px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.req { color: var(--danger); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 14px; color: var(--ink);
  padding: 8px 12px; background: #fff; border: 1px solid #c4c4c4; border-radius: 4px;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #9e9e9e; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 2px rgba(0,115,10,.15); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #757575; pointer-events: none; }
.input-icon input { padding-left: 38px; }
.error { margin: 6px 0 0; font-size: 12px; color: var(--danger); }
.error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: 14px; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--danger); }
.form-status.is-success { color: var(--green); text-align: center; }
.form.is-sent .field, .form.is-sent button { display: none; }
.form.is-sent .form-secure, .form.is-sent .form-note { display: none; }
.form-secure { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 13px; line-height: 1.6; color: var(--green); }
.form-secure svg { flex: none; margin-top: 3px; }
.form-secure[hidden], .form-receipt[hidden] { display: none; }
.form-receipt { border: 1px solid currentColor; border-radius: 10px; padding: 18px 20px; font-size: 14px; line-height: 1.7; text-align: left; }
.form-receipt p { margin: 0 0 10px; }
.form-receipt p:last-child { margin-bottom: 0; }
.form-receipt-note { font-size: 12.5px; opacity: 0.8; }

/* ===== Footer ===== */
.site-footer { padding: 96px 0 64px; color: var(--ink-soft); font-size: 14px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand img { width: 160px; height: auto; }
.footer-nav { display: flex; gap: 32px; font-size: 16px; }
.footer-nav a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 40px; }
.footer-copy { margin: 0 0 24px; }
.footer-info { margin: 0; line-height: 1.8; }

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .products { grid-template-columns: minmax(0, 370px); gap: 72px; }
  .gallery { columns: 2; }
}
@media (max-width: 767px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: var(--bg); border-top: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav a { padding: 12px 0; }
  .site-header.is-open .nav { display: flex; }
  .site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  .hero { padding-top: 96px; min-height: 620px; }
  .hero-title { font-size: 26px; }
  .section { padding: 64px 0; }
  .product-media { height: 280px; }
  .product-body { padding: 20px 16px 24px; }
  .product-btn { padding: 12px 20px; font-size: 14px; }
  .lightbox { padding: 16px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-nav { gap: 20px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .gallery-item img { transition: none; } }

/* ===== 法務ページ(プライバシーポリシー) ===== */
.form-note { font-size: 13px; color: var(--ink-soft); margin: 0 0 12px; }
.form-note a { color: var(--green); text-decoration: underline; }
.legal-body { max-width: 760px; }
.legal-title { font-size: 28px; font-weight: 400; color: var(--ink); margin: 0 0 28px; }
.legal h2 { font-size: 18px; font-weight: 500; color: var(--ink); margin: 34px 0 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal p, .legal li { font-size: 15px; line-height: 1.9; color: var(--ink); }
.legal p { margin: 0 0 14px; }
.legal ol { margin: 0 0 14px; padding-left: 1.6em; }
.legal li { margin-bottom: 4px; }
.legal a { color: var(--green); text-decoration: underline; word-break: break-all; }
.legal-stamp { color: var(--ink-soft); font-size: 14px; margin-top: 40px; }
.legal-end { text-align: right; }
