/* =========================================================
   合同会社かねしん  スタイルシート
   あたたかい・ナチュラルな雰囲気。編集しやすいように
   色や余白の数値は :root にまとめています。
   ========================================================= */

/* 日本語を文節の切れ目で改行する。Chrome以外では無視されるだけなので安全 */
body { word-break: auto-phrase; }

/* ---- 色・余白の設定（ここを変えると全体の印象が変わります） ---- */
:root {
  --color-bg: #fbf7ef;          /* 背景：あたたかいクリーム色 */
  --color-bg-alt: #f2ebdd;      /* 交互に使う背景色 */
  --color-text: #3d3a33;        /* 本文の文字色 */
  --color-text-light: #6f6a5f;  /* 補助的な文字色 */
  --color-primary: #5c7a3d;     /* メインの緑 */
  --color-primary-dark: #47612e;/* 濃い緑（ホバー時など） */
  --color-accent: #c08a4a;      /* 差し色の茶色 */
  --color-white: #ffffff;
  --color-border: #e0d7c4;

  --max-width: 1080px;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(74, 62, 40, 0.10);
}

/* ---- 基本設定 ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-primary-dark); }

/* ---- 共通レイアウト ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow { max-width: 760px; }

.section { padding: 72px 0; }
.section-alt { background: var(--color-bg-alt); }

.section-label {
  color: var(--color-accent);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  margin-bottom: 8px;
}

.center { text-align: center; }
.section-label.center { text-align: center; }

/* 見出し */
h1, h2, h3 { line-height: 1.5; font-weight: 700; }

h2 {
  font-size: 1.6rem;
  color: var(--color-primary-dark);
  margin-bottom: 20px;
}

h3 {
  font-size: 1.15rem;
  color: var(--color-text);
  margin-bottom: 10px;
}

.section p { margin-bottom: 16px; }
.section p:last-child { margin-bottom: 0; }

/* ---- ボタン ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s, color 0.2s;
}

.btn .icon { width: 20px; height: 20px; }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.8);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.15); }

.btn-large { padding: 16px 36px; font-size: 1.05rem; }

/* =========================================================
   ヘッダー（追従ナビ）
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 239, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  text-decoration: none;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-list a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-list a:hover { color: var(--color-primary); }

.nav-cta {
  background: var(--color-primary);
  color: var(--color-white) !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--color-primary-dark); }

/* スマホ用メニューボタン（普段は隠す） */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle-bar {
  width: 26px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.2s, opacity 0.2s;
}

/* =========================================================
   セクション1：ヒーロー
   ========================================================= */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;      /* 縦長の写真でも間延びしないように */
  max-height: 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(45, 40, 28, 0.72), rgba(45, 40, 28, 0.35));
}

.hero-content {
  position: relative;
  color: var(--color-white);
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-lead {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 2.1rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-text {
  font-size: 1.05rem;
  max-width: 32em;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* =========================================================
   セクション2・4：写真＋文章の横並び
   ========================================================= */
.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.media-row-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

/* セクション4は写真を右側に置く */
.media-row-reverse .media-row-image { order: 2; }

.info-line {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.icon-inline {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--color-primary);
}

/* =========================================================
   セクション3：こだわり（3項目カード）
   ========================================================= */
.feature-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 36px 0 40px;
}

.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  margin-bottom: 16px;
}
.feature-icon svg { width: 30px; height: 30px; }

.feature-card p { color: var(--color-text-light); font-size: 0.95rem; }

.commitment-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

/* =========================================================
   セクション5：よくある質問（アコーディオン）
   ========================================================= */
.faq-list {
  margin: 32px 0 48px;
  border-top: 1px solid var(--color-border);
}

.faq-item { border-bottom: 1px solid var(--color-border); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 20px 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
  line-height: 1.6;
}

.faq-mark {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-primary);
  transition: transform 0.25s;
}
.faq-question[aria-expanded="true"] .faq-mark { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p {
  padding: 0 4px 20px;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ---- お問い合わせボックス ---- */
.contact-box {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 44px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.contact-box h2 { color: var(--color-white); }
.contact-box p { margin-bottom: 24px; }
.contact-box .btn-primary {
  background: var(--color-white);
  color: var(--color-primary-dark);
}
.contact-box .btn-primary:hover { background: var(--color-bg); }

/* ---- 会社概要 ---- */
.company-info { margin-top: 56px; }

.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.company-table th,
.company-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
  vertical-align: top;
}
.company-table tr:last-child th,
.company-table tr:last-child td { border-bottom: none; }
.company-table th {
  width: 34%;
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-weight: 700;
}

/* =========================================================
   フッター
   ========================================================= */
.footer {
  background: #3d3a33;
  color: #e9e3d5;
  text-align: center;
  padding: 40px 0;
}
.footer-name { font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.footer-place {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.footer-place .icon-inline { color: #b9c9a3; margin-top: 0; }
.footer-copy { font-size: 0.82rem; color: #a29c8c; }

/* =========================================================
   スマートフォン対応（横幅820px以下）
   縦一列の並び順：ヘッダー → ヒーロー → 私たちについて
   → こだわり → 購入方法 → よくある質問／会社概要 → フッター
   ========================================================= */
@media (max-width: 820px) {

  h2 { font-size: 1.4rem; }
  .section { padding: 56px 0; }

  /* ナビをたたむ */
  .nav-toggle { display: flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav.is-open { max-height: 380px; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
  }
  .nav-list li { border-bottom: 1px solid var(--color-border); }
  .nav-list li:last-child { border-bottom: none; }
  .nav-list a { display: block; padding: 14px 0; }
  .nav-cta {
    text-align: center;
    margin-top: 12px;
    padding: 12px 18px;
  }

  /* ヒーロー：写真 → 見出し → 文 → ボタンの順で縦積み */
  .hero { min-height: 0; display: block; }
  .hero-image { position: relative; height: 240px; width: 100%; }
  .hero-overlay { display: none; } /* スマホでは文章側に背景色を敷くので不要 */
  .hero-content {
    position: relative;
    background: var(--color-primary-dark);
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .hero-title { font-size: 1.7rem; }
  .hero-buttons .btn { flex: 1; justify-content: center; }

  /* 横並びを縦積みに */
  .media-row { grid-template-columns: 1fr; gap: 24px; }
  .media-row-reverse .media-row-image { order: 0; }
  .media-row-image img { max-height: 300px; }

  .feature-grid { grid-template-columns: 1fr; gap: 16px; margin: 28px 0 32px; }
  .feature-card { padding: 26px 20px; }

  .contact-box { padding: 36px 20px; }

  .company-table th { width: 40%; }
}

/* さらに狭い画面 */
@media (max-width: 400px) {
  body { font-size: 15px; }
  .hero-title { font-size: 1.5rem; }
  .hero-buttons { flex-direction: column; }
}
