/*
Theme Name: Maruki Hair
Theme URI: https://maruki.hair
Description: Twenty Twenty-Five child theme for Maruki Hair Salon
Author: Maruki Hair
Template: twentytwentyfive
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Dancing+Script:wght@700&display=swap');

/* ===== Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body.front-page {
    font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
    overflow-x: hidden;
}

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    transition: background 0.45s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    max-width: 1440px;
    margin: 0 auto;
}

.site-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 26px;
    letter-spacing: 0.05em;
    color: #000;
    text-decoration: none;
    transition: color 0.45s ease;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: #000;
    border: none;
    cursor: pointer;
    padding: 7px 10px 6px;
    min-width: 54px;
}

.menu-toggle__lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle__lines span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
}

.menu-toggle__label {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #fff;
    margin-top: 2px;
}

.site-header.is-dark {
    background: #000;
}

.site-header.is-dark .site-logo {
    color: #fff;
}

/* ===== Nav Drawer ===== */
.nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 100vw);
    height: 100%;
    background: #000;
    z-index: 200;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.nav-drawer.is-open {
    right: 0;
}

.nav-drawer__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 32px 36px 40px;
    box-sizing: border-box;
}

.nav-drawer__logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 48px;
}

.nav-drawer__close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.nav-drawer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.nav-drawer__list li {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-drawer__list li:first-child {
    border-top: 1px solid rgba(255,255,255,0.08);
}

.nav-drawer__list a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 26px;
    letter-spacing: 0.12em;
    padding: 18px 0;
    transition: opacity 0.2s;
}

.nav-drawer__list a:hover {
    opacity: 0.55;
}

.nav-drawer__sns {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.nav-drawer__sns-link {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-drawer__sns-link:hover {
    color: #fff;
}


.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.nav-overlay.is-visible {
    opacity: 1;
    pointer-events: all;
}

/* ===== Main ===== */
.site-main {
    position: relative;
}

/* ===== Section Base ===== */
.section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Section 1: sticky so section 2 slides over it */
.section--light {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
}

.section--dark {
    position: relative;
    z-index: 2;
    background: #000;
}

/* ===== Section Background (photo) ===== */
.section__bg {
    position: absolute;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

/* Section 1: photo in lower-right area */
.section__bg--1 {
    top: 30%;
    left: 4%;
    right: 0;
    bottom: -8%;
    background-color: #3a2e2a;
    background-image: url('assets/images/hero-1.jpg');
}

/* Section 2: photo in lower-right area, same as section 1 */
.section__bg--2 {
    top: 26%;
    left: 5%;
    right: 0;
    bottom: -8%;
    background-color: #1a1a1a;
    background-image: url('assets/images/hero-2.jpg');
    background-position: center top;
}

/* Dark gradient overlay for section 2 */
.section__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.12) 0%,
        rgba(0,0,0,0.08) 45%,
        rgba(0,0,0,0.60) 75%,
        rgba(0,0,0,0.80) 100%
    );
}

/* ===== Section Content ===== */
.section__content {
    position: absolute;
    inset: 0;
    z-index: 10;
    padding-top: 52px; /* header clearance */
}

/* ===== Headline ===== */
.headline {
    position: absolute;
    top: 86px;
    left: 0;
    padding: 0 18px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(52px, 8.2vh, 130px);
    line-height: 0.9;
    letter-spacing: -0.01em;
}

.headline span {
    display: block;
}

.headline--dark {
    color: #000;
}

.headline--white {
    color: #fff;
}

/* ===== Top Message Image (Section 1) ===== */
.top-message {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0 14px;
}

.top-message__img {
    width: 85%;
    max-width: 420px;
    height: auto;
    display: block;
    mix-blend-mode: multiply;
}

.section--dark .top-message__img {
    mix-blend-mode: screen;
}

/* ===== Signature Text ===== */
.signature {
    position: absolute;
    top: 40%;
    left: 10%;
    z-index: 11;
    line-height: 1.25;
}

.signature--img {
    top: 42%;
    left: 6%;
}

.signature__img {
    width: 85%;
    max-width: 420px;
    height: auto;
    display: block;
    mix-blend-mode: screen;
}

.signature__script {
    display: block;
    font-family: 'Dancing Script', cursive;
    font-style: italic;
    font-size: clamp(20px, 5.8vw, 46px);
    color: #d43000;
    transform: rotate(-4deg);
    transform-origin: left center;
}

.signature__sub {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(12px, 3.5vw, 28px);
    color: #d43000;
    letter-spacing: 0.07em;
    padding-left: 6px;
    margin-top: 2px;
}

/* ===== Concept Block (Section 2 only) ===== */
.concept {
    position: absolute;
    bottom: 9%;
    left: 18px;
    right: 18px;
    z-index: 11;
}

.concept__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(46px, 13vw, 108px);
    color: #fff;
    line-height: 1;
    letter-spacing: 0.02em;
}

.concept__text {
    color: #fff;
    font-size: clamp(13px, 3.5vw, 16px);
    font-weight: 700;
    line-height: 1.95;
    margin-top: 10px;
}

/* ===== Footer ===== */
.site-footer {
    position: relative;
    z-index: 3;
    background: #000;
    padding: 18px 20px;
    text-align: center;
}

.site-footer__copy {
    color: #fff;
    font-size: 11px;
    letter-spacing: 0.06em;
}

/* ===== Tablet / PC (768px+) ===== */
@media (min-width: 768px) {
    .header-inner {
        padding: 16px 48px;
    }

    /* Section 1: photo on the right half */
    .section__bg--1 {
        top: 20%;
        left: 40%;
        bottom: -25%;
    }

    /* Section 2: photo covers right 65% */
    .section__bg--2 {
        left: 28%;
    }

    .headline {
        padding: 0 48px;
        max-width: 52%;
        font-size: clamp(80px, 11vw, 175px);
    }

    .signature {
        left: 42%;
        top: 38%;
    }

    .concept {
        left: 30%;
        right: 48px;
        bottom: 11%;
    }
}

@media (min-width: 1200px) {
    .header-inner {
        padding: 20px 64px;
    }

    .section__bg--1 {
        left: 42%;
        top: 18%;
    }

    .section__bg--2 {
        left: 32%;
    }

    .headline {
        padding: 0 64px;
        font-size: clamp(100px, 11vw, 175px);
    }

    .signature {
        left: 44%;
    }

    .concept {
        left: 34%;
    }
}

/* =============================================
   Menu Section
============================================= */
.menu-section {
    background: #fff;
    padding: 60px 0 80px;
    position: relative;
    z-index: 3;
}

.menu-section__inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.menu-section__heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(52px, 14vw, 96px);
    color: #111;
    line-height: 1;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}

.menu-section__lead {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.85;
    color: #111;
    margin-bottom: 36px;
}

.menu-section__popular-label {
    margin: 28px 0 20px;
}

.menu-section__popular-label span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.menu-section__popular-label span::before {
    content: '';
    display: block;
    width: 4px;
    height: 28px;
    background: #111;
    border-radius: 2px;
}

/* Tabs */
.menu-tabs__head {
    display: flex;
    gap: 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.menu-tab-btn {
    flex: 1;
    padding: 12px 8px;
    background: #fff;
    border: none;
    border-right: 1px solid #ccc;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    transition: background 0.2s, color 0.2s;
}

.menu-tab-btn:last-child {
    border-right: none;
}

.menu-tab-btn.is-active {
    background: #b5a99a;
    color: #fff;
}

/* Cards wrap - horizontal scroll */
.menu-cards-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}

/* Cards */
.menu-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 580px;
}

/* Card outer wrap (topbar + card) */
.menu-card-wrap {
    display: flex;
    flex-direction: column;
}

.menu-card-wrap.is-hidden { display: none; }

/* Top info bar */
.menu-card__topbar {
    display: flex;
    align-items: center;
    gap: 0;
    background: #1a1a1a;
    padding: 0 16px;
    border-radius: 4px 4px 0 0;
    height: 34px;
}

.menu-card__topbar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #aaa;
    white-space: nowrap;
    padding: 0 16px 0 0;
    letter-spacing: 0.03em;
}

.menu-card__topbar-item + .menu-card__topbar-item {
    padding-left: 16px;
    border-left: 1px solid #333;
}

.menu-card__topbar-item strong {
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.02em;
}

.menu-card__topbar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #333;
    border-radius: 50%;
    font-style: normal;
    color: #ddd;
    font-size: 10px;
    flex-shrink: 0;
}

.menu-card__topbar-tax {
    color: #666;
    font-size: 9px;
    margin-left: 1px;
}

/* Card - no top radius when topbar present */
.menu-card__topbar + .menu-card {
    border-top: none;
    border-radius: 0 0 4px 4px;
}

.menu-card {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    align-items: stretch;
    min-height: 120px;
}

.menu-card:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.11);
}

.menu-card.is-hidden { display: none; }

/* Badge */
.menu-card__left {
    display: flex;
    flex-shrink: 0;
}

.menu-card__badge {
    writing-mode: vertical-rl;
    background: #111;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    width: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    flex-shrink: 0;
}

/* Image */
.menu-card__img {
    width: 110px;
    min-height: 120px;
    object-fit: cover;
    object-position: center top;
    display: block;
    flex-shrink: 0;
    align-self: stretch;
}

.menu-card__img--placeholder {
    background: #e8e8e8;
    width: 110px;
    min-height: 120px;
    flex-shrink: 0;
}

/* Body */
.menu-card__body {
    flex: 1;
    padding: 10px 10px 10px 14px;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    overflow: hidden;
}

/* Tags */
.menu-card__tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    overflow: hidden;
}

.menu-tag {
    background: #111;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 2px;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* Title */
.menu-card__title {
    font-size: 11px;
    font-weight: 700;
    color: #111;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Links */
.menu-card__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.menu-card__links li::before { content: none; }

.menu-card__links a {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    background: #f0f0f0;
    border-radius: 3px;
    padding: 4px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.menu-card__links a:hover {
    background: #e2e2e2;
    color: #111;
}

/* Action column - 3 sections */
.menu-card__action {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 134px;
    border-left: 1px solid #ccc;
}

.menu-card__book-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d42020;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    line-height: 1.6;
    padding: 10px 8px;
    text-decoration: none;
    transition: background 0.2s;
    flex: 1;
}

.menu-card__book-btn:hover { background: #b51a1a; }

/* Likes - dark section */
.menu-card__likes {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 10px;
    background: #222;
    border-top: 1px solid #000;
}

.likes-label {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
    line-height: 1;
}

.likes-btn {
    display: flex;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 10px;
    font-weight: 600;
    color: #ccc;
    transition: color 0.15s;
    white-space: nowrap;
}

.likes-btn:hover { color: #ff6666; }

.likes-btn__heart {
    font-size: 12px;
    color: #888;
    transition: color 0.2s, transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
    line-height: 1;
}

.likes-btn.is-liked .likes-btn__heart {
    color: #e03030;
    transform: scale(1.3);
}

.likes-btn__count { font-variant-numeric: tabular-nums; }

.likes-btn.is-liked { color: #ff8888; }

/* Duration & Price - dark section */
.menu-card__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    background: #333;
    border-top: 1px solid #000;
}

.menu-card__duration {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin: 0;
}

.menu-card__price {
    font-size: 10px;
    color: #bbb;
    line-height: 1.4;
    margin: 0;
}

/* Swipe hint */
.swipe-hint {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.swipe-hint.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.swipe-hint.is-hiding {
    opacity: 0;
    transform: translateY(-4px);
}

.swipe-hint__inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.72);
    color: #fff;
    padding: 7px 18px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.swipe-hint__hand {
    font-size: 18px;
    display: inline-block;
    animation: swipe-slide 1.2s ease-in-out infinite;
}

.swipe-hint__text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

@keyframes swipe-slide {
    0%   { transform: translateX(0);   opacity: 1; }
    50%  { transform: translateX(14px); opacity: 0.5; }
    100% { transform: translateX(0);   opacity: 1; }
}

.menu-empty {
    text-align: center;
    color: #888;
    font-size: 14px;
    line-height: 1.8;
    padding: 40px 0;
}

@media (min-width: 768px) {
    .menu-section__inner { padding: 0 40px; }
    .menu-cards { min-width: 700px; }
    .menu-card__img { width: 130px; }
    .menu-card__img--placeholder { width: 130px; }
    .menu-card__action { width: 150px; }
    .menu-tab-btn { font-size: 14px; padding: 14px 12px; }
    .menu-card__title { font-size: 12px; }
    .menu-card__book-btn { font-size: 12px; }
}

/* ==============================================
   Style Book Section
=============================================== */
.sb-section {
    background: #fff;
    padding: 60px 0 0;
}

.sb-section__inner {
    padding: 0 20px;
    max-width: 800px;
    margin: 0 auto;
}

.sb-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(52px, 14vw, 96px);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1;
    color: #111;
    margin: 0 0 16px;
}

.sb-lead {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.9;
    color: #222;
    margin: 0 0 32px;
}

.sb-tabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 28px;
    scrollbar-width: none;
}
.sb-tabs::-webkit-scrollbar { display: none; }

.sb-tab {
    flex-shrink: 0;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.sb-tab.is-active { color: #111; border-bottom-color: #111; }
.sb-tab:hover { color: #333; }

/* Category heading */
.sb-cat-heading {
    text-align: center;
    padding: 28px 0 24px;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 28px;
}

.sb-cat-heading__en {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.22em;
    color: #333;
    margin: 0 0 4px;
    text-transform: uppercase;
    font-family: Georgia, serif;
}

.sb-cat-heading__ja {
    font-size: 11px;
    color: #aaa;
    letter-spacing: 0.12em;
    margin: 0;
}

.sb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 8px;
    padding-bottom: 60px;
}

.sb-card { cursor: pointer; }
.sb-card.is-hidden { display: none; }

.sb-card__img-wrap {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 3px;
}

.sb-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.4s ease;
}
.sb-card:hover .sb-card__img { transform: scale(1.04); }

.sb-card__img-none {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 10px;
    text-align: center;
    gap: 4px;
}
.sb-card__img-none span { font-size: 22px; }

.sb-card__title {
    font-size: 11px;
    color: #222;
    line-height: 1.5;
    margin: 6px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sb-empty {
    grid-column: 1/-1;
    text-align: center;
    color: #999;
    padding: 40px 0;
    font-size: 14px;
    line-height: 1.8;
}

/* Modal */
.sb-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
    visibility: hidden;
}
.sb-modal.is-open { pointer-events: auto; visibility: visible; }

.sb-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sb-modal.is-open .sb-modal__overlay { opacity: 1; }

.sb-modal__panel {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px 16px 0 0;
    max-height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32,0.72,0,1);
}
.sb-modal.is-open .sb-modal__panel { transform: translateY(0); }

.sb-modal__close {
    position: sticky;
    top: 12px;
    float: right;
    margin: 12px 14px 0 0;
    z-index: 10;
    background: rgba(0,0,0,0.08);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sb-modal__close:hover { background: rgba(0,0,0,0.18); }

.sb-modal__body { padding: 48px 20px 40px; }

.sb-modal__loading { display: flex; justify-content: center; padding: 40px; }
.sb-modal__loading span {
    width: 28px; height: 28px;
    border: 3px solid #eee; border-top-color: #333;
    border-radius: 50%;
    animation: sb-spin 0.8s linear infinite;
}
@keyframes sb-spin { to { transform: rotate(360deg); } }

.sb-detail__title { font-size: 16px; font-weight: 800; color: #111; margin: 0 0 8px; line-height: 1.4; }

.sb-detail__tweet {
    display: inline-flex; align-items: center; gap: 6px;
    background: #000; color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 5px 14px; border-radius: 14px; text-decoration: none;
    margin-bottom: 14px;
}

.sb-detail__divider { border: none; border-top: 1px solid #e0e0e0; margin: 0 0 16px; }

.sb-detail__images { display: flex; gap: 6px; margin-bottom: 20px; }
.sb-detail__main-img { flex: 1.8; aspect-ratio: 3/4; object-fit: cover; object-position: top center; border-radius: 4px; display: block; width: 100%; }
.sb-detail__subs { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.sb-detail__sub-img { flex: 1; aspect-ratio: 1/1; object-fit: cover; border-radius: 4px; display: block; width: 100%; }
.sb-detail__sub-none {
    flex: 1; background: #f0f0f0; border-radius: 4px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #bbb; font-size: 9px; gap: 4px; aspect-ratio: 1/1;
}

.sb-detail__attrs { display: flex; flex-direction: column; margin-bottom: 20px; border-top: 1px solid #eee; }
.sb-detail__attr { display: flex; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eee; }
.sb-detail__attr-label { font-size: 11px; color: #999; min-width: 60px; flex-shrink: 0; }
.sb-detail__attr-val { font-size: 13px; font-weight: 600; color: #111; }

.sb-detail__rec { border: 1px solid #e8e0d8; border-radius: 8px; overflow: hidden; }
.sb-detail__rec-head { background: #f5ede4; text-align: center; font-size: 12px; font-weight: 700; padding: 8px; color: #333; letter-spacing: 0.06em; }
.sb-detail__rec-rows { padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.sb-detail__rec-row { display: flex; align-items: center; gap: 10px; }
.sb-detail__rec-row-label { font-size: 11px; font-weight: 700; color: #444; min-width: 30px; flex-shrink: 0; }

.sb-faces { display: flex; gap: 10px; flex-wrap: wrap; }
.sb-face { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.sb-face__icon { width: 22px; height: 22px; background: #ddd; border-radius: 50%; }
.sb-face.square .sb-face__icon { border-radius: 3px; }
.sb-face.egg .sb-face__icon { border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; }
.sb-face.triangle .sb-face__icon { background: transparent !important; width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent; border-bottom: 22px solid #ddd; }
.sb-face.base .sb-face__icon { border-radius: 40% 40% 50% 50% / 30% 30% 60% 60%; }
.sb-face.is-active .sb-face__icon { background: #e05050; }
.sb-face.is-active.triangle .sb-face__icon { border-bottom-color: #e05050; }
.sb-face__lbl { font-size: 9px; color: #bbb; }
.sb-face.is-active .sb-face__lbl { color: #e05050; font-weight: 700; }

.sb-scale { display: flex; align-items: flex-end; gap: 8px; }
.sb-scale__item { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.sb-scale__dot { width: 12px; height: 12px; border-radius: 50%; background: #ddd; transition: background 0.2s, transform 0.2s; }
.sb-scale__item.is-active .sb-scale__dot { background: #e05050; transform: scale(1.3); }
.sb-scale__lbl { font-size: 9px; color: #bbb; }
.sb-scale__item.is-active .sb-scale__lbl { color: #e05050; font-weight: 700; }

.sb-curls { display: flex; gap: 6px; flex-wrap: wrap; }
.sb-curl { padding: 4px 14px; border-radius: 14px; font-size: 11px; font-weight: 700; background: #eee; color: #aaa; }
.sb-curl.is-active { background: #e05050; color: #fff; }

.sb-detail__content { margin-top: 20px; font-size: 13px; line-height: 1.85; color: #444; }

/* Grid card footer (title + like) */
.sb-card__link { display: block; text-decoration: none; }
.sb-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-top: 6px;
}
.sb-card__title {
    font-size: 11px;
    color: #222;
    line-height: 1.45;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sb-card__title a { color: inherit; text-decoration: none; }
.sb-card__title a:hover { text-decoration: underline; }

.sb-like-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}
.sb-like-btn__heart {
    font-size: 14px;
    color: #ccc;
    line-height: 1;
    transition: color 0.2s, transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.sb-like-btn.is-liked .sb-like-btn__heart { color: #e03030; transform: scale(1.3); }
.sb-like-btn__count {
    font-size: 9px;
    color: #aaa;
    font-weight: 600;
    line-height: 1;
}
.sb-like-btn.is-liked .sb-like-btn__count { color: #e03030; }

/* =============================================
   Style Detail Page
============================================= */
.sd-page { background: #fff; min-height: 100vh; padding-bottom: 80px; }
.sd-page__inner { max-width: 760px; margin: 0 auto; padding: 0 20px; }

.sd-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #aaa;
    padding: 20px 0 14px;
}
.sd-breadcrumb a { color: #888; text-decoration: none; }
.sd-breadcrumb a:hover { color: #333; text-decoration: underline; }

.sd-title {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    line-height: 1.4;
    margin: 0 0 12px;
}

.sd-tweet-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #000;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 14px;
    text-decoration: none;
    margin-right: 10px;
}

.sd-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 5px 14px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    transition: border-color 0.2s, color 0.2s;
}
.sd-like-btn__heart {
    font-size: 15px;
    color: #ccc;
    transition: color 0.2s, transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.sd-like-btn.is-liked { border-color: #e03030; color: #e03030; }
.sd-like-btn.is-liked .sd-like-btn__heart { color: #e03030; transform: scale(1.2); }

.sd-divider { border: none; border-top: 1px solid #e8e8e8; margin: 16px 0 24px; }

/* Two-column layout */
.sd-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 32px;
}

/* Left: images */
.sd-images { flex: 0 0 55%; }
.sd-images__main {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top center;
    border-radius: 6px;
    display: block;
}
.sd-images__none {
    width: 100%;
    aspect-ratio: 3/4;
    background: #f0f0f0;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 11px;
    text-align: center;
    gap: 6px;
}
.sd-images__none span { font-size: 28px; }
.sd-images__subs {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}
.sd-images__sub {
    flex: 1;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

/* Right: info */
.sd-info { flex: 1; min-width: 0; }

.sd-attrs {
    border-top: 1px solid #eee;
    margin-bottom: 20px;
}
.sd-attr {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.sd-attr__label { font-size: 11px; color: #999; min-width: 72px; flex-shrink: 0; }
.sd-attr__val   { font-size: 13px; font-weight: 600; color: #111; }

/* Recommendation */
.sd-rec { border: 1px solid #e8e0d8; border-radius: 8px; overflow: hidden; }
.sd-rec__head { background: #f5ede4; text-align: center; font-size: 12px; font-weight: 700; padding: 8px; color: #333; letter-spacing: 0.06em; }
.sd-rec__rows { padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.sd-rec__row  { display: flex; align-items: center; gap: 10px; }
.sd-rec__row-label { font-size: 11px; font-weight: 700; color: #444; min-width: 30px; flex-shrink: 0; }

.sd-faces { display: flex; gap: 10px; flex-wrap: wrap; }
.sd-face  { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.sd-face__icon { width: 22px; height: 22px; background: #ddd; border-radius: 50%; }
.sd-face.square   .sd-face__icon { border-radius: 3px; }
.sd-face.egg      .sd-face__icon { border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; }
.sd-face.triangle .sd-face__icon { background: transparent !important; width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent; border-bottom: 22px solid #ddd; }
.sd-face.base     .sd-face__icon { border-radius: 40% 40% 50% 50% / 30% 30% 60% 60%; }
.sd-face.is-active .sd-face__icon { background: #e05050; }
.sd-face.is-active.triangle .sd-face__icon { border-bottom-color: #e05050; }
.sd-face__lbl { font-size: 9px; color: #bbb; }
.sd-face.is-active .sd-face__lbl { color: #e05050; font-weight: 700; }

.sd-scale { display: flex; align-items: flex-end; gap: 10px; }
.sd-scale__item { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.sd-scale__dot { width: 14px; height: 14px; border-radius: 50%; background: #ddd; transition: background 0.2s; }
.sd-scale__item.is-active .sd-scale__dot { background: #e05050; }
.sd-scale__lbl { font-size: 9px; color: #bbb; }
.sd-scale__item.is-active .sd-scale__lbl { color: #e05050; font-weight: 700; }

.sd-curls { display: flex; gap: 6px; flex-wrap: wrap; }
.sd-curl { padding: 4px 14px; border-radius: 14px; font-size: 11px; font-weight: 700; background: #eee; color: #aaa; }
.sd-curl.is-active { background: #e05050; color: #fff; }

/* Content */
.sd-content { font-size: 14px; line-height: 1.9; color: #444; margin-bottom: 32px; }

/* Stylist */
.sd-stylist {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 40px;
}
.sd-stylist__label { font-size: 10px; font-weight: 700; color: #aaa; letter-spacing: 0.1em; }
.sd-stylist__name  { font-size: 15px; font-weight: 800; color: #111; }

/* Related grid */
.sd-related__heading {
    font-size: 15px;
    font-weight: 800;
    color: #111;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #111;
}
.sd-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 8px;
}

/* Mobile: stack layout */
@media (max-width: 599px) {
    .sd-layout { flex-direction: column; }
    .sd-images { flex: none; width: 100%; }
    .sd-related__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 600px) {
    .sb-section__inner { padding: 0 40px; }
    .sb-grid { grid-template-columns: repeat(4, 1fr); gap: 14px 12px; }
    .sb-card__title { font-size: 12px; }
    .sd-page__inner { padding: 0 40px; }
    .dm-section__inner { padding: 0 40px; }
}

/* =============================================
   DaVinci-MENU Section
============================================= */
.dm-section {
    background: #fff;
    padding: 60px 0 80px;
}

.dm-section__inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.dm-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(52px, 14vw, 96px);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1;
    color: #111;
    margin: 0 0 20px;
}

.dm-lead {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.85;
    color: #111;
    margin: 0 0 40px;
}

/* カテゴリーヘッダー */
.dm-category {
    margin-bottom: 8px;
}

.dm-category__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    text-align: center;
}

.dm-category__line {
    flex: 1;
    height: 1px;
    background: #ddd;
}

.dm-category__en {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 0.08em;
    color: #aaa;
    line-height: 1;
}

.dm-category__ja {
    font-size: 12px;
    color: #aaa;
    letter-spacing: 0.06em;
}

/* メニューアイテム */
.dm-item {
    padding: 20px 0 16px;
}

.dm-item__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.dm-item__title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.4;
}

.dm-item__price {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    white-space: nowrap;
    flex-shrink: 0;
}

.dm-item__meta {
    margin-bottom: 10px;
}

.dm-item__time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 11px;
    color: #777;
}

.dm-item__desc {
    font-size: 13px;
    line-height: 1.75;
    color: #555;
    margin: 0;
}

.dm-item__divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 0;
}

/* =============================================
   Gender Toggle
============================================= */

/* PC: ヘッダー内トグル */
.gender-toggle {
    display: flex;
    gap: 2px;
    background: #f0f0f0;
    border-radius: 20px;
    padding: 3px;
}
.gender-toggle__btn {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px;
    letter-spacing: 0.06em;
    background: transparent;
    border: none;
    border-radius: 16px;
    padding: 4px 14px;
    cursor: pointer;
    color: #888;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.gender-toggle__btn.is-active {
    background: #111;
    color: #fff;
}

/* スマホ: 画面下追尾バー */
.gender-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(255,255,255,0.96);
    border-top: 1px solid #e0e0e0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.gender-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
    max-width: 400px;
    margin: 0 auto;
}
.gender-bar__label {
    font-size: 11px;
    color: #aaa;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}
.gender-bar__btns {
    display: flex;
    gap: 6px;
    flex: 1;
}
.gender-bar__btn {
    flex: 1;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 16px;
    letter-spacing: 0.08em;
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    padding: 8px 0;
    cursor: pointer;
    color: #888;
    transition: background 0.2s, color 0.2s;
}
.gender-bar__btn.is-active {
    background: #111;
    color: #fff;
}

/* コンテンツ表示制御（JSフォールバック用CSS） */
.gender-ladies [data-gender="mens"] { display: none !important; }
.gender-mens   [data-gender="ladies"] { display: none !important; }

/* スマホのみ追尾バー表示・PCは非表示 */
@media (min-width: 600px) {
    .gender-bar { display: none !important; }
    .gender-toggle { display: flex; }
}
@media (max-width: 599px) {
    .gender-bar { display: block; }
    .gender-toggle { display: none !important; }
    /* スマホ追尾バー分の余白をフッターに追加 */
    .site-footer { padding-bottom: 70px; }
}

/* ===== Style Book モードトグル ===== */
.sb-mode-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
}
.sb-mode-btn {
    flex: 1;
    padding: 14px 8px;
    border: 1px solid #ccc;
    background: transparent;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 0.12em;
    color: #999;
    cursor: pointer;
    transition: all 0.25s;
    border-radius: 2px;
}
.sb-mode-btn.is-active {
    background: #111;
    color: #fff;
    border-color: #111;
}
.sb-mode-btn:not(.is-active):hover {
    border-color: #111;
    color: #111;
}
.sb-color-guide {
    background: #f8f4ee;
    border-left: 3px solid #b8a98a;
    padding: 16px 20px;
    font-size: 13px;
    line-height: 1.9;
    color: #666;
    margin-bottom: 24px;
    border-radius: 2px;
}

/* ===== ブライトネススライダー ===== */
.sb-brightness-wrap {
    margin: 24px 0 32px;
    padding: 20px 24px;
    background: #f8f8f8;
    border-radius: 2px;
}
.sb-brightness-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
    letter-spacing: 0.04em;
}
.sb-brightness-current {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    letter-spacing: 0.06em;
}
.sb-brightness-track-wrap {
    position: relative;
    height: 24px;
    display: flex;
    align-items: center;
}
.sb-brightness-track {
    position: absolute;
    left: 0; right: 0;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, #1a1a1a 0%, #5a4020 20%, #b8844a 50%, #e8c060 75%, #f5d080 100%);
    pointer-events: none;
}
.sb-brightness-slider {
    position: relative;
    width: 100%;
    height: 10px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    z-index: 1;
}
.sb-brightness-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #b8a98a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: grab;
    transition: border-color 0.2s, transform 0.1s;
}
.sb-brightness-slider::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.15); }
.sb-brightness-slider::-moz-range-thumb {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #b8a98a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: grab;
}
.sb-brightness-reset {
    display: block;
    margin: 12px auto 0;
    background: none;
    border: 1px solid #ccc;
    padding: 5px 20px;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #888;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s;
}
.sb-brightness-reset:hover { background: #111; color: #fff; border-color: #111; }
.sb-brightness-wrap.is-filtering .sb-brightness-reset { color: #111; border-color: #111; font-weight: 700; }

@media (min-width: 768px) {
    .news-section__inner,
    .mag-section__inner,
    .dm-section__inner {
        padding: 0 40px;
    }
}
