/* ---------------------------------------------------------
   Base & V1 Atmosphere
--------------------------------------------------------- */
:root {
    --bg-color: #ffffff;
    --text-main: #222222;
    --text-sub: #999999;
    --font-eng: 'Cormorant Garamond', serif;
    --font-jp: 'Noto Serif JP', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-jp);
    font-weight: 200;
    line-height: 2;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* オープニング・カーテン演出 */
#curtain {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #fff; z-index: 9999;
    transition: opacity 1s ease-out, visibility 1s;
}
body.loaded #curtain { opacity: 0; visibility: hidden; }

/* ---------------------------------------------------------
   Header
--------------------------------------------------------- */
header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 40px 60px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

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

.brand-logo {
    font-family: var(--font-eng); font-style: italic;
    text-decoration: none; color: var(--text-main);
    font-size: 1.5rem; letter-spacing: 0.1rem;
}

.nav-links a {
    text-decoration: none; color: var(--text-sub); font-family: var(--font-eng);
    font-style: italic;
    margin-left: 30px; font-size: 1.1rem; transition: color 0.3s;
}
.nav-links a:hover { color: var(--text-main); }

/* ---------------------------------------------------------
   Hero Section
--------------------------------------------------------- */
#hero {
    padding-top: 160px;
    width: 100%; min-height: 100vh;
    display: flex; flex-direction: column; align-items: center;
}

/* 1. タイポグラフィエリア */
.hero-title-area {
    text-align: center; margin-bottom: 60px; padding: 0 20px;
}

.main-title {
    font-family: var(--font-eng); font-weight: 400; font-style: italic;
    font-size: clamp(3.2rem, 7vw, 5.5rem);
    color: var(--text-main); line-height: 1.1; margin-bottom: 15px;
    letter-spacing: 0.15rem;
}

.spacer { display: inline-block; width: 0.6em; } 
.word { display: inline-block; white-space: nowrap; }

.sub-title {
    font-family: var(--font-eng); font-style: italic;
    font-size: 1.5rem; color: var(--text-sub); margin-bottom: 30px;
}

.tagline {
    font-family: var(--font-jp); font-size: 0.9rem;
    letter-spacing: 0.3rem; color: var(--text-main);
}

/* 2. ビジュアルエリア */
.hero-visual-area {
    width: 100%; max-width: 1100px; padding: 0 20px 60px;
}

.image-wrapper {
    width: 100%; aspect-ratio: 16/9;
    overflow: hidden; position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.03);
}

.hero-img {
    width: 100%; height: 120%;
    background-size: cover; background-position: center;
    position: absolute; top: -10%; left: 0;
    will-change: transform;
}

/* ---------------------------------------------------------
   Concept & Links
--------------------------------------------------------- */
#about { padding: 100px 20px; text-align: center; }

.c-line {
    display: block; 
    /* PCでの表示 */
    font-size: clamp(1rem, 3vw, 1.2rem);
    letter-spacing: 0.15rem; margin-bottom: 25px;
    color: var(--text-main);
}

#links { padding: 40px 20px 160px; }
.grid-container {
    display: grid; grid-template-columns: 1fr 1fr; gap: 30px;
    max-width: 800px; margin: 0 auto;
}

.box-link {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 200px; border: 1px solid #f0f0f0; background: #fff;
    text-decoration: none; color: var(--text-main);
    transition: all 0.5s ease;
}
.box-link:hover { border-color: var(--text-main); transform: translateY(-5px); }

.box-label { 
    font-family: var(--font-eng); font-style: italic; font-size: 0.9rem; 
    color: var(--text-sub); margin-bottom: 10px; 
}
.box-name { 
    font-family: var(--font-eng); font-style: normal; font-size: 1.8rem; letter-spacing: 0.1rem; 
}

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */
footer { padding: 100px 20px; text-align: center; border-top: 1px solid #f8f8f8; }
.pnp-symbol { 
    font-family: var(--font-eng); font-style: italic; font-size: 2rem; 
    letter-spacing: 0.5rem; margin-bottom: 30px; color: var(--text-main);
}
.copy { font-size: 0.75rem; color: var(--text-sub); letter-spacing: 0.1rem; margin-bottom: 10px; }
.domain-link {
    text-decoration: none; font-size: 0.8rem; color: var(--text-sub);
    letter-spacing: 0.2rem; border-bottom: 1px solid #eee; padding-bottom: 2px;
}

/* ---------------------------------------------------------
   Animation Classes
--------------------------------------------------------- */
.fade-in-up {
    opacity: 0; transform: translateY(40px);
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
body.loaded .fade-in-up { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.8s; }

.scroll-reveal { opacity: 0; transform: translateY(30px); transition: all 1s ease; }
.scroll-reveal.active { opacity: 1; transform: translateY(0); }

/* ---------------------------------------------------------
   Responsive Fixes (iPhone SE対応)
--------------------------------------------------------- */
@media (max-width: 768px) {
    header { padding: 20px; }
    
    #hero { padding-top: 100px; min-height: auto; }
    
    /* タイトル：スマホでは縦に並べて美しく */
    .main-title { font-size: 3.5rem; margin-bottom: 20px; }
    .main-title .spacer { display: none; }
    .main-title .word { display: block; margin-bottom: 0px; line-height: 1; }
    
    /* Concept文言：改行防止とサイズ調整 */
    #about { padding: 80px 15px; }
    .c-line {
        /* ここが修正の肝：強制的に改行させない */
        white-space: nowrap; 
        /* 画面幅に合わせてフォントサイズを縮小して収める */
        font-size: clamp(0.8rem, 3.2vw, 1.1rem);
        /* 文字間隔を少し詰めて安全マージンを稼ぐ */
        letter-spacing: 0.1rem;
        margin-bottom: 25px;
    }

    .grid-container { grid-template-columns: 1fr; }
    .box-link { height: 160px; }
    
    /* スマホでの画像比率：少し高さを出してNonくんを見せる */
    .image-wrapper { aspect-ratio: 1/1; }
    .hero-img { background-position: 70% center; }
}