/*
Theme Name: Shuum Light
Description: スマホを中心に設計したShuum.の軽量WordPressテーマ。
Version: 1.4.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: shuum-light
*/

/* One mobile canvas on every screen; desktop adds fixed brand panels. */
:root {
    --blue: #2f5f70;
    --deep: #193e4a;
    --paper: #f9f8f4;
    --ink: #253e43;
    --rule: #d5d9d4;
    --canvas: 440px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--ink); background: #e8ece7; font-family: "Noto Sans JP", sans-serif; font-size: 14px; line-height: 1.9; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid #bd854f; outline-offset: 5px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px; background: white; }
.skip-link:focus { top: 16px; }
.site-canvas { position: relative; width: 100%; max-width: var(--canvas); margin-inline: auto; background: var(--paper); padding-bottom: 64px; }

/* Desktop frame */
.desktop-brand, .desktop-nav { display: none; }
@media (min-width: 1000px) {
    body::before { content: ""; position: fixed; inset: 0 calc(50% + 220px) 0 0; background: linear-gradient(180deg, #2f5f70dd, #193e4af2), url('assets/hero-cut.webp') center / cover; }
    .desktop-brand { display: block; position: fixed; left: max(35px, calc((100vw - 1000px) / 4)); top: 50%; transform: translateY(-50%); width: calc((100vw - 440px) / 2 - 80px); max-width: 310px; color: white; }
    .desktop-brand img { width: 190px; margin-bottom: 54px; }
    .desktop-brand p { font-family: "DM Sans", sans-serif; font-size: clamp(28px, 3vw, 46px); line-height: 1.2; letter-spacing: -1px; margin-bottom: 24px; }
    .desktop-brand > span { font-size: 11px; letter-spacing: 2px; }
    .desktop-nav { display: block; position: fixed; left: calc(50% + 265px); top: 50%; transform: translateY(-50%); width: min(250px, calc((100vw - 440px) / 2 - 85px)); }
    .nav-label { font: 10px "DM Sans", sans-serif; letter-spacing: 2px; margin-bottom: 24px; }
    .desktop-nav > a { display: flex; align-items: center; gap: 14px; min-height: 50px; border-bottom: 1px solid #bfcac4; font: 500 15px "DM Sans", sans-serif; }
    .desktop-nav > a span:first-child { font-size: 10px; color: #637a7e; }
    .desktop-nav > a span:last-child { margin-left: auto; }
    .desktop-nav > .desktop-book { padding: 16px; margin-top: 32px; background: var(--blue); color: white; border: 0; font: 500 13px "Noto Sans JP", sans-serif; }
    .desktop-nav > .desktop-book span { color: white; }
    .desktop-nav > .desktop-instagram { border: 0; margin-top: 16px; font-size: 11px; letter-spacing: 2px; }
    .desktop-nav small { display: block; font-size: 11px; margin-top: 12px; }
}

/* Minimal header and native mobile navigation */
.mobile-header { position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: min(100%, var(--canvas)); z-index: 5; padding: 22px 25px; display: flex; justify-content: space-between; align-items: flex-start; color: white; }
.header-logo { position: relative; z-index: 2; }
.header-logo img { width: 112px; }
.mobile-header:has(.mobile-menu[open]) .header-logo img { filter: brightness(0); }
.mobile-menu summary { position: relative; z-index: 2; display: grid; align-content: center; gap: 6px; width: 44px; height: 44px; list-style: none; cursor: pointer; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span { display: block; width: 30px; height: 1px; background: currentColor; margin-left: auto; transition: transform .2s; }
.mobile-menu[open] summary { color: var(--ink); }
.mobile-menu[open] summary span:first-child { transform: translateY(3.5px) rotate(45deg); }
.mobile-menu[open] summary span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu nav { position: absolute; top: 0; left: 0; width: 100%; padding: 100px 32px 42px; background: var(--paper); color: var(--ink); box-shadow: 0 25px 40px #193e4a15; }
.mobile-menu nav a { display: block; padding: 16px 0; border-bottom: 1px solid var(--rule); font: 500 26px "DM Sans", sans-serif; }
.mobile-menu nav small { display: block; font: 11px "Noto Sans JP", sans-serif; margin-top: 8px; }
body:not(.home) .mobile-header { background: var(--blue); }
body:not(.home) .site-canvas { padding-top: 104px; }
.mobile-header.is-scrolled { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--rule); }
.mobile-header.is-scrolled .header-logo img { filter: brightness(0) saturate(100%); }

/* Portrait hero */
.hero { position: relative; height: min(820px, 94svh); min-height: 640px; background: var(--blue); color: white; overflow: hidden; }
.hero-photos { position: absolute; inset: 0; }
.hero-photos img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 63% center; animation: photo-first 12s linear infinite; }
.hero-photos img + img { object-position: 46% center; animation-name: photo-second; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #193e4a55 0%, transparent 38%, #193e4a0d 50%, #193e4ae8 100%); }
.hero-caption { position: absolute; z-index: 1; right: 18px; top: 150px; writing-mode: vertical-rl; font: 9px "DM Sans", sans-serif; letter-spacing: 3px; }
.hero-copy { position: absolute; z-index: 1; left: 28px; right: 20px; bottom: 86px; }
.hero-message { font-family: "DM Sans", sans-serif; font-size: clamp(54px, 15vw, 70px); font-weight: 500; line-height: .98; letter-spacing: -3px; margin-bottom: 25px; }
.hero-message span { color: transparent; -webkit-text-stroke: 1px white; }
.hero h1 { font-size: 10px; font-weight: 400; letter-spacing: 1px; line-height: 1.7; }
.hero-tagline { font-size: 16px; letter-spacing: 2px; margin-top: 8px; }
.hero-scroll { position: absolute; z-index: 1; bottom: 25px; left: 28px; right: 28px; display: flex; justify-content: space-between; align-items: center; font: 9px "DM Sans", sans-serif; letter-spacing: 2px; }
.hero-scroll span { font-size: 24px; }
@keyframes photo-first {
    0% { opacity: 1; transform: scale(1); }
    46% { opacity: 1; transform: scale(1.08); }
    50%, 96% { opacity: 0; transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes photo-second {
    0%, 46% { opacity: 0; transform: scale(1); }
    50% { opacity: 1; transform: scale(1); }
    96% { opacity: 1; transform: scale(1.08); }
    100% { opacity: 0; transform: scale(1.08); }
}
.hero:focus-within img, .hero:hover img { animation-play-state: paused; }
.quick-nav { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--rule); padding: 20px 16px; gap: 8px; }
.quick-nav a { font: 500 12px "DM Sans", sans-serif; text-align: center; min-height: 42px; display: grid; gap: 8px; align-content: center; }
.quick-nav a + a { border-left: 1px solid var(--rule); }
.quick-nav span { font-size: 8px; opacity: .6; }

/* Editorial content */
.section-pad { padding: 66px 30px; }
.section-label { display: flex; justify-content: space-between; gap: 10px; font: 8px "DM Sans", sans-serif; letter-spacing: 1.4px; margin-bottom: 38px; }
h2 { font-weight: 500; font-size: 27px; line-height: 1.7; letter-spacing: 1px; }
.display-heading { font: 500 62px/.95 "DM Sans", sans-serif; letter-spacing: -2px; }
.section-intro { font-size: 13px; margin-top: 20px; margin-bottom: 36px; }
.concept { background: var(--blue); color: white; }
.concept h2 { margin-bottom: 36px; }
.concept > p:not(.section-label) { font-size: 13px; line-height: 2.5; margin-top: 24px; }
.concept > .concept-signature { font: 400 26px "DM Sans", sans-serif; letter-spacing: -1px; margin-top: 48px !important; color: #c7dbd9; }
.story-photo { position: relative; background: var(--blue); }
.story-photo img { width: 100%; height: 330px; object-fit: cover; object-position: 53% center; }
.story-photo figcaption { position: absolute; bottom: 20px; left: 24px; font: 10px "DM Sans", sans-serif; letter-spacing: 2px; color: white; text-shadow: 0 1px 4px #000; }
.menu-category { border-top: 1px solid var(--rule); }
.menu-category:last-of-type { border-bottom: 1px solid var(--rule); }
.menu-category summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 24px 0; list-style: none; cursor: pointer; }
.menu-category summary::-webkit-details-marker { display: none; }
.menu-category h3 > span { display: block; font: 500 23px/1.2 "DM Sans", sans-serif; }
.menu-category h3 small { display: block; font-size: 10px; font-weight: 400; margin-top: 7px; }
.toggle-sign { position: relative; width: 16px; height: 16px; flex: 0 0 16px; }
.toggle-sign::before, .toggle-sign::after { content: ""; position: absolute; top: 7px; left: 0; width: 16px; height: 1px; background: var(--ink); }
.toggle-sign::after { transform: rotate(90deg); }
.menu-category[open] .toggle-sign::after { transform: rotate(0); }
.price-list { padding-bottom: 24px; }
.price-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 13px 0; border-top: 1px solid #e7e8e1; font-size: 13px; }
.price-row dd { font-family: "DM Sans", "Noto Sans JP", sans-serif; white-space: nowrap; }
.price-row .price-note { grid-column: 1 / -1; font-size: 10px; opacity: .75; white-space: normal; }
.text-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 11px; padding: 18px 0; border-bottom: 1px solid var(--ink); margin-top: 28px; }
.text-link span { font: 22px "DM Sans", sans-serif; }
.wash-photo { position: relative; }
.wash-photo img { width: 100%; height: 400px; object-fit: cover; object-position: 42% center; }
.wash-photo::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, #193e4a88); }
.wash-photo figcaption { position: absolute; z-index: 1; bottom: 30px; left: 30px; color: white; font: 400 34px/1.1 "DM Sans", sans-serif; letter-spacing: -1px; }
.access-info > div { padding: 18px 0; border-top: 1px solid var(--rule); }
.access-info dt { font: 9px "DM Sans", sans-serif; letter-spacing: 1px; margin-bottom: 8px; }
.access-info dd { font-size: 13px; }
.access-info a { display: inline-block; padding-block: 8px; }
.salon-map { width: 100%; height: 250px; border: 0; margin-top: 20px; filter: grayscale(1); }
.produce { background: #e9ece4; }
.produce figure img { width: 100%; height: 295px; object-fit: cover; }
.produce h2 { margin-bottom: 28px; }
.produce p:not(.section-label) { font-size: 13px; line-height: 2.3; margin-top: 20px; }
.news .display-heading { margin-bottom: 34px; }
.news-item { border-top: 1px solid var(--rule); }
.news-item:last-child { border-bottom: 1px solid var(--rule); }
.news-item summary { position: relative; padding: 24px 26px 24px 0; list-style: none; cursor: pointer; }
.news-item summary::-webkit-details-marker { display: none; }
.news-item summary time { display: block; font: 10px "DM Sans", sans-serif; margin-bottom: 10px; }
.news-item summary span { display: block; font-size: 13px; }
.news-item summary::after { content: "+"; position: absolute; right: 0; top: 27px; font: 20px "DM Sans", sans-serif; }
.news-item[open] summary::after { content: "−"; }
.news-content { padding: 0 0 24px; font-size: 13px; }
.news-content p + p { margin-top: 16px; }
.news-content a { text-decoration: underline; }
.reservation { background: var(--deep); color: white; }
.reservation h2 { margin-bottom: 32px; }
.booking-link { display: flex; justify-content: space-between; align-items: center; padding: 20px; background: var(--paper); color: var(--deep); font-size: 13px; }
.booking-link span { font: 24px "DM Sans", sans-serif; }
.reservation > p:last-child { font-size: 10px; margin-top: 16px; opacity: .7; }
.site-footer { padding: 48px 30px; background: var(--blue); color: white; }
.site-footer img { width: 140px; margin-bottom: 30px; }
.site-footer p { font-size: 10px; line-height: 2; margin-bottom: 28px; }
.site-footer > a:last-of-type { font: 9px "DM Sans", sans-serif; letter-spacing: 2px; }
.site-footer small { display: block; margin-top: 36px; font-size: 9px; opacity: .7; }
.booking-bar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, var(--canvas)); z-index: 10; display: grid; grid-template-columns: 1fr 1.4fr; padding-bottom: env(safe-area-inset-bottom); background: var(--blue); }
.booking-bar a { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px; font-size: 11px; color: white; background: var(--blue); }
.booking-bar a:first-child { background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; font-size: 10px; letter-spacing: 1px; }
.booking-bar span { font: 19px "DM Sans", sans-serif; }

/* Posts: same narrow canvas, native blocks retained. */
.post-page, .listing { padding: 45px 28px 64px; overflow-wrap: anywhere; }
.post-page h1, .listing h1 { font-size: 24px; line-height: 1.7; margin-bottom: 28px; }
.post-date { font: 10px "DM Sans", sans-serif; margin-bottom: 15px; }
.post-page p { margin-block: 18px; }
.post-content h2 { font-size: 22px; margin-top: 36px; }
.post-content h3 { font-size: 18px; margin-top: 28px; }
.post-content figure { margin-inline: 0; }
.post-content iframe, .post-content > * { max-width: 100%; }
.post-content a { text-decoration: underline; }
.post-content pre { overflow: auto; }
.post-content table { border-collapse: collapse; width: 100%; }
.post-content th, .post-content td { border: 1px solid var(--rule); padding: 8px; }
.post-content blockquote { border-left: 2px solid var(--blue); margin-inline: 0; padding-left: 20px; }
.post-nav { display: flex; justify-content: space-between; gap: 15px; margin-top: 36px; font-size: 11px; }
.news-list { list-style: none; padding: 0; }
.news-list li { border-top: 1px solid var(--rule); padding: 22px 0; }
.news-list h2 { font-size: 18px; }
.news-list time { font: 10px "DM Sans", sans-serif; }
.search-form { display: flex; flex-wrap: wrap; gap: 10px; }
.search-form input { min-width: 0; max-width: 100%; padding: 8px; }
.search-form button { padding: 8px 16px; border: 0; background: var(--blue); color: white; }
.button { display: inline-block; padding: 15px 20px; color: white; background: var(--blue); }

@media (max-width: 359px) {
    .section-pad { padding-inline: 24px; }
    .hero-message { font-size: 53px; }
    .hero-copy { left: 24px; }
    .booking-bar a { padding-inline: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-photos img { animation: none; }
    .hero-photos img + img { display: none; }
    * { transition: none !important; }
}
