/*
Theme Name: YUNAGI
Description: 店舗情報と並べ替え可能なトップページを備えたリラクゼーションサイトのテーマ。
Version: 0.2.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: yunagi
*/

:root {
    --paper: #f6f3eb;
    --light: #fcfaf5;
    --forest: #192c27;
    --dark: #12221d;
    --ink: #23342e;
    --muted: #56645c;
    --line: #d7d8ca;
    --accent: #8b653a;
    --gold: #d2b286;
    --serif: "Cormorant Garamond", "Times New Roman", serif;
    --mincho: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Noto Serif CJK JP", serif;
    --gothic: "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.75 var(--gothic); }
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-underline-offset: .25em; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid #aa7140; outline-offset: 4px; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 20px; }
.sd-wrap { width: min(1160px, calc(100% - 84px)); margin-inline: auto; }
.sd-skip { position: fixed; z-index: 12; top: 0; left: 16px; transform: translateY(-150%); background: var(--light); padding: 10px; }
.sd-skip:focus { transform: translateY(100%); }

.sd-header { position: relative; isolation: isolate; z-index: 4; color: var(--light); background: var(--dark); }
.sd-header-home { background: #182723; }
.sd-header-bar { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.sd-wordmark { font: 600 1.75rem/1.1 var(--serif); letter-spacing: .18em; text-decoration: none; overflow-wrap: anywhere; }
.sd-menu-button {
    height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    flex: none;
    padding: 0 0 0 16px;
    border: 0;
    background: transparent;
    font-size: .84rem;
    letter-spacing: .18em;
}
.sd-menu-button i { display: block; width: 27px; height: 12px; position: relative; }
.sd-menu-button i::before, .sd-menu-button i::after {
    content: ""; position: absolute; left: 0; width: 100%; height: 1px; background: currentColor; transition: transform .2s;
}
.sd-menu-button i::before { top: 2px; }
.sd-menu-button i::after { bottom: 2px; }
.sd-menu-button[aria-expanded="true"] i::before { transform: translateY(3.5px) rotate(45deg); }
.sd-menu-button[aria-expanded="true"] i::after { transform: translateY(-3.5px) rotate(-45deg); }
.sd-menu-panel {
    position: absolute; top: 100%; inset-inline: 0; padding: 20px 0 28px;
    background: var(--dark); border-top: 1px solid #ffffff24; box-shadow: 0 18px 28px #0003;
}
.sd-menu-panel ul, .sd-menu-strip ul { list-style: none; padding: 0; margin-block: 0; }
.sd-menu-panel ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.sd-menu-panel a, .sd-menu-strip a { display: block; text-decoration: none; }
.sd-menu-panel a { padding: 14px 0; border-bottom: 1px solid #ffffff25; }
.sd-menu-panel a:hover { color: var(--gold); }

.sd-hero {
    position: relative;
    aspect-ratio: 2.45;
    min-height: 405px;
    max-height: 650px;
    overflow: hidden;
    isolation: isolate;
    display: grid;
    place-items: center;
    color: var(--light);
    background: #2a3b31;
}
.sd-hero-photo { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.sd-hero::after {
    content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #101b145d, #1019134d, #141b1530), linear-gradient(0deg, #111c16a6, transparent 70%);
}
.sd-hero-content { text-align: center; margin: 22px; max-width: 90%; padding: 24px 16px; }
.sd-hero-mark { position: relative; display: block; width: 31px; height: 24px; margin: 0 auto 23px; }
.sd-hero-mark::before, .sd-hero-mark::after {
    content: ""; position: absolute; bottom: 4px; width: 13px; height: 20px; border: 1px solid #e2c595; border-radius: 100% 0 100% 0;
}
.sd-hero-mark::before { left: 5px; transform: rotate(-61deg); }
.sd-hero-mark::after { right: 5px; transform: rotate(15deg); }
.sd-hero h1 { margin: 0; font: 500 clamp(3.6rem, 9.1vw, 8.6rem)/.98 var(--serif); letter-spacing: .12em; text-shadow: 0 3px 30px #1019129c; overflow-wrap: anywhere; }
.sd-hero-logo { width: auto; max-width: min(100%, 560px); max-height: 230px; object-fit: contain; }
.sd-hero-content p {
    margin: 26px 0 0; line-height: 1.7; font-family: var(--mincho); letter-spacing: .22em; font-size: clamp(1rem, 1.8vw, 1.26rem);
    text-shadow: 0 1px 10px #111c15;
}
.sd-menu-strip { background: var(--light); border-block: 1px solid var(--line); }
.sd-menu-strip ul { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.sd-menu-strip a { text-align: center; padding: 20px 4px 18px; border-right: 1px solid var(--line); }
.sd-menu-strip li:first-child a { border-left: 1px solid var(--line); }
.sd-menu-strip a:hover { background: #ede7da; }
.sd-menu-panel span, .sd-menu-strip span { display: block; font: 600 1.4rem/1.2 var(--serif); letter-spacing: .09em; }
.sd-menu-panel small, .sd-menu-strip small { display: block; margin-top: 5px; font-size: .79rem; letter-spacing: .06em; }
.sd-menu-strip small { color: var(--muted); }

.sd-feature { margin-block: 58px 27px; }
.sd-slider-frame { position: relative; background: #263a30; }
.sd-slide { aspect-ratio: 2.94; overflow: hidden; }
.sd-slide-image { width: 100%; height: 100%; object-fit: cover; }
.sd-slider-arrow, .sd-roster-controls button {
    display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
    background: #fbf8efed; border: 1px solid #dad4c7; color: var(--ink); border-radius: 50%;
}
.sd-slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); }
.sd-slider-arrow:hover, .sd-roster-controls button:not(:disabled):hover { background: #e6dfcf; }
.sd-slider-arrow i, .sd-roster-controls i {
    width: 9px; height: 9px; border-bottom: 1px solid currentColor; border-left: 1px solid currentColor; transform: rotate(45deg); margin-left: 3px;
}
.sd-next i, [data-roster-step="1"] i { transform: rotate(225deg); margin-left: -3px; }
.sd-prev { left: 16px; }
.sd-next { right: 16px; }
.sd-dots { display: flex; justify-content: center; gap: 8px; padding-top: 13px; }
.sd-dots button { border: 0; background: none; width: 24px; height: 18px; display: grid; place-items: center; padding: 0; }
.sd-dots button::before { content: ""; width: 16px; height: 2px; background: #b7baaa; }
.sd-dots button[aria-pressed="true"]::before { background: var(--forest); height: 3px; }

.sd-section { padding-block: clamp(68px, 8vw, 112px); }
.sd-section-news { padding-top: 54px; }
.sd-section-concept, .sd-section-event { background: #ebe8dc; }
.sd-section-new-face { color: var(--light); background: var(--forest); }
.sd-section-title { margin: 0 0 38px; font-weight: 400; text-align: center; }
.sd-section-title > span { display: block; font: 500 clamp(2.8rem, 6.4vw, 5.2rem)/.93 var(--serif); letter-spacing: .105em; }
.sd-section-title small { display: block; color: var(--accent); margin-top: 14px; font: 600 .89rem/1.5 var(--gothic); letter-spacing: .17em; }
.sd-section-action { text-align: center; margin: 32px 0 0; }
.sd-link { display: inline-block; min-width: 174px; text-align: center; padding: 10px 22px; border: 1px solid #9da499; font-size: .86rem; letter-spacing: .10em; text-decoration: none; }
.sd-link:hover { background: var(--forest); color: var(--light); border-color: var(--forest); }
.sd-empty { margin: 0; color: var(--muted); text-align: center; padding: 24px 0; }
.sd-section-new-face .sd-empty { color: #e4dfd1; }
.sd-section-date { text-align: center; color: var(--muted); margin: -12px 0 23px; }
.sd-news { max-width: 900px; margin: 0 auto; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.sd-news li { border-bottom: 1px solid var(--line); }
.sd-news li > a, .sd-demo-item { display: grid; grid-template-columns: 138px minmax(0, 1fr); gap: 22px; padding: 18px 18px; text-decoration: none; }
.sd-news a:hover { background: rgba(255,255,255,.45); }
.sd-news time, .sd-demo-item > span:first-child, .sd-event time, .sd-event small { color: var(--accent); font-size: .84rem; letter-spacing: .05em; }
.sd-concept { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(30px, 7vw, 105px); margin-top: 56px; }
.sd-concept-copy { padding-left: min(3vw, 34px); }
.sd-concept h3 { font: 500 clamp(1.55rem, 3vw, 2.55rem)/1.65 var(--mincho); letter-spacing: .04em; margin: 0 0 16px; }
.sd-concept p { margin: 0 0 12px; color: var(--muted); max-width: 34em; }
.sd-concept img { aspect-ratio: 1.48; object-fit: cover; width: 100%; }
.sd-events { max-width: 910px; margin-inline: auto; display: grid; gap: 20px; }
.sd-event, .sd-event > a { min-height: 156px; display: grid; grid-template-columns: minmax(140px, 1fr) 1.34fr; align-items: center; background: var(--light); text-decoration: none; }
.sd-event:has(> a) { display: block; }
.sd-event > a:hover { background: #f3eedf; }
.sd-event img { width: 100%; aspect-ratio: 1.85; object-fit: cover; max-height: 230px; }
.sd-event div { padding: 19px 30px; }
.sd-event h3 { margin: 4px 0 0; font: 600 clamp(1rem, 2vw, 1.39rem)/1.5 var(--mincho); }

.sd-roster { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.sd-card { display: flex; flex-direction: column; min-width: 0; color: var(--ink); background: var(--light); }
.sd-card > a { text-decoration: none; display: flex; flex: 1; flex-direction: column; }
.sd-card > a:hover h3 { text-decoration: underline; }
.sd-card-photo { position: relative; overflow: hidden; display: grid; place-items: center; background: #d9ddcf; color: #424d43; aspect-ratio: 3 / 3.6; }
.sd-card-photo[data-variant="1"] { background: #d9d2c1; }
.sd-card-photo[data-variant="2"] { background: #b8c2b3; }
.sd-card-photo[data-variant="3"] { background: #d4c3af; }
.sd-card-photo[data-variant="4"] { background: #bcbea9; }
.sd-card img { height: 100%; width: 100%; object-fit: cover; object-position: center 32%; position: absolute; inset: 0; }
.sd-placeholder-photo { box-shadow: inset 0 0 52px #fff4; }
.sd-placeholder-photo::before {
    content: ""; position: absolute; inset: 12% 19%; border: 1px solid #ffffff70; border-radius: 50% 50% 0 0;
}
.sd-photo-label { font: 600 clamp(.87rem, 2vw, 1.28rem)/1.2 var(--serif); letter-spacing: .15em; }
.sd-card-badge { position: absolute; inset: 10px auto auto 10px; padding: 4px 9px; color: var(--light); background: var(--forest); font-size: .75rem; letter-spacing: .06em; }
.sd-card-content { padding: 12px 12px 13px; text-align: center; border: 1px solid var(--line); border-top: 0; flex: 1; }
.sd-card-content h3 { font-family: var(--mincho); font-size: 1.05rem; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.sd-hours, .sd-tagline { color: var(--muted); margin: 5px 0 0; font-size: .85rem; line-height: 1.5; }
.sd-hours { font-variant-numeric: tabular-nums; }
.sd-shift-room { display: block; color: var(--accent); font-size: .82rem; margin-top: 3px; overflow-wrap: anywhere; }
.sd-demo-label { color: var(--muted); margin: 0 0 8px; font-size: .82rem; }
.sd-section-new-face .sd-demo-label, .sd-section-new-face .sd-section-title small { color: #dcc199; }
.sd-roster-controls { display: flex; justify-content: flex-end; gap: 8px; margin: -31px 0 12px; }
.sd-roster-controls button:disabled { opacity: .45; }
.sd-roster-carousel {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 54px) / 4);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #b9ad94 #243932; padding-bottom: 8px;
}
.sd-roster-carousel .sd-card { scroll-snap-align: start; }

.sd-footer { padding: 70px 0 0; color: var(--light); background: var(--dark); }
.sd-footer .sd-section-title small { color: var(--gold); }
.sd-store-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 5vw, 68px); align-items: center; }
.sd-store-details dl { margin: 0; border-top: 1px solid #ffffff2e; }
.sd-store-details dl > div { display: grid; grid-template-columns: 100px 1fr; gap: 10px; border-bottom: 1px solid #ffffff2e; padding-block: 16px; }
.sd-store-details dt { font-size: .87rem; color: var(--gold); }
.sd-store-details dd { margin: 0; overflow-wrap: anywhere; }
.sd-store-details iframe, .sd-map-empty { border: 0; width: 100%; height: 240px; }
.sd-map-empty { display: grid; place-items: center; color: #d6d7cb; font-size: .87rem; background-color: #253933; background-image: repeating-linear-gradient(32deg, transparent, transparent 22px, #ffffff13 23px, transparent 24px, transparent 65px); }
.sd-footer-end { border-top: 1px solid #ffffff2e; margin-top: 54px; padding: 21px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sd-footer-end small { font-size: .78rem; color: #d0d2c7; }

.sd-inner { padding-block: 68px 112px; min-height: 55vh; }
.sd-inner-title { font: 600 clamp(1.8rem, 4vw, 3.3rem)/1.3 var(--mincho); margin: 0 0 44px; text-align: center; overflow-wrap: anywhere; }
.sd-entry { max-width: 900px; margin-inline: auto; }
.sd-entry-image { margin: 0 auto 30px; max-width: 760px; }
.sd-entry-body { min-width: 0; }
.sd-profile-layout { display: flex; align-items: flex-start; gap: clamp(24px, 5vw, 72px); }
.sd-profile-layout .sd-entry-body { flex: 1; }
.sd-profile-photo { width: min(42%, 380px); flex: none; }
.sd-profile-tagline { font-size: 1.2rem; font-family: var(--mincho); }
.sd-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-bottom: 26px; gap: 6px; }
.sd-calendar a { text-align: center; display: block; padding: 9px 2px; border: 1px solid var(--line); font-size: .86rem; text-decoration: none; }
.sd-calendar a[aria-current], .sd-calendar a:hover { color: var(--light); background: var(--forest); }
.pagination { text-align: center; margin-top: 28px; }
.page-numbers { margin-inline: 3px; }

@media (max-width: 950px) {
    .sd-roster { gap: 12px; }
    .sd-roster-carousel { grid-auto-columns: calc((100% - 36px) / 4); }
}

@media (max-width: 720px) {
    .sd-wrap { width: calc(100% - 36px); }
    .sd-header-bar { height: 59px; }
    .sd-header-bar .sd-wordmark { font-size: 1.52rem; }
    .sd-menu-panel ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
    .sd-hero { aspect-ratio: 4/5; min-height: 300px; max-height: 590px; }
    .sd-hero-photo { object-position: 57% center; }
    .sd-hero h1 { font-size: clamp(3.05rem, 13vw, 6rem); letter-spacing: .08em; }
    .sd-hero-content p { margin-top: 21px; letter-spacing: .13em; }
    .sd-menu-strip ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sd-menu-strip li:nth-child(4) a { border-left: 1px solid var(--line); }
    .sd-menu-strip li:nth-child(-n+3) a { border-bottom: 1px solid var(--line); }
    .sd-menu-strip a { padding: 11px 3px 9px; }
    .sd-menu-strip span { font-size: 1.06rem; }
    .sd-menu-strip small { font-size: .72rem; margin-top: 3px; }
    .sd-feature { margin-block: 34px 11px; }
    .sd-slide { aspect-ratio: 1.66; }
    .sd-prev { left: 9px; }
    .sd-next { right: 9px; }
    .sd-slider-arrow { width: 35px; height: 35px; }
    .sd-section, .sd-inner { padding-block: 54px 63px; }
    .sd-section-title { margin-bottom: 26px; }
    .sd-section-title small { margin-top: 9px; }
    .sd-news li > a, .sd-demo-item { grid-template-columns: 83px minmax(0, 1fr); gap: 8px; padding: 14px 4px; font-size: .9rem; }
    .sd-news time { font-size: .77rem; }
    .sd-concept { grid-template-columns: 1fr; gap: 19px; margin-top: 27px; }
    .sd-concept-copy { padding: 0; }
    .sd-concept img { aspect-ratio: 1.55; }
    .sd-event, .sd-event > a { grid-template-columns: 1fr 1.18fr; min-height: 100px; }
    .sd-event div { padding: 11px 13px; }
    .sd-event img { aspect-ratio: 1.28; }
    .sd-roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sd-roster-carousel { grid-template-columns: none; grid-auto-columns: calc((100% - 12px) / 2); }
    .sd-roster-controls { margin: -6px 0 12px; }
    .sd-store-details { grid-template-columns: 1fr; }
    .sd-footer { padding-top: 54px; }
    .sd-footer-end { margin-top: 35px; }
    .sd-calendar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sd-profile-layout { flex-direction: column; }
    .sd-profile-photo { width: min(100%, 360px); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
