/* 妻と息子へのパパごはん  style.css（ひだまりの台所）
   クリーム色の地・葉っぱの緑・卵の黄・にんじんの橙。写真はお皿のように丸く、白い縁。
   本文の赤字・大きな字は持ち主のものなので、そのまま出す。 */
:root {
  --bg: #fdf6e6;
  --card: #ffffff;
  --ink: #3d3a2f;
  --mute: #8a826b;
  --green: #5d8a3a;
  --green-d: #3f6524;
  --leaf: #bcd99a;
  --yellow: #f6d77a;
  --orange: #ef8a5b;
  --line: #ecdcb4;
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pop: cubic-bezier(.3, 1.5, .5, 1);
  --pad: clamp(18px, 6vw, 80px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 500; line-height: 1.8; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
ul { padding: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
::selection { background: var(--yellow); }

/* ヘッダー */
.site-header { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--pad); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 18px; text-decoration: none; letter-spacing: .04em; }
.brand::before { content: ""; width: 18px; height: 18px; background: var(--green); border-radius: 0 100% 0 100%; transform: rotate(-10deg); }
.brand small { font-size: 11px; font-weight: 500; color: var(--mute); letter-spacing: .1em; }
.site-nav { display: flex; gap: 18px; font-size: 14px; font-weight: 700; }
.site-nav a { text-decoration: none; padding: 4px 2px; border-bottom: 3px solid transparent; transition: border-color .3s; }
.site-nav a:hover { border-color: var(--yellow); }

/* 丸い形（背景の飾り） */
.blob { position: absolute; z-index: -1; display: block; border-radius: 46% 54% 60% 40% / 50% 42% 58% 50%; animation: wob 14s ease-in-out infinite alternate; pointer-events: none; }
@keyframes wob { to { border-radius: 58% 42% 40% 60% / 42% 60% 40% 58%; transform: rotate(20deg); } }

/* トップ：文字と、お皿を並べた食卓 */
.hero { position: relative; isolation: isolate; min-height: calc(100vh - 70px); display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 30px; padding: 20px var(--pad) 60px; }
.hero h1 { margin: 0; font-weight: 900; font-size: clamp(32px, 5vw, 64px); line-height: 1.35; }
.hero h1 span { color: var(--green); }
.hero__tag { margin: 20px 0 0; letter-spacing: .12em; color: var(--mute); }
.hero .b1 { width: 42vw; height: 42vw; right: -8vw; top: -6vw; background: var(--yellow); }
.hero .b2 { width: 18vw; height: 18vw; left: 2vw; bottom: 2vw; background: var(--leaf); }
.hero .b3 { width: 5vw; height: 5vw; left: 44vw; top: 10vw; background: var(--orange); }
/* トップ：写真のスライドショー（ゆっくり寄りながら、ふわっと切り替わる） */
.hero--show { display: block; min-height: 0; height: calc(100vh - 70px); min-height: 520px; padding: 0 var(--pad) 40px; }
.show { position: relative; height: 100%; border-radius: 28px; overflow: hidden; background: #e9dcbc; box-shadow: 0 0 0 clamp(6px, 1vw, 12px) #fff, 0 30px 60px -30px rgba(80, 60, 20, .5); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.8s ease; }
.slide.on { opacity: 1; }
.slide img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.16) translate(var(--x), var(--y)); transition: transform 9s linear; }
.slide.on img { transform: scale(1.02); }
.hero__cap { position: absolute; z-index: 2; left: calc(var(--pad) + clamp(16px, 3vw, 40px)); bottom: calc(40px + clamp(16px, 3vw, 40px)); max-width: min(520px, calc(100% - var(--pad) * 2 - 32px)); background: rgba(253, 246, 230, .95); border-radius: 22px; padding: clamp(18px, 2.6vw, 30px) clamp(20px, 3vw, 34px); box-shadow: 0 20px 40px -20px rgba(80, 60, 20, .45); }
.hero--show h1 { font-size: clamp(28px, 4.2vw, 52px); }
.hero--show .hero__tag { margin-top: 10px; font-size: 14px; }
.now { display: flex; gap: 12px; align-items: baseline; margin-top: 16px; padding-top: 14px; border-top: 2px dashed var(--line); text-decoration: none; font-weight: 700; font-size: 14px; line-height: 1.6; }
.now .num { flex: none; font-size: 12px; color: var(--green); letter-spacing: .1em; }
.now:hover .t { color: var(--green); }
.bars { display: flex; gap: 5px; margin-top: 12px; }
.bars button { flex: 1; height: 4px; padding: 0; border: 0; border-radius: 2px; background: var(--line); cursor: pointer; position: relative; overflow: hidden; }
.bars button.on::after { content: ""; position: absolute; inset: 0; background: var(--green); transform-origin: left; animation: bar 5.5s linear forwards; }
@keyframes bar { from { transform: scaleX(0); } }
.table { position: relative; aspect-ratio: 1; width: 100%; max-width: 640px; justify-self: center; }
.dish { position: absolute; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 clamp(5px, 1vw, 11px) #fff, 0 24px 44px -18px rgba(80, 60, 20, .45); transform: translateY(calc(var(--s, 0) * var(--k) * -1px)); animation: pop .9s var(--pop) backwards; animation-delay: calc(var(--i) * 120ms + .2s); transition: box-shadow .4s; }
.dish img { display: block; width: 100%; height: 100%; object-fit: cover; animation: fl 7s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -1.3s); transition: transform .7s var(--ease); }
.dish:hover, .dish:focus-visible { z-index: 5; box-shadow: 0 0 0 clamp(5px, 1vw, 11px) var(--yellow), 0 30px 50px -18px rgba(80, 60, 20, .5); }
.dish:hover img { transform: scale(1.08) rotate(-4deg); }
@keyframes pop { from { opacity: 0; scale: .4; } }
@keyframes fl { from { transform: rotate(-5deg) scale(1.04); } to { transform: rotate(5deg) scale(1.1); } }
.leaf { position: absolute; width: 13%; aspect-ratio: 1; background: #7fae55; border-radius: 0 100% 0 100%; opacity: .9; }
.l1 { left: 46%; top: -2%; transform: rotate(20deg); }
.l2 { left: -4%; top: 52%; width: 9%; transform: rotate(-40deg); background: #a9cf86; }
.dot { position: absolute; border-radius: 50%; background: var(--orange); aspect-ratio: 1; }
.d1 { width: 4%; left: 90%; top: 44%; }
.d2 { width: 2.6%; left: 40%; top: 95%; background: #f2c14e; }

/* カテゴリーの札 */
.cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; padding: 20px var(--pad); list-style: none; }
.cats a { display: inline-block; background: #fff; border-radius: 99px; padding: 9px 20px; font-weight: 700; text-decoration: none; box-shadow: 0 4px 0 var(--line); transition: transform .2s, box-shadow .2s; }
.cats a:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--line); }
.cats a[aria-current] { background: var(--green); color: #fff; box-shadow: 0 4px 0 var(--green-d); }
.cats small { margin-left: 6px; font-size: 12px; opacity: .7; }

/* 見出し（一覧の上） */
.sec-title { display: flex; align-items: center; justify-content: center; gap: 12px; margin: clamp(40px, 6vw, 70px) 0 0; font-weight: 900; font-size: clamp(20px, 2.4vw, 28px); text-align: center; }
.sec-title::before, .sec-title::after { content: ""; width: 12px; height: 12px; border-radius: 0 100% 0 100%; background: var(--green); }
.sec-title::after { transform: scaleX(-1); }
.sec-title sup { font-size: 13px; color: var(--mute); }

/* 記事の一覧：丸いお皿の写真 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 44px 30px; margin: 0; padding: 40px var(--pad) 40px; list-style: none; max-width: 1280px; margin-inline: auto; }
.card a { display: block; text-align: center; text-decoration: none; }
.card .ph { width: 78%; margin: 0 auto; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #f3e9cf; box-shadow: 0 0 0 8px #fff, 0 16px 30px -14px rgba(80, 60, 20, .4); transition: transform .6s var(--pop), box-shadow .4s; }
.card a:hover .ph { transform: scale(1.05) rotate(-4deg); box-shadow: 0 0 0 8px var(--yellow), 0 20px 34px -14px rgba(80, 60, 20, .45); }
.card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card .cat { display: inline-block; margin-top: 18px; background: var(--yellow); border-radius: 99px; padding: 2px 12px; font-size: 12px; font-weight: 700; }
.card h3 { margin: 10px 0 0; font-weight: 700; font-size: 16px; line-height: 1.7; }
.card time { display: block; margin-top: 4px; font-size: 12px; color: #a49b80; }

/* ページ送り */
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 10px var(--pad) 40px; }
.pager a, .pager span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 99px; background: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 4px 0 var(--line); }
.pager [aria-current] { background: var(--green); color: #fff; box-shadow: 0 4px 0 var(--green-d); }

/* 自己紹介の帯 */
.me { position: relative; isolation: isolate; max-width: 1000px; margin: 40px auto 70px; padding: clamp(32px, 5vw, 60px); background: #fff; border-radius: 40px; text-align: center; }
.me::before { content: ""; position: absolute; z-index: -1; right: -18px; top: -18px; width: 70px; aspect-ratio: 1; border-radius: 50%; background: var(--yellow); }
.me p { margin: 0; font-weight: 700; font-size: clamp(16px, 2vw, 20px); line-height: 2; }
.me .who { margin-top: 14px; color: var(--green); font-weight: 900; font-size: 15px; }
.me a.more { display: inline-block; margin-top: 18px; background: var(--green); color: #fff; border-radius: 99px; padding: 8px 22px; font-size: 14px; text-decoration: none; box-shadow: 0 4px 0 var(--green-d); }

/* 一覧ページ（カテゴリー・タグ・2ページ目以降）の頭 */
.list-head { position: relative; isolation: isolate; text-align: center; padding: 30px var(--pad) 0; }
.list-head .b1 { width: 160px; height: 160px; right: 8vw; top: -20px; background: var(--yellow); }
.list-head .b2 { width: 70px; height: 70px; left: 10vw; top: 40px; background: var(--leaf); }
.crumbs { font-size: 12px; color: var(--mute); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.list-head h1 { margin: 10px 0 0; font-weight: 900; font-size: clamp(28px, 4vw, 46px); line-height: 1.4; }
.list-head h1 sup { font-size: 14px; color: var(--mute); margin-left: 6px; }

/* 記事ページ */
.post-head { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: clamp(20px, 4vw, 50px); max-width: 1080px; margin: 0 auto; padding: 20px var(--pad) 30px; }
.post-head .b1 { width: 260px; height: 260px; right: -40px; top: -40px; background: var(--yellow); }
.post-head .b2 { width: 60px; height: 60px; left: 0; bottom: 0; background: var(--leaf); }
.post-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.post-cats a { display: inline-block; background: var(--yellow); border-radius: 99px; padding: 2px 12px; font-size: 12px; font-weight: 700; text-decoration: none; }
.post-head h1 { margin: 12px 0 0; font-weight: 900; font-size: clamp(24px, 3.4vw, 40px); line-height: 1.5; }
.post-head time { display: block; margin-top: 10px; font-size: 13px; color: var(--mute); }
.post-plate { width: clamp(150px, 26vw, 320px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 12px #fff, 0 30px 50px -20px rgba(80, 60, 20, .45); animation: pop .9s var(--pop) backwards .15s; }
.post-plate img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-body { max-width: 780px; margin: 20px auto 0; padding: clamp(24px, 5vw, 56px); background: #fff; border-radius: 32px; }
.read-bar { position: fixed; z-index: 50; left: 0; top: 0; height: 4px; width: 100%; background: var(--green); transform: scaleX(0); transform-origin: left; }

/* 本文 */
.content { font-size: 16px; line-height: 1.95; overflow-wrap: anywhere; }
.content > :first-child { margin-top: 0; }
.content p { margin: 0 0 1.1em; }
.content img { display: block; height: auto; margin: 0 auto; border-radius: 16px; }
.content a { color: var(--green-d); text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.content a:has(> img) { display: block; text-decoration: none; }
.content h2 { margin: 2.2em 0 1em; padding: .5em 1em; background: var(--green); color: #fff; border-radius: 99px; font-weight: 900; font-size: clamp(18px, 2.4vw, 22px); line-height: 1.5; }
.content h3 { position: relative; margin: 2em 0 .8em; padding-left: 1.3em; font-weight: 900; font-size: clamp(17px, 2.2vw, 20px); line-height: 1.55; }
.content h3::before { content: ""; position: absolute; left: 0; top: .35em; width: .8em; height: .8em; border-radius: 0 100% 0 100%; background: var(--green); }
.content h5 { margin: 1.6em 0 .6em; font-weight: 900; font-size: 16px; color: var(--green-d); }
.content strong { font-weight: 900; background: linear-gradient(transparent 62%, var(--yellow) 62%); }
.content ul, .content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.content li { margin: .3em 0; }
.content li::marker { color: var(--green); }
/* 材料の箇条書き：レシピのカードのように */
.content .ingredient_row > ul { list-style: none; margin: 0 0 1.4em; padding: 18px 24px; background: #fdf3d6; border-radius: 20px; }
.content .ingredient_row > ul > li { display: flex; justify-content: space-between; gap: 1em; margin: 0; padding: .45em 0; border-bottom: 1px dashed #e6cf96; }
.content .ingredient_row > ul > li:last-child { border-bottom: 0; }
.content .ingredient_row .name { font-weight: 700; }
.content .ingredient_row .ingredient_row, .content .ingredient_quantity { display: contents; }
/* Amazon の商品の札 */
.content .babylink-box { display: flex; gap: 16px; align-items: flex-start; margin: 1.4em 0 !important; padding: 16px; background: #fff8e8; border: 2px solid var(--line); border-radius: 20px; font-size: 14px !important; line-height: 1.7; }
.content .babylink-image { float: none !important; flex: none; margin: 0 !important; }
.content .babylink-image img { border-radius: 10px; }
.content .babylink-title { font-weight: 700; font-size: 15px; line-height: 1.6 !important; }
.content .babylink-manufacturer { color: var(--mute); font-size: 12px; }
.content .booklink-footer { display: none; }
.content iframe { display: block; width: 100%; max-width: 100%; min-height: 300px; border: 0; border-radius: 16px; }
.content table { border-collapse: collapse; margin: 1.4em 0; }
.content td, .content th { border: 1px solid var(--line); padding: .5em .8em; }

/* 記事の下：前後の記事・同じカテゴリーの記事 */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin: 50px auto 0; padding: 0 var(--pad); }
.post-nav a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: #fff; border-radius: 99px; text-decoration: none; font-weight: 700; font-size: 14px; line-height: 1.5; box-shadow: 0 4px 0 var(--line); }
.post-nav a:hover { box-shadow: 0 4px 0 var(--yellow); }
.post-nav img { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.post-nav small { display: block; color: var(--green); font-size: 12px; }
.post-nav .next { flex-direction: row-reverse; text-align: right; grid-column: 2; }

/* フッター */
.site-footer { position: relative; isolation: isolate; overflow: hidden; margin-top: 60px; padding: 60px var(--pad) 30px; background: var(--green); color: #fff; text-align: center; border-radius: 50% 50% 0 0 / 60px 60px 0 0; }
.site-footer .brand { color: #fff; font-size: 22px; }
.site-footer .brand::before { background: var(--yellow); }
.site-footer .tag { margin: 10px 0 0; font-size: 13px; opacity: .85; letter-spacing: .1em; }
.foot-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 24px 0 0; padding: 0; list-style: none; font-weight: 700; font-size: 14px; }
.foot-cats a, .foot-links a { text-decoration: none; }
.foot-cats a:hover, .foot-links a:hover { text-decoration: underline; }
.foot-links { display: flex; justify-content: center; gap: 18px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 13px; opacity: .9; }
.site-footer .copy { margin: 26px 0 0; font-size: 12px; opacity: .7; }
.site-footer .f1 { width: 220px; height: 220px; left: -60px; bottom: -80px; background: #6f9c4a; }
.site-footer .f2 { width: 120px; height: 120px; right: 6vw; top: 30px; background: #6f9c4a; }

/* 見つからないページ */
.nf { position: relative; isolation: isolate; text-align: center; padding: 60px var(--pad) 40px; }
.nf .plate { display: grid; place-items: center; width: clamp(180px, 34vw, 300px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; background: #fff; box-shadow: 0 0 0 12px #f3e9cf, 0 30px 50px -20px rgba(80, 60, 20, .35); font-weight: 900; font-size: clamp(44px, 8vw, 80px); color: var(--green); }
.nf h1 { margin: 34px 0 0; font-size: clamp(20px, 2.6vw, 28px); }
.nf p { color: var(--mute); }
.nf .b1 { width: 200px; height: 200px; right: 12vw; top: 20px; background: var(--yellow); }
.nf .b2 { width: 90px; height: 90px; left: 14vw; bottom: 30px; background: var(--leaf); }
.btn { display: inline-block; margin-top: 18px; background: var(--green); color: #fff; border-radius: 99px; padding: 10px 26px; font-weight: 700; text-decoration: none; box-shadow: 0 4px 0 var(--green-d); }

/* 出現（JS が動いたときだけ） */
.js [data-in] { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform 1.1s var(--ease); }
.js [data-in].in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 10px; }
  .hero .b1 { width: 70vw; height: 70vw; }
  .site-nav { gap: 12px; font-size: 13px; }
  .brand small { display: none; }
  .grid { grid-template-columns: 1fr 1fr; gap: 30px 14px; }
  .card h3 { font-size: 14px; }
  .post-head { grid-template-columns: 1fr; text-align: center; }
  .post-head .post-cats { justify-content: center; }
  .post-plate { margin: 0 auto; order: -1; }
  .post-body { border-radius: 24px; margin-inline: 10px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .blob, .dish, .dish img, .post-plate { animation: none; }
  .dish { transform: none; }
  .js [data-in] { opacity: 1; transform: none; transition: none; }
}
@media print {
  .site-header, .site-footer, .hero, .cats, .post-nav, .read-bar, .blob { display: none !important; }
  body { background: #fff; }
}
.content .sp { height: .6em; margin: 0; }
