/* ===== おかねのレシピ 記事CSS統合ファイル ===== */

/* ===== Theme Variables ===== */
:root{
  --ink:#2f3543; --head:#2b313d; --muted:#6c7686; --line:#e6e9ee;
  --chip:#5a6f7f; --accent:#e8d8cf; --footer:#8fa7ab;
  --radius:3px; --container:clamp(896px, 92vw, 896px);
}

/* ===== Base Styles ===== */
*{box-sizing:border-box}
html,body{height:100%}
html{scroll-behavior:smooth}
body{
  margin:0; color:var(--ink); background:#fff; line-height:1.7;
  font-family:"Yu Gothic Medium","游ゴシック Medium",YuGothic,"游ゴシック体","ヒラギノ角ゴ Pro W3","メイリオ",sans-serif;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
}
img{display:block; max-width:100%; height:auto}
a{color:inherit; text-decoration:none}
.container{max-width:var(--container) !important; margin-inline:auto; padding-inline:16px}
@media (min-width:1024px){
  .container{ padding-inline:0 }
}

/* ===== Header ===== */
.site-header{position:sticky; top:0; z-index:50; background:#fff; border-bottom:1px solid var(--line)}
.headbar{height:60px; display:flex; align-items:center; justify-content:space-between}
.brand{font-family:"Noto Serif JP",serif; font-weight:600; letter-spacing:.08em}
.gnav{font-size:.92rem}
.gnav-list{list-style:none; margin:0; padding:0; display:flex; gap:26px}
.gnav a:hover{opacity:.75}

/* ===== Hamburger Menu ===== */
.hamburger{
  display:none;
  flex-direction:column;
  gap:4px;
  padding:8px;
  background:none;
  border:none;
  cursor:pointer;
}
.hamburger-line{
  width:20px;
  height:2px;
  background:var(--ink);
  transition:all 0.3s ease;
}
.hamburger.is-open .hamburger-line:nth-child(1){
  transform:rotate(45deg) translate(3px, 1px);
}
.hamburger.is-open .hamburger-line:nth-child(2){
  opacity:0;
}
.hamburger.is-open .hamburger-line:nth-child(3){
  transform:rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation */
@media (max-width:768px){
  .hamburger{display:flex}
  .gnav{
    position:fixed;
    top:60px;
    left:0;
    width:100%;
    background:#fff;
    border-bottom:1px solid var(--line);
    transform:translateY(-100%);
    opacity:0;
    visibility:hidden;
    transition:all 0.3s ease;
    z-index:40;
  }
  .gnav.is-open{
    transform:translateY(0);
    opacity:1;
    visibility:visible;
  }
  .gnav-list{
    flex-direction:column;
    gap:0;
    padding:20px;
  }
  .gnav-list li{
    border-bottom:1px solid var(--line);
  }
  .gnav-list li:last-child{
    border-bottom:none;
  }
  .gnav-list a{
    display:block;
    padding:16px 0;
    font-size:1rem;
  }
}

/* ===== Breadcrumb ===== */
.breadcrumb{ padding:14px 0 8px; font-size:.9rem; color:var(--muted) }
.breadcrumb ol{
  display:flex; align-items:center; gap:0;
  list-style:none; margin:0; padding:0;
  flex-wrap:nowrap; overflow:hidden; min-width:0;
}
.breadcrumb li{ display:flex; align-items:center; white-space:nowrap; min-width:0 }
.breadcrumb li+li::before{ content:"›"; color:#9aa3ad; margin:0 10px; flex:0 0 auto }
.breadcrumb a{ color:inherit; text-decoration:none }
.breadcrumb a:hover{ text-decoration:underline }
.breadcrumb .current{ flex:0 1 auto; color:var(--head); font-weight:600 }
.breadcrumb .current{ max-width:48ch; }
.breadcrumb .current span{ display:inline-block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:48ch }
@media (max-width:640px){
  .breadcrumb{ font-size:.86rem }
  .breadcrumb li:nth-child(2) a{ max-width:none; overflow:visible; text-overflow:clip }
}

/* ===== Main Grid ===== */
.main{padding-block:14px 44px}
.grid{display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:24px}

/* ===== Key Visual ===== */
.key-visual{
  margin:0 0 30px;
  position:relative;
  overflow:hidden;
  border-radius:3px;
  box-shadow:0 2px 12px rgba(0,0,0,0.1);
}
.key-visual img{
  width:100%;
  object-fit:cover;
  display:block;
}

/* ===== Post Header ===== */
.post-head{display:flex; flex-direction:column; gap:10px}
.post-meta{display:flex; gap:.8rem; align-items:center; color:var(--muted); font-size:.9rem}
.post-meta .chip{
    display:inline-flex;
    align-items:center;
    color:#be185d; /* pink-700 */
    background:#fff;
    border:1px solid #fecdd3; /* pink-200 */
    padding:.28rem .9rem;
    border-radius:9999px;
    font-size:.78rem;
    font-weight:600;
    letter-spacing:.02em;
    text-decoration:none;
    transition:background-color .2s ease, transform .15s ease;
}
.post-meta .chip:hover{
    background:#fff1f7;
}

/* キーワードタグ */
.keywords{ display:flex; flex-wrap:wrap; gap:.5rem; margin:8px 0 4px }

.post-title{font-family:"Yu Gothic Medium","游ゴシック Medium",YuGothic,"游ゴシック体",sans-serif; font-weight:700; font-size:clamp(24px,3vw,32px); margin:0; line-height:1.4;margin: 10px 0;}
.post-hero{margin-top:10px; margin-bottom:16px}
.post-hero img{width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:3px}

/* 読了時間表示 */
.reading-time{
  margin:12px 0; 
  padding:13px 12px; 
  background:#e8f4f8; 
  border-left:3px solid #0ea5e9; 
  border-radius:3px; 
  font-size:.9rem; 
  color:#0f4a5c; 
  font-weight:600;
}

.notice{margin:14px 0; padding:20px 14px; background:#fff; border:1px solid var(--line); border-radius:3px; font-size:.95rem; color:var(--muted); line-height:1.6}

/* ===== TOC (Table of Contents) ===== */
.toc-section{
  margin:20px 0;
  border:1px solid var(--line);
  border-radius:3px;
  background:#f9fafb;
  overflow:hidden;
}
.toc-header{
  background:#e8d8cf;
  padding:14px 18px;
  font-weight:700;
  font-size:1.1rem;
  color:var(--head);
  border-bottom:1px solid var(--line);
}
.toc{
  padding:0;
  margin:0;
  list-style:none;
}
.toc-item{
  border-bottom:1px solid var(--line);
  background:#fff;
}
.toc-item:last-child{
  border-bottom:none;
}
.toc-item a{
  display:flex;
  align-items:center;
  padding:16px 18px;
  color:var(--head);
  text-decoration:none;
  transition:background-color 0.2s ease;
}
.toc-item a:hover{
  background:#f8fafc;
}
.toc-number{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  background:#b8a99a;
  color:#fff;
  border-radius:3px;
  font-weight:700;
  font-size:.9rem;
  margin-right:12px;
  flex-shrink:0;
}
.toc-title{
  flex:1;
  font-size:1rem;
  line-height:1.5;
  font-weight:500;
}

/* ===== Post Body ===== */
.post-body h2{ scroll-margin-top:80px }
.post-body{margin-top:24px;font-size:16px; line-height:2}
.post-body h2{
  font-size:18px; font-weight:700; margin:32px 0 16px; color:var(--head);
  background:#f7f7f7; border-left:5px solid var(--accent); padding:.8rem 1rem; border-radius:3px;
  line-height:1.4;
}
.post-body h3{font-size:1.25rem; font-weight:700; margin:24px 0 12px; color:var(--head); line-height:1.4}
.post-body p{margin:0 0 16px; font-size:17px; line-height:1.8}
.post-body ul, .post-body ol{
  margin:0 0 16px; 
  line-height:1.8;
  padding-top: 14px;
  padding-bottom: 14px;
  padding-left: 1.4rem;
}
.post-body li{margin:.4rem 0; font-size:18px}
.post-body blockquote{border-left:4px solid var(--chip); padding:1rem 1.5rem; margin:16px 0; background:#fbfbfb; color:#374151; font-size:16px; line-height:1.7}
.post-body hr{border:none; border-top:1px solid var(--line); margin:24px 0}

/* (装飾簡素化) リスト専用装飾は一旦無効化 */

/* ===== References List ===== */
.list-references{
  padding: 10px !important;
  background-color: #fff !important;
}
.list-references li{
  font-size: 12px;
  padding-left: 0 !important;
}
.list-references li:before{
  content: none !important;
}

/* ===== Author & Post Footer ===== */
.post-foot{margin-top:16px}
.author{display:grid; grid-template-columns:80px 1fr; gap:14px; align-items:center; border:1px solid var(--line); border-radius:3px; padding:14px; background:#fff}
.author img{width:80px; height:80px; object-fit:cover; border-radius:50%}
.author small{color:var(--muted)}
.author a{color:var(--muted); text-decoration:underline}

/* ===== Recommend Section ===== */
.section{margin-top:34px}
.section-head{display:flex; align-items:center; gap:10px; margin-bottom:12px}
.section-head h2{font-weight:700;margin:0;}
.section-head span{color:var(--muted); font-size:.9rem}
.rec-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:18px}
.rec{display:grid; grid-template-columns: 1fr 1fr; gap:14px; align-items:center; border-radius:3px; border:1px solid var(--line); padding:10px}
.rec img{width:100%; aspect-ratio:16/10; object-fit:cover; border-radius:3px}
.rec-meta{font-size:.8rem; color:var(--muted)}
.rec h3{margin:.3rem 0 0; font-weight:600;font-size:16px;}

/* ===== Sidebar ===== */
.sidebar{display:flex; flex-direction:column; gap:22px; min-width:0}
.widget{border:1px solid var(--line); border-radius:3px; background:#fff; padding:18px}
.w-title{margin:0 0 10px; font-weight:700; letter-spacing:.08em; color:#4b5663}
.cat-list{list-style:none; margin:0; padding:0}
.cat-list li{border-bottom:1px solid var(--line)}
.cat-list li:last-child{border-bottom:none}
.cat-list a{display:flex; align-items:center; justify-content:space-between; padding:10px 2px}
.cat-list a::after{content:"›"; color:#9aa4b0}
.search{display:flex; gap:8px}
.search input{flex:1; border:1px solid var(--line); border-radius:3px; padding:.6rem .8rem}
.search button{border:1px solid var(--line); border-radius:3px; padding:.6rem .9rem; background:var(--accent)}
.profile{display:grid; grid-template-columns:84px 1fr; gap:12px; align-items:center}
.profile img{width:84px; height:84px; border-radius:3px; object-fit:cover}

/* ===== Footer ===== */
.site-footer{margin-top:44px; background:var(--footer); color:#fff;font-size: 13px;}
.footer-inner{display:flex; justify-content:space-between; align-items:flex-end; gap:20px; padding:28px 20px;text-align: center;}
.brand--footer{font-family:"Noto Serif JP",serif; font-weight:600; letter-spacing:.08em;margin-top: 0;margin-bottom: 0 !important;}
address{opacity:.9; font-style:normal}

/* ===== Content Styling (装飾・強調系) 最小化 ===== */
/* 意味別の数値強調のみ残す */
.num-percent{ background: linear-gradient(transparent 60%, #fff3bf 0); font-weight:700; }
.num-money{ background: linear-gradient(transparent 60%, #dff5ff 0); font-weight:700; }
.num-ratio{ border-bottom: 2px solid #ffd27a; font-weight:600; }
.num-count{ background: linear-gradient(transparent 60%, #e8ffd6 0); font-weight:600; }

/* ===== Article List Page ===== */
.list{max-width:860px;margin:0 auto;padding:24px}
.item{padding:16px 0;border-bottom:1px solid #e2e8f0}
.meta{color:#64748b;font-size:12px}

/* ===== Responsive Design ===== */
@media (max-width:1100px){
  .grid{grid-template-columns:1fr; gap:26px}
  .rec-grid{grid-template-columns:1fr}
}

@media (max-width:768px){
  .footer-inner{display:block; padding:20px}
  .footer-inner > *{margin-bottom:12px}
  .footer-inner > *:last-child{margin-bottom:0;margin-top: 0;}
}


.category-section {
  padding: 0 0;
}