/* PlugBits kintone 商品ページ 共通スタイル */
:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --line: #e4e9f0;
  --text: #101828;
  --muted: #5c6b84;
  --accent: #2f6fed;
  --ok: #2f7d32;
  --prep-bg: #fff4e5;
  --prep-text: #8a5a00;
  --prep-line: #f3dcae;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
}
main { width: min(calc(100% - 32px), 680px); margin: 0 auto; padding: 40px 0 72px; }
.brand { font-weight: 700; color: var(--muted); font-size: 14px; text-decoration: none; display: inline-block; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: .02em; margin: 28px 0 6px; }
h1 { font-size: clamp(24px, 6vw, 32px); line-height: 1.4; margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 16px; margin: 0 0 24px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin-bottom: 16px; }
.card h2 { font-size: 16px; margin: 0 0 10px; }
.card p { margin: 0; }
.card p + p { margin-top: 10px; }
ol, ul { margin: 0; padding-left: 1.4em; }
li + li { margin-top: 6px; }
code { background: #eef2f7; border-radius: 4px; padding: 1px 6px; font-size: 0.92em; }
a { color: var(--accent); }
.foot { margin-top: 28px; font-size: 13px; color: var(--muted); }

/* 購入・試用パネル */
.buy-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-bottom: 28px; }
.price { font-size: 26px; font-weight: 700; margin: 0 0 14px; }
.price .unit { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.buy-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.buy-button {
  appearance: none;
  border: 1px solid var(--line);
  background: #e9edf3;
  color: #8a94a6;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: not-allowed;
}
.buy-button.is-live {
  display: inline-block;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.buy-button.is-live:hover { filter: brightness(1.08); }
.prep-badge {
  display: inline-block;
  background: var(--prep-bg);
  color: var(--prep-text);
  border: 1px solid var(--prep-line);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
.trial-note { font-size: 14px; color: var(--muted); margin: 0; }

.footer-links { margin-top: 36px; font-size: 13px; color: var(--muted); }
.footer-links ul { list-style: none; padding-left: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links li { margin: 0; }

/* 商品ページのスクリーンショット */
.shot { margin: 18px 0; }
.shot img, .shots img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 6px 18px rgba(16, 24, 40, .06);
}
.shot figcaption, .shots figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 18px 0; }
.shots figure { margin: 0; }

/* v2 商品ページの節の型(残り4本でも同じ class で組む) */

/* フック・サブ */
.hook { margin: 28px 0 10px; }
.sub { color: var(--muted); font-size: 16px; margin: 0 0 24px; }

/* 主役の動画(hero-media) */
.hero-media { margin: 0 0 28px; display: flex; flex-direction: column; gap: 14px; }
.hero-media__item { margin: 0; }
.hero-media__video {
  display: block;
  width: 100%;
  height: auto; /* 縦横比は video の width/height 属性(動画の実寸)に任せる。固定すると左右が切れる */
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 6px 18px rgba(16, 24, 40, .06);
}
.hero-media__item figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.hero-media__item--optional[hidden] { display: none; }

/* こんな場面で(scenes) */
.scenes { margin: 8px 0 28px; }
.scenes__title, .screens__title, .compare__title, .how__title { font-size: 16px; margin: 0 0 14px; }
.scenes__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.scene { margin: 0; }
.scene h3 { font-size: 15px; margin: 0 0 6px; }
.scene p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.scene img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1; /* 3 枚の高さをそろえる(切り抜きはどれも約 3:1) */
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 6px 18px rgba(16, 24, 40, .06);
  cursor: zoom-in;
}
@media (min-width: 640px) {
  .scenes__grid { grid-template-columns: repeat(3, 1fr); }
}

/* 画面(screens) */
.screens { margin: 8px 0 28px; }
.screens__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.screen { margin: 0; }
.screen img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 6px 18px rgba(16, 24, 40, .06);
  cursor: zoom-in;
}
.screen figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
@media (min-width: 640px) {
  .screens__grid { grid-template-columns: repeat(2, 1fr); }
}

/* 標準の表との比較(compare) */
.compare { margin: 8px 0 28px; }
.compare img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 6px 18px rgba(16, 24, 40, .06);
  cursor: zoom-in;
}
.compare__caption { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* 仕組み(how) */
.how { margin: 8px 0 28px; }
.how__list { padding-left: 1.4em; }
.how__list li { color: var(--text); }
.how__list li + li { margin-top: 10px; }

/* lightbox: 見えている画面の中央に出す(iPhone でもページ上部に出ないよう fixed+flex・dvh) */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 2147483647; /* お試しの帯と同じ最大値。DOM で後ろにあるので上に出る */
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lightbox.is-open { display: flex; }
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, .88);
  border: none;
  padding: 0;
  cursor: zoom-out;
}
.lightbox__figure {
  position: relative;
  z-index: 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 96vw;
}
.lightbox__img {
  display: block;
  max-width: 96vw;
  max-height: 80vh;
  max-height: 80dvh;
  width: auto;
  height: auto;
  border-radius: 10px;
  background: #fff;
}
.lightbox__caption {
  margin-top: 10px;
  max-width: 96vw;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lightbox__close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.zoom-trigger {
  display: block;
  width: 100%;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
}
.zoom-trigger img { pointer-events: none; }

/* SIGNPOST の節を目立たせる(kintone の黄色系: 薄い黄の地・左の濃い黄の帯・「SIGNPOST 対応」の札・項目番号は丸い札。
   色だけでロゴや形は使わない。サイト全体は青・墨・黄の 3 色) */
:root { --sp-bg: #fff8db; --sp-line: #f0dc8a; --sp-yellow: #f5c400; --sp-ink: #3d3300; }
.card.signpost {
  background: var(--sp-bg);
  border-color: var(--sp-line);
  border-left: 6px solid var(--sp-yellow);
}
.signpost-badge {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--sp-yellow);
  color: var(--sp-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  vertical-align: middle;
}
.sp-num {
  display: inline-block;
  min-width: 2.6em;
  padding: 1px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--sp-yellow);
  color: var(--sp-ink);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

/* 「設定は N か所だけ」の節(設定画面 1 枚+番号つきの短い説明。画像の番号札は撮影時に描き込む) */
.setup__body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.setup__shot { margin: 0; }
.setup__shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.setup__steps { margin: 0; padding: 0; list-style: none; counter-reset: setup; }
.setup__steps li { counter-increment: setup; position: relative; padding-left: 34px; margin: 0 0 12px; font-size: 14px; }
.setup__steps li::before {
  content: counter(setup);
  position: absolute; left: 0; top: -1px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 700; line-height: 24px; text-align: center;
}
.setup__prep { font-size: 13px; color: var(--muted); margin: 4px 0 10px; }
.setup__more { font-size: 14px; margin: 6px 0 0; }
@media (max-width: 640px) { .setup__body { grid-template-columns: 1fr; } }

/* 一覧ページ(/kintone/) */
.product-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 16px; }
.product-list li + li { margin-top: 0; }
.product-row { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.product-row__thumb { display: block; border-bottom: 1px solid var(--line); background: var(--bg); }
.product-row__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: contain; }
.product-row__body { padding: 16px 20px 18px; }
.product-row__name { font-size: 18px; margin: 0 0 4px; }
.product-row__name a { color: var(--text); text-decoration: none; }
.product-row__line { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.product-row__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }
.product-row__price { font-size: 18px; font-weight: 700; }
.product-row__price .unit { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.product-row__more { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 18px; border-radius: 10px; white-space: nowrap; }
.product-row__more:hover { filter: brightness(1.08); }

/* 請求書払いの 1 行(一覧・商品ページ) */
.invoice-line { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.buy-panel .invoice-line { margin: 8px 0 0; }
