/* とりあえずAIに動かされてみた — 共通スタイル v2 */
:root {
  --bg: #eef2f6;
  --surface: #ffffff;
  --ink: #1b2533;
  --muted: #5c6878;
  --line: #dbe2ea;
  --brand: #0f4c5c;
  --brand-deep: #0a3540;
  --sticky: #ffcf4a;
  --sticky-ink: #3d2f00;
  --link: #0b6b82;
  --c-start: #2f80ed;
  --c-price: #e8833a;
  --c-usage: #219653;
  --c-compare: #8e44d6;
  --c-log: #0f4c5c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 40, 60, .06), 0 4px 14px rgba(15, 40, 60, .06);
  --max: 1120px;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-head: "Zen Maru Gothic", "Noto Sans JP", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .02em;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--sticky); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ===== ヘッダー ===== */
.site-header { background: #075064; color: #fff; }
.header-inner { display: flex; align-items: center; gap: 16px; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.logo-mark { width: 40px; height: 40px; flex-shrink: 0; }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 19px; line-height: 1.3; }
.logo-text small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 12px; opacity: .8; }
.global-nav { background: var(--brand-deep); }
.global-nav ul { list-style: none; margin: 0 auto; padding: 0 12px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; max-width: var(--max); }
.global-nav ul::-webkit-scrollbar { display: none; }
.global-nav a { display: block; color: #e3eef1; text-decoration: none; font-size: 14px; padding: 10px 12px; white-space: nowrap; border-bottom: 3px solid transparent; }
.global-nav a:hover, .global-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--sticky); }

/* ===== ヒーロー ===== */
.hero { background: #075064; color: #fff; padding: 28px 0 60px; }
.hero-art { margin: 0; }
.hero-art img { width: 100%; height: auto; }
.hero-questions { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 8px; }
.hero-questions .bubble:nth-child(even) { margin-left: 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-family: var(--font-head); font-size: clamp(25px, 3.6vw, 36px); word-break: keep-all; overflow-wrap: anywhere; line-height: 1.45; margin: 0 0 16px; letter-spacing: .03em; }
.hero p { margin: 0 0 22px; color: #d7e8ec; font-size: 15px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hero-badges li { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; font-size: 13px; padding: 4px 12px; }

.bubbles { display: grid; gap: 12px; }
.bubble {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); color: var(--ink); text-decoration: none;
  border-radius: 18px 18px 18px 4px; padding: 12px 16px; box-shadow: 0 6px 18px rgba(0,0,0,.18);
  font-weight: 700; font-size: 15px; line-height: 1.5;
  transition: transform .15s ease;
}
.bubble:nth-child(even) { margin-left: 32px; border-radius: 18px 18px 4px 18px; }
.bubble:hover { transform: translateY(-2px); }
.bubble .dot { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; color: #fff; font-size: 14px; }
.bubble .go { margin-left: auto; color: var(--muted); font-weight: 400; font-size: 13px; white-space: nowrap; }

/* ===== 本体レイアウト ===== */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; margin-top: -28px; padding-bottom: 48px; }
.layout.single { margin-top: 28px; }
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.panel + .panel { margin-top: 24px; }

.sec-title { font-family: var(--font-head); font-size: 21px; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.sec-title::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: var(--brand); }

.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cat-card { position: relative; display: block; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: var(--ink); text-decoration: none; background: var(--surface); }
.eyecatch { aspect-ratio: 16 / 7; display: flex; align-items: center; gap: 14px; padding: 0 20px; color: #fff; }
.eyecatch svg { width: 44px; height: 44px; flex-shrink: 0; }
.eyecatch span { font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1.35; }
.cat-body { padding: 12px 16px 16px; }
.cat-body p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.7; }
.soon { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.35); color: #fff; font-size: 12px; padding: 1px 10px; border-radius: 999px; }
.is-start .eyecatch { background: var(--c-start); }
.is-price .eyecatch { background: var(--c-price); }
.is-usage .eyecatch { background: var(--c-usage); }
.is-compare .eyecatch { background: var(--c-compare); }
.is-log .eyecatch { background: var(--c-log); }

.post-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; color: var(--ink); text-decoration: none; padding: 14px 0; border-top: 1px solid var(--line); }
.post-card:first-of-type { border-top: 0; padding-top: 0; }
.post-card .eyecatch { aspect-ratio: 16 / 10; border-radius: 10px; padding: 0 14px; gap: 10px; }
.post-card .eyecatch svg { width: 32px; height: 32px; }
.post-card .eyecatch span { font-size: 15px; }
.post-card h3 { font-size: 17px; line-height: 1.55; margin: 2px 0 6px; }
.post-card:hover h3 { color: var(--link); }
.meta { font-size: 13px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; border-radius: 4px; padding: 0 8px; line-height: 1.8; }
.tag.is-log { background: var(--c-log); }

.sticky {
  background: var(--sticky); color: var(--sticky-ink); border-radius: 4px 4px 4px 22px;
  padding: 18px 20px 20px; box-shadow: 0 6px 16px rgba(120, 90, 0, .18); transform: rotate(-1deg);
}
.sticky .label { font-size: 12px; font-weight: 700; letter-spacing: .08em; opacity: .75; margin: 0 0 4px; }
.sticky h3 { font-family: var(--font-head); font-size: 18px; line-height: 1.5; margin: 0 0 8px; }
.sticky p { margin: 0 0 10px; font-size: 14px; line-height: 1.75; }
.sticky p:last-child { margin-bottom: 0; }
.sticky a { color: var(--sticky-ink); font-weight: 700; }

.side .panel { padding: 20px; }
.profile { text-align: center; }
.avatar { width: 84px; height: 84px; margin: 0 auto 10px; }
.profile h3 { font-family: var(--font-head); font-size: 17px; margin: 0 0 6px; }
.profile p { font-size: 14px; color: var(--muted); text-align: left; margin: 0 0 12px; line-height: 1.75; }
.profile .more { font-size: 14px; }
.side-title { font-family: var(--font-head); font-size: 16px; margin: 0 0 8px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li + li { border-top: 1px dashed var(--line); }
.side-list a, .side-list span.row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; color: var(--ink); text-decoration: none; font-size: 15px; }
.side-list .sw { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.side-list .cnt { margin-left: auto; color: var(--muted); font-size: 12px; }

/* ===== 記事ページ ===== */
.breadcrumb { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.breadcrumb a { color: var(--muted); }
.article-head .eyecatch { aspect-ratio: auto; min-height: 150px; border-radius: 12px; margin: 0 0 20px; padding: 24px; }
.article-head .eyecatch span { font-size: clamp(19px, 3vw, 26px); }
.article-head h1 { font-family: var(--font-head); font-size: clamp(23px, 3.4vw, 30px); line-height: 1.5; margin: 6px 0 10px; }
.article-head .meta { margin-bottom: 26px; }
.article-body { font-size: 16.5px; }
.article-body h2 { font-family: var(--font-head); font-size: 21px; line-height: 1.5; margin: 44px 0 16px; padding: 10px 16px; background: #eaf3f5; border-left: 6px solid var(--brand); border-radius: 0 8px 8px 0; }
.article-body h3 { font-size: 18px; margin: 28px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 1.4em; }
.article-body li { margin-bottom: 6px; }

.summary { border: 2px solid var(--brand); border-radius: 12px; padding: 0 18px 14px; margin: 0 0 28px; }
.summary .summary-title { display: inline-block; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; padding: 2px 14px; border-radius: 0 0 8px 8px; margin: 0 0 10px; }
.summary ul { margin: 0; }

.log { margin: 0 0 20px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.log-row { padding: 14px 18px; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: start; }
.log-row p { margin: 0; }
.log-row.me { background: #f7f9fb; }
.log-row.ai { background: #fffbea; border-top: 1px solid var(--line); }
.who { font-size: 12px; font-weight: 700; border-radius: 999px; text-align: center; padding: 2px 0; line-height: 1.8; }
.me .who { background: var(--brand); color: #fff; }
.ai .who { background: var(--sticky); color: var(--sticky-ink); }

.table-scroll { overflow-x: auto; margin: 0 0 22px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; line-height: 1.7; }
th { background: #eaf3f5; white-space: nowrap; }

.author-box { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; background: #f7f9fb; border-radius: 12px; padding: 16px; margin-top: 36px; }
.author-box .avatar { width: 64px; height: 64px; margin: 0; }
.author-box p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.7; }
.author-box strong { color: var(--ink); }

.note { font-size: 14px; color: var(--muted); }

/* ===== フッター ===== */
.site-footer { background: var(--brand-deep); color: #c9dbe0; font-size: 14px; padding: 28px 0 36px; }
.site-footer a { color: #e3eef1; margin-right: 18px; }
.site-footer p { margin: 12px 0 0; font-size: 13px; opacity: .8; }

/* ===== スマホ ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-art { max-width: 520px; margin: 0 auto; }
  .hero-questions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .logo-text { font-size: 17px; }
  .logo-mark { width: 34px; height: 34px; }
  .hero { padding: 28px 0 52px; }
  .hero-questions { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
  .cat-grid { grid-template-columns: 1fr; gap: 12px; }
  .eyecatch { aspect-ratio: 16 / 6; }
  .post-card { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; }
  .post-card .eyecatch { aspect-ratio: 1 / 1; padding: 0; justify-content: center; }
  .post-card .eyecatch span { display: none; }
  .post-card h3 { font-size: 15.5px; }
  .log-row { grid-template-columns: 1fr; gap: 6px; }
  .log-row .who { justify-self: start; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .sticky { transform: none; }
}

/* ===== 画像 ===== */
.avatar { border-radius: 50%; object-fit: cover; }
.thumb { border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; background: #075064; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
.hero-eyecatch { position: relative; margin: 0 0 20px; border-radius: 12px; overflow: hidden; }
.hero-eyecatch img { width: 100%; height: auto; }
.hero-eyecatch figcaption { position: absolute; left: 5%; top: 50%; transform: translateY(-50%); width: 46%; color: #fff; }
.hero-eyecatch .tag { background: var(--sticky); color: var(--sticky-ink); margin-bottom: 8px; }
.ec-title { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(16px, 3.2vw, 30px); line-height: 1.45; }
.illust { margin: 0 0 22px; }
.illust img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.illust figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 6px; }
@media (max-width: 560px) { .thumb { aspect-ratio: 1 / 1; } .hero-eyecatch .tag { font-size: 10px; margin-bottom: 4px; } }

.compare { min-width: 680px; }
.compare th:first-child { white-space: nowrap; }
.compare tr:first-child th { text-align: center; }
