/* ブログ専用。既存サイトのCSSより後に読み込んでください。 */
.blog-page { color: #333; }
.blog-width { width: min(900px, calc(100% - 32px)); margin: 0 auto; box-sizing: border-box; }
.blog-hero { margin-top: 16px; padding: 30px 0 32px; background: #46c1d7; border-bottom: 1px solid #009CBD; }
.blog-eyebrow { margin: 0 0 6px; font: bold 11px Arial, sans-serif; letter-spacing: .16em; color: #fff; }
.blog-hero h1 { margin: 0; color: #fff; font-size: 28px; line-height: 1.5; }
.blog-hero p:last-child { margin: 10px 0 0; font-size: 13px; line-height: 1.9; }
.blog-breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; padding: 16px 0; font-size: 11px; }
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 24px; align-items: start; padding-bottom: 28px; }
.blog-layout main, .blog-side { min-width: 0; }
.blog-page .blog-layout a, .blog-page .blog-breadcrumb a, .blog-page .blog-top a {color: #009CBD; text-decoration: none; }
.blog-page .blog-layout a:hover, .blog-page .blog-breadcrumb a:hover { text-decoration: underline; }
.blog-card { background: #fff; border: 1px solid #e1ebe4; border-radius: 14px; padding: 25px; box-shadow: 0 4px 18px #386b5710; }
.blog-card h2 { margin: 0 0 14px; color: #009CBD; font-size: 18px; line-height: 1.7; }
.blog-list-heading { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid #009CBD; margin-bottom: 6px; }
.blog-list-heading span { font-size: 11px; color: #6c8178; }
.blog-post { display: grid; grid-template-columns: 142px minmax(0, 1fr); gap: 18px; padding: 24px 0; border-bottom: 1px solid #e1ebe4; scroll-margin-top: 78px; }
.blog-post:last-child { border: 0; padding-bottom: 0; }
.blog-thumb { display: block; }
.blog-thumb img, .no-photo { display: block; width: 100%; height: 106px; object-fit: cover; border-radius: 8px; }
.no-photo { background: #e1f1e5; color: #538375; display: flex; align-items: center; justify-content: center; text-align: center; font: 12px/1.8 Arial,sans-serif; letter-spacing: .12em; }
.blog-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 10px; }
.blog-meta time { color: #009CBD; font: bold 12px Arial,sans-serif; }
.blog-meta span {
    background-color: #E7FAFF;
    color: #009CBD;
    padding: 3px 7px;
    border-radius: 3px;
}
.blog-post h3 { font-size: 17px; line-height: 1.65; margin: 9px 0; overflow-wrap: anywhere; }
.blog-excerpt { margin: 0 0 10px; font-size: 12px; line-height: 1.9; }
.blog-read { font-size: 11px; font-weight: bold; }
.blog-side { display: grid; gap: 18px; }
.blog-side .blog-card { padding: 20px; }
.blog-side h2 { font-size: 15px; padding-bottom: 10px; border-bottom: 1px solid #e1ebe4; }
.blog-side p { font-size: 12px; line-height: 1.9; margin: 0 0 15px; }
.blog-side a { font-size: 12px; }
.archive { padding: 0; margin: 0; list-style: none; }
.archive a { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dotted #dce8df; }
.archive span { color: #7b8e84; }
.blog-page .blog-phone { display: block; font-size: 20px; font-weight: bold; margin-bottom: 14px; white-space: nowrap; }
.blog-page .blog-button { display: inline-block; box-sizing: border-box; padding: 12px 18px; border-radius: 5px; color: #fff!important; background: #009CBD; text-align: center; font-size: 12px; }
.blog-article-head { border-bottom: 1px solid #e1ebe4; margin-bottom: 26px; padding-bottom: 18px; }
.blog-article-head h2 { font-size: 25px; margin: 14px 0 0; line-height: 1.6; overflow-wrap: anywhere; }
.blog-content { font-size: 14px; line-height: 2; overflow-wrap: anywhere; display: flow-root; }
.blog-content p { margin: 0 0 1em; }
.blog-content img { max-width: 100%; height: auto; vertical-align: middle; }
.blog-content img.post-photo { box-sizing: border-box; display: inline-block; margin: 8px 0; border-radius: 8px; height: auto !important; }
.blog-content table { max-width: 100%; }
.blog-neighbors { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; border-top: 1px solid #e1ebe4; margin-top: 30px; padding-top: 20px; }
.blog-neighbors a {font-size: 12px; line-height: 1.8; }
.blog-neighbors a.next{text-align: right;}
.blog-neighbors small { display: block; color: #798c82; margin-bottom: 6px;}
.blog-neighbors a:hover small{text-decoration: none!important;}
.blog-back { margin: 28px 0 0; text-align: center; }
.blog-top { text-align: right; padding-bottom: 22px; font-size: 12px; }
.skip-link { position: fixed; left: 10px; top: -100px; z-index: 10001; padding: 10px; background: white; }
.skip-link:focus { top: 5px; }
.blog-page a:focus-visible, .blog-page button:focus-visible { outline: 3px solid #ad6a26; outline-offset: 3px; }
#nav-toggle { background: transparent; padding: 0; border: 0; }
#header img, #navi img { vertical-align: bottom; }
@media (min-width: 641px) and (max-width: 931px) {
    #seo, #header, #navi { width: 100%; }
    .footer_img p { width: calc(100% - 32px); letter-spacing: 0; }
    .blog-layout { grid-template-columns: minmax(0, 1fr) 210px; gap: 16px; }
    .blog-post { grid-template-columns: 100px minmax(0, 1fr); gap: 12px; }
    .blog-thumb img { height: 85px; }
}
@media (max-width: 640px) {
    .blog-page { padding-top: 60px; padding-bottom: max(64px, calc(13.3vw + env(safe-area-inset-bottom))); }
    .blog-width { width: calc(100% - 28px); }
    .blog-hero { margin-top: 0; padding: 26px 0; }
    .blog-hero h1 { font-size: 24px; }
    .blog-layout { display: block; }
    .blog-card { padding: 18px; border-radius: 10px; }
    .blog-post { grid-template-columns: 88px minmax(0,1fr); gap: 12px; padding: 20px 0; }
    .blog-thumb img, .no-photo { height: 76px; }
    .blog-post h3 { font-size: 15px; }
    .blog-excerpt { display: none; }
    .blog-side { margin-top: 24px; }
    .blog-article-head h2 { font-size: 22px; }
    .blog-content { font-size: 14px; }
    .blog-neighbors { gap: 14px; }
    #global-nav { top: 60px; visibility: hidden; opacity: 0; pointer-events: none; max-height: calc(100dvh - 60px); overflow-y: auto; transition: opacity .2s; }
    #top-head.open #global-nav { top: 60px; visibility: visible; opacity: 1; pointer-events: auto; }
    #global-nav ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 8px; }
    #global-nav ul li, #global-nav ul li:nth-child(even), #global-nav ul li:last-child { box-sizing: border-box; width: auto; float: none; margin: 0; padding: 0 8px; }
    #global-nav ul li:last-child { grid-column: 1 / -1; }
    #top-head #global-nav ul li a { padding: 14px 0; line-height: 1.6; }
    #smp_footer { display: flow-root; }
    #smp_footer li { margin-bottom: 12px; }
    #footerNav { padding-bottom: env(safe-area-inset-bottom); }
}
@media (prefers-reduced-motion: reduce) { #global-nav { transition: none; } }

@media (min-width: 641px) {
    #header { display: grid; grid-template-columns: 658fr 137fr 105fr; }
    #header > a:last-child { grid-column: 1 / -1; }
    #header img { display: block; width: 100%; height: auto; }
    #navi { display: flex; }
    #navi > img:first-child { width: 1.333333%; }
    #navi > a:nth-child(2) { width: 13.111111%; }
    #navi > a:nth-child(n+3):nth-child(-n+6) { width: 14.444444%; }
    #navi > a:nth-child(7) { width: 26.333333%; }
    #navi > img:last-child { width: 1.444444%; }
    #navi img { display: block; width: 100%; height: auto; }
    #navi > img { align-self: start; }
}
