/* ==========================================================================
   New Premium Custom Styles (Extracted from style.css for Cleanliness)
   ========================================================================== */

/* New Structured Premium Footer */
.footer-new {
    background-color: #f4f1ea !important;
    color: var(--clr-dark);
    padding: 80px 0 60px;
    font-family: var(--ff-jp-sans);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.footer-new__container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 40px;
}
@media (max-width: 900px) {
    .footer-new__container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}
.footer-new__col-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}
@media (max-width: 900px) {
    .footer-new__col-brand {
        text-align: center;
    }
}
.footer-new__logo {
    font-family: var(--ff-jp-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: #8D7A71;
    letter-spacing: 0.08em;
}
.footer-new__address-box {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--clr-text);
}
.footer-new__address-item {
    margin-bottom: 12px;
}
.footer-new__address-title {
    font-weight: bold;
    color: var(--clr-dark);
    font-size: 0.95rem;
    margin-bottom: 2px;
}
.footer-new__col-links {
    text-align: left;
}
@media (max-width: 900px) {
    .footer-new__col-links {
        text-align: center;
    }
}
.footer-new__col-links ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 900px) {
    .footer-new__col-links ul {
        display: inline-grid;
        text-align: left;
        gap: 12px 30px;
    }
}
.footer-new__link {
    font-size: 0.9rem;
    color: var(--clr-text);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-new__link:hover {
    color: #8D7A71;
}
.footer-new__col-sns {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}
@media (max-width: 900px) {
    .footer-new__col-sns {
        align-items: center;
        text-align: center;
    }
}
.footer-new__sns-links {
    display: flex;
    gap: 15px;
}
.footer-new__sns-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}
.footer-new__sns-btn--instagram {
    background-color: #E1306C;
    color: #fff;
}
.footer-new__sns-btn--line {
    background-color: #06C755;
    color: #fff;
}
.footer-new__sns-btn:hover {
    opacity: 0.8;
}
.footer-new__cta-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 280px;
}
.footer-new__cta-btn {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}
.footer-new__cta-btn--web {
    background-color: #8D7A71;
    color: #fff;
}
.footer-new__cta-btn--web:hover {
    background-color: #75645D;
}
.footer-new__cta-btn--tel {
    border: 1px solid #8D7A71;
    color: #8D7A71;
    background-color: transparent;
}
.footer-new__cta-btn--tel:hover {
    background-color: #8D7A71;
    color: #fff;
}
.footer-new__copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.8rem;
    color: #999;
}

/* Mobile Floating CTA (sp-cta) styling */
.sp-cta {
    display: none;
}

@media (max-width: 768px) {
    .sp-cta {
        display: flex;
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 60px;
        z-index: 9999;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
    .sp-cta__btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-size: 1rem;
        font-weight: bold;
        color: #fff;
        height: 100%;
    }
    .sp-cta__btn--hp {
        background-color: #A39087;
    }
    .sp-cta__btn--web {
        background-color: #8D7A71;
    }
    /* .footer-new padding-bottom 110px removed as sp-cta was deleted */
    .pagetop {
        bottom: 30px;
        right: 20px;
    }
}

/* Side Floating FAB Stack */
.side-buttons {
    position: fixed;
    right: 31px;
    bottom: 95px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.side-buttons.is-show {
    opacity: 1;
    visibility: visible;
}
.side-buttons__btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(141, 122, 113, 0.2);
}
.side-buttons__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.side-buttons__btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.side-buttons__icon {
    font-size: 20px;
}
.side-buttons__btn--tel {
    background-color: #A39087;
}
.side-buttons__btn--tel .side-buttons__icon {
    color: #fff;
}
.side-buttons__btn--form {
    background-color: #8D7A71;
}
.side-buttons__btn--form .side-buttons__icon {
    color: #fff;
}

/* Adjustments for mobile viewports */
@media (max-width: 768px) {
    .side-buttons {
        right: 24px;
        bottom: 90px;
        gap: 10px;
    }
    .side-buttons__btn {
        width: 42px;
        height: 42px;
    }
    .side-buttons__btn img {
        width: 20px;
        height: 20px;
    }
    .side-buttons__icon {
        font-size: 18px;
    }
}

/* Instructor page-specific styling */
body.gallery-page .header,
body.gallery-page .header * {
    font-family: var(--ff-jp-sans) !important;
}

body.gallery-page .header__logo {
    font-family: var(--ff-jp-serif) !important;
}

body.gallery-page .header__nav ul li a span:first-child,
body.gallery-page .header__sp-nav ul li a span:first-child {
    font-family: 'Cormorant Garamond', serif !important;
}

.accordion {
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(141, 122, 113, 0.15);
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.04);
    overflow: hidden;
}

.accordion summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--clr-dark);
    font-size: 16px;
    letter-spacing: 0.03em;
    user-select: none;
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion summary::after {
    content: '+';
    font-size: 24px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.accordion[open] summary::after {
    content: '−';
}

.accordion .accordion-body {
    padding: 0 22px 22px;
    display: grid;
    gap: 16px;
}

.accordion + .accordion {
    margin-top: 18px;
}

.accordion-body dt {
    font-weight: 700;
    color: var(--clr-accent);
    margin-bottom: 6px;
}

.accordion-body dd {
    margin: 0;
    line-height: 1.8;
    color: var(--clr-text);
}

.accordion-body ul {
    margin: 0;
    padding-left: 18px;
    color: var(--clr-text);
    line-height: 1.8;
}

.profile__flex {
    align-items: flex-start;
    border-bottom: 1px solid rgba(141, 122, 113, 0.15);
    padding-bottom: 60px;
}
.profile__flex:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.profile__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

@media (max-width: 900px) {
    .profile__flex {
        flex-direction: column !important;
        gap: 20px !important;
    }
    .profile__image,
    .profile__content {
        flex: 1 1 100% !important;
    }
    .profile__content {
        text-align: left;
    }
    .profile__tags {
        justify-content: center;
    }
    .accordion summary {
        padding: 16px 18px;
        font-size: 15px;
    }
    .accordion .accordion-body {
        padding: 0 18px 18px;
    }
    .profile__text {
        font-size: 14px !important;
    }
}

/* feature-main-img は四角形 (border-radius: 4px) を適用 */
.class-page .feature-main-img {
    border-radius: 4px !important;
}


/* 3-column Features Section */
.class-page #kodawari {
    background-color: #f4f1ea;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65)),
        url('../img/ourfeatures_bg01.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    padding: 100px 0;
    display: flow-root;
}

.class-page #kodawari .section-header {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 80px 20px 0;
}
.class-page #kodawari .section-header .title-main {
    margin-top: 20px;
}

/* 「クラス紹介」セクション上部の余白 */
.class-page #menu > .section-header {
    padding-top: 80px;
}

/* おとな・全年齢クラスの背景（全面） */
.class-page #menu-adult {
    background-color: #fff;
    background-image: url('../img/class_menu_bg2.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    max-width: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}
.class-page #menu-adult > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}
.class-page #menu-adult > .section-header {
    padding-top: 80px;
}


/* プライベート予約制クラスの背景（全面） */
.class-page #menu-private {
    background-color: #fff;
    background-image: url('../img/class_menu_bg3.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    max-width: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}
.class-page #menu-private > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}
.class-page #menu-private > .section-header {
    padding-top: 80px;
}

/* Remove extra padding from product-list to match Kids Classes width on mobile */
.class-page #menu-adult > .product-list,
.class-page #menu-private > .product-list {
    padding-left: 0;
    padding-right: 0;
}

/* 各クラスセクションの上部・下部スペース（背景を維持し余白を最適化） */
.class-page #menu-adult,
.class-page #menu-private {
    padding-top: 60px !important;
}
.class-page #menu,
.class-page #menu-adult,
.class-page #menu-private {
    padding-bottom: 60px !important;
}








/* 「お問い合わせ方法」セクション上部の余白 */
.class-page #contact-method-section > .section-header {
    padding-top: 80px;
}



.feature-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 0;
    padding: 80px 5%;
    border-radius: 0;
}
/* カード個別の背景色を削除 */
.feature-card-01,
.feature-card-02,
.feature-card-03 {
    background: transparent;
}

/* カード間の斜め線 */
.feature-card-01,
.feature-card-02 {
    position: relative;
}
.feature-card-01::after,
.feature-card-02::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5%;
    width: 90%;
    height: 1px;
    background: rgba(141, 122, 113, 0.3);
    transform-origin: center;
}
.feature-card-01::after {
    transform: rotate(-2deg);
}
.feature-card-02::after {
    transform: rotate(2deg);
}


.feature-col-left {
    flex: 1;
    min-width: 180px;
}
.feature-col-middle {
    flex: 1.5;
    min-width: 220px;
}
.feature-col-right {
    flex: 2.5;
}

/* Left Column Styling */
.feature-num-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.feature-num-val {
    font-family: var(--ff-jp-serif);
    font-size: 42px;
    font-weight: 300;
    color: #483c38;
    line-height: 1;
}
.feature-num-line {
    flex-grow: 1;
    height: 1px;
    background-color: rgba(72, 60, 56, 0.4);
    max-width: 80px;
}
.feature-en-title {
    font-family: var(--ff-en-fancy);
    font-size: 14px;
    font-weight: 600;
    color: #8D7A71;
    letter-spacing: 0.1em;
    line-height: 1.4;
}

/* Middle Column Image Styling */
.feature-img-wrapper {
    width: 100%;
    margin-top: 12px;
}
.feature-main-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    box-shadow: 8px 8px 0 rgba(141, 122, 113, 0.15);
}

/* Right Column Text Styling */
.feature-jp-title {
    font-family: var(--ff-jp-serif);
    font-size: 24px;
    font-weight: 600;
    color: #483c38;
    margin-bottom: 20px;
    line-height: 1.4;
}
.feature-desc-text p {
    font-family: var(--ff-jp-sans);
    font-size: 14px;
    line-height: 1.8;
    color: #483c38;
    margin-bottom: 12px;
}
.feature-desc-text p:last-child {
    margin-bottom: 0;
}

/* Responsive adjust for mobile */
@media (max-width: 900px) {
    .feature-layout {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }
    .feature-col-left,
    .feature-col-middle,
    .feature-col-right {
        flex: none;
        width: 100%;
    }
    .feature-num-line {
        max-width: none;
    }
    .feature-jp-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
}

/* Premium Purple Theme for Adult & All-Ages Classes */
.class-page .product-card-purple {
    background: #F3EEF7;
    border: 1px solid #C6B2D4 !important;
}
.class-page .product-card-purple .split-card-title {
    color: #6E5685 !important;
}
.class-page .product-card-purple .split-card-title .title-icon path {
    fill: #6E5685 !important;
}
.class-page .product-card-purple .product-price {
    color: #A286B7;
}
.class-page .product-card-purple .product-contents-left {
    background: #F3EEF7;
}
.class-page .product-card-purple .product-contents-left h4 {
    color: #A286B7;
}
.class-page .product-card-purple .product-contents-right {
    background: #F3EEF7;
}
.class-page .product-card-purple .product-contents-right h4 {
    color: #A286B7;
}
.class-page .product-card-purple .product-details-list dt {
    background-color: #EAE2F0;
}
.class-page .product-card-purple .product-details-list dd {
    background-color: #F3EEF7;
}

/* Premium Greige Theme for Adult Classes */
.class-page .product-card-greige {
    background: #F0ECE7;
    border: 1px solid #C4BDB5 !important;
}
.class-page .product-card-greige .split-card-title {
    color: #5D544C !important;
}
.class-page .product-card-greige .split-card-title .title-icon path {
    fill: #5D544C !important;
}
.class-page .product-card-greige .product-price {
    color: #A49B92;
}
.class-page .product-card-greige .product-contents-left {
    background: #F0ECE7;
}
.class-page .product-card-greige .product-contents-left h4 {
    color: #A49B92;
}
.class-page .product-card-greige .product-contents-right {
    background: #F0ECE7;
}
.class-page .product-card-greige .product-contents-right h4 {
    color: #A49B92;
}
.class-page .product-card-greige .product-details-list dt {
    background-color: #E2DBD4;
}
.class-page .product-card-greige .product-details-list dd {
    background-color: #F0ECE7;
}

/* Premium Gold Theme for Private Classes */
.class-page .product-card-gold {
    background: #FAF7F2;
    border: 1px solid #DFD3C3 !important;
}
.class-page .product-card-gold .split-card-title {
    color: #907A5E !important;
}
.class-page .product-card-gold .split-card-title .title-icon path {
    fill: #907A5E !important;
}
.class-page .product-card-gold .product-price {
    color: #BFA88F;
}
.class-page .product-card-gold .product-contents-left {
    background: #FAF7F2;
}
.class-page .product-card-gold .product-contents-left h4 {
    color: #BFA88F;
}
.class-page .product-card-gold .product-contents-right {
    background: #FAF7F2;
}
.class-page .product-card-gold .product-contents-right h4 {
    color: #BFA88F;
}
.class-page .product-card-gold .product-details-list dt {
    background-color: #F4EFE6;
}
.class-page .product-card-gold .product-details-list dd {
    background-color: #FAF7F2;
}

/* Force Section Headings to use Cormorant Garamond */
.section-title-script {
    font-family: var(--ff-en-fancy) !important;
}

/* Warm mocha beige color override for section subheadings */
.reve-font-serif.text-gray-400 {
    color: #9a877d !important;
}

/* Premium Minimalist Arrow Button (inspired by example_04.jpg) */
.feature-btn-arrow {
    position: relative;
    display: inline-block;
    color: #ffffff;
    font-family: var(--ff-en-fancy); /* Cormorant Garamond */
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-decoration: none;
    padding-bottom: 12px;
    padding-left: 5px;
    padding-right: 35px; /* Give room on the right for the extended line and arrowhead */
    transition: opacity 0.3s ease;
}
.feature-btn-arrow:hover {
    opacity: 0.8;
}
/* The horizontal line */
.feature-btn-arrow::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.25) 45%, #ffffff 50%, rgba(255, 255, 255, 0.25) 55%, rgba(255, 255, 255, 0.25) 100%);
    background-size: 200% 100%;
    animation: drawLineFlow 2.5s infinite linear;
    transition: width 0.3s ease;
}
.feature-btn-arrow:hover::before {
    width: 103%;
}

@keyframes drawLineFlow {
    0% { background-position: 200% 0; }
    100% { background-position: 0 0; }
}
/* The slanted arrowhead (top half only) */
.feature-btn-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.7);
    transform: rotate(30deg);
    transform-origin: bottom right;
    transition: background-color 0.3s ease, transform 0.3s ease, right 0.3s ease;
}
.feature-btn-arrow:hover::after {
    background-color: #ffffff;
    right: -3px;
    transform: rotate(30deg) scaleX(1.1);
}

/* Custom 3D Shifting Button (inspired by user request) */
.button-concept-3d {
    display: flex;
    justify-content: center;
    width: 100%;
}
.button-concept-3d a {
    font-family: var(--ff-jp-serif);
    font-size: 14px;
    letter-spacing: 0.1em;
    color: var(--clr-dark);
    font-weight: 500;
    outline: 1px solid var(--clr-dark);
    display: block;
    position: relative;
    box-sizing: border-box;
    max-width: 300px;
    width: 100%;
    text-align: center; 
    padding: 16px 64px;
    margin: 0 auto;
    text-decoration: none;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    background: transparent;
}
.button-concept-3d a::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 6px;
    width: 100%;
    height: 100%;
    background: #eee9e6;
    z-index: -1;
    transition: all 0.3s ease;
}
.button-concept-3d a:hover::before {
    top: 0;
    left: 0;
}

/* Center lines for FREE TRIAL title-main */
#index-free-trial .title-main {
    position: relative;
    display: inline-block;
    padding: 0 50px;
    margin: 0 auto;
}
#index-free-trial .title-main .section-title {
    margin-bottom: 0 !important;
}
#index-free-trial .title-main::before,
#index-free-trial .title-main::after {
    content: '';
    position: absolute;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 30px;
    height: 1px;
    background: var(--clr-dark) !important;
}
#index-free-trial .title-main::before {
    left: 0 !important;
}
#index-free-trial .title-main::after {
    right: 0 !important;
}

/* Responsive adjustments for the centered footer */
@media (max-width: 768px) {
    .footer-new__row-content {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .footer-new__col-links ul {
        justify-content: center !important;
        text-align: center !important;
        gap: 12px 15px !important;
    }
    .footer-new__col-sns {
        align-items: center !important;
    }
    .footer-new__sns-links {
        justify-content: center !important;
    }
}

/* Multiplied blending for images with white backgrounds */
.blend-multiply {
    mix-blend-mode: multiply;
}

@media (max-width: 900px) {
    .profile__btn-container {
        text-align: center !important;
        display: block !important;
    }
    .profile__btn-container a {
        display: inline-block !important;
    }
    .phi-text-area__catch {
        right: auto !important;
        left: 0 !important;
        bottom: -24px !important;
    }
    .concept-flow-btn-wrap {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    .concept-flow-btn-wrap a {
        display: inline-block !important;
        text-align: center !important;
    }
    .class-page footer, .concept-page footer, footer, .footer, .footer-new {
        padding-bottom: 40px !important;
    }
    .header__sp-nav {
        justify-content: flex-start !important;
        padding-top: 80px !important;
        padding-bottom: 40px !important;
        overflow-y: auto !important;
    }
    .header__sp-nav li {
        margin-bottom: 1.2rem !important;
    }
    
    /* class.html specific mobile adjustments */
    .class-page .section-title {
        font-size: 26px !important;
        letter-spacing: 0.15em !important;
    }
    .class-page .section-label {
        font-size: 16px !important;
        line-height: 1.4 !important;
        display: inline-block !important;
    }
    .class-page .feature-col-middle {
        display: flex !important;
        flex-direction: column !important;
    }
    .class-page .feature-img-wrapper {
        order: 1 !important;
        margin-top: 0 !important;
        margin-bottom: 12px !important;
    }
    .class-page .feature-num-wrapper {
        order: 2 !important;
    }
    .class-page .feature-en-title {
        order: 3 !important;
        margin-bottom: 15px !important;
    }
    .class-page .feature-num-line {
        display: none !important;
    }
    .flow-section {
        padding: 60px 20px !important;
    }
    .class-page #flow-section h2,
    .class-page #instructors-section h2,
    .gallery-page #salon-intro h2,
    .gallery-page #salon-info h2,
    .bach-page #bach-intro h2,
    .bach-page #bach-info h2,
    .bach-page #bach-features-section h2,
    .gallery-page #gallery h2,
    .access-page #access-section h2,
    .faq-page #faq-section h2,
    .contact-page #contact-form-section h2,
    .contact-page #flow-section h2,
    .contact-page #form-section-anchor h2,
    .gallery-page #flow-section h2,
    .gallery-page #instructor-list-section h2,
    .class-page #kodawari h2,
    .class-page #class-free-trial h2,
    .class-page #menu h2,
    .class-page #contact-method-section h2,
    #contents h2,
    #news h2,
    #service h2,
    #menu h2,
    #cta h2,
    #instructor h2,
    #faq h2,
    .contact h2,
    .access-section h2 {
        font-size: 26px !important;
    }
    .class-page #flow-section span.reve-font-serif,
    .class-page #instructors-section span.reve-font-serif,
    .gallery-page #salon-intro span.reve-font-serif,
    .gallery-page #salon-info span.reve-font-serif,
    .bach-page #bach-intro span.reve-font-serif,
    .bach-page #bach-info span.reve-font-serif,
    .bach-page #bach-features-section span.reve-font-serif,
    .gallery-page #gallery span.reve-font-serif,
    .access-page #access-section span.reve-font-serif,
    .faq-page #faq-section span.reve-font-serif,
    .contact-page #contact-form-section span.reve-font-serif,
    .contact-page #flow-section span.reve-font-serif,
    .contact-page #form-section-anchor span.reve-font-serif,
    .gallery-page #flow-section span.reve-font-serif,
    .gallery-page #instructor-list-section span.reve-font-serif,
    .class-page #kodawari span.reve-font-serif,
    .class-page #class-free-trial span.reve-font-serif,
    .class-page #menu span.reve-font-serif,
    .class-page #contact-method-section span.reve-font-serif,
    #contents span.reve-font-serif,
    #news span.reve-font-serif,
    #service span.reve-font-serif,
    #menu span.reve-font-serif,
    #cta span.reve-font-serif,
    #instructor span.reve-font-serif,
    #faq span.reve-font-serif,
    .contact span.reve-font-serif,
    .access-section span.reve-font-serif {
        font-size: 16px !important;
    }
    .class-page #flow-section p {
        font-size: 16px !important;
    }
    .trial-lesson__btn {
        padding: 14px 28px !important;
        font-size: 15px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
        margin: 0 auto !important;
    }
    .flow-banner-grid {
        grid-template-columns: 1fr !important;
    }
    .news-card-inner {
        padding: 30px 15px !important;
    }
    body {
        margin-bottom: 0 !important;
    }
}

/* Remove ballet icons from headers on gallery/art/music/other pages */
.index-page .section-title-script::before,
.gallery-page .section-title-script::before,
.bach-page .section-title-script::before,
.access-page .section-title-script::before,
.faq-page .section-title-script::before,
.contact-page .section-title-script::before {
    display: none !important;
}

/* Align faq.html (faq-page) accordion padding to match index.html */
.faq-page .faq__q {
    padding: 24px;
}
.faq-page .faq__a {
    padding: 0 24px 24px;
}
.faq-page .faq__a-inner {
    padding-top: 24px;
}

/* Ensure there is plenty of space between the text and the "+" icon */
.faq__q-text {
    padding-right: 40px !important;
}

/* Give more space between the Q/A icons and the text */
.faq__q-icon,
.faq__a-icon {
    margin-right: 24px !important;
}

/* ==========================================================================
   Gallery Lightbox Styling
   ========================================================================== */
.gallery-item img {
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.gallery-item img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.gallery-lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-lightbox.active {
    display: flex;
    opacity: 1;
}

.gallery-lightbox__content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transform: scale(0.97);
    transition: transform 0.3s ease;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.gallery-lightbox.active .gallery-lightbox__content {
    transform: scale(1);
}

.gallery-lightbox__close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 44px;
    font-weight: 200;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    user-select: none;
    z-index: 10001;
    line-height: 1;
}

.gallery-lightbox__close:hover {
    color: #ccc;
    transform: scale(1.1);
}

body.lightbox-open {
    overflow: hidden;
}

/* iOS Safari (iPhone) fixed background support for #menu-adult and #menu-private */
@media (max-width: 767px),
       (max-width: 1024px) and (hover: none) and (pointer: coarse) {
    .class-page #menu-adult,
    .class-page #menu-private {
        position: relative;
        background: none !important;
        isolation: isolate;
        overflow: hidden;
        -webkit-clip-path: inset(0);
        clip-path: inset(0);
    }

    .class-page #menu-adult::before,
    .class-page #menu-private::before {
        content: '';
        display: block;
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        z-index: 0;
        pointer-events: none;
        background-repeat: no-repeat;
        background-size: cover;
    }

    .class-page #menu-adult::before {
        background-image: url('../img/class_menu_bg2.jpg');
        background-position: center;
    }

    .class-page #menu-private::before {
        background-image: url('../img/class_menu_bg3.jpg');
        background-position: center;
    }

    .class-page #menu-adult > *,
    .class-page #menu-private > * {
        position: relative;
        z-index: 1;
    }
}


.df{
        font-family: 'Zen Old Mincho', serif !important; 
}