/*
 * m-woodengineer.com（薪販売）共通スタイル
 * 美山WEデザイン基準（/stove-lp/）に合わせる：深緑＋白／本文17px・注記16px・下限14px／小さい角丸／影なし
 * 読み手は老眼の出ている年齢の方が多い＝文字を小さくしない
 */
:root {
    --green: #2f4a3a;      /* 基調の深緑 */
    --green-d: #233a2d;
    --green-l: #eef3ef;    /* 薄い緑の地 */
    --ink: #222;
    --sub: #555;
    --line: #d9e0db;
    --bg: #fff;
    --sold: #9a3b2e;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
    font-size: 17px; line-height: 1.85;
}
img { max-width: 100%; height: auto; vertical-align: bottom; }
a { color: var(--green); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ヘッダー */
.hd { border-bottom: 1px solid var(--line); }
.hd__in { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.logo { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.3; }
.logo__sub { font-size: 14px; color: var(--sub); }
.logo__name { font-size: 24px; font-weight: 700; color: var(--green); letter-spacing: .04em; }
.hd__tel { text-decoration: none; font-weight: 700; font-size: 20px; color: var(--green); text-align: right; line-height: 1.3; }
.hd__tel span { display: block; font-size: 14px; font-weight: 400; color: var(--sub); }
.gnav { background: var(--green); }
.gnav ul { list-style: none; margin: 0 auto; display: flex; flex-wrap: wrap; }
.gnav a { display: block; color: #fff; text-decoration: none; padding: 12px 16px; font-size: 16px; }
.gnav a:hover, .gnav a[aria-current] { background: var(--green-d); }

/* 見出し・本文 */
.pt { font-size: 30px; line-height: 1.4; margin: 32px 0 16px; color: var(--green); }
/* 上下だけ指定する（.wrap と同じ要素に付けたとき、左右の中央寄せ margin:auto を消さないため） */
.sec { margin-top: 48px; margin-bottom: 48px; }
.sec h2 { font-size: 24px; line-height: 1.4; margin: 0 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--green); color: var(--green); }
.sec h3 { font-size: 19px; margin: 24px 0 8px; }
.lead { font-size: 19px; font-weight: 700; margin: 16px 0; }
.note { font-size: 16px; color: var(--sub); }
.ul, .ol { padding-left: 1.4em; }
.ul li, .ol li { margin: 6px 0; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0; }
.dl dt { font-weight: 700; }
.dl dd { margin: 0; }
.fig { margin: 16px 0; }
.fig figcaption { font-size: 16px; color: var(--sub); margin-top: 6px; }
.pagehead { margin: 0 0 8px; }
.pagehead img { width: 100%; max-width: 700px; border-radius: 4px; }

/* 表（送料）＝スマホは表ごと横に送る */
.tbl-scroll { overflow-x: auto; }
.tbl { border-collapse: collapse; min-width: 640px; width: 100%; font-size: 16px; }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 8px; text-align: center; white-space: nowrap; }
.tbl th { background: var(--green-l); text-align: left; }

/* トップ */
.hero { background: #111; }
.hero .wrap { padding-top: 0; padding-bottom: 24px; }
.hero__img { width: 100%; }
.hero__ttl { color: #fff; font-size: 24px; line-height: 1.5; margin: 20px 0 8px; }
.hero__lead { color: #e6e6e6; margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 20px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; color: var(--ink); background: var(--green-l); }
.tile:hover { border-color: var(--green); }
.tile__k { font-size: 16px; color: var(--sold); font-weight: 700; }
.tile__t { font-size: 20px; font-weight: 700; color: var(--green); line-height: 1.5; }
.tile__s { font-size: 16px; color: var(--sub); }
.minis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mini { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: 10px; position: relative; }
.mini img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 2px; }
.mini__no { position: absolute; top: 0; left: 0; background: var(--green); color: #fff; font-size: 14px; padding: 2px 8px; border-radius: 4px 0 4px 0; }
.mini__name { font-size: 16px; line-height: 1.5; margin-top: 8px; }
.mini__price { font-weight: 700; margin-top: auto; padding-top: 4px; }
.showroom { display: grid; grid-template-columns: 1.1fr 1fr; text-decoration: none; color: #fff; background: var(--green); border-radius: 4px; overflow: hidden; }
.showroom__img { width: 100%; height: 100%; object-fit: cover; }
.showroom__body { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 32px; }
.showroom__t { font-size: 24px; font-weight: 700; line-height: 1.5; }
.showroom__s { font-size: 17px; }
.showroom__p { font-size: 16px; opacity: .9; }
.showroom .btn { align-self: flex-start; }
/* .btn（後ろで定義）より強くするため、.showroom を前に付ける */
.showroom .btn--white { background: #fff; color: var(--green); }
.showroom:hover .btn--white { background: var(--green-l); }
.intro p { margin: 0 0 12px; }

/* 商品 */
.pds { display: flex; flex-direction: column; gap: 24px; }
.pd { display: grid; grid-template-columns: 340px 1fr; gap: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 4px; scroll-margin-top: 16px; }
.pd:target { border-color: var(--green); box-shadow: 0 0 0 2px var(--green) inset; }
.pd__img > img { width: 100%; border-radius: 2px; }
.pd__sub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.pd__sub img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.pd__name { font-size: 21px; line-height: 1.5; margin: 0 0 6px; }
.pd__price { font-size: 22px; font-weight: 700; color: var(--green); margin: 0 0 10px; }
.pd__price--sold { color: var(--sold); }
.pd__exp { margin: 0; }

/* 問い合わせ・ボタン */
.cta { background: var(--green-l); border: 1px solid var(--line); border-radius: 4px; padding: 20px; margin: 32px 0; }
.cta p { margin: 0 0 12px; }
.cta__row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta__note { font-size: 16px; color: var(--sub); margin: 12px 0 0 !important; }
.btn { display: inline-block; background: var(--green); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 24px; border-radius: 4px; font-size: 17px; }
.btn:hover { background: var(--green-d); }
.btn--line { background: #fff; color: var(--green); border: 2px solid var(--green); }
.btn--line:hover { background: var(--green-l); }

.msg { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.msg h3 { margin-top: 0; }
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

/* フッター */
.ft { background: var(--green); color: #fff; margin-top: 64px; padding: 32px 0 16px; }
.ft a { color: #fff; }
.ft__in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ft__name { font-weight: 700; font-size: 19px; margin: 0 0 6px; }
.ft p { margin: 0; }
.ft__nav { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.ft__nav li { margin: 4px 0; font-size: 16px; }
.ft__copy { text-align: center; font-size: 14px; margin: 24px 0 0; opacity: .8; }

/* スマホ */
@media (max-width: 767px) {
    /* 375px幅で店名と電話番号が途中で折り返さないように（折り返すと「ア」「1053」だけが次の行に落ちる） */
    .logo__name { font-size: 18px; white-space: nowrap; }
    .hd__tel { font-size: 17px; white-space: nowrap; }
    .gnav ul { flex-wrap: nowrap; overflow-x: auto; }
    .gnav a { white-space: nowrap; padding: 10px 12px; }
    .pt { font-size: 24px; }
    .sec h2 { font-size: 21px; }
    .hero__ttl { font-size: 20px; }
    .tiles { grid-template-columns: 1fr; }
    .minis { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .pd { grid-template-columns: 1fr; padding: 14px; }
    .msg { grid-template-columns: 1fr; }
    .gal { grid-template-columns: repeat(2, 1fr); }
    .showroom { grid-template-columns: 1fr; }
    .showroom__body { padding: 20px; }
    .showroom__t { font-size: 20px; }
    .ft__nav { columns: 1; }
}

/* 来シーズン薪の在庫状況（お見積りフォーム /form-next/ と連動） */
.stock { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.stock li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.stock__st { font-weight: 700; color: var(--green); white-space: nowrap; }
.stock__st--out { color: var(--sold); }

/* 大口商品の価格（お見積りフォームの表記をそのまま出す：区分1〜4・重さと立米） */
.pd__group { font-size: 16px; color: var(--sub); margin: 0 0 2px; }
.pd__kubun { border-collapse: collapse; margin: 4px 0 6px; font-size: 17px; }
.pd__kubun caption { text-align: left; font-size: 16px; color: var(--sub); padding-bottom: 4px; }
.pd__kubun th { text-align: left; font-weight: 700; padding: 4px 16px 4px 0; white-space: nowrap; color: var(--green); }
.pd__kubun td { padding: 4px 0; font-weight: 700; font-size: 19px; }
.pd__spec { margin: 0 0 10px; font-size: 16px; color: var(--sub); }
