/*
Theme Name: MAZDA3 LIFE Original
Theme URI: https://www.mazda3-life.net/
Author: MAZDA3 LIFE
Description: MAZDA3 LIFE専用のオリジナルテーマ。トップ・投稿ページ・カテゴリ一覧を統一したマシーングレー仕様。
Version: 3.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mazda3-life
*/
:root{color-scheme:light}body{margin:0}.post-content{font-size:16px;line-height:1.9}.post-content p{margin:0 0 1.25em}.post-content h2{scroll-margin-top:30px}.post-content img{max-width:100%;height:auto}.post-content figure{max-width:100%}.post-content a{color:#225679;text-decoration:underline}.post-content ul,.post-content ol{padding-left:1.5em}.post-content blockquote{border-left:3px solid #757b7e;padding-left:1.5em}.pagination{margin-top:30px}.category-label{position:absolute;bottom:9px;left:9px;background:rgba(20,23,26,.78);color:white;padding:5px 8px;font-size:11px}.hero-image{width:100%;height:100%;object-fit:cover}.post-content h2{font-size:1.5em}.post-content h3{font-size:1.24em}.post-content .wp-block-image img{border-radius:8px}

/* v2: consistent common header across home and posts */
.header .head{box-sizing:border-box;max-width:1180px;width:100%;margin-left:auto;margin-right:auto;padding-left:4.2%;padding-right:4.2%;display:flex;justify-content:space-between;align-items:center;gap:16px}
.header .brand{flex:0 1 auto;min-width:0;display:flex;flex-direction:column;white-space:nowrap;text-decoration:none}
.header .brand strong{font-size:clamp(22px,2.15vw,29px);line-height:1.2;letter-spacing:.11em}
.header .brand small{font-size:clamp(8px,.75vw,10px);letter-spacing:.03em}
.header .menu{white-space:nowrap;word-break:keep-all;writing-mode:horizontal-tb;flex:0 0 auto;min-width:108px;max-width:none;line-height:1.3;text-align:center;align-items:center;justify-content:center}
@media(max-width:760px){.header .head{padding-left:5%;padding-right:5%;gap:8px}.header .brand strong{font-size:clamp(19px,5vw,24px)}.header .brand small{font-size:clamp(7px,1.8vw,9px)}.header .menu{display:inline-flex!important;font-size:13px;padding:9px 11px;min-width:92px}.header .nav{max-height:calc(100vh - 67px);overflow-y:auto}}
@media(max-width:365px){.header .brand strong{font-size:19px;letter-spacing:.07em}.header .brand small{font-size:7px}.header .menu{min-width:82px;padding:8px 7px;font-size:12px}}
/* v2: modest WordPress content tables */
.post-content table{width:100%;border-collapse:collapse;font-size:13px!important;line-height:1.5!important;margin:16px 0!important;background:#fff}
.post-content table th,.post-content table td{padding:8px 11px!important;border:1px solid #e0e3e5!important;vertical-align:top;overflow-wrap:anywhere}
.post-content table th{background:#edf0f1;color:#2e3437;font-weight:600}
.post-content table tr:nth-child(even) td{background:#f7f8f8}
.post-content .wp-block-table{overflow-x:auto;max-width:100%;margin:16px 0}
.post-content .wp-block-table table{width:100%;min-width:440px;table-layout:auto}
@media(max-width:600px){.post-content table{font-size:12px!important}.post-content table th,.post-content table td{padding:7px 9px!important}}
/* v2: used-market box */
.ml-used-market{margin:18px 0 48px;padding:25px 27px;background:linear-gradient(125deg,#292d30,#202326);border:1px solid #53585b;border-radius:13px;color:#f8f8f8;box-shadow:0 12px 28px #0002}
.ml-used-market__head{display:flex;align-items:center;justify-content:space-between;gap:22px}
.ml-used-market__kicker{font-size:11px;letter-spacing:.13em;color:#b8bdc0}
.ml-used-market h2{font-size:clamp(19px,2.2vw,26px);margin:5px 0!important;color:white}
.ml-used-market p{font-size:14px;line-height:1.8;margin:4px 0;color:#d8dcde}
.ml-used-market__icon{display:grid;place-items:center;width:105px;height:75px;flex:none;border-radius:8px;background:#484d50;color:#fff;font-size:36px}
.ml-used-market__bottom{display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between;border-top:1px solid #656b6e;margin-top:19px;padding-top:17px}
.ml-used-market__links{display:flex;flex-wrap:wrap;gap:9px}
.ml-used-market__links a{display:inline-block;border:1px solid #9ba1a4;border-radius:5px;color:white;text-decoration:none;padding:9px 13px;font-size:12px;font-weight:600}
.ml-used-market__links a:hover,.ml-used-market__links a:focus{background:#fff;color:#202326}
.ml-used-market__note{font-size:11px!important;color:#b9bfc2!important;margin-top:12px!important}
@media(max-width:600px){.ml-used-market{padding:18px 16px;margin-bottom:28px}.ml-used-market__icon{width:66px;height:60px;font-size:28px}.ml-used-market__links{width:100%}.ml-used-market__links a{flex:1;text-align:center}}

/* v3 / shared content primitives; part of installed theme, not Additional CSS */
.post-content{font-size:16px;line-height:1.85;overflow-wrap:break-word}
.post-content .wp-block-table{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.post-content .wp-block-table table{min-width:0;width:100%}
.post-content table{table-layout:auto;max-width:100%}
.post-content table th,.post-content table td{overflow-wrap:anywhere;word-break:normal}
@media(max-width:600px){.post-content{font-size:16px;line-height:1.85}.post-content .wp-block-table{overflow-x:auto}.post-content .wp-block-table table{min-width:440px}.post-content table{font-size:12px!important}.post-content table th,.post-content table td{padding:7px 8px!important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* v3.1: WordPress admin toolbar must not cover sticky site header. */
@media(min-width:783px){body.admin-bar .header{top:32px!important}}
@media(max-width:782px){body.admin-bar .header{top:46px!important}}
/* v3.1: article body typography is controlled here in the theme, not Additional CSS. */
@media(max-width:760px){
 .bodycard.post-content p,.bodycard.post-content li{font-size:16px!important;line-height:1.78!important}
 .bodycard.post-content p{margin-bottom:1.05em!important}
 .bodycard.post-content h2{line-height:1.48;margin-top:1.45em}
 .bodycard.post-content h3{margin-top:1.2em}
}
