@charset "UTF-8";

/* ==========================================================================
   Variables & Fonts - Premium Japanese Aesthetic (Wa)
   ========================================================================== */
:root {
    /* Colors */
    --clr-washi: #f9f6f0;       /* 和紙のような生成色 */
    --clr-washi-dark: #eee8de;  /* 少し濃い生成色 */
    --clr-sumi: #2b2a27;        /* 墨色 (Text) */
    --clr-sumi-light: #595651;  /* 薄墨色 */
    --clr-kin: #b89947;         /* 鈍い金色 (Accent) */
    --clr-suou: #8d3b3b;        /* 蘇芳色 (Accent 2) */
    --clr-white: #ffffff;
    
    /* Typography */
    --font-serif: 'Shippori Mincho', 'Noto Serif JP', 'Yu Mincho', 'Sawarabi Mincho', serif;
    --font-en: 'Cormorant Garamond', 'Times New Roman', serif;
    
    /* Layout */
    --spacing-xs: 1rem;
    --spacing-sm: 2rem;
    --spacing-md: 4rem;
    --spacing-lg: 8rem;
    --spacing-xl: 12rem;
    
    --container-width: 1100px;
    --easing: cubic-bezier(0.25, 1, 0.5, 1);
    --header-height: 100px; /* ヘッダーの高さ */
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-serif);
    color: var(--clr-sumi);
    background-color: var(--clr-washi);
    line-height: 2;
    overflow-x: hidden;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

main {
    margin-top: var(--header-height);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.4s var(--easing);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5%;
}

.container-wide {
    max-width: 1400px;
}

/* Texture Overlay */
.texture-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.8;
}

/* ==========================================================================
   Typography & Vertical Text
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400; /* Traditional Japanese design prefers lighter weights */
}

.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
}

.no-break {
    display: inline-block;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    transition: all 0.6s var(--easing);
    background-color: rgba(249, 246, 240, 0.85);
    backdrop-filter: blur(5px);
}

.header.scrolled {
    padding: 1rem 0;
    background-color: rgba(249, 246, 240, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 30px rgba(0,0,0,0.03);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
}

.logo a {
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    display: flex;
    flex-direction: column;
}

.logo-en {
    font-family: var(--font-en);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: var(--clr-kin);
    margin-top: 0.2rem;
}

.header.scrolled .logo a,
.header.scrolled .logo-en {
    color: var(--clr-sumi);
}

.header.scrolled .logo-en {
    color: var(--clr-kin);
}

.global-nav ul {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.global-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.nav-jp {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.nav-en {
    font-family: var(--font-en);
    font-size: 0.6rem;
    color: var(--clr-sumi-light);
    letter-spacing: 0.2em;
    margin-top: 2px;
    transition: color 0.3s;
}

.global-nav a:hover .nav-jp {
    color: var(--clr-kin);
}

.global-nav a:hover .nav-en {
    color: var(--clr-kin);
}

.btn-contact {
    border: 1px solid var(--clr-sumi);
    padding: 0.8rem 2rem !important;
    border-radius: 0;
    letter-spacing: 0.1em;
    font-size: 0.9rem !important;
    transition: all 0.4s var(--easing);
    background-color: transparent;
}

.btn-contact:hover {
    background-color: var(--clr-sumi);
    color: var(--clr-washi);
}

.header.scrolled .btn-contact {
    border-color: var(--clr-sumi);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
    cursor: pointer;
}

.menu-toggle .line {
    position: absolute;
    left: 5px;
    width: 30px;
    height: 1px;
    background-color: var(--clr-sumi);
    transition: all 0.4s var(--easing);
}

.line1 { top: 12px; }
.line2 { top: 20px; }
.line3 { top: 28px; }

/* ==========================================================================
   Hero Section (Premium Glass/Film Feel)
   ========================================================================== */
.hero {
    height: calc(100vh - var(--header-height));
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: var(--clr-washi);
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 4%;
    right: 4%;
    height: calc(100% - 20px); /* 下側に少し余白 */
    overflow: hidden;
    border-radius: 4px; /* subtle softness */
}

@media (max-width: 768px) {
    .hero-image-wrapper {
        top: 80px;
        height: calc(100svh - 100px);
    }
}

.hero-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    animation: slowZoom 30s infinite alternate linear;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(249,246,240,0.6) 0%, rgba(249,246,240,0.1) 100%);
}

@keyframes slowZoom {
    0% { transform: scale(1.05) translate(0,0); }
    100% { transform: scale(1.15) translate(-2%, 1%); }
}

.hero-content {
    position: absolute;
    right: 12%;
    top: 50%; /* 中央付近に調整 */
    transform: translateY(-50%);
    z-index: 100; /* 確実に最前面へ */
    pointer-events: none;
    will-change: transform, opacity;
}

.hero-text-vertical {
    writing-mode: vertical-rl;
    text-orientation: upright;
}

.hero-lead {
    font-size: clamp(1.4rem, 4vh, 2.5rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    line-height: 1.8;
    color: var(--clr-sumi);
    text-shadow: 0 0 15px rgba(249, 246, 240, 1), 0 0 30px rgba(255, 255, 255, 1);
    margin-left: clamp(1.5rem, 3vw, 3rem);
}

.hero-lead:last-child {
    margin-left: 0;
}

.hero-lead:nth-child(2) { margin-top: clamp(2rem, 5vh, 4rem); }
.hero-lead:nth-child(3) { margin-top: clamp(4rem, 10vh, 8rem); }

.scroll-down {
    position: absolute;
    bottom: 0;
    left: 5%;
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: rotate(-90deg);
    transform-origin: left bottom;
    z-index: 10;
}

.scroll-text {
    font-family: var(--font-en);
    font-size: 0.7rem;
    letter-spacing: 0.2rem;
    color: var(--clr-sumi-light);
}

.scroll-line {
    width: 60px;
    height: 1px;
    background-color: var(--clr-sumi);
    position: relative;
    overflow: hidden;
}

.scroll-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--clr-kin);
    transform: translateX(-100%);
    animation: scrollLine 2s infinite ease-in-out;
}

@keyframes scrollLine {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

/* ==========================================================================
   Sections General
   ========================================================================== */
.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-header {
    margin-bottom: var(--spacing-lg);
    display: flex;
    flex-direction: column;
}

.vertical-header {
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--clr-sumi);
}

.vertical-header .section-title {
    writing-mode: vertical-rl;
    text-orientation: upright;
}

.section-subtitle {
    font-family: var(--font-en);
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: var(--clr-kin);
    text-transform: uppercase;
    margin-top: 1rem;
}

.vertical-header .section-subtitle {
    writing-mode: vertical-rl;
    margin-top: 0;
    margin-left: 1.5rem;
}

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

/* ==========================================================================
   About Section (Vertical Text Layout)
   ========================================================================== */
.about {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.decorative-container {
    position: relative;
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    display: flex;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    justify-content: center;
    gap: max(3rem, 5vw);
}

.decorative-container::before {
    content: '';
    position: absolute;
    top: 0; left: 15%; right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--clr-kin), transparent);
    opacity: 0.3;
}

.decorative-container::after {
    content: '';
    position: absolute;
    bottom: 0; left: 15%; right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--clr-kin), transparent);
    opacity: 0.3;
}

.about-content {
    display: flex;
    justify-content: center;
}

.about-text-vertical {
    writing-mode: vertical-rl;
    text-orientation: upright;
    height: 500px;
    line-height: 2.5;
    font-size: 1.1rem;
}

.about-text-vertical p {
    letter-spacing: 0.15em;
    margin-left: 2.5rem;
}

.about-text-vertical p:last-child {
    margin-left: 0;
}

.signature-vertical {
    font-size: 1rem;
    margin-top: 5rem;
}

.sig-name {
    font-size: 1.5rem;
    display: inline-block;
    margin-top: 1rem;
}

/* ==========================================================================
   Koto Section (Split Image/Text)
   ========================================================================== */
.koto {
    background-color: var(--clr-washi-dark);
    padding: var(--spacing-xl) 0;
}

.koto-inner {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.koto-text-area {
    flex: 1;
    padding: 3rem;
    background: var(--clr-washi);
    position: relative;
    z-index: 2;
    margin-right: -4rem; /* Overlap image */
    box-shadow: 0 20px 50px rgba(0,0,0,0.02);
}

.koto-desc p {
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    text-align: justify;
}

.koto-image-area {
    flex: 1.2;
    height: 600px;
}

.elegant-frame {
    width: 100%;
    height: 100%;
    padding: 1rem;
    border: 1px solid rgba(184, 153, 71, 0.3); /* Kin */
    position: relative;
}

.frame-content {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: sepia(0.2) contrast(1.1);
}

/* ==========================================================================
   Lesson Section
   ========================================================================== */
.lesson {
    background-color: var(--clr-washi);
}

.notice-box {
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    position: relative;
}

.notice-inner {
    padding: 3rem;
    border: 1px solid var(--clr-suou);
    background-color: rgba(141, 59, 59, 0.02);
    text-align: center;
}

.notice-icon {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--clr-washi);
    color: var(--clr-suou);
    padding: 0 1.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    border: 1px solid var(--clr-suou);
}

.wa-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.wa-list li {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
    padding-left: 2rem;
    letter-spacing: 0.05em;
    transition: all 0.3s;
}

.wa-list li:hover {
    padding-left: 2.5rem;
    color: var(--clr-kin);
}

.wa-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 6px;
    height: 6px;
    background-color: var(--clr-kin);
}

.lesson-desc {
    text-align: center;
    margin-top: 4rem;
}

.small-text {
    font-size: 0.85rem;
    color: var(--clr-sumi-light);
    display: block;
    margin-top: 0.5rem;
}

/* ==========================================================================
   Profile Section
   ========================================================================== */
.profile {
    background-color: var(--clr-washi-dark);
}

.profile-layout {
    display: flex;
    align-items: stretch;
    gap: 6rem;
    max-width: 1000px;
    margin: 0 auto;
}

.profile-image-container {
    flex: 1;
    position: relative;
}

.profile-image-container::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background-color: var(--clr-kin);
    opacity: 0.1;
    z-index: 0;
}

.image-wrapper {
    position: relative;
    z-index: 1;
    height: 100%;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit:cover;
    filter: grayscale(20%) sepia(10%);
}

.profile-info {
    flex: 1.2;
    padding: 2rem 0;
}

.profile-title-sub {
    font-family: var(--font-en);
    color: var(--clr-kin);
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

.profile-history {
    margin: 2rem 0 3rem;
}

.profile-history li {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.8;
}

.profile-history li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.8rem;
    width: 4px;
    height: 4px;
    background-color: var(--clr-sumi);
    border-radius: 50%;
}

.btn-elegant {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--clr-sumi);
    letter-spacing: 0.15em;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.btn-elegant::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(43, 42, 39, 0.2);
}

.btn-elegant .arrow {
    width: 30px;
    height: 1px;
    background-color: var(--clr-sumi);
    position: relative;
    transition: var(--easing) 0.4s;
}

.btn-elegant .arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    width: 8px;
    height: 1px;
    background-color: var(--clr-sumi);
    transform: rotate(45deg);
    transform-origin: right;
}

.btn-elegant:hover {
    color: var(--clr-kin);
}

.btn-elegant:hover .arrow {
    width: 50px;
    background-color: var(--clr-kin);
}

.btn-elegant:hover .arrow::after {
    background-color: var(--clr-kin);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #151515; /* 深い黒/墨色 */
    color: var(--clr-washi);
    padding: var(--spacing-xl) 0 var(--spacing-sm);
    position: relative;
}

.footer-texture {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 4rem;
}

.footer-logo {
    font-size: 2rem;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.footer-desc {
    color: #999;
    letter-spacing: 0.1em;
    line-height: 2;
}

.footer-nav {
    display: flex;
    gap: 3rem;
}

.footer-nav a {
    color: #ccc;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--clr-kin);
}

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

.copyright {
    font-family: var(--font-en);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: #666;
}

/* ==========================================================================
   Animations & Reveal Classes
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.5s var(--easing), transform 1.5s var(--easing);
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.2s var(--easing), transform 1.2s var(--easing);
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-image {
    position: relative;
    overflow: hidden;
}

.reveal-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--clr-washi-dark);
    transform-origin: right;
    transition: transform 1.5s var(--easing);
    z-index: 2;
}

.reveal-image.is-visible::after {
    transform: scaleX(0);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 1200px) {
    .hero-content {
        right: 8%;
    }
    .hero-lead {
        font-size: 2rem;
        margin-left: 2rem;
    }
    .hero-lead:nth-child(2) { margin-top: 3rem; }
    .hero-lead:nth-child(3) { margin-top: 6rem; }

    .koto-inner, .profile-layout {
        flex-direction: column;
        gap: 4rem;
    }
    .koto-text-area {
        margin-right: 0;
        margin-bottom: -4rem;
    }
    .vertical-header {
        position: relative;
        right: auto;
        height: auto;
        margin-bottom: 3rem;
    }
    .vertical-header .section-title,
    .vertical-header .section-subtitle {
        writing-mode: horizontal-tb;
    }
    .vertical-header .section-subtitle {
        margin-left: 0;
    }
    .about-content {
        padding-right: 0;
    }
    .about-text-vertical {
        height: 480px;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-md: 2rem;
        --spacing-lg: 4rem;
        --spacing-xl: 6rem;
    }
    .menu-toggle {
        display: block;
    }
    .global-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--clr-washi);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: right 0.6s var(--easing);
        z-index: 1000;
    }
    .global-nav.active {
        right: 0;
    }
    .global-nav ul {
        flex-direction: column;
        gap: 3rem;
    }
    .menu-toggle.active .line1 { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active .line2 { opacity: 0; }
    .menu-toggle.active .line3 { transform: translateY(-8px) rotate(-45deg); }
    
    .hero-content {
        left: 50%;
        top: 58%; /* 若干下めに調整 */
        right: auto;
        transform: translate(-50%, -50%);
        width: 100%;
        display: flex;
        justify-content: center;
        opacity: 1 !important; /* 強制的に表示 */
        visibility: visible !important;
        z-index: 100 !important;
    }
    .hero-text-vertical {
        writing-mode: vertical-rl;
        text-orientation: upright;
        width: auto;
        height: auto;
        transform: none !important; /* アニメーション待ちによる非表示を回避 */
        opacity: 1 !important;
    }
    .hero-lead {
        font-size: clamp(1.2rem, 5.5vw, 1.8rem);
        margin-left: 1.8rem;
        margin-bottom: 0;
        line-height: 1.8;
        letter-spacing: 0.3em;
        white-space: nowrap;
        text-shadow: 0 0 10px rgba(249, 246, 240, 1), 0 0 20px rgba(255, 255, 255, 1);
    }
    .hero-lead:last-child {
        margin-left: 0;
    }
    .hero-lead:nth-child(2) { margin-top: 2rem; }
    .hero-lead:nth-child(3) { margin-top: 4rem; }
    
    .about-text-vertical {
        writing-mode: horizontal-tb;
        height: auto;
        text-align: left;
        word-break: keep-all;
        overflow-wrap: anywhere;
    }
    .about-text-vertical p {
        margin-left: 0;
        margin-bottom: 2rem;
        line-height: 1.8;
    }
    .signature-vertical {
        margin-top: 2rem;
        text-align: right;
    }
    
    .koto-image-area {
        height: 300px;
        width: 100%;
        flex: none;
    }
    
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 3rem;
    }
    .footer-nav {
        flex-direction: column;
        gap: 1.5rem;
    }
}
