/* 廣源良（ヘチマ水）紹介ページ専用のCSS（v7）
   page-loofah.php だけで読み込まれます。style.css のあとに読み込まれます。 */

.lf {
  --lf-ink: #2F4430;      /* 文字 */
  --lf-sub: #5F7560;      /* 補足の文字 */
  --lf-line: #D5E4D1;     /* 線 */
  --lf-accent: #2F7D62;   /* リンク・番号 */
  --lf-deep: #2E4A35;     /* 濃い緑の帯 */
  --lf-snow: #F2F8F0;     /* 薄い緑の帯 */
  --lf-mark: #D5EE8E;     /* マーカー */
  --lf-pad: 2rem;
  display: block; width: 100%; max-width: 100%; overflow-x: clip;
  color: var(--lf-ink); line-break: strict; overflow-wrap: break-word;
}
.lf *, .lf *::before, .lf *::after { box-sizing: border-box; }
.lf img, .lf svg { max-width: 100%; }
.lf p { font-weight: 400; }
.lf a:focus-visible, .lf summary:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

/* マーカー（重要な部分） */
.lf mark { padding: 0 .05em; background: linear-gradient(transparent 62%, var(--lf-mark) 62%); color: inherit; font-weight: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ─── ページの頭 ─── */
.lf .lf-head { position: static; height: auto; z-index: auto; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; box-shadow: none; transform: none; }
.lf-head { padding: calc(64px + 1.6rem) var(--lf-pad) 0; background: var(--white); }
.lf-crumb { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 1240px; margin: 0 auto 1.2rem; font-size: .78rem; color: var(--lf-sub); }
.lf-crumb a { color: var(--lf-sub); text-decoration: none; }
.lf-crumb a:hover { text-decoration: underline; }
.lf-cover { position: relative; max-width: 1240px; margin: 0 auto; padding-bottom: .5rem; }
.lf-hero { position: relative; margin: 0; }
.lf-hero img { display: block; width: 100%; height: min(68vh, 640px); min-height: 380px; object-fit: cover; border-radius: 4px; background: var(--green-mist); }
.lf-vert { position: absolute; right: 2.6rem; top: 2.4rem; writing-mode: vertical-rl; font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif; font-size: clamp(2.4rem, 4.6vw, 3.8rem); font-weight: 600; letter-spacing: .3em; line-height: 1; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.3); pointer-events: none; }
/* 見出しの文字の左端を、本文の左端にそろえる */
.lf-panel { position: relative; z-index: 1; width: min(820px, calc(100% - 2rem)); margin: -9rem 0 0 max(0px, calc((100% - 720px) / 2 - 3rem)); padding: 2.6rem 3rem 2.2rem; background: var(--white); }
.lf-cat { margin-bottom: .9rem; font-size: .82rem; font-weight: 700; letter-spacing: .06em; color: var(--lf-accent); }
.lf-title { font-family: 'Noto Sans JP', sans-serif; font-size: clamp(1.9rem, 3.2vw, 2.5rem); font-weight: 700; line-height: 1.5; letter-spacing: .01em; color: var(--lf-ink); }
.lf-nb { display: inline-block; }
.lf-meta { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin-top: 1.4rem; font-size: .8rem !important; color: var(--lf-sub); }

/* ─── 帯（セクション） ─── */
.lf-band { padding: 4.5rem var(--lf-pad); background: var(--white); scroll-margin-top: 64px; }
.lf-band--snow { background: var(--lf-snow); }
.lf-band--dark { background: var(--lf-deep); color: #fff; }
.lf-col { max-width: 720px; margin: 0 auto; }
.lf-col > p { margin-bottom: 1.3em; font-size: 1.05rem; line-height: 2; }
.lf-col > p:last-child { margin-bottom: 0; }
.lf-lead { font-size: 1.22rem !important; font-weight: 500 !important; line-height: 1.95 !important; }

/* 見出し */
.lf-h2 { margin-bottom: 1.4rem; font-size: clamp(1.45rem, 2.8vw, 1.9rem); font-weight: 700; line-height: 1.5; letter-spacing: .01em; color: inherit; }
.lf-band--dark mark { background: linear-gradient(transparent 62%, rgba(213,238,142,.35) 62%); color: #fff; }
.lf-band--dark p { color: rgba(255,255,255,.9); }

/* 目次 */
.lf-toc { margin-top: 2.4rem; border-top: 1px solid var(--lf-ink); border-bottom: 1px solid var(--lf-ink); }
.lf-toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; list-style: none; cursor: pointer; font-size: .95rem; font-weight: 700; }
.lf-toc summary::-webkit-details-marker { display: none; }
.lf-toc summary::after { content: '+'; font-size: 1.2rem; font-weight: 400; color: var(--lf-sub); }
.lf-toc[open] summary::after { content: '−'; }
.lf-toc ol { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; margin: 0; padding: 0 0 1rem 1.4rem; }
.lf-toc li { padding-left: .2rem; font-size: .95rem; line-height: 1.6; }
.lf-toc li::marker { font-family: 'Inter', sans-serif; font-size: .85rem; color: var(--lf-sub); }
.lf-toc a { display: block; padding: .45rem 0; color: var(--lf-ink); text-decoration: none; }
.lf-toc a:hover { color: var(--lf-accent); text-decoration: underline; }

/* ヘチマ水のとり方の図 */
.lf-how { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0 2.2rem; padding: 1.8rem 1.4rem 1.6rem; background: var(--white); border-radius: 4px; }
.lf-how li { display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.lf-how svg { width: 100%; max-width: 150px; height: auto; overflow: visible; }
.lf-how .ln { stroke: #B9CDB5; stroke-width: 1.5; fill: none; }
.lf-how .st { stroke: #5E8F4E; stroke-width: 2.4; fill: none; stroke-linecap: round; }
.lf-how .lv { fill: #CFE6C8; stroke: #5E8F4E; stroke-width: 1.4; }
.lf-how .cut { stroke: #C0705A; stroke-width: 2; stroke-dasharray: 4 4; fill: none; }
.lf-how .bt { fill: rgba(255,255,255,.85); stroke: #5E8F4E; stroke-width: 1.8; }
.lf-how .wt { fill: #CDE8E0; }
.lf-how .cap { fill: none; stroke: #5E8F4E; stroke-width: 1.4; }
.lf-how .dp { fill: #8CCBB8; }
.lf-how span { margin-top: .8rem; font-size: .9rem; font-weight: 500; line-height: 1.6; }
.lf-how b { display: block; margin-bottom: .2rem; font-family: 'Inter', sans-serif; font-size: .85rem; color: var(--lf-accent); }

/* 基本情報 */
.lf-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.4rem; margin: 2rem 0 0; border-top: 1px solid var(--lf-line); }
.lf-facts > div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--lf-line); }
.lf-facts dt { font-size: .85rem; line-height: 1.7; color: var(--lf-sub); }
.lf-facts dd { font-size: .98rem; font-weight: 500; line-height: 1.7; }
.lf-facts small { display: block; font-size: .78rem; font-weight: 400; color: var(--lf-sub); }

/* 引用 */
.lf-quote { margin: 2.6rem 0; padding: 2rem 0 2rem 1.6rem; border-left: 2px solid rgba(255,255,255,.5); }
.lf-quote p { font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif; font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 600; line-height: 1.75; letter-spacing: .04em; color: #fff !important; text-wrap: balance; }

/* 写真 */
.lf-fig { margin: 2rem 0; }
.lf-fig img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; background: var(--green-mist); }

/* 商品 */
.lf-items { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0 1rem; }
.lf-items li { display: flex; min-width: 0; }
.lf-items a { display: flex; flex-direction: column; width: 100%; padding: 1.4rem 1.2rem 1.2rem; background: var(--white); border: 1px solid var(--lf-line); border-radius: 4px; color: inherit; text-decoration: none; transition: border-color .2s; }
.lf-items a:hover { border-color: var(--lf-accent); }
.lf-item-no { font-family: 'Inter', sans-serif; font-size: .85rem; font-weight: 600; color: var(--lf-sub); }
.lf-items h3 { margin-top: .4rem; font-size: 1.02rem; font-weight: 700; line-height: 1.55; }
.lf-items p { margin-top: .4rem; font-size: .88rem; line-height: 1.75; color: var(--lf-sub); }
.lf-item-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem .8rem; margin-top: auto; padding-top: 1rem; }
.lf-price { font-family: 'Inter', sans-serif; font-size: 1.05rem; font-weight: 600; }
.lf-more { font-size: .82rem; font-weight: 700; color: var(--lf-accent); }

.lf-set { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .2rem 1.6rem; padding: 1.3rem 1.5rem; background: var(--white); border: 1px solid var(--lf-ink); border-radius: 4px; color: inherit; text-decoration: none; transition: background .2s; }
.lf-set:hover { background: var(--lf-snow); }
.lf-set-name { grid-column: 1; font-size: 1.08rem; font-weight: 700; }
.lf-set-sub { grid-column: 1; font-size: .9rem; color: var(--lf-sub); }
.lf-set-price { grid-column: 2; grid-row: 1 / span 2; font-family: 'Inter', sans-serif; font-size: 1.3rem; font-weight: 600; }
.lf-small { margin-top: 1rem !important; font-size: .8rem !important; line-height: 1.8 !important; color: var(--lf-sub); }

/* 使い方 */
.lf-steps { list-style: none; counter-reset: lfs; margin-top: 1.6rem; border-top: 1px solid var(--lf-line); }
.lf-steps li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); counter-increment: lfs; padding: 1.1rem 0; border-bottom: 1px solid var(--lf-line); }
.lf-steps li::before { content: counter(lfs); grid-row: 1 / span 2; font-family: 'Inter', sans-serif; font-size: 1.4rem; font-weight: 600; line-height: 1.2; color: var(--lf-accent); }
.lf-steps b { font-size: 1.05rem; font-weight: 700; line-height: 1.6; }
.lf-steps span { margin-top: .2rem; font-size: .98rem; line-height: 1.85; color: var(--lf-sub); }

/* よくある質問 */
.lf-faq { border-top: 1px solid var(--lf-line); }
.lf-faq details { border-bottom: 1px solid var(--lf-line); }
.lf-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 58px; padding: .8rem 0; list-style: none; cursor: pointer; font-size: 1rem; font-weight: 700; line-height: 1.6; }
.lf-faq summary::-webkit-details-marker { display: none; }
.lf-faq summary::after { content: '+'; flex-shrink: 0; font-size: 1.3rem; font-weight: 400; color: var(--lf-sub); }
.lf-faq details[open] summary::after { content: '−'; }
.lf-faq details p { padding: 0 2rem 1.3rem 0; font-size: .98rem; line-height: 1.9; color: var(--lf-sub); }

/* 購入先 */
.lf-cta-title { margin-bottom: .8rem; font-size: clamp(1.45rem, 2.8vw, 1.9rem); font-weight: 700; line-height: 1.5; color: #fff; }
.lf-cta-btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.lf-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 240px; min-height: 56px; padding: 0 2rem; border: 1px solid #fff; border-radius: 4px; background: #fff; color: var(--lf-deep); font-size: 1rem; font-weight: 700; text-decoration: none; transition: background .2s, color .2s; }
.lf-btn:hover { background: var(--lf-snow); }
.lf-btn--line { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.lf-btn--line:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }

/* ─── タブレット ─── */
@media (max-width: 960px) {
  .lf-panel { width: calc(100% - 4rem); margin: -5rem 0 0; padding: 1.8rem 2rem 1.4rem 0; }
  .lf-cover { padding-bottom: 1rem; }
  .lf-vert { top: 1.4rem; right: 1.4rem; font-size: 2.2rem; }
}

/* ─── スマホ ─── */
@media (max-width: 640px) {
  .lf { --lf-pad: 1.25rem; }
  .lf-head { padding: calc(64px + 1rem) 0 0; }
  .lf-crumb { margin: 0 var(--lf-pad) .9rem; font-size: .75rem; }
  .lf-crumb span[aria-current] { overflow: hidden; max-width: 14em; white-space: nowrap; text-overflow: ellipsis; }
  .lf-hero img { height: auto; min-height: 0; aspect-ratio: 4 / 3; border-radius: 0; }
  .lf-vert { top: 1rem; right: 1rem; font-size: 1.7rem; }
  .lf-panel { width: calc(100% - 2.5rem); margin: -2.6rem 0 0; padding: 1.3rem 1.25rem 1rem; }
  .lf-title { font-size: clamp(1.4rem, 6.4vw, 1.8rem); }
  .lf-meta { margin-top: .9rem; font-size: .75rem !important; }

  .lf-band { padding: 3.2rem var(--lf-pad); }
  .lf-col > p { font-size: 1rem; line-height: 1.95; }
  .lf-lead { font-size: 1.08rem !important; line-height: 1.9 !important; }
  .lf-h2 { margin-bottom: 1.1rem; font-size: 1.38rem; }

  .lf-toc { margin-top: 1.8rem; }
  .lf-toc ol { grid-template-columns: 1fr; }
  .lf-toc a { padding: .6rem 0; }

  .lf-how { gap: .3rem; margin: 1.6rem 0; padding: 1.2rem .5rem 1rem; }
  .lf-how span { margin-top: .4rem; font-size: .78rem; line-height: 1.5; }

  .lf-facts { grid-template-columns: 1fr; }

  .lf-quote { margin: 2rem 0; padding: 1.2rem 0 1.2rem 1.1rem; }
  .lf-quote p { font-size: 1.22rem; }

  /* 写真は画面の端まで */
  .lf-fig { margin: 1.6rem calc(var(--lf-pad) * -1); }
  .lf-fig img { border-radius: 0; }

  .lf-items { grid-template-columns: 1fr; gap: .7rem; margin-top: 1.4rem; }
  .lf-items a { padding: 1.1rem 1.1rem 1rem; }
  .lf-set { grid-template-columns: 1fr; padding: 1.2rem 1.1rem; }
  .lf-set-price { grid-column: 1; grid-row: auto; margin-top: .3rem; font-size: 1.2rem; }

  .lf-steps li { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .lf-steps span { font-size: .95rem; }
  .lf-faq summary { font-size: .97rem; }
  .lf-faq details p { padding-right: 0; font-size: .95rem; }

  .lf-btn { width: 100%; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lf-items a, .lf-set, .lf-btn { transition: none; }
}

/* ─── 原料のヘチマ（台湾緑宝と棚づくり） ─── */
.lf-h3 { margin: 2.4rem 0 1rem; font-size: 1.18rem; font-weight: 700; line-height: 1.6; }
.lf-table-wrap { margin: 1.6rem 0 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lf-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .95rem; line-height: 1.7; }
.lf-table th, .lf-table td { padding: .9rem .9rem; border-bottom: 1px solid var(--lf-line); text-align: left; vertical-align: top; }
.lf-table thead th { border-bottom: 1px solid var(--lf-ink); font-size: .98rem; font-weight: 700; vertical-align: bottom; }
.lf-table thead th small { display: block; font-size: .76rem; font-weight: 400; color: var(--lf-sub); }
.lf-table thead th:last-child { color: var(--lf-accent); }
.lf-table tbody th { width: 6.5em; padding-left: 0; font-size: .88rem; font-weight: 500; color: var(--lf-sub); white-space: nowrap; }
.lf-table td { color: var(--lf-sub); }
.lf-table td:last-child { background: var(--lf-snow); color: var(--lf-ink); font-weight: 500; }
@media (max-width: 640px) {
  .lf-h3 { margin-top: 2rem; font-size: 1.08rem; }
  /* スマホでは、表を縦に積む */
  .lf-table { min-width: 0; }
  .lf-table thead { display: none; }
  .lf-table, .lf-table tbody, .lf-table tr { display: block; }
  .lf-table tr { padding: .9rem 0; border-bottom: 1px solid var(--lf-line); }
  .lf-table tbody th, .lf-table td { display: block; width: auto; padding: 0; border: 0; white-space: normal; }
  .lf-table tbody th { margin-bottom: .4rem; font-weight: 700; color: var(--lf-ink); }
  .lf-table td { position: relative; padding-left: 5.2em; font-size: .92rem; }
  .lf-table td + td { margin-top: .3rem; padding-top: .3rem; padding-bottom: .3rem; border-radius: 2px; }
  .lf-table td:first-of-type::before { content: '地ばい'; position: absolute; left: 0; font-size: .8rem; color: var(--lf-sub); font-weight: 400; }
  .lf-table td:last-child::before { content: '棚づくり'; position: absolute; left: .4em; font-size: .8rem; color: var(--lf-accent); font-weight: 700; }
}
