/* メモログ：WordPress 時代の色（ピンク #dab2d3・紺 #3b4675・黄色のマーカー）を引き継いだ、読みやすさ優先のニュースブログ */
:root {
  --ink: #2c3354;
  --navy: #3b4675;
  --pink: #dab2d3;
  --pink-soft: #f7eef5;
  --pink-deep: #b0659f;
  --yellow: #ffe48a;
  --red: #d8344a;
  --bg: #fbf9fa;
  --card: #fff;
  --line: #ebe3e9;
  --muted: #7a7f95;
  --radius: 14px;
  --font: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Yu Gothic', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 500; line-height: 1.85; overflow-wrap: anywhere; }
a { color: var(--pink-deep); }
img { max-width: 100%; height: auto; }
.sp { display: none; }
@media (max-width: 600px) { .sp { display: inline; } }

/* ヘッダー */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header__inner { max-width: 1120px; margin: 0 auto; padding: 10px 16px 4px; }
.site-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; }
.site-logo img { border-radius: 50%; }
.site-logo b { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: .06em; line-height: 1.2; }
.site-logo small { display: block; font-size: .7rem; color: var(--muted); line-height: 1.3; }
.site-nav { overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav__inner { max-width: 1120px; margin: 0 auto; padding: 0 10px; display: flex; gap: 2px; white-space: nowrap; }
.site-nav a { color: var(--navy); text-decoration: none; font-size: .88rem; font-weight: 700; padding: 8px 10px 9px; border-bottom: 3px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current] { border-bottom-color: var(--pink); }

main { max-width: 1120px; margin: 0 auto; padding: 0 16px 48px; }

/* トップの帯 */
.hero { margin: 24px 0 8px; padding: 28px 24px; border-radius: var(--radius); background: linear-gradient(135deg, var(--pink-soft), #eef0fa); text-align: center; }
.hero p { margin: 0 0 14px; font-size: clamp(1.1rem, 3.6vw, 1.5rem); font-weight: 800; color: var(--navy); line-height: 1.5; }
.hero .chips { justify-content: center; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-size: .82rem; font-weight: 700; text-decoration: none; }
.chip span { color: var(--muted); font-size: .72rem; }
.chip:hover { border-color: var(--pink); background: var(--pink-soft); }

/* 一覧 */
.sec-head { margin: 32px 0 14px; }
.sec-head h1, .sec-head h2 { margin: 0; font-size: 1.3rem; color: var(--navy); font-weight: 800; display: flex; align-items: center; gap: 10px; }
.sec-head h1::before, .sec-head h2::before { content: ''; width: 6px; height: 1.2em; border-radius: 3px; background: var(--pink); }
.sec-head__en { margin: 0; font-size: .72rem; letter-spacing: .2em; color: var(--muted); }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 3px rgba(59, 70, 117, .08); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(59, 70, 117, .12); }
.card__img { display: block; aspect-ratio: 16 / 9; background: var(--pink-soft); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.noimg { display: grid; place-items: center; width: 100%; height: 100%; color: var(--pink-deep); font-weight: 800; letter-spacing: .1em; }
.card__body { padding: 12px 16px 16px; }
.card__meta { margin: 0 0 4px; display: flex; align-items: center; gap: 10px; font-size: .75rem; color: var(--muted); }
.cat { display: inline-block; padding: 0 10px; border-radius: 99px; background: var(--pink); color: #fff; font-size: .72rem; font-weight: 700; text-decoration: none; line-height: 1.8; }
.card__title { margin: 0; font-size: .98rem; line-height: 1.6; font-weight: 700; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--pink-deep); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 28px 0 0; }
.pager a, .pager span { min-width: 40px; padding: 6px 12px; border-radius: 99px; text-align: center; background: #fff; border: 1px solid var(--line); color: var(--navy); text-decoration: none; font-weight: 700; font-size: .9rem; }
.pager [aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager .gap { border: 0; background: none; min-width: 0; padding: 6px 2px; }

/* 記事 */
.post { max-width: 760px; margin: 24px auto 0; background: var(--card); border-radius: var(--radius); padding: 28px clamp(16px, 4vw, 44px) 32px; box-shadow: 0 1px 3px rgba(59, 70, 117, .08); }
.post__cats { margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.post__title { margin: 0; font-size: clamp(1.3rem, 4.4vw, 1.7rem); line-height: 1.5; color: var(--navy); font-weight: 800; }
.post__date { margin: 8px 0 0; font-size: .8rem; color: var(--muted); display: flex; gap: 14px; }
.post__eyecatch { margin: 20px -8px 0; }
.post__eyecatch img { width: 100%; border-radius: 10px; display: block; }
.pr { margin: 16px 0 0; font-size: .75rem; color: var(--muted); }
.post__body { margin-top: 20px; font-size: 1rem; }
.post__body p { margin: 0 0 1.1em; }
.post__body h2 { margin: 2.4em 0 1em; padding: 12px 16px; border-radius: 10px; background: var(--navy); color: #fff; font-size: 1.2rem; line-height: 1.5; scroll-margin-top: 110px; }
.post__body h3 { margin: 2em 0 .8em; padding: 4px 0 6px 12px; border-left: 5px solid var(--pink); border-bottom: 1px solid var(--line); color: var(--navy); font-size: 1.08rem; line-height: 1.5; }
.post__body h4 { margin: 1.6em 0 .6em; color: var(--navy); font-size: 1rem; }
.post__body h4::before { content: '● '; color: var(--pink); }
.post__body ul, .post__body ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.post__body img { border-radius: 8px; display: block; margin: 0 auto 1em; }
.post__body figure { margin: 0 0 1.2em; }
.post__body figcaption { font-size: .8rem; color: var(--muted); text-align: center; }
.post__body .center { text-align: center; }
.post__body .center img { margin-left: auto; margin-right: auto; }
mark { background: linear-gradient(transparent 55%, var(--yellow) 55%); color: inherit; padding: 0 1px; }
.red { color: var(--red); }
.post__body blockquote { margin: 0 0 1.2em; padding: 14px 18px; border-radius: 10px; background: #f6f6f9; border-left: 4px solid #d3d6e3; font-size: .92rem; }
.post__body blockquote p { margin: 0 0 .5em; }
.post__body blockquote.twitter-tweet, .post__body blockquote.instagram-media { border-left-color: var(--pink); max-width: 550px; margin-left: auto; margin-right: auto; }
.post__body iframe { max-width: 100%; }
.embed { position: relative; aspect-ratio: 16 / 9; margin: 0 0 1.2em; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }
.embed--map { aspect-ratio: 4 / 3; }
.table { overflow-x: auto; margin: 0 0 1.2em; }
.table table { border-collapse: collapse; width: 100%; font-size: .9rem; min-width: 420px; }
.table th, .table td { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.table th { background: var(--pink-soft); color: var(--navy); text-align: left; }

/* 目次 */
.toc { margin: 1.6em 0; padding: 16px 20px; border-radius: 12px; background: var(--pink-soft); }
.toc p { margin: 0 0 6px; font-weight: 800; color: var(--navy); }
.toc ol { margin: 0; padding-left: 1.4em; font-size: .9rem; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--pink-deep); text-decoration: underline; }

/* 吹き出し（メモ子・ハピ子など） */
.talk { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 1.3em; }
.talk--right { flex-direction: row-reverse; }
.talk__who { flex: 0 0 64px; text-align: center; font-size: .7rem; color: var(--muted); line-height: 1.3; }
.post__body .talk__who img { width: 60px; height: 60px; object-fit: cover; border-radius: 50%; margin: 0 auto 2px; border: 2px solid var(--pink); }
.talk__text { position: relative; padding: 12px 16px; border-radius: 14px; background: #fff; border: 2px solid var(--pink); font-size: .94rem; }
.talk__text::before { content: ''; position: absolute; top: 18px; left: -9px; width: 14px; height: 14px; background: #fff; border-left: 2px solid var(--pink); border-bottom: 2px solid var(--pink); transform: rotate(45deg); }
.talk--right .talk__text::before { left: auto; right: -9px; transform: rotate(-135deg); }
.talk__text p { margin: 0; }

/* 囲み */
.box { margin: 0 0 1.3em; padding: 16px 20px; border-radius: 12px; border: 2px dashed var(--pink); background: #fff; }
.box > :last-child { margin-bottom: 0; }
.box__title { margin: -4px 0 10px !important; font-weight: 800; color: var(--pink-deep); }
.box ol, .box ul { margin-bottom: 0; }

/* 商品リンク・ボタン */
.product { display: flex; gap: 16px; align-items: center; margin: 0 0 1.3em; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.post__body .product img { flex: 0 0 auto; width: 100px; margin: 0; border-radius: 4px; }
.product__name { margin: 0 0 8px !important; font-size: .9rem; font-weight: 700; line-height: 1.6; }
.product__btns { margin: 0 !important; display: flex; flex-wrap: wrap; gap: 6px; }
.btn { display: inline-block; padding: 8px 22px; border-radius: 99px; background: var(--navy); color: #fff !important; font-weight: 700; font-size: .9rem; text-decoration: none; }
.btn:hover { opacity: .85; }
.btn--amazon { background: #f3a847; }
.btn--rakuten { background: #bf0000; }
.btn--other { background: var(--pink-deep); }
.linkcard { display: flex; gap: 12px; align-items: center; margin: 0 0 1.2em; padding: 10px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.post__body .linkcard img { width: 120px; margin: 0; aspect-ratio: 16 / 9; object-fit: cover; }
.linkcard b { display: block; font-size: .92rem; }
.linkcard small { color: var(--muted); }

.post__tags { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; }
.post__tags a { color: var(--navy); text-decoration: none; background: #f2f3f8; padding: 2px 10px; border-radius: 6px; }
.share { margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .82rem; }
.share span { width: 100%; font-weight: 700; color: var(--navy); }
.share a { flex: 1 1 0; min-width: 70px; text-align: center; padding: 8px; border-radius: 8px; color: #fff; text-decoration: none; font-weight: 700; }
.share--x { background: #111; } .share--fb { background: #1877f2; } .share--line { background: #06c755; } .share--hb { background: #00a4de; }
.post__pager { margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.post__pager a { padding: 12px 14px; border-radius: 10px; background: #f6f6f9; color: var(--ink); text-decoration: none; font-size: .85rem; line-height: 1.5; }
.post__pager a:last-child { text-align: right; }
.post__pager small { display: block; color: var(--muted); font-size: .72rem; }
.related { max-width: 760px; margin: 0 auto; }
.related .cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.page .post__body h2 { font-size: 1.1rem; }
.sitemap ul { font-size: .9rem; }
.sitemap h2 a { color: #fff; text-decoration: none; }

/* フッター */
.site-footer { background: var(--navy); color: #e8eaf3; font-size: .88rem; }
.site-footer__inner { max-width: 1120px; margin: 0 auto; padding: 36px 16px 20px; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.site-footer h2 { margin: 0 0 10px; font-size: 1rem; color: #fff; }
.site-footer .about p { margin: 0 0 8px; }
.site-footer .about img { float: left; margin: 4px 12px 4px 0; border-radius: 50%; }
.site-footer a { color: #fff; }
.site-footer .chip { background: rgba(255, 255, 255, .1); border-color: transparent; color: #fff; }
.site-footer .chip span { color: #c8cbe0; }
.site-footer__bottom { max-width: 1120px; margin: 0 auto; padding: 14px 16px 24px; border-top: 1px solid rgba(255, 255, 255, .15); display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .78rem; }
.site-footer__bottom a { color: #d4d7e8; text-decoration: none; }
.site-footer__bottom span { margin-left: auto; color: #aab0cc; }

@media (max-width: 600px) {
  .post { margin-left: -16px; margin-right: -16px; border-radius: 0; box-shadow: none; }
  .post__eyecatch { margin-left: -16px; margin-right: -16px; }
  .post__eyecatch img { border-radius: 0; }
  .post__body h2 { margin-left: -6px; margin-right: -6px; }
  .product { flex-direction: column; text-align: center; }
  .product__btns { justify-content: center; }
  .talk__who { flex-basis: 52px; }
  .post__body .talk__who img { width: 48px; height: 48px; }
}
@media (max-width: 600px) { .site-header { position: static; } }
