/* ==========================================================================
   Page: Contact (お問い合わせ)
   ========================================================================== */

/* Utility
   -------------------------------------------------------------------------- */
.u-color-alert { color: var(--color-alert); }
.u-text-sm { font-size: 13px; color: var(--color-text-light); }
.u-mb-40 { margin-bottom: 40px; }

/* Phone Section
   -------------------------------------------------------------------------- */
.page-contact .contact-intro {
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
}
.page-contact .contact-intro__text {
    margin-bottom: 40px;
}
.page-contact .phone-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 768px) {
    .page-contact .phone-grid { grid-template-columns: 1fr; }
}

.page-contact .phone-card {
    background-color: #f8fafc;
    border: 1px solid var(--color-border);
    padding: 30px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.page-contact .phone-card__area {
    font-size: 12px;
    color: var(--color-text-light);
    margin-bottom: 5px;
}
.page-contact .phone-card__name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-brand-dark);
}
.page-contact .phone-card__link {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-brand);
    font-family: monospace; /* 数字を見やすく */
    line-height: 1;
}
.page-contact .phone-card__link:hover {
    color: var(--color-brand-dark);
    text-decoration: none;
    transform: scale(1.05);
}

/* Download Section
   -------------------------------------------------------------------------- */
.page-contact .download-block {
    background-color: var(--color-white);
    border: 2px solid var(--color-brand-light);
    border-radius: 12px;
    padding: 30px;
    margin: 0 auto 80px;
    max-width: 900px;
    display: flex;
    align-items: center;
    gap: 30px;
}
@media (max-width: 768px) {
    .page-contact .download-block { flex-direction: column; text-align: center; gap: 20px; }
}

.page-contact .download-block__icon {
    font-size: 40px;
    color: var(--color-brand);
    background: #f0f9ff;
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.page-contact .download-block__content {
    flex: 1;
}
.page-contact .download-block__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1e293b;
}
.page-contact .download-block__text {
    font-size: 14px;
    color: var(--color-text-light);
}

/* Form Container
   -------------------------------------------------------------------------- */
.page-contact .form-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Form Row (DL) */
.page-contact .form-row {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #f1f5f9;
    padding: 24px 0;
}
.page-contact .form-row:first-child { border-top: 1px solid #f1f5f9; }
@media (max-width: 768px) {
    .page-contact .form-row { display: block; padding: 20px 0; }
}

/* Form Label (DT) */
.page-contact .form-row__label {
    width: 240px;
    flex-shrink: 0;
    padding-right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    padding-top: 8px; /* 入力欄との高さ合わせ */
}
@media (max-width: 768px) {
    .page-contact .form-row__label { width: 100%; margin-bottom: 10px; padding-right: 0; }
}

/* Required Badge */
.page-contact .form-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    color: white;
    font-weight: 700;
    line-height: 1.4;
}
.page-contact .form-badge--required { background-color: var(--color-alert); }
.page-contact .form-badge--any { background-color: #94a3b8; }

/* Form Input (DD) */
.page-contact .form-row__input {
    flex: 1;
    width: 100%; /* SP対応 */
}

/* Input Styles */
.page-contact input[type="text"],
.page-contact input[type="email"],
.page-contact input[type="tel"],
.page-contact textarea,
.page-contact select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 16px;
    background-color: #f8fafc;
    transition: var(--transition-base);
    font-family: inherit;
    appearance: none;
}
.page-contact textarea { resize: vertical; }

.page-contact input:focus,
.page-contact textarea:focus,
.page-contact select:focus {
    outline: none;
    border-color: var(--color-brand);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Radio Group */
.page-contact .radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 20px;
    padding-top: 8px;
}
.page-contact .radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.page-contact .radio-group input[type="radio"] {
    width: auto;
    margin: 0;
}

/* Select Wrap (Arrow) */
.page-contact .select-wrap {
    position: relative;
}
.page-contact .select-wrap::after {
    content: '\f078'; /* FontAwesome Chevron Down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-light);
    pointer-events: none;
    font-size: 12px;
}

/* Privacy Check */
.page-contact .privacy-check {
    margin: 40px 0;
    text-align: center;
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
}
.page-contact .privacy-check__link {
    font-size: 14px;
    margin-bottom: 15px;
}
.page-contact .privacy-check__link a {
    color: var(--color-brand);
    text-decoration: underline;
}
.page-contact .privacy-check__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;
}
.page-contact .privacy-check__label input {
    transform: scale(1.2);
}

/* Submit Button */
.page-contact .form-submit {
    text-align: center;
    margin-top: 40px;
}
.page-contact .form-submit input[type="submit"] {
    /* CF7のsubmitボタン用スタイル */
    background-color: var(--color-brand);
    color: white;
    border: none;
    padding: 16px 60px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}
.page-contact .form-submit input[type="submit"]:hover {
    background-color: var(--color-brand-dark);
    transform: translateY(-2px);
}


/* 確認画面用
   -------------------------------------------------------------------------- */

/* 確認画面全体のコンテナ */
#wpcf7cpcnf {
}

/* テーブル全体のスタイル */
#wpcf7cpcnf table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #bae6fd; /* 少し濃いめの水色 */
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 25px;
}

/* テーブルのヘッダー（項目名） */
#wpcf7cpcnf table th {
    background-color: #e0f2fe; /* ご指定のカラー */
    color: #0369a1; /* 濃い青色で文字を読みやすく */
    padding: 15px;
    font-weight: 600;
    text-align: left;
    border-bottom: 1px solid #bae6fd;
    width: 30%; /* 項目名の幅を固定して見やすく */
}

/* テーブルのデータ（入力内容） */
#wpcf7cpcnf table td {
    background-color: #fff;
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    line-height: 1.6;
}

/* 最後の行のボーダーを消す */
#wpcf7cpcnf table tr:last-child th,
#wpcf7cpcnf table tr:last-child td {
    border-bottom: none;
}

.wpcf7cp-btns{
    text-align: center;
}

/* ボタンエリアのレイアウト */
.confirm-only-area {
    display: flex;
    gap: 15px;
    justify-content: center; /* 中央寄せ */
    text-align: center;
}

/* ボタン共通設定（リセットと基本形） */
#wpcf7cpcnf button,
.wpcf7-form-control.wpcf7-back,
.wpcf7-form-control.wpcf7-submit {
    padding: 12px 30px;
    border-radius: 50px; /* 丸みをつけてモダンに */
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

/* 戻るボタンのデザイン */
.wpcf7-form-control.wpcf7-back {
    background-color: #f1f5f9;
    color: #64748b;
}

.wpcf7-form-control.wpcf7-back:hover {
    background-color: #e2e8f0;
}

/* 送信ボタン（プライマリー）のデザイン */
.wpcf7-form-control.wpcf7-submit {
    background-color: #0ea5e9; /* 鮮やかな青 */
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.2);
}

.wpcf7-form-control.wpcf7-submit:hover {
    background-color: #0284c7;
    transform: translateY(-1px); /* 少し浮き上がる演出 */
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.3);
}

.page-contact fieldset{
    border: none;
}

.tel_annai{
    font-size: 0.8rem;
}