@charset "UTF-8";
/* ============================================================
   style.css — 基盤スタイル（触らない側）
   案件ごとの調整は custom.css で行う

   記述ルール
   1. リセット → 要素 → 共通部品 → ページ部品の順に記述
   2. 色・背景・影は custom.css のCSS変数で管理
   3. セレクタはクラスを基本とし、IDはページ固有要素だけに使用
   4. 同じ詳細度では、広い画面幅 → 狭い画面幅の順に記述
   5. !important は使用しない

   ブレイクポイント
   SP             780px以下
   タブレット     781px〜1080px
   PC             1081px以上
   ワイド調整     1400px以下
   ============================================================ */


/* ========================= リセット ========================= */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

* {
    box-sizing: border-box;
}

body {
    line-height: 1;
    padding-top: 0;
}
ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

a {
    color: #000;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
    pointer-events: none;
    -webkit-user-drag: none;
}


/* ========================= 基本スタイル ========================= */

body img {
    width: 100%;
    display: block;
    margin: 0 auto;
}

.grecaptcha-badge {
    visibility: hidden;
}

picture {
    line-height: 0;
}

p {
    font-size: 0.9rem;
}

.ps-r {
    position: relative;
}

.inner {
    max-width: calc(1280px + 2%);
}


/* ========================= ヘッダー（構造） ========================= */

header {
    width: 100%;
    z-index: 9999;
    top: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;
}

#header {
    background-color: var(--header-color-bg);
    min-height: 60px;
    max-height: 100px;
    padding: 0.5% 3%;
    column-gap: 2%;
}

nav {
    display: flex;
    justify-content: flex-end;
}

nav img {
    margin: 0;
    padding: 0;
}

@media (max-width: 780px) {
    header {
        height: 82px;
    }
}


/* ========================= フォーム ========================= */

.panel-wrapper {
    background-size: cover;
    margin-top: 0;
    margin-bottom: 5%;
    background-repeat: no-repeat;
}

.panel {
    margin: auto;
    padding: 2.2rem 2.8rem;
    text-align: left;
    background-color: #fff;
    /* border-radius: 5px; */
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); */
}

.form-fields {
    display: flex;
    flex-direction: column;
}

label {
    margin: 0.625rem 0;
    color: #000;
}


textarea {
    resize: none;
    width: 100%;
    height: 6.25rem;
    background-color: #f3f3f3;
    border: none;
    color: #000;
}

input {
    background-color: #f3f3f3;
    width: 100%;
    border: 0;
    margin: 0.4rem 0;
    height: 2.2rem;
}

input[type="checkbox"] {
    width: 0.9375rem;
}

.form-txt {
    color: #000;
    text-align: center;
}

.input-btn {
    color: #000;
    background-color: #b9b9b9;
}

.form-submit-btn.flex.jc-center {
    text-align: center;
}

.form-submit-btn.flex.jc-center input {
    width: 50%;
    color: #000;
}

#form {
    padding: 2rem 4.5% 4%;
    background: var(--form-bg);
}

@media (max-width: 780px) {
    label {
        font-size: 0.88rem;
    }

    .panel {
        width: 100%;
        padding: 2rem;
        box-shadow: none;
    }
}


/* ========================= 会社概要テーブル ========================= */

.company-table {
    border-radius: 10px;
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
}

.info-card {
    width: 100%;
    line-height: 1.5;
    display: flex;
    background-color: #fff;
    padding: 1.2rem;
    /* border-radius: 5px; */
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); */
    justify-content: space-between;
    flex-direction: column;
}

.info-card table th {
    width: 40%;
    padding: 0.625rem;
    white-space: nowrap;
}

.table-box table {
    margin: 0;
}

.map-box {
    width: 100%;
    margin-top: 2rem;
}

.map-box iframe {
    width: 100%;
    height: 100%;
}

table td {
    padding: 0.625rem;
    line-height: 1.5;
}

@media (max-width: 1400px) {
    .table-box {
        width: 100%;
        margin-bottom: 1rem;
    }

}

@media (max-width: 780px) {
    table {
        margin-top: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .info-card .table-box table th,
    .table-box table td {
        display: block;
        width: 100%;
    }

    .table-box {
        padding: 0;
    }

    .table-box table {
        width: 100%;
    }

    .table-box table td {
        border: none;
        text-align: center;
        font-size: 0.9rem;
    }

    th,
    td {
        box-sizing: border-box;
    }
}


/* ========================= フッター ========================= */

footer {
    width: 100%;
    text-align: center;
    background-color: #454545;
    color: #fff;
    /* height を固定しない → コンテンツに合わせて自然に伸びる */
    padding: 6rem 1.25rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-link {
    text-align: center;
}

.footer-link a {
    color: var(--footer-text-color);
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link a:hover {
    color: var(--footer-text-color-hover);
}

.footer-divider {
    margin: 0 0.3rem;
    color: var(--footer-text-color);
}

.copy {
    color: var(--footer-text-color);
    font-size: 0.75rem;
}


/* ========================= フォームコンポーネント ========================= */

.form-row {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin: 0 0 0.375rem;
    font-size: 1rem;
    font-weight: bold;
}

.badge-required {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 0.75rem;
    color: #fff;
    background-color: #e60012;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
}

.form-control {
    width: 100%;
    max-width: 100%;
    padding: 0.625rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    background: #f3f3f3;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.form-radio {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1rem;
    white-space: nowrap;
}

.form-radio input[type="radio"] {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: #333;
}

.form-row--checkbox label {
    margin: 0;
    font-weight: bold;
}

.form-row--checkbox input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
}

.form-row.form-row--checkbox {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

form input[type="checkbox"] {
    cursor: pointer;
}

/* バリデーションエラー */
.field-error {
    display: none;
    max-width: 100%;
    margin-top: -0.9375rem;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    color: var(--error-color, #dc3545);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.2;
    text-align: right;
    overflow-wrap: break-word;
}

.field-error.is-visible {
    display: block;
}

.field-error:empty {
    display: none;
}

#privacy_error {
    font-size: 0.75rem;
    font-weight: 400;
    margin-top: 0.375rem;
    margin-bottom: 1rem;
    padding-left: 0;
    text-align: center;
}

.form-control.error,
.form-row--checkbox input.error,
.form-radio input.error {
    border: 2px solid var(--error-color, #dc3545);
}


/* 送信ボタン（非アクティブ） */
main:not(#Confirm) .form-submit-btn input[type="submit"] {
    cursor: none;
    pointer-events: none;
    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        box-shadow 0.3s ease;
}

/* 確認・完了画面 */
main#Confirm,
main#Thanks {
    max-width: 660px;
    margin: 9.375rem auto;
    box-shadow: var(--shadow);
}

main#Confirm #contact,
main#Thanks .page-section {
    padding: 2rem 1rem;
    background-color: #fff;
}

main#Confirm .section-title,
main#Thanks .section-title {
    margin-bottom: 1.875rem;
    color: #222;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}

main#Confirm .form-txt,
main#Thanks .form-txt {
    margin-bottom: 1.25rem;
    color: #222;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
}

main#Confirm .tbl-form {
    width: 100%;
    border-collapse: collapse;
}

main#Confirm .tbl-form th {
    width: 35%;
    white-space: nowrap;
    font-weight: bold;
    vertical-align: top;
    padding: 0.625rem;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    color: #333;
}

main#Confirm .tbl-form td {
    padding: 0.625rem;
    border: 1px solid #ddd;
    color: #333;
    line-height: 1.5;
}
main#Confirm .input-btn {
    height: 2.5rem;
    font-weight: 700;
    cursor: pointer;
}

main#Confirm .back-btn {
    background-color: #222;
    color: #fff;
    border: 1px solid #222;
    margin-right: 1.25rem;
    padding: 0 1.25rem;
}

main#Thanks .input-btn {
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 300px;
    height: 2.5rem;
    font-weight: 700;
    cursor: pointer;
    margin: 0 auto;
    text-align: center;
    transition: box-shadow 0.3s ease-out;
}

@media (max-width: 780px) {
    main#Confirm,
    main#Thanks {
        margin: 3.125rem auto;
        box-shadow: none;
    }

    main#Confirm .tbl-form {
        table-layout: fixed;
    }

    main#Confirm .tbl-form th {
        white-space: normal;
        word-break: break-word;
    }

    .field-error {
        margin-top: 0.375rem;
        margin-bottom: 0.75rem;
        padding-left: 0.375rem;
        font-size: 0.7rem;
    }
}
