/*
Theme Name: Marutto Shirahama Media
Theme URI: https://marutto-shirahama.com/
Author: まるっと白浜
Description: 地域メディア用の独立テーマ。トップ、店舗詳細、ニュース記事、特集、検索、スマートフォン表示に対応。
Version: 2.0.4
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: marutto-shirahama-media
*/
:root{--ink:#111827;--text:#374151;--muted:#6b7280;--line:#e5e7eb;--green:#4d9b7b;--canvas:#f9fafb;--header-height:97px;--admin-height:0px;font-family:"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;color:var(--ink);font-size:16px;line-height:1.5}
*,*::before,*::after{box-sizing:border-box}body{margin:0;background:var(--canvas);overflow-wrap:break-word}body.admin-bar{--admin-height:32px}h1,h2,h3,h4,p,ul,ol,dl,dd,figure{margin:0}ul,ol{padding:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button,a{-webkit-tap-highlight-color:transparent}button{color:inherit}button svg,a svg{flex-shrink:0}a{color:inherit;text-decoration:none}img{display:block;max-width:100%;height:auto}button{border:0;background:none;padding:0}svg{display:block;width:26px;height:26px}a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid #4d9b7b;outline-offset:4px}.skip-link{position:fixed;top:-100px;left:12px;z-index:99999;background:#fff;padding:12px}.skip-link:focus{top:12px}[hidden]{display:none!important}
.site-header{position:fixed;top:var(--admin-height);left:0;right:0;z-index:100;background:#fff;border-bottom:1px solid #e5e0d8;transition:transform .3s ease-out}.site-header.is-hidden{transform:translateY(-110%)}.header-spacer{height:var(--header-height)}.header-inner{height:96px;max-width:1920px;padding:0 40px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:16px}.site-brand{display:block;flex:none}.brand-frame{display:block;width:124px;height:80px;position:relative;overflow:hidden}.brand-frame img{position:absolute;width:212px;max-width:none;height:auto;left:-43px;top:-28px}.custom-logo{max-width:144px;max-height:72px;width:auto;object-fit:contain}.desktop-nav{display:flex;flex:1;justify-content:center;align-items:center;gap:28px;min-width:0}.desktop-nav a{font-size:15px;font-weight:700;letter-spacing:.025em;color:#374151;white-space:nowrap}.desktop-nav a:hover{color:#000}.desktop-nav a[aria-current]{text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:2px}.header-actions{display:flex;align-items:center;gap:16px;flex:none}.header-action{display:flex;align-items:center;gap:8px;min-height:40px}.header-action svg{width:28px;height:28px}.header-action span{display:flex;flex-direction:column;text-align:left}.header-action b{font-weight:900;font-size:16px;line-height:20px;letter-spacing:.1em}.header-action small{font-size:10px;line-height:12px;letter-spacing:.14em}.social-link svg{width:22px;height:22px}.icon-button{display:grid;place-items:center;width:40px;height:40px}
dialog{border:0;color:var(--ink);padding:0;background:white;max-height:100dvh}dialog::backdrop{background:rgb(17 24 39 / .38)}.dialog-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}.dialog-top h2{font-size:24px;font-weight:800;letter-spacing:.08em}.dialog-top h2 small{font-size:12px;font-weight:400;letter-spacing:0}.search-dialog{width:min(640px,calc(100% - 32px));border-radius:4px;padding:32px}.search-dialog label{font-size:14px;display:block;margin-bottom:12px}.search-input{display:flex;border:1px solid #d1d5db}.search-input input{min-width:0;width:100%;padding:14px;border:0;outline:none}.search-input button{padding:12px}.search-categories{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.search-categories a{font-size:13px;background:#f3f4f6;padding:8px 12px;border-radius:30px}.menu-dialog{position:fixed;inset:0 0 0 auto;margin:0;height:100dvh;width:min(440px,100%);max-width:100%;padding:32px;overflow-y:auto}.drawer-nav{display:flex;flex-direction:column}.drawer-nav a{font-size:17px;font-weight:700;padding:20px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between}.drawer-nav a::after{content:'→';font-weight:400}.drawer-footer{display:flex;flex-direction:column;gap:20px;margin-top:48px;font-size:13px;color:var(--muted)}body.dialog-open{overflow:hidden}
.home-main{background:var(--canvas);padding:7px 0 64px;color:#23222e;font-size:14px}.feed-wrap{width:100%;max-width:1120px;margin:auto}.feed-section{margin-top:20px}.feed-section:first-of-type{margin-top:12px}.feed-heading{display:flex;align-items:center;gap:8px;padding:0 24px;margin-bottom:10px}.feed-heading h2{font-size:17px;font-weight:700;line-height:25.5px}.feed-heading>a{margin-left:auto;font-size:11px;color:var(--muted)}.card-collection{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:16px;padding:0 24px 8px}.media-card{min-width:0;background:#fff;border:1px solid #e7e6ee;border-radius:12px;overflow:hidden;box-shadow:0 1px 3px rgb(20 20 40 / .06)}.media-card a:hover .card-photo img,.card-photo:hover img{opacity:.9}.card-photo{display:block;position:relative;aspect-ratio:8/5;overflow:hidden;background:#f3f4f6}.card-photo>img{width:100%;height:100%;object-fit:cover;transition:opacity .2s}.card-no-photo{width:100%;height:100%;display:grid;place-items:center;color:#c5c9ce;background:#f1f2f3}.card-no-photo svg{width:32px;height:32px;stroke-width:1}.category-badge{position:absolute;left:8px;top:8px;font-size:10px;font-weight:700;line-height:15px;padding:2px 5px;border-radius:3px;background:#eeedf8;color:#484261}.badge-store{background:#e0f3e9;color:#286249}.badge-event{background:#fff0df;color:#a66523}.card-body{display:flex;flex-direction:column;min-height:96px;padding:12px}.card-title{font-size:13px;font-weight:700;line-height:17.875px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.card-area{font-size:10.5px;line-height:15.75px;color:#6b7280;margin-top:2px}.card-bottom{display:flex;gap:6px;align-items:center;margin-top:auto;padding-top:12px}.card-bottom time{font-size:10.5px;line-height:15.75px;color:#6b7280;margin-left:auto;white-space:nowrap}.mini-button{display:inline-flex;align-items:center;gap:4px;border:1px solid #dfe8e3;border-radius:8px;color:#527e6e;padding:4px 8px;font-size:10px;font-weight:700;line-height:15px;white-space:nowrap}.mini-button svg{width:13px;height:13px}.mini-button.phone{background:#4d9b7b;color:#fff;border-color:#4d9b7b}.collection-horizontal{grid-template-columns:repeat(3,minmax(0,1fr))}.card-horizontal{display:flex;min-height:100px}.card-horizontal .card-photo{width:112px;aspect-ratio:auto;flex:none}.card-horizontal .card-body{width:calc(100% - 112px);padding:10px;min-height:100px}.card-horizontal .category-badge{font-size:9px}.card-horizontal .card-bottom{padding-top:6px}.card-horizontal .mini-button{display:none}.collection-event{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}.card-event{width:250px;flex:none;scroll-snap-align:start}.card-event .card-photo{aspect-ratio:16/9}.card-event .card-body{min-height:130px}.card-feature .card-body{min-height:112px}.feed-empty{grid-column:1/-1;font-size:13px;color:#9ca3af;padding:28px 0}.preview-notice{padding:10px 24px;font-size:11px;background:#fff9e9;color:#80652b;margin:8px 24px 16px;border:1px solid #eee3c9;border-radius:4px}.sample-card .card-no-photo{background:linear-gradient(140deg,#f1f2f4,#e9eced)}
.single-main{background:#fff}.place-wrap{width:100%;max-width:880px;margin:0 auto;padding:40px 16px}.breadcrumbs{display:flex;gap:4px;align-items:center;flex-wrap:wrap;margin:0 0 16px;font-size:14px;color:#6b7280;line-height:20px}.breadcrumbs a:hover{text-decoration:underline}.crumb-current{min-width:0}.place-gallery{position:relative;width:100%;aspect-ratio:3/2;overflow:hidden;background:#f3f4f6;margin:0 0 40px;touch-action:pan-y;user-select:none}.gallery-slide{position:absolute;inset:0;opacity:0;pointer-events:none;transition:opacity .7s ease-in-out}.gallery-slide.is-active{opacity:1;pointer-events:auto}.gallery-slide img{width:100%;height:100%;object-fit:cover}.photo-blank{height:100%;min-height:100%;width:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;background:#f3f4f6;color:#a3a9af;font-size:12px;font-weight:400;letter-spacing:.05em}.photo-blank svg{width:36px;height:36px;stroke-width:1}.gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;background:#ffffffd9;border-radius:50%;display:grid;place-items:center;opacity:0;transition:opacity .2s}.place-gallery:hover .gallery-arrow,.gallery-arrow:focus-visible{opacity:1}.gallery-arrow.prev{left:12px}.gallery-arrow.prev svg{transform:rotate(180deg)}.gallery-arrow.next{right:12px}.gallery-dots{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);display:flex;gap:8px}.gallery-dots button{width:8px;height:8px;background:#ffffff80;border-radius:100%;box-shadow:0 0 3px #0002}.gallery-dots button[aria-pressed=true]{background:#fff}.gallery-count{position:absolute;top:12px;right:12px;background:#0008;color:#fff;border-radius:20px;font-size:12px;padding:4px 10px;line-height:16px}.place-heading{text-align:center;margin-bottom:56px}.place-tags{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-bottom:16px}.place-tags:empty{display:none}.place-tags a{padding:2px 10px;background:#f3f4f6;border-radius:999px;font-size:12px;line-height:16px;color:#4b5563}.place-tags a:first-child{background:#f7f6f4}.place-tags a:hover{background:#e5e7eb}.place-heading h1{font-size:28px;font-weight:700;line-height:35px;margin:0}.place-kana{font-size:12px;line-height:16px;color:#9ca3af;letter-spacing:.15em;margin-top:8px}.place-byline{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px;margin-top:16px;font-size:12px;line-height:16px;color:#4b5563}.place-section{margin-bottom:64px}.ruled-title{text-align:center;margin:0 0 32px;line-height:24px;font-size:16px}.ruled-title span{display:inline-block;padding:6px 24px;border-top:1px solid #d1d5db;border-bottom:1px solid #d1d5db;font-size:16px;font-weight:700;letter-spacing:.15em;line-height:24px}.place-about{font-size:15px;line-height:1.9;color:#374151}.place-about p{margin:0 0 16px;white-space:normal}.place-about p:last-child{margin-bottom:0}.place-about h2,.place-about h3{font-size:15px;font-weight:700;line-height:1.9;margin:24px 0 8px;border:0;padding:0}.place-about a,.place-notes a{color:#374151;text-decoration:underline;text-underline-offset:3px}.place-details{border-top:1px solid #e5e7eb}.detail-row{display:grid;grid-template-columns:140px minmax(0,1fr);gap:16px;padding:16px 0;border-bottom:1px solid #e5e7eb;font-size:14px;line-height:20px}.detail-row dt{font-weight:500;color:#6b7280}.detail-row dd{font-weight:400;color:#1f2937;line-height:1.625;min-width:0;overflow-wrap:anywhere}.detail-row dd p{margin:0}.detail-row dd ul{padding-left:1.2em}.detail-phone{display:inline-block;text-decoration:underline;text-underline-offset:3px;padding:5px 0}.detail-social{display:inline-flex;align-items:center;min-width:28px;height:28px}.detail-social svg{width:24px;height:24px}.map-frame{width:100%;aspect-ratio:16/9;background:#f3f4f6;overflow:hidden}.map-frame iframe{display:block;width:100%;height:100%;border:0}.map-open{display:block;text-align:right;font-size:12px;color:#4b5563;text-decoration:underline;margin-top:12px}.place-notes{font-size:12px;line-height:1.9;color:#6b7280;margin-top:32px}.place-notes h2{font-size:14px;margin:20px 0 8px}.place-notes ul{list-style:none}.place-notes p{margin:12px 0}
.story-wrap{max-width:672px;margin:auto;padding:40px 16px;background:white}.story-wrap .breadcrumbs{font-size:12px;line-height:16px;flex-wrap:nowrap;margin-bottom:24px}.story-wrap .crumb-current{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.story-hero{margin-bottom:24px}.story-hero img{width:100%;height:auto;border-radius:0}.story-hero>.photo-blank{aspect-ratio:3/2}.story-category{font-size:12px;font-weight:700;line-height:16px;letter-spacing:.025em;color:#f97316;margin-bottom:8px}.story-wrap>h1{font-size:29px;font-weight:700;line-height:1.5;letter-spacing:1px;text-align:justify;padding-bottom:30px}.story-byline{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap;font-size:11px;color:#6b7280;margin-bottom:36px}.story-content{font-size:15px;line-height:1.9;color:#111;text-align:justify}.story-content p{margin:0 0 16px}.story-content figure,.story-content img{max-width:100%;height:auto;margin:28px auto 16px}.story-content figure img{margin:0}.story-content h2{font-size:24px;font-weight:800;text-align:center;line-height:1.5;padding:0 0 20px;margin:48px 0 0}.story-content h3{font-size:20px;font-weight:700;margin:32px 0 16px}.story-content ul,.story-content ol{padding-left:1.4em;margin-bottom:24px}.story-content a{text-decoration:underline;text-underline-offset:3px}.story-content table{width:100%;border-collapse:collapse;font-size:14px;line-height:1.9;text-align:left;margin:0 0 32px}.story-content td,.story-content th{border:1px solid #d1d5db;padding:14px 16px;font-weight:400;vertical-align:top}.story-content td:first-child,.story-content th:first-child{width:25%;background:#f3f4f6}.story-content .wp-block-table{overflow-x:auto}.story-content blockquote,.story-content .is-style-point{border:1px solid #e5e7eb;border-left:4px solid #f3a276;background:#fffaf5;padding:20px;margin:24px 0}.story-content iframe,.story-content video{width:100%;max-width:100%}.story-content figcaption{font-size:12px;color:#6b7280}.story-feature .story-category{color:#725792}.story-event .story-category{color:#b77828}
.archive-main{padding:32px 0 64px;min-height:65vh}.archive-heading{padding:0 24px 28px}.archive-heading h1{font-size:28px;font-weight:700;margin:20px 0}.category-links{display:flex;gap:8px;flex-wrap:wrap}.category-links a{background:white;border:1px solid #e5e7eb;border-radius:30px;padding:8px 16px;font-size:13px}.category-links a[aria-current]{background:#4d9b7b;border-color:#4d9b7b;color:white}.pagination{padding:28px 24px;text-align:center}.pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;margin:0 3px;background:#fff;border:1px solid #e5e7eb;border-radius:4px;font-size:13px}.pagination .current{background:#374151;color:white}.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.jobs-section{background:#f7f5f0;border-top:1px solid #e8e4dc}.jobs-inner{max-width:1120px;margin:auto;padding:80px 16px;text-align:center}.jobs-inner>header{margin-bottom:48px}.jobs-kicker{font-size:12px;line-height:20px;letter-spacing:.2em;font-weight:700;color:#7e6d51;margin-bottom:12px}.jobs-inner h2{font-size:30px;line-height:36px;font-weight:900;margin-bottom:12px}.jobs-inner>header>p:last-child{font-size:14px;color:#6b7280}.jobs-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;text-align:left}.job-card{border:1px solid #e5e7eb;background:white;border-radius:8px;display:flex;flex-direction:column;padding:20px;min-height:164px;font-size:13px}.job-card h3{font-size:15px;line-height:1.6;margin-bottom:12px}.job-card p{color:#6b7280;font-size:12px}.job-card span{margin-top:auto;display:block;text-align:right;font-size:12px;padding-top:16px}.outline-button{display:inline-block;border:1px solid #374151;padding:12px 28px;margin-top:32px;font-size:13px;background:#fff}.site-footer{background:white;padding:40px 16px 24px;border-top:1px solid #e5e7eb;text-align:center}.publication-cta{display:flex;flex-direction:column;align-items:center;gap:6px;margin:0 auto 32px;max-width:640px;padding:24px 16px;background:#f8f7f4;border:1px solid #e9e5de}.publication-cta>span:first-child{font-size:12px;color:#6b7280}.publication-cta strong{font-size:20px;font-weight:700}.publication-cta>span:last-child{font-size:13px;color:#4b5563}.publication-cta b{margin-left:12px}.site-footer nav{display:flex;gap:12px 24px;flex-wrap:wrap;justify-content:center;font-size:12px;color:#6b7280;list-style:none}.site-footer nav li{list-style:none}.copyright{font-size:11px;color:#9ca3af;margin-top:28px}
@media(max-width:1279px){.desktop-nav{gap:20px}.desktop-nav a{font-size:14px}.social-link{display:none}}
@media(max-width:1023px){.desktop-nav{display:none}.header-actions{margin-left:auto}.card-collection{grid-template-columns:repeat(3,minmax(0,1fr))}.collection-horizontal{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:782px){body.admin-bar{--admin-height:46px}}
@media(max-width:767px){:root{--header-height:81px}.header-inner{height:80px;padding:0 16px;gap:16px}.brand-frame{width:100px;height:66px}.brand-frame img{width:171px;left:-35px;top:-22px}.header-actions{gap:12px}.header-action b{font-size:14px;line-height:18px}.header-action small{font-size:9px;line-height:12px}.header-action svg{width:24px;height:24px}.home-main{padding-top:7px}.feed-heading{padding:0 14px}.feed-heading h2{font-size:15.5px;line-height:23.25px}.card-collection{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-left:14px;gap:12px;padding:0 14px 8px;scrollbar-width:none}.card-collection::-webkit-scrollbar{display:none}.media-card{width:220px;flex:none;scroll-snap-align:start}.card-horizontal{width:300px}.card-feature{width:230px}.card-event{width:250px}.preview-notice{margin:8px 14px 16px;padding:8px 12px}.place-wrap{padding:24px 16px}.place-gallery{margin-bottom:32px}.place-heading{margin-bottom:40px}.place-section{margin-bottom:48px}.ruled-title{margin-bottom:24px}.gallery-arrow{opacity:1;width:32px;height:32px}.jobs-inner{padding:56px 16px}.jobs-inner h2{font-size:24px;line-height:32px}.jobs-inner>header{margin-bottom:40px}.jobs-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.job-card{padding:16px}.archive-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}.archive-grid .media-card{width:auto}.archive-heading{padding-inline:14px}.publication-cta strong{font-size:18px}}
@media(max-width:639px){.breadcrumbs{font-size:12px;line-height:16px}.place-heading h1{font-size:24px;line-height:30px}.place-tags{gap:6px}.place-byline{font-size:11px;gap:8px}.ruled-title span{font-size:15px;line-height:22.5px;letter-spacing:.15em}.detail-row{grid-template-columns:100px minmax(0,1fr);gap:16px}.story-wrap{padding:40px 16px}.story-wrap>h1{font-size:20px;line-height:1.5}.story-content h2{font-size:20px}.story-content td,.story-content th{padding:10px}.story-content td:first-child,.story-content th:first-child{width:28%}.search-dialog{padding:24px}.menu-dialog{padding:24px}.map-frame{aspect-ratio:4/3}.jobs-grid{grid-template-columns:1fr}.job-card{min-height:130px}.archive-heading h1{font-size:24px}.site-footer{padding-top:28px}.site-footer nav{gap:14px}}
@media(max-width:639px){.header-action span{display:none}.header-actions{gap:16px}}
.story-wrap .breadcrumbs>a,.story-wrap .breadcrumbs>span:not(.crumb-current){flex-shrink:0;white-space:nowrap}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
