/*
Theme Name: Shuwakai Renge 2026
Theme URI: https://renge.ed.jp/
Author: Original custom theme for Social Welfare Corporation Shuwakai
Description: Original WordPress theme for the Shuwakai Renge website. Keeps WordPress page and post content editable.
Version: 0.2.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: shuwakai-renge
*/

:root{--green:#70aa4e;--green-dark:#477f35;--green-pale:#eff6e9;--ink:#555;--muted:#888;--line:#e5e9e2;--cream:#fbfcf8;--white:#fff;--shadow:0 5px 22px rgba(61,88,48,.09);--content:1120px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--ink);font-family:"Century Gothic",Meiryo,"メイリオ","Yu Gothic",YuGothic,"Hiragino Kaku Gothic ProN",sans-serif;font-size:15px;line-height:1.9;letter-spacing:.025em;-webkit-font-smoothing:antialiased}
body.menu-open{overflow:hidden}
a{color:var(--green-dark);text-decoration:none;transition:color .2s,background .2s,opacity .2s}
a:hover{color:var(--green);opacity:.82}
img{max-width:100%;height:auto;vertical-align:middle}
button{font:inherit}
.site-shell{overflow:hidden}
.inner{width:min(var(--content),calc(100% - 48px));margin-inline:auto}
.site-header{position:relative;z-index:20;background:#fff;border-bottom:1px solid #e7ece5}
.header-inner{width:calc(100% - 60px);height:80px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:28px}
.site-branding{flex:0 0 230px;line-height:0}
.site-logo img,.custom-logo{display:block;width:230px;max-height:70px;object-fit:contain}
.custom-logo-link{display:inline-block;line-height:0}
.primary-navigation{display:flex;align-items:stretch;align-self:stretch;gap:0}
.primary-navigation .menu{display:flex;align-items:stretch;list-style:none;margin:0;padding:0}
.primary-navigation .menu>li{position:relative;display:flex;align-items:stretch;border-left:1px solid #e8ede7}
.primary-navigation .menu>li:last-child{border-right:1px solid #e8ede7}
.primary-navigation .menu>li>a{display:flex;align-items:center;padding:0 20px;color:#598f43;font-size:13px;font-weight:700;white-space:nowrap}
.primary-navigation .menu>li>a:hover,.primary-navigation .current-menu-item>a{background:#f1f7ed;color:var(--green-dark)}
.primary-navigation .menu-item-has-children>a:after{content:"⌄";font-size:14px;margin-left:8px;color:#9cae91}
.primary-navigation .sub-menu{position:absolute;top:100%;left:0;display:none;min-width:220px;margin:0;padding:8px 0;list-style:none;background:#fff;box-shadow:var(--shadow);border-top:2px solid var(--green)}
.primary-navigation li:hover>.sub-menu,.primary-navigation li:focus-within>.sub-menu{display:block}
.primary-navigation .sub-menu a{display:block;padding:9px 17px;color:#60735a;font-size:13px;line-height:1.55}
.primary-navigation .sub-menu a:hover{background:var(--green-pale)}
.header-search{width:42px;display:grid;place-items:center;color:var(--green-dark)}
.header-search span{position:relative;width:13px;height:13px;border:2px solid currentColor;border-radius:50%}
.header-search span:after{content:"";position:absolute;width:7px;height:2px;right:-6px;bottom:-3px;background:currentColor;transform:rotate(45deg);transform-origin:left center}
.menu-toggle{display:none}

.hero{position:relative;width:100%;background:#f6f7f3;overflow:hidden}
.hero-slides{position:relative;width:100%;aspect-ratio:3.7/1;min-height:220px;max-height:390px}
.hero-slide{position:absolute;inset:0;display:block;opacity:0;pointer-events:none;transition:opacity .8s ease}
.hero-slide.is-active{opacity:1;pointer-events:auto;z-index:1}
.hero-slide img{display:block;width:100%;height:100%;object-fit:cover}
.hero-arrow{position:absolute;z-index:2;top:50%;width:48px;height:78px;padding:0;border:0;border-radius:0;background:rgba(255,255,255,.65);color:#777;font-size:38px;line-height:1;transform:translateY(-50%);cursor:pointer}
.hero-arrow--prev{left:0}.hero-arrow--next{right:0}
.hero-pagination{position:absolute;z-index:3;left:50%;bottom:18px;display:flex;gap:9px;transform:translateX(-50%)}
.hero-dot{width:9px;height:9px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.72);box-shadow:0 1px 4px rgba(0,0,0,.22);cursor:pointer}
.hero-dot.is-active{background:var(--green-dark)}

.facilities-section{padding:118px 0 70px;background:#fff}
.section-heading{text-align:center;margin:0 auto 48px}
.section-heading .eyebrow,.eyebrow{display:none;margin:0 0 3px;color:#91b77d;font-family:Georgia,serif;font-size:11px;letter-spacing:.23em;line-height:1.5}
.section-heading h1,.section-heading h2{margin:0;color:#555;font-size:32px;font-weight:500;letter-spacing:.06em;line-height:1.5}
.heading-flourish{display:none;color:#b5d39f;font-size:16px;line-height:1;margin-top:8px}
.facility-carousel{position:relative;width:100%;margin:auto;padding:0}
.facility-viewport{overflow:hidden}
.facility-track{display:flex;transition:transform .45s ease;will-change:transform}
.facility-card{display:block;flex:0 0 25%;padding:0;text-align:center;color:#598946}
.facility-arrow{position:absolute;top:43%;z-index:2;width:30px;height:30px;padding:0;border:1px solid #bdd2af;border-radius:50%;background:#fff;color:#638e51;font-size:23px;line-height:24px;cursor:pointer}
.facility-arrow--prev{left:0}.facility-arrow--next{right:0}
.facility-card__image{display:block;overflow:hidden;border-radius:0;background:#f6f8f2;box-shadow:none;aspect-ratio:1}
.facility-card__image img{width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.facility-card:hover .facility-card__image img{transform:scale(1.045)}
.facility-card__name{display:block;margin-top:14px;font-size:16px;font-weight:700;letter-spacing:.05em}

.home-free-area{padding:22px 0 66px;background:#f9fbf7}
.home-editorial-content{width:min(100%,1000px);margin:auto}
.home-editorial-content>p:first-child{margin-top:0}
.home-editorial-content>p img{display:block;width:100%;height:auto;margin-inline:auto}
.home-editorial-content .su-row{display:flex;gap:30px;align-items:flex-start;margin:32px 0}
.home-editorial-content .su-column{float:none;width:50%;margin:0}
.home-editorial-content .su-column-inner{padding:0}
.home-editorial-content .su-column img{width:100%;height:auto}
.home-editorial-content ._df_book{max-width:100%;margin:25px auto}
.home-news-section{padding:70px 24px 150px;background:#fff}
.home-news-section .section-heading{display:none}
.news-tabs-grid{width:100%;margin:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:38px}
.news-panel{min-width:0;padding:0 0 10px;border:0;border-radius:0;background:#fff;box-shadow:none}
.news-panel:nth-child(7){grid-column:3;grid-row:3}
.news-panel__header{display:flex;align-items:center;justify-content:center;min-height:74px;margin-bottom:16px;padding:12px;background:#2c9431;color:#fff;text-align:center}
.news-panel__header h3{margin:0;color:#fff;font-size:18px;font-weight:500}
.news-panel__header>a{display:none;flex:none;font-size:11px;color:#849578}
.home-news-list{list-style:none;margin:0;padding:0}
.home-news-item{display:flex;gap:12px;align-items:flex-start;padding:10px 0 14px;border-bottom:1px solid #e5e5e5}
.home-news-item:last-child{border-bottom:0}
.home-news-item__thumb{flex:none;width:100px;height:100px;overflow:hidden;background:#f2f2f2;display:grid;place-items:center}
.home-news-item__thumb img{width:100%;height:100%;object-fit:cover}
.home-news-item>div{min-width:0;display:flex;flex-direction:column;line-height:1.5}
.home-news-item time{color:#a0a59b;font-size:10px}
.home-news-item__title{display:-webkit-box;overflow:hidden;color:#666;font-size:13px;line-clamp:2;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.all-news-link{display:none;text-align:center;margin:30px auto 0}
.button-link{display:inline-block;padding:10px 28px;border:1px solid #9cbd89;border-radius:2px;color:#628f50;font-size:13px;letter-spacing:.06em}
.button-link:hover{background:var(--green);color:#fff}

.page-heading{padding:34px 0 30px;background:#f3f7ef;border-bottom:1px solid #e7eee2}
.page-heading .inner{position:relative}
.page-heading h1{margin:0;color:#5c874a;font-size:27px;font-weight:500;letter-spacing:.08em;line-height:1.45}
.page-heading .eyebrow{margin-bottom:4px}
.page-content-wrap{padding-top:22px;padding-bottom:76px}
.breadcrumbs{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:30px;color:#a1a69d;font-size:11px}
.breadcrumbs a{color:#809574}
.page-content{width:100%;margin:auto}
.entry-content{font-size:15px;line-height:2}
.entry-content:after{content:"";display:block;clear:both}
.entry-content>h2,.entry-content h2{margin:35px 0 15px;padding:0 0 10px;border-bottom:1px solid #dce8d3;color:#648e51;font-size:22px;font-weight:600;line-height:1.55}
.entry-content>h2:first-child{margin-top:0}
.entry-content h3{margin:25px 0 10px;color:#698d59;font-size:18px;font-weight:600}
.entry-content h4{color:#698d59;font-size:16px}
.entry-content p{margin:0 0 1.5em}
.entry-content img{max-width:100%;height:auto}
.entry-content table{width:100%;margin:25px 0;border-collapse:collapse;border:1px solid #dbe4d4}
.entry-content th,.entry-content td{padding:12px 15px;border:1px solid #dbe4d4;text-align:left;vertical-align:top}
.entry-content th{background:#f3f7ef;color:#5c7d4e;font-weight:600}
.entry-content ul,.entry-content ol{padding-left:1.7em}
.entry-content blockquote{margin:24px 0;padding:15px 22px;border-left:4px solid #91b77d;background:#f7faf4}
.entry-content iframe{max-width:100%}
.entry-content .aligncenter{display:block;margin-inline:auto}
.entry-content .alignright{float:right;margin:0 0 1.4em 1.8em}
.entry-content .alignleft{float:left;margin:0 1.8em 1.4em 0}
.entry-content .wp-caption{max-width:100%;padding:8px;background:#f7f8f5;text-align:center}
.entry-content .wp-caption-text{margin:.5em 0 0;color:#888;font-size:12px}
.entry-content .gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.entry-content .gallery-item{margin:0;width:auto!important}
.entry-content .su-row{display:flex;flex-wrap:wrap;gap:20px;margin:22px 0}
.entry-content .su-column{float:none!important;width:auto;margin:0!important;flex:1 1 0;min-width:0}
.entry-content .su-column-size-1-1{flex-basis:100%}
.entry-content .su-column-size-1-2{flex-basis:calc(50% - 10px)}
.entry-content .su-column-size-1-3{flex-basis:calc(33.333% - 14px)}
.entry-content .su-column-size-2-3{flex-basis:calc(66.666% - 7px)}
.entry-content .su-column-size-1-4{flex-basis:calc(25% - 15px)}
.entry-content .su-column-inner{padding:0!important}
.child-pages{margin:55px 0 0;padding:22px 26px;background:#f8faf5;border:1px solid #e5ecdf}
.child-pages h2{margin:0 0 12px;color:#628d50;font-size:17px}
.child-pages ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 22px;margin:0;padding:0;list-style:none}
.child-pages a:before{content:"›";margin-right:8px;color:#91b77d}

.layout-two-column{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:55px;padding-top:40px;padding-bottom:80px}
.main-column{min-width:0}
.sidebar{padding:20px 18px;background:#f8faf5;border:1px solid #e7ece3;height:max-content}
.sidebar h2{margin:0 0 12px;padding-bottom:10px;border-bottom:1px solid #dce7d4;color:#628d50;font-size:16px}
.sidebar ul{list-style:none;margin:0;padding:0}
.sidebar li{padding:6px 0;border-bottom:1px dotted #dce2d8;font-size:12px;line-height:1.6}
.sidebar .children{padding-left:10px}
.news-list{display:grid;gap:15px}
.news-card{display:flex;gap:20px;padding:16px;border:1px solid #e7ece3;background:#fff}
.news-card__image{flex:none;width:180px;height:120px;display:grid;place-items:center;overflow:hidden;background:#f5f7f2}
.news-card__image img{width:100%;height:100%;object-fit:cover}
.no-image{display:grid;place-items:center;width:100%;height:100%;min-height:54px;background:#eaf2e4;color:#739461;font-size:12px;letter-spacing:.12em}
.news-card__body{min-width:0;flex:1}
.news-card h2{margin:3px 0 7px;font-size:17px;font-weight:600;line-height:1.55}
.news-card h2 a{color:#5b6856}
.news-card p{margin:0 0 7px;color:#858a81;font-size:12px;line-height:1.7}
.entry-meta{display:flex;flex-wrap:wrap;gap:12px;color:#a0a59b;font-size:11px;line-height:1.5}
.entry-meta a{color:#78956a}
.read-more{font-size:11px}
.pagination{margin-top:30px}
.pagination .nav-links{display:flex;justify-content:center;gap:8px;align-items:center}
.pagination a,.pagination span{min-width:34px;padding:6px 10px;border:1px solid #e0e7da;text-align:center;font-size:12px}
.pagination .current{background:#79a95c;color:white}
.single-article{padding:0 0 20px}
.entry-header{margin-bottom:25px;padding-bottom:18px;border-bottom:1px solid #e6ebe2}
.entry-header h2{margin:0 0 10px;color:#586f4c;font-size:25px;font-weight:500;line-height:1.6}
.entry-content .wp-block-image{margin:1.5em auto}
.entry-content .wp-block-gallery{margin:1.5em 0}
.post-navigation{padding:18px 0;border-top:1px solid #e6ebe2}
.post-navigation .nav-links{display:flex;justify-content:space-between;gap:20px}
.post-navigation a{max-width:48%;font-size:12px}
.post-navigation span{display:block;color:#a0a59b;font-size:10px}

.site-footer{background:#2c9431;border-top:1px solid #2c9431;color:#fff}
.footer-inner{width:100%;margin:auto;padding:0 0 28px;display:flex;flex-direction:column;gap:0}
.footer-brand img{width:230px;max-height:66px;object-fit:contain;object-position:left center;filter:brightness(0) invert(1)}
.footer-brand{text-align:center;order:1;margin-top:30px}.footer-brand a{display:inline-block}.footer-brand p{font-size:14px;color:#fff}
.footer-menu{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 28px;margin:0;padding:14px 20px;border-bottom:1px solid #ffffff33;list-style:none}
.footer-navigation{order:0}
.footer-menu a,.footer-navigation .menu a{color:#fff;font-size:15px}
.footer-navigation ul{list-style:none;padding:0}
.footer-widget-area{display:flex;gap:20px;flex-wrap:wrap}
.footer-widget{font-size:12px}
.footer-widget__title{font-size:14px;color:#5f824f}
.copyright{padding:10px 24px;text-align:center;background:#2c9431;color:#ffffff99;font-size:10px;letter-spacing:.08em}
.back-to-top{position:fixed;z-index:10;right:22px;bottom:20px;width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:rgba(104,157,75,.88);color:white;font-size:22px;box-shadow:0 3px 12px rgba(0,0,0,.13)}

@media(max-width:1100px){.header-inner{gap:16px}.site-branding{flex-basis:230px}.site-logo img,.custom-logo{width:230px}.primary-navigation .menu>li>a{padding-inline:13px;font-size:12px}.facility-card{flex-basis:25%}.inner{width:min(var(--content),calc(100% - 40px))}}
@media(max-width:980px){.header-inner{height:74px}.site-branding{flex-basis:auto;margin-right:auto}.site-logo img,.custom-logo{width:230px}.menu-toggle{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;width:48px;height:48px;border:0;background:transparent;color:#638c52;cursor:pointer}.menu-toggle span{width:22px;height:2px;background:currentColor}.menu-toggle b{font-size:9px;font-weight:500}.primary-navigation{position:fixed;inset:74px 0 0;z-index:30;display:block;align-self:auto;padding:16px 22px 35px;background:rgba(255,255,255,.985);overflow:auto;transform:translateX(100%);transition:transform .28s ease}.primary-navigation.is-open{transform:translateX(0)}.primary-navigation .menu{display:block}.primary-navigation .menu>li,.primary-navigation .menu>li:last-child{display:block;border:0;border-bottom:1px solid #e8ede7}.primary-navigation .menu>li>a{min-height:50px;padding:10px 4px;font-size:15px}.primary-navigation .menu-item-has-children>a:after{margin-left:auto}.primary-navigation .sub-menu{position:static;display:none;min-width:0;padding:0 0 8px 17px;box-shadow:none;border:0}.primary-navigation li.is-expanded>.sub-menu{display:block}.primary-navigation .sub-menu a{padding:9px}.header-search{width:auto;justify-content:start;height:45px}.layout-two-column{grid-template-columns:minmax(0,1fr) 210px;gap:30px}.news-tabs-grid{gap:14px}.news-panel{padding:0}}
@media(max-width:700px){body{font-size:14px}.inner{width:calc(100% - 34px)}.header-inner{width:calc(100% - 30px);height:68px}.site-logo img,.custom-logo{width:218px;max-height:58px}.primary-navigation{inset:68px 0 0}.hero-slides{aspect-ratio:1.55/1;min-height:230px;max-height:390px}.hero-slide img{object-fit:cover}.hero-arrow{width:34px;height:48px;font-size:25px}.hero-arrow--prev{left:0}.hero-arrow--next{right:0}.hero-pagination{bottom:12px}.facilities-section{padding:52px 0 48px}.section-heading{margin-bottom:28px}.section-heading h1,.section-heading h2{font-size:22px}.facility-carousel{padding:0}.facility-card{flex-basis:50%;padding:0}.facility-card__name{margin:9px 8px 0;font-size:13px}.facility-arrow{top:40%;width:25px;height:25px;font-size:19px;line-height:20px}.home-free-area{padding:5px 0 40px}.home-free-area .inner{width:100%}.home-editorial-content{padding-inline:17px}.home-editorial-content .su-row{display:block;margin:18px 0}.home-editorial-content .su-column{width:100%;margin-bottom:18px}.home-news-section{padding:48px 17px 55px}.news-tabs-grid{grid-template-columns:1fr;gap:13px}.news-panel{grid-column:auto!important;grid-row:auto!important;padding:0 0 8px}.news-panel__header{min-height:58px}.news-panel__header h3{font-size:15px}.page-heading{padding:25px 0 21px}.page-heading h1{font-size:22px}.page-content-wrap{padding-top:16px;padding-bottom:48px}.breadcrumbs{margin-bottom:22px;font-size:10px}.entry-content{font-size:14px;line-height:1.9}.entry-content>h2,.entry-content h2{margin-top:27px;font-size:19px}.entry-content h3{font-size:17px}.entry-content table{font-size:12px}.entry-content th,.entry-content td{padding:8px}.entry-content .su-row{display:block}.entry-content .su-column,.entry-content .su-column-size-1-2,.entry-content .su-column-size-1-3,.entry-content .su-column-size-2-3,.entry-content .su-column-size-1-4{width:100%;flex-basis:100%;margin-bottom:15px!important}.entry-content .gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.entry-content .alignleft,.entry-content .alignright{float:none;display:block;margin:1em auto}.child-pages{margin-top:35px;padding:18px}.child-pages ul{grid-template-columns:1fr}.layout-two-column{display:block;padding-top:25px;padding-bottom:50px}.sidebar{margin-top:35px}.news-card{gap:12px;padding:11px}.news-card__image{width:102px;height:82px}.news-card h2{font-size:14px}.news-card p{display:none}.entry-meta{gap:8px;font-size:10px}.entry-header h2{font-size:20px}.footer-inner{width:100%;display:flex;padding:0 0 20px}.footer-brand{width:100%;margin-top:26px}.footer-brand img{width:220px;margin:auto}.footer-menu{gap:7px 13px;padding:12px 10px}.footer-navigation{margin-top:0}.back-to-top{right:12px;bottom:13px;width:38px;height:38px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
