/* =========================================================
   ページ全体の幅拡張（お問い合わせ専用レイアウト）
   ========================================================= */


.pricing,
.process {
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   各種フォームパーツ（復元・トンマナ調整）
   ========================================================= */
.form-group {
    margin-bottom: 1.5rem;
}

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

.required {
    color: #ff7e5f;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    background: rgba(255, 126, 95, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: middle;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff7e5f;
    box-shadow: 0 0 0 4px rgba(255, 126, 95, 0.15);
    background: #fff;
}

@media (max-width: 768px) {

    .form-group input,
    .form-group select,
    .form-group textarea {
        max-width: 100%;
    }
}

.contact-status-wrapper {
    margin: 1.5rem auto 2.5rem;
    padding: 12px 20px;
    background: var(--acc-muted);
    border-left: 5px solid var(--acc-hover);
    border-radius: 4px;
    width: fit-content;
    max-width: 100%;
    text-align: left;
    animation: fuwafuwa 2s ease-in-out infinite;
}


@keyframes fuwafuwa {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.contact-status-badge {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-floating {
    display: inline-block;
    color: var(--acc-link);
    font-weight: 800;
}

.contact-result-message {
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    animation: fadeIn 0.5s ease;
}

.contact-result-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.contact-result-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}


.contact-form-wrapper {
    margin-bottom: 3rem;
    max-width: 100%;
}

.template-note {
    text-align: center;
    margin-bottom: 2rem !important;
    color: #555;
    font-weight: bold;
}

.template-grid {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: 2rem;
    align-items: stretch;
    max-width: 100%;
    min-width: 0;
}

.form-right-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
    max-width: 100%;
}

/* メアド表示枠のスタイル (textarea風) */
.email-display-box {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}


#copy-email-btn {
    position: absolute;
    right: 10px;
}


#target-email {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    letter-spacing: 0.5px;
}

.email-note {
    margin-top: 0;
    font-size: 0.9rem;
    color: #555;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.copy-btn .material-symbols-rounded {
    color: #fff;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 126, 95, 0.3);
}

/* =========================================================
   コピー完了オーバーレイ（各要素の上に表示）
   ========================================================= */
.copy-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border-radius: inherit;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;

    /* 初期状態は非表示 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.copy-overlay p {
    color: #fff;
}

.copy-overlay.show {
    opacity: 1;
    visibility: visible;
}

.copy-overlay-content {
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.copy-overlay.show .copy-overlay-content {
    transform: scale(1);
}

.copy-check-icon {
    font-size: 3rem;
    color: #27ae60;
    margin-bottom: 10px;
}

#template-text-box {
    position: relative;
}

#copy-template-btn {
    position: absolute;
    top: 10px;
    right: 10px;
}

.overlay-msg-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin: 0 !important;
}

.form-actions-container {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.form-actions-container .form-actions-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    max-width: 800px;
}

/* 共通ボタンスタイル */
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 3vw, 15px) clamp(25px, 5vw, 40px);
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    color: white;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(255, 126, 95, 0.4);
}

.form-actions-flow .submit-btn {
    flex: 1;
    position: relative;
    padding: clamp(12px, 3vw, 15px) clamp(20px, 4vw, 30px);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 0.8rem;
    margin-right: 10px;
}

/* アクティブ状態（現在のステップ） */
.submit-btn.active {
    z-index: 2;
}

.submit-btn.active:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 126, 95, 0.5);
}

/* 完了状態 */
.submit-btn.completed {
    background: #eef2f3;
    color: #888;
    cursor: default;
    pointer-events: none;
    box-shadow: none;
}

.submit-btn.completed .step-num {
    background: #ccc;
    color: #fff;
}

/* 無効状態（まだ進めないステップ） */
.submit-btn.disabled {
    background: #f5f5f5;
    color: #bbb;
    cursor: default;
    pointer-events: none;
    border: 1px dashed #ddd;
    box-shadow: none;
}

.submit-btn.disabled .step-num {
    background: #ddd;
}

/* 送信ボタンの特有色 */
.submit-btn.send-btn.active {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.3);
}

.flow-arrow {
    color: #ccc;
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-variation-settings: 'wght' 700;
}

.back-action {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.back-btn {
    background: transparent;
    color: var(--acc-link);
    border: 1.5px solid var(--acc-color);
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.back-btn p {
    margin: 0;
}

.back-btn span {
    margin-top: 2px;
}

.back-btn:hover {
    background: var(--acc-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 175, 145, 0.4);
}

.back-btn:hover .material-symbols-rounded {
    color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 600px) {
    .form-actions-flow {
        flex-direction: column;
        gap: 0.5rem;
    }

    .flow-arrow {
        transform: rotate(90deg);
        padding: 5px 0;
    }

    .submit-btn {
        width: 100%;
        padding: 1rem;
    }
}



@media (max-width: 768px) {
    .template-grid {
        grid-template-columns: 1fr;
    }

    .email-box {
        flex-direction: column;
        padding: 20px;
        border-radius: 20px;
    }

    .form-right-column {
        gap: 1.5rem;
    }
}

/* 左右のエリア共通 */
.form-input-area,
.form-output-area {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    min-width: 0;
    max-width: 100%;
}

.form-input-area {
    padding: 2.5rem;
    overflow: hidden;
}

.form-output-area {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
}


.template-output-area {
    flex-grow: 1;
    /* テンプレート側だけ下まで広げる */
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.output-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

#output-template {
    width: 100%;
    flex-grow: 1;
    min-height: 300px;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    resize: none;
}

#output-template:focus {
    outline: none;
    border-color: #ff7e5f;
    box-shadow: 0 0 0 3px rgba(255, 126, 95, 0.1);
}

/* 既存の contact-form スタイル調整 */
.contact-form {
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   commission.css の統合部分（BGMご依頼・料金表・流れ等）
   ========================================================= */

.commission-hero {
    width: 100%;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    border: 6px solid rgb(255, 211, 200);
    box-shadow: 0 4px 30px rgba(255, 73, 27, 0.3);
}

.hero-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.hero-content h2::after {
    display: none;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.btn-primary {
    display: inline-block;
    padding: 16px 32px;
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    color: white !important;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 126, 95, 0.3);
}

.features {
    margin-bottom: 3rem;
}

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

.card {
    background: var(--surface-bg, rgba(255, 255, 255, 0.6));
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card .icon {
    font-size: 3rem;
    color: #ff7e5f;
    margin-bottom: 1rem;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 2rem;
    background: #ffffff;
    /* 完全な白にして同化を防ぐ */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* 影をつけて際立たせる */
    border: 1px solid rgba(255, 126, 95, 0.2);
}

tbody tr {
    transition: all 0.3s ease;
}

thead tr {
    background: linear-gradient(135deg, rgba(255, 126, 95, 0.1), rgba(254, 180, 123, 0.1));
}

th,
td {
    padding: 16px 20px;
    /* 余白を少し調整 */
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
    /* 文字サイズ調整 */
    vertical-align: middle;
}

th,
td:nth-child(1),
td:nth-child(2) {
    white-space: nowrap;
    /* 1行に収まるように改行を防ぐ */
}

th {
    /* ヘッダーを少し濃く */
    font-weight: bold;
    color: #333;
}

td:nth-child(2) {
    font-weight: 700;
    color: var(--primary-color, #ff7e5f);
    /* 金額部分を強調 */
    font-size: 1.05rem;
    /* 文字サイズ調整 */
}

.step-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.step-list li {
    background: rgba(255, 255, 255, 0.6);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border-left: 4px solid #ff7e5f;
}

.step-list h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.process-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.clickable-step {
    transition: all 0.3s ease;
    cursor: pointer;
}

.clickable-step:hover {
    background: rgba(255, 175, 145, 0.15);
    border-color: var(--acc-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 175, 145, 0.15);
}

.step-list p {
    margin: 0;
    color: #555;
}

/* 追加: spanタグ・インラインスタイル除去用の共通クラス */
.note-text {
    display: inline-block;
    font-size: 0.85em;
    color: var(--primary-color, #ff7e5f);
    margin: 0 8px;
    font-weight: normal;
}

table td span {
    display: block;
    font-size: 0.85em;
    color: #888;
    margin-top: 4px;
}

.warning-text {
    display: block;
    font-size: 0.9em;
    color: var(--primary-color, #ff7e5f);
    margin-top: 4px;
}

.info-box {
    margin: 25px 0;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    border-radius: 8px;
}

.info-box h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box p {
    margin: 0 0 0.5rem 0;
    color: #555;
}

.info-note-margin {
    margin-top: 8px !important;
}

.info-note-block {
    display: block;
    margin-left: 0;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* 備考セクション */
.process-notes {
    margin: 2.5rem 0;
}

.process-notes-title {
    margin-bottom: 1rem;
}

.process-notes-icon {
    vertical-align: middle;
    margin-right: 8px;
}

.info-box-first {
    margin-top: 0;
    /* 最初のボックスの上余白を消す */
}

/* =========================================================
   モバイル対応（#contact・#pricing-hero）
   ========================================================= */

/* #contact セクション */
@media (max-width: 768px) {

    #contact h2 {
        font-size: 1.5rem;
    }

    #contact p {
        font-size: 0.95rem;
    }

    .template-note {
        font-size: 0.95rem;
    }

    .form-input-area {
        padding: 1.5rem 1rem;
    }

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

    .form-group label {
        font-size: 0.95rem;
    }

    .email-display-box {
        overflow-x: scroll;
    }

    #target-email {
        padding-right: 8rem;
    }

    #copy-email-btn {
        position: fixed;
        right: 40px;
    }

    #output-template {
        min-height: 200px;
        font-size: 0.9rem;
    }

    .email-note {
        font-size: 0.85rem !important;
    }

    .copy-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* #pricing-hero セクション（料金表） */
@media (max-width: 768px) {
    #pricing-hero {
        padding: 2rem 1rem;
        border-width: 4px;
    }

    #pricing-hero h2 {
        font-size: 1.5rem;
        gap: 8px;
    }

    #pricing-hero p {
        font-size: 0.95rem;
        margin: 0 auto 1.5rem;
    }

    /* テーブルをスクロール可能にラップ */
    #pricing-hero table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
        margin-top: 1.5rem;
    }

    #pricing-hero table th,
    #pricing-hero table td {
        padding: 12px 16px;
        font-size: 0.9rem;
        text-align: left;
        min-width: 120px;
    }

    #pricing-hero table tbody tr {
        grid-template-columns: minmax(150px, 1fr) minmax(100px, auto) minmax(180px, 1fr);
    }

    #pricing-hero table td span {
        font-size: 0.8rem;
        margin-top: 3px;
    }

    th,
    td {
        white-space: nowrap;
    }
}

/* =========================================================
   ステップインジケーター (入力・確認・完了)
   ========================================================= */
.contact-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 3rem;
}

.contact-steps .step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #f0f0f0;
    color: #888;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: bold;
}

.contact-steps .step span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #ccc;
    color: #fff;
    border-radius: 50%;
    font-size: 0.8rem;
}

.contact-steps .step.active {
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    color: #fff;
    box-shadow: 0 4px 10px rgba(255, 126, 95, 0.3);
}

.contact-steps .step.active span {
    background: #fff;
    color: #ff7e5f;
}

.contact-steps .step-arrow {
    color: #ccc;
    display: flex;
    align-items: center;
}

@media (max-width: 600px) {
    .contact-steps {
        gap: 8px;
    }

    .contact-steps .step {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .contact-steps .step span {
        width: 20px;
        height: 20px;
    }
}

/* =========================================================
   確認画面・完了画面
   ========================================================= */
.confirm-wrapper {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.confirm-list {
    margin-bottom: 2rem;
}

.confirm-list dt {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
    padding-left: 10px;
    border-left: 4px solid #ff7e5f;
}

.confirm-list dd {
    margin: 0 0 1.5rem 0;
    padding: 1rem;
    background: #fdfdfd;
    border-radius: 8px;
    border: 1px solid #efefef;
    color: #555;
    line-height: 1.6;
}

/* ボタンアクション関連は .form-actions-container に集約したため削除 */

/* 送信完了画面 */
.contact-complete-wrapper {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.complete-icon {
    margin-bottom: 1.5rem;
}

.complete-icon .material-symbols-rounded {
    font-size: 5rem;
    color: #27ae60;
}

.contact-complete-wrapper h3 {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
}

.contact-complete-wrapper p {
    color: #666;
    line-height: 1.8;
}

#privacy_policy {
    margin-bottom: 8px;
}


@media (max-width: 600px) {
    .confirm-wrapper {
        padding: 1.5rem 1rem;
    }

    .form-actions {
        flex-direction: column-reverse;
        gap: 15px;
    }

    .back-btn,
    .submit-btn {
        width: 100%;
    }



    .contact-complete-wrapper h3 {
        font-size: 0.9rem;
    }

    #contact .contact-complete-wrapper p {
        text-align: left;
        font-size: 0.8rem;
    }
}

.privacy-consent-group {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed var(--card-border);
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    font-size: 0.95rem;
    color: var(--text-color);
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--acc-color);
}

.checkbox-wrapper label a {
    color: var(--acc-link);
    text-decoration: underline;
    font-weight: 600;
}