/* ========================================
   Luvira Portfolio - 参考サイト構造模倣
   左右分割レイアウト + スクロールアニメーション
   ======================================== */

/* CSS Variables */
:root {
    --color-primary: #c9a86c;
    --color-primary-light: #e2d4b7;
    --color-primary-dark: #a68b4b;
    --color-bg: #fbf7f0;
    --color-bg-warm: #fdf9f3;
    --color-text: #423e3e;
    --color-text-light: #6b6b6b;
    --color-text-dark: #333333;
    --color-border: #e5dfd5;

    --font-serif: 'Noto Serif JP', 'Yu Mincho', serif;
    --font-sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
    --font-display: 'Cormorant Garamond', serif;
}

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

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

/* ========================================
   Header - 固定ナビゲーション
   ======================================== */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 36px 24px;
    gap: 40px;
}

.header-logo {
    display: flex;
    align-items: center;
    transition: opacity 0.16s ease;
}

.header-logo:hover {
    opacity: 0.3;
}

.logo-img {
    width: 80px;
    height: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.1em;
    line-height: 24px;
    padding: 8px 16px;
    color: var(--color-text);
    transition: opacity 0.16s ease;
}

.nav-link:hover {
    opacity: 0.3;
}

/* ========================================
   Site Layout - 左右50%分割
   ======================================== */
.site-layout {
    display: flex;
    min-height: 100vh;
}

.content-side {
    width: 50%;
    min-height: 100vh;
    padding: 0;
}

/* ========================================
   Right Panel - 作品スライドショー
   ======================================== */
.visual-side {
    width: 50%;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.slideshow {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.slide.active {
    opacity: 1;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ========================================
   Sections - 共通スタイル
   ======================================== */
.section {
    padding: 120px 64px 80px;
}

.section-heading {
    margin-bottom: 40px;
}

.heading-en {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    color: var(--color-text-dark);
    letter-spacing: 0.08em;
    line-height: 1.4;
    position: relative;
    padding-bottom: 16px;
}

.heading-en::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 1px;
    background-color: var(--color-primary);
}

.sub-heading {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 400;
    color: var(--color-text-dark);
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

/* ========================================
   Hero Section
   ======================================== */
.section-hero {
    padding-top: 160px;
    padding-bottom: 120px;
}

.hero-label {
    font-family: var(--font-serif);
    font-size: 12px;
    color: var(--color-text-light);
    letter-spacing: 0.2em;
    margin-bottom: 24px;
}

.hero-title {
    margin-bottom: 32px;
}

.hero-title-sub {
    display: block;
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 300;
    color: var(--color-text-light);
    letter-spacing: 0.15em;
    margin-bottom: 8px;
}

.hero-title-main {
    display: block;
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 400;
    color: var(--color-primary);
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.hero-tagline {
    font-family: var(--font-serif);
    font-size: 13px;
    color: var(--color-text-light);
    letter-spacing: 0.3em;
}

/* ========================================
   About Section - プロフィール写真付き
   ======================================== */
.about-photo {
    margin-bottom: 40px;
    overflow: hidden;
}

.about-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
}

.about-greeting {
    font-family: var(--font-serif);
    font-size: 14px;
    color: var(--color-text);
    letter-spacing: 0.1em;
    margin-bottom: 32px;
}

.about-text,
.brand-text,
.order-intro,
.link-text {
    font-size: 13px;
    line-height: 2;
    color: var(--color-text);
    letter-spacing: 0.05em;
}

.about-text p,
.brand-text p,
.order-intro p,
.link-text p {
    margin-bottom: 20px;
}

.about-text p:last-child,
.brand-text p:last-child,
.order-intro p:last-child,
.link-text p:last-child {
    margin-bottom: 0;
}

.about-text em,
.brand-text em {
    font-style: normal;
    color: var(--color-primary-dark);
}

/* ========================================
   Brand Section - ブランド写真付き
   ======================================== */
.brand-photo {
    margin-bottom: 40px;
    overflow: hidden;
}

.brand-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
}

/* ========================================
   Works Section - ギャラリーグリッド
   ======================================== */
.works-desc {
    font-size: 13px;
    color: var(--color-text-light);
    letter-spacing: 0.05em;
    margin-bottom: 40px;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.work-item {
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.work-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
}

.work-item:hover::after {
    background-color: rgba(0, 0, 0, 0.08);
}

.work-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

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

/* ========================================
   Work Modal - 作品拡大表示
   ======================================== */
.work-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 100;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.work-modal.active {
    display: flex;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: opacity 0.16s ease;
    z-index: 101;
}

.modal-close:hover {
    opacity: 0.5;
}

.modal-img-wrap {
    max-width: 90vw;
    max-height: 90vh;
}

.modal-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
}

/* ========================================
   Order Section - 写真付き
   ======================================== */
.order-photo {
    margin-bottom: 40px;
    overflow: hidden;
}

.order-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center;
}

.order-heading {
    margin-top: 64px;
    margin-bottom: 24px;
}

.order-note {
    font-family: var(--font-serif);
    font-size: 15px;
    color: var(--color-text-dark);
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.order-desc {
    font-size: 12px;
    color: var(--color-text-light);
    letter-spacing: 0.05em;
    margin-bottom: 32px;
}

.order-remark {
    font-size: 12px;
    color: var(--color-text-light);
    letter-spacing: 0.05em;
    margin-top: 16px;
}

/* Price List */
.price-list {
    display: flex;
    gap: 24px;
}

.price-item {
    flex: 1;
    text-align: center;
    padding: 32px 16px;
    background-color: var(--color-bg-warm);
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.price-item-header {
    margin-bottom: 16px;
}

.price-name-en {
    display: block;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    letter-spacing: 0.05em;
}

.price-name-ja {
    display: block;
    font-size: 11px;
    color: var(--color-text-light);
}

.price-amount {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 16px;
}

.price-unit {
    font-size: 11px;
    font-weight: 400;
    color: var(--color-text-light);
}

.price-notes {
    font-size: 11px;
    color: var(--color-text-light);
    line-height: 1.6;
}

.price-notes p {
    margin-bottom: 4px;
}

/* CTA Link */
.order-cta {
    margin-top: 48px;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-text);
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 0.1em;
    color: var(--color-text-dark);
    transition: opacity 0.4s ease, gap 0.4s ease;
}

.cta-link:hover {
    opacity: 0.4;
    gap: 20px;
}

.cta-arrow {
    font-size: 16px;
    transition: transform 0.4s ease;
}

/* ========================================
   Links Section
   ======================================== */
.section-links {
    padding-top: 80px;
}

.link-block {
    margin-bottom: 64px;
}

.link-block:last-child {
    margin-bottom: 0;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-row {
    display: flex;
    align-items: baseline;
    gap: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.contact-label {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--color-primary);
    letter-spacing: 0.05em;
    min-width: 100px;
}

.contact-value {
    font-size: 13px;
    color: var(--color-text);
    letter-spacing: 0.05em;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    padding: 64px 64px 40px;
    text-align: left;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--color-primary);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.footer-copy {
    font-size: 11px;
    color: var(--color-text-light);
    letter-spacing: 0.05em;
}

/* ========================================
   Mobile Menu Button
   ======================================== */
.menu-toggle {
    display: none;
    position: fixed;
    right: 24px;
    top: 40px;
    z-index: 20;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    transition: opacity 0.8s ease;
}

.menu-toggle:hover {
    opacity: 0.4;
}

.menu-bar {
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--color-text);
    margin-bottom: 6px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-bar:last-child {
    margin-bottom: 0;
}

.menu-toggle.active .menu-bar:first-child {
    transform: rotate(45deg) translate(2px, 2px);
}

.menu-toggle.active .menu-bar:last-child {
    transform: rotate(-45deg) translate(2px, -2px);
}

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg);
    z-index: 15;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-menu.active {
    display: flex;
    opacity: 1;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-nav-link {
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 0.15em;
    color: var(--color-text);
    transition: opacity 0.16s ease;
}

.mobile-nav-link:hover {
    opacity: 0.3;
}

/* ========================================
   Appear Animation
   ======================================== */
.appear {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.appear.visible {
    opacity: 1;
    transform: translateY(0);
}

.appear:nth-child(2) {
    transition-delay: 0.1s;
}

.appear:nth-child(3) {
    transition-delay: 0.2s;
}

.appear:nth-child(4) {
    transition-delay: 0.3s;
}

/* ========================================
   Responsive - Tablet (840px)
   ======================================== */
@media screen and (max-width: 840px) {
    .site-header {
        width: 100%;
        padding: 28px 24px;
    }

    .header-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

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

    .content-side {
        width: 100%;
    }

    .visual-side {
        position: relative;
        width: 100%;
        height: 60vh;
    }

    .section {
        padding: 80px 40px 60px;
    }

    .section-hero {
        padding-top: 120px;
    }

    .hero-title-main {
        font-size: 44px;
    }

    .works-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }

    .price-list {
        flex-direction: column;
    }

    .about-img,
    .brand-img {
        height: 220px;
    }

    .site-footer {
        padding: 48px 40px 32px;
    }
}

/* ========================================
   Responsive - Mobile (540px)
   ======================================== */
@media screen and (max-width: 540px) {
    .site-header {
        padding: 28px 24px;
    }

    .menu-toggle {
        right: 16px;
        top: 28px;
    }

    .visual-side {
        height: 50vh;
    }

    .section {
        padding: 64px 24px 48px;
    }

    .section-hero {
        padding-top: 100px;
        padding-bottom: 80px;
    }

    .hero-title-main {
        font-size: 36px;
    }

    .heading-en {
        font-size: 22px;
    }

    .about-img,
    .brand-img,
    .order-img {
        height: 180px;
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3px;
    }

    .price-list {
        gap: 16px;
    }

    .contact-row {
        flex-direction: column;
        gap: 8px;
    }

    .contact-label {
        min-width: auto;
    }

    .site-footer {
        padding: 40px 24px 24px;
    }
}
