/*
Theme Name: SPB Guide
Description: 観光サイトの既存デザインを継承するTwenty Twenty-Four子テーマ。
Template: twentytwentyfour
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: spb-guide
*/
:root{--spb-ink:#2a3240;--spb-blue:#386fb8;--spb-gold:#b18857;--spb-shell:1100px}
html{scroll-behavior:smooth}body{margin:0;color:var(--spb-ink);background:#fff;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",Meiryo,sans-serif;font-size:16px;line-height:1.8}*{box-sizing:border-box}img{max-width:100%;height:auto}a{color:inherit;text-underline-offset:.2em}button,input{font:inherit}button,a,input{touch-action:manipulation}a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #e99422;outline-offset:4px}
.wp-site-blocks{padding:0}.wp-site-blocks>*{margin-block-start:0}.spb-main{padding:0}.spb-title{max-width:var(--spb-shell);margin:2.5rem auto 1.5rem;padding:0 24px;font-size:clamp(1.7rem,4vw,2.5rem);line-height:1.4}.home .spb-title{display:none}.spb-content{margin:0;width:100%;overflow-wrap:anywhere}.spb-content h1,.spb-content h2,.spb-content h3{line-height:1.45;letter-spacing:.03em}.spb-content p{margin:.6em 0 1.1em}.spb-content img{display:block}
.spb-header-wrap{background:#283f60;color:#fff;padding:12px 24px}.home .spb-header-wrap{position:absolute;top:0;left:0;right:0;z-index:20;background:transparent}.admin-bar.home .spb-header-wrap{top:32px}.spb-header-top{max-width:var(--spb-shell);margin:0 auto;display:flex;justify-content:space-between;gap:16px;font-size:14px;padding:0 12px 10px}.spb-header-top a{text-decoration:none}.spb-header{max-width:var(--spb-shell);min-height:76px;margin:0 auto;padding:12px 20px;display:flex;align-items:center;gap:24px;background:rgba(37,45,59,.44)}.spb-brand{flex-shrink:0;text-decoration:none}.spb-brand img{display:block;width:133px;height:48px;object-fit:contain}.spb-nav{display:flex;align-items:center;gap:28px;margin-left:auto}.spb-nav>a{font-size:15px;font-weight:600;text-decoration:none;white-space:nowrap}.spb-nav>a:hover{color:#e7c58e}.spb-nav-toggle{display:none;margin-left:auto;background:none;color:inherit;border:1px solid currentColor;padding:5px 12px}.spb-search{display:flex;align-items:center;gap:6px}.spb-search input{width:125px;max-width:100%;padding:4px 8px;background:transparent;color:#fff;border:1px solid #ffffff80}.spb-search button{padding:5px 7px;border:0;background:none;color:#fff;font-size:14px}.spb-search summary{font-size:14px;cursor:pointer}.spb-search form{display:flex;gap:4px;padding-top:8px}
.spb-outer-row{padding:var(--pad-top,45px) 24px var(--pad-bottom,45px);background-size:cover;background-repeat:no-repeat;position:relative}.spb-row-inner{width:min(100%,var(--spb-shell));margin:0 auto;display:flex;flex-wrap:wrap;align-items:stretch;gap:24px}.spb-inner-row{width:100%;padding:var(--pad-top,0px) 0 var(--pad-bottom,0px)}.spb-inner-row>.spb-row-inner{gap:16px}.spb-column{flex:1 1 calc(var(--column-width,100%) - 24px);min-width:0;max-width:100%}.spb-column>.spb-row{padding-left:0;padding-right:0}.spb-photo-row{background-color:#386fb8}.spb-tall-row{min-height:450px;display:flex;align-items:center}.home .spb-content>.spb-row:first-child{min-height:750px;padding-top:190px;padding-bottom:130px;background-position:center bottom!important}.home .spb-content>.spb-row:first-child .spb-row-inner{align-items:center}.home .spb-content>.spb-row:first-child h1{font-size:clamp(1.8rem,4vw,3.2rem)!important}.home .spb-content>.spb-row:first-child h1 span{font-size:inherit!important}.spb-photo-row .spb-copy{position:relative}.spb-photo-row .spb-copy-body{color:inherit}.spb-space{max-height:75px}
.spb-copy{color:var(--text-color,var(--spb-ink));font-size:var(--text-size,16px)}.spb-copy h1,.spb-copy h2,.spb-copy h3,.spb-copy h4,.spb-copy>div:first-child:not(.spb-copy-body){color:var(--title-color,inherit)}.spb-copy h2{font-size:clamp(1.4rem,2.6vw,var(--title-size,30px));margin:0 0 24px}.spb-copy-body{font-size:max(16px,var(--text-size,16px));line-height:1.9}.spb-copy-body:empty{display:none}.spb-rich-text{font-size:16px;line-height:1.85}.spb-rich-text span[style*="font-size"]{max-width:100%}.spb-rich-text h1{font-size:clamp(1.8rem,4vw,3rem)}.spb-rich-text h2,.spb-rich-text h3{font-size:clamp(1.3rem,3vw,2rem)}.spb-rich-text table{border-collapse:collapse;width:100%;margin:24px 0}.spb-rich-text th,.spb-rich-text td{padding:12px;border:1px solid #d8dce1;text-align:left}.spb-rich-text iframe,.spb-embed{display:block;width:100%;max-width:800px;min-height:650px;height:750px;border:0;margin:24px auto}.spb-content ul,.spb-content ol{padding-left:1.5em}.spb-list li{padding:7px 0}.spb-separator{border:0;border-top:3px solid #ccc;max-width:70%;margin:15px auto 35px}
.spb-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 22px;margin:10px 8px 10px 0;background:var(--spb-gold);color:#fff;text-decoration:none;border:1px solid transparent;font-size:16px;line-height:1.6;transition:background .2s,color .2s}.spb-button:hover{background:#2a3240;color:#fff}.home .spb-content>.spb-row:first-child .spb-button{background:#346eea;border-radius:28px;padding:13px 24px}.spb-photo-card{padding:28px;min-height:280px;background-color:#386fb8;background-position:center;background-size:cover;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start}.spb-photo-card h3{font-size:clamp(1.25rem,2vw,1.65rem);color:inherit;margin:.3em 0}.spb-photo-card p{font-size:16px;color:inherit}.spb-photo-card .spb-button{background:transparent;color:inherit;border-color:currentColor}.spb-photo-card .spb-button:hover{background:#fff;color:var(--spb-ink)}.spb-photo-card>.spb-button{margin-top:18px}.spb-accordion details{border-bottom:1px solid #dedede;padding:15px 0}.spb-accordion summary{cursor:pointer;font-weight:600;font-size:17px;line-height:1.5}.spb-accordion details[open] summary{color:var(--spb-blue);margin-bottom:15px}.spb-accordion .spb-copy h2:empty{display:none}.spb-faq{margin:0 0 32px;padding:26px 28px;border-left:3px solid var(--spb-gold);background:#f7f8fa}.spb-faq h3{font-size:20px;margin-top:0}.spb-service{height:100%;padding:24px 0}.spb-service h3{font-size:21px;color:#24588e}.spb-process{list-style:none;display:flex;flex-wrap:wrap;gap:24px;padding:0!important}.spb-process li{flex:1 1 160px;padding:20px 10px;border-top:2px solid var(--spb-gold)}.spb-process span{font-size:15px;color:#5a626e}.spb-process h3{font-size:19px}
.spb-gallery{width:100%;position:relative}.spb-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;overscroll-behavior-x:contain;gap:0}.spb-slide{flex:0 0 100%;min-width:0;margin:0;scroll-snap-align:start;scroll-snap-stop:always}.spb-slide>img{width:100%;height:var(--gallery-height,420px);object-fit:cover}.spb-carousel-controls{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.spb-carousel-controls button{min-height:40px;padding:4px 15px;background:#fff;color:#283c55;border:1px solid #bbc4ce;cursor:pointer}.spb-carousel-controls button:hover{background:#edf2f8}.spb-story{display:grid;grid-template-columns:1fr 1fr;min-height:500px}.spb-story>img{width:100%;height:100%;max-height:700px;object-fit:cover}.spb-story>div{padding:35px;align-self:center;font-size:16px}.spb-story h3{font-size:25px;margin-top:0;color:inherit}.spb-testimonial{padding:25px 8%;background:#f6f7f8}.spb-testimonial>img{width:70px;height:70px;border-radius:50%;margin:0 auto 24px;object-fit:cover}.spb-testimonial blockquote{margin:0;font-size:17px;line-height:1.9}.spb-testimonial figcaption{margin:20px 0 0;text-align:right}.spb-team>img{width:100%;aspect-ratio:1/1;object-fit:cover}.spb-team h3{font-size:23px;margin-bottom:0}.spb-team p{font-size:16px}.spb-social{font-size:14px}.spb-rotating>div{margin-bottom:15px}.spb-rotating.is-enhanced>div{display:none}.spb-rotating.is-enhanced>div.is-current{display:block;animation:spb-fade .35s ease}.spb-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;width:100%}.spb-post-card{background:#fff}.spb-post-card>a{display:block;text-decoration:none}.spb-post-card img{width:100%;height:220px;object-fit:cover}.spb-post-card h3{font-size:20px;line-height:1.5;margin:16px 0}.spb-post-card>a:hover h3{color:var(--spb-blue)}
.spb-footer{background:#252d3b;color:#e4e7ec;padding:55px 24px 25px}.spb-footer-inner{max-width:var(--spb-shell);margin:auto;display:grid;grid-template-columns:1.4fr 1fr;gap:70px}.spb-footer h2{font-size:19px;line-height:1.6;color:#fff;margin-top:0}.spb-footer p{font-size:15px;line-height:1.9}.spb-footer-links{max-width:var(--spb-shell);margin:35px auto;display:flex;flex-wrap:wrap;gap:10px 24px;font-size:14px}.spb-copyright{max-width:var(--spb-shell);margin:30px auto 0;border-top:1px solid #ffffff25;padding-top:20px;font-size:13px;color:#c5cad3}.spb-archive{max-width:var(--spb-shell);margin:40px auto;padding:0 24px}.spb-archive .wp-block-post-template{gap:32px}.spb-archive .wp-block-post-title{font-size:21px}.spb-archive .wp-block-post-featured-image img{aspect-ratio:1.6;object-fit:cover}.spb-post-date{max-width:var(--spb-shell);padding:0 24px;margin:0 auto 20px;font-size:14px;color:#697281}
@keyframes spb-fade{from{opacity:.2}to{opacity:1}}@media(max-width:1100px){.spb-header{gap:15px}.spb-nav{gap:17px}.spb-search input{width:95px}}@media(max-width:800px){.spb-header-wrap{padding:10px 16px}.spb-header-top{font-size:12px;padding:0 0 8px}.spb-header-top>div:last-child{display:none}.spb-header{position:relative;flex-wrap:wrap;padding:12px 16px;min-height:65px}.spb-brand img{width:118px;height:42px}.spb-nav-toggle{display:block}.spb-nav{display:none;flex-basis:100%;margin:5px 0 0;align-items:stretch;gap:0;flex-direction:column}.spb-nav.is-open{display:flex}.spb-nav>a{padding:12px 0;border-top:1px solid #ffffff35}.spb-search{padding:8px 0}.spb-search input{width:180px}.spb-column{flex-basis:100%!important}.spb-row-inner{gap:22px}.spb-outer-row{padding:clamp(24px,6vw,var(--pad-top,45px)) 20px clamp(24px,6vw,var(--pad-bottom,45px))}.spb-inner-row{padding:10px 0}.home .spb-content>.spb-row:first-child{min-height:640px;padding-top:190px;padding-bottom:70px}.spb-tall-row{min-height:300px}.spb-content .spb-space{max-height:35px}.spb-story{grid-template-columns:1fr}.spb-story>img{height:300px}.spb-story>div{padding:25px}.spb-post-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.spb-post-card img{height:180px}.spb-footer-inner{grid-template-columns:1fr;gap:30px}.spb-footer{padding-top:40px}.spb-rich-text span[style*="font-size: 50"],.spb-rich-text span[style*="font-size: 60"]{font-size:32px!important}.spb-title{margin-top:30px}.spb-rich-text iframe,.spb-embed{min-height:750px;height:850px}}
@media(max-width:480px){.spb-post-grid{grid-template-columns:1fr}.spb-header-top{gap:10px}.spb-photo-card{min-height:300px!important;padding:24px}.spb-testimonial{padding:24px 20px}.spb-gallery .spb-slide>img{max-height:380px}.spb-process{gap:10px}.spb-process li{flex-basis:100%;padding:12px}.spb-faq{padding:20px}.spb-rich-text table{display:block;overflow:auto}.spb-footer-links{flex-direction:column}.admin-bar.home .spb-header-wrap{top:46px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}

/* Linked gallery images and the mobile navigation overlay. */
.spb-slide>a{display:block}.spb-slide>a>img{width:100%;height:var(--gallery-height,420px);object-fit:cover}
@media(max-width:800px){.spb-header:has(.spb-nav.is-open){background:#283f60}.home .spb-content>.spb-row:first-child h1{font-size:26px!important;text-wrap:balance}}
@media(max-width:480px){.spb-gallery .spb-slide>a>img{max-height:380px}}

/* Reference design, with a bounded reading width and cover backgrounds. */
:root{--spb-shell:1200px}
body{font-size:14px;line-height:1.75;color:#2a3240}
.spb-header-top,.spb-header,.spb-row-inner,.spb-footer-inner,.spb-footer-links,.spb-copyright{width:100%;max-width:var(--spb-shell)}
.spb-row-inner{gap:20px}.spb-column{flex-basis:calc(var(--column-width,100%) - 20px)}
.spb-photo-row,.spb-photo-card{background-size:cover!important;background-repeat:no-repeat!important}
.spb-outer-row{background-size:cover;background-position:center}
.spb-header{min-height:70px;padding:10px 16px}.spb-header-wrap{padding-top:10px}.spb-header-top{font-size:13px;padding-bottom:8px}
.spb-nav{gap:28px}.spb-nav>a{font-size:14px}
.spb-copy-body{font-size:var(--text-size,14px);line-height:1.75;color:inherit}
.spb-copy h2{font-size:clamp(22px,2.1vw,var(--title-size,30px));font-weight:700;line-height:1.25;margin-bottom:24px}
.spb-rich-text{line-height:1.75}.spb-rich-text h1,.spb-rich-text h2,.spb-rich-text h3{margin-top:0}
.spb-button{min-height:48px;padding:11px 25px;font-size:14px;font-weight:600;line-height:1.7;margin-top:16px}
.spb-button-outline{background:transparent;color:var(--button-color,#b18857);border:1px solid var(--button-color,#b18857)}
.spb-button-outline:hover{background:var(--button-color,#b18857);color:#fff}.spb-button-oval{border-radius:30px}
.spb-button-center{display:table;margin-left:auto;margin-right:auto}
.spb-separator{border-top-width:4px;border-radius:2px;margin:15px auto 25px}
.home .spb-content>.spb-row:first-child{min-height:740px;padding-top:210px;padding-bottom:110px;background-position:center 42%!important}
.home .spb-content>.spb-row:first-child .spb-space{display:none}
.home .spb-content>.spb-row:first-child h1{margin:0 0 10px;font-size:55px!important;line-height:1.18;letter-spacing:0}
.home .spb-content>.spb-row:first-child h1+h1{font-size:42px!important;margin-bottom:26px}
.home .spb-content>.spb-row:first-child h2{font-size:20px;line-height:1.55;margin:0 0 16px;font-weight:400}
.home .spb-content>.spb-row:first-child .spb-copy-body{line-height:1.6}
.home .spb-content>.spb-row:first-child .spb-button{font-size:14px;min-height:48px;padding:11px 25px;margin-top:14px}
.home .spb-content>.spb-row:first-child .spb-button::before{content:'✉';margin-right:12px;font-size:17px}
.home .spb-content>.spb-row:nth-child(3),.home .spb-content>.spb-row:nth-child(8){text-align:center}
.home .spb-content>.spb-row:nth-child(3) .spb-button,.home .spb-content>.spb-row:nth-child(8) .spb-button{margin-top:20px}
.spb-photo-card{padding:35px 40px;min-height:320px;justify-content:flex-end;overflow:hidden;position:relative}
.spb-photo-card h3{font-size:20px;line-height:1.3;font-weight:400;margin:0 0 25px;text-shadow:0 1px 4px #0006}
.spb-photo-card p{font-size:14px;line-height:1.7;margin:0 0 18px;text-shadow:0 1px 4px #0008}
.spb-photo-card>.spb-button{width:42px;height:42px;min-height:42px;padding:0;border-radius:50%;font-size:0;margin:0;border:2px solid currentColor}
.spb-photo-card>.spb-button::before{content:'›';font-size:27px;font-weight:400;line-height:1}
.spb-photo-card-center{align-items:center;justify-content:center}
@media(hover:hover){.spb-photo-card p{max-height:0;opacity:0;margin:0;transition:opacity .2s,max-height .2s}.spb-photo-card:hover p,.spb-photo-card:focus-within p{max-height:180px;opacity:1;margin-bottom:18px}}
.spb-team h3{font-size:20px;font-weight:400;margin:18px 0 2px}.spb-team p{font-size:14px;line-height:1.8}.spb-team>p:first-of-type{font-size:13px;color:#727780;margin-top:0}
.spb-accordion summary{font-size:16px;font-weight:400}.spb-accordion details{padding:20px 0}.spb-list li{padding:9px 0}
.spb-story>div{padding:50px 55px;text-align:center;font-size:14px;line-height:1.8}.spb-story h3{font-size:28px;font-weight:400}.spb-carousel-controls button{border-radius:50%;width:40px;height:40px;padding:0;font-size:12px}
.spb-post-card h3{font-size:18px;font-weight:600}.spb-footer p{font-size:14px}
@media(min-width:1900px){:root{--spb-shell:1320px}.home .spb-content>.spb-row:first-child{min-height:780px;padding-top:235px}}
@media(max-width:1000px){.spb-nav{gap:16px}.spb-header{gap:15px}.spb-nav>a{font-size:13px}.spb-photo-card{padding:28px}}
@media(max-width:800px){.spb-row-inner{gap:22px}.spb-column{flex-basis:100%!important}.spb-header-top,.spb-header{width:100%}.spb-nav>a{font-size:15px}.spb-nav{gap:0}.home .spb-content>.spb-row:first-child{padding-top:185px;padding-bottom:65px;min-height:690px;background-position:60% center!important}.home .spb-content>.spb-row:first-child h1{font-size:clamp(26px,4.8vw,40px)!important;line-height:1.35;text-wrap:balance}.home .spb-content>.spb-row:first-child h1+h1{font-size:clamp(23px,4vw,32px)!important;margin-bottom:26px}.home .spb-content>.spb-row:first-child h2{font-size:17px;line-height:1.6}.home .spb-content>.spb-row:first-child .spb-copy-body span{font-size:14px!important}.spb-story>div{padding:28px}.spb-copy h2{line-height:1.4}.spb-photo-card{min-height:300px;padding:30px}.spb-photo-card h3{font-size:20px}.spb-team>img{max-height:520px;object-position:center 35%}.spb-header:has(.spb-nav.is-open){background:#283f60}}
@media(max-width:480px){.spb-header-top{font-size:11px}.spb-header-wrap{padding-inline:14px}.spb-outer-row{padding-inline:20px}.spb-story>img{height:280px}.spb-photo-card h3{font-size:19px}.spb-button{max-width:100%;white-space:normal}.spb-post-card img{height:230px}}

.spb-row:has(>.spb-row-inner>.spb-column>.spb-gallery>.spb-track>.spb-story){padding-inline:0}
.spb-row-inner:has(>.spb-column>.spb-gallery>.spb-track>.spb-story){max-width:none;gap:0}
.spb-story>img{max-height:none;object-fit:cover}.spb-story>div{display:flex;flex-direction:column;justify-content:center}
.spb-team-photo{position:relative;aspect-ratio:1}.spb-team-photo>img{width:100%;height:100%;object-fit:cover}
.spb-team-info{position:absolute;inset:0}.spb-team-info summary{position:absolute;top:14px;left:14px;z-index:2;width:48px;height:48px;border-radius:50%;background:#3189ed;color:#fff;display:grid;place-items:center;cursor:pointer;list-style:none;font-size:29px;line-height:1}
.spb-team-info summary::-webkit-details-marker{display:none}.spb-team-info[open]{background:#fffffff2}.spb-team-description{height:100%;overflow:auto;padding:78px 30px 25px;color:#2a3240}.spb-team-description p{font-size:14px}
.spb-fancy{position:relative}.spb-fancy-caption{padding:16px 20px;background:#2a3240;color:#fff}.spb-fancy-caption h3{font-size:19px;font-weight:400;margin:0}.spb-fancy-caption p{margin:4px 0 0;font-size:14px}
.spb-outer-row:has(.spb-team)> .spb-row-inner> .spb-column> .spb-rich-text>h4{font-size:35px;line-height:1.25;margin-bottom:55px}
@media(max-width:800px){.spb-story>img{height:280px}.spb-team-photo{max-height:520px;aspect-ratio:1}.spb-team-photo>img{object-position:center 35%}.spb-team-description{padding:72px 25px 20px}}

/* Keep gallery captions readable against their dark background. */
.spb-content .spb-fancy-caption h3{color:#fff}
