:root {
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --color-bg: #121212;
    --color-surface: #1e1e1e;
    --color-primary: #D4AF37; /* Gold variant */
    --color-text: #EAEAEA;
    --color-text-muted: #A9A9A9;
    --color-accent: #FFD700; /* Bright gold */
    --color-dark: #000000;
    --color-light: #FFFFFF;
    --transition: 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    /* 念のため、bodyにoverflow-x: hidden; を追加して横スクロールバーを防ぐことも検討 */
    /* overflow-x: hidden; */
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

section {
    padding: 5rem 0;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-accent);
}

.page-title-section {
    padding: 4rem 0 1rem 1rem;
    text-align: left;
    position: relative;
    background-color: rgba(117, 113, 113, 0.05);
}

.page-title-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-title-section p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0;
    padding: 0;
}

h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: white;
}

/* Header */
.site-header {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 2rem;
}

.main-nav a {
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0; /* クリック領域を少し広げる */
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.5rem 0.8rem; /* 少しパディング調整 */
    cursor: pointer;
    font-size: 1rem;
    z-index: 10001; /* ナビゲーションが開いた時より手前 */
}

/* Hero Section */
.hero {
    position: relative; /* z-index や absolute な子要素の基準 */
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(40, 40, 40, 0.9), rgba(0, 0, 0, 0.9)), url('../images/bg_top.png') center center/cover;
    background-size: cover;
    background-position: center;
    overflow: visible; /* 音符がはみ出ても表示されるように */
    z-index: 1; /* 音符より奥、基本コンテンツより手前 */
    padding-top: 80px; /* ヘッダーの高さ分を考慮 (必要に応じて調整) */
}

.hero-text {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-subtext {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.2;
    /* .glow クラスが適用されるため、ここでは color を指定しないか、上書きされることを意識 */
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin: 1rem 0 2rem;
    /* .glow クラスが適用されるため、ここでは color を指定しないか、上書きされることを意識 */
}

.cta-button {
    background: var(--color-primary);
    color: var(--color-bg);
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    display: inline-block; /* text-align:center の影響を受けるように */
}

.cta-button:hover {
    transform: scale(1.05);
    background-color: var(--color-accent); /* ホバー時の色変更 */
    color: var(--color-dark);
}


/* Features Section */
.features-section {
    background-color: var(--color-surface);
    padding: 6rem 0;
    width: 100%;
    margin: 0;
}

/* Story Section */
.story-section {
    padding: 4rem 0;
    margin-top: 0px;
}

.story-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
}

.story-chapter {
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 2px solid rgba(255, 215, 0, 0.1);
}

.story-chapter h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--color-accent);
}

.story-text-block {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.story-text-block h3 {
    color: var(--color-accent);
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.story-text-block .story-role {
    color: var(--color-accent);
    font-size: 1.1rem;
    margin: 0.5rem 0;
    font-weight: 600;
}

.story-text-block .story-description {
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 0.5rem;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.story-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid rgba(255, 215, 0, 0.1);
}

.story-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
}

.story-card img {
    width: 200px;
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.story-card h3 {
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.story-card p {
    color: var(--color-text);
    font-size: 1.1rem;
}

.story-card .story-role {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

.hat-container {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.hat-container img {
    width: 600px;
    height: auto;
    margin: 1rem 0;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
}

.message-container {
    text-align: center;
    margin: 2rem 0;
}

.message-container p {
    font-size: 1.4rem;
    line-height: 1.4;
    color: var(--color-text);
    font-weight: 600;
}

.music-appearance {
    position: relative;
    text-align: center;
    margin: 3rem 0;
}

.music-appearance img {
    width: 400px;
    height: auto;
    margin: 1rem 0;
}

.member-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid rgba(255, 215, 0, 0.1);
}

.member-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
}

.member-card img {
    width: 200px;
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.member-card h3 {
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.member-card .member-role {
    color: var(--color-accent);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.member-card .member-description {
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.6;
}

.story-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid rgba(255, 215, 0, 0.1);
}

.story-card img {
    width: 200px;
    height: auto;
    margin-right: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.story-card h3 {
    color: var(--color-accent);
    margin: 0;
    font-size: 1.5rem;
    align-self: flex-start;
}

.story-card .story-role {
    color: var(--color-accent);
    font-size: 1.2rem;
    margin: 0.5rem 0;
    font-weight: 600;
}

.next-chapter {
    text-align: center;
    margin: 2rem 0;
}

.next-chapter h3 {
    margin-bottom: 0.5rem;
}

/* スペクトラムスタイル */
.audio-spectrum {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2px;
    margin: 1rem 0;
    height: 100px;
}

.audio-bar {
    width: 5px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: height 0.1s ease;
}

.features-section .container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.features-section h2 {
    margin-bottom: 2rem;
}

.section-description {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: 0;
    margin-right: auto;
    padding: 2rem 0 0 0rem;
    box-sizing: border-box;
}

/* Request Page Styles */
.request-section {
    padding: 5rem 0;
}

.request-content {
    max-width: 800px;
    margin: 0 auto;
}

.request-form.confirm-form {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0.5rem;
}

.form-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text);
    font-size: 1.1rem;
    position: relative;
}

.form-group label:after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: #ffffff;
    margin-top: 0.25rem;
}

.confirm-value {
    padding: 1rem;
    background-color: var(--color-surface);
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    margin-top: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.request-form {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--color-bg);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.feature-icon {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    margin-bottom: 1.2rem;
}

.feature-card p {
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Music Player Section */
.music-player-section {
    background-color: var(--color-bg);
    padding: 8rem 0;
}

.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.music-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
}

.music-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.music-info {
    margin-bottom: 1.5rem;
}

.music-info h3 {
    margin-bottom: 0.5rem;
}

.music-info p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.play-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.play-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    color: rgba(255, 255, 255, 0.5);
}

.play-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-primary);
    transform: scale(1.1);
}

.play-button.playing {
    color: var(--color-primary);
}

.play-button[data-playing="true"] {
    color: var(--color-primary);
}

.play-button[data-playing="false"] {
    color: rgba(255, 255, 255, 0.5);
}

.audio-spectrum {
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.audio-bar {
    width: 4px;
    margin: 0 1px;
    background: var(--color-accent);
    transition: height 0.1s ease;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Songs Page Styles */
.songs-section {
    padding: 3rem 0;
}

.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.albums-section {
    margin-top: 4rem;
}

.albums-section .section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3rem;
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 30px;
}

/* Members Page Styles */
.members-section {
    padding: 6rem 0;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.member-card,
.leader-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.leader-card {
    grid-column: 1 / -1;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.leader-image {
    flex: 0 0 40%;
    min-width: 300px;
    border-radius: 12px;
    overflow: hidden;
}

.leader-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-info {
    flex: 1;
    padding: 2rem;
}

.leader-info h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.member-card:hover {
    transform: translateY(-5px);
}

.member-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    padding: 1.5rem;
}

.member-role {
    color: var(--color-accent);
    font-size: 1.1rem;
    margin: 0.5rem 0 1rem;
}

.member-description {
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Additional Members Section */
.additional-members-section {
    padding: 4rem 0;
}

.additional-members-grid {
    display: grid;
    place-items: center;
}

.member-table {
    width: 100%;
    max-width: 1200px;
    overflow-x: auto;
}

.member-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.member-table th,
.member-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.member-table th {
    background: rgba(255, 255, 255, 0.1);
    font-weight: bold;
}

.member-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.member-table th:first-child,
.member-table td:first-child {
    border-radius: 0 0 0 12px;
}

.member-table th:last-child,
.member-table td:last-child {
    border-radius: 0 0 12px 0;
}

.album-card {
    background: var(--color-surface);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.album-card:hover {
    transform: translateY(-5px);
}

.album-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.album-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-image.coming-soon {
    background: linear-gradient(45deg, #333, #444);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    position: relative;
}

.album-image.coming-soon span {
    position: relative;
    z-index: 1;
    text-shadow: 0 0 10px rgba(255,255,255,0.8),
                 0 0 20px rgba(255,255,255,0.6),
                 0 0 30px rgba(255,255,255,0.4);
}

.album-image.coming-soon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.3;
    }
}

.album-card:hover .album-image img {
    transform: scale(1.05);
}

.album-info {
    padding: 1.5rem;
}

.album-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.album-year {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.song-card {
    background: var(--color-surface);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.song-card:hover {
    transform: translateY(-5px);
}

.song-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.song-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.song-card:hover .song-image img {
    transform: scale(1.05);
}

.song-info {
    padding: 2rem;
}

.song-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.song-concept {
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.song-artist {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* FAQ Section */
.faq-section {
    background-color: var(--color-bg);
    padding: 8rem 0;
}

.faq-section h2 {
    margin-bottom: 4rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: var(--color-surface);
    border-radius: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-indent: 1rem;
}

.faq-question:hover {
    color: var(--color-accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active {
    border-bottom: 2px solid var(--color-primary);
}

.faq-item.active .faq-question {
    color: var(--color-accent);
}

.faq-answer p {
    margin: 1.5rem 0;
    color: var(--color-text-muted);
}

.faq-answer a {
    color: var(--color-accent);
    text-decoration: underline;
}

.faq-answer a:hover {
    color: var(--color-primary);
}

/* --- 音符アニメーションのスタイル ここから --- */
.music-notes {
    position: fixed; /* 画面に対して固定位置 */
    top: 0;
    left: 0;
    width: 100%; /* 画面幅全体 */
    height: 100%; /* 画面高さ全体 */
    pointer-events: none; /* 音符がクリックなどの操作を妨げないようにする */
    overflow: visible; /* コンテナからはみ出す音符も表示する */
    z-index: 9999;   /* ヘッダー(.site-header の z-index: 10000) の「裏側」、
                         ヒーローセクション(.hero の z-index: 1) の「手前」に表示する場合。
                         もしヘッダーよりも手前に表示したい場合は 10001 に変更してください。
                         「全面で」というご要望から、ここではヘッダーの裏を想定しましたが、
                         ヘッダーも覆いたい場合は 10001 にしてください。
                         ※当初の指示では10001でしたが、文脈上ヘッダーも覆うという意味であれば10001です。
                         ここでは、一旦9999（ヘッダーより奥）にしておきます。
                         完全に最前面であれば 10001 を使用してください。*/
}

.note { /* HTML内の音符(♩, ♫)用のスタイル */
    position: absolute; /* .music-notes コンテナ内での絶対位置 */
    font-size: 2rem;    /* 音符の大きさ */
    color: rgba(255, 255, 255, 0.3); /* 薄い白 */
    animation: float-notes 25s linear infinite; /* アニメーションの適用（速度を遅く） */
    will-change: transform, opacity; /* アニメーションのパフォーマンスを最適化 */
    opacity: 0; /* アニメーション開始時は非表示 */
    /* text-shadow を追加して少し立体感を出すことも可能 */
    /* text-shadow: 0 0 5px rgba(255, 255, 255, 0.1); */
}

@keyframes float-notes {
    0% {
        transform: translateY(100vh) rotate(0deg); /* 画面下部 (ビューポートの高さ分下) からスタート */
        opacity: 0;
    }
    15%, 30% { /* 稍々遅く表示開始、30%で完全に表示 */
        opacity: 1;
    }
    70%, 85% { /* 稍々遅く消え始める */
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg); /* 画面上部 (ビューポートの高さ分上) へ移動して消える */
        opacity: 0;
    }
}
/* --- 音符アニメーションのスタイル ここまで --- */


/* Features Section */
.features-section {
    background-color: var(--color-surface);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    /* SVGを使っているのであれば fill や stroke で色を指定するか、
       img タグであれば CSS での直接の色変更は難しい場合があります。
       ここでは background-color や border を使った装飾例を示します。 */
    background-color: rgba(var(--color-primary-rgb, 212, 175, 55), 0.1); /* --color-primary の薄い色 */
    border-radius: 50%;
    margin: 0 auto 1rem auto; /* 中央寄せ */
    display: flex; /* アイコンを中央に配置する場合 */
    align-items: center;
    justify-content: center;
    /* SVG アイコンの色を変えたい場合、SVG自体に fill="currentColor" を設定し、
       CSSで .feature-icon の color を指定する方法もあります。 */
    /* color: var(--color-primary); */
}

/* もし feature-icon が <img src="images/icons/genre-blend.svg"> の場合、
   SVGファイル側で色を調整するか、CSSフィルターで色味を変える程度になります。*/

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

/* FAQ Section */
.faq-item {
    border-bottom: 1px solid var(--color-surface); /* 区切り線を少し濃く */
    padding: 1.5rem 0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    color: var(--color-text);
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0; /* クリックしやすく */
}

.faq-question::after {
    content: '+';
    font-size: 1.8rem; /* 少し大きく */
    color: var(--color-primary);
    transition: transform 0.3s ease;
    margin-left: 1rem; /* テキストとの間隔 */
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out; /* 少しゆっくりと開く */
}

.faq-answer p {
    padding: 1rem 0 0.5rem 0; /* パディング調整 */
    color: var(--color-text-muted);
}

/* Footer */
.site-footer {
    background-color: var(--color-surface);
    text-align: center;
    padding: 3rem 0; /* 少し広めに */
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center; /* 中央寄せ */
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-logo a {
    font-family: var(--font-heading);
    font-size: 1.3rem; /* 少し大きく */
    font-weight: 700;
    color: var(--color-accent);
}

.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0; /* 下マージン追加 */
    display: flex;
    justify-content: center;
    gap: 1.5rem; /* メニュー間のスペース */
}

.social-links {
    margin-bottom: 1.5rem; /* コピーライトとの間隔 */
}

.social-links a {
    margin: 0 0.75rem;
    font-size: 1.2rem; /* 少し大きく */
    color: var(--color-text-muted); /* 通常時の色 */
    transition: color var(--transition);
}
.social-links a:hover {
    color: var(--color-primary); /* ホバー時の色 */
}

.copyright {
    font-size: 0.85rem;
}


/* グロー効果 */
.glow {
    position: relative;
    display: inline-block; /* h1, p などに適用する場合 */
}

.glow::after {
    content: '';
    position: absolute;
    top: 50%; /* 中心から広がるように調整 */
    left: 50%;
    width: 100%; /* 要素の幅に合わせる */
    height: 100%; /* 要素の高さに合わせる */
    transform: translate(-50%, -50%); /* 中心に配置 */
    background: radial-gradient(circle at center, rgba(255, 220, 100, 0.25) 0%, rgba(255, 215, 0, 0) 70%); /* 色味を調整 */
    filter: blur(15px); /* ブラーの強さを調整 */
    animation: glow-animation 3s ease-in-out infinite alternate; /* アニメーション名を変更して区別 */
    z-index: -1; /* テキストの背後に */
    opacity: 0.7; /* 初期透明度 */
}

@keyframes glow-animation { /* アニメーション名を変更 */
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.95); /* 少し縮小 */
        filter: blur(12px);
    }
    100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.05); /* 少し拡大 */
        filter: blur(18px);
    }
}


/* レスポンシブデザイン */
@media (max-width: 768px) {
    .site-header {
        padding: 0.8rem 5%; /* モバイルでのパディング調整 */
    }

    .main-nav {
        display: none; /* 初期状態は非表示 */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(var(--color-bg-rgb, 18, 18, 18), 0.98); /* 背景色を少し透明に */
        backdrop-filter: blur(5px); /* 背景をぼかす（対応ブラウザのみ） */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 9999; /* mobile-nav-toggle より奥 */
    }

    .main-nav.nav-active {
        display: flex; /* JavaScriptでこのクラスを付与して表示 */
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 0; /* li のマージンで調整 */
    }

    .main-nav li {
        margin: 1.5rem 0;
    }

    .main-nav a {
        font-size: 1.6rem; /* モバイルでのフォントサイズを大きく */
        padding: 0.8rem 1rem;
    }

    .mobile-nav-toggle {
        display: block;
        z-index: 10000; /* ナビメニューより手前 */
    }

    .hero {
        min-height: 70vh; /* モバイルでは少し高さを抑える */
        padding-top: 70px; /* ヘッダーの高さを考慮 */
    }

    .hero-text h1 {
        font-size: 2.8rem; /* モバイルでのH1サイズ */
    }
    .hero-text p {
        font-size: 1.1rem; /* モバイルでのPサイズ */
    }

    .note { /* 音符のレスポンシブ調整 */
        font-size: 1.5rem; /* モバイルでは少し小さく */
    }
    
    h2 {
        font-size: 2.2rem; /* モバイルでのH2サイズ */
    }

    .features-grid {
        grid-template-columns: 1fr; /* モバイルでは1カラム */
    }
}