/*
Theme Name: Apron Days テーマ
Theme URI: https://www.apron-days.com/
Description: 「Apron Days」専用テーマ。現役ハンドメイド作家Erinoaがメルカリ副業のノウハウ（始め方・売り方・価格設定・梱包発送・確定申告）を発信。E-E-A-T重視（運営者プロフィール・公開/更新日・免責・パンくず・関連記事）。SEOメタ/構造化データはRank Mathに一任。温かみのあるテラコッタ＋クリーム配色。
Author: Erinoa
Version: 1.0.0
*/

/* ===== Design Tokens ===== */
:root{
  --accent:#d96e4a; --accent-dark:#bd5836; --accent-soft:#fbeee7;
  --gold:#c39a4f; --ink:#3b352f; --muted:#8c8278; --link:#b35636;
  --bg:#faf6f1; --card:#fff; --border:#ece3d8; --soft:#f7f0e7;
  --radius:14px; --shadow:0 2px 8px rgba(80,55,35,.06);
}
*{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP",Meiryo,sans-serif;
  font-size:16px; line-height:1.9; -webkit-font-smoothing:antialiased;
}
img{max-width:100%; height:auto; display:block;}
a{color:var(--link); text-decoration:none;}
a:hover{text-decoration:underline;}
h1,h2,h3,h4{line-height:1.45; color:var(--ink);}

/* ===== Notice bar ===== */
.notice-bar{background:var(--soft); color:#7a6e60; text-align:center; font-size:12.5px; padding:7px 12px; border-bottom:1px solid var(--border);}

/* ===== Header ===== */
.site-header{background:#fff; border-bottom:1px solid var(--border);}
.header-inner{max-width:1120px; margin:0 auto; padding:16px; display:flex; align-items:center; gap:18px; flex-wrap:wrap;}
.site-brand{margin-right:auto; display:flex; flex-direction:column; gap:2px;}
.site-title{font-size:25px; font-weight:800; margin:0; letter-spacing:.01em;}
.site-title a{color:var(--ink); display:inline-flex; align-items:center; gap:8px;}
.site-title a:hover{text-decoration:none; color:var(--accent);}
.site-title .dot{width:11px; height:11px; border-radius:50%; background:var(--accent); display:inline-block;}
.site-desc{font-size:12px; color:var(--muted); margin:0;}
.header-search form{display:flex;}
.header-search input[type="search"]{border:1px solid var(--border); background:var(--soft); padding:9px 13px; font-size:14px; border-radius:22px 0 0 22px; outline:none; width:220px; max-width:44vw; color:var(--ink);}
.header-search button{border:0; background:var(--accent); color:#fff; padding:0 18px; font-weight:700; border-radius:0 22px 22px 0; cursor:pointer; font-size:14px;}
.header-search button:hover{background:var(--accent-dark);}

/* ===== Global nav ===== */
.global-nav{background:#fff; border-bottom:1px solid var(--border);}
.nav-inner{max-width:1120px; margin:0 auto; display:flex; flex-wrap:wrap; padding:0 8px;}
.nav-inner a{color:var(--ink); font-size:14px; font-weight:600; padding:13px 16px; display:block; border-bottom:3px solid transparent;}
.nav-inner a:hover,.nav-inner a.current{color:var(--accent); border-bottom-color:var(--accent); text-decoration:none;}

/* ===== Hero (front page) ===== */
.hero{background:linear-gradient(120deg,#fbeee7,#f9e6d8 55%,#fdf6ee); border-bottom:1px solid var(--border);}
.hero-inner{max-width:1120px; margin:0 auto; padding:46px 16px; display:flex; align-items:center; gap:30px; flex-wrap:wrap;}
.hero-text{flex:1; min-width:280px;}
.hero-badge{display:inline-block; background:#fff; color:var(--accent-dark); border:1px solid var(--border); font-size:12px; font-weight:700; padding:4px 12px; border-radius:20px; margin-bottom:14px;}
.hero h1{font-size:34px; font-weight:800; line-height:1.4; margin:0 0 14px;}
.hero h1 em{font-style:normal; color:var(--accent); }
.hero p{font-size:15px; color:#6c6157; margin:0 0 20px; line-height:1.9;}
.hero .hero-cta{display:inline-block; background:var(--accent); color:#fff; font-weight:700; padding:12px 26px; border-radius:26px; font-size:15px;}
.hero .hero-cta:hover{background:var(--accent-dark); text-decoration:none;}
.hero-art{width:230px; flex-shrink:0; text-align:center; font-size:90px; line-height:1;}
@media(max-width:720px){ .hero-art{display:none;} .hero h1{font-size:26px;} }

/* ===== Layout ===== */
.container{max-width:1120px; margin:0 auto; padding:0 16px;}
.breadcrumb{font-size:12.5px; color:var(--muted); padding:13px 0;}
.breadcrumb a{color:var(--link);}
.breadcrumb span+span::before{content:"›"; margin:0 7px; color:#cbbfb2;}
.content-wrap{display:flex; gap:30px; align-items:flex-start; padding-bottom:44px;}
.main-col{flex:1; min-width:0;}
.sidebar{width:320px; flex-shrink:0; position:sticky; top:12px;}

/* ===== Section title ===== */
.section-title{font-size:20px; font-weight:800; margin:6px 0 20px; display:flex; align-items:center; gap:10px;}
.section-title::before{content:""; width:8px; height:22px; background:var(--accent); border-radius:4px;}
.section-title .count{font-size:13px; color:var(--muted); font-weight:600;}

/* ===== Cards ===== */
.post-list{display:grid; grid-template-columns:1fr 1fr; gap:22px;}
.post-card{background:var(--card); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); display:flex; flex-direction:column; transition:.15s;}
.post-card:hover{box-shadow:0 8px 22px rgba(80,55,35,.12); transform:translateY(-2px);}
.post-card a.thumb{display:block; aspect-ratio:16/9; background:var(--soft); overflow:hidden;}
.post-card a.thumb img{width:100%; height:100%; object-fit:cover;}
.post-card .no-thumb{width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:34px;}
.post-card .card-body{padding:14px 16px 16px; display:flex; flex-direction:column; gap:9px;}
.cat-badge{display:inline-block; background:var(--accent-soft); color:var(--accent-dark); font-size:11.5px; font-weight:700; padding:3px 11px; border-radius:20px; align-self:flex-start;}
.cat-badge:hover{background:var(--accent); color:#fff; text-decoration:none;}
.post-card h2,.post-card h3{font-size:16px; margin:0; line-height:1.55;}
.post-card h2 a,.post-card h3 a{color:var(--ink);}
.post-card h2 a:hover,.post-card h3 a:hover{color:var(--accent);}
.post-card .excerpt{font-size:13px; color:var(--muted); margin:0; line-height:1.7;}
.post-card .date{font-size:12px; color:#a89c8f; margin-top:auto;}

/* ===== Single ===== */
.article{background:var(--card); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden;}
.article-head{padding:24px 28px 0;}
.article-head .cat-badge{margin-bottom:12px;}
.article-title{font-size:27px; font-weight:800; line-height:1.5; margin:0 0 14px;}
.article-meta{display:flex; flex-wrap:wrap; gap:16px; font-size:12.5px; color:var(--muted); border-top:1px solid var(--border); padding:12px 0; margin-top:4px;}
.article-meta .author{color:var(--accent-dark); font-weight:700;}
.featured img{width:100%;}
.entry-content{padding:10px 28px 28px; font-size:16.5px; line-height:1.95;}
.entry-content>*{margin:0 0 1.2em;}
.entry-content h2{font-size:22px; font-weight:800; margin:1.8em 0 .9em; padding:11px 16px; background:var(--soft); border-left:6px solid var(--accent); border-radius:0 8px 8px 0;}
.entry-content h3{font-size:18.5px; font-weight:700; margin:1.6em 0 .7em; padding-bottom:6px; border-bottom:2px solid var(--border);}
.entry-content h4{font-size:16.5px; font-weight:700; margin:1.4em 0 .6em;}
.entry-content a{color:var(--link); text-decoration:underline;}
.entry-content ul,.entry-content ol{padding-left:1.5em;}
.entry-content li{margin:.4em 0;}
.entry-content img{border-radius:10px; margin:1em auto;}
.entry-content blockquote{margin:1.4em 0; padding:12px 18px; background:var(--soft); border-left:4px solid var(--gold); border-radius:0 8px 8px 0; color:#5f564c;}
.entry-content table{border-collapse:collapse; width:100%; font-size:14.5px; margin:1.2em 0;}
.entry-content th,.entry-content td{border:1px solid var(--border); padding:9px 12px; text-align:left;}
.entry-content th{background:var(--accent); color:#fff;}
.entry-content tr:nth-child(even) td{background:#fdfaf6;}
.entry-content strong{color:var(--accent-dark);}
.entry-content .disclaimer,.disclaimer-box{background:#fdf6ec; border:1px solid #ecd9b3; border-left:4px solid var(--gold); border-radius:0 8px 8px 0; padding:12px 16px; font-size:13.5px; color:#6e5c33; line-height:1.8;}

/* ===== Author box (Erinoa) ===== */
.author-box{display:flex; gap:15px; align-items:flex-start; margin:24px 28px; padding:18px; background:var(--soft); border:1px solid var(--border); border-radius:var(--radius);}
.author-box .avatar{width:58px; height:58px; border-radius:50%; background:linear-gradient(135deg,var(--accent),var(--gold)); color:#fff; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:24px; font-weight:800;}
.author-box .a-name{font-weight:800; font-size:15px; margin:0 0 5px;}
.author-box .a-name small{font-weight:600; color:var(--muted); font-size:11.5px; margin-left:6px;}
.author-box .a-desc{font-size:12.5px; color:#6c6157; margin:0; line-height:1.8;}

/* ===== Related ===== */
.related{margin-top:30px;}
.related-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:14px;}
.related-item{background:var(--card); border:1px solid var(--border); border-radius:10px; overflow:hidden; display:block; box-shadow:var(--shadow);}
.related-item:hover{text-decoration:none; box-shadow:0 6px 16px rgba(80,55,35,.12);}
.related-item .r-thumb{aspect-ratio:16/9; background:var(--soft); overflow:hidden;}
.related-item .r-thumb img{width:100%; height:100%; object-fit:cover;}
.related-item .r-title{padding:9px 11px; font-size:12.5px; color:var(--ink); line-height:1.55;}

/* ===== Share ===== */
.share-buttons{display:flex; gap:8px; flex-wrap:wrap; padding:0 28px 10px;}
.share-buttons a{flex:1; min-width:92px; text-align:center; color:#fff; font-size:13px; font-weight:700; padding:9px; border-radius:22px;}
.share-buttons a:hover{opacity:.9; text-decoration:none;}
.share-x{background:#111;} .share-fb{background:#1877f2;} .share-line{background:#06c755;} .share-pin{background:#e60023;}

/* ===== Sidebar ===== */
.widget{background:var(--card); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); margin-bottom:24px; overflow:hidden;}
.widget-title{background:var(--soft); color:var(--ink); font-size:14px; font-weight:800; padding:12px 16px; border-bottom:1px solid var(--border); display:flex; align-items:center; gap:8px;}
.widget-body{padding:16px;}
.profile-box{text-align:center;}
.profile-box .p-avatar{width:72px; height:72px; border-radius:50%; background:linear-gradient(135deg,var(--accent),var(--gold)); color:#fff; margin:0 auto 10px; display:flex; align-items:center; justify-content:center; font-size:30px; font-weight:800;}
.profile-box .p-name{font-weight:800; margin:0 0 3px;}
.profile-box .p-role{font-size:12px; color:var(--accent-dark); font-weight:700; margin:0 0 10px;}
.profile-box .p-desc{font-size:12.5px; color:#6c6157; line-height:1.85; margin:0 0 12px; text-align:left;}
.profile-stats{display:flex; gap:8px; margin:0 0 12px;}
.profile-stats .stat{flex:1; background:var(--soft); border-radius:10px; padding:8px 4px;}
.profile-stats .s-val{font-weight:800; color:var(--accent-dark); font-size:16px;}
.profile-stats .s-lbl{font-size:10.5px; color:var(--muted);}
.profile-box .p-link{display:inline-block; font-size:12.5px; color:#fff; background:var(--accent); padding:7px 18px; border-radius:20px; font-weight:700;}
.profile-box .p-link:hover{background:var(--accent-dark); text-decoration:none;}
.rank-list{list-style:none; margin:0; padding:0;}
.rank-item{display:flex; gap:10px; padding:10px 0; border-bottom:1px dashed var(--border); align-items:flex-start;}
.rank-item:last-child{border-bottom:0;}
.rank-num{width:22px; height:22px; border-radius:50%; background:#cdbfb0; color:#fff; font-size:12px; font-weight:800; display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-top:2px;}
.rank-item:nth-child(1) .rank-num{background:var(--gold);} .rank-item:nth-child(2) .rank-num{background:#b9b1a6;} .rank-item:nth-child(3) .rank-num{background:#cf9a6e;}
.rank-thumb{width:58px; height:43px; object-fit:cover; border-radius:6px; flex-shrink:0;}
.rank-title{font-size:12.5px; line-height:1.55; color:var(--ink);}
.cat-links{list-style:none; margin:0; padding:0;}
.cat-links li{border-bottom:1px solid var(--border);}
.cat-links li:last-child{border-bottom:0;}
.cat-links a{display:flex; justify-content:space-between; padding:9px 2px; color:var(--ink); font-size:13.5px;}
.cat-links a:hover{color:var(--accent); text-decoration:none;}
.cat-links .c-count{background:var(--soft); color:var(--muted); font-size:11px; border-radius:10px; padding:1px 9px;}

/* ===== Pagination ===== */
.pagination{display:flex; justify-content:center; gap:6px; flex-wrap:wrap; margin:28px 0;}
.pagination .page-numbers{min-width:38px; height:38px; display:flex; align-items:center; justify-content:center; background:var(--card); border:1px solid var(--border); border-radius:8px; color:var(--ink); font-size:14px; font-weight:600;}
.pagination .page-numbers.current{background:var(--accent); border-color:var(--accent); color:#fff;}
.pagination a.page-numbers:hover{border-color:var(--accent); color:var(--accent); text-decoration:none;}

/* ===== Page / 404 ===== */
.page-wrap{background:var(--card); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); padding:28px;}
.page-wrap h1{font-size:26px; margin:0 0 18px;}
.empty-box{background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:40px 24px; text-align:center; color:var(--muted);}

/* ===== Footer ===== */
.site-footer{background:#fff; border-top:3px solid var(--accent); margin-top:24px;}
.footer-inner{max-width:1120px; margin:0 auto; padding:26px 16px 18px;}
.footer-brand{text-align:center; font-weight:800; font-size:18px; margin-bottom:10px;}
.footer-links{display:flex; flex-wrap:wrap; gap:16px; justify-content:center; margin-bottom:14px;}
.footer-links a{color:#6c6157; font-size:13px;}
.footer-disclaimer{font-size:11.5px; color:#a89c8f; text-align:center; line-height:1.8; max-width:760px; margin:0 auto 12px;}
.footer-copy{text-align:center; font-size:12px; color:#a89c8f; border-top:1px solid var(--border); padding-top:12px;}

/* ===== Scroll top ===== */
#to-top{position:fixed; right:16px; bottom:16px; width:44px; height:44px; background:var(--accent); color:#fff; border-radius:50%; display:none; align-items:center; justify-content:center; font-size:18px; cursor:pointer; z-index:99; box-shadow:0 3px 10px rgba(80,55,35,.3);}
#to-top.show{display:flex;}

#ez-toc-container,.ez-toc-container{width:100%!important; max-width:100%!important; box-sizing:border-box;}

/* ===== Responsive ===== */
@media(max-width:880px){
  .content-wrap{flex-direction:column;}
  .sidebar{width:100%; position:static;}
  .post-list{grid-template-columns:1fr;}
  .related-grid{grid-template-columns:1fr 1fr;}
  .site-title{font-size:21px;}
  .header-search{width:100%;}
  .header-search input[type="search"]{flex:1; max-width:none; width:auto;}
  .article-title{font-size:22px;}
  .entry-content,.article-head{padding-left:16px; padding-right:16px;}
  .author-box,.share-buttons{margin-left:16px; margin-right:16px;}
}
html,body{overflow-x:hidden;}
