body {
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    background: #F2F4F3;
    color: #4A4A4A;
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
}

header {
    text-align: center;
    padding: 60px 2px 5px 2px;
    position: relative; /* アクセスカウンターを absolute 配置するための基準 */
}

h1 {
    font-size: 2.4rem;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.6rem;
    }
}


.subtitle {
    font-size: 1.2rem;
    color: #666;
}

@media (max-width: 480px) {
    .subtitle {
        font-size: 1rem;
    }
}

.search-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 40px 20px;
    max-width: 900px;
    margin: auto;
}

@media (max-width: 768px) {
    .search-section {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 15px;
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    .search-section {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px 10px;
    }
}



.card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    transform: translateY(-10px); /* 常に少し上に移動（調整可） */
}

@media (max-width: 768px) {
    .card {
        padding: 20px;
        transform: translateY(-8px);
    }
}

@media (max-width: 480px) {
    .card {
        padding: 15px;
        transform: translateY(-5px);
    }
}


.card:hover {
    transform: translateY(-12px); /* ホバー時はさらに上へ */
}

@media (max-width: 768px) {
    .card:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 480px) {
    .card:hover {
        transform: translateY(-7px);
    }
}


.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: auto;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: #E8AEB7;
    color: white;
}

@media (max-width: 480px) {
    .icon-circle {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        margin-bottom: 10px;
    }
}

.c-green { background: #A4C3B2; }
.c-yellow { background: #F7D488; }


        .years {
            color: #777;
            margin-bottom: 20px;
        }
        .container {
            max-width: 900px;
            margin: auto;
            padding: 20px;
        }

        @media (max-width: 768px) {
            .container {
                padding: 15px;
            }
        }

        @media (max-width: 480px) {
            .container {
                padding: 12px;
            }
        }

        .profile-box {
            background: #ffffff;
            padding: 25px;
            border-radius: 20px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.08);
            margin-bottom: 30px;
        }

        @media (max-width: 768px) {
            .profile-box {
                padding: 20px;
                margin-bottom: 20px;
            }
        }

        @media (max-width: 480px) {
            .profile-box {
                padding: 15px;
                margin-bottom: 15px;
                border-radius: 15px;
            }
        }

        h2 {
            margin-top: 0;
            margin-bottom: 15px;
        }

        @media (max-width: 480px) {
            h2 {
                font-size: 1.3rem;
                margin-bottom: 12px;
            }
        }

        .works-list li {
            margin-bottom: 8px;
        }
        .tag {
            display: inline-block;
            background: #A4C3B2;
            color: white;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 0.8rem;
            margin-right: 6px;
        }
        .back-link {
            text-align: center;
            margin-top: 30px;
            font-size: 1rem;
        }
  .composer-grid {
max-width: 1000px;
margin: auto;
padding: 40px 20px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 25px;
}

@media (max-width: 768px) {
    .composer-grid {
        padding: 30px 15px;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .composer-grid {
        padding: 20px 10px;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}
.composer-card {
background: white;
padding: 20px;
border-radius: 18px;
text-align: center;
box-shadow: 0 4px 10px rgba(0,0,0,0.08);
transition: transform 0.2s ease;
text-decoration: none;
color: inherit;
display: block;
}

@media (max-width: 480px) {
    .composer-card {
        padding: 15px;
        border-radius: 15px;
    }
}

.composer-card:hover {
transform: translateY(-5px);
}

.composer-img {
width: 100px;
height: 100px;
border-radius: 50%;
object-fit: cover;
margin-bottom: 15px;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

@media (max-width: 480px) {
    .composer-img {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }
}

.composer-name {
font-size: 1.2rem;
font-weight: 600;
margin-bottom: 5px;
}

@media (max-width: 480px) {
    .composer-name {
        font-size: 1rem;
    }
}

.years {
color: #777;
font-size: 0.9rem;
}

@media (max-width: 480px) {
    .years {
        font-size: 0.85rem;
    }
}

.rakuten-widget {
    max-width: 468px;      /* ウィジェット幅に合わせる */
    margin: -10px auto 20px; /* 横中央、上を少し上げる（負のマージン） */
    text-align: center;
    padding: 0 10px;
}

@media (max-width: 480px) {
    .rakuten-widget {
        max-width: 100%;
        margin: -10px auto 15px;
    }
}

.rakuten-widget iframe {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

/* --- ここから追加 --- */
.image-block {
  text-align: center;
}

.image-block img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width: 768px) {
    .image-block img {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .image-block img {
        width: 140px;
        height: 140px;
    }
}

.credit {
  font-size: 0.8rem;
  color: #666;
  margin-top: 5px;
}

@media (max-width: 480px) {
    .credit {
        font-size: 0.75rem;
    }
}

.counter-minimal {
    margin: 25px auto;
    text-align: center;
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    color: #444;
}

.counter-minimal span:last-child {
    font-size: 20px;
    font-weight: 700;
    color: #222;
}



/* --- ここから追加 --- */
.image-block {
  text-align: center;
}

.image-block img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
}

.credit {
  font-size: 0.8rem;
  color: #666;
  margin-top: 5px;
}

.counter-minimal {
    margin: 25px auto;
    text-align: center;
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    color: #444;
}

.counter-minimal span:last-child {
    font-size: 20px;
    font-weight: 700;
    color: #222;
}

/* アクセスカウンター：画面右上に常に固定しない */
.access-counter-fixed {
    position: absolute; /* 画面に固定しない */
    top: 10px;
    right: 12px;
    background: rgba(255,255,255,0.94); /* 少し透け感を出す */
    padding: 8px 12px; /* コンパクト */
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* 影 */
    border: 1px solid rgba(0,0,0,0.08); /* 軽い境界 */
    z-index: 999; /* 最前面に表示 */
    font-size: 0.85rem; /* 小さめ */
    color: #6b6b6b; /* 落ち着いた色 */
    font-weight: 500;
    font-family: 'Quicksand', sans-serif;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    opacity: 0.98;
}

@media (max-width: 480px) {
    header {
        padding: 60px 2px 5px 2px;
    }
}

@media (max-width: 480px) {
  .access-counter-fixed {
    top: 5px;
    right: 8px;
    padding: 6px 8px;
    font-size: 0.75rem;
    gap: 4px;
  }
}

/* 数字をカウンターと同じフォント・色にして可読性を上げる */
.access-counter-fixed #access-counter {
    font-family: inherit;
    color: inherit; /* 親と同じ色 */
    font-weight: 700; /* 数字をやや強調 */
    font-size: 1rem; /* 少し大きめに */
    font-variant-numeric: tabular-nums; /* 等幅数字で安定した桁揃え */
    letter-spacing: 0.02em;
}

/* --- 曲のリンク --- */
.works-table a {
    color: #333;
    text-decoration: none;
}

.works-table a:hover {
    text-decoration: underline;
}



/* --- 曲名から探す --- */
.search-box-section {
    
    margin-top: 0.4em;
    text-align: center;
}

/* 見出し（曲名から探す）をボックス幅に合わせ左寄せ */
.section-title {
    max-width: 320px; /* .autocomplete-wrapper と同じ幅 */
    margin: 0.15em auto 0.25em; /* 上下の間を詰める */
    text-align: left;
    font-family: 'M PLUS Rounded 1c', 'Quicksand', sans-serif; /* 丸めの可愛いフォント */
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    color: #2F5F4E; /* 濃めで見やすい色に変更 */
    display: inline-block;
    padding: 6px 10px; /* ラベル風の余白 */
    border-radius: 8px;
    background: rgba(47,95,78,0.12); /* コントラストを強める薄い背景 */
    border: 1px solid rgba(47,95,78,0.12);
}

@media (max-width: 480px) {
    .section-title {
        max-width: 90%;
        font-size: 1rem;
        margin: 0.1em auto 0.2em;
    }
}


.search-box-wrapper {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
     max-width: 320px;   /* ★ 小さくしたポイント！ */
      margin: 0.5em auto;
}

.search-box-wrapper input {
    width: 70%;
    padding: 10px 15px;
    border: 2px solid #A4C3B2;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Quicksand', sans-serif;
}

.search-box-wrapper button {
    padding: 10px 20px;
    background: #A4C3B2;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
}

.search-box-wrapper button:hover {
    opacity: 0.9;
}

.search-result {
    margin-top: 15px;
    font-size: 1rem;
}

.autocomplete-wrapper {
    position: relative; /* 候補ボックスの基準にするため relative に */
    width: 100%;
    max-width: 320px;  /* 横幅を小さく調整（好みに応じて変更） */
    margin: 0.25em auto; /* 上の余白を小さくして見出しに近づける */
    text-align: center;
}

@media (max-width: 480px) {
    .autocomplete-wrapper {
        max-width: 90%;
        margin: 0.15em auto;
    }
}

.autocomplete-wrapper input {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #A4C3B2;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Quicksand', sans-serif;
}

@media (max-width: 480px) {
    .autocomplete-wrapper input {
        padding: 10px;
        font-size: 1rem;
    }
}

.suggestions-box {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: none; /* 線を消す */
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: none; /* 影も消す */
    z-index: 10;
}

@media (max-width: 480px) {
    .suggestions-box {
        max-height: 250px;
        border-radius: 0 0 8px 8px;
    }
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
}

.suggestion-item:hover {
    background: #EAF4F1;
}


.card {
    display: inline-block;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
}

.composer-card-image {
    width: 100%;
    max-width: 350px;  /* カードサイズ調整 */
    display: block;
    border-radius: 12px;
    transition: transform 0.2s ease;
    cursor: pointer;
}

@media (max-width: 480px) {
    .composer-card-image {
        max-width: 100%;
        border-radius: 10px;
    }
}

.card:hover .composer-card-image {
    transform: scale(1.03); /* ホバー時のふわっと拡大 */
}

.Flute-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
  text-align: center;
}

@media (max-width: 480px) {
    .Flute-icon {
        width: 60px;
        height: 60px;
    }
}


/* --- ここまで追加 --- */

/* ==================== バロック調デザイン統合 ==================== */

/* バロック調ページ用ルート */
.baroque-page {
    font-family: "Times New Roman", Georgia, serif;
    background: linear-gradient(135deg, #f8f1e5 0%, #e9dccb 100%);
    color: #333;
}

.baroque-page body {
    margin: 0;
    background: linear-gradient(135deg, #f8f1e5 0%, #e9dccb 100%);
}

/* バロック調ヘッダー */
.baroque-header {
    background: linear-gradient(135deg, #e0d4b8, #c8b093);
    padding: 40px 20px;
    text-align: center;
    border-bottom: 3px solid #5a3d21;
    position: relative;
}

.baroque-header h1 {
    font-family: Georgia, serif;
    font-size: 2rem;
    margin: 0;
    color: #5a3d21;
}

.baroque-header p {
    margin-top: 6px;
    color: #5a3d21;
    font-size: 1rem;
    font-style: italic;
}

/* バロック調コンテナ */
.baroque-container {
    max-width: 900px;
    margin: 40px auto;
    background: #fffdf5;
    padding: 35px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* バロック調見出し */
.baroque-h2 {
    font-family: Georgia, serif;
    font-size: 1.7rem;
    margin-top: 45px;
    border-left: 10px solid #a67c52;
    padding-left: 10px;
    color: #5a3d21;
}

.baroque-h3 {
    font-family: Georgia, serif;
    font-size: 1.3rem;
    margin-top: 30px;
    color: #5a3d21;
}

/* バロック調情報ボックス */
.baroque-spice-box {
    background: #fff4e8;
    border-left: 6px solid #ffb86c;
    padding: 18px 22px;
    margin: 25px 0;
    border-radius: 12px;
}

.baroque-spice-box p {
    margin: 10px 0;
    line-height: 1.7;
}

.baroque-spice-box strong {
    color: #4a5568;
}

/* バロック調情報ボックス（黄金色） */
.baroque-info-box {
    background: linear-gradient(135deg, #f0e68c 0%, #daa520 100%);
    border-left: 6px solid #daa520;
    padding: 18px 22px;
    margin: 25px 0;
    border-radius: 12px;
    box-shadow: inset 0 2px 4px rgba(218, 165, 32, 0.2);
}

/* バロック調テーブル */
.baroque-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.baroque-table th,
.baroque-table td {
    border: 1px solid #d4a574;
    padding: 12px;
    text-align: left;
    color: #333;
}

.baroque-table th {
    background: linear-gradient(135deg, #e0d4b8, #c8b093);
    font-weight: bold;
    color: #5a3d21;
}

.baroque-table tr:nth-child(even) {
    background: #faf8f3;
}

/* バロック調リスト */
.baroque-list li {
    margin-bottom: 12px;
    line-height: 1.7;
    color: #333;
}

/* バロック調リンク */
.baroque-link {
    color: #5a3d21;
    text-decoration: none;
    border-bottom: 2px solid #a67c52;
    transition: all 0.3s ease;
}

.baroque-link:hover {
    color: #a67c52;
    border-bottom: 2px solid #5a3d21;
}

/* ========================================================== */