@charset "UTF-8";

/* --- ベーススタイル --- */
:root {
    --primary-color: #333;
    --accent-color: #5d9cec; /* 爽やかな青 */
    --bg-color: #f9f9f9;
    --text-color: #444;
}

body {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
    letter-spacing: 0.05em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --- ヘッダー（グラスモーフィズム） --- */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 40px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.7); /* 半透明の白 */
    backdrop-filter: blur(10px); /* すりガラス効果 */
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.title span {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    color: var(--primary-color);
}

/* ナビゲーションの下線アニメーション */
nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

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

nav i {
    margin-right: 8px;
}

/* --- メインビジュアル --- */
/* --- メインビジュアル --- */
.main-visual {
    /* 画面いっぱいに表示したい場合は 100vh、少し小さくするなら 60vh */
    height: 100vh; 
    width: 100%;

    /* 背景画像の設定（重要！） */
    /* linear-gradient は写真を少し暗くして文字を読みやすくするためのフィルターです */
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('image/Titleimage.jpg');
    
    background-size: cover;   /* 画面全体を隙間なく埋める */
    background-position: center; /* 画像の中心を表示 */
    background-repeat: no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 60px;
}

/* もし文字が見えにくい場合は、文字の影を少し濃くします */
.main-visual h1 {
    color: white;
    font-size: 3rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5); /* 影を強化 */
    letter-spacing: 0.2em;
    margin: 0;
    text-align: center; /* スマホで改行された時用に中央揃え */
}

/* スマホの時は文字サイズを調整 */
@media (max-width: 768px) {
    .main-visual h1 {
        font-size: 2rem;
        padding: 0 20px; /* 横幅いっぱいの時に文字が端に行き過ぎないように */
    }
}

/* ※自分の画像を使いたい場合は以下のコメントアウトを外してパスを指定してください */
/*
.main-visual {
    background-image: url('image/main_visual.png'); 
    background-size: cover;
    background-position: center;
} 
*/

.main-visual h1 {
    color: white;
    font-size: 3rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
    letter-spacing: 0.2em;
    margin: 0;
}

/* --- コンテンツ共通設定 --- */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 100px;
}

section {
    margin-bottom: 100px;
    opacity: 0; /* アニメーション用初期値 */
    animation: fadeIn 1s ease forwards;
}

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

section h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

/* --- 自己紹介セクション --- */
.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.profile-image {
    width: 200px;
    height: 200px;
    
    /* 画像をトリミングして比率を保つ（歪み防止の絶対条件） */
    object-fit: cover;
    
    /* 正円にする */
    border-radius: 50%;
    
    /* 影 */
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    
    /* 【ここが重要】親要素が狭くなっても、絶対に縮まないようにする設定 */
    flex-shrink: 0;
}

/* スマホ用設定 */
@media (max-width: 768px) {
    .profile-image {
        /* スマホでは少し小さくするが、正円はキープ */
        width: 150px;
        height: 150px;
        
        /* 念のためここでも強調 */
        flex-shrink: 0;
    }
}

.about-text .sentence span {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 10px;
    font-size: 1rem;
}

/* --- 写真集セクション --- */
#photo-collection {
    text-align: center;
}

.btn-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-link:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(93, 156, 236, 0.4);
}

/* --- アクティビティセクション（Booth & Note） --- */
#activity {
    text-align: center;
}

.section-desc {
    margin-bottom: 40px;
    color: #666;
}

/* カードを横並びにするコンテナ */
.link-card-container {
    display: flex;
    justify-content: center;
    gap: 30px; /* カード同士の間隔 */
    flex-wrap: wrap; /* スマホで折り返す */
}

/* 共通カードスタイル */
.link-card {
    display: block;
    width: 100%;
    max-width: 450px; /* カードの幅 */
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-decoration: none;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.02);
    overflow: hidden;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* Booth固有の色 */
.link-card.booth:hover {
    border-color: #fc4d50; /* Boothの赤っぽい色 */
}

/* Note固有の色 */
.link-card.note:hover {
    border-color: #41c9b4; /* Noteの緑っぽい色 */
}

.card-inner {
    display: flex;
    align-items: center;
    padding: 30px;
    gap: 20px;
    text-align: left;
}

.icon-area {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f9f9f9;
    border-radius: 15px;
}

.icon-area img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.text-area h3 {
    margin: 0 0 5px 0;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.text-area p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #888;
}

.link-text {
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: 0.3s;
}

.link-card:hover .link-text {
    color: var(--accent-color);
    padding-left: 5px;
}


/* --- ハンバーガーメニューのスタイル --- */
.hamburger {
    display: none; /* PCでは非表示 */
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
    z-index: 2000;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    position: absolute;
    transition: all 0.3s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { bottom: 0; }

/* ハンバーガーが開いた時の×印アニメーション */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 11px;
}

/* スマホ用メニューデザイン */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* スマホで表示 */
    }

    .global-nav {
        position: fixed;
        top: 0;
        right: -100%; /* 最初は画面の外に隠す */
        width: 80%;   /* メニューの幅 */
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        transition: right 0.4s ease;
        z-index: 1000;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .global-nav.active {
        right: 0; /* 出てくる */
    }

    .global-nav ul {
        flex-direction: column; /* 縦並び */
        gap: 40px;
        text-align: center;
    }

    .global-nav a {
        font-size: 1.5rem; /* 文字を大きく */
    }
}

/* --- 1. スクロール時の「ふわっ」とアニメーション --- */
.js-scroll-trigger {
    opacity: 0;
    transform: translateY(30px); /* 最初は少し下にいる */
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); /* 動きをなめらかに */
}

.js-scroll-trigger.is-active {
    opacity: 1;
    transform: translateY(0); /* 元の位置に戻る */
}

/* --- 2. メインビジュアルのタイトルアニメーション --- */
.main-visual h1 {
    /* 既存のスタイルがあれば維持しつつ、以下を追加/上書き */
    animation: textBlurIn 2s ease forwards;
    opacity: 0; /* 最初は隠す */
}

@keyframes textBlurIn {
    0% {
        filter: blur(20px);
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        filter: blur(0);
        transform: scale(1);
        opacity: 1;
    }
}
/* --- スマホ表示のレイアウト修正 --- */
@media (max-width: 768px) {
    .about-container {
        /* 縦並びにする（これで文字が広くなります） */
        flex-direction: column;
        /* 文字を中央揃えにする */
        text-align: center;
        /* 画像と文字の間隔を少し狭く調整 */
        gap: 20px;
    }
    
    /* 念のため、文章の幅を100%にする */
    .about-text {
        width: 100%;
    }
}
/* --- Booth商品スライドショー --- */
.booth-slider-area {
    width: 100%;
    overflow: hidden; /* はみ出した部分を隠す */
    padding: 20px 0;
    margin-top: 30px;
    background: #fff; /* 背景色 */
}

.booth-track {
    display: flex;
    width: fit-content; /* 中身に合わせて幅を自動調整 */
    gap: 20px; /* 画像と画像の間隔 */
    
    /* アニメーション設定 */
    animation: scrollLoop 30s linear infinite; 
}

/* 商品画像のスタイル */
.booth-item {
    width: 150px; /* 画像の幅 */
    height: 150px;
    flex-shrink: 0; /* 縮まないようにする */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.booth-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ホバー時に少し拡大 */
.booth-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

/* マウスを乗せたらスライドを一時停止 */
.booth-track:hover {
    animation-play-state: paused;
}

/* 左へ流れるアニメーション */
@keyframes scrollLoop {
    0% {
        transform: translateX(0);
    }
    100% {
        /* リストの半分（1セット分）移動したら瞬時に0に戻る */
        /* widthが可変なので、JSで計算するか、CSSで -50% に設定 */
        transform: translateX(-50%); 
    }
}

/* スマホ対応 */
@media (max-width: 768px) {
    .booth-item {
        width: 100px; /* スマホでは少し小さく */
        height: 100px;
    }
    .booth-track {
        gap: 15px;
        animation-duration: 20s; /* スマホは少し速くてもいいかも */
    }
}