/* ======== 基本設定 & カラーパレット ======== */
:root {
    --color-primary-blue: #3dcc9c;
    --color-background: #f2e0c6;
    --gradient-hibiscus: linear-gradient(135deg, #3cb371, #dc143c); /* 斜めのグラデーション */
    --color-text: #3a3a3a;
    --color-white: #ffffff;
    --color-discord: #5865F2;
    --color-x: #14171A; /* X(Twitter)のブランドカラー */
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', Meiryo, メイリオ, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.8;
    font-size: 16px;
}

html {
    scroll-behavior: smooth;
}

/* ======== ヘッダー (モダン化) ======== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: transparent; /* 初期状態は透明 */
    z-index: 1000;
    box-sizing: border-box;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
    background-color: var(--color-primary-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav-links.active {
    display: flex;
}

.nav-links a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 700;
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: #f0f8ff;
}

.hamburger {
    display: block;
    cursor: pointer;
    z-index: 10;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-white);
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ======== ヒーローセクション ======== */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-white);
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('image/image01.webp') no-repeat center center/cover;
    padding: 0 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-top: 10px;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* ======== メインコンテンツ ======== */
main {
    /* padding-top is no longer needed because of hero section */
}

.section {
    padding: 100px 5%;
    overflow: hidden;
}

#about, #owner {
     background-color: var(--color-white);
}
#achievements, #join {
    background-color: var(--color-background);
}


.container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.section-image {
    width: 100%;
    max-width: 550px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.section-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.section-image:hover img {
    transform: scale(1.05);
}

.section-content {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section h2 {
    font-size: 2.5rem;
    color: var(--color-primary-blue);
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 5px solid transparent;
    border-image: var(--gradient-hibiscus);
    border-image-slice: 1;
}

.section p {
    font-size: 1rem;
}

/* 注釈スタイル */
.annotation {
    font-size: 0.85rem;
    color: #888;
    margin-top: -15px;
    margin-bottom: 20px;
    font-weight: 400;
}


/* ======== 実績テーブル ======== */
.achievements-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 1rem;
}

.achievements-table th, .achievements-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}

.achievements-table th {
    font-weight: 700;
    color: var(--color-text);
    width: 45%;
}

.achievements-table td {
    font-weight: 700;
    color: var(--color-text); /* 文字色を修正 */
}

/* スポイラー行のスタイル */
.spoiler-row {
    cursor: pointer;
}
.spoiler-row th, .spoiler-row td {
    color: var(--color-text);
    background: var(--color-text);
    border-radius: 4px;
    user-select: none;
    transition: all 0.3s ease-in-out;
}
.spoiler-row.revealed th, .spoiler-row.revealed td {
    color: var(--color-text);
    background: transparent;
}


/* ======== SNSボタン ======== */
.sns-button-container {
    margin-top: 20px;
    text-align: center; /* 中央揃えを追加 */
}

.sns-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
}

.sns-button.x-button {
    background-color: var(--color-x);
    color: var(--color-white);
}
.sns-button.x-button:hover {
    background-color: #333;
    transform: translateY(-3px);
}


/* ======== 参加セクション ======== */
.join-container {
    justify-content: center;
    text-align: center;
}

.join-container .section-content {
    max-width: 100%; /* 横幅の制限を解除 */
    align-items: center;
}

.join-container h2 {
    margin-bottom: 40px; /* h2の下に余白を追加 */
    font-size: 1.8rem; /* スマホ表示でフォントサイズを調整 */
}


/* ======== 参加ボタン ======== */
.discord-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--color-discord), #7289da);
    color: var(--color-white);
    padding: 25px 50px; /* ボタンの縦幅を大きく */
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem; /* フォントを大きく */
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    border: none;
}

.discord-button:hover, .discord-button:focus {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.5);
    outline: none;
}

/* ======== ふわっと表示アニメーション ======== */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======== フッター ======== */
.footer {
    background-color: var(--color-primary-blue);
    color: var(--color-white);
    text-align: center;
    padding: 40px 20px;
}

/* ======== レスポンシブ (PC) ======== */
@media (min-width: 768px) {
    .hero-title { font-size: 4.5rem; }
    .hero-subtitle { font-size: 1.5rem; }

    .hamburger { display: none; }

    .nav-links {
        display: flex;
        flex-direction: row;
        position: static;
        width: auto;
        background-color: transparent;
        box-shadow: none;
    }

    .nav-links a {
        padding: 10px 20px;
        border-radius: 5px;
        color: var(--color-white);
        font-weight: 400;
        text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }

    .nav-links a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--color-white);
    }

    .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center; /* stretchから変更 */
        gap: 5%;
    }

    .section-image {
        width: 45%; /* 固定幅から%に変更 */
        height: auto; /* 固定高を削除 */
        flex-shrink: 0;
    }

    .section-content {
        width: 50%; /* 固定幅から%に変更 */
    }

    .container.reverse { flex-direction: row-reverse; }

    /* 参加セクションのh2フォントサイズをPC表示で元に戻す */
    .join-container h2 {
        font-size: 2.5rem;
        white-space: nowrap; /* PCでは改行を防ぐ */
    }

    /* 参加セクションの中央揃えを修正 */
    .join-container {
        justify-content: center;
    }
}
