/* のれん（noren.blog）共通スタイル — トップページ画面案（2026-10-20 OK）に合わせる */
:root {
  --ink: #23262B;
  --body: #4A5059;
  --sub: #5F6670;
  --line: #EEF0F2;
  --line2: #E3E6EA;
  --accent: #3D5A80;
  --tint: #EEF2F7;
  --soft: #F7F8F9;
  --radius-l: 32px;
  --radius-m: 20px;
  --font: "Zen Kaku Gothic New", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic", sans-serif;
  --en: "Outfit", system-ui, sans-serif;
}

/* カテゴリ色（--c：文字・アイコン／--ct：淡い面） */
.c-seo       { --c: #3D5A80; --ct: #EEF2F7; }
.c-ads       { --c: #44694F; --ct: #EEF4EF; }
.c-analytics { --c: #8F5530; --ct: #FBF1EA; }
.c-ai        { --c: #6B5A92; --ct: #F3F0F8; }
.c-tools     { --c: #2A6275; --ct: #EDF5F8; }
.c-career    { --c: #6E5F3C; --ct: #F6F3EC; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.8;
  letter-spacing: 0.02em;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
img, svg { max-width: 100%; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.en { font-family: var(--en); letter-spacing: 0.18em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 16px; z-index: 10; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ヘッダー */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 32px; padding-top: 18px; padding-bottom: 18px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-t { display: flex; flex-direction: column; line-height: 1.2; }
.logo-sub { font-size: 12px; color: var(--sub); letter-spacing: 0.08em; }
.logo-main { font-size: 26px; font-weight: 700; letter-spacing: 0.12em; }
.gnav { display: flex; flex-wrap: wrap; gap: 0 22px; font-size: 15px; font-weight: 500; }
.gnav a { display: inline-flex; align-items: center; min-height: 44px; }
.gnav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }

/* 見出しまわり */
.sec { padding-top: 80px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 28px; }
.sec-head .t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.sec-head h2 { font-size: 26px; font-weight: 700; }
.sec-head .en { font-size: 13px; color: var(--sub); }
.crumb { font-size: 13px; color: var(--sub); padding-top: 24px; }
.crumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumb li + li::before { content: "›"; margin-right: 8px; }
.crumb a { color: var(--sub); text-decoration: underline; text-underline-offset: 3px; }

/* ヒーロー */
.hero { padding-top: 40px; }
.hero-in {
  background: var(--tint); border-radius: var(--radius-l);
  padding: clamp(28px, 5vw, 64px);
  display: flex; flex-wrap: wrap; gap: 40px; align-items: center;
}
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-copy .en { font-size: 14px; font-weight: 500; letter-spacing: 0.2em; color: var(--accent); }
.hero-copy h1 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.45; letter-spacing: 0.04em; }
.hero-copy p.lead { font-size: 17px; color: var(--body); max-width: 520px; }
.author-mini { display: flex; align-items: center; gap: 14px; padding-top: 8px; }
.avatar {
  flex: none; width: 52px; height: 52px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line2); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px; color: var(--accent);
}
.author-mini .k { font-size: 13px; color: var(--sub); line-height: 1.5; }
.author-mini .n { font-size: 16px; font-weight: 700; line-height: 1.5; }
.promise {
  flex: 1 1 400px; min-width: 0; background: #fff; border-radius: 24px;
  padding: 28px; box-shadow: 0 10px 30px rgba(35, 38, 43, 0.06);
}
.promise h2 { font-size: 15px; color: var(--sub); font-weight: 500; margin-bottom: 8px; }
.promise ul { list-style: none; margin: 0; padding: 0; }
.promise li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.promise li:last-child { border-bottom: 0; padding-bottom: 0; }
.promise .ic {
  flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--ct);
  color: var(--c); display: flex; align-items: center; justify-content: center;
}
.promise .h { font-weight: 700; font-size: 16px; line-height: 1.6; }
.promise .d { font-size: 14px; color: var(--sub); line-height: 1.7; }

/* カテゴリカード */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.cat-card { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 24px; display: flex; gap: 18px; align-items: flex-start; transition: border-color .2s, transform .2s; }
.cat-card:hover { border-color: var(--line2); transform: translateY(-2px); color: var(--ink); }
.cat-ic { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--ct); color: var(--c); display: flex; align-items: center; justify-content: center; }
.cat-card .n { display: block; font-size: 18px; font-weight: 700; }
.cat-card .d { display: block; font-size: 14px; color: var(--sub); line-height: 1.7; margin-top: 4px; }

/* チップ */
.chip { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: 12px; line-height: 1.8; border: 1px solid var(--line2); color: var(--body); }
.chip.cat { border: 0; background: var(--ct); color: var(--c); font-weight: 500; }
.chip.wait { border: 0; background: var(--soft); color: var(--sub); }

/* 空のとき */
.empty {
  border: 1px dashed var(--line2); border-radius: var(--radius-m);
  padding: 40px 24px; text-align: center; color: var(--sub); font-size: 15px;
}

/* 薄い面のバンド */
.band {
  background: var(--soft); border-radius: var(--radius-l);
  padding: clamp(28px, 5vw, 56px);
  display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center;
}
.band-copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.band-copy .en { font-size: 13px; color: var(--accent); font-weight: 500; }
.band-copy h2 { font-size: 28px; line-height: 1.6; }
.band-copy p { font-size: 15px; color: var(--body); }
.band-list { flex: 1 1 420px; min-width: 0; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.band-list li { background: #fff; border-radius: 16px; padding: 18px 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-weight: 500; }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; font-size: 15px; font-weight: 500; border: 1px solid #D5DAE0; background: #fff; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #324B6B; color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* 書いている人 */
.author-box {
  border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: clamp(28px, 5vw, 56px);
  display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center;
}
.avatar.l { width: 140px; height: 140px; font-size: 48px; background: var(--tint); border: 0; }
.author-box .body { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.author-box .en { font-size: 13px; color: var(--sub); }
.author-box .name { font-size: 24px; font-weight: 700; }
.author-box p { font-size: 15px; color: var(--body); }

/* カテゴリページ */
.cat-hero { margin-top: 20px; background: var(--ct); border-radius: var(--radius-l); padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: center; }
.cat-hero .cat-ic { width: 72px; height: 72px; border-radius: 22px; background: #fff; }
.cat-hero .cat-ic svg { width: 32px; height: 32px; }
.cat-hero .t { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cat-hero .en { font-size: 13px; color: var(--c); font-weight: 500; }
.cat-hero h1 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.4; }
.cat-hero p { font-size: 16px; color: var(--body); max-width: 680px; }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.plan-list li { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.plan-list .t { font-weight: 700; font-size: 16px; line-height: 1.65; }
.other-cats { display: flex; flex-wrap: wrap; gap: 10px; }
.other-cats a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line2); font-size: 15px; }
.other-cats .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--c); }

/* 読み物ページ（運営者・規約） */
.doc { padding-top: 32px; }
.doc h1 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.45; margin-bottom: 12px; }
.doc .updated { font-size: 13px; color: var(--sub); margin-bottom: 40px; }
.doc h2 { font-size: 22px; line-height: 1.5; margin: 56px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.doc h3 { font-size: 18px; margin: 32px 0 10px; }
.doc p, .doc li { font-size: 16px; color: var(--body); line-height: 1.95; }
.doc p + p { margin-top: 16px; }
.doc ul, .doc ol { padding-left: 1.4em; margin: 12px 0; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.doc th { width: 30%; color: var(--sub); font-weight: 500; white-space: nowrap; }
.table-box { overflow-x: auto; }
.note-box { background: var(--soft); border-radius: 16px; padding: 20px 24px; margin: 20px 0; }

/* フッター */
.site-foot { background: var(--soft); margin-top: 96px; }
.site-foot .wrap.top { padding-top: 56px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px; }
.site-foot .brand { display: flex; flex-direction: column; gap: 8px; }
.site-foot .brand .nm { font-size: 22px; font-weight: 700; letter-spacing: 0.12em; }
.site-foot .brand span { font-size: 13px; color: var(--sub); }
.site-foot .brand a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.fnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 48px; font-size: 14px; }
.fnav a { display: inline-flex; align-items: center; min-height: 36px; }
.copy { padding-bottom: 32px; font-family: var(--en); font-size: 12px; color: var(--sub); letter-spacing: 0.08em; }

@media (max-width: 640px) {
  .logo-main { font-size: 22px; }
  .gnav { gap: 0 16px; font-size: 14px; }
  .sec { padding-top: 64px; }
  .sec-head h2 { font-size: 22px; }
  .band-copy h2 { font-size: 23px; }
  .doc th { white-space: normal; width: 34%; }
}

/* ボタンは読み物ページのリンク色の影響を受けない */
.doc a.btn, .post a.btn { text-decoration: none; color: var(--ink); }
.doc a.btn.primary, .post a.btn.primary { color: #fff; }
.doc .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.doc .author-box h2.name { font-size: 24px; }

/* よくある質問（運営者ページ・記事） */
.faq h2 { font-size: 22px; margin: 56px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.faq .qa { padding: 20px 0; border-bottom: 1px solid var(--line); }
.faq .qa h3 { display: flex; gap: 12px; align-items: baseline; font-size: 17px; line-height: 1.6; margin: 0 0 8px; }
.faq .q { flex: none; font-family: var(--en); color: var(--accent); font-weight: 500; }
.faq .qa p { padding-left: 24px; margin: 0; }

/* 記事カード */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 28px; }
.post-card { display: flex; flex-direction: column; gap: 12px; }
.post-card .thumb { height: 190px; border-radius: var(--radius-m); background: var(--ct); display: flex; align-items: flex-end; padding: 20px; font-family: var(--en); font-size: 34px; font-weight: 400; color: var(--c); letter-spacing: 0.04em; }
.post-card .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.post-card .t { font-size: 18px; font-weight: 700; line-height: 1.65; }
.post-card time { font-size: 13px; color: var(--sub); }

/* 記事ページ */
.pr-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; color: var(--sub); padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); max-width: 100%; }
.post { max-width: 780px; padding-top: 24px; }
.post-head .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.post-head h1 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.5; letter-spacing: 0.03em; }
.post-head .meta { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 13px; color: var(--sub); margin-top: 16px; }
.post-head .meta a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-lead { font-size: 17px; color: var(--body); line-height: 1.95; margin-top: 32px; }
.summary { background: var(--tint); border-radius: var(--radius-m); padding: 24px 28px; margin-top: 32px; }
.summary h2 { font-size: 16px; color: var(--accent); margin-bottom: 8px; }
.summary ul { margin: 0; padding-left: 1.2em; }
.summary li { font-size: 15px; line-height: 1.85; }
.toc { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px 28px; margin-top: 24px; }
.toc h2 { font-size: 15px; color: var(--sub); font-weight: 500; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.4em; }
.toc li { font-size: 15px; line-height: 2; }
.toc a { text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 4px; }
.post-body h2 { font-size: 24px; line-height: 1.55; margin: 64px 0 18px; padding-bottom: 12px; border-bottom: 2px solid var(--tint); scroll-margin-top: 16px; }
.post-body h3 { font-size: 19px; line-height: 1.6; margin: 36px 0 12px; padding-left: 12px; border-left: 3px solid var(--accent); }
.post-body p, .post-body li { font-size: 16.5px; color: var(--body); line-height: 2; }
.post-body p + p { margin-top: 18px; }
.post-body strong { color: var(--ink); background: linear-gradient(transparent 62%, #E4EBF5 62%); }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-body ul, .post-body ol { padding-left: 1.4em; margin: 16px 0; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.post-body caption { text-align: left; font-size: 13px; color: var(--sub); padding-bottom: 8px; }
.post-body th, .post-body td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-body thead th { background: var(--soft); font-weight: 700; }
.post-body .table-box { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: 14px; }
.post-body ul.check { list-style: none; padding: 0; }
.post-body ul.check li { position: relative; padding-left: 32px; }
.post-body ul.check li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 16px; height: 16px; border-radius: 5px; background: var(--tint); box-shadow: inset 0 0 0 1.5px var(--accent); }
.post-body .note { display: flex; gap: 12px; background: #FBF6EE; border-radius: 14px; padding: 16px 20px; margin: 20px 0; color: #7A5A2E; }
.post-body .note p { color: #5E4622; font-size: 15px; margin: 0; }
.post-body .note .ic { flex: none; margin-top: 3px; }
.post-body pre { background: #23262B; color: #E8EAED; border-radius: 14px; padding: 18px 20px; overflow-x: auto; font-size: 14px; line-height: 1.7; }
.post-body code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.post-body .faq h2 { font-size: 24px; margin-top: 64px; border-bottom: 2px solid var(--tint); }
.cta-box { margin-top: 56px; background: var(--tint); border-radius: var(--radius-m); padding: 28px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.cta-box .h { font-size: 18px; font-weight: 700; }
.cta-box p { font-size: 15px; color: var(--body); }
.sources { margin-top: 48px; }
.sources h2 { font-size: 16px; margin-bottom: 8px; }
.sources ol { margin: 0; padding-left: 1.4em; }
.sources li { font-size: 14px; color: var(--sub); line-height: 1.9; }
.sources a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
.author-card { margin-top: 40px; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 24px; display: flex; gap: 18px; align-items: flex-start; }
.author-card .k { font-size: 12px; color: var(--sub); }
.author-card h2 { font-size: 17px; margin: 2px 0 6px; }
.author-card p { font-size: 14px; color: var(--body); line-height: 1.85; }

/* 図（記事） */
.post-body figure { margin: 32px 0; }
.post-body figure img { display: block; width: 100%; max-width: 600px; height: auto; margin: 0 auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.post-body figcaption { margin-top: 10px; text-align: center; font-size: 13px; color: var(--sub); line-height: 1.7; }
.post-body blockquote { margin: 12px 0 20px; padding: 14px 18px; border-radius: 12px; background: var(--soft); color: var(--body); font-size: 15px; }
.post-body blockquote p { margin: 0; }
.post-body ul.task { list-style: none; padding-left: 0; }
.post-body ul.task li { position: relative; padding-left: 32px; }
.post-body ul.task li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 16px; height: 16px; border-radius: 5px; background: var(--tint); box-shadow: inset 0 0 0 1.5px var(--accent); }
.post-body a, .doc a { overflow-wrap: anywhere; }

/* 見出し横の「すべて見る」リンク */
.sec-head .more { font-size: 15px; font-weight: 500; color: var(--accent); display: inline-flex; align-items: center; min-height: 44px; }
.sec-head .more:hover { text-decoration: underline; text-underline-offset: 3px; }
