/* Yunta Works 商品説明ページの共通デザイン。トップページ（index.html）と同じ色・丸み・ボタン */
:root {
  --accent: #4a90c8;
  --accent-soft: #eaf3fa;
  --accent-dark: #2f6fa3;
  --ink: #3a4250;
  --sub: #56606d;
  --line: #e6ebf0;
  --bg: #f6f8fa;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 18px; /* 本文の基本。老眼でも読みやすいよう大きめ（ブラウザの標準16pxの約1.15倍） */
  line-height: 1.9;
  letter-spacing: 0.02em;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 22px; }

/* 上の帯 */
header { background: #fff; border-bottom: 1px solid var(--line); }
header .wrap { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; }
.brand { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 12px; text-decoration: none; }
.logo { font-size: 25.5px; font-weight: 700; letter-spacing: 0.04em; margin: 0; }
.logo span { color: var(--accent); }
.tagline { margin: 0; font-size: 14.5px; color: var(--sub); }
nav { display: flex; gap: 2px 16px; font-size: 15.5px; flex-wrap: wrap; line-height: 1.7; }
nav a { text-decoration: none; color: var(--sub); }
nav a:hover { color: var(--accent-dark); }

/* パンくず */
.crumbs { font-size: 14.5px; color: var(--sub); padding-top: 14px; }
.crumbs a { color: var(--accent-dark); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ページの頭 */
.page-hero { background: linear-gradient(180deg, #d3e6f6 0%, #eef6fc 70%, #fff 100%); } /* 上の青を少し濃く（比嘉さんの希望） */
.page-hero .wrap { padding-top: 34px; padding-bottom: 40px; text-align: center; }
.page-hero .kicker { display: inline-block; font-size: 14.5px; color: var(--accent-dark); background: #fff; border: 1px solid #cfe0ee; border-radius: 999px; padding: 1px 14px; margin-bottom: 10px; }
.page-hero h1 { margin: 0; font-size: clamp(25.5px, 5.3vw, 34.5px); line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.page-hero p { margin: 12px auto 0; max-width: 640px; color: var(--sub); font-size: 17.5px; }
.page-hero .by { font-size: 14.5px; margin-top: 8px; }

main .wrap { padding-top: 32px; padding-bottom: 60px; }
section { background: #fff; border-radius: 18px; padding: 30px 26px; box-shadow: 0 4px 18px rgba(40, 70, 110, 0.06); scroll-margin-top: 16px; }
section + section { margin-top: 24px; }
@media (max-width: 520px) { section { padding: 24px 18px; } }

h2 { font-size: 23px; margin: 0 0 18px; padding: 0 0 12px; border-bottom: 2px dotted #cfe0ee; display: flex; align-items: center; gap: 10px; }
h2::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
h3 { font-size: 19px; margin: 26px 0 10px; padding-left: 10px; border-left: 4px solid #b9d4ea; line-height: 1.6; }
h2 + h3 { margin-top: 4px; }
p { margin: 0 0 10px; }
.small { font-size: 15px; color: var(--sub); }

/* チェックの箇条書き（こんな方に） */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { position: relative; padding: 10px 14px 10px 42px; background: #fbfcfd; border: 1px solid var(--line); border-radius: 12px; font-size: 16.5px; }
.checks li::before { content: "✓"; position: absolute; left: 14px; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; line-height: 20px; text-align: center; font-weight: 700; }

/* 丸印の箇条書き */
.dots { list-style: none; margin: 0 0 10px; padding: 0; }
.dots li { position: relative; padding-left: 18px; margin-bottom: 4px; font-size: 16.5px; }
.dots li::before { content: ""; position: absolute; left: 2px; top: 0.75em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
ol.steps { margin: 0 0 10px; padding-left: 1.4em; font-size: 16.5px; }
ol.steps li { margin-bottom: 4px; }

/* 表 */
.table-wrap { overflow-x: auto; margin: 0 0 12px; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 16px; background: #fff; }
th, td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tr:last-child th, tr:last-child td { border-bottom: none; }
thead th { background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; white-space: nowrap; }
tbody th { background: #fbfcfd; font-weight: 700; white-space: nowrap; }
td.num, th.num { text-align: right; white-space: nowrap; }
table.compare td, table.compare th { min-width: 7em; }
.price { font-weight: 700; color: var(--accent-dark); white-space: nowrap; }

/* 画面の写真 */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin: 0; }
.shots.wide { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.shots figure { margin: 0; text-align: center; }
.shots img, .shots video { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(40, 70, 110, 0.08); background: #fff; }
.shots figcaption { font-size: 14.5px; color: var(--sub); margin-top: 8px; line-height: 1.6; }
@media (max-width: 420px) { .shots { grid-template-columns: repeat(2, 1fr); gap: 10px; } .shots.wide { grid-template-columns: 1fr; } }

/* 例の囲み */
.example { background: #fbfcfd; border: 1px dashed #cfe0ee; border-radius: 14px; padding: 16px 20px; font-size: 16.5px; margin: 0 0 12px; }
.example ol, .example ul { margin: 6px 0 0; padding-left: 1.3em; }
.example .ans { color: var(--accent-dark); font-weight: 700; }

/* お知らせの囲み */
.notice { background: var(--accent-soft); border-radius: 14px; padding: 14px 18px; font-size: 16px; margin: 0 0 12px; }

/* ボタン */
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 18px 0 6px; }
.cta { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; font-size: 17.5px; padding: 11px 26px; border-radius: 999px; box-shadow: 0 4px 0 var(--accent-dark); transition: transform 0.1s, box-shadow 0.1s; text-align: center; }
.cta:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--accent-dark); }
.cta.ghost { background: #fff; color: var(--accent-dark); border: 2px solid var(--accent); box-shadow: 0 4px 0 #b9d4ea; padding: 9px 24px; }
.cta.ghost:hover { box-shadow: 0 2px 0 #b9d4ea; }
.btn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin: 8px 0 14px; }
.btn-grid a { display: block; text-decoration: none; background: #fbfcfd; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 16px; font-weight: 700; color: var(--accent-dark); }
.btn-grid a::after { content: "　›"; }
.btn-grid a:hover { border-color: var(--accent); background: var(--accent-soft); }

/* よくあるご質問（開閉） */
details { border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd; margin-bottom: 10px; }
summary { cursor: pointer; padding: 12px 16px 12px 44px; font-weight: 700; font-size: 16.5px; position: relative; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "Q"; position: absolute; left: 14px; top: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; line-height: 22px; text-align: center; }
details[open] summary { border-bottom: 1px dotted #cfe0ee; }
details .a { padding: 10px 16px 12px 44px; font-size: 16.5px; }

/* 商品カード（一覧ページ） */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
@media (max-width: 420px) { .grid.two { grid-template-columns: 1fr; } }
a.card { display: block; text-decoration: none; }
.card { background: #fbfcfd; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
a.card:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(40, 70, 110, 0.10); transform: translateY(-2px); }
.card h3 { margin: 0 0 4px; padding: 0; border: none; font-size: 18.5px; }
.card p { margin: 0; font-size: 15.5px; color: var(--sub); line-height: 1.8; }
.card .more { display: inline-block; margin-top: 8px; font-size: 15px; font-weight: 700; color: var(--accent-dark); }
.card .more::after { content: "　›"; }

.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }

footer { text-align: center; font-size: 14.5px; color: var(--sub); }
footer .wrap { padding-top: 10px; padding-bottom: 36px; }
footer a { color: var(--sub); }
