/* ==========================================================
   わらむ 藁通販LP スタイルシート
   方針：シンプル・自然・日本的・職人品質・信頼感
   JSは使わず、CSSのみでナビ開閉／アコーディオンを実現し、
   表示速度と保守性を優先しています。
   ========================================================== */

:root {
  --color-bg: #faf6ec;
  --color-bg-alt: #f2e9d6;
  --color-surface: #ffffff;
  --color-text: #2f2a20;
  --color-text-light: #6b6252;
  --color-line: #e2d6b8;
  --color-straw: #b8842c;
  --color-straw-dark: #8f6620;
  --color-accent: #9c3b2e;
  --color-accent-dark: #7c2e24;
  --font-serif: "Noto Serif JP", serif;
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --radius: 6px;
  --max-width: 1080px;
  --header-height: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 12px); }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.5;
  margin: 0 0 16px;
}

section { padding: 64px 0; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  white-space: nowrap;
  min-height: 48px;
}

.btn-primary {
  background: var(--color-straw);
  color: #fff;
}
.btn-primary:hover { background: var(--color-straw-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--color-straw);
  color: var(--color-straw-dark);
}
.btn-outline:hover { background: var(--color-bg-alt); }

.btn-accent {
  background: var(--color-accent);
  color: #fff;
}
.btn-accent:hover { background: var(--color-accent-dark); }

.btn-buy {
  background: var(--color-text);
  color: #fff;
  width: 100%;
  margin-top: 12px;
}
.btn-buy:hover { background: var(--color-straw-dark); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 236, 0.96);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(4px);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-straw-dark);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.logo-sub {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--color-text-light);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9rem;
}

.nav-cta {
  background: var(--color-straw);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 700;
}
.nav-cta:hover { background: var(--color-straw-dark); }

.nav-toggle-input,
.nav-toggle-btn { display: none; }

/* ---------- ヒーロー ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--color-bg-alt);
}

.hero-media {
  min-height: 320px;
  background: linear-gradient(160deg, #d9c48a 0%, #b8842c 100%);
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.hero-content {
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-eyebrow {
  color: var(--color-straw-dark);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.hero-content h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 20px;
}

.hero-lead {
  color: var(--color-text-light);
  margin-bottom: 28px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-badges li {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* ---------- 共感セクション ---------- */
.empathy { background: var(--color-surface); }
.empathy h2 { text-align: center; margin-bottom: 32px; }

.empathy-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.empathy-grid li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.empathy-grid .ico {
  color: var(--color-straw);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ---------- セクション共通見出し ---------- */
.section-eyebrow {
  color: var(--color-straw-dark);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

/* ---------- 選ばれる理由 ---------- */
.reason {
  background-color: var(--color-bg);
  background-image: url("https://waramu.jp/waramu-wp/wp-content/uploads/2023/03/backgroud-washi.png");
  background-repeat: repeat;
  background-size: 480px;
}
.reason-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.reason-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  position: relative;
}
.reason-mark {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-straw);
  border: 1px solid var(--color-straw);
  width: 32px;
  height: 32px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  margin-bottom: 14px;
}
.reason-card h3 {
  font-size: 1.05rem;
  color: var(--color-straw-dark);
}
.reason-card p {
  color: var(--color-text-light);
  margin: 0;
}

.clients {
  margin-top: 40px;
  border-top: 1px solid var(--color-line);
  padding-top: 28px;
}
.clients-label {
  font-weight: 700;
  margin-bottom: 12px;
}
.clients-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: var(--color-text-light);
}
.clients-list li::before {
  content: "・";
  color: var(--color-straw);
}
.clients-note {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* ---------- 比較テーブル ---------- */
.types { background: var(--color-surface); }
.table-wrap { overflow-x: auto; margin-top: 24px; }

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.compare-table th, .compare-table td,
.guide-table th, .guide-table td {
  border: 1px solid var(--color-line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}
.compare-table thead th, .guide-table thead th {
  background: var(--color-bg-alt);
  font-family: var(--font-serif);
}
.compare-table tbody th {
  background: var(--color-bg);
  white-space: nowrap;
  font-weight: 700;
}

.types-note {
  margin-top: 16px;
  color: var(--color-text-light);
  font-size: 0.9rem;
}
.types-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0 8px;
}
.types-photos figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 16px;
}
.types-photos img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  display: block;
}
.types-photos figcaption {
  text-align: center;
  margin-top: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-straw-dark);
}

/* ---------- 商品ラインナップ ---------- */
.lineup-lead {
  color: var(--color-text-light);
  margin-bottom: 8px;
}
.lineup-subttl {
  margin-top: 40px;
  font-size: 1.1rem;
  border-left: 4px solid var(--color-straw);
  padding-left: 12px;
}

.pickup-note {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-straw);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 8px;
}
.pickup-note p {
  margin: 0;
  color: var(--color-text);
  font-size: 0.95rem;
}
.pickup-note strong {
  color: var(--color-straw-dark);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.price-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.price-card h4 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-straw-dark);
  margin: 0 0 8px;
}
.price span {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-light);
}
.price-desc {
  color: var(--color-text-light);
  font-size: 0.85rem;
  min-height: 40px;
}
.price-card-wide {
  grid-column: 1 / -1;
  text-align: left;
}
.price-desc-wide { min-height: auto; }

.bulk-cta {
  margin-top: 40px;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.bulk-cta h3 { color: #fff; margin-bottom: 10px; }
.bulk-cta p { margin-bottom: 20px; opacity: 0.95; }
.bulk-cta .btn-accent {
  background: #fff;
  color: var(--color-accent-dark);
  white-space: normal;
  max-width: 100%;
  text-align: center;
}
.bulk-cta .btn-accent:hover { background: var(--color-bg-alt); }

/* ---------- 用途別ガイド ---------- */
.guide { background: var(--color-surface); }
.guide-lead {
  color: var(--color-text-light);
  margin-bottom: 8px;
}

/* ---------- ご注文の流れ ---------- */
.flow-steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: flow;
}
.flow-steps li {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
}
.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-straw);
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}
.flow-steps h3 { font-size: 1rem; margin-bottom: 6px; }
.flow-steps p { color: var(--color-text-light); font-size: 0.9rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { background: var(--color-surface); }
.faq-item {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 12px;
  background: var(--color-bg);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 1.3rem;
  color: var(--color-straw);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin: 12px 0 0;
  color: var(--color-text-light);
}

/* ---------- 会社概要 ---------- */
.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}
.company-table th, .company-table td {
  border-bottom: 1px solid var(--color-line);
  padding: 12px 8px;
  text-align: left;
  vertical-align: top;
}
.company-table th { width: 100px; color: var(--color-text-light); font-weight: 700; }
.company-media img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.company-media iframe {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: var(--radius);
}

/* ---------- お問い合わせ ---------- */
.contact {
  background: var(--color-bg-alt);
  text-align: center;
}
.contact-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* ---------- フッター ---------- */
.site-footer {
  background: #2c2620;
  color: #d8cfbc;
  padding: 48px 0 16px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 8px;
}
.footer-inner p { margin: 4px 0; font-size: 0.9rem; }
.footer-inner a:hover { color: #fff; }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}
.footer-copyright {
  text-align: center;
  font-size: 0.75rem;
  color: #9c937f;
  margin: 32px 0 0;
}

/* ---------- スマホ固定CTAバー ---------- */
.mobile-cta-bar {
  display: none;
}

/* ============ レスポンシブ（スマホ） ============ */
@media (max-width: 860px) {
  section { padding: 44px 0; }

  /* 長い日本語ラベルのボタンが画面幅からはみ出して中央からずれて
     見えるのを防ぐため、スマホ幅ではボタン内の折り返しを許可する */
  .btn {
    white-space: normal;
    max-width: 100%;
    text-align: center;
  }

  .header-inner { height: 56px; }

  .nav-toggle-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 32px;
    height: 32px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }
  .nav-toggle-btn span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-nav a {
    padding: 14px 20px;
    border-bottom: 1px solid var(--color-line);
  }
  .nav-cta { border-radius: 0; text-align: center; }

  .nav-toggle-input:checked ~ .site-nav {
    max-height: 400px;
  }

  .hero {
    grid-template-columns: 1fr;
  }
  .hero-media { min-height: 220px; }
  .hero-media img { min-height: 220px; }
  .hero-content { padding: 32px 20px 40px; }

  .empathy-grid { grid-template-columns: 1fr; }
  .reason-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .flow-steps { grid-template-columns: 1fr 1fr; }
  .company-grid { grid-template-columns: 1fr; }
  .types-photos { grid-template-columns: 1fr 1fr; gap: 10px; }
  .types-photos figure { padding: 8px; }
  .types-photos img { height: 200px; }

  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--color-surface);
    border-top: 1px solid var(--color-line);
    padding: 10px 12px;
    gap: 10px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
  }
  .mobile-cta-bar .btn {
    flex: 1;
    padding: 12px 8px;
    font-size: 0.82rem;
    white-space: normal;
  }

  body { padding-bottom: 72px; }
}

@media (max-width: 480px) {
  .price-grid { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: 1fr; }
  .hero-cta-group { flex-direction: column; }
  .hero-cta-group .btn { width: 100%; }
}
