/* ==============================
    会社情報パネル
    出力: <div class="company-info"> ... </div>
    ============================== */
.company-info {
    /* 変数を直接の値に置換 */
    background: #f9fafb; /* --c-card */
    color: #1a1a1a; /* --c-text */
    border: 1px solid #e5e7eb; /* --c-border */
    border-radius: 14px; /* --radius */
    padding: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,.06); /* --shadow */
    margin: 24px 0;
}

.company-info__ttl {
    margin: 0 0 12px;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;
    letter-spacing: .02em;
}

.company-info__list {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 10px 16px;
    margin: 0;
}

.company-info__list dt,
.company-info__list dd {
    margin: 0;
    padding: 10px 0;
    /* 変数を直接の値に置換 */
    border-bottom: 1px dashed #e5e7eb; /* --c-border */
}

.company-info__list dt {
    /* 変数を直接の値に置換 */
    color: #6b7280; /* --c-muted */
    font-weight: 600;
}

.company-info__list dd a[href^="tel:"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    /* 変数を直接の値に置換 */
    border: 1px solid #10b981; /* --c-accent-2 */
    color: #10b981; /* --c-accent-2 */
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    transition: transform .06s ease, background .2s ease, color .2s ease;
}
.company-info__list dd a[href^="tel:"]:hover {
    /* 変数を直接の値に置換 */
    background: #10b981; /* --c-accent-2 */
    color: #fff;
    transform: translateY(-1px);
}

/* モバイル対応 */
@media (max-width: 768px) {
    .company-info__list {
        grid-template-columns: 1fr;
    }
    .company-info__list dt {
        padding-bottom: 0;
        border-bottom: none;
    }
    .company-info__list dd {
        padding-top: 4px;
    }
}

/* ==============================
    お問い合わせフォーム（CF7）
    ============================== */
.p-r-contact {
    /* 変数を直接の値に置換 */
    background: #ffffff; /* --c-bg */
    border: 1px solid #e5e7eb; /* --c-border */
    border-radius: 14px; /* --radius */
    padding: clamp(16px, 3vw, 24px);
    box-shadow: 0 6px 20px rgba(0,0,0,.06); /* --shadow */
}

.p-r-contact p {
    /* 変数を直接の値に置換 */
    margin: 0 0 14px; /* --gap */
    line-height: 1.7;
}

/* ラベル風テキスト（見出し） */
.p-r-contact > *:not(.wpcf7-form) {
    /* 変数を直接の値に置換 */
    color: #1a1a1a; /* --c-text */
}

/* 共通入力UI */
.p-r-contact .wpcf7-form-control.wpcf7-text,
.p-r-contact .wpcf7-form-control.wpcf7-textarea,
.p-r-contact .wpcf7-form-control.wpcf7-select,
.p-r-contact input[type="text"],
.p-r-contact input[type="email"],
.p-r-contact input[type="tel"],
.p-r-contact textarea,
.p-r-contact select {
    width: 100%;
    box-sizing: border-box;
    /* 変数を直接の値に置換 */
    border: 1px solid #e5e7eb; /* --c-border */
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 16px;
    /* 変数を直接の値に置換 */
    color: #1a1a1a; /* --c-text */
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
    outline: none;
}
.p-r-contact textarea {
    min-height: 140px;
    resize: vertical;
}
.p-r-contact input:focus,
.p-r-contact textarea:focus,
.p-r-contact select:focus {
    /* 変数を直接の値に置換 */
    border-color: #2563eb; /* --c-accent */
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* プレースホルダ */
.p-r-contact ::placeholder {
    color: #9ca3af;
}

/* チェックボックス（use_label_element想定） */
.p-r-contact .wpcf7-list-item {
    display: block;
    margin: 6px 0;
}
.p-r-contact .wpcf7-list-item label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
    user-select: none;
}
.p-r-contact .wpcf7-list-item input[type="checkbox"] {
    margin-top: 3px;
}

/* 送信ボタン */
.p-r-contact input[type="submit"],
.p-r-contact .wpcf7-submit {
    appearance: none;
    border: none;
    border-radius: 999px;
    padding: 12px 22px;
    font-size: 16px;
    font-weight: 700;
    /* 変数を直接の値に置換 */
    background: #2563eb; /* --c-accent */
    color: #fff;
    cursor: pointer;
    transition: transform .06s ease, filter .2s ease, box-shadow .2s ease;
    box-shadow: 0 8px 18px rgba(37,99,235,.22);
}
.p-r-contact .wpcf7-submit:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}
.p-r-contact .wpcf7-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
    box-shadow: none;
}

/* スピナー（CF7標準）位置調整 */
.p-r-contact .wpcf7-spinner {
    margin-left: 12px;
}

/* 成功・エラー表示（CF7標準メッセージ） */
.p-r-contact .wpcf7-response-output {
    /* 変数を直接の値に置換 */
    margin: 20px 0 0; /* --gap-lg */
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 600;
}
.p-r-contact .wpcf7 form.sent .wpcf7-response-output {
    background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46;
}
.p-r-contact .wpcf7 form.failed .wpcf7-response-output,
.p-r-contact .wpcf7 form.aborted .wpcf7-response-output {
    background: #fef2f2; border: 1px solid #fecaca; color: #7f1d1d;
}
.p-r-contact .wpcf7-not-valid-tip {
    /* 変数を直接の値に置換 */
    color: #ef4444; /* --c-danger */
    font-weight: 600;
    margin-top: 6px;
}

/* 小見出しの余白最適化（あなたのプレーンテキスト見出しと入力の距離） */
.p-r-contact p + .wpcf7-form-control-wrap {
    margin-top: 6px;
}

/* 住所の3項目（任意で行間を詰める） */
.p-r-contact .addr-group p {
    margin-bottom: 10px;
}

/* スマホのフォーム余白 */
@media (max-width: 480px) {
    .p-r-contact { padding: 14px; }
    .p-r-contact .wpcf7-submit { width: 100%; }
}


/* 個人情報ボックスの見た目 */
.ath-privacybox{border:1px solid #ddd;border-radius:8px;background:#fff}
.ath-privacybox > summary{cursor:pointer;padding:10px 12px;font-weight:700;border-bottom:1px solid #eee;list-style:none}
.ath-privacybox[open] > summary{background:#f7f7f7}
.ath-privacybox__body{padding:12px}
.ath-privacybox__scroll{max-height:220px;overflow:auto;line-height:1.7}
.ath-privacycheck{margin:12px 0;font-weight:700}

/* テーマがチェックを隠す系でも表示されるように */
.wpcf7-form input[type="checkbox"]{appearance:auto;position:static;opacity:1;width:auto;height:auto;margin-right:.5em}
.wpcf7-list-item{display:block}

