/* フォント（Google Fonts）は各ページの <head> の <link> で読む。@import だと CSS を読み終えてから取りに行くため表示が遅れる（2026-10-07 SEO 監査） */

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

:root {
    --bg-primary: #f8f7f4;        /* Warm Sand/Canvas */
    --bg-secondary: #ffffff;      /* Pure White */
    --bg-tertiary: #f2efe9;       /* Soft Earthy Gray */
    --surface: #ffffff;           /* Floating panel/card base (theme-driven) */
    --accent: #d96a50;            /* Main accent (overridden by theme) */
    --accent-pink: #d96a50;       /* Terracotta / Soft Coral */
    --accent-cyan: #4c5d53;       /* Deep Sage Green */
    --accent-gold: #bca374;       /* Matte Gold / Bronze */
    --text-main: #1c1b18;         /* Soft Carbon Charcoal */
    --text-muted: #6e6d67;        /* Warm Gray / Slate */
    --border-color: #e6e4df;      /* Light Editorial Line */
    --font-heading: 'Space Grotesk', 'Zen Kaku Gothic New', sans-serif;
    --font-body: 'Plus Jakarta Sans', 'Zen Kaku Gothic New', sans-serif;
    --font-serif: 'Playfair Display', 'Shippori Mincho', serif;
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}


body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
    word-break: auto-phrase;
    overflow-wrap: break-word;
}

/* --- Background Image Overlay --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('assets/yoga_hero.jpg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    opacity: var(--bg-opacity, 1);
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.15s ease-out;
}

/* --- Typography & Headings --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text-main);
}

.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- Layout Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 140px 0;
}

/* --- Badges & Text Accents --- */
.badge {
    display: inline-block;
    padding: 5px 14px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 20px;
    background: rgba(217, 106, 80, 0.06);
    color: var(--accent-pink);
    border: 1px solid rgba(217, 106, 80, 0.12);
    margin-bottom: 24px;
}

.text-stroke {
    font-size: 6rem;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: transparent;
    -webkit-text-stroke: 1px rgba(217, 106, 80, 0.08); /* terracotta accent outline */
    user-select: none;
    pointer-events: none;
    line-height: 1;
}

.bg-outline-text {
    position: absolute;
    z-index: 0;
    white-space: nowrap;
}

@media (max-width: 768px) {
    /* Decorative outline words use white-space:nowrap with negative offsets,
       which overflow the viewport on mobile (white gutter, off-center buttons,
       background not covering). Hide them on small screens. */
    .bg-outline-text {
        display: none !important;
    }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 36px;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    border: none;
}

.btn-primary {
    background: var(--accent-pink);
    color: #fff;
    box-shadow: 0 4px 14px rgba(217, 106, 80, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #e3745b;
    box-shadow: 0 6px 20px rgba(217, 106, 80, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(76, 93, 83, 0.03);
    transform: translateY(-1px);
}

/* --- Header / Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--surface); /* fallback for browsers without color-mix */
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon-wrap {
    color: var(--accent-pink);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-custom-img {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.logo-icon {
    width: 30px;
    height: 30px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-main);
}

.logo-subtitle {
    font-family: var(--font-body);
    font-size: 0.52rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--accent-pink);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Hamburger toggle (hidden on desktop, shown on mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    margin-left: 8px;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.social-icon:hover {
    background: var(--text-main);
    border-color: var(--text-main);
    color: #fff;
    transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding-top: 200px;
    padding-bottom: 140px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: transparent;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    padding: 56px 48px;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(28, 27, 24, 0.04);
    max-width: 680px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 28px;
    line-height: 1.1;
    color: var(--text-main);
}

.hero-content h1 span {
    font-family: var(--font-serif);
    font-weight: 500;
    font-style: italic;
    color: var(--accent-pink);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 44px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-frame {
    position: relative;
    border: 1px solid var(--border-color);
    background: var(--surface);
    padding: 14px;
    box-shadow: 0 15px 45px rgba(28, 27, 24, 0.04);
    aspect-ratio: 4/5;
    overflow: hidden;
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.hero-image-frame:hover img {
    transform: scale(1.02);
}

/* --- Features Section --- */
.features {
    position: relative;
    overflow: hidden;
    background: color-mix(in srgb, var(--surface) 45%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-main);
}

.section-header h2 span {
    font-family: var(--font-serif);
    font-weight: 500;
    font-style: italic;
    color: var(--accent-pink);
}

.section-header p {
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto;
    font-size: 1.05rem;
    margin-top: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 56px 40px;
    transition: var(--transition-smooth);
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(1);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(28, 27, 24, 0.06);
    border-color: rgba(124, 107, 94, 0.3);
}

.feature-num {
    font-family: Georgia, 'Palatino Linotype', Palatino, serif;
    font-size: 3rem;
    font-weight: 400;
    color: var(--accent);
    opacity: 0.25;
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* --- Instructor Section --- */
.instructor {
    position: relative;
    overflow: hidden;
}

.instructor-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 80px;
    align-items: center;
}

.instructor-image {
    position: relative;
}

.instructor-image-frame {
    border: 1px solid var(--border-color);
    background: var(--surface);
    padding: 14px;
    box-shadow: 0 15px 45px rgba(28, 27, 24, 0.04);
    aspect-ratio: 4/5;
    overflow: hidden;
}

.instructor-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-content h2 {
    font-size: 2.5rem;
    margin-bottom: 4px;
}

.instructor-title {
    color: var(--accent-pink);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 28px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.instructor-content p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1rem;
}

.instructor-history {
    list-style: none;
    margin-top: 36px;
    border-top: 1px solid var(--border-color);
    padding-top: 28px;
}

.instructor-history li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.instructor-history li::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

/* --- Class Preview Section --- */
.preview-section {
    position: relative;
    overflow: hidden;
    background: color-mix(in srgb, var(--surface) 45%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.preview-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    background: color-mix(in srgb, var(--surface) 45%, transparent);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    letter-spacing: 0.06em;
    border-radius: 4px;
}

.tab-btn:hover {
    color: var(--accent-pink);
    border-color: var(--accent-pink);
    background: color-mix(in srgb, var(--surface) 75%, transparent);
}

.tab-btn.active {
    background: var(--accent-pink);
    color: #fff;
    border-color: var(--accent-pink);
    box-shadow: 0 8px 20px rgba(217, 106, 80, 0.15);
}

.preview-display {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 60px;
    align-items: center;
    min-height: 480px;
}

.preview-info h3 {
    font-size: 2.25rem;
    margin-bottom: 6px;
}

.preview-schedule {
    font-family: var(--font-heading);
    color: var(--accent-cyan);
    font-weight: 700;
    margin-bottom: 24px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.preview-info p {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 0.98rem;
}

.preview-features-list {
    list-style: none;
    margin-bottom: 40px;
}

.preview-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.preview-features-list li::before {
    content: '✓';
    color: var(--accent-pink);
    font-weight: 700;
}

.preview-visual {
    position: relative;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    padding: 12px;
    box-shadow: 0 15px 35px rgba(28, 27, 24, 0.03);
    aspect-ratio: 16/10;
    overflow: hidden;
}

.preview-visual img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity var(--transition-smooth), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1.02);
}

.preview-visual img.active {
    opacity: 1;
    transform: scale(1);
}

/* --- Pricing Section --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.price-card {
    background: color-mix(in srgb, var(--surface) 65%, transparent);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--border-color);
    padding: 56px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    position: relative;
}

.price-card.featured {
    border: 1px solid var(--accent-pink);
    background: color-mix(in srgb, var(--surface) 85%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(217, 106, 80, 0.05);
}

.price-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--accent-pink);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 12px;
    text-transform: uppercase;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.price-header h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.price-amount {
    margin-bottom: 32px;
}

.price-amount .num {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 3.25rem;
    font-weight: 500;
    line-height: 1;
}

.price-amount .unit {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: 4px;
}

.price-features {
    list-style: none;
    margin-bottom: 44px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.price-features li {
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.88rem;
    position: relative;
    padding-left: 18px;
}

.price-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

.price-card:hover:not(.featured) {
    border-color: var(--accent-cyan);
    box-shadow: 0 15px 35px rgba(28, 27, 24, 0.02);
}



/* --- Flow Steps --- */
.flow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.flow-card {
    position: relative;
    padding-top: 48px;
}

.flow-step-num {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 4rem;
    font-weight: 500;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(217, 106, 80, 0.15);
    position: absolute;
    top: 0;
    left: 0;
    user-select: none;
}

.flow-card-content {
    position: relative;
    z-index: 2;
}

.flow-card-content h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    margin-top: 10px;
}

.flow-card-content p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

#pricing {
    position: relative;
    overflow: hidden;
}

/* --- FAQ Accordion --- */
.faq-section {
    position: relative;
    overflow: hidden;
    background: color-mix(in srgb, var(--surface) 45%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

/* --- Access Section --- */
.access-section {
    position: relative;
}

.access-map {
    max-width: 820px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(28, 27, 24, 0.03);
    overflow: hidden;
}

.access-map img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.access-map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/10;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.faq-trigger {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    outline: none;
    padding: 24px 0;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: var(--transition-fast);
}

.faq-trigger:hover {
    color: var(--accent-pink);
}

.faq-icon {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--accent-pink);
    transition: transform var(--transition-smooth);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth);
}

.faq-content-inner {
    padding-bottom: 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* --- Contact Form Section --- */
.contact-section {
    position: relative;
    overflow: hidden;
    background: color-mix(in srgb, var(--surface) 45%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 80px;
}

.contact-info h2 {
    font-size: 2.75rem;
    margin-bottom: 24px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 48px;
    font-size: 0.98rem;
}

.contact-details {
    margin-bottom: 48px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-detail-item .icon {
    font-size: 1.1rem;
    color: var(--accent-pink);
    margin-top: 2px;
}

.contact-detail-item h4 {
    font-size: 0.92rem;
    margin-bottom: 4px;
}

.contact-detail-item p, .contact-detail-item a {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.contact-detail-item a:hover {
    color: var(--accent-pink);
}

.contact-form-wrap {
    background: color-mix(in srgb, var(--surface) 65%, transparent);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--border-color);
    padding: 48px;
    box-shadow: 0 10px 40px rgba(28, 27, 24, 0.01);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 14px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--accent-pink);
    box-shadow: 0 0 0 1px var(--accent-pink);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-message {
    margin-top: 20px;
    padding: 16px;
    font-weight: 600;
    font-size: 0.88rem;
    display: none;
}

.form-message.success {
    background: rgba(76, 93, 83, 0.06);
    color: var(--accent-cyan);
    border: 1px solid rgba(76, 93, 83, 0.12);
}

.form-message.error {
    background: rgba(217, 106, 80, 0.06);
    color: var(--accent-pink);
    border: 1px solid rgba(217, 106, 80, 0.12);
}

.form-fallback-note {
    margin-top: 16px;
    font-size: 0.76rem;
    line-height: 1.7;
    color: var(--text-muted);
    text-align: center;
}

.form-fallback-note a {
    color: var(--accent-cyan);
    font-weight: 600;
    word-break: break-all;
}

/* --- Footer --- */
footer {
    background: color-mix(in srgb, var(--surface) 55%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--border-color);
    padding: 60px 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

/* フッターの規約類。閉じた状態で置き、クリックで下に開く（JS不要） */
.footer-legal {
    margin-top: 18px;
    /* 上下の罫線から1行目・最終行までの間隔を揃える（summary の 5px と合わせて各7+5px） */
    padding-top: 7px;
    padding-bottom: 7px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0;
}
.legal-item summary,
.legal-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 2px;
    font-size: var(--fs-note);
    color: var(--text-muted);
    cursor: pointer;
    list-style: none;
    transition: color 0.2s ease;
}
.legal-item summary::-webkit-details-marker { display: none; }
.legal-item summary::before {
    content: '';
    width: 5px;
    height: 5px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
}
.legal-item[open] summary::before { transform: rotate(45deg); }
.legal-item summary:hover,
.legal-item[open] summary,
.legal-link:hover { color: var(--accent); }
.legal-item summary:focus-visible,
.legal-link:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
.legal-body {
    padding: 6px 2px 14px 13px;
    font-size: var(--fs-note);
    line-height: 1.9;
    color: var(--text-muted);
}
.legal-body p { margin: 0 0 10px; }
.legal-body p:last-child { margin-bottom: 0; }

/* Web予約（予約システム）への導線。料金の下と予約カードに置く */
.pricing-book { margin-top: 32px; text-align: center; }
.pricing-book .btn { min-width: 280px; }
.pricing-book .access-note { margin-top: 12px; }
.reserve-web-btn { margin-top: 12px; }
.reserve-web-note { margin: 10px 0 0; font-size: var(--fs-note); color: var(--text-muted); text-align: center; }
@media (max-width: 600px) { .pricing-book .btn { min-width: 0; width: 100%; } }

/* 特商法・利用規約・プライバシーポリシーの独立ページ（/tokushoho /terms /privacy） */
.legal-link[aria-current="page"] { color: var(--accent); }
.legal-page-header {
    border-bottom: 1px solid var(--border-color);
    padding: 18px 0;
}
.legal-page-home {
    font-family: var(--font-heading);
    font-size: var(--fs-md);
    letter-spacing: 0.04em;
    color: var(--text-main);
    text-decoration: none;
}
.legal-page-home:hover { color: var(--accent); }
.legal-page { padding: 56px 0 72px; }
.legal-page .container { max-width: 820px; }
.legal-page-title { font-size: var(--fs-xl); margin: 0 0 32px; }
.legal-page-body {
    font-size: var(--fs-sm);
    line-height: 1.9;
    color: var(--text-main);
}
.legal-page-body h2 { font-size: var(--fs-lg); margin: 36px 0 12px; }
.legal-page-body p { margin: 0 0 14px; }
.legal-page-body ul { margin: 0 0 14px; padding-left: 1.3em; }
.legal-page-body li { margin-bottom: 4px; }
.legal-page-body a { color: var(--accent); }
.legal-page-body hr { border: 0; border-top: 1px solid var(--border-color); margin: 32px 0 16px; }
.legal-page-body table { width: 100%; border-collapse: collapse; margin: 0 0 20px; }
.legal-page-body th,
.legal-page-body td {
    border: 1px solid var(--border-color);
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
}
.legal-page-body th { background: var(--bg-tertiary); }
.legal-page-body td:first-child { width: 11em; white-space: nowrap; background: var(--bg-tertiary); }
.legal-page-back { margin-top: 40px; font-size: var(--fs-sm); }
.legal-page-back a { color: var(--accent); }
@media (max-width: 600px) {
    .legal-page { padding: 40px 0 56px; }
    .legal-page-body thead { display: none; }
    .legal-page-body table,
    .legal-page-body tbody,
    .legal-page-body tr,
    .legal-page-body td { display: block; width: 100%; }
    .legal-page-body tr { border: 1px solid var(--border-color); border-bottom: 0; }
    .legal-page-body tr:last-child { border-bottom: 1px solid var(--border-color); }
    .legal-page-body td { border: 0; }
    .legal-page-body td:first-child { width: 100%; white-space: normal; font-weight: 700; padding-bottom: 4px; }
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.admin-login-link {
    color: var(--text-muted);
    opacity: 0.6;
    text-decoration: none;
}

.admin-login-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Floating Sample Badge --- */
.sample-badge {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    backdrop-filter: blur(12px);
    border: 1px dashed var(--accent-pink);
    padding: 10px 18px;
    font-family: var(--font-heading);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-main);
    z-index: 999;
    box-shadow: 0 10px 30px rgba(28, 27, 24, 0.04);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.05em;
    pointer-events: none;
}

.sample-badge .dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-pink);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-pink);
    animation: badge-pulse 1.8s infinite ease-in-out;
}

@keyframes badge-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.9);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .hero-grid, .instructor-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    /* On narrow screens "center right" crops most of the subject out of
       frame, leaving mostly empty wall visible. Center it instead. */
    body::before {
        background-position: center center;
    }
    
    .features-grid, .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .preview-display {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .hero-content h1 {
        font-size: 2.75rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    /* nav-links becomes a dropdown panel */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: color-mix(in srgb, var(--surface) 98%, transparent);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border-color);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
    }

    .nav-container.nav-open .nav-links {
        max-height: 70vh;
        padding: 8px 0;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 14px 24px;
        font-size: 0.95rem;
        border-bottom: 1px solid var(--border-color);
    }
    .nav-links li:last-child a {
        border-bottom: none;
    }

    /* hide the SNS row on mobile so the bar isn't crowded (still in footer/contact) */
    header .social-links {
        display: none;
    }

    .nav-container {
        height: 64px;
        position: relative;
    }

    .section-padding {
        padding: 72px 0;
    }

    /* remove desktop decorative side padding that wastes mobile width */
    .hero-content {
        padding-left: 0;
        padding-right: 0;
    }
    .hero {
        padding-top: 130px;
        padding-bottom: 80px;
        min-height: 0;
    }
    .hero-content h1 {
        font-size: 2.1rem;
    }

    /* stack hero CTA buttons full width */
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .hero-buttons .btn {
        width: 100%;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .feature-card {
        padding: 32px 24px;
    }

    /* class tabs: allow horizontal scroll instead of overflow */
    .preview-tabs {
        flex-wrap: wrap;
    }

    /* Prevent grid/flex items from blowing out wider than the viewport
       (min-width:auto default lets card content force the track wider than
       its container, which overflowed and got clipped — cutting content on
       the right and pushing full-width buttons off-center). */
    .price-card,
    .contact-form-wrap,
    .contact-info,
    .hero-content,
    .preview-info,
    .feature-card,
    .instructor-card-multi {
        min-width: 0;
    }

    .features-grid, .pricing-grid, .flow-grid, .quiz-options {
        grid-template-columns: 1fr;
    }

    .quiz-container {
        padding: 32px 20px;
    }

    .footer-top {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }
    .hero-content h1 {
        font-size: 1.85rem;
    }
    .section-header h2 {
        font-size: 1.7rem;
    }
    .badge {
        margin-bottom: 18px;
    }
    .btn {
        padding: 15px 24px;
        font-size: 0.85rem;
    }
    .logo-title {
        font-size: 1.05rem;
    }
}

/* ==========================================================================
   パーティルーム／シアター系スペース用の拡張（雛形）
   - ダークテーマ（body.theme-dark）
   - ギャラリー / 設備一覧 / ハウスルール / アクセス / 予約カード / LINEフローティング
   ========================================================================== */

/* --- ダークテーマ調整 ---
   配色そのものは content.theme から :root に注入される。
   ここでは「明るい前提で決め打ちされている箇所」だけを打ち消す。 */
body.theme-dark .badge {
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    border-color: color-mix(in srgb, var(--accent) 34%, transparent);
}
body.theme-dark header {
    background: color-mix(in srgb, var(--bg-primary) 82%, transparent);
    border-bottom: 1px solid var(--border-color);
}
body.theme-dark .text-stroke {
    -webkit-text-stroke: 1px color-mix(in srgb, var(--text-main) 16%, transparent);
    color: transparent;
}
/* ヒーロー画像の上に置く文字を読みやすくする暗幕 */
body.theme-dark::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--bg-primary) 45%, transparent) 0%,
        color-mix(in srgb, var(--bg-primary) 72%, transparent) 55%,
        var(--bg-primary) 100%);
}
body.theme-dark input,
body.theme-dark select,
body.theme-dark textarea {
    background: var(--bg-tertiary);
    color: var(--text-main);
    border-color: var(--border-color);
}
body.theme-dark .access-map { background: var(--bg-tertiary); }

/* --- ヒーロー下の注記（予約準備中など） --- */
.hero-note {
    margin-top: 18px;
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 46ch;
}

/* --- スペース紹介が複数あるとき --- */
.space-multi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 36px;
    margin-top: 12px;
}
.space-card .instructor-image-frame {
    width: 100%;
    aspect-ratio: 4/3;
    margin-bottom: 20px;
}
.space-card .instructor-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* --- ギャラリー --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 56px;
}
.gallery-item {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border-color);
}
.gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
    padding: 9px 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* --- 設備・備品 --- */
.equipment-block {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--border-color);
}
.equipment-heading {
    font-size: 1.35rem;
    margin-bottom: 10px;
}
.equipment-note {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 28px;
    max-width: 70ch;
}
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}
.equipment-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 22px 22px 18px;
}
.equipment-card h4 {
    font-size: 0.95rem;
    margin-bottom: 14px;
    color: var(--accent-pink);
    letter-spacing: 0.04em;
}
.equipment-card ul { list-style: none; }
.equipment-card li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.equipment-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan);
}

/* --- ハウスルール --- */
.rules-list {
    list-style: none;
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}
.rules-list li {
    position: relative;
    padding: 16px 20px 16px 48px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}
.rules-list li::before {
    content: '!';
    position: absolute;
    left: 18px;
    top: 16px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-pink);
    border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}

/* --- アクセス --- */
.access-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 28px;
    align-items: stretch;
}
.access-layout .access-map {
    max-width: none;
    margin: 0;
    min-height: 340px;
}
.access-routes {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}
.access-routes ul { list-style: none; }
.access-routes li {
    display: grid;
    grid-template-columns: auto auto;
    gap: 2px 10px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
}
.access-routes li:last-child { border-bottom: 0; }
.route-station { font-weight: 700; font-size: 0.95rem; }
.route-walk {
    justify-self: end;
    font-size: 0.8rem;
    color: var(--accent-pink);
    font-weight: 600;
}
.route-line {
    grid-column: 1 / -1;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.access-note {
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.7;
}
.access-nearby { margin-top: 28px; }

/* --- 予約カード（フォームの代わり） --- */
.reserve-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 32px;
}
.reserve-card h3 { font-size: 1.15rem; margin-bottom: 20px; }
.reserve-steps {
    counter-reset: step;
    list-style: none;
    margin-bottom: 26px;
}
.reserve-steps li {
    counter-increment: step;
    position: relative;
    padding-left: 42px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.reserve-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: -2px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-pink);
    border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.reserve-preparing {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 18px;
    border-radius: 10px;
    border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent);
    background: color-mix(in srgb, var(--accent) 7%, transparent);
}
.reserve-preparing strong { font-size: 0.9rem; }
.reserve-preparing p {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.7;
}
.reserve-preparing .dot {
    flex: none;
    width: 9px;
    height: 9px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--accent-pink);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
    animation: reservePulse 2s infinite;
}
@keyframes reservePulse {
    0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
    70%  { box-shadow: 0 0 0 10px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

/* --- LINEフローティングボタン --- */
.float-line {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 999px;
    background: var(--accent-pink);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    transition: transform var(--transition-fast);
}
@media (hover: hover) {
    .float-line:hover { transform: translateY(-2px); }
}

@media (max-width: 900px) {
    .access-layout { grid-template-columns: 1fr; }
    .access-layout .access-map { min-height: 280px; }
}
@media (max-width: 600px) {
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
    .reserve-card { padding: 24px 20px; }
    .float-line { right: 14px; bottom: 14px; padding: 12px 18px; font-size: 0.8rem; }
}

/* 金額欄に「要相談」などの文字列が入るとき用 */
.price-amount .num.num-text { font-size: 2.1rem; letter-spacing: 0.02em; }

/* ==========================================================================
   デザインルール（2026-09-17 金継ぎ改修）
   このファイルの最後＝最終の値。ここに無い文字サイズ・角丸・色を新しく足さない。
   - 文字は役割ごとに段を決める（見出し／小見出し／本文／小／注記）
   - 角丸は3種（4 / 12 / 999）
   - 色は content.json の theme から流し込む。ピンクは「ネオンの光」であって地ではない
   ========================================================================== */

:root {
    /* 文字段 */
    --fs-note: 12px;                      /* 注記・補助ラベル */
    --fs-sm: 14px;                        /* 箇条書き・小さめの本文 */
    --fs-md: 16px;                        /* 本文・ボタン・ナビ */
    --fs-lg: clamp(20px, 2.2vw, 24px);    /* 小見出し */
    --fs-xl: clamp(28px, 3.6vw, 40px);    /* 節の見出し */
    --fs-hero: clamp(30px, 4.6vw, 54px);  /* ヒーロー */
    --fs-num: clamp(30px, 3.4vw, 40px);   /* 料金の数字 */
    /* 角丸 */
    --r-sm: 4px;
    --r-md: 12px;
    --r-pill: 999px;
}

/* --- 1. 文字段 ------------------------------------------------------- */
.hero-content h1 { font-size: var(--fs-hero); }

.section-header h2,
.instructor-content h2,
.contact-info h2 { font-size: var(--fs-xl); }

#preview-title,
.equipment-heading,
.price-header h3,
.feature-card h3,
.space-card h3,
.reserve-card h3 { font-size: var(--fs-lg); }

.equipment-card h4,
.contact-detail-item h4 { font-size: var(--fs-md); }

/* 本文（p / li）は 16 → 14 → 12 の3段だけ */
.hero-content p,
.section-header p,
.instructor-content p,
.space-card p,
.contact-info p,
#preview-desc { font-size: var(--fs-md); }

.feature-card p,
.equipment-note,
.reserve-preparing p,
.equipment-card li,
.instructor-history li,
.preview-features-list li,
.price-features li,
.rules-list li,
.reserve-steps li { font-size: var(--fs-sm); }

.access-note,
.form-fallback-note { font-size: var(--fs-note); }

/* 補足（figcaption / label） */
.gallery-item figcaption { font-size: var(--fs-note); }
.form-group label { font-size: var(--fs-sm); }

/* その他（div / span） */
.faq-content-inner,
.instructor-title,
.preview-schedule,
.price-amount .unit,
.route-station { font-size: var(--fs-sm); }

.route-line,
.route-walk,
.price-badge { font-size: var(--fs-note); }

.hero-content .serif-italic { font-size: var(--fs-md); }
.price-amount .num { font-size: var(--fs-num); }
.price-amount .num.num-text { font-size: var(--fs-lg); }

/* ボタン・ナビ（16 と 12 の2段） */
.btn,
.tab-btn,
.nav-links a,
.faq-trigger,
.faq-icon,
.float-line,
.logo-title,
.link-inline { font-size: var(--fs-md); }

.logo-subtitle,
.admin-login-link { font-size: var(--fs-note); }

/* --- 2. 角丸（3種） --------------------------------------------------- */
.btn,
.form-group input,
.form-group select,
.form-group textarea,
.access-map img,
.nav-toggle span { border-radius: var(--r-sm); }

.feature-card,
.price-card,
.faq-item,
.gallery-item,
.equipment-card,
.rules-list li,
.reserve-card,
.reserve-preparing,
.access-map,
.access-routes,
.nav-toggle,
.instructor-image-frame,
.instructor-image-frame img,
.preview-visual,
.preview-visual img,
.space-card .instructor-image-frame img { border-radius: var(--r-md); }

.tab-btn,
.float-line { border-radius: var(--r-pill); }

/* --- 3. 節の拍（地を交互にして、区切りを見せる） ----------------------- */
/* 背景写真はヒーローだけの持ち物にする。以降の節は不透明な地にして奥行きを作る */
body.theme-dark #about,
body.theme-dark #scenes,
body.theme-dark #rules,
body.theme-dark #access { background: var(--bg-secondary); }

body.theme-dark #space,
body.theme-dark #pricing,
body.theme-dark #faq,
body.theme-dark #contact { background: var(--bg-primary); }

body.theme-dark footer { background: var(--bg-primary); border-top: 1px solid var(--border-color); }

/* --- 4. ヒーロー（写真を主役に。ガラスの箱をやめる） ------------------- */
.hero-content {
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    max-width: 660px;
}
/* 文字が乗る側だけを暗く落とすスクリム（写真は見えたまま、文字は読める） */
body.theme-dark .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(100deg,
        color-mix(in srgb, var(--bg-primary) 88%, transparent) 0%,
        color-mix(in srgb, var(--bg-primary) 74%, transparent) 46%,
        transparent 88%);
}
.hero-content h1 span {
    font-family: var(--font-heading);
    font-style: normal;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 3px solid var(--accent);
    padding-bottom: 2px;
}
.hero-content .serif-italic { color: var(--accent-cyan); }
.hero-note { color: var(--text-muted); }

/* ヒーローの2つ目の導線は文中リンクへ格下げ（ボタンを2つ並べない） */
.link-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main);
    border-bottom: 1px solid color-mix(in srgb, var(--text-main) 45%, transparent);
    padding-bottom: 2px;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}
.link-inline::after { content: '→'; }
.link-inline:hover { color: var(--accent); border-color: var(--accent); }

/* --- 5. 頭（ガラス調をやめて不透明の面に） ---------------------------- */
body.theme-dark header {
    background: var(--bg-primary);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--border-color);
}

/* --- 6. 色の役割（ピンクは光。地や小さな文字に敷き詰めない） ----------- */
.btn-primary {
    background: var(--accent-deep, #D0144F);
    color: var(--text-main);
    box-shadow: none;
}
.btn-primary:hover { background: var(--accent); color: var(--text-main); }

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.tab-btn.active {
    background: var(--accent-deep, #D0144F);
    color: var(--text-main);
    border-color: transparent;
}

.price-badge {
    background: var(--accent-deep, #D0144F);
    color: var(--text-main);
}

.float-line { color: var(--text-main); background: var(--accent-deep, #D0144F); }

/* 節の見出しの上に、ネオン管のような細い線を1本だけ引く（英字ラベルの代わり） */
.section-header h2::before,
.instructor-content h2::before,
.contact-info h2::before {
    content: '';
    display: block;
    width: 44px;
    height: 3px;
    margin-bottom: 18px;
    background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
    border-radius: var(--r-pill);
}
.section-header h2::before { margin-left: auto; margin-right: auto; }

/* 箇条書きの点は主張させない。チェックだけ副色（シアン）に */
.price-features li::before { background: var(--text-muted); }
.preview-features-list li::before { color: var(--accent-cyan); }
.equipment-card h4 { color: var(--text-main); }
.equipment-card li::before { background: var(--accent-cyan); }

/* 料金の数字は見出し書体で。イタリックの飾りをやめる */
.price-amount .num {
    font-family: var(--font-heading);
    font-style: normal;
    font-weight: 700;
    color: var(--text-main);
}
.price-card.featured .price-amount .num { color: var(--accent); }

/* 背景の巨大な飾り文字は、ほとんど見えない程度まで落とす */
body.theme-dark .text-stroke { -webkit-text-stroke-color: color-mix(in srgb, var(--text-main) 9%, transparent); }

/* --- 7. 極小文字の底上げ --------------------------------------------- */
.logo-subtitle { letter-spacing: 0.04em; }

/* --- 8. 狭い幅 -------------------------------------------------------- */
@media (max-width: 600px) {
    .hero-content { padding: 0; }
    .section-header h2::before { margin-left: 0; margin-right: auto; }
}

/* --- 9. 金継ぎ2巡目の是正 -------------------------------------------- */
/* ガラス調（背景ぼかし）をやめて不透明の面に＝型紙 glass を外す */
body.theme-dark .features,
body.theme-dark .preview-section,
body.theme-dark .faq-section,
body.theme-dark .contact-section {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent;
}
body.theme-dark .features { background: var(--bg-secondary); }

/* 残っていた角丸・文字段の端数をつぶす */
.hero-content { border-radius: 0; }
.footer-bottom p { font-size: var(--fs-note); }
.reserve-preparing strong { font-size: var(--fs-sm); }
.serif-italic { font-size: var(--fs-sm); }
.hero-content .serif-italic {
    font-size: var(--fs-sm);
    font-family: var(--font-heading);
    font-style: normal;
    letter-spacing: 0.14em;
    color: var(--accent-cyan);
    margin-bottom: 14px;
}

/* 絵文字アイコンを外した分、連絡先の行を詰める */
.contact-detail-item { gap: 0; }
.contact-detail-item h4 { margin-bottom: 4px; }
/* ガラス調（背景ぼかし）はページ全体で使わない＝型紙 glass を外す。
   暗い地の上のぼかしは、面の境目を曖昧にして「のっぺり」の一因にもなっていた */
body.theme-dark *, body.theme-dark *::before, body.theme-dark *::after {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* --- 10. 仕上げ（軸を揃える・飾りを減らす） --------------------------- */
/* 見出しだけ左・リード文だけ中央、の混在をやめて左に揃える */
.section-header { text-align: left; max-width: 62ch; }
.section-header h2::before { margin-left: 0; margin-right: 0; }
.section-header p { margin-left: 0; margin-right: 0; }

/* 見出しの中の強調は、イタリックの飾りではなく色と太さで */
.section-header h2 span,
.instructor-content h2 span {
    font-family: var(--font-heading);
    font-style: normal;
    font-weight: 700;
    color: var(--accent);
}

/* 特徴が4枚のときに3＋1で折り返して尻切れになるのを防ぐ */
@media (min-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 箇条書きの点を小さな丸に揃える */
.price-features li::before {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--text-muted);
}

/* ==========================================================================
   3巡目（2026-09-17）
   ・差し色は琥珀 #D9A441 の1色だけ。第2の差し色は置かない
   ・トップ写真に暗幕を掛けない（元から暗い写真なので、そのまま見せる）
   ・フィルムの見立て（パーフォレーション・粒子）を、地の色だけで表現する
   ========================================================================== */

/* --- 1. トップ写真に掛けていた暗幕を外す --------------------------------- */
body.theme-dark::after { content: none; }
body.theme-dark .hero::before { content: none; }
/* 写真の上の文字は、面ではなく「文字自身の影」だけで読ませる */
.hero-content h1,
.hero-content p,
.hero-content .serif-italic,
.hero-note { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75); }

/* --- 2. 差し色を1色に ---------------------------------------------------- */
.btn-primary,
.tab-btn.active,
.price-badge,
.float-line {
    background: var(--accent);
    color: var(--bg-primary);
}
.btn-primary:hover { background: var(--text-main); color: var(--bg-primary); }
@media (hover: hover) {
    .float-line:hover { background: var(--text-main); color: var(--bg-primary); }
}

/* 見出しの上の線は、2色のグラデをやめて1色に */
.section-header h2::before,
.instructor-content h2::before,
.contact-info h2::before {
    background: var(--accent);
    width: 36px;
    height: 2px;
}

/* 点・チェックは差し色を使わず、文字の淡色で */
.equipment-card li::before { background: var(--text-muted); }
.preview-features-list li::before { color: var(--text-muted); }
.hero-content .serif-italic { color: var(--accent); }
.equipment-card h4 { color: var(--text-main); }
.rules-list li::before { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

/* --- 3. 横長の写真を縦長に切らない ---------------------------------------- */
/* 元写真はすべて横長。縦長の枠に押し込むと被写体が切れるので、正方形までにとどめる */
.instructor-image-frame { aspect-ratio: 1 / 1; }
@media (max-width: 900px) {
    .instructor-image-frame { aspect-ratio: 4 / 3; }
}

/* --- 4. フィルムの見立て -------------------------------------------------- */
/* 4-a. ギャラリーをフィルムストリップに（上下にパーフォレーション） */
.gallery-grid {
    position: relative;
    background: #08070A;
    padding: 30px 16px;
    border-radius: var(--r-sm);
    gap: 10px;
}
.gallery-grid::before,
.gallery-grid::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 16px;
    background-image: repeating-linear-gradient(90deg,
        transparent 0 8px,
        var(--bg-secondary) 8px 22px,
        transparent 22px 30px);
    opacity: 0.9;
}
.gallery-grid::before { top: 7px; }
.gallery-grid::after { bottom: 7px; }
.gallery-item {
    background: #08070A;
    border-color: #14131A;
    border-radius: 2px;
}
.gallery-item img { border-radius: 0; }
.gallery-item figcaption { color: var(--text-muted); }

/* 4-b. 利用シーンの写真を「1コマ」に見立てて、左右にパーフォレーションを打つ */
.preview-visual {
    position: relative;
    padding: 0 14px;
    background: #08070A;
}
.preview-visual::before,
.preview-visual::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 10px;
    background-image: repeating-linear-gradient(180deg,
        transparent 0 8px,
        var(--bg-secondary) 8px 20px,
        transparent 20px 28px);
}
.preview-visual::before { left: 2px; }
.preview-visual::after { right: 2px; }

/* 4-c. 平らな地にだけ、ごく薄い粒子（フィルムの乳剤）を乗せる。写真の上には掛けない */
body.theme-dark #about,
body.theme-dark #scenes,
body.theme-dark #rules,
body.theme-dark #access,
body.theme-dark #space,
body.theme-dark #pricing,
body.theme-dark #faq,
body.theme-dark #contact {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-blend-mode: overlay;
}

/* 4-d. 節の変わり目にフィルムの継ぎ目（穴の帯）を1本 */
.section-padding + .section-padding { position: relative; }
.section-padding + .section-padding::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background-image: repeating-linear-gradient(90deg,
        transparent 0 10px,
        var(--border-color) 10px 24px,
        transparent 24px 34px);
    opacity: 0.55;
}

/* --- 5. ヒーロー：写真は暗幕なしで等倍に見せる ---------------------------- */
/* 文字を写真の上に重ねないので、写真に一切マスクを掛けずに済む */
body.theme-dark .hero { background: var(--bg-primary); }
.hero { padding-top: 150px; padding-bottom: 96px; min-height: 0; }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 56px;
    align-items: center;
}
.hero-content { max-width: none; }
.hero-content h1,
.hero-content p,
.hero-content .serif-italic,
.hero-note { text-shadow: none; }

/* 写真は「フィルムの1コマ」に収める（左右にパーフォレーション） */
.hero-visual {
    position: relative;
    padding: 0 16px;
    background: #08070A;
    border-radius: var(--r-sm);
}
.hero-visual img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
}
.hero-visual::before,
.hero-visual::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 12px;
    background-image: repeating-linear-gradient(180deg,
        transparent 0 9px,
        var(--bg-tertiary) 9px 23px,
        transparent 23px 32px);
}
.hero-visual::before { left: 2px; }
.hero-visual::after { right: 2px; }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-visual { order: -1; }
    .hero { padding-top: 120px; }
}

/* ==========================================================================
   4巡目（2026-09-17）ネオン調をやめて、映画館のパンフレットのような佇まいへ
   ・見出しを明朝（Shippori Mincho / Playfair Display）に。本文はゴシックのまま
   ・余白と行間を広げて、写真と文字に息をさせる
   ・琥珀は「線と、押してほしい1つのボタン」だけに使う
   ========================================================================== */

h1, h2,
.hero-content h1,
.section-header h2,
.instructor-content h2,
.contact-info h2 {
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.35;
}
.hero-content h1 { line-height: 1.32; }
.hero-content h1 span {
    font-family: var(--font-serif);
    font-weight: 600;
    border-bottom-width: 2px;
    border-bottom-color: var(--accent);
    padding-bottom: 6px;
}
.section-header h2 span,
.instructor-content h2 span { font-family: var(--font-serif); font-weight: 600; }

#preview-title,
.equipment-heading,
.price-header h3,
.feature-card h3,
.space-card h3,
.reserve-card h3 {
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* 息を入れる */
.section-padding { padding-top: 132px; padding-bottom: 132px; }
.section-header { margin-bottom: 64px; }
.section-header p,
.feature-card p,
.instructor-content p,
.hero-content p { line-height: 1.95; }
.instructor-content p { margin-bottom: 20px; }
.feature-card { padding: 44px 36px; }
.features-grid { gap: 22px; }

/* 差し色は線と主要ボタンだけ。カード上端の琥珀線は細く、短く */
.feature-card::before { height: 1px; width: 40px; }
.price-card.featured .price-amount .num { color: var(--accent); }
.instructor-title { color: var(--text-muted); letter-spacing: 0.06em; }
.preview-schedule { color: var(--text-muted); }

/* 端数の始末（角丸3種・色数を増やさない） */
.gallery-item { border-radius: var(--r-sm); border-color: var(--border-color); background: var(--bg-primary); }
.gallery-grid { background: var(--bg-primary); }
.hero-visual, .preview-visual { background: var(--bg-primary); }

@media (max-width: 600px) {
    .section-padding { padding-top: 88px; padding-bottom: 88px; }
    .section-header { margin-bottom: 44px; }
}

/* 見出しの折り返しを言葉の切れ目で（「シアタ／ー」のような泣き別れを防ぐ） */
h1, h2, h3, .hero-content h1 { word-break: auto-phrase; }
:root { --fs-hero: clamp(28px, 3.6vw, 44px); }
.hero-content h1 span { display: inline-block; }
.hero-grid { align-items: start; }
.hero-content { padding-top: 6px; }

/* ==========================================================================
   5巡目（2026-09-17）
   ・トップ写真を全面背景に戻す（暗幕は掛けない）
   ・フィルム／映写機の見立てを、うるさくない濃さで
   ・ギャラリーの拡大表示（ライトボックス）
   ========================================================================== */

/* --- トップ：写真は全面背景。マスクは掛けない -------------------------- */
body.theme-dark .hero { background: transparent; }
.hero {
    padding-top: 190px;
    padding-bottom: 150px;
    min-height: 92vh;
    overflow: hidden;
}
.hero-grid { grid-template-columns: minmax(0, 640px); align-items: center; }
.hero-content { padding-top: 0; }
/* 文字自身の影だけで読ませる（写真の上に面を敷かない） */
.hero-content h1,
.hero-content p,
.hero-content .serif-italic,
.hero-note {
    text-shadow: 0 1px 2px rgba(0,0,0,0.9), 0 6px 22px rgba(0,0,0,0.75);
}
.hero-content p, .hero-note { color: var(--text-main); }

/* フィルムの縁：画面の左右にパーフォレーションを流す */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 22px;
    pointer-events: none;
    background-image: repeating-linear-gradient(180deg,
        transparent 0 12px,
        rgba(255, 255, 255, 0.16) 12px 30px,
        transparent 30px 42px);
    opacity: 0.5;
}
.hero::before { left: 8px; }
.hero::after { right: 8px; }

/* 映写機の光：右上から斜めに差す薄い扇。色は足さず白の透過だけ */
.hero-beam {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.hero-beam::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -12%;
    width: 78%;
    height: 160%;
    transform: rotate(14deg);
    background: linear-gradient(100deg,
        transparent 0%,
        rgba(255, 255, 255, 0.055) 42%,
        rgba(255, 255, 255, 0.11) 56%,
        transparent 74%);
    filter: blur(6px);
}
/* 映写機のちらつき（ごく浅く）。動きを減らす設定の人には出さない */
@media (prefers-reduced-motion: no-preference) {
    .hero-beam::before { animation: projectorFlicker 5.5s ease-in-out infinite; }
}
@keyframes projectorFlicker {
    0%, 100% { opacity: 1; }
    42%      { opacity: 0.82; }
    46%      { opacity: 1; }
    72%      { opacity: 0.9; }
}

/* --- ギャラリーのサムネをボタンに（見た目は元のまま） ------------------- */
.gallery-item {
    display: block;
    padding: 0;
    border: 1px solid var(--border-color);
    font: inherit;
    text-align: left;
    color: inherit;
    cursor: zoom-in;
    appearance: none;
    -webkit-appearance: none;
}
.gallery-caption {
    display: block;
    padding: 9px 12px;
    font-size: var(--fs-note);
    color: var(--text-muted);
    letter-spacing: 0.02em;
}
.gallery-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- ライトボックス（映写室の暗がりに1コマだけ浮かべる） ---------------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.lightbox::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 80% at 50% 45%, rgba(8, 7, 10, 0.88) 0%, rgba(4, 4, 5, 0.97) 100%);
}
/* 幕の左右にもフィルムの穴を流す */
.lightbox::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(180deg, transparent 0 12px, rgba(255,255,255,0.10) 12px 30px, transparent 30px 42px),
        repeating-linear-gradient(180deg, transparent 0 12px, rgba(255,255,255,0.10) 12px 30px, transparent 30px 42px);
    background-size: 18px 100%, 18px 100%;
    background-position: 10px 0, calc(100% - 10px) 0;
    background-repeat: no-repeat, no-repeat;
}
.lightbox > * { position: relative; z-index: 1; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.985) translateY(10px);
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
    max-width: 90vw;
    max-height: 76vh;
}
.lightbox.open .lightbox-img-wrap { transform: none; }
.lightbox-img-wrap img { opacity: 0; transition: none; }
.lightbox-img-wrap img.ready { opacity: 1; transition: opacity 0.35s ease; }
.lightbox-img-wrap img {
    max-width: 90vw;
    max-height: 76vh;
    object-fit: contain;
    display: block;
    border-radius: var(--r-sm);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text-main);
    cursor: pointer;
    border-radius: var(--r-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}
/* スマホ幅では写真の枠（後ろに書かれている）が「＜」に重なり、タップを奪っていた。ボタンを写真より前に出す */
.lightbox-close,
.lightbox-prev,
.lightbox-next { z-index: 2; }
.lightbox-close { top: 18px; right: 22px; width: 44px; height: 44px; }
.lightbox-prev,
.lightbox-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.18); border-color: var(--accent); }
.lightbox-caption {
    max-width: min(90vw, 720px);
    margin-top: 18px;
    color: var(--text-main);
    font-size: var(--fs-sm);
    line-height: 1.6;
    text-align: center;
}
.lightbox-counter {
    margin-top: 8px;
    color: var(--accent);
    font-size: var(--fs-note);
    letter-spacing: 0.16em;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .hero { padding-top: 140px; padding-bottom: 110px; min-height: 0; }
    .hero::before, .hero::after { width: 14px; }
    .lightbox-prev, .lightbox-next { width: 44px; height: 44px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

/* 文字が乗る左側に、写真の暗い部分（スクリーン）が来るように寄せる。
   写真自体は一切加工しない（暗幕を掛けない代わりに、置き方で読ませる） */
body::before { background-position: left center; }
.hero-grid { grid-template-columns: minmax(0, 560px); }
@media (max-width: 900px) {
    body::before { background-position: 30% center; }
}
/* 写真に暗幕を掛けない代わりに、小さい文字ほど影を強くして読ませる */
.hero-content p,
.hero-note { text-shadow: 0 1px 3px rgba(0,0,0,0.95), 0 3px 14px rgba(0,0,0,0.9), 0 8px 28px rgba(0,0,0,0.7); }

/* --- フィルムの穴は「光が抜ける」ので白く見せる（暗い穴は目立たない） ---- */
.gallery-grid::before,
.gallery-grid::after {
    background-image: repeating-linear-gradient(90deg,
        transparent 0 8px,
        rgba(255, 255, 255, 0.72) 8px 22px,
        transparent 22px 30px);
    opacity: 1;
}
.preview-visual::before,
.preview-visual::after {
    background-image: repeating-linear-gradient(180deg,
        transparent 0 8px,
        rgba(255, 255, 255, 0.66) 8px 20px,
        transparent 20px 28px);
}
.hero::before,
.hero::after {
    background-image: repeating-linear-gradient(180deg,
        transparent 0 12px,
        rgba(255, 255, 255, 0.55) 12px 30px,
        transparent 30px 42px);
    opacity: 0.85;
}
.lightbox::after {
    background-image:
        repeating-linear-gradient(180deg, transparent 0 12px, rgba(255,255,255,0.42) 12px 30px, transparent 30px 42px),
        repeating-linear-gradient(180deg, transparent 0 12px, rgba(255,255,255,0.42) 12px 30px, transparent 30px 42px);
}
.section-padding + .section-padding::before {
    background-image: repeating-linear-gradient(90deg,
        transparent 0 10px,
        rgba(255, 255, 255, 0.3) 10px 24px,
        transparent 24px 34px);
    opacity: 1;
}

/* ==========================================================================
   6巡目（2026-09-17）
   ・フィルムの縁は「ページの左右」に通す（節ごとの横破線はやめる）
   ・トップの文字の下にだけ、やわらかい暗い下地を敷いて読みやすくする
   ========================================================================== */

/* 節の変わり目の横破線は撤去 */
.section-padding + .section-padding::before { content: none; }

/* ヒーローだけに出していた縦の穴も撤去（下のページ全体の縁に統合） */
.hero::before,
.hero::after { content: none; }

/* ページの左右にフィルムの縁を通す（画面に貼り付いて最後まで流れる） */
body.theme-dark::after {
    content: '';
    position: fixed;
    inset: 0;
    /* ヘッダーの上も通して、画面の端を端まで1本のフィルムに見せる（ライトボックスより下） */
    z-index: 110;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(180deg, transparent 0 12px, rgba(255,255,255,0.55) 12px 30px, transparent 30px 42px),
        repeating-linear-gradient(180deg, transparent 0 12px, rgba(255,255,255,0.55) 12px 30px, transparent 30px 42px);
    background-size: 14px 100%, 14px 100%;
    background-position: 9px 0, calc(100% - 9px) 0;
    background-repeat: no-repeat, no-repeat;
}

/* トップの文字の下にだけ、輪郭のないやわらかい暗がりを敷く（写真は隠さない） */
.hero-content { position: relative; z-index: 1; }
.hero-content::before {
    content: '';
    position: absolute;
    inset: -44px -80px -36px -60px;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(115% 100% at 34% 50%,
        rgba(6, 5, 8, 0.9) 0%,
        rgba(6, 5, 8, 0.78) 48%,
        rgba(6, 5, 8, 0.38) 76%,
        transparent 100%);
}
/* 下地が付いたぶん、文字の影は控えめに戻す */
.hero-content h1,
.hero-content p,
.hero-content .serif-italic,
.hero-note { text-shadow: 0 1px 6px rgba(0,0,0,0.55); }

@media (max-width: 900px) {
    body.theme-dark::after { background-size: 10px 100%, 10px 100%; background-position: 5px 0, calc(100% - 5px) 0; }
    .hero-content::before { inset: -28px -28px -24px -28px; }
}

/* --- フィルムの縁はトップの中だけ（背景と一緒にスクロールして消える） ---- */
/* 画面に貼り付ける方式はヘッダーの帯にも掛かってしまうのでやめる */
body.theme-dark::after { content: none; }

body.theme-dark .hero::before,
body.theme-dark .hero::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 14px;
    pointer-events: none;
    background-image: repeating-linear-gradient(180deg,
        transparent 0 12px,
        rgba(255, 255, 255, 0.6) 12px 30px,
        transparent 30px 42px);
}
body.theme-dark .hero::before { left: 9px; }
body.theme-dark .hero::after { right: 9px; }

@media (max-width: 900px) {
    body.theme-dark .hero::before, body.theme-dark .hero::after { width: 10px; }
    body.theme-dark .hero::before { left: 5px; }
    body.theme-dark .hero::after { right: 5px; }
}

/* --- トップの文字を、スクリーンに被らない位置まで右へ寄せる -------------- */
/* 寄せすぎると端に貼り付くので、画面のおよそ半分の位置から始める */
@media (min-width: 901px) {
    .hero-grid {
        /* .hero は display:flex なので、幅を指定しないと中身なりに縮む */
        flex: 1 1 100%;
        width: 100%;
        grid-template-columns: 44% minmax(0, 1fr);
        gap: 28px;
    }
    .hero-content { grid-column: 2; max-width: 620px; }
    /* 下地の左の張り出しは控えめに（スクリーンにかぶせない） */
    .hero-content::before { inset: -44px -70px -36px -38px; }
}

/* トップの文字は、写真の右側（明るい室内の手前）にもう一段寄せる */
@media (min-width: 901px) {
    .hero-grid { grid-template-columns: 54% minmax(0, 1fr); gap: 24px; }
    .hero-content { max-width: 560px; }
    .hero-content::before { inset: -40px -64px -34px -34px; }
    :root { --fs-hero: clamp(28px, 3.1vw, 40px); }
}

/* --- スペース紹介の写真は切らずに全部見せる ----------------------------- */
/* 元写真は横長（約16:9）。正方形に切ると左のスクリーンが欠けるため、枠は写真なりにする */
.instructor-image-frame { aspect-ratio: auto; }
.instructor-image-frame img { height: auto; object-fit: contain; }
@media (max-width: 900px) {
    .instructor-image-frame { aspect-ratio: auto; }
}

/* フッターに小さく併記する日本語表記（検索で名前を拾ってもらうため） */
/* --- 利用シーンのコマ枠：写真がパーフォレーションを覆っていたのを直す ----- */
/* 写真は position:absolute の inset:0 で padding ごと覆うため、穴の帯が隠れていた */
.preview-visual img {
    left: 14px;
    right: 14px;
    width: auto;
}
.preview-visual::before,
.preview-visual::after { z-index: 2; }

/* 地図の埋め込みも角を丸める（iframe は親の border-radius で切れないため自分に指定する） */
.access-map { overflow: hidden; }
.access-map iframe { border-radius: var(--r-md); display: block; }

/* ==========================================================================
   フィルムの縁は「黒い帯に穴が開いている」形にする（写真の上に穴を重ねない）
   ========================================================================== */

/* --- 利用シーンのコマ枠 --- */
.preview-visual {
    padding: 0 28px;
    background: #08070A;
}
.preview-visual img {
    left: 28px;
    right: 28px;
    width: auto;
}
.preview-visual::before,
.preview-visual::after {
    width: 14px;
    z-index: 2;
    background-color: transparent;
    background-image: repeating-linear-gradient(180deg,
        transparent 0 10px,
        rgba(255, 255, 255, 0.82) 10px 24px,
        transparent 24px 34px);
}
.preview-visual::before { left: 7px; }
.preview-visual::after { right: 7px; }

/* --- トップ：写真の端に黒い帯を置き、その中に穴を開ける --- */
body.theme-dark .hero::before,
body.theme-dark .hero::after {
    width: 34px;
    background-color: #08070A;
    background-image: repeating-linear-gradient(180deg,
        transparent 0 12px,
        rgba(255, 255, 255, 0.82) 12px 30px,
        transparent 30px 42px);
    background-position: center;
    background-size: 14px 100%;
    background-repeat: repeat-y;
}
body.theme-dark .hero::before { left: 0; }
body.theme-dark .hero::after { right: 0; }

@media (max-width: 900px) {
    .preview-visual { padding: 0 20px; }
    .preview-visual img { left: 20px; right: 20px; }
    .preview-visual::before { left: 4px; }
    .preview-visual::after { right: 4px; }
    body.theme-dark .hero::before,
    body.theme-dark .hero::after { width: 22px; background-size: 10px 100%; }
    body.theme-dark .hero::before { left: 0; }
    body.theme-dark .hero::after { right: 0; }
}

/* img は「置換要素」なので width:auto が intrinsic 幅になり、right が無視される。
   帯の内側にきっちり収めるため、幅を明示する */
.preview-visual img {
    left: 28px;
    right: auto;
    width: calc(100% - 56px);
}
@media (max-width: 900px) {
    .preview-visual img { left: 20px; right: auto; width: calc(100% - 40px); }
}
/* 地図の下の「Googleマップで開く」 */
.map-link {
    color: var(--accent);
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
    padding-bottom: 1px;
}
.map-link:hover { border-bottom-color: var(--accent); }

/* --- ページ内移動 -------------------------------------------------------- */
/* JSが効かない場合の保険。ヘッダーの下に見出しが隠れないよう手前で止める */
html { scroll-behavior: smooth; }
main > section { scroll-margin-top: 110px; }
/* 料金カードから飛んでくるので、カレンダーもヘッダーに隠れないようにする */
#calendar { scroll-margin-top: 110px; }

/* 到着した節を、そっと浮かび上がらせる合図 */
@media (prefers-reduced-motion: no-preference) {
    main > section.arrived .section-header,
    main > section.arrived .hero-content,
    main > section.arrived .contact-info {
        animation: arrivedLift 1.1s cubic-bezier(0.16, 1, 0.3, 1);
    }
}
@keyframes arrivedLift {
    0%   { opacity: 0.45; transform: translateY(10px); }
    100% { opacity: 1; transform: none; }
}
/* 画像が読み込まれる前から高さを確保する（読み込み後にページが伸びて、
   ページ内リンクの着地点がずれるのを防ぐ） */
.instructor-image-frame { aspect-ratio: 800 / 457; }
.instructor-image-frame img { height: 100%; object-fit: cover; }

/* --- 本文は白で読ませる（淡色は注記・キャプションだけにとどめる） -------- */
.section-header p,
.feature-card p,
.instructor-content p,
.space-card p,
.contact-info p,
#preview-desc,
.faq-content-inner,
.rules-list li,
.equipment-card li,
.price-features li,
.preview-features-list li,
.instructor-history li,
.cal-lead,
.reserve-steps li { color: var(--text-main); }

/* 淡色のままにするもの（小さな注記・キャプション・補助ラベル） */
.access-note,
.form-fallback-note,
.gallery-caption,
.equipment-note,
.route-line,
.hero-note,
.footer-bottom p { color: var(--text-muted); }
/* 「23／㎡」のように単位や語の途中で折り返さないようにする */
p, li, figcaption, .gallery-caption { word-break: auto-phrase; }

/* --- ピクトグラム（フィルムリール調） ----------------------------------- */
.pict {
    width: 18px;
    height: 18px;
    flex: none;
    margin-right: 8px;
    color: var(--accent);
}
.equipment-card h4 { display: flex; align-items: center; }
.logo-icon-wrap .logo-icon { color: var(--accent); }

/* トップの文字の下地も、角を少しだけ丸める */
.hero-content::before { border-radius: var(--r-md); }

/* --- ヘッダーの文字も白で読ませる --------------------------------------- */
.nav-links a { color: var(--text-main); }
.nav-links a:hover { color: var(--accent); }
.logo-title { color: var(--text-main); }
.logo-subtitle { color: var(--text-muted); }
.admin-login-link { color: var(--text-muted); }

/* --- スペース紹介：写真と文章の高さを揃える ----------------------------- */
/* 写真1枚だと右の文章に対して縦が余り、上下に大きな空白ができていた */
.instructor-grid { align-items: start; gap: 56px; grid-template-columns: 1fr 1.08fr; }
.instructor-image {
    display: grid;
    gap: 18px;
    align-content: start;
    position: sticky;
    top: 118px;
}
.instructor-content { padding-top: 0; }
@media (max-width: 900px) {
    .instructor-grid { grid-template-columns: 1fr; gap: 32px; }
    .instructor-image { position: static; }
}

/* フィルムのコマ枠は角を丸めない（丸めるとフィルムに見えない） */
.preview-visual,
.preview-visual img { border-radius: 0; }

/* 予約カードの外側の枠は不要（枠が三重になっていた）。
   フォームを出すときだけ外枠が要るので、予約カードのときだけ外す */
.contact-form-wrap:has(.reserve-card) {
    background: none;
    border: 0;
    padding: 0;
    box-shadow: none;
}

/* ページ内移動はJSで制御するので、CSSのスムーススクロールは切る。
   両方が同時に効くと、毎フレームの scrollTo が打ち消し合って
   「押しても1秒近く動かない」状態になっていた（PC・スマホとも実測） */
html { scroll-behavior: auto; }

/* 指で押す的は24px以上（WCAG 2.5.8）。細いテキストリンクに当たり判定を足す */
.map-link,
.admin-login-link {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 0;
}

/* --- 背景写真をスクロール中も薄く見せる ---------------------------------- */
/* 節の地をわずかに透かして、固定された写真の気配を通す。
   透かしすぎると文字が読めなくなるので、地は86%残す */
body.theme-dark #about,
body.theme-dark #scenes,
body.theme-dark #rules,
body.theme-dark #access {
    background-color: color-mix(in srgb, var(--bg-secondary) 86%, transparent);
}
body.theme-dark #space,
body.theme-dark #pricing,
body.theme-dark #faq,
body.theme-dark #contact {
    background-color: color-mix(in srgb, var(--bg-primary) 86%, transparent);
}
body.theme-dark footer {
    background-color: color-mix(in srgb, var(--bg-primary) 90%, transparent);
}

/* ==========================================================================
   スマホのトップ：写真を文字の下敷きにしない
   縦画面では背景に敷いても文字で隠れて見せ場が出ないので、
   写真をフィルムのコマとして上に置き、文章はその下に回す
   ========================================================================== */
.hero-visual { display: none; }

@media (max-width: 900px) {
    /* 背景写真はヒーローでは使わず、下の写真要素で見せる */
    body.theme-dark .hero { background-color: var(--bg-primary); }
    body.theme-dark .hero::before,
    body.theme-dark .hero::after { content: none; }
    .hero { padding-top: 104px; padding-bottom: 72px; }

    /* 文字の下地・影は不要（地が暗いので素で読める） */
    .hero-content::before { content: none; }
    .hero-content h1,
    .hero-content p,
    .hero-content .serif-italic,
    .hero-note { text-shadow: none; }

    .hero-grid { display: flex; flex-direction: column; gap: 26px; }
    .hero-visual {
        display: block;
        order: -1;
        position: relative;
        padding: 0 18px;
        background: #08070A;
        margin: 0 -18px;
    }
    .hero-visual img { display: block; width: 100%; height: auto; border-radius: 0; }
    .hero-visual::before,
    .hero-visual::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 12px;
        background-image: repeating-linear-gradient(180deg,
            transparent 0 9px,
            rgba(255, 255, 255, 0.8) 9px 22px,
            transparent 22px 31px);
    }
    .hero-visual::before { left: 3px; }
    .hero-visual::after { right: 3px; }
}

/* 到着したときに見出しが動く演出はやめる（押した先で揺れると不自然） */
main > section.arrived .section-header,
main > section.arrived .hero-content,
main > section.arrived .contact-info { animation: none; }

/* --- ご利用いただいた方の声 --------------------------------------------- */
.voices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.voice-card {
    margin: 0;
    padding: 30px 28px 24px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--r-md);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.voice-card blockquote {
    margin: 0;
    font-size: var(--fs-sm);
    line-height: 1.95;
    color: var(--text-main);
}
.voice-card figcaption {
    margin-top: auto;
    font-size: var(--fs-note);
    color: var(--text-muted);
    letter-spacing: 0.04em;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
}
.voices-source {
    margin-top: 26px;
    font-size: var(--fs-note);
    color: var(--text-muted);
}
/* ライトボックスの操作ボタンも、白そのものではなく文字色に揃える */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    background: color-mix(in srgb, var(--text-main) 12%, transparent);
    border-color: color-mix(in srgb, var(--text-main) 22%, transparent);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: color-mix(in srgb, var(--text-main) 20%, transparent); }

/* --- ギャラリーは写真だけの整列に ---------------------------------------- */
/* キャプションを各マスに出すと、長さの違いで高さが揃わず（実測 321〜398px）、
   狭い幅では4〜5行に折り返して読みにくかった。
   説明は alt に入っており、拡大表示（ライトボックス）でも全文が出るので、
   一覧では写真だけを均等に並べる */
.gallery-item .gallery-caption {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.gallery-item img { height: 100%; }

/* --- クチコミの節にも、他と同じ地を敷く（ここだけ写真が透けていた） ------ */
body.theme-dark #voices {
    background-color: color-mix(in srgb, var(--bg-primary) 86%, transparent);
}

/* 星（Googleマップの評価） */
.voice-stars {
    display: flex;
    gap: 2px;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.06em;
    color: color-mix(in srgb, var(--text-muted) 40%, transparent);
    margin-bottom: -4px;
}
.voice-stars .on { color: var(--accent); }

/* --- クチコミは「利用シーン」の節の中に置く（独立した節にするとメニューに無い迷子になる） */
body.theme-dark #voices { background-color: transparent; }
.voices-block {
    margin-top: 76px;
    padding-top: 52px;
    border-top: 1px solid var(--border-color);
}
.voices-heading {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: var(--fs-lg);
    margin-bottom: 8px;
}
.voices-lead {
    color: var(--text-main);
    font-size: var(--fs-sm);
    margin-bottom: 28px;
}
/* クチコミは3列×2段で揃える */
@media (min-width: 901px) {
    .voices-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ==========================================================================
   空き状況カレンダー（予約カードの下）
   ・差し色は琥珀のまま。緑/黄/赤は「装飾」ではなく空き具合を示す信号として使う
   ・角丸・文字サイズは既存のトークンから選ぶ（新しい値を足さない）
   ========================================================================== */
.cal-block {
    margin-top: 56px;
    padding-top: 44px;
    border-top: 1px solid var(--border-color);
}
/* 2ヶ月を横に並べる。狭い幅では縦に積む */
.cal-months {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
/* 背景写真が透けて数字が読みにくかったので、月ごとに地を敷く */
.cal-month {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--r-md);
    padding: 20px 22px 24px;
}
.cal-month-ttl {
    display: block;
    text-align: center;
    margin-bottom: 12px;
    font-size: var(--fs-md);
    color: var(--text-main);
}
.cal-range {
    font-family: var(--font-heading);
    font-size: var(--fs-md);
    color: var(--text-main);
    min-width: 14em;
    text-align: center;
}
/* 週表示（Google カレンダー風）。見た目は static-root/calendar-week.css。ここでは置き場所だけ */
.cal-week { margin-top: 18px; }
.cal-block h3 {
    font-family: var(--font-heading);
    font-size: var(--fs-md);
    margin: 0 0 6px;
    color: var(--text-main);
}
.cal-lead {
    font-size: var(--fs-md);
    color: var(--text-main);
    margin: 0 0 24px;
    line-height: 1.9;
}
.cal-loading {
    padding: 28px 0;
    text-align: center;
    font-size: var(--fs-note);
    color: var(--text-muted);
}
.cal-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 14px;
}
.cal-month-ttl {
    font-family: var(--font-heading);
    font-size: var(--fs-sm);
    color: var(--text-main);
    min-width: 8em;
    text-align: center;
}
.cal-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--r-sm);
    color: var(--text-muted);
    width: 34px;
    height: 34px;
    font-size: var(--fs-sm);
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.cal-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.cal-btn:disabled { opacity: 0.3; cursor: default; }

.cal-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.cal-table th {
    font-size: var(--fs-sm);
    font-weight: 400;
    color: var(--text-muted);
    padding: 10px 0;
}
.cal-th-sat { color: #8FB7D9; }
.cal-th-sun { color: #D98F8F; }
.cal-cell {
    position: relative;
    text-align: center;
    padding: 11px 0 30px;
    font-size: var(--fs-md);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}
.cal-other { color: var(--text-muted); opacity: 0.35; }
.cal-past { color: var(--text-muted); opacity: 0.45; }
.cal-sat { color: #8FB7D9; }
.cal-sun { color: #D98F8F; }
.cal-today-mark {
    display: inline-block;
    min-width: 1.7em;
    padding: 1px 0;
    border-radius: var(--r-pill);
    background: var(--accent);
    color: var(--bg-primary);
}
.cal-has-ev { cursor: pointer; }
.cal-dot {
    position: absolute;
    left: 50%;
    bottom: 9px;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: var(--r-pill);
}
.cal-status-green .cal-dot { background: #7FC17F; }
.cal-status-yellow .cal-dot { background: #E0B93C; }
.cal-status-red .cal-dot { background: #D08585; }
.cal-has-ev:hover { background: rgba(255, 255, 255, 0.05); }
/* 過去の日（ダミー ON のとき）。色は付けず薄い印だけ。クリックで予約済みの時間帯を出す */
.cal-past-pick { cursor: pointer; }
.cal-past-pick .cal-dot { background: var(--text-muted); opacity: 0.6; }
.cal-past-pick:hover { background: rgba(255, 255, 255, 0.05); }

.cal-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 200;
}
.cal-modal {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--r-md);
    width: 100%;
    max-width: 360px;
    padding: 20px 22px;
}
.cal-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--fs-sm);
    color: var(--text-main);
    margin-bottom: 12px;
}
.cal-modal-close {
    background: none;
    border: 0;
    color: var(--text-muted);
    font-size: var(--fs-md);
    line-height: 1;
    cursor: pointer;
}
.cal-modal-close:hover { color: var(--accent); }
.cal-modal-events {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: var(--fs-note);
    color: var(--text-main);
}
.cal-modal-events li { padding: 7px 0; border-bottom: 1px solid var(--border-color); }
.cal-modal-events li:last-child { border-bottom: 0; }
.cal-modal-empty { color: var(--text-muted); }
.cal-modal-check {
    display: inline-block;
    width: 1.4em;
    color: #7FC17F;
}


/* 空き状況カレンダー：狭い幅では2ヶ月を縦に積む */
@media (max-width: 900px) {
    .cal-months { grid-template-columns: 1fr; gap: 32px; }
    .cal-cell { padding: 9px 0 26px; font-size: var(--fs-sm); }
}

/* ==========================================================================
   右下のフローティング（LINE予約 / AIチャット）とチャットパネル
   ・2つを同じ四角・同じ大きさで縦に並べる
   ・LINEグリーンは地から浮くので琥珀にする
   ・AIだけは青〜紫のグラデーションを動かす（ここは差し色の規定外＝機能の目印）
   ========================================================================== */
.float-dock {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.float-btn {
    width: 62px;
    height: 62px;
    border-radius: var(--r-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 1px solid var(--border-color);
    background: var(--surface);
    color: var(--text-main);
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
@media (hover: hover) {
    .float-btn:hover { transform: translateY(-2px); }
}
.float-btn-label {
    font-size: var(--fs-note);
    line-height: 1.25;
    text-align: center;
    letter-spacing: 0.02em;
}
/* LINE は琥珀の面に地の色の文字。サイトの主ボタンと同じ扱い */
.float-btn-line {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
    font-weight: 700;
}
@media (hover: hover) {
    .float-btn-line:hover { background: var(--text-main); border-color: var(--text-main); }
}

/* AI は暗い面のまま。ただし枠を青〜紫にして、地から浮かせる。
   地のグレーは3段しかないので4段目を作らず、枠とにじみで存在感を出す。
   琥珀にするとLINEと主従が付かなくなるので使わない。 */
.float-btn-ai {
    border: 2px solid transparent;
    background-image:
        linear-gradient(var(--surface), var(--surface)),
        linear-gradient(135deg, #6EC7FF, #A97BFF, #6EC7FF);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-size: 100% 100%, 220% 100%;
    animation: ai-border-flow 4s linear infinite;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 14px rgba(138, 165, 255, 0.22);
}
@keyframes ai-border-flow {
    from { background-position: 0 0, 0% 50%; }
    to   { background-position: 0 0, 220% 50%; }
}
@media (hover: hover) {
    .float-btn-ai:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 20px rgba(138, 165, 255, 0.42); }
}
@media (prefers-reduced-motion: reduce) {
    .float-btn-ai { animation: none; }
}
.float-btn-label-ai {
    font-weight: 700;
    letter-spacing: 0.08em;
    background: linear-gradient(115deg, #6EC7FF, #A97BFF, #6EC7FF);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: ai-flow 4s linear infinite;
}
@keyframes ai-flow {
    from { background-position: 0% 50%; }
    to { background-position: 220% 50%; }
}
@media (prefers-reduced-motion: reduce) {
    .float-btn-label-ai { animation: none; }
}

/* --- チャットパネル ------------------------------------------------------ */
.chat-panel {
    position: fixed;
    right: 20px;
    bottom: 94px;
    z-index: 61;
    width: min(360px, calc(100vw - 40px));
    max-height: min(560px, calc(100vh - 140px));
    display: flex;
    flex-direction: column;
    /* 地が暗いと黒に黒で境目が消えるので、面を1段上げて枠をAIの青紫にする。
       右下のAIボタンと同じ色にすることで、どこから出たパネルかも分かる。 */
    background: var(--surface);
    border: 2px solid transparent;
    background-image:
        linear-gradient(var(--surface), var(--surface)),
        linear-gradient(135deg, #6EC7FF, #A97BFF, #6EC7FF);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-size: 100% 100%, 220% 100%;
    animation: ai-border-flow 4s linear infinite;
    border-radius: var(--r-md);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 18px rgba(138, 165, 255, 0.18);
    overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
    .chat-panel { animation: none; }
}
.chat-panel[hidden] { display: none; }
.chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}
.chat-title {
    font-size: var(--fs-sm);
    color: var(--text-main);
    font-family: var(--font-heading);
}
.chat-close {
    background: none;
    border: 0;
    color: var(--text-muted);
    font-size: var(--fs-lg);
    line-height: 1;
    cursor: pointer;
}
.chat-close:hover { color: var(--accent); }
.chat-log {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: var(--r-md);
    font-size: var(--fs-sm);
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
}
.chat-msg-bot {
    align-self: flex-start;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}
.chat-msg-user {
    align-self: flex-end;
    background: var(--accent);
    color: var(--bg-primary);
}
.chat-msg-error { color: #D08585; }
.chat-link { color: var(--accent); }
.chat-typing { display: flex; gap: 5px; align-items: center; }
.chat-typing span {
    width: 6px; height: 6px;
    border-radius: var(--r-pill);
    background: var(--text-muted);
    animation: chat-dot 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chat-dot {
    0%, 60%, 100% { opacity: 0.25; }
    30% { opacity: 1; }
}
.chat-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 16px 12px;
}
.chat-quick[hidden] { display: none; }
.chat-chip {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--r-pill);
    color: var(--text-muted);
    padding: 7px 14px;
    font-size: var(--fs-note);
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.chat-chip:hover { border-color: var(--accent); color: var(--accent); }
.chat-form {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
}
.chat-form input {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--r-sm);
    color: var(--text-main);
    padding: 10px 12px;
    font-size: var(--fs-sm);
    font-family: inherit;
}
.chat-form input:focus { outline: 1px solid var(--accent); outline-offset: 0; }
.chat-form button {
    background: var(--accent);
    border: 0;
    border-radius: var(--r-sm);
    color: var(--bg-primary);
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.chat-form button:disabled { opacity: 0.5; cursor: default; }
.chat-cta {
    display: block;
    margin: 0 16px 10px;
    padding: 10px;
    text-align: center;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: var(--r-sm);
    font-size: var(--fs-sm);
    text-decoration: none;
}
.chat-cta:hover { background: var(--text-main); }
.chat-note {
    margin: 0 16px 14px;
    font-size: var(--fs-note);
    color: var(--text-muted);
    line-height: 1.7;
}
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 600px) {
    .float-dock { right: 14px; bottom: 14px; gap: 8px; }
    .float-btn { width: 56px; height: 56px; }
    .chat-panel { right: 14px; bottom: 84px; max-height: calc(100vh - 120px); }
}

/* ==========================================================================
   メニューの「ご予約」に琥珀の光沢を流す
   ・アルテッサは下地（ボタンの面）が光るが、CNPは面を持たないので文字自身を光らせる
   ・文字色は琥珀のまま。そこへ明るい琥珀のハイライトが左から右へ通り抜ける
   ========================================================================== */
/* 「ご予約」は太字だけで示す（光沢はロゴとLINEボタンに持たせた） */
.nav-links .nav-reserve { font-weight: 700; }

/* 右下のフローティングに入れたSNSアイコン */
.float-btn-sns { color: var(--text-muted); }
@media (hover: hover) {
    .float-btn-sns:hover { color: var(--accent); border-color: var(--accent); }
}

/* ==========================================================================
   ロゴとLINEボタンの光沢
   ・ロゴの文字は白地に琥珀の光。アイコンは琥珀地に白金の光（色の関係を反転させる）
   ・LINEボタンは面を持つので、面の上を光が通る
   ========================================================================== */
.logo-title,
.logo-subtitle {
    background-image: linear-gradient(100deg,
        currentColor 0%,
        currentColor 40%,
        var(--accent) 50%,
        currentColor 60%,
        currentColor 100%);
    background-size: 300% 100%;
    background-position: 100% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logo-shine 7s ease-in-out infinite;
}
/* 7秒のうち、光が通るのは最初の2.8秒。残りは静止させて主張させすぎない */
@keyframes logo-shine {
    0%   { background-position: 100% 50%; }
    40%  { background-position: 0% 50%; }
    100% { background-position: 0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
    .logo-title,
    .logo-subtitle { animation: none; -webkit-text-fill-color: currentColor; }
}

/* LINE予約ボタン。琥珀の面の上を、明るい帯が通り抜ける */
.float-btn-line {
    position: relative;
    overflow: hidden;
}
.float-btn-line::after {
    content: "";
    position: absolute;
    top: -30%;
    left: -60%;
    width: 40%;
    height: 160%;
    background-image: linear-gradient(100deg,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.55),
        rgba(255, 255, 255, 0));
    transform: rotate(22deg);
    pointer-events: none;
    animation: float-line-shine 3s ease-in-out infinite;
}
/* アルテッサのメニューと同じ刻み。3秒のうち、光が走るのは最後の0.48秒だけ */
@keyframes float-line-shine {
    0%   { left: -60%; }
    84%  { left: -60%; }
    100% { left: 130%; }
}
@media (hover: hover) {
    .float-btn-line:hover::after { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
    .float-btn-line::after { animation: none; opacity: 0; }
}

/* SEO 監査対応（2026-10-07） */
/* メニューを <nav> で包んだが、見た目は今までどおり（nav 自体は箱を作らない） */
.nav-landmark { display: contents; }
/* 法務ページのパンくず */
.legal-breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.legal-breadcrumb a { color: inherit; }

/* チャット単体ページ（ポータル掲載用 /chat）。画面いっぱいにチャットだけを出す（アルテッサから移植 2026-10-09） */
.chat-page { min-height: 100dvh; background: var(--bg-primary); }
.chat-panel-alone {
    position: static;
    width: 100%;
    max-width: 560px;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
}
/* メッセージを入力欄の近く（下）に寄せ、空きは上に回す。キーボードで狭くなっても最新の会話が見える */
.chat-panel-alone .chat-log > :first-child { margin-top: auto; }
.chat-site-link { font-size: var(--fs-xs, 0.75rem); color: var(--text-muted); text-decoration: underline; }
.chat-page-off { max-width: 560px; margin: 0 auto; padding: 80px 24px; text-align: center; color: var(--text-main); }
.chat-page-off .chat-cta { display: inline-block; margin: 16px 0; padding: 10px 24px; }
.chat-page-off a { color: var(--text-main); }

/* AIエージェント向けの一文（2026-10-13）。小さな灰色。隠し文字にはしない */
.footer-ai-note { margin-top: 6px; font-size: 10px; line-height: 1.5; color: #777; }

/* 公式予約がいちばんお得の案内（2026-10-13） */
.best-price-note { margin: 0 0 14px; font-size: var(--fs-sm); line-height: 1.7; color: var(--text-main); text-align: center; }
.best-price-note strong { color: var(--accent); }
.best-price-note small { display: block; font-size: var(--fs-note); color: var(--text-muted); }

/* 料金が1種類のときの横長の料金表示（2026-10-13。プランのカードにしない） */
.price-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 48px 56px;
    background: color-mix(in srgb, var(--surface) 80%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--accent-pink);
    border-radius: var(--r-md);
}
.price-panel-amount { line-height: 1; }
.price-panel-amount .num { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: clamp(48px, 6vw, 72px); color: var(--accent); }
.price-panel-amount .unit { font-size: var(--fs-sm); color: var(--text-muted); margin-left: 8px; }
.price-panel-sub { margin: 14px 0 0; font-size: var(--fs-sm); color: var(--text-main); }
.price-panel .best-price-note { text-align: left; margin: 24px 0 0; }
.price-panel-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; max-width: 420px; }
.price-panel-cta .btn { width: 100%; text-align: center; white-space: nowrap; }
.price-panel .access-note { margin: 12px 0 0; text-align: left; }
.price-panel-list { list-style: none; margin: 0; padding: 0 0 0 48px; border-left: 1px solid var(--border-color); }
.price-panel-list li { padding: 14px 0; border-bottom: 1px solid var(--border-color); font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.7; }
.price-panel-list li:last-child { border-bottom: 0; }
.price-panel-list strong { display: block; color: var(--accent); font-size: var(--fs-sm); margin-bottom: 2px; }
.price-panel-list span { color: var(--text-main); }
@media (max-width: 860px) {
    .price-panel { grid-template-columns: 1fr; gap: 28px; padding: 32px 22px; }
    .price-panel-list { padding: 0; border-left: 0; border-top: 1px solid var(--border-color); }
}

/* フッターの折りたたみに戻した特商法・規約の本文（Markdown の表・見出し・箇条書き）2026-10-25 */
.legal-body table { width: 100%; border-collapse: collapse; margin: 6px 0 12px; }
.legal-body th, .legal-body td { border: 1px solid var(--border-color); padding: 6px 8px; text-align: left; vertical-align: top; font-size: var(--fs-note); }
.legal-body th { white-space: nowrap; }
.legal-body h2, .legal-body h3 { font-size: var(--fs-sm); margin: 14px 0 6px; color: var(--text-main); }
.legal-body ul, .legal-body ol { margin: 0 0 10px; padding-left: 1.3em; }
.legal-body a { color: var(--accent); }
@media (max-width: 600px) { .legal-body th { white-space: normal; } }

/* 言語の切り替え（2026-11-22 クラッセから移植）。PC はメニューの右、スマホはメニューボタンの左 */
.lang-switch { position: relative; flex-shrink: 0; font-size: .8rem; margin-left: 8px; }
.lang-switch summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 10px 10px; color: var(--text-muted); letter-spacing: .04em; user-select: none; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { color: var(--accent-gold); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 160px; padding: 6px 0; background: var(--surface); border: 1px solid var(--border-color); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.35); z-index: 1100; }
.lang-menu a { display: block; padding: 10px 18px; color: inherit; text-decoration: none; white-space: nowrap; font-size: .88rem; }
.lang-menu a:hover { background: color-mix(in srgb, var(--accent-gold) 14%, transparent); }
.lang-menu a[aria-current] { color: var(--accent-gold); font-weight: 700; }
.lang-menu a[aria-current]::before { content: "✓ "; }
@media (max-width: 768px) {
    .lang-switch { margin-left: auto; margin-right: 4px; }
    .lang-switch summary span { display: none; }
    .lang-switch summary { padding: 10px 8px; }
}
/* 言語版のページ: メニューの文字が日本語より長くなるので、PC では少し詰める */
@media (min-width: 769px) {
    html:not([lang="ja"]) .nav-links a { font-size: .82rem; letter-spacing: .01em; white-space: nowrap; }
}
