/* ==========================================
   お問い合わせページ - 個人情報保護方針
   ========================================== */

/* コンテナ */
.contact-privacy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px 120px;
}

/* ページタイトル */
.contact-privacy-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
}

/* イントロテキスト */
.contact-privacy-intro {
    font-size: clamp(0.9375rem, 1vw, 1rem);
    line-height: 1.8;
    color: #333;
    text-align: left;
    margin-bottom: 40px;
}

/* 個人情報保護方針ボックス */
.privacy-notice-box {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 60px;
}

/* 個人情報保護方針タイトル（テキストボックス内） */
.privacy-notice-title {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
}

/* 個人情報保護方針コンテンツ */
.privacy-notice-content {
    padding: 40px 30px;
    max-height: 500px;
    overflow-y: auto;
    font-size: clamp(0.875rem, 1vw, 0.9375rem);
    line-height: 1.9;
    color: #333;
}

/* スクロールバーのスタイリング（Webkit系ブラウザ） */
.privacy-notice-content::-webkit-scrollbar {
    width: 8px;
}

.privacy-notice-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.privacy-notice-content::-webkit-scrollbar-thumb {
    background: #1e3a8a;
    border-radius: 4px;
}

.privacy-notice-content::-webkit-scrollbar-thumb:hover {
    background: #162d6b;
}

/* コンテンツ内の段落 */
.privacy-notice-content p {
    margin-bottom: 20px;
    font-size: inherit;
    line-height: inherit;
}

.privacy-notice-content p:last-child {
    margin-bottom: 0;
}

/* コンテンツ内の見出し */
.privacy-notice-content h3 {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    font-weight: 700;
    color: #1e3a8a;
    margin-top: 30px;
    margin-bottom: 15px;
}

.privacy-notice-content h3:first-child {
    margin-top: 0;
}

/* コンテンツ内のリスト */
.privacy-notice-content ul {
    margin: 15px 0 20px 0;
    padding-left: 0;
    list-style: none;
}

.privacy-notice-content ul li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 10px;
}

.privacy-notice-content ul li::before {
    content: '（' counter(list-item) '）';
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 500;
}

/* ネストされたリスト */
.privacy-notice-content ul ul {
    margin: 10px 0;
    padding-left: 1.5em;
}

.privacy-notice-content ul ul li::before {
    content: '・';
    font-weight: 400;
}

/* リンク */
.privacy-notice-content a {
    color: #1e3a8a;
    text-decoration: underline;
    word-break: break-all;
}

.privacy-notice-content a:hover {
    opacity: 0.7;
}

/* フッターテキスト */
.privacy-notice-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

/* ボタンエリア */
.privacy-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* 共通ボタンスタイル */
.btn-privacy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 280px;
    padding: 10px 30px;
    font-size: clamp(0.9375rem, 1vw, 1rem);
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    border: none;
    position: relative;
}

.btn-privacy span {
    position: relative;
}

/* 矢印アイコン（白丸背景） */
.btn-privacy::after {
    content: '';
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

/* 矢印の実装 */
.btn-privacy::before {
    content: '›';
    position: absolute;
    top: 0;
    right: 36px;
    font-size: 24px;
    font-weight: 700;
    z-index: 1;
    transition: all 0.3s ease;
}

/* 同意しないボタン */
.btn-privacy-decline {
    background: #333;
    color: #fff;
}

.btn-privacy-decline::before {
    color: #333;
}

.btn-privacy-decline:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 同意するボタン */
.btn-privacy-agree {
    background: #005095;
    color: #fff;
}

.btn-privacy-agree::before {
    color: #005095;
}

.btn-privacy-agree:hover {
    background: #003d73;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 80, 149, 0.3);
}

/* ==========================================
   レスポンシブ対応
   ========================================== */

/* タブレット（768px以下） */
@media screen and (max-width: 768px) {
    .contact-privacy-container {
        padding: 60px 16px 80px;
    }

    .contact-privacy-title {
        margin-bottom: 30px;
    }

    .contact-privacy-intro {
        margin-bottom: 30px;
    }

    .privacy-notice-box {
        margin-bottom: 40px;
    }

    .privacy-notice-title {
        padding: 16px 20px;
    }

    .privacy-notice-content {
        padding: 30px 20px;
        max-height: 400px;
    }

    .privacy-notice-content h3 {
        margin-top: 25px;
        margin-bottom: 12px;
    }

    .privacy-buttons {
        gap: 20px;
    }

    .btn-privacy {
        min-width: 240px;
        padding: 16px 24px;
    }

    .btn-privacy::after {
        width: 28px;
        height: 28px;
    }

    .btn-privacy::before {
        right: 24px;
        font-size: 22px;
    }
}

/* スマートフォン（480px以下） */
@media screen and (max-width: 480px) {
    .contact-privacy-container {
        padding: 40px 16px 60px;
    }

    .contact-privacy-title {
        margin-bottom: 24px;
    }

    .contact-privacy-intro {
        margin-bottom: 24px;
    }

    .privacy-notice-box {
        margin-bottom: 32px;
        border-width: 1px;
    }

    .privacy-notice-title {
        padding: 14px 16px;
    }

    .privacy-notice-content {
        padding: 24px 16px;
        max-height: 350px;
    }

    .privacy-notice-content h3 {
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .privacy-notice-content ul li {
        padding-left: 1.2em;
        margin-bottom: 8px;
    }

    .privacy-buttons {
        flex-direction: column;
        gap: 16px;
    }

    .btn-privacy {
        width: 100%;
        min-width: auto;
        padding: 14px 20px;
    }

    .btn-privacy::after {
        width: 26px;
        height: 26px;
    }

    .btn-privacy::before {
        right: 20px;
        font-size: 20px;
    }
}

/* ==========================================
   お問い合わせフォームページ
   ========================================== */

/* フォームコンテナ */
.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px 100px;
}

/* イントロテキスト */
.contact-form-intro {
    margin-bottom: 50px;
}

.contact-form-intro p {
    font-size: clamp(0.875rem, 1vw, 0.9375rem);
    line-height: 1.9;
    color: #333;
    margin-bottom: 12px;
}

.contact-form-intro p:last-child {
    margin-bottom: 0;
}

.text-required {
    color: #e63946;
    font-weight: 600;
}

.text-required-mark {
    display: inline-block;
    background: #e63946;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 4px;
}

.text-note {
    font-size: 0.875rem;
    color: #666;
}

/* ステップインジケーター */
.form-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    margin-bottom: 60px;
    position: relative;
}

.form-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.form-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.form-step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.form-step-label {
    font-size: 0.875rem;
    color: #9ca3af;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* アクティブステップ */
.form-step-active .form-step-number {
    background: #333;
    color: #fff;
}

.form-step-active .form-step-label {
    color: #333;
    font-weight: 600;
}

/* セクションタイトル */
.form-section-title {
    text-align: center;
    margin-bottom: 40px;
}

.form-section-title h2 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    color: #333;
    position: relative;
    display: inline-block;
}

/* フォーム */
.contact-form {
    background: #fff;
}

/* フォームグループ */
.form-group {
    margin-bottom: 35px;
}

/* ラベル */
.form-label {
    display: block;
    font-size: clamp(0.9375rem, 1vw, 1rem);
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

/* 必須マーク */
.form-required {
    display: inline-block;
    background: #e63946;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 8px;
}

/* 任意マーク */
.form-optional {
    display: inline-block;
    color: #e63946;
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: 4px;
}

/* テキスト入力 */
.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: clamp(0.9375rem, 1vw, 1rem);
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #005095;
    background: #fff;
}

/* テキストエリア */
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: clamp(0.9375rem, 1vw, 1rem);
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #f9fafb;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: #005095;
    background: #fff;
}

.form-textarea-large {
    min-height: 180px;
}

/* セレクトボックス */
.form-select {
    width: 100%;
    padding: 14px 16px;
    font-size: clamp(0.9375rem, 1vw, 1rem);
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 45px;
}

.form-select:focus {
    outline: none;
    border-color: #005095;
    background-color: #fff;
}

/* ラジオボタングループ */
.form-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: clamp(0.9375rem, 1vw, 1rem);
}

.form-radio input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #005095;
}

.form-radio-label {
    color: #333;
}

/* 送信ボタン */
.form-submit {
    text-align: center;
    margin-top: 60px;
}

.btn-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 320px;
    padding: 16px 50px;
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    font-weight: 600;
    color: #fff;
    background: #005095;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.btn-form-submit::after {
    content: '';
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-form-submit::before {
    content: '›';
    position: absolute;
    right: 50px;
    font-size: 28px;
    font-weight: 700;
    color: #005095;
    z-index: 1;
}

.btn-form-submit:hover {
    background: #003d73;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 80, 149, 0.3);
}

/* ==========================================
   レスポンシブ対応 - フォーム
   ========================================== */

/* タブレット（768px以下） */
@media screen and (max-width: 768px) {
    .contact-form-container {
        padding: 40px 16px 80px;
    }

    .contact-form-intro {
        margin-bottom: 40px;
    }

    .form-steps {
        gap: 50px;
        margin-bottom: 50px;
    }

    .form-steps::before {
        width: 280px;
    }

    .form-step-number {
        width: 40px;
        height: 40px;
        font-size: 0.9375rem;
    }

    .form-section-title {
        margin-bottom: 30px;
    }

    .form-group {
        margin-bottom: 28px;
    }

    .form-submit {
        margin-top: 50px;
    }

    .btn-form-submit {
        min-width: 280px;
        padding: 14px 40px;
    }

    .btn-form-submit::before {
        right: 40px;
        font-size: 24px;
    }
}

/* スマートフォン（480px以下） */
@media screen and (max-width: 480px) {
    .contact-form-container {
        padding: 30px 16px 60px;
    }

    .contact-form-intro {
        margin-bottom: 30px;
    }

    .form-steps {
        gap: 30px;
        margin-bottom: 40px;
    }

    .form-steps::before {
        width: 200px;
    }

    .form-step-number {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }

    .form-step-label {
        font-size: 0.8125rem;
    }

    .form-section-title {
        margin-bottom: 24px;
    }

    .form-group {
        margin-bottom: 24px;
    }

    .form-input,
    .form-textarea,
    .form-select {
        padding: 12px 14px;
    }

    .form-submit {
        margin-top: 40px;
    }

    .btn-form-submit {
        width: 100%;
        min-width: auto;
        padding: 14px 30px;
    }

    .btn-form-submit::after {
        width: 20px;
        height: 20px;
    }

    .btn-form-submit::before {
        right: 30px;
        font-size: 22px;
    }
}

/* ==========================================
   確認画面
   ========================================== */

/* 確認内容ボックス */
.confirm-content {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 60px;
}

/* 確認行 */
.confirm-row {
    display: flex;
    padding: 24px 30px;
    border-bottom: 1px solid #e5e7eb;
}

.confirm-row:last-child {
    border-bottom: none;
}

/* ラベル */
.confirm-label {
    width: 220px;
    font-size: clamp(0.9375rem, 1vw, 1rem);
    font-weight: 600;
    color: #333;
    flex-shrink: 0;
}

/* 値 */
.confirm-value {
    flex: 1;
    font-size: clamp(0.9375rem, 1vw, 1rem);
    color: #666;
    line-height: 1.8;
    word-break: break-all;
}

/* 複数行の値 */
.confirm-value-multiline {
    white-space: pre-wrap;
}

/* 確認ボタンエリア */
.confirm-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* 共通ボタンスタイル */
.btn-confirm {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 280px;
    padding: 10px 30px;
    font-size: clamp(0.9375rem, 1vw, 1rem);
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    border: none;
    position: relative;
}

.btn-confirm span {
    position: relative;
}

/* 矢印アイコン（白丸背景） */
.btn-confirm::after {
    content: '';
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

/* 矢印の実装 */
.btn-confirm::before {
    content: '›';
    position: absolute;
    top: 0;
    right: 36px;
    font-size: 24px;
    font-weight: 700;
    z-index: 1;
    transition: all 0.3s ease;
}

/* 戻るボタン */
.btn-confirm-back {
    background: #333;
    color: #fff;
}

.btn-confirm-back::before {
    color: #333;
}

.btn-confirm-back:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 送信ボタン */
.btn-confirm-submit {
    background: #005095;
    color: #fff;
}

.btn-confirm-submit::before {
    color: #005095;
}

.btn-confirm-submit:hover {
    background: #003d73;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 80, 149, 0.3);
}

/* ==========================================
   レスポンシブ対応 - 確認画面
   ========================================== */

/* タブレット（768px以下） */
@media screen and (max-width: 768px) {
    .confirm-content {
        margin-bottom: 50px;
    }

    .confirm-row {
        flex-direction: column;
        padding: 20px 24px;
    }

    .confirm-label {
        width: 100%;
        margin-bottom: 8px;
    }

    .confirm-buttons {
        gap: 20px;
    }

    .btn-confirm {
        min-width: 240px;
        padding: 10px 24px;
    }

    .btn-confirm::before {
        right: 30px;
    }
}

/* スマートフォン（480px以下） */
@media screen and (max-width: 480px) {
    .confirm-content {
        margin-bottom: 40px;
        border-radius: 4px;
    }

    .confirm-row {
        padding: 16px 20px;
    }

    .confirm-label {
        font-size: 0.9375rem;
        margin-bottom: 6px;
    }

    .confirm-value {
        font-size: 0.9375rem;
    }

    .confirm-buttons {
        flex-direction: column;
        gap: 16px;
    }

    .btn-confirm {
        width: 100%;
        min-width: auto;
        padding: 10px 20px;
    }

    .btn-confirm::after {
        width: 18px;
        height: 18px;
    }

    .btn-confirm::before {
        right: 26px;
        font-size: 22px;
    }
}

/* ==========================================
   送信完了画面 (Thanks Page)
   ========================================== */

/* コンテナ設定 */
.contact-thanks-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 20px 140px;
    text-align: center;
}

/* タイトルエリア */
.contact-thanks-header {
    margin-bottom: 60px;
}

.contact-thanks-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    /* 24px - 32px */
    font-weight: 700;
    color: #333;
    /* 画像に合わせて濃いグレー〜黒 */
    margin-bottom: 20px;
    line-height: 1.4;
}

.contact-thanks-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    /* 20px - 28px */
    font-weight: 700;
    color: #333;
    line-height: 1.4;
}

/* 本文エリア */
.contact-thanks-body {
    margin-bottom: 80px;
}

.contact-thanks-body p {
    font-size: clamp(0.875rem, 1vw, 1rem);
    /* 14px - 16px */
    line-height: 2.0;
    color: #333;
    margin-bottom: 30px;
}

.contact-thanks-body p:last-child {
    margin-bottom: 0;
}

/* ボタンエリア */
.contact-thanks-btn {
    display: flex;
    justify-content: center;
}

.btn-thanks-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 320px;
    padding: 18px 20px;
    background-color: #000;
    /* 画像に合わせた黒背景 */
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    /* 画像に合わせた角丸 */
    transition: all 0.3s ease;
}

.btn-thanks-top:hover {
    background-color: #333;
    opacity: 0.9;
    transform: translateY(-2px);
}

/* スマホ用改行制御クラス */
@media screen and (max-width: 768px) {
    .u-hidden-sp {
        display: none;
    }

    .contact-thanks-container {
        padding: 60px 16px 100px;
    }

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

    .contact-thanks-body {
        margin-bottom: 50px;
    }

    .btn-thanks-top {
        width: 100%;
        max-width: 320px;
    }
}