:root {
    /* Colors - Elegant White & Beige Palette */
    --color-bg: #F9F9F7;
    /* オフホワイト/薄いベージュ */
    --color-text: #4A4641;
    /* ダークグレー（少しブラウン寄り） */
    --color-text-light: #8C8883;
    --color-accent: #BFA588;
    /* 落ち着いたゴールドベージュ */
    --color-white: #FFFFFF;

    /* Typography */
    --font-en-serif: 'Cormorant Garamond', serif;
    --font-en-sans: 'Inter', sans-serif;
    --font-jp: 'Noto Serif JP', serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Easing */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

@media (max-width: 768px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2.5rem;
        --spacing-xl: 5rem;
        /* スマホでは余白を少し詰める */
    }
}

body {
    font-family: var(--font-en-sans), var(--font-jp);
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    /* For animations */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-en-serif), var(--font-jp);
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* Lenis Recommended */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* =========================================
   Layout & Utilities
   ========================================= */
.wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.section {
    padding: var(--spacing-xl) 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-en-serif);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--spacing-md);
    display: inline-block;
    border-bottom: 1px solid currentColor;
}

/* =========================================
   About Section
   ========================================= */
.about__inner {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .about__inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .about__header {
        width: 30%;
        position: sticky;
        top: 20vh;
    }

    .about__body {
        width: 60%;
    }
}

.about__lead {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-family: var(--font-jp);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    /* feature-settings: "palt"; Removed */
    font-feature-settings: "palt";
}

.about__desc {
    font-size: 1rem;
    line-height: 2;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-jp);
}

.about__profile {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--spacing-sm);
    font-family: var(--font-en-sans);
    font-size: 0.875rem;
    border-top: 1px solid #E0E0E0;
    padding-top: var(--spacing-md);
}

.about__profile dt {
    color: var(--color-text-light);
}

/* =========================================
   Works Section
   ========================================= */
.works__list {
    margin-top: var(--spacing-lg);
}

.work-item {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--spacing-xl);
    text-decoration: none;
    color: inherit;
    /* group property removed */
}

.work-item:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .work-item {
        flex-direction: row;
        align-items: center;
        gap: var(--spacing-lg);
    }

    .work-item:nth-child(even) {
        flex-direction: row-reverse;
    }

    .work-item__image {
        width: 60%;
        overflow: hidden;
    }

    .work-item__content {
        width: 40%;
        padding: var(--spacing-md);
    }
}

.work-item__image img {
    width: 100%;
    height: auto;
    transition: transform 0.6s var(--ease-out-expo);
    transform-origin: center;
    display: block;
    /* 余白除去 */
}

.work-item:hover .work-item__image img {
    transform: scale(1.05);
}

.work-item__title {
    font-family: var(--font-en-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--spacing-xs);
    line-height: 1.2;
}

/* Mobile Adjustments for Works */
@media (max-width: 767px) {
    .work-item {
        position: relative;
        /* 必要なら重ねる場合の基準点 */
    }

    .work-item__content {
        padding-top: var(--spacing-sm);
    }

    .work-item__title {
        font-size: 1.75rem;
        /* スマホで見やすいサイズに調整 */
    }
}

.work-item__cat {
    font-family: var(--font-en-sans);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
}





/* =========================================
   Header
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: var(--spacing-sm) var(--spacing-md);
    mix-blend-mode: difference;
    /* 背景が白でも黒でも見えるように */
    color: var(--color-white);
    /* Differenceモード用の反転色ベース */
}

@media (max-width: 767px) {
    .header {
        mix-blend-mode: normal;
        background-color: rgba(249, 249, 247, 0.95);
        /* 背景色（少し透過） */
        color: var(--color-text);
        /* 通常の文字色 */
        backdrop-filter: blur(5px);
        /* すりガラス効果 */
    }

    .header__logo {
        font-size: 1.25rem;
        /* ロゴサイズ調整 */
    }
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
}

.header__logo {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    font-family: var(--font-en-serif);
}

.header__nav ul {
    display: flex;
    gap: var(--spacing-md);
}

.header__nav a {
    font-family: var(--font-en-sans);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
}

.header__nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s var(--ease-out-expo);
}

.header__nav a:hover::after {
    width: 100%;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: radial-gradient(circle at 50% 50%, #FAF9F6, #F0EEE9); */
    background-image: url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
    /* 画像が強すぎないように少し透過 */
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero__title {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    font-family: var(--font-en-serif);
    color: var(--color-text);
    font-weight: 300;
}

/* アニメーション用のマスク */
.reveal-text {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    /* 行間のずれ防止 */
}

.reveal-text-inner {
    display: inline-block;
    /* JSでここを動かす */
}

/* =========================================
   Loader
   ========================================= */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    /* クリック透過（消える前用） */
}

.loader__text {
    font-family: var(--font-en-serif);
    font-size: 1.5rem;
    color: var(--color-text);
    opacity: 0;
    /* JSで制御 */
}