/*
Theme Name: はぐおん
Description: 完全無料BGM配布サイト「はぐおん」のオリジナルテーマ
Version: 1.0.0
*/

/*
 * 構成目次
 * 1. Reset & :root
 * 2. 共通コンポーネント（ボタン・カード等）
 * 3. Header / Hero / トップ各セクション
 * 4. BGM一覧・アーカイブ・サイドバー
 * 5. シングルBGM・関連トラック
 * 6. お問い合わせ・利用規約
 * 7. Footer
 * 8. レスポンシブ（メディアクエリ）
 */

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

html {
    overflow-x: hidden;
}

:root {
    /* Colors */
    --color-white: #FFFFFF;
    --color-bg-light: #F6F9FB;
    --color-bg-beige: #F6F3ED;
    --color-bg-green-light: #EEF8F4;
    --color-bg-green: #77BDA7;
    --color-text-primary: #333333;
    --color-text-green: #0EAA6C;
    --color-text-green-dark: #358F73;
    --color-text-green-light: #658276;
    --color-button-primary: #FFD521;
    --color-button-secondary: #0CA669;
    --color-button-border: #228469;
    --color-accent-yellow: #FFE674;
    --color-accent-beige: #FAE8CB;
    --color-trust-bg: #C2E9D9;
    --color-trust-text: #4F6059;
    --color-card-bg: #F5F5F5;
    --color-card-border: #228469;
    --color-footer-bg: #EEF8F4;
    
    /* Fonts */
    --font-noto: 'Noto Sans JP', sans-serif;
    /* --font-zen: 'Zen Maru Gothic', sans-serif; */
    
    /* Spacing */
    --container-width: 1920px;
    --container-padding: 160px;
}

body {
    font-family: var(--font-noto);
    color: var(--color-text-primary);
    line-height: 1.6;
    background-color: var(--color-white);
    font-size: 13px;
    overflow-x: hidden;
}

/* 全ページのリンク：下線なし */
a,
a:link,
a:visited,
a:hover,
a:focus,
a:active {
    text-decoration: none;
}

/* Header */
.header {
    background-color: var(--color-bg-light);
    position: relative;
}

.header-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo {
    left: var(--container-padding);
}

.logo a {
    display: inline-block;
    text-decoration: none;
}

.logo img {
    width: 271px;
    height: 94px;
    object-fit: contain;
    display: block;
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--color-text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 16px;
    color: var(--color-text-primary);
    text-decoration: none;
    padding: 8px 0 10px;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.7;
}

/* Buttons */
.btn-primary {
    background-color: var(--color-button-primary);
    color: var(--color-text-primary);
    border: none;
    border-radius: 30px;
    padding: 15px 20px;
    height: 60px;
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.49;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 4px 4px 8.1px rgba(71, 69, 15, 0.08);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, color 0.2s, border 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

a.btn-primary {
    text-decoration: none;
}

a.btn-primary:hover {
    text-decoration: none;
}

.btn-primary:hover {
    background-color: var(--color-white);
    border: 2px solid var(--color-button-primary);
    color: var(--color-text-primary);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-button-secondary);
    border: 2px solid var(--color-button-border);
    border-radius: 35px;
    padding: 15px 20px;
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: 0.08em;
    cursor: pointer;
    box-shadow: 4px 4px 5.4px rgba(21, 58, 7, 0.07);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

a.btn-secondary {
    text-decoration: none;
}

a.btn-secondary:hover {
    text-decoration: none;
}

.btn-secondary:hover{
        background-color: #c6eede;
}

.btn-secondary .btn-icon {
    width: 15px;
    height: 15px;
    transition: transform 0.2s;
}

.btn-secondary:hover .btn-icon {
    transform: rotate(90deg);
}

.btn-download {
    background-color: #0CA669;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    padding: 10px 44px;
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background-color 0.3s;
    flex: 2;
    white-space: nowrap;
    min-width: 0;
}

.btn-download:hover {
    background-color: #0a8554;
}

.btn-download-icon {
    height: 1.2em;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.btn-detail {
    background-color: #F0F0F0;
    color: #333333;
    border: none;
    border-radius: 8.64px;
    padding: 13.16px 12.09px 14.24px;
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.3s;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-detail:hover {
    background-color: #e0e0e0;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 660px;
    background-color: var(--color-white);
    overflow: hidden;
    padding-bottom: clamp(12px, 2.5vw, 28px);
}

.hero-background {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-image {
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 3;
    max-width: var(--container-width);
    margin: 30px auto;
    margin-bottom: clamp(28px, 4vw, 48px);
    padding: 0;
    display: grid;
    grid-template-columns: 462px minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
        "hero-text hero-illust"
        "hero-btns hero-illust";
    column-gap: 100px;
    row-gap: 0;
    align-items: start;
    justify-content: center;
}

.hero-content {
    grid-area: hero-text;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    width: 100%;
    max-width: 462px;
}

.hero-textarea {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 35px;
    align-items: flex-start;
}

.hero-title-section {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
}

.trust-label img {
    width: 130px;
}

.trust-badge {
    width: 15px;
    height: 19px;
    background: #D9D9D9;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    flex-shrink: 0;
}

.trust-text {
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 18.54px;
    line-height: 1.45;
    letter-spacing: 0.07em;
    color: var(--color-trust-text);
}

.hero-subtitle {
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 24.28px;
    line-height: 1.45;
    letter-spacing: 0.12em;
    color: var(--color-text-green-light);
    margin-top: 0;
}

.hero-title {
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 61.68px;
    line-height: 1.45;
    letter-spacing: 0.01em;
    color: var(--color-text-green);
    margin-top: 0;
}

.hero-description {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 3px;
    text-align: left;
    align-items: center;
}

.hero-description p {
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.08em;
    color: var(--color-text-primary);
}

.hero-buttons {
    grid-area: hero-btns;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-top: 0;
    width: 100%;
    align-self: start;
}

/* ヒーロー CTA: primary / secondary を .btn-secondary 基準で統一（16px・padding 15px 20px） */
.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    font-size: 16px;
    padding: 15px 20px;
    height: auto;
    min-height: 52px;
    line-height: 1.2;
    letter-spacing: 0.08em;
    box-sizing: border-box;
}

/* ヒーロー secondary: 固定 width なし・1行表示（折り返し防止） */
.hero-buttons .btn-secondary {
    width: auto;
    max-width: 100%;
    min-width: 200px;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.hero-illustration {
    grid-area: hero-illust;
    width: 730px;
    max-width: 100%;
    height: auto;
    z-index: 1;
    pointer-events: none;
    align-self: center;
    justify-self: center;
}

.hero-illustration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wave-bottom-beige {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 0;
    pointer-events: none;
    line-height: 0;
}

/* wave_bottom_beige.svg viewBox 1440×320 — cover+固定高さだと山が上で切れるため比率表示 */
.wave-bottom-beige img {
    width: 100%;
    height: auto;
    aspect-ratio: 1440 / 320;
    display: block;
}

/* News Bar */
.news-bar {
    background-color: var(--color-button-border);
    display: flex;
    align-items: center;
    justify-content: center;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    padding: 5px 0;
}

.news-container {
    max-width: var(--container-width);
    margin: 0;
    padding: 5px var(--container-padding);
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--color-white);
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 17px;
    line-height: 1.32;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateX(100%);
    animation: slideInFromRight 1s ease-out 0.5s forwards;
}

@keyframes slideInFromRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.news-label {
    width: 49px;
}

.news-date {
    width: 102px;
}

/* Featured Tracks Section */
.featured-tracks {
    background-color: var(--color-bg-green);
    padding: 0 100px 106px 100px;
    position: relative;
}

.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    /* padding: 0 var(--container-padding); */
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 64px;
}

.featured-tracks .section-header {
    margin-bottom: 83px;
}

.section-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
}

.section-title {
    font-family: 'Afacad', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 0.83;
    text-align: center;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.section-subtitle {
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 20px;
    line-height: 2.56;
    letter-spacing: 0.05em;
    text-align: center;
    color: var(--color-text-primary);
}

.tracks-grid {
    display: flex;
    justify-content: flex-start;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.track-card {
    background-color: #FFFFFF;
    border: none;
    border-radius: 11.11px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 350px;
    display: flex;
    flex-direction: column;
}

.track-image {
    width: 100%;
    height: 185.12px;
    background-color: #919191;
    border-radius: 9.26px;
    border: 1px solid #FAE8CB;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0;
    overflow: hidden;
}

.track-image::after {
    content: '▶';
    position: absolute;
    color: white;
    font-size: 48px;
    opacity: 0.8;
    z-index: 1;
}

.track-image:has(.track-youtube-embed)::after {
    display: none;
}

.track-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #919191 0%, #b0b0b0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.track-placeholder svg {
    opacity: 0.9;
}

/* YouTube動画埋め込み */
.track-youtube-embed {
    width: 100%;
    height: 100%;
    position: relative;
    padding-bottom: 56.25%; /* 16:9のアスペクト比 */
    overflow: hidden;
    border-radius: 9.26px;
}

.track-youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 9.26px;
}

.track-content {
    padding: 25px 18.51px 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.track-title {
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 17px;
    line-height: 1.33;
    letter-spacing: 0.08em;
    color: #333333;
}

.track-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 7.4px;
    min-height: 33px; /* カテゴリ未選択時も他カードと高さを揃える */
}

.category-tag {
    background-color: #F5F5F5;
    color: #333333;
    padding: 3.64px 14.54px 5.08px;
    border-radius: 15px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 14.54px;
    line-height: 1.6;
    height: 33px;
    display: flex;
    align-items: center;
}

.track-actions {
    display: flex;
    justify-content: stretch;
    align-items: flex-end;
    gap: 8.64px;
    padding-top: 8.64px;
    margin-top: auto;
}

.track-actions .btn-download,
.track-actions .btn-detail {
    height: 100%;
    box-sizing: border-box;
}

/* トップ Featured Tracks: ダウンロード・詳細も 16px・padding は .btn-secondary に合わせる */
.featured-tracks .track-actions .btn-download,
.featured-tracks .track-actions .btn-detail {
    font-size: 16px;
    padding: 15px 20px;
    line-height: 1.2;
    box-sizing: border-box;
}

/* All Tracks Section */
.all-tracks {
    background-color: var(--color-white);
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

.all-tracks-layout {
    display: flex;
    gap: 0;
    align-items: flex-start;
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.all-tracks-main.terms-main-inner {
    padding: 40px 60px;
}

.all-tracks-main {
    flex: 3;
    min-width: 0;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.all-tracks-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 18.05px;
}

.all-tracks-title-section {
    display: flex;
    flex-direction: column;
    /* width: 1073px; */
}

.all-tracks-title {
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 32px;
    line-height: 1.2;
    color: #333333;
    padding-bottom: 24px;
}

.all-tracks-description {
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 15.2px;
    line-height: 1.2;
    color: #666666;
    padding: 1px 0 27px;
}

.all-tracks-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* width: 1073px; */
    padding: 24px 0;
}

.track-count {
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 15.2px;
    line-height: 1.2;
    color: #666666;
    padding: 1px 0 3px;
}

.sort-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.sort-button {
    background-color: #FFFFFF;
    color: #000000;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    padding: 11.6px 14px 11.6px 16px;
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 14.4px;
    line-height: 1.11;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 120px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.sort-button:hover {
    background-color: #f5f5f5;
}

.sort-button:focus-visible {
    outline: none;
    border-color: rgba(34, 132, 105, 0.8);
    box-shadow: 0 0 0 4px rgba(34, 132, 105, 0.15);
}

.sort-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #FFFFFF;
    border: 1px solid #E6E6E6;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    padding: 6px;
    z-index: 20;
}

.sort-option {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #333333;
    font-family: var(--font-noto);
    font-size: 14px;
    line-height: 1.2;
}

.sort-option:hover {
    background: #F5F5F5;
}

.sort-option.active {
    background: rgba(34, 132, 105, 0.10);
    color: #228469;
    font-weight: 700;
}

.all-tracks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.all-tracks-grid-row {
    display: contents;
}

.all-tracks-grid .track-card {
    width: 100%;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 40px 0;
}

.pagination-button {
    background-color: #FFFFFF;
    color: #000000;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    padding: 14.19px 21.2px 15.19px;
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 13.3px;
    line-height: 1.15;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-button:hover {
    background-color: #f5f5f5;
}

.pagination-button.active {
    background-color: #FFD521;
    border-color: #FFD521;
    color: #333333;
    padding: 14.69px 21.2px;
}

.all-tracks-sidebar {
    flex: 1;
    min-width: 380px;
    background-color: #FCFBF9;
    box-sizing: border-box;
}

.filter-section {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.filter-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 11px;
    background-color: #FFE674;
    height: 55px;
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: 0.08em;
    color: #333333;
    cursor: pointer;
}

.filter-header svg {
    width: 19px;
    height: 19px;
    transition: transform 0.3s;
}

.filter-section.active .filter-header svg {
    transform: rotate(180deg);
}

.filter-content {
    background-color: #FFFFFF;
    border-radius: 0 0 20px 20px;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* サイドバー フィルター下の CTA（トップページの .btn-secondary 基準と同じ） */
.filter-reset {
    margin-top: 30px;
    width: 100%;
}

.filter-reset .btn-primary {
    font-size: 16px;
    padding: 15px 20px;
    height: auto;
    min-height: 52px;
    line-height: 1.2;
    letter-spacing: 0.08em;
    box-sizing: border-box;
    width: 100%;
    justify-content: center;
}

.filter-tag {
    background-color: #F5F5F5;
    color: #333333;
    padding: 3.64px 14.54px 5.08px;
    border-radius: 15px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 14.54px;
    line-height: 1.6;
    height: 33px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
}

.filter-tag:hover {
    background-color: #e0e0e0;
}

/* Getting Started Section */
.getting-started {
    background-color: #EEF8F4;
    padding: 165px 0 100px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.getting-started .section-container {
    position: relative;
    z-index: 2;
}

.getting-started .section-button {
    margin-top: 64px;
}

/* トップ Getting Started / Creator: primary を .btn-secondary 基準で統一 */
.getting-started .section-button .btn-primary,
.creator-text .btn-primary {
    font-size: 16px;
    padding: 15px 20px;
    height: auto;
    min-height: 52px;
    line-height: 1.2;
    letter-spacing: 0.08em;
    box-sizing: border-box;
}

.wave-bottom-green2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    pointer-events: none;
    line-height: 0;
}

/* wave_bottom_green2.svg viewBox 1921×166 */
.wave-bottom-green2 img {
    width: 100%;
    height: auto;
    aspect-ratio: 1921 / 166;
    display: block;
}

/* Track Search Section */
body > section.track-search {
    min-height: 1340px;
}

.track-search {
    background-color: var(--color-bg-beige);
    padding: 56px 0 clamp(40px, 5vw, 80px);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-title {
    color: var(--color-text-green-dark);
}

.search-groups {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding: 0;
    width: 1000px;
}

.search-group {
    background-color: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    width: 1000px;
}

.search-header {
    background-color: var(--color-accent-yellow);
    padding: 31px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.08em;
    color: var(--color-text-primary);
    border-radius: 20px 20px 0 0;
    height: 55px;
}

.search-tags {
    padding: 48px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    border-radius: 0 0 20px 20px;
}

/* すべてのaタグの下線を消す（優先度を高く） */
.search-tags a,
.search-tags a.search-tag,
a.search-tag {
    text-decoration: none !important;
    border-bottom: none !important;
}

.search-tag {
    background-color: var(--color-card-bg);
    color: var(--color-text-primary);
    padding: 3.64px 14.54px 5.08px;
    border-radius: 15px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 14.54px;
    line-height: 1.6;
    height: 33px;
    display: flex;
    text-decoration: none !important; /* 下線を消す */
    border-bottom: none !important; /* 下線を消す（念のため） */
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

/* aタグの場合も確実に下線を消す */
a.search-tag,
.search-tags a.search-tag {
    text-decoration: none !important;
    border-bottom: none !important;
}

.search-tag:hover,
a.search-tag:hover,
.search-tags a.search-tag:hover {
    background-color: #e0e0e0;
    transform: scale(1.05);
    text-decoration: none !important; /* ホバー時も下線を消す */
    border-bottom: none !important; /* ホバー時も下線を消す */
}

.search-tag:visited,
a.search-tag:visited,
.search-tags a.search-tag:visited {
    text-decoration: none !important; /* 訪問済みリンクでも下線を消す */
    border-bottom: none !important; /* 訪問済みリンクでも下線を消す */
}

.search-tag:active,
a.search-tag:active,
.search-tags a.search-tag:active {
    text-decoration: none !important;
    border-bottom: none !important;
}

.wave-bottom-green1 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    line-height: 0;
}

/* wave_bottom_green1.svg viewBox 1440×320 */
.wave-bottom-green1 img {
    width: 100%;
    height: auto;
    aspect-ratio: 1440 / 320;
    display: block;
}

/* Creator Section */
.creator {
    background-color: var(--color-white);
    padding: 0;
    position: relative;
}

.creator-image {
    width: 96px;
    height: auto;
    flex-shrink: 0;
    position: relative;
}

.creator-image img {
    width: 96px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.creator-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 0 60px;
}

.creator-text {
    flex: 1;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-right: 0;
}

.creator-name {
    display: flex;
    align-items: flex-end;
    gap: 31px;
}

.creator-name h3 {
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 32px;
    line-height: 1.2;
    color: var(--color-text-primary);
    margin: 0;
}

.creator-name p {
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.2;
    color: #666666;
    margin: 0;
}

.creator-description {
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.8;
    letter-spacing: 0.08em;
    color: #666666;
    max-width: 597px;
}

.creator-text .btn-primary {
    align-self: flex-end;
    text-decoration: none;
}

.wave-bottom-blue2 {
    position: relative;
    width: 100%;
    pointer-events: none;
    margin-top: 50px;
    margin-bottom: 0;
    line-height: 0;
}

/* wave_bottom_blue2.svg viewBox 1921×166 */
.wave-bottom-blue2 img {
    width: 100%;
    height: auto;
    aspect-ratio: 1921 / 166;
    display: block;
}

.wave-top-blue1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    line-height: 0;
}

/* wave_bottom_blue1.svg viewBox 1921×166 */
.wave-top-blue1 img {
    width: 100%;
    height: auto;
    aspect-ratio: 1921 / 166;
    display: block;
}

.creator .section-container {
    padding-top: 165.6px;
    padding-bottom: 85px;
}

.creator .section-header {
    margin-bottom: 64px;
}

.creator-title {
    color: var(--color-text-green);
}

.cards-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 40px;
    flex-wrap: wrap;
}

.info-card {
    background-color: var(--color-white);
    border: 3px solid var(--color-card-border);
    border-radius: 12px;
    padding: 41.81px 32px 42px;
    width: 300px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    text-align: center;
}

.card-icon {
    width: 80px;
    height: 80px;
    background-color: var(--color-button-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon img {
    width: 56px;
    height: 56px;
}

.card-title {
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    color: var(--color-text-primary);
}

.card-description {
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-primary);
}

.section-button {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding-bottom: 0;
}

/* Single Track Page */
.single-track {
    background-color: var(--color-white);
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    position: relative;
}

.single-track-layout {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.single-track-main {
    flex: 3;
    min-width: 0;
    padding: 40px 90px 40px 126px;
    display: flex;
    flex-direction: column;
    gap: 45px;
    box-sizing: border-box;
}


.single-track-header {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.track-title-wrapper {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: flex-end;
}

.track-main-title {
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 32px;
    line-height: 1.2;
    color: var(--color-text-primary);
}

.track-creator {
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.2;
    color: #666666;
}

.track-player-section {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 0;
    min-width: 1px;
    flex-shrink: 0;
    width: auto;
}

.track-player {
    width: 390px;
    height: 208px;
    background-color: #919191;
    border: 1px solid #FAE8CB;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.track-player .track-youtube-embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding-bottom: 0;
    border-radius: 8px;
    overflow: hidden;
}

.track-player .track-youtube-embed iframe {
    border-radius: 8px;
}

.player-placeholder {
    width: 132px;
    height: 132px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.track-info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
    width: 493px;
    box-sizing: border-box;
}

.track-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.download-count {
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.2;
    color: #666666;
    text-align: center;
}

.credit-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.credit-header {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

.credit-badge {
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
    color: var(--color-text-primary);
    background-color: var(--color-accent-yellow);
    padding: 12px 20px;
    border-radius: 8px;
    display: inline-block;
    width: fit-content;
}

.credit-description {
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.6;
    color: #666666;
}

.credit-box {
    background-color: var(--color-bg-beige);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.credit-box-title {
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    color: var(--color-text-primary);
}

.credit-content {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-end;
}

.credit-text-box {
    width: 315px;
}

.credit-text {
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-primary);
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    background-color: var(--color-white);
    resize: none;
}

.related-tracks-section {
    position: relative;
    padding: 40px 0 0 0;
    /* 波をセクション下端に貼るための逃げ（中身が波に被らない） */
    padding-bottom: clamp(64px, 10vw, 140px);
}

.related-tracks-section .section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 30px var(--container-padding);}

/* related-tracks の波はトップと同じく下端に貼り付け */
.related-tracks-section > .wave-bottom-blue2 {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    margin-top: 0;
    line-height: 0;
    pointer-events: none;
}

.related-tracks-title {
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 32px;
    line-height: 1.2;
    color: #333333;
    margin: 0 0 64px 0;
    text-align: center;
}

.wave-bottom-blue2 {
    margin-top: 40px;
}

/* Contact Page */
.contact-page {
    background-color: var(--color-white);
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

.contact-main {
    padding-top: 95px;
    padding-bottom: 60px;
}

body > section > div > main > div,
body > section > div > main > div.contact-content {
    padding: 0;
}

.contact-content {
    max-width: 880px;
    margin: 0 71px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.contact-header {
    margin-bottom: 40px;
}

.contact-title {
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 36px;
    line-height: 1.2;
    color: var(--color-text-primary);
    margin-bottom: 24px;
}

.contact-lead {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 auto;
    max-width: 700px;
}

.contact-lead p {
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: 0.08em;
    color: #666666;
}

.contact-page .contact-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contact-page .form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-page .form-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    color: var(--color-text-primary);
}

.required-badge {
    background-color: #FF5A5A;
    color: #FFFFFF;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 700;
    color: #FF5A5A;
    background-color: #FFFFFF;
    flex-shrink: 0;
}

.contact-page .form-input {
    height: 46px;
    border: none;
    border-radius: 6px;
    background-color: #F3F3F3;
    padding: 0 16px;
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #333333;
}

.contact-page .form-textarea {
    border: none;
    border-radius: 6px;
    background-color: #F3F3F3;
    padding: 14px 16px;
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #333333;
    resize: none;
    min-height: 260px;
}

.contact-page .form-input:focus,
.contact-page .form-textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(12, 166, 105, 0.18);
}

.contact-page .form-submit {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.btn-contact-submit {
    background-color: var(--color-button-primary);
    color: var(--color-text-primary);
    border: none;
    border-radius: 30px;
    padding: 15px 48px;
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 4px 4px 8.1px rgba(71, 69, 15, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 165px;
}

.btn-contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 4px 6px 12px rgba(71, 69, 15, 0.12);
}

/* Contact Form 7 お問い合わせページ用スタイル */
.contact-page .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-content .wpcf7-form {
    margin-left: auto;
    margin-right: auto;
}

.contact-content .contact-header {
    text-align: center;
}

.contact-page .wpcf7-form p {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px 20px;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: flex-end;
}

.contact-page .wpcf7-form p:has(.wpcf7-submit) {
    flex-direction: column;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
}

.contact-page .wpcf7-form p:has(.wpcf7-submit) input.wpcf7-submit {
    margin-left: 0;
}

.contact-page .wpcf7-form p label {
    flex: 0 0 auto;
    flex-shrink: 0;
    min-width: max-content;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    color: var(--color-text-primary);
    white-space: nowrap;
}

.contact-page .wpcf7-form p .wpcf7-form-control-wrap {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-sizing: border-box;
}

.contact-page .wpcf7-form p .wpcf7-form-control-wrap input,
.contact-page .wpcf7-form p .wpcf7-form-control-wrap textarea {
    width: 100%;
}

.contact-page .wpcf7-form input[type="text"],
.contact-page .wpcf7-form input[type="email"],
.contact-page .wpcf7-form input[type="tel"],
.contact-page .wpcf7-form input:not([type="submit"]):not([type="hidden"]) {
    height: 46px;
    border: none;
    border-radius: 6px;
    background-color: #F3F3F3;
    padding: 0 16px;
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #333333;
    box-sizing: border-box;
}

.contact-page .wpcf7-form textarea {
    border: none;
    border-radius: 6px;
    background-color: #F3F3F3;
    padding: 14px 16px;
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #333333;
    resize: none;
    min-height: 260px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.contact-page .wpcf7-form input:focus,
.contact-page .wpcf7-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(12, 166, 105, 0.18);
}

/* 題名（件名）入力欄を非表示 */
.contact-page .wpcf7-form p:has([name="your-subject"]) {
    display: none;
}

.contact-page .wpcf7-form input.wpcf7-submit {
    background-color: var(--color-button-primary);
    color: var(--color-text-primary);
    border: none;
    border-radius: 30px;
    padding: 15px 48px;
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 4px 4px 8.1px rgba(71, 69, 15, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 165px;
    margin-top: 26px;
}

.contact-page .wpcf7-form input.wpcf7-submit:hover {
    transform: translateY(-2px);
    box-shadow: 4px 6px 12px rgba(71, 69, 15, 0.12);
}

.contact-page .wpcf7 .wpcf7-not-valid-tip {
    font-size: 13px;
    color: #d63638;
    margin-top: 4px;
}

.contact-page .wpcf7-response-output {
    margin: 1em 0 0;
    padding: 1em;
    border-radius: 6px;
}

/* Footer */
.footer {
    background-color: var(--color-footer-bg);
    padding: 60px 0 40px;
    position: relative;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-logo-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    width: 200px;
    height: 70px;
    object-fit: contain;
    display: block;
}

.footer-nav {
    display: flex;
    gap: 30px;
}

.footer-link {
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 16px;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-link:hover {
    opacity: 0.7;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #E0E0E0;
}

.copyright {
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 14px;
    color: #666666;
}

.privacy-link {
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 14px;
    color: #666666;
    text-decoration: none;
    transition: opacity 0.3s;
}

.privacy-link:hover {
    opacity: 0.7;
}

.footer-wave .footer {
    background-color: transparent;
}

/* --------------------------------------------------------------------------
   Responsive (breakpoints: 1920 / 1440 / 1024 / 768 / 520)
   -------------------------------------------------------------------------- */
@media (max-width: 1920px) {
    .header-container,
    .footer-container {
        padding: 0 120px;
    }
    
    .hero-container {
        padding: 0 calc(var(--container-padding) - 50px);
    }
}

@media (max-width: 1440px) {
    .header-container,
    .footer-container {
        padding: 0 80px;
    }
    
    .hero-container {
        padding: 0 calc(var(--container-padding) - 50px);
    }
    
    .logo img {
        width: 220px;
        height: auto;
    }
    
    .hero-illustration {
        width: 600px;
    }
    
    .tracks-grid {
        gap: 24px;
    }
    
    .all-tracks-sidebar {
        width: 280px;
        height: auto;
    }
}

@media (max-width: 1024px) {
    .header-container,
    .footer-container {
        padding: 0 40px;
    }
    
    .section-container {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .hero-container {
        padding: 0 40px;
        column-gap: 40px;
        grid-template-columns: minmax(0, 1fr) minmax(260px, min(500px, 52vw));
    }
    
    .news-container {
        padding: 5px 40px;
        font-size: 15px;
    }
    
    .nav {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .btn-primary {
        font-size: 14px;
        padding: 12px 18px;
        height: 55px;
    }
    
    .filter-reset .btn-primary {
        font-size: 15px;
        padding: 15px 20px;
        height: auto;
        min-height: 52px;
    }
    
    .hero-title {
        font-size: 45px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .hero-description p {
        font-size: 14px;
    }
    
    .hero-illustration {
        width: 100%;
        max-width: 500px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        font-size: 15px;
    }

    .all-tracks-main.terms-main-inner {
        padding: 40px;
    }
    
    .hero-buttons .btn-secondary {
        height: auto;
        min-height: 52px;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
    }
    
    .tracks-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .track-card {
        width: 100%;
        max-width: 350px;
    }
    
    .section-title {
        font-size: 40px;
    }
    
    .featured-tracks {
        padding: 0 40px 60px 40px;
    }
    
    .track-search {
        padding: 44px 0 clamp(36px, 5vw, 64px);
    }
    
    .search-groups {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .search-group {
        width: 100%;
    }
    
    .all-tracks-layout {
        flex-direction: column;
    }
    
    .all-tracks-main {
        width: 100%;
        padding: 40px 20px;
    }
    
    .all-tracks-title-section {
        width: 100%;
    }

    .all-tracks-meta {
        width: 100%;
        flex-wrap: wrap;
        gap: 12px;
        align-items: flex-start;
    }
    
    .all-tracks-title {
        font-size: 28px;
    }
    
    .all-tracks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .all-tracks-grid-row {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .all-tracks-sidebar {
        width: 280px;
        min-width: 0;
        height: auto;
    }
    
    .creator-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 60px;
    }
    
    .creator-text {
        padding-right: 0;
    }
    
    .getting-started {
        padding: 80px 0 80px;
    }
    
    .cards-grid {
        gap: 20px;
    }
    
    .creator-image {
        width: 96px;
        height: auto;
    }
    
    .creator-name h3 {
        font-size: 28px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
        min-height: 110vh;
    }

    .featured-tracks .section-header {
        margin-bottom: 30px;
    }

    .hero-content {
        width: 100%;
        max-width: none;
    }

    .hero-textarea {
        min-width: 0;
        margin-bottom: 0;
    }

    .hero-buttons {
        flex-direction: column;
        width: auto;
        min-width: 200px;
        max-width: 100%;
        gap: 16px;
        align-items: stretch;
    }

    .tracks-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .track-card {
        width: 100%;
        max-width: none;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .header-container,
    .footer-container {
        padding: 0 20px;
    }
    
    .section-container {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        padding: 80px 20px;
    }

    /* related-tracks は左右だけスマホ幅に合わせる（上下は既存のまま） */
    .related-tracks-section .section-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hero-container {
        padding: 0 20px;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "hero-text"
            "hero-illust"
            "hero-btns";
        column-gap: 0;
        row-gap: 0;
        align-items: stretch;
    }

    .featured-tracks .section-header {
        margin-bottom: 30px;
    }

    .hero-content {
        max-width: none;
        margin-bottom: 20px;
        align-items: center;
    }
    
    .news-container {
        padding: 5px 20px;
        font-size: 13px;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .news-label,
    .news-date {
        width: auto;
    }
    
    .logo img {
        width: 150px;
        height: auto;
    }
    
    .header-container {
        position: relative;
        padding: 15px 20px;
    }
    
    .hamburger-menu {
        display: flex;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        gap: 20px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 13px;
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid #E0E0E0;
    }
    
    .nav .btn-primary {
        width: 100%;
        margin-top: 10px;
    }
    
    .btn-primary {
        font-size: 13px;
        padding: 10px 16px;
        height: 45px;
        width: 100%;
    }
    
    .filter-reset .btn-primary {
        font-size: 16px;
        padding: 15px 20px;
        height: auto;
        min-height: 52px;
    }
    
    .hero-title {
        font-size: 45px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-description p {
        font-size: 13px;
        text-align: center;
    }
    
    .hero-illustration {
        width: 100%;
        margin-bottom: 20px;
        align-self: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        width: 100%;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        font-size: 16px;
    }
    
    .hero-buttons .btn-secondary {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: auto;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
    }
    
    .btn-secondary {
        width: 100%;
        font-size: 14px;
        justify-content: center;
    }
    
    .tracks-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .track-card {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .info-card {
        width: 100%;
        max-width: 300px;
    }
    
    .section-title {
        font-size: 35px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .creator-content {
        flex-direction: column;
        padding: 0 20px;
        gap: 25px;
    }
    
    .creator-image {
        width: 96px;
        height: auto;
    }
    
    .creator-text {
        max-width: 100%;
        gap: 32px;
    }
    
    .creator-name h3 {
        font-size: 24px;
    }
    
    .creator-description p {
        font-size: 14px;
    }
    
    .featured-tracks {
        padding: 0 20px 40px 20px;
    }

    .all-tracks-main.terms-main-inner {
        padding: 40px 20px;
    }
    
    .getting-started {
        padding: 100px 0 72px;
    }
    
    .track-search {
        padding: 36px 0 clamp(32px, 6vw, 56px);
    }
    
    .search-groups {
        width: 100%;
        max-width: 100%;
        gap: 15px;
    }
    
    .search-group {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .search-header {
        font-size: 18px;
        padding: 25px 0;
    }
    
    .search-tags {
        padding: 30px 20px;
        justify-content: center;
    }
    
    .footer-logo-area {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }
    
    .footer-logo {
        width: 150px;
        height: auto;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        text-align: center;
    }
    
    .all-tracks-layout {
        flex-direction: column;
        padding: 0;
    }
    
    .all-tracks-main {
        padding: 20px 15px;
    }
    
    .all-tracks-title {
        font-size: 24px;
    }
    
    .all-tracks-description {
        font-size: 14px;
    }
    
    .all-tracks-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    
    .all-tracks-sidebar {
        width: 100%;
        min-width: 0;
    }
    
    .filter-header {
        font-size: 14px;
        height: 50px;
    }
    
    .filter-content {
        padding: 15px;
    }
    
    .filter-tags {
        gap: 10px;
    }
    
    .filter-tag {
        font-size: 13px;
        padding: 3px 12px 4px;
        height: 30px;
    }
}

/* BGM一覧: 狭いスマホのみ1列（タブレット〜中幅は2列） */
@media (max-width: 520px) {
    .all-tracks-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Responsive Styles for Single Track */
/* タブレットサイズ (768px〜1024px) */
@media (max-width: 1024px) {
    .single-track-layout {
        flex-direction: column;
        padding: 40px 20px;
        gap: 30px;
    }
    
    .single-track-main {
        padding: 40px 20px;
        width: 100%;
    }
    
    .track-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .track-main-title {
        font-size: 28px;
    }
    
    .track-creator {
        font-size: 14px;
    }
    
    .track-player-container {
        flex-direction: row;
        align-items: flex-end;
        gap: 20px;
    }
    
    .track-player {
        width: 100%;
        max-width: 390px;
    }
    
    .track-info-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        width: 100%;
        padding: 0;
    }
    
    .track-actions {
        flex-direction: row;
        width: 100%;
        gap: 10px;
    }
    
    .btn-download {
        flex: 2;
    }
    
    .download-count {
        text-align: left;
    }
    
    .credit-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .credit-content {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .credit-text-box {
        width: 100%;
    }
    
    .credit-text {
        min-height: 80px;
        font-size: 13px;
    }
    
    .related-tracks-section {
        padding: 30px 15px;
    }
    
    .related-tracks-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .wave-bottom-blue2 {
        margin-top: 30px;
    }
    
    .all-tracks-sidebar {
        width: 100%;
    }
}

/* モバイルサイズ (768px以下) */
@media (max-width: 768px) {
    .single-track-layout {
        padding: 20px 15px;
        gap: 20px;
    }
    
    .single-track-main {
        padding: 20px 0;
    }
    
    .track-title-wrapper {
        gap: 10px;
    }
    
    .track-main-title {
        font-size: 24px;
    }
    
    .track-creator {
        font-size: 13px;
    }
    
    .track-player-section {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .track-player-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        max-width: 100%;
    }
    
    .track-player {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 9;
    }
    
    .track-info-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .track-content {
        padding: 25px 18.51px 15px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        flex: 1;
    }
    
    .track-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .btn-download {
        width: 100%;
    }
    
    .track-actions .btn-detail {
        width: 100%;
    }
    
    .download-count {
        text-align: center;
        width: 100%;
    }
    
    .credit-header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .credit-badge {
        font-size: 14px;
    }
    
    .credit-description {
        font-size: 13px;
        text-align: center;
    }
    
    .credit-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .credit-text-box {
        width: 100%;
    }
    
    .credit-text {
        min-height: 80px;
        font-size: 13px;
    }
    
    .related-tracks-section {
        padding: 30px 15px;
    }
    
    .related-tracks-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .tracks-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .wave-bottom-blue2 {
        margin-top: 30px;
    }
}

/* Contact page + CF7 + Terms (tablet) */
@media (max-width: 1024px) {
    .contact-page .all-tracks-layout {
        flex-direction: column;
        gap: 30px;
    }
    
    .contact-main {
        padding: 60px 20px;
        width: 100%;
    }
    
    .contact-content {
        max-width: 100%;
    }
    
    .contact-title {
        font-size: 32px;
        white-space: normal;
    }
    
    .contact-lead p {
        font-size: 14px;
    }
    
    .contact-form {
        gap: 24px;
    }
    
    .all-tracks-sidebar {
        width: 100%;
    }
    
    /* CF7: タブレット以下はラベル上・入力下の縦並びでラベルを1行表示 */
    .contact-page .wpcf7-form p:not(:has(.wpcf7-submit)) {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .contact-page .wpcf7-form p label {
        white-space: nowrap;
        align-self: flex-start;
        width: 100%;
        max-width: 100%;
        flex-direction: column;
    }
    
    .contact-page .wpcf7-form p .wpcf7-form-control-wrap {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }
    
    /* Terms page */
    .terms-main {
        padding: 60px 40px 80px;
    }
    
    .terms-content {
        max-width: 100%;
    }
    
    .terms-section-title {
        font-size: 28px;
    }
}

/* Contact page + CF7 + Terms (mobile) + BGM フィルター */
@media (max-width: 768px) {
    .contact-main {
        padding: 40px 15px;
    }
    
    .contact-content {
        padding: 0;
    }
    
    .contact-page-content {
        padding: 0 10px;
    }
    
    .contact-header {
        margin-bottom: 30px;
    }
    
    .contact-title {
        font-size: 18px;
        white-space: normal;
    }
    
    .contact-lead {
        margin-bottom: 30px;
    }
    
    .contact-lead p {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .contact-form {
        gap: 20px;
    }
    
    .form-label {
        font-size: 14px;
    }
    
    .required-badge {
        font-size: 11px;
        padding: 2px 8px;
    }
    
    .contact-page .form-input {
        height: 44px;
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .contact-page .form-textarea {
        min-height: 200px;
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .form-submit {
        margin-top: 20px;
    }
    
    .btn-contact-submit {
        width: 100%;
        padding: 16px 32px;
        font-size: 15px;
    }
    
    /* Contact Form 7（1024px で縦並び済み。ここはフォント等のみ） */
    .contact-page .wpcf7-form {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .contact-page .wpcf7-form p:has(.wpcf7-submit) {
        align-items: center;
    }
    
    .contact-page .wpcf7-form input.wpcf7-submit {
        margin-left: 0;
    }
    
    .all-tracks-sidebar {
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }
    
    .filter-header {
        font-size: 14px;
        height: 50px;
    }
    
    .filter-content {
        padding: 15px;
    }
    
    .filter-tags {
        gap: 10px;
    }
    
    .filter-tag {
        font-size: 13px;
        padding: 3px 12px 4px;
        height: 30px;
    }
    
    /* Terms page */
    .terms-main {
        padding: 0;
    }
    
    .terms-content {
        padding: 0;
    }
    
    .terms-section {
        margin-bottom: 30px;
    }
    
    .terms-section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .terms-box {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .terms-box p {
        font-size: 14px;
        line-height: 1.8;
    }
    
    .terms-bullet-list {
        font-size: 14px;
        line-height: 1.8;
    }
    
    .terms-intro {
        margin-bottom: 24px;
    }
    
    .terms-details summary {
        padding: 16px 20px;
        font-size: 14px;
    }
    
    .terms-details summary::before {
        font-size: 20px;
        margin-right: 12px;
        width: 20px;
    }
    
    .terms-details-content {
        padding: 20px;
    }
    
    .terms-details-content .section-title {
        font-size: 16px;
        padding: 10px 14px;
        margin: 16px 0 12px;
    }
    
    .terms-details-content ol,
    .terms-details-content p {
        font-size: 14px;
        line-height: 1.8;
        padding-left: 20px;
    }
    
    .terms-details-content li {
        margin-bottom: 10px;
    }
}

/* Terms Page */
.terms-page {
    background-color: var(--color-white);
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

.terms-main {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0;
}

.terms-content {
    max-width: 1100px;
    margin: 0 auto;
}

.terms-section {
    margin-bottom: 40px;
}

.terms-section-title {
    display: flex;
    align-items: center;
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 32px;
    line-height: 1.4;
    letter-spacing: 0.08em;
    color: var(--color-text-primary);
    margin-bottom: 24px;
}

.terms-section-title.has-text-color {
    color: var(--color-text-green);
}

.terms-box {
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.terms-box.light-bg {
    background-color: var(--color-bg-beige);
}

.terms-box.alert-bg {
    background-color: var(--color-bg-green-light);
}

.terms-box.alert-bg p {
    padding-left: 0;
    text-indent: 0;
}

body > section > div > main > div > div > div.terms-box.alert-bg > p > span > img {
    display: none;
}

.terms-box p {
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 15px;
    line-height: 2.0;
    letter-spacing: 0.08em;
    color: var(--color-text-primary);
    margin: 0;
    padding-left: 1.2em;
    text-indent: 0;
}

/* 利用規約の「・」箇条書き（折り返しが中黒の下に入らない） */
.terms-bullet-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 15px;
    line-height: 2.0;
    letter-spacing: 0.08em;
    color: var(--color-text-primary);
}

.terms-bullet-list li {
    position: relative;
    padding-left: 1.25em;
    margin: 0 0 0.35em;
}

.terms-bullet-list li:last-child {
    margin-bottom: 0;
}

.terms-bullet-list li::before {
    content: '・';
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
}

.terms-box .terms-bullet-list li strong {
    font-weight: 700;
}

.terms-box strong {
    font-weight: 700;
}

.terms-box .highlight {
    color: var(--color-text-green);
    font-weight: 700;
}

.terms-box .icon,
.terms-section-title .icon {
    color: var(--color-text-green);
    font-size: 24px;
    font-weight: 900;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    filter: drop-shadow(0.5px 0.5px 0.5px var(--color-text-green));
}

.terms-box .icon {
    margin-right: 8px;
}

.terms-section-title .icon {
    margin-right: 12px;
}

.terms-intro {
    margin-bottom: 30px;
}

/* Details/Summary Accordion Styles */
.terms-details {
    border: 2px solid var(--color-card-border);
    border-radius: 12px;
    /* margin-bottom: 20px; */
    overflow: hidden;
}

.terms-details:not(:last-child) {
    margin-bottom: 20px;
}

.terms-details summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 24px;
    background-color: var(--color-accent-yellow);
    color: var(--color-text-primary);
    font-family: var(--font-noto);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}

.terms-details summary:hover {
    background-color: var(--color-button-primary);
}

.terms-details summary::-webkit-details-marker {
    display: none;
}

.terms-details summary::before {
    content: '+';
    font-size: 24px;
    font-weight: 700;
    margin-right: 16px;
    width: 24px;
    text-align: center;
    transition: transform 0.3s;
}

.terms-details[open] summary::before {
    content: '−';
}

.terms-details-content {
    padding: 30px 24px;
    background-color: var(--color-white);
}

.terms-details-content .section-title {
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: 0.08em;
    color: var(--color-text-primary);
    background-color: var(--color-bg-beige);
    padding: 12px 16px;
    border-radius: 8px;
    margin: 20px 0 16px;
}

.terms-details-content .section-title:first-child {
    margin-top: 0;
}

.terms-details-content ol {
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 15px;
    line-height: 2.0;
    letter-spacing: 0.08em;
    color: var(--color-text-primary);
    padding-left: 24px;
    margin: 16px 0;
}

.terms-details-content li {
    margin-bottom: 12px;
}

.terms-details-content p {
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 15px;
    line-height: 2.0;
    letter-spacing: 0.08em;
    color: var(--color-text-primary);
    margin: 16px 0;
}

/*
 * ヒーロー左カラム（.hero-content）中央揃え
 * - 768px以下（モバイル）だけ中央揃え
 * - .hero 付きで詳細度を上げ、見出し・段落に text-align を明示
 */
@media (max-width: 768px) {
    .hero .hero-content {
        align-items: center;
        justify-self: center;
        text-align: center;
    }

    .hero .hero-textarea {
        align-items: center;
    }

    .hero .hero-title-section {
        align-items: center;
    }

    .hero .hero-title,
    .hero .hero-subtitle {
        text-align: center;
        width: 100%;
    }

    .hero .hero-description {
        align-items: center;
        text-align: center;
    }

    .hero .hero-description p {
        text-align: center;
    }
}
