@charset "UTF-8";

body {
    overflow: hidden; /* Homeのみスクロール禁止 */
}

/* Canvas Background */
#starry-sky {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center bottom, var(--bg-light), var(--bg-dark) 80%);
}

/* Main Content */
.content {
    position: relative; z-index: 1; height: 100vh;
    display: flex; justify-content: center; align-items: center;
    pointer-events: auto; 
    transition: opacity 0.5s;
}

.hero {
    text-align: center; opacity: 0;
    /* Title fadeIn:
       0.5s待機 -> 3sかけて表示 (完了: 3.5s)
    */
    animation: fadeIn 3s ease-out forwards 0.5s;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    
    transition: transform 1s ease-in, opacity 1s ease-in;
}

/* JSで付与するクラス: 最後に拡大して消える動き */
.hero.hero-exit {
    transform: scale(1.2);
    opacity: 0;
    pointer-events: none;
}

.circle-container {
    position: relative;
    width: clamp(340px, 65vw, 700px);
    height: clamp(340px, 65vw, 700px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.circle-svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    transform: rotate(-90deg);
    pointer-events: none;
}

.circle-path {
    fill: none;
    stroke: #e6b422; /* ゴールド */
    stroke-width: 1.5;
    stroke-dasharray: 616;
    stroke-dashoffset: 616;
    
    /* 円の描画アニメーション:
       キャッチコピーが表示された後 (5.0s) から開始
       時間を6.0sに変更 (完了: 11.0s)
    */
    animation: drawCircle 6.0s ease-in-out forwards 5.0s;
}

.hero-text {
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 500;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    white-space: nowrap;
}

.subtitle {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    letter-spacing: 0.15em;
    color: var(--accent-gold);
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 2rem;
}

/* キャッチコピー */
.catchphrase-container {
    margin-bottom: 2rem;
    opacity: 0;
    /* タイトル(0.5s開始)より後、2.5s待機 -> 3sかけて表示 (完了: 5.5s) */
    animation: fadeIn 3s ease-out forwards 2.5s;
}

.catchphrase {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    letter-spacing: 0.1em;
    line-height: 1.8;
    margin: 0;
    font-family: 'Shippori Mincho', serif;
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* Concept Button */
.concept-btn {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: var(--accent-gold);
    padding: 8px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-main);
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    
    /* 初期状態は非表示 */
    opacity: 0;
    pointer-events: none; 
    transition: opacity 1.0s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* メニューを閉じた後にJSで付与されるクラス */
.concept-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.concept-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--accent-gold);
    color: #fff;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* --- Modal Styles --- */
.concept-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 10, 20, 0.95);
    backdrop-filter: blur(8px);
    z-index: 150;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.concept-modal.active {
    opacity: 1;
    visibility: visible;
}

.concept-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--accent-gold);
    padding: 3rem;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.5s ease;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

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

.concept-title {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.concept-text {
    text-align: left;
    line-height: 2.0;
    font-size: 1rem;
    margin-bottom: 2.5rem;
}
.concept-text p {
    margin-bottom: 1.5rem;
}

.close-modal-btn {
    background: var(--accent-gold);
    color: var(--bg-dark);
    border: none;
    padding: 10px 30px;
    border-radius: 4px;
    font-family: var(--font-main);
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
}
.close-modal-btn:hover {
    opacity: 0.8;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes drawCircle {
    to { stroke-dashoffset: 0; }
}

@media (max-width: 768px) {
    .title { font-size: 1.8rem; }
    .subtitle { margin-bottom: 1.5rem; }
    .catchphrase-container { margin-bottom: 1.5rem; }
    .concept-content { padding: 1.5rem; }
    .concept-text { font-size: 0.9rem; text-align: center; } 
}