/* 
   テーマ: 着物の白いシルク生地と牡丹柄
   フォント: Noto Serif JP (明朝), Orbitron (英字サイバー)
*/

:root {
    /* カラーパレット */
    --color-silk-light: #fdfdfd;
    --color-silk-dark: #f0ecec;
    --color-botan-red: #B51322; /* 深紅 */
    --color-botan-pink: #E85B75;
    --color-gold: #c5a867; /* 箔押しアクセント用 */
    --color-text-main: #221f1f;
    --color-text-sub: #555151;
    
    /* フォント */
    --font-serif: 'Noto Serif JP', serif;
    --font-cyber: 'Orbitron', sans-serif;
    
    /* トランジション */
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* SEO / アクセシビリティ 用非表示クラス */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: var(--font-serif);
    color: var(--color-text-main);
    background-color: var(--color-silk-light);
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
}

/* シルク背景のアニメーション */
.silk-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: linear-gradient(135deg, var(--color-silk-light) 0%, var(--color-silk-dark) 50%, var(--color-silk-light) 100%);
    background-size: 200% 200%;
    animation: silkFlow 15s ease infinite;
    opacity: 0.8;
}

@keyframes silkFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 花びらキャンバス */
#petal-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Layout Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 50px 0;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title .title-en {
    display: block;
    font-family: var(--font-cyber);
    font-size: 0.8rem;
    color: var(--color-botan-pink);
    letter-spacing: 0.3em;
    margin-bottom: 5px;
}

.section-title .title-jp {
    display: block;
    font-size: 2.5rem;
    color: var(--color-botan-red);
    letter-spacing: 0.1em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--color-botan-red);
}

/* 和風画像フレーム（屏風や掛け軸を意識） */
.image-frame {
    position: relative;
    padding: 10px;
    background: #fff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border: 1px solid rgba(181, 19, 34, 0.1);
}

.image-frame::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 1px solid var(--color-gold);
    margin: 5px;
    pointer-events: none;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ヘッダーは常に白背景で固定（透明状態を廃止） */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(253, 253, 253, 0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.07);
    transition: var(--transition-smooth);
}

.header.scrolled {
    background: rgba(253, 253, 253, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 10px 5%;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-jp {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-botan-red);
    letter-spacing: 0.1em;
}

.logo-en {
    font-family: var(--font-cyber);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: var(--color-text-sub);
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--color-text-main);
    font-family: var(--font-cyber);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    transition: var(--transition-smooth);
    position: relative;
}

.nav a:hover {
    color: var(--color-botan-red);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-botan-red);
    transition: var(--transition-smooth);
}

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

/* ==================================
   Hero Section (Parallax)
================================== */
/* 
   メインスクロールエリア
   （3D perspectiveパララックスは廃止。シンプルな通常フローで実装）
*/
.main-content {
    overflow-x: hidden;
    /* ヘッダーの高さ分だけ上部を空ける（ヘッダー下から画像が始まる） */
    padding-top: 70px;
}

/* Heroセクション: 残りのビューポートを埋める */
.parallax-container {
    height: calc(100vh - 70px);
    position: relative;
    padding: 0;
    overflow: hidden;
    /* 固定ヘッダー分のスクロールオフセット（TOPリンクでキャラの頭が隠れないように） */
    scroll-margin-top: 70px;
}

.parallax-layer {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
}

/* 背景画像レイヤー */
.parallax-base {
    z-index: 0;
}

.hero-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    /* キャラの顔が上寄りに見えるよう調整 */
    background-position: center 15%;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 100px rgba(255,255,255,0.3);
}

.hero-bg::after {
    content:'';
    position:absolute;
    inset:0;
    /* 下へ向かって白フェードアウト */
    background: linear-gradient(to bottom, rgba(253,253,253,0) 50%, rgba(253,253,253,1) 100%);
}

/* テキストレイヤー */
.parallax-fg {
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding-top: 0;
    padding-bottom: 18vh;
}

.badge-container {
    margin-bottom: 20px;
    animation: floating 4s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* 和紙・箔押し風バッジ */
.award-badge {
    display: inline-flex;
    flex-direction: column;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    border: 3px solid var(--color-gold);
    padding: 20px 50px;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(197, 168, 103, 0.4);
    position: relative;
    overflow: hidden;
}

/* 和風のテクスチャを擬似要素で表現 */
.award-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--color-gold) 1px, transparent 1px);
    background-size: 4px 4px;
    opacity: 0.1;
    pointer-events: none;
}

.badge-text-small {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-sub);
    letter-spacing: 0.1em;
}

.badge-text-large {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--color-botan-red);
    letter-spacing: 0.05em;
    background: linear-gradient(to right, var(--color-botan-red), var(--color-botan-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title {
    background: rgba(255, 255, 255, 0.85);
    padding: 30px 50px;
    border-radius: 2px;
    border-left: 4px solid var(--color-botan-red);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    backdrop-filter: blur(5px);
}

.title-catch {
    font-size: 1rem;
    color: var(--color-text-sub);
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}

.title-main {
    font-size: 3rem;
    color: var(--color-text-main);
    line-height: 1.4;
    letter-spacing: 0.1em;
}

/* 水引を模したスクロールインジケーター */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.scroll-text {
    font-family: var(--font-cyber);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.25em;
    color: var(--color-botan-red);
    /* 白い発光と薄い黒い影を重ねることで、白背景でも赤背景でも埋もれないようにする */
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 1),
        0 0 10px rgba(255, 255, 255, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

.scroll-line {
    width: 4px;
    height: 70px;
    background: rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    /* 線自体にも影をつけて浮き立たせる */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.scroll-line::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-botan-red);
    box-shadow: 0 0 8px rgba(181, 19, 34, 0.8);
    animation: scrollLine 2s cubic-bezier(0.8, 0, 0.2, 1) infinite;
}

@keyframes scrollLine {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* ==================================
   Profile Section
================================== */
.profile {
    position: relative;
    background-color: transparent; /* メインスクロールのラッパー上にあるため */
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.profile-image-col {
    position: relative;
}

.profile-image-wrapper {
    aspect-ratio: 3/4;
}

.profile-text-col {
    padding-left: 20px;
}

.profile-name {
    font-size: 2.5rem;
    color: var(--color-text-main);
    margin-bottom: 5px;
}

.name-ruby {
    display: block;
    font-family: var(--font-cyber);
    font-size: 0.9rem;
    color: var(--color-botan-pink);
    letter-spacing: 0.1em;
    font-weight: 400;
}

.profile-age {
    font-family: var(--font-cyber);
    color: var(--color-text-sub);
    margin-bottom: 30px;
}

.profile-desc {
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 2;
}

.profile-details {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 20px;
}

.detail-item {
    display: flex;
    margin-bottom: 10px;
    font-size: 1rem;
}

.detail-label {
    width: 120px;
    font-weight: 700;
    color: var(--color-botan-red);
}

.detail-value {
    color: var(--color-text-main);
}

/* ==================================
   Music Section
================================== */
.music-content {
    background: rgba(255,255,255,0.6);
    padding: 60px;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.03);
    backdrop-filter: blur(10px);
    max-width: 800px;
    margin: 0 auto;
}

.music-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.song-title {
    font-size: 2.2rem;
    color: var(--color-text-main);
    text-align: center;
}

.song-subtitle {
    font-family: var(--font-cyber);
    font-size: 0.9rem;
    color: var(--color-text-sub);
    letter-spacing: 0.1em;
    margin-bottom: 40px;
    text-align: center;
}

.lyrics-excerpt {
    font-size: 1.2rem;
    line-height: 2.2;
    margin-bottom: 40px;
    position: relative;
    /* 歌詞ブロック自体を中央寄せ配置 */
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.highlight-lyric {
    font-family: var(--font-cyber);
    font-size: 1.1rem;
    color: var(--color-botan-red);
    font-weight: 900;
    margin-top: 15px;
}

/* ミュージックビデオ プレイヤー */
.mv-player {
    margin-top: 40px;
}

.mv-title {
    font-size: 1.4rem;
    color: var(--color-text-main);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mv-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-botan-red), var(--color-botan-pink));
    color: #fff;
    font-size: 0.8rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.mv-video-wrapper {
    aspect-ratio: 16/9;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.mv-video-wrapper:hover {
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.mv-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mv-link-container {
    margin-top: 20px;
    text-align: right;
}

.youtube-mv-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-botan-red);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 5px;
    transition: var(--transition-smooth);
    background: rgba(181, 19, 34, 0.05);
}

.youtube-mv-link:hover {
    background: var(--color-botan-red);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(181, 19, 34, 0.2);
}

/* ==================================
   Goods Section
================================== */
.goods-content {
    max-width: 800px;
    margin: 0 auto;
}

.goods-link-wrapper {
    display: block;
    position: relative;
    text-decoration: none;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.goods-link-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 45px rgba(0,0,0,0.15);
}

.goods-images {
    display: flex;
    gap: 10px;
    background: #fff;
    padding: 10px;
}

.goods-img-col {
    flex: 1;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.goods-img-col img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fdfdfd;
    transition: var(--transition-smooth);
}

.goods-link-wrapper:hover .goods-img-col img {
    transform: scale(1.05);
}

.goods-button-container {
    text-align: center;
    margin-top: 30px;
}

.btn-goods {
    display: inline-block;
    padding: 15px 50px;
    background: linear-gradient(135deg, var(--color-botan-red), var(--color-botan-pink));
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(181, 19, 34, 0.3);
    transition: var(--transition-smooth);
}

.btn-goods:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(181, 19, 34, 0.4);
    color: #fff;
}

/* ==================================
   Gallery Section
================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-item {
    aspect-ratio: 4/5;
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(0,0,0,0.12);
}

.gallery-item img {
    transition: var(--transition-smooth);
}

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

/* ==================================
   Footer
================================== */
.footer {
    background: #111;
    color: #fff;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 牡丹柄の透かしをフッターに */
.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../【fullMV】紅の恋路/beni_image.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    filter: grayscale(100%) contrast(200%);
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background: var(--color-botan-red);
    transform: translateY(-3px);
}

.copyright {
    font-family: var(--font-cyber);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

/* ==================================
   Animations / Utilities
================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================================
   News Section
================================== */
.news {
    align-items: stretch;
}

.news .container {
    width: 100%;
    max-width: 1200px;
}

.news-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    background: #fff;
    padding: 20px 30px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-left: 3px solid transparent;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-left-color: var(--color-botan-red);
}

.news-date {
    font-family: var(--font-cyber);
    font-size: 0.9rem;
    color: var(--color-botan-pink);
    min-width: 100px;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-main);
    flex: 1;
}

/* ==================================
   News Modal
================================== */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.news-modal.is-active {
    display: flex;
    opacity: 1;
}

.news-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.news-modal-content {
    position: relative;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    background: #fff;
    z-index: 1001;
    overflow-y: auto;
    padding: 40px;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.news-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--color-text-sub);
    cursor: pointer;
    transition: color 0.3s;
}

.news-modal-close:hover {
    color: var(--color-botan-red);
}

.news-modal-inner {
    margin-top: 10px;
}

.news-modal-date {
    font-family: var(--font-cyber);
    font-size: 0.9rem;
    color: var(--color-botan-pink);
    margin-bottom: 10px;
}

.news-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-botan-red);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.news-modal-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-main);
}

.news-modal-body p {
    margin-bottom: 15px;
}

.news-modal-body a {
    color: var(--color-botan-red);
    text-decoration: underline;
}

.news-modal-body a:hover {
    text-decoration: none;
}

.news-modal-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    margin-bottom: 25px;
    border-radius: 4px;
}

/* Media Queries */
@media screen and (max-width: 992px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px 20px;
    }
    .news-modal-content {
        padding: 30px 20px;
    }

    .title-main { font-size: 2rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .nav { display: none; }

    /* スマホではヘッダーが少し小さいので余白調整 */
    .main-content {
        padding-top: 60px;
    }

    .parallax-container {
        height: calc(100svh - 60px);
    }

    /* スマホでは画像の上寄りを強くしてキャラの顔を見せる */
    .hero-bg {
        background-position: center 5%;
    }

    .parallax-fg {
        padding-bottom: 22vh;
    }

    .hero-title {
        padding: 20px;
        margin-bottom: 10px;
    }
}
