/* --- Base Settings (既存) --- */
:root {
    --bg-black: #0a0a0a;
    --main-gold: #d4af37;
    --text-main: #e0e0e0;
    --text-sub: #999;
    --font-serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "MS PMincho", serif;
}

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-black);
    color: var(--text-main);
    font-family: var(--font-serif);
    margin: 0;
    line-height: 1.8;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* --- Section Title (既存) --- */
.section-title {
    text-align: center;
    font-size: 2rem;
    position: relative;
    margin-bottom: 60px;
    letter-spacing: 0.2em;
}

.section-title::before {
    content: attr(data-en);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--main-gold);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

/* --- Hearing Form Styles (新規追加分) --- */

#hearing {
    padding: 100px 0;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-message {
    text-align: center;
    margin-bottom: 50px;
}

.contact-message h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.contact-message p {
    font-size: 0.9rem;
    color: var(--text-sub);
}

.hearing-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 50px;
    border-radius: 15px;
}

.form-section {
    margin-bottom: 60px;
}

.form-section-title {
    color: var(--main-gold);
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 12px;
    margin-bottom: 30px;
}

.field {
    margin-bottom: 30px;
}

.field label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 12px;
}

.required-tag {
    font-size: 0.65rem;
    color: #ef4444;
    margin-left: 8px;
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 1px 4px;
    border-radius: 2px;
}

/* 入力要素のデザイン */
.hearing-form input[type="text"],
.hearing-form input[type="email"],
.hearing-form input[type="url"],
.hearing-form input[type="date"],
.hearing-form select,
.hearing-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 15px;
    color: var(--text-main);
    font-family: var(--font-serif);
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: all 0.4s ease;
}

.hearing-form input:focus, 
.hearing-form select:focus, 
.hearing-form textarea:focus {
    outline: none;
    border-color: var(--main-gold);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

/* チェックボックスグループ */
.form-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 8px;
}

.checkbox-item {
    font-size: 0.85rem;
    color: var(--text-sub);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.checkbox-item input {
    margin-right: 12px;
    width: 16px;
    height: 16px;
    accent-color: var(--main-gold);
}

/* 送信ボタン：既存の btn-sub-gold スタイルを想定 */
.btn-sub-gold {
    display: inline-block;
    width: 100%;
    padding: 20px;
    background: transparent;
    border: 1px solid var(--main-gold);
    color: var(--main-gold);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 0; /* デザインに合わせて調整 */
}

.btn-sub-gold:hover {
    background: var(--main-gold);
    color: var(--bg-black);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hearing-form {
        padding: 40px 20px;
    }
    .form-checkbox-group {
        grid-template-columns: 1fr;
    }
}

/* ラジオボタンもチェックボックスと同じスタイルにする */
.checkbox-item input[type="radio"] {
    margin-right: 12px;
    width: 16px;
    height: 16px;
    accent-color: var(--main-gold);
    cursor: pointer;
}

/* 選択されている項目のテキストを少し強調する（任意） */
.checkbox-item input:checked + span {
    color: var(--main-gold);
}

/* --- Option Accordion Styles --- */

.option-accordion {
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    transition: all 0.3s ease;
}

.option-accordion summary {
    padding: 15px 20px;
    cursor: pointer;
    color: var(--main-gold);
    font-size: 0.9rem;
    font-weight: bold;
    list-style: none; /* デフォルトの三角を消す */
    position: relative;
    transition: background 0.3s;
}

/* カスタムの三角マーク */
.option-accordion summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    transition: transform 0.3s;
}

.option-accordion[open] summary::after {
    transform: rotate(45deg); /* 開いた時に「×」っぽく回転 */
}

.option-accordion summary:hover {
    background: rgba(212, 175, 55, 0.1);
}

.option-content {
    padding: 0 20px 20px 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.option-note {
    font-size: 0.75rem;
    color: var(--text-sub);
    margin: 15px 0 10px;
}

/* ラジオボタンとチェックボックスの共通設定 */
.checkbox-item input[type="radio"],
.checkbox-item input[type="checkbox"] {
    margin-right: 12px;
    width: 16px;
    height: 16px;
    accent-color: var(--main-gold);
    cursor: pointer;
}

/* --- Option Accordion Full Version --- */

.option-accordion {
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    margin: 20px 0;
}

.option-accordion summary {
    padding: 18px 25px;
    cursor: pointer;
    color: var(--main-gold);
    font-size: 0.95rem;
    font-weight: bold;
    list-style: none;
    position: relative;
}

.option-accordion summary::after {
    content: '＋';
    position: absolute;
    right: 25px;
    transition: transform 0.3s;
}

.option-accordion[open] summary::after {
    transform: rotate(45deg);
}

.option-content {
    padding: 0 25px 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.option-category-title {
    font-size: 0.8rem;
    color: var(--main-gold);
    margin: 25px 0 12px;
    letter-spacing: 0.1em;
    display: block;
    border-left: 2px solid var(--main-gold);
    padding-left: 10px;
}

.option-note {
    font-size: 0.7rem;
    color: var(--text-sub);
    margin-top: 20px;
}

/* 項目が増えたので2カラムで見やすく調整 */
@media (min-width: 600px) {
    .option-content .form-checkbox-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
}

/* --- Option Accordion Custom (Advanced Version) --- */

.option-accordion {
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    margin: 25px 0;
    transition: border-color 0.3s ease;
}

.option-accordion[open] {
    border-color: var(--main-gold);
}

.option-accordion summary {
    padding: 20px 25px;
    cursor: pointer;
    color: var(--main-gold);
    font-size: 0.95rem;
    font-weight: bold;
    list-style: none;
    position: relative;
    user-select: none;
}

.option-accordion summary::-webkit-details-marker {
    display: none; /* iOS等のデフォルト矢印を消す */
}

.option-accordion summary::after {
    content: '＋';
    position: absolute;
    right: 25px;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.option-accordion[open] summary::after {
    transform: rotate(45deg);
}

.option-content {
    padding: 0 25px 40px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.option-category-title {
    font-size: 0.75rem;
    color: var(--main-gold);
    margin: 30px 0 15px;
    letter-spacing: 0.15em;
    display: block;
    border-left: 2px solid var(--main-gold);
    padding-left: 12px;
    opacity: 0.8;
}

/* 項目をレスポンシブなグリッドにする */
.option-content .form-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    background: transparent; /* アコーディオン内は背景なしでスッキリ */
    padding: 0;
}

.checkbox-item {
    padding: 8px 10px;
    border-radius: 4px;
    transition: background 0.2s;
}

.checkbox-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* 既存のチェックボックス/ラジオボタンの装飾を上書き */
.checkbox-item input {
    margin-right: 12px;
    cursor: pointer;
    accent-color: var(--main-gold);
}

@media (max-width: 600px) {
    .option-accordion summary {
        padding: 15px;
        font-size: 0.85rem;
    }
    .option-content {
        padding: 0 15px 25px;
    }
}

/* --- Option Accordion Styling --- */

.option-accordion {
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.02);
    margin: 25px 0;
    transition: all 0.3s ease;
}

.option-accordion[open] {
    border-color: var(--main-gold);
}

.option-accordion summary {
    padding: 18px 25px;
    cursor: pointer;
    color: var(--main-gold);
    font-size: 0.9rem;
    font-weight: bold;
    list-style: none;
    position: relative;
    user-select: none;
}

/* 独自の矢印アイコン */
.option-accordion summary::after {
    content: '＋';
    position: absolute;
    right: 25px;
    transition: transform 0.3s ease;
}

.option-accordion[open] summary::after {
    transform: rotate(45deg);
}

.option-content {
    padding: 0 25px 35px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.option-category-title {
    font-size: 0.75rem;
    color: var(--main-gold);
    margin: 25px 0 15px;
    letter-spacing: 0.1em;
    display: block;
    border-left: 2px solid var(--main-gold);
    padding-left: 10px;
    opacity: 0.8;
}

/* オプション内のレイアウト調整 */
.option-content .form-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
    background: transparent;
    padding: 0;
}

.checkbox-item {
    font-size: 0.85rem;
    padding: 5px 0;
    transition: color 0.2s;
}

.checkbox-item:hover {
    color: var(--main-gold);
}

.option-note {
    font-size: 0.7rem;
    color: var(--text-sub);
    line-height: 1.6;
    margin-top: 25px;
    border-top: 1px dotted rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

/* iOSブラウザ対策 */
.option-accordion summary::-webkit-details-marker {
    display: none;
}

/* --- Hearing Animation CSS --- */

#hearing {
    padding: 100px 0;
    background-color: var(--bg-black);
}

/* 表示されない問題を解決する設定 */
.reveal {
    opacity: 1; /* JSがなくても見えるように初期値は1 */
}

/* 浮かび上がるアニメーションの土台 */
.anim-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 画面内に入った時に発火 */
.reveal.active .anim-fade-up {
    opacity: 1;
    transform: translateY(0);
}

/* フォームのデザイン */
.hearing-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.15);
    padding: 60px 50px;
    border-radius: 15px;
}

.form-section-title {
    color: var(--main-gold);
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 15px;
    margin-bottom: 35px;
    font-family: var(--font-serif);
}

/* 入力欄のホバー・フォーカスアニメ */
input, select, textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 15px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--main-gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

/* アコーディオンのヌルっと開く演出 */
.option-accordion {
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin: 20px 0;
}

.option-accordion summary {
    padding: 20px;
    color: var(--main-gold);
    cursor: pointer;
    list-style: none;
    position: relative;
    font-weight: bold;
}

.option-accordion summary::after {
    content: '＋';
    position: absolute;
    right: 20px;
    transition: 0.3s;
}

.option-accordion[open] summary::after {
    transform: rotate(45deg);
}

.option-content {
    padding: 0 20px 30px;
    animation: fadeInDown 0.5s ease-out forwards;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.option-category-title {
    color: var(--main-gold);
    font-size: 0.75rem;
    margin: 25px 0 12px;
    border-left: 2px solid var(--main-gold);
    padding-left: 10px;
}

/* ボタンのキラリと光るエフェクト */
.btn-sub-gold.shine-effect {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 20px;
    background: transparent;
    border: 1px solid var(--main-gold);
    color: var(--main-gold);
    cursor: pointer;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    transition: 0.4s;
}

.btn-sub-gold.shine-effect::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.6s;
}

.btn-sub-gold.shine-effect:hover::before { left: 100%; }
.btn-sub-gold.shine-effect:hover {
    background: var(--main-gold);
    color: #000;
}

/* チェックボックス・ラジオボタン */
.form-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
}

.checkbox-item {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-item input {
    width: auto;
    margin-right: 10px;
    accent-color: var(--main-gold);
}

@media (max-width: 600px) {
    .hearing-form { padding: 40px 20px; }
    .form-checkbox-group { grid-template-columns: 1fr; }
}