/* 50からの友だち：白地に、やさしい緑とオレンジ。文字は大きく、部品は縦に並べる */
:root {
  --bg: #FFFFFF;
  --tint: #F6FAF9;
  --text: #24302E;
  --sub: #5F6B69;
  --line: #E2EAE8;
  --brand: #1F9E8F;
  --brand-d: #157A6E;
  --cta: #F2733A;
  --cta-d: #D85A22;
  --marker: #FFE9A8;
  --link: #14698C;
  --round: "Noto Sans JP", "Hiragino Sans", "BIZ UDPGothic", sans-serif;
  --sans: "BIZ UDPGothic", "Hiragino Sans", "Meiryo", sans-serif;
}
.c-tomodachi { --c: #1F9E8F; --ct: #E4F5F2; }
.c-partner { --c: #E2574F; --ct: #FDECEA; }
.c-konkatsu { --c: #C9820F; --ct: #FFF3DA; }
.c-anzen { --c: #2E78C7; --ct: #E7F1FB; }

* { box-sizing: border-box; }
html { font-size: 19px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.85; padding-bottom: 76px; }
a { color: var(--link); text-underline-offset: 3px; }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }

/* ヘッダー */
header.site { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 8px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.logo-mark { width: 36px; height: 36px; flex: none; }
.logo b { display: block; font-family: var(--round); font-weight: 900; font-size: 1.1rem; line-height: 1.2; color: var(--brand-d); }
.logo small { display: block; font-size: .58rem; color: var(--sub); line-height: 1.3; }
.head-link { flex: none; font-size: .75rem; font-weight: 700; color: var(--brand-d); text-decoration: none; border: 2px solid var(--brand); border-radius: 999px; padding: 6px 12px; }

main { padding-top: 12px; padding-bottom: 36px; }
h1 { font-family: var(--round); font-weight: 900; font-size: 1.4rem; line-height: 1.5; margin: 8px 0 10px; }
h2, h3 { font-family: var(--round); font-weight: 700; }
p { margin: 12px 0; }
ul, ol { padding-left: 1.3em; }
li { margin: 6px 0; }
.crumb { font-size: .68rem; color: var(--sub); margin: 0 0 8px; line-height: 1.6; }
.crumb a { color: var(--sub); }
.note-l { font-size: .74rem; color: var(--sub); line-height: 1.7; }
.lead { font-size: 1rem; }
.mk { background: linear-gradient(transparent 62%, var(--marker) 62%); }

/* トップ：ヒーロー */
.hero { background: linear-gradient(180deg, #E9F6F3 0%, #FFF8EC 100%); margin: 0 -16px; padding: 22px 18px 10px; text-align: center; border-radius: 0 0 28px 28px; }
.hero-chip { display: inline-block; background: #fff; color: var(--brand-d); font-weight: 700; font-size: .7rem; border-radius: 999px; padding: 4px 14px; margin: 0; }
h1.tagline { font-size: 1.75rem; line-height: 1.45; margin: 12px 0 2px; }
.hero-art { width: 100%; max-width: 340px; height: auto; display: block; margin: 0 auto; }
.hero-lead { font-size: .9rem; margin: 6px 0 12px; text-align: left; }

/* 見出し */
h2.sec { font-size: 1.2rem; line-height: 1.5; margin: 36px 0 12px; display: flex; align-items: center; gap: 10px; }
h2.sec::before { content: ""; width: 8px; height: 1.5em; border-radius: 4px; background: var(--brand); flex: none; }
.body h2 { font-size: 1.15rem; line-height: 1.5; margin: 40px 0 14px; padding: 10px 12px; background: var(--tint); border-left: 6px solid var(--brand); border-radius: 0 8px 8px 0; scroll-margin-top: 72px; }
.body h3 { font-size: 1.05rem; line-height: 1.5; margin: 26px 0 8px; padding-bottom: 4px; border-bottom: 2px dashed var(--line); }
.body.doc h1 { margin-top: 4px; }
.body p b, .body li b { background: linear-gradient(transparent 62%, var(--marker) 62%); }

/* 目的別の入口 */
ul.entry { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
ul.entry li { margin: 0; }
ul.entry a { display: block; height: 100%; background: var(--ct); border: 2px solid transparent; border-radius: 16px; padding: 14px 12px; text-decoration: none; color: var(--text); }
ul.entry a:active { border-color: var(--c); }
.entry-ico { display: flex; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--c); align-items: center; justify-content: center; margin-bottom: 8px; }
.entry-ico .ico { width: 26px; height: 26px; }
ul.entry b { display: block; font-family: var(--round); font-size: 1rem; line-height: 1.4; }
.entry-d { display: block; font-size: .72rem; color: var(--sub); line-height: 1.6; margin-top: 4px; }

/* 3つの条件 */
ol.three { list-style: none; padding: 0; margin: 0; counter-reset: t; }
ol.three li { counter-increment: t; position: relative; background: var(--tint); border-radius: 14px; padding: 14px 14px 14px 62px; margin: 0 0 10px; }
ol.three li::before { content: counter(t); position: absolute; left: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--round); font-weight: 900; display: flex; align-items: center; justify-content: center; }
ol.three b { display: block; font-family: var(--round); line-height: 1.5; }
ol.three span { display: block; font-size: .8rem; color: var(--sub); line-height: 1.7; margin-top: 2px; }

/* 数字 */
ul.stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
ul.stats li { margin: 0; background: #FFF4EC; border-radius: 14px; padding: 12px 4px; }
ul.stats b { display: block; font-family: var(--round); font-weight: 900; font-size: 1.5rem; line-height: 1.2; color: var(--cta-d); }
ul.stats small { font-size: .8rem; }
ul.stats span { display: block; font-size: .66rem; line-height: 1.5; margin-top: 4px; }

/* ボタン */
.btn { display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; background: var(--cta); color: #fff; text-decoration: none; font-family: var(--round); font-weight: 900;
  padding: 14px 16px; border-radius: 999px; margin: 16px 0 6px; min-height: 60px; line-height: 1.4; box-shadow: 0 4px 0 var(--cta-d); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--cta-d); }
.btn.ghost { background: #fff; color: var(--brand-d); border: 2px solid var(--brand); box-shadow: none; font-size: .9rem; }

/* 記事カード */
ul.cards { list-style: none; padding: 0; margin: 0; }
ul.cards li { margin: 0 0 12px; }
ul.cards a { display: flex; gap: 12px; align-items: stretch; text-decoration: none; color: var(--text); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.card-b { padding: 10px 12px 10px 0; min-width: 0; }
.card-b b { display: block; font-family: var(--round); font-size: .95rem; line-height: 1.5; }
.card-b span { display: block; font-size: .7rem; color: var(--sub); line-height: 1.6; margin-top: 2px; }

/* アイキャッチ */
.eye { position: relative; overflow: hidden; background: var(--ct); border-radius: 18px; padding: 18px 96px 18px 18px; margin: 12px 0; min-height: 132px; display: flex; flex-direction: column; justify-content: center; }
.eye::before { content: ""; position: absolute; right: -34px; top: -34px; width: 150px; height: 150px; border-radius: 50%; background: #fff; opacity: .6; }
.eye-chip { align-self: flex-start; background: var(--c); color: #fff; font-size: .66rem; font-weight: 700; border-radius: 999px; padding: 2px 12px; position: relative; }
.eye-t { font-family: var(--round); font-weight: 900; font-size: 1.2rem; line-height: 1.45; margin: 8px 0 0; position: relative; }
.eye-ico { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 64px; height: 64px; color: var(--c); }
.eye.small { flex: none; width: 84px; min-height: 0; margin: 0; padding: 0; border-radius: 0; }
.eye.small::before { right: -30px; top: -30px; width: 90px; height: 90px; }
.eye.small .eye-chip, .eye.small .eye-t { display: none; }
.eye.small .eye-ico { right: 50%; transform: translate(50%, -50%); width: 38px; height: 38px; }

/* 記事の上部 */
.cat-chip { display: inline-block; background: var(--ct); color: var(--c); font-weight: 700; font-size: .7rem; border-radius: 999px; padding: 2px 12px; margin: 0; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-size: .7rem; color: var(--sub); margin: 0; }
.meta span { margin-left: 8px; }
.prline { display: flex; gap: 8px; align-items: center; font-size: .72rem; color: var(--sub); margin: 8px 0; }
.prline span { background: var(--sub); color: #fff; border-radius: 4px; padding: 0 6px; font-weight: 700; flex: none; }
.points { background: #FFF8EC; border: 2px solid #F5D9A8; border-radius: 16px; padding: 12px 14px; margin: 14px 0; }
.points-h, .toc-h { display: flex; align-items: center; gap: 6px; font-family: var(--round); font-weight: 900; margin: 0 0 4px; }
.points-h { color: var(--cta-d); }
.points ul { margin: 0; padding-left: 1.2em; }
.points li { font-size: .9rem; line-height: 1.7; }
.toc { background: var(--tint); border-radius: 16px; padding: 12px 14px; margin: 14px 0; }
.toc-h { color: var(--brand-d); }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: c; }
.toc li { counter-increment: c; margin: 0; border-top: 1px dashed var(--line); }
.toc li:first-child { border-top: 0; }
.toc a { display: flex; gap: 10px; padding: 9px 0; font-size: .88rem; line-height: 1.5; color: var(--text); text-decoration: none; }
.toc a::before { content: counter(c, decimal-leading-zero); font-family: var(--round); font-weight: 900; color: var(--brand); flex: none; }

/* 本文の部品 */
dl.info, dl.spec { margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
dl.info dt, dl.spec dt { background: var(--tint); font-weight: 700; font-size: .85rem; padding: 6px 12px; }
dl.info dd, dl.spec dd { margin: 0; padding: 8px 12px 10px; font-size: .92rem; line-height: 1.75; }
ol.steps { list-style: none; padding: 0; counter-reset: s; }
ol.steps li { counter-increment: s; position: relative; padding: 0 0 14px 50px; margin: 0; }
ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--round); font-weight: 900; display: flex; align-items: center; justify-content: center; z-index: 1; }
ol.steps li::after { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: var(--line); }
ol.steps li:last-child::after { display: none; }
ol.steps b { display: block; background: none; font-family: var(--round); }
.body ol.steps li b { background: none; }

/* サービスのカード */
section.svc { border: 2px solid var(--c); border-radius: 18px; padding: 14px; margin: 22px 0; background: #fff; }
.svc-head { display: flex; align-items: center; gap: 12px; }
.svc-badge { flex: none; width: 54px; height: 54px; border-radius: 14px; background: var(--c); color: #fff; font-family: var(--round); font-weight: 900; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; }
.body .svc-h, .svc-h { font-size: 1.15rem; line-height: 1.4; margin: 0; padding: 0; border: 0; }
.svc-kind { font-size: .74rem; color: var(--sub); margin: 2px 0 0; line-height: 1.5; }
.chips { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--ct); color: var(--c); font-size: .68rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.svc-point { background: var(--ct); border-radius: 12px; padding: 10px 12px; margin: 12px 0; }
.svc-point p { margin: 0; font-size: .9rem; line-height: 1.7; }
.svc-point-h { display: flex; align-items: center; gap: 4px; color: var(--c); font-family: var(--round); font-weight: 900; font-size: .85rem !important; }
.age { font-size: .78rem; font-weight: 700; text-align: center; margin: 6px 0 0; color: var(--sub); }

/* フッター */
footer.site { background: var(--tint); padding: 22px 0 28px; font-size: .74rem; color: var(--sub); }
footer.site a { color: var(--text); }
.foot-h { font-family: var(--round); font-weight: 700; margin: 0 0 4px; color: var(--text); }
.foot-cats a, footer .links a { display: inline-block; margin: 0 14px 8px 0; }
.foot-note { line-height: 1.7; }
.copy { margin: 12px 0 0; }

/* 下のメニュー */
nav.bottom { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
nav.bottom .wrap { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; }
nav.bottom a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; font-size: .62rem; font-weight: 700; color: var(--sub); text-decoration: none; }
nav.bottom .ico { width: 26px; height: 26px; }
nav.bottom a[aria-current="page"] { color: var(--brand-d); }

@media (max-width: 359px) {
  html { font-size: 17px; }
  ul.entry { grid-template-columns: 1fr; }
  .eye { padding-right: 18px; }
  .eye-ico { opacity: .25; }
}

/* 見出しは、すっきりした角ゴシックで少し詰める */
h1, h2, h3, .logo b, .btn, .eye-t, ul.entry b, .card-b b { letter-spacing: .01em; }
h1.tagline { letter-spacing: .02em; }


/* ===== 写真 ===== */
.hero { background: none; margin: 0 -16px; padding: 0; text-align: left; border-radius: 0; }
.hero-ph { position: relative; }
.hero-ph img { display: block; width: 100%; height: 250px; object-fit: cover; }
.hero-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 20%, rgba(0,0,0,.62) 100%); }
.hero-tx { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; color: #fff; }
.hero-chip { background: rgba(255,255,255,.92); }
h1.tagline { color: #fff; font-size: 1.7rem; margin: 8px 0 0; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.hero-lead { padding: 0 16px; margin: 14px 0 0; font-size: .95rem; }

figure.eye { position: relative; margin: 12px 0 14px; padding: 0; min-height: 0; background: none; border-radius: 16px; overflow: hidden; display: block; }
figure.eye::before { display: none; }
figure.eye img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
figure.eye .eye-chip { position: absolute; left: 12px; top: 12px; }

.thumb { flex: none; width: 112px; align-self: stretch; }
.thumb img { display: block; width: 100%; height: 100%; min-height: 92px; object-fit: cover; }

ul.entry a { padding: 0 0 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.entry-ph { display: block; position: relative; margin-bottom: 22px; }
.entry-ph img { display: block; width: 100%; height: 96px; object-fit: cover; }
.entry-ico { position: absolute; left: 10px; bottom: -18px; width: 40px; height: 40px; margin: 0; background: var(--c); color: #fff; border: 3px solid #fff; }
.entry-ico .ico { width: 20px; height: 20px; }
ul.entry b, .entry-d { padding: 0 12px; }

/* ===== 記事の読みやすさ（noteの組み方を参考：行間を広く、段落の間をしっかり空ける） ===== */
body { color: #08131A; }
.body { font-size: 1rem; line-height: 2; }
.body p { margin: 1.5em 0; }
.body ul, .body ol { margin: 1.5em 0; }
.body li { margin: .6em 0; line-height: 1.9; }
.body h2 { margin: 3em 0 1.2em; }
.body h3 { margin: 2.2em 0 .8em; }
.body dl.info, .body section.svc { margin: 1.8em 0; }
h1 { letter-spacing: .02em; }
.meta { margin: 6px 0 2px; }


/* ===== 本文の写真・よくある質問・参考資料・書いた人 ===== */
figure.ph { margin: 2em 0; }
figure.ph img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }
figure.ph figcaption { font-size: .72rem; color: var(--sub); margin-top: 6px; line-height: 1.6; }
details.qa { border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; background: #fff; }
details.qa summary { cursor: pointer; list-style: none; padding: 12px 40px 12px 44px; position: relative; font-weight: 700; line-height: 1.6; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::before { content: "Q"; position: absolute; left: 12px; top: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--round); font-size: .8rem; display: flex; align-items: center; justify-content: center; }
details.qa summary::after { content: "＋"; position: absolute; right: 12px; top: 12px; color: var(--brand-d); font-weight: 700; }
details.qa[open] summary::after { content: "－"; }
.body details.qa p { margin: 0; padding: 0 14px 14px 44px; line-height: 1.85; font-size: .95rem; }
.src { background: var(--tint); border-radius: 12px; padding: 12px 14px; margin: 2.2em 0 0; }
.src-h { font-family: var(--round); font-weight: 700; font-size: .85rem; margin: 0 0 4px !important; }
.body .src ul { margin: 0; padding-left: 1.2em; }
.body .src li { font-size: .78rem; line-height: 1.7; margin: .3em 0; word-break: break-all; }
.author { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 28px 0 0; }
.author .logo-mark { width: 48px; height: 48px; }
.author p { margin: 0; font-size: .8rem; line-height: 1.7; }
.author-h { font-size: .68rem !important; color: var(--sub); }

/* ===== ASPの素材をそのまま置くボタン ===== */
.aff { margin: 14px 0 0; }
.aff-pr { font-size: .68rem; color: var(--sub); margin: 0 0 4px; text-align: center; }
.aff a { display: block; text-align: center; background: var(--cta); color: #fff; text-decoration: none; font-family: var(--round); font-weight: 900; line-height: 1.5; padding: 13px 14px; border-radius: 999px; box-shadow: 0 4px 0 var(--cta-d); }
.aff img { position: absolute; width: 1px; height: 1px; }
