@charset "UTF-8";

/* --- Google Fontsの読み込み（Sawarabi Mincho） --- */
@import url('https://fonts.googleapis.com/css2?family=Sawarabi+Mincho&display=swap');

/* --- サイト全体のフォント・背景設定 --- */
body {
    font-family: 'Sawarabi Mincho', serif;
    background: linear-gradient(180deg, #1f1b3c 0%, #522d5b 35%, #d96b75 75%, #f6c096 100%);
    color: #3b2f4a;
    margin: 0;
    padding: 40px 0;
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.8;
}

h1, h2, h3, .section-title {
    font-family: 'Sawarabi Mincho', serif;
    font-weight: normal;
}

/* サイトのメインコンテナを中央寄せにする */
.site-container {
    display: flex;          
    flex-direction: column; 
    align-items: center;    
    text-align: center;     
    max-width: 1200px;      
    width: 100%;
    padding: 0 40px;
    box-sizing: border-box;
    margin: 0 auto;         
}

/* メインコンテンツの中央寄せ設定 */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 20px;
    width: 100%;
    box-sizing: border-box;
}

/* ヘッダーエリア */
.hero-header {
    text-align: center;
    margin-bottom: 50px;
}

.logo-img {
    width: 40%;
    max-width: 250px;
    filter: drop-shadow(0 0 15px rgba(255, 180, 150, 0.4));
}

.hero-header h1 {
    color: #fff5f0;
    font-size: 2.2rem;
    margin-top: 20px;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 10px rgba(91, 45, 91, 0.6);
}

.sub-title {
    display: block;
    font-size: 1.1rem;
    color: #ffd6cc;
    margin-top: 5px;
    font-weight: 300;
}

/* ==========================================
   UIカード（すりガラス風 ＆ 多角形カットコーナー）
   ========================================== */
.card {
    background: rgba(255, 248, 245, 0.85);
    border: 1px solid rgba(255, 200, 180, 0.6);
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(44, 27, 61, 0.3);
    backdrop-filter: blur(10px);
    color: #3a2e39;

    /* ★ 角を斜めに切り落としたスタイリッシュな多角形にする設定 */
    clip-path: polygon(
        15px 0, 
        calc(100% - 15px) 0, 
        100% 15px, 
        100% calc(100% - 15px), 
        calc(100% - 15px) 100%, 
        15px 100%, 
        0 calc(100% - 15px), 
        0 15px
    );
}

.card h2 {
    color: #b83b5e;
    font-size: 1.4rem;
    border-bottom: 2px solid #ffd1c1;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
}

/* リンクとボタン */
a {
    color: #d94e67;
    text-decoration: none;
    transition: all 0.3s;
}

a:hover {
    color: #f26b83;
}

.button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.game-button {
    background: #ffffff;
    border: 1px solid #ffb3a7;
    color: #b83b5e;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(184, 59, 94, 0.15);
    display: inline-block;
    text-align: center;
}

.game-button:hover {
    background: #b83b5e;
    color: #ffffff;
    border-color: #b83b5e;
    box-shadow: 0 8px 20px rgba(184, 59, 94, 0.4);
    transform: translateY(-3px);
}

/* フッター */
.site-footer {
    text-align: center;
    margin-top: 60px;
    clear: both;
}

.back-to-top {
    color: #ffd6cc;
    border-bottom: 1px solid #ffd6cc;
    display: inline-block;
    padding-bottom: 4px;
    font-size: 1.1rem;
}

.back-to-top:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* 動画埋め込みの調整 */
.video-container {
    text-align: center;
    margin-top: 15px;
}

/* キャラクター紹介セクションのタイトル */
.section-title {
    color: #fff5f0;
    text-align: center;
    margin: 50px 0 30px;
    font-size: 2.2rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    letter-spacing: 0.1em;
}

/* スライダーコンテナ */
.char-slider-container {
    position: relative;
    max-width: 1100px; 
    margin: 40px auto 70px auto;
}

/* スライドカード本体 */
.slide {
    display: none;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 35px;
    padding: 60px 50px; 
    backdrop-filter: blur(15px);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    overflow: visible; 
    position: relative;
    min-height: 360px; 
    box-shadow: 0 20px 45px rgba(44, 27, 61, 0.25);
}

.slide.active {
    display: block;
    opacity: 1;
    animation: fadeInSlide 0.6s ease-out forwards;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-content {
    display: flex;
    align-items: flex-start; 
    gap: 40px;             
}

/* 文字エリア */
.char-text {
    flex: 1;
    color: #3a2e39;
    z-index: 2;
    padding-right: 400px; 
}

.char-text h3 {
    color: #b83b5e;
    font-size: 2.5rem; 
    margin-top: 0;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.char-text p {
    font-size: 1.15rem; 
    line-height: 1.9;
}

/* キャラクターの二つ名 */
.char-subtitle {
    display: block;
    font-size: 0.9rem;      
    color: #b83b5e;          
    margin-bottom: 6px;      
    letter-spacing: 0.1em;   
    font-family: 'Shippori Mincho B1', serif;
}

/* 圧倒的な存在感！立ち絵 */
.protruding-img {
    width: 480px;
    height: auto;
    position: absolute;
    right: -40px; 
    bottom: -20px; 
    z-index: 3;
    filter: drop-shadow(0 20px 30px rgba(184, 59, 94, 0.35));
    pointer-events: none;
    animation: floating 4s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* 左右の切り替えボタン */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: #b83b5e;
    backdrop-filter: blur(5px);
    width: 65px;  
    height: 65px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    z-index: 10;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.prev { left: -45px; } 
.next { right: -45px; }

.nav-btn:hover {
    background: #b83b5e;
    color: white;
    box-shadow: 0 0 25px rgba(184, 59, 94, 0.6);
    transform: translateY(-50%) scale(1.1);
}

/* ページリンクボタン */
.page-link-btn {
    display: inline-block;
    padding: 15px 40px;
    margin: 30px 0;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #6b2c39;  
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold; 
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.page-link-btn:hover {
    background: #b83b5e; 
    color: #ffffff;      
    border-color: #b83b5e;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(184, 59, 94, 0.6);
}

/* BGMコントロールボタン */
.bgm-control {
    position: fixed;
    top: 20px;
    right: 25px;
    z-index: 100;
}

#bgmToggleBtn {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #3b2f4a;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

#bgmToggleBtn:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 59, 94, 0.3);
}

#bgmToggleBtn.playing {
    background: #b83b5e;
    color: #ffffff;
    border-color: #b83b5e;
    box-shadow: 0 0 15px rgba(184, 59, 94, 0.5);
}

/* サイトロゴ */
.site-logo {
    position: fixed;
    top: 20px;
    left: 25px;
    z-index: 100;
    display: inline-block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.site-logo img {
    height: 80px; 
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.site-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px rgba(255, 180, 150, 0.6));
}

.world-setting-card {
    text-align: center;
}

/* ソーシャルリンク */
.social-links {
    display: flex;
    justify-content: center; 
    gap: 15px;              
    margin-top: 15px;
}

.social-btn {
    display: inline-block;
    padding: 8px 25px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #6b2c39;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(44, 27, 61, 0.15);
}

.social-btn:hover {
    background: #b83b5e;
    color: #ffffff;
    border-color: #b83b5e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 59, 94, 0.4);
}

/* 花びらエフェクト */
.petal {
    position: fixed;
    top: -30px;
    background-image: url('images/petal.webp'); 
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent; 
    border-radius: 0; 
    opacity: 0.8;
    pointer-events: none;
    z-index: -1;
    animation-name: fall, sway;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
}

@keyframes fall {
    0% { top: -30px; opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { top: 105vh; opacity: 0; }
}

@keyframes sway {
    0%, 100% { transform: translateX(0px) rotate(0deg); }
    50% { transform: translateX(50px) rotate(180deg); }
}

/* 背景スライドショー */
.bg-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10; 
    overflow: hidden;
    background-color: #1f1b3c; 
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; 
}

.bg-slide.active {
    opacity: 0.45; 
}

/* キラキラエフェクト */
.sparkle {
    position: fixed;
    transform: rotate(45deg);
    background-color: #fff2cc; 
    pointer-events: none;
    z-index: -5; 
    opacity: 0;
    box-shadow: 0 0 8px #fff, 0 0 12px #ffdf73; 
    animation: twinkle ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: rotate(45deg) scale(0.4); }
    50% { opacity: 0.85; transform: rotate(45deg) scale(1.1); }
}

/* ポートフォリオ・ギャラリー（Masonryレイアウト） */
.portfolio-grid {
    column-count: 3;
    column-gap: 20px;
    margin-top: 30px;
}

@media (max-width: 900px) {
    .portfolio-grid { column-count: 2; }
}

@media (max-width: 600px) {
    .portfolio-grid { column-count: 1; }
}

.portfolio-item {
    break-inside: avoid; 
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 200, 180, 0.8);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(44, 27, 61, 0.15);
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(184, 59, 94, 0.25);
}

.portfolio-item img {
    width: 100%;
    height: auto;       
    display: block;
    background: rgba(255, 255, 255, 0.4); 
    cursor: zoom-in;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.03); 
}

.portfolio-content {
    padding: 15px 20px;
    text-align: left; 
    border-top: 1px solid rgba(255, 220, 210, 0.5);
}

.portfolio-content h3 {
    font-size: 1.05rem;
    color: #b83b5e;
    margin: 0 0 5px 0;
    font-weight: bold;
}

.portfolio-content p {
    font-size: 0.85rem;
    color: #5a4b59;
    margin: 0;
    line-height: 1.6;
}

/* モーダル */
.custom-modal {
    display: none; 
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(20, 15, 30, 0.85); 
    backdrop-filter: blur(8px);                 
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.custom-modal img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* モーダル用矢印ボタン */
.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-size: 2rem;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    z-index: 10000;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.modal-arrow:hover {
    background: #b83b5e;
    border-color: #b83b5e;
    transform: translateY(-50%) scale(1.05);
}

.modal-prev { left: 30px; }
.modal-next { right: 30px; }

/* テクスチャボタン用 */
.texture-btn-wrapper {
    text-align: center;
    margin-top: 60px; 
}

.texture-button-img {
    display: inline-block;
    width: 100%;
    max-width: 280px; 
    height: auto; 
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.texture-button-img:hover {
    transform: translateY(-3px) scale(1.02);
    filter: drop-shadow(0 0 12px rgba(255, 80, 80, 0.8)) brightness(1.1);
}

/* キラキラ光る特設ページへの誘導ボタン */
.sparkle-button {
    position: relative;
    animation: sparklePulse 2s infinite ease-in-out;
}

@keyframes sparklePulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(223, 26, 36, 0.7), 
                    0 0 5px rgba(255, 100, 100, 0.4) inset;
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 25px rgba(224, 101, 156, 0.9), 
                    0 0 12px rgba(255, 255, 255, 0.7) inset;
        transform: scale(1.02); 
    }
}

/* ==========================================
   スマホ・タブレット向けの表示調整（レスポンシブ）
   ========================================== */
@media (max-width: 768px) {
    body { padding: 15px 0; }
    .site-container { padding: 0 15px; }
    .site-logo img { height: 32px; }

    .char-slider-container { max-width: 100%; margin: 20px 10px 50px 10px; }
    .slide { padding: 30px 20px; min-height: auto; }
    .slide-content { flex-direction: column; align-items: center; text-align: center; }
    .char-text { padding-right: 0 !important; width: 100%; }
    .char-text h3 { font-size: 1.8rem; }
    .char-text p { font-size: 1rem; }

    .protruding-img {
        position: static !important;
        width: 80% !important;
        max-width: 260px;
        height: auto !important;
        margin-top: 20px;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
    }

    .nav-btn { width: 40px; height: 40px; font-size: 1rem; }
    .prev { left: -5px; }
    .next { right: -5px; }

    .main-content { padding: 30px 15px; }
    .page-link-btn { padding: 12px 25px; font-size: 1rem; }

    .modal-arrow { width: 42px; height: 42px; font-size: 1.4rem; }
    .modal-prev { left: 15px; }
    .modal-next { right: 15px; }
}