/* モダンリセットCSS */

/* 全要素にbox-sizing: border-boxを適用（パディングを含めた幅計算にする） */
*, *::before, *::after {
    box-sizing: border-box;
}

/* リストのスタイルをリセット（role="list"を持つものを除く） */
ul[role='list'], ol[role='list'] {
    list-style: none;
}

/* スムーズスクロール（ユーザー設定を尊重） */
html:focus-within {
    scroll-behavior: smooth;
}

/* bodyのデフォルト設定 */
body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
}

/* 画像をレスポンシブ対応にする */
img, picture {
    max-width: 100%;
    display: block;
    height: auto;
}

/* 入力フォームのフォントを親に合わせる */
input, button, textarea, select {
    font: inherit;
}

/* アニメーションを減らす設定をしている人への配慮 */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

html {
    font-size: 62.5%;
}

/* デフォルトの余白を削除 */
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul {
    margin: 0;
    padding: 0;
    font-size: 1.3rem;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 600;
    line-height: 1.4;
    color: #252525;
    background:#e9e9e9;
}
@media screen and (min-width:769px) {
    body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
        font-size: 1.5rem;
    }
}


.sp_area {
    display: block;
}

.pc_area {
    display: none;
}

@media screen and (min-width:769px) {
    .sp_area {
        display: none;
    }

    .pc_area {
        display: block;
    }
}

.responsive {
    width:100%;
    padding:0 15px;
}

@media screen and (min-width:769px) {
.responsive {
    width:740px;
    margin:0 auto;
    padding:0 15px;
}
}
@media screen and (min-width:1024px) {
.responsive {
    width:900px;
}
}

.page_title_wrap {
    text-align:center;
    padding:50px 0;
    background:#fff;
}
.page_wrap {
    background:#fff;
    padding:0 20px 20px 20px;
    margin-bottom:30px;
    border-bottom:3px solid #d9534f;
}
.thanks {
    background:#fff;
    padding:0 20px 20px 20px;
    display:flex;
    align-items:center;
}
.page_title_wrap h1 {
    font-size:2.0rem;
}
@media screen and (min-width:769px) {
.page_title_wrap h1 {
    font-size:2.5rem;
}
}
footer {
background:#666;
color:#FFF;
text-align:center;
padding:30px 0;
}

/* =================================================== */
/* CF7 確認画面付きフォーム テンプレート
/* =================================================== */

/* --- フォーム全体 --- */
.cf7-contact {
    margin: 0 auto;
}

/* --- 入力欄とラベル (PC表示) --- */
.wpcf7-form .form-row {
    display: block;
    margin:0 0 30px 0;
    border-radius:10px;
    border:solid 1px #868f96;
    background:#fff;
    padding:20px 20px;
}

.form-label {
    width: 100%;
    display:block;
    font-weight: bold;
    margin-bottom:15px;
}
.wpcf7-form-control-wrap {
    font-weight:initial;
}

.form-label.required::after {
    content: "必須";
    font-size: 0.8em;
    color: #fff;
    background-color: #d9534f;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
}

.form-row .wpcf7-form-control-wrap,
.form-row .input-wrapper {
    width:100%;
    display:block;
}

.input-text,
.input-textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1.5rem;
    box-sizing: border-box;
}

/*チェックボックスを縦型に変更*/
.wpcf7-checkbox.js-checkbox {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}
.wpcf7-checkbox.js-checkbox .wpcf7-list-item {
    margin: 0;
}
.wpcf7-checkbox.js-checkbox .wpcf7-list-item label {
    display: flex;
    align-items: flex-start; /* チェックボックスを1行目の上端に揃える */
}
.wpcf7-checkbox.js-checkbox input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 4px;
    margin-right:10px;
}
.wpcf7-checkbox.js-checkbox .wpcf7-list-item-label {
    line-height: 1.5; 
}
.js-checkbox .wpcf7-free-text {
margin-left:5px;
width: 75%;
}
/*ラジオボタンを縦型に変更*/
.wpcf7-radio.js-radio {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}
.wpcf7-radio.js-radio .wpcf7-list-item {
    margin: 0; 
    display: flex;
    align-items: center;
}
.wpcf7-radio.js-radio input[type="radio"] {
    margin-right: 8px; 
}

/* --- バリデーション・エラー表示 --- */
.error-message {
    display: block;
    color: #d9534f;
    font-size: 0.9em;
    font-weight: bold;
    margin-top: 0.5rem;
}

.input-text.is-error {
    border-color: #d9534f !important;
    background-color: #fff8f8;
}

/* --- 確認画面表示 
.form-input-area[aria-hidden="true"] {
    display: none;

.confirmation-view {
    display: none;
}

.confirmation-view[aria-hidden="false"] {
    display: block;
    margin-bottom: 30px;
}
}

.confirmation-view ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.confirmation-view li {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.confirmation-view .conf-label {
    width: 240px;
    margin-right: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.confirmation-view .conf-value {
    flex: 1;
    min-width: 0;
    white-space: pre-wrap;
    word-break: break-all;
}
    --- */

/* --- ボタン --- */
.js-btn-wrap button,
.js-btn-wrap input[type="submit"] {
    display: block;
    margin: 2rem auto 0;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.js-btn-wrap {
    margin-bottom:20px;
}
.js-confirm-btn {
    background-color: #007bff;
}

.js-confirm-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.js-secondstep {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.js-secondstep button, .js-secondstep input[type="submit"] {
    margin-top: 0;
    flex: 1;
    max-width: 240px;
}

.js-return-btn {
    background-color: #6c757d;
}

.wpcf7-form [type="submit"] {
    background-color: #28a745;
}

.js-btn-wrap {
    display: grid;
    place-items: center;
}

.js-btn-wrap>* {
    grid-area: 1/1;
}

.js-btn-wrap>[aria-hidden="true"] {
    visibility: hidden;
}

/* --- レスポンシブ (スマホ表示) --- */
@media (max-width: 768px) {
    .wpcf7-form .form-row, .confirmation-view li {
        flex-direction: column;
        align-items: stretch;
    }

    .form-label, .confirmation-view .conf-label {
        width: 100%;
        margin: 0 0 0.5rem 0;
    }

    .js-secondstep {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .flex-count {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }

    .flex-count .wpcf7-form-control-wrap {
        display: inline-block;
        margin: 0 !important;
        width: auto;
    }

    .flex-count input[type="number"] {
        width: 80px;
        text-align: center;
        margin: 0 5px;
        padding: 5px;
    }
}

.wpcf7-response-output {
    text-align:center;
    padding:15px 0;
}

/* --- 修正ボタン・送信ボタンを横並び--- */

.button_flex {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap
}

.button_flex div {
    width: calc((100% - 15px)/2)
}

.button_flex input {
    width: calc((100% - 15px)/2)
}

/* --- スピナーをカラム落ちさせる--- */
.wpcf7-spinner {
    display: none;
}

/* =================================================== */
/* サンクスページ用スタイル
/* =================================================== */

.thanks-section {
    padding: 40px 20px;
    font-family: sans-serif;
    color: #333;
    line-height: 1.6;
}

.thanks-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* --- 見出しエリア --- */
.thanks-heading h2 {
    font-size: 1.8rem;
    color: #28a745;
    /* 成功イメージの緑（サイトカラーに合わせて変更可） */
    margin-bottom: 20px;
}

.thanks-lead {
    font-size: 1.5rem;
    margin-bottom: 40px;
}

/* --- 今後の流れボックス --- */
.thanks-flow-box {
    background-color: #f9f9f9;
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    text-align: left;
    /* ボックス内は左寄せ */
}

.thanks-flow-box h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 10px;
    display: block;
}

.flow-content {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.flow-content p {
    margin-bottom: 10px;
}

/* 注意書き（赤字） */
.flow-attention {
    font-size: 0.95rem;
    color: #d9534f;
    /* エラー/注意色の赤 */
    background-color: #fff;
    padding: 15px;
    border-radius: 4px;
}

.flow-attention p {
    margin-bottom: 5px;
    text-indent: -1em;
    padding-left: 1em;
}

/* --- 連絡先エリア --- */
.thanks-contact {
    margin-bottom: 40px;
}

.contact-tel {
    font-size: 1.4rem;
    font-weight: bold;
    margin-top: 10px;
}

.contact-tel a {
    text-decoration: none;
    color: #333;
}

/* --- 結び --- */
.thanks-closing {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 40px;
}

/* --- ボタン --- */
.thanks-btn-wrap {
    margin-top: 20px;
}

.btn-top {
    display: inline-block;
    background-color: #6c757d;
    color: #fff;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    transition: opacity 0.3s;
}

.btn-top:hover {
    opacity: 0.8;
}

/* スマホ用改行制御 */
.sp-only {
    display: none;
}

@media (max-width: 768px) {
    .thanks-heading h2 {
        font-size: 1.5rem;
    }

    .thanks-flow-box {
        padding: 20px;
    }

    .sp-only {
        display: inline;
    }

    .contact-tel {
        font-size: 1.2rem;
    }
}