/* =========================================
   Reset & Variables
   ========================================= */
:root {
    /* Ivory & Gold Palette */
    --clr-ivory: #FDFBF7;
    --clr-ivory-dark: #F4EFE6;
    --clr-gold: #C5A880;
    --clr-gold-light: #E7D5B8;
    --clr-gold-dark: #9E8158;
    --clr-text: #332F2A;
    --clr-text-light: #6A6258;
    --clr-white: #FFFFFF;

    /* Typography */
    --font-serif-en: 'Cormorant Garamond', serif;
    --font-serif-ja: 'Shippori Mincho', serif;

    /* Spacing & Sizes */
    --section-pad: 100px 20px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif-ja);
    color: var(--clr-text);
    background-color: var(--clr-ivory);
    line-height: 1.8;
    overflow-x: hidden;
}

/* Typography elements */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500;
}

.text-center {
    text-align: center;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.bg-ivory {
    background-color: var(--clr-ivory);
}

.bg-white {
    background-color: var(--clr-white);
}

.mt-4 {
    margin-top: 2rem;
}

/* =========================================
   Header (Glassmorphism)
   ========================================= */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(253, 251, 247, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(197, 168, 128, 0.2);
    transition: var(--transition);
}

.glass-header.scrolled {
    background: rgba(253, 251, 247, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 30px;
}

.logo {
    font-family: var(--font-serif-en);
    font-size: 1.8rem;
    color: var(--clr-gold-dark);
    letter-spacing: 1px;
    line-height: 1.1;
}

.logo-main {
    display: block;
}

.logo-sub {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--clr-gold-dark);
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-family: var(--font-serif-en);
    font-size: 1.1rem;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--clr-gold);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--clr-gold-dark);
    transition: var(--transition);
}

/* =========================================
   Hero Section
   ========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--clr-white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/piano_room.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    transform: scale(1.05);
    /* slightly scaled for animation */
}

/* Deepening the overlay for elegant contrast */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 40px;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.4;
    margin: 15px 0 25px;
    letter-spacing: 2px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: var(--clr-gold-light);
}

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    font-family: var(--font-serif-ja);
    font-size: 1rem;
    letter-spacing: 2px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--clr-gold);
    color: var(--clr-white);
    border: 1px solid var(--clr-gold);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--clr-gold-dark);
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-secondary {
    background-color: transparent;
    color: var(--clr-gold-dark);
    border: 1px solid var(--clr-gold);
}

.btn-secondary:hover {
    background-color: var(--clr-gold);
    color: var(--clr-white);
}

/* =========================================
   Global Section Styles
   ========================================= */
.section {
    padding: var(--section-pad);
}

.section-title {
    font-family: var(--font-serif-en);
    font-size: 3rem;
    color: var(--clr-gold-dark);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title.left-align {
    text-align: left;
}

.section-title .title-ja {
    display: block;
    font-family: var(--font-serif-ja);
    font-size: 1rem;
    color: var(--clr-text-light);
    letter-spacing: 4px;
    margin-top: 5px;
}

/* =========================================
   About Section
   ========================================= */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text-block {
    margin-bottom: 50px;
    padding: 0 20px;
}

.about-lead {
    font-size: 1.4rem;
    color: var(--clr-gold-dark);
    margin-bottom: 30px;
    line-height: 2;
    letter-spacing: 1px;
}

.about-desc {
    font-size: 1.05rem;
    color: var(--clr-text-light);
    line-height: 2.2;
}

.about-sub-title {
    font-size: 1.3rem;
    color: var(--clr-gold-dark);
    margin-bottom: 20px;
    display: inline-block;
    border-bottom: 1px solid var(--clr-ivory-dark);
    padding-bottom: 10px;
}

/* =========================================
   Features Section
   ========================================= */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-span-2 {
    grid-column: span 2;
}

.feature-card {
    background: var(--clr-white);
    padding: 50px 30px;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(197, 168, 128, 0.08);
    position: relative;
    transition: var(--transition);
    border-top: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--clr-gold);
    box-shadow: 0 15px 50px rgba(197, 168, 128, 0.15);
}

.feature-number {
    font-family: var(--font-serif-en);
    font-size: 3rem;
    color: var(--clr-gold-light);
    opacity: 0.5;
    position: absolute;
    top: 20px;
    right: 30px;
}

.feature-headline {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--clr-gold-dark);
    border-bottom: 1px solid var(--clr-ivory-dark);
    padding-bottom: 10px;
    display: inline-block;
}

.feature-text {
    color: var(--clr-text-light);
    font-size: 1rem;
}

/* =========================================
   Image Showcase (Parallax Area)
   ========================================= */
.image-showcase {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

.showcase-img {
    width: 100%;
    height: 130%;
    /* for parallax margin */
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: -15%;
    left: 0;
}

.showcase-overlay {
    position: absolute;
    inset: 0;
    background: rgba(40, 35, 30, 0.3);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 70px;
}

.showcase-overlay p {
    font-family: var(--font-serif-en);
    color: var(--clr-white);
    font-size: 2.5rem;
    letter-spacing: 4px;
    font-style: italic;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* =========================================
   Teacher Section
   ========================================= */
.teacher-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.teacher-image-wrapper {
    flex: 1;
    position: relative;
}

.teacher-img {
    width: 100%;
    border-radius: 4px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.gold-frame {
    position: absolute;
    top: 20px;
    left: -20px;
    right: 20px;
    bottom: -20px;
    border: 2px solid var(--clr-gold);
    z-index: 1;
}

.teacher-info {
    flex: 1;
}

.teacher-name {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--clr-text);
    line-height: 1.4;
}

.teacher-name.logo-sub {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--clr-text-light);
    letter-spacing: 2px;
}

.teacher-name-en {
    font-family: var(--font-serif-en);
    font-size: 0.9rem;
    color: var(--clr-text-light);
    letter-spacing: 2px;
    display: block;
    margin-top: -5px;
    margin-bottom: 15px;
}

.teacher-subtitle {
    font-size: 1.1rem;
    color: var(--clr-gold-dark);
    font-weight: 400;
    display: block;
    margin-top: 5px;
}

.teacher-desc {
    color: var(--clr-text-light);
    margin-bottom: 40px;
}

.teacher-bio-title {
    font-size: 1.3rem;
    color: var(--clr-gold-dark);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--clr-ivory-dark);
    padding-bottom: 5px;
    display: inline-block;
}

.teacher-bio-list {
    color: var(--clr-text-light);
    font-size: 0.95rem;
}

.teacher-bio-list li {
    margin-bottom: 20px;
}

/* =========================================
   Access Section
   ========================================= */
.access-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(197, 168, 128, 0.3);
    padding: 60px;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 15px 40px rgba(197, 168, 128, 0.05);
}

.access-location {
    font-size: 1.5rem;
    color: var(--clr-gold-dark);
    margin-bottom: 30px;
}

.access-list {
    text-align: left;
    display: inline-block;
}

.access-list li {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(197, 168, 128, 0.2);
    padding-bottom: 8px;
}

.access-list li strong {
    color: var(--clr-gold-dark);
    margin-right: 15px;
    font-weight: 500;
}

.access-list .notice {
    font-size: 0.9rem;
    color: #999;
    border-bottom: none;
    margin-top: 20px;
}

/* =========================================
   Salon News Section
   ========================================= */
.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    background: var(--clr-white);
    padding: 30px 40px;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(197, 168, 128, 0.05);
    border-left: 4px solid var(--clr-gold-dark);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.news-date {
    font-size: 1rem;
    color: var(--clr-gold-dark);
    font-weight: 500;
}

.news-category {
    font-size: 0.8rem;
    background: var(--clr-ivory-dark);
    padding: 2px 10px;
    border-radius: 20px;
    color: var(--clr-text-light);
}

.news-heading {
    font-size: 1.3rem;
    color: var(--clr-text);
    margin-bottom: 20px;
    font-weight: 500;
}

.news-text {
    color: var(--clr-text-light);
    line-height: 1.8;
}

.news-note {
    font-size: 0.9rem;
    color: #999;
}


/* =========================================
   Contact Section
   ========================================= */
.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--clr-white);
    padding: 60px;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(197, 168, 128, 0.08);
}

.contact-intro {
    margin-bottom: 50px;
    border-bottom: 1px solid var(--clr-ivory-dark);
    padding-bottom: 40px;
}

.contact-desc {
    color: var(--clr-text-light);
    line-height: 2;
    font-size: 1.1rem;
}

.contact-wrapper form {
    text-align: left;
}

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

.form-group label {
    display: block;
    font-size: 1.1rem;
    color: var(--clr-gold-dark);
    margin-bottom: 15px;
    font-weight: 500;
}

.required,
.optional {
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 2px;
    margin-left: 10px;
    vertical-align: middle;
}

.required {
    background: #e6f2ed;
    color: #3b8e68;
}

.optional {
    background: #f0f0f0;
    color: #666;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background: #fafafa;
    transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--clr-gold);
    background: var(--clr-white);
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.1);
}

.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.check-item,
.radio-item {
    font-weight: 400 !important;
    color: var(--clr-text) !important;
    font-size: 1rem !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0 !important;
}

input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--clr-gold-dark);
}

.form-note {
    font-size: 0.9rem;
    color: var(--clr-text-light);
    margin-top: 10px;
}

.message-example {
    font-size: 0.95rem;
    color: var(--clr-text-light);
    background: var(--clr-ivory);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    line-height: 1.8;
}

.form-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--clr-ivory-dark);
}

.policy-title {
    font-size: 1.1rem;
    color: var(--clr-gold-dark);
    margin-bottom: 10px;
}

.form-policy p {
    font-size: 0.95rem;
    color: var(--clr-text-light);
    line-height: 1.8;
}

.form-consent {
    margin: 40px 0;
    padding: 20px;
    background: var(--clr-ivory);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.consent-text {
    font-size: 0.95rem;
    color: var(--clr-text);
}

.consent-check {
    justify-content: center;
    margin-top: 5px;
}

.consent-check input {
    margin-top: 0;
}

.consent-check strong {
    color: var(--clr-gold-dark);
    font-weight: 500;
}

.contact-wrapper form button[type="submit"] {
    width: 100%;
    max-width: 300px;
    font-size: 1.1rem;
    padding: 20px;
    border: none;
    cursor: pointer;
    background-color: var(--clr-gold);
    color: var(--clr-white);
    border-radius: 4px;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color 0.3s ease;
}

@media (hover: hover) {
    .contact-wrapper form button[type="submit"]:hover {
        background-color: var(--clr-gold-dark);
    }
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: #2b2825;
    color: var(--clr-gold-light);
    text-align: center;
    padding: 60px 20px 30px;
}

.footer-logo {
    font-family: var(--font-serif-en);
    font-size: 2rem;
    margin-bottom: 25px;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
}

.footer-logo .logo-main {
    display: block;
}

.footer-logo .logo-sub {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: rgba(231, 213, 184, 0.7);
    letter-spacing: 2px;
    margin-top: 5px;
}

.footer-social {
    margin: 20px 0 10px;
}

.social-icon {
    font-size: 1.8rem;
    color: rgba(231, 213, 184, 0.8);
    transition: var(--transition);
    display: inline-block;
}

.social-icon:hover {
    color: #ff0000;
    transform: translateY(-3px);
}

.privacy-link {
    font-size: 0.85rem;
    color: var(--clr-text-light);
    text-decoration: underline;
    transition: var(--transition);
}

.privacy-link:hover {
    color: var(--clr-gold-dark);
}

.copyright {
    margin-top: 50px;
    font-size: 0.8rem;
    color: rgba(231, 213, 184, 0.5);
    font-family: var(--font-serif-en);
}

/* =========================================
   Animations & Base states
   ========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(0);
    transition: opacity 1s ease-out;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease-out;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(40px);
    transition: all 1s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 1s ease-out;
}

.fade-in.appear,
.fade-in-up.appear,
.fade-in-left.appear,
.fade-in-right.appear {
    opacity: 1;
    transform: translate(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* モバイル用改行クラス（PCでは非表示） */
.sp-br {
    display: none;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(43, 40, 37, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-family: var(--font-serif-en);
        font-size: 1.4rem;
        color: var(--clr-ivory);
        letter-spacing: 3px;
        padding: 10px 20px;
        transition: color 0.3s;
    }

    .nav-links a:active,
    .nav-links a:hover {
        color: var(--clr-gold-light);
    }

    .nav-links a::after {
        display: none;
        /* スマホ特有の下線アニメーションを消去してすっきりと */
    }

    /* Simplified for single page demo */

    .sp-br {
        display: block;
    }

    .hero-title {
        font-size: 1.85rem;
        line-height: 1.6;
        margin-bottom: 25px;
    }

    .hero-desc {
        font-size: 0.95rem;
        line-height: 1.9;
    }

    .teacher-layout {
        flex-direction: column;
    }

    .gold-frame {
        left: -10px;
        right: 10px;
        bottom: -10px;
        top: 10px;
    }

    .section {
        padding: 60px 20px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-span-2 {
        grid-column: span 1;
    }

    /* Mobile News */
    .news-item {
        padding: 20px;
    }

    .contact-wrapper {
        padding: 30px 20px;
    }

    /* Mobile Showcase Auto-Scaling */
    .image-showcase {
        height: auto;
        display: flex;
    }

    .showcase-img {
        position: static;
        width: 100%;
        height: auto;
        transform: none !important;
        /* Disable parallax positioning offset on mobile */
    }

    .showcase-overlay {
        padding-bottom: 8%;
    }

    .showcase-overlay p {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }

    .form-consent {
        align-items: flex-start;
        text-align: left;
    }

    .consent-check {
        justify-content: flex-start;
    }
}

/* =========================================
   Modal (Privacy Policy)
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(43, 40, 37, 0.85);
    /* Salon ambiance overlay */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: var(--clr-ivory);
    margin: 10% auto;
    padding: 50px;
    border-radius: 4px;
    max-width: 700px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--clr-gold-light);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: var(--clr-text-light);
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    font-weight: 300;
    cursor: pointer;
    transition: 0.2s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--clr-gold-dark);
    text-decoration: none;
}

.modal-title {
    font-size: 1.5rem;
    color: var(--clr-gold-dark);
    border-bottom: 1px solid var(--clr-gold-light);
    padding-bottom: 15px;
    margin-bottom: 30px;
    text-align: center;
    font-family: var(--font-serif);
}

.modal-body {
    font-size: 0.95rem;
    color: var(--clr-text);
    line-height: 2;
    text-align: center;
}

.modal-body p {
    margin-bottom: 20px;
}

.modal-body h4 {
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--clr-gold-dark);
    font-family: var(--font-serif);
}

@media (max-width: 768px) {
    .modal-content {
        margin: 15% 20px;
        padding: 55px 20px 30px;
        /* 上部にボタンを避ける余白を追加 */
    }

    .close-modal {
        top: 15px;
        right: 20px;
    }

    .modal-title {
        font-size: 1.2rem;
        /* 約2段階小さく */
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .modal-body {
        font-size: 0.8rem;
        /* 約2段階小さく */
        line-height: 1.8;
    }

    .modal-body h4 {
        font-size: 0.95rem;
        /* 約2段階小さく */
        margin-top: 25px;
        margin-bottom: 10px;
    }
}