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

   ブレイクポイント（max-width統一）
     780px   SP・タブレット縦（メインBP）
     1080px  タブレット横・サイドバナー基準
     1400px  ワイドPC
   ============================================================ */


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

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; }
ol, ul  { list-style: none; }

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

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

a   { text-decoration: none; color: #000; }
img { pointer-events: none; -webkit-user-drag: none; max-width: 100%; height: auto; vertical-align: bottom; }


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

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

.grecaptcha-badge { visibility: hidden; }

body    { padding-top: 0; }
picture { line-height: 0; }
p       { font-size: 0.9rem; }

.ps-r      { position: relative; }
.container { overflow: hidden; }
.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,.2); */
}

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

.form-row-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 1rem;
    border-bottom: 1px solid #fff;
}

.form-fields label           { order: 1; }
.form-fields input,
.form-fields textarea        { order: 2; width: 100%; }

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 { background-color: #b9b9b9; color: #000; }


.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; }
    .form-row-inner  { flex-direction: column; margin-bottom: 0.625rem; }
    .panel      { padding: 2rem; width: 100%; 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,.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; }
.table-box table td   { display: block; }
.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: 780px) {
    table                        {margin-top: 1.25rem;margin-bottom: 1.25rem;}
    .info-card                  { flex-direction: column; }
    .info-card .table-box table th { float: left; width: 100%; }
    .table-box                    { width: 100%; margin-bottom: 2rem; padding: 0; }
    .table-box table              { width: 100%; }
    .table-box table td           { float: left; border: none; width: 100%; text-align: center; font-size: 0.9rem; }
    th, td                       { box-sizing: border-box; }
}

@media (max-width: 1400px) {
    .company-table        { box-shadow: none; }
    .info-card        { flex-direction: column; }
    .table-box          {width: 100%;margin-bottom: 1rem;}
    .table-box table    { display: grid; place-items: center; }
    .table-box .contact td span { margin-left: -10px; }
}


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

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 { text-decoration: none; color: var(--footer-text-color); font-size: 1rem; transition: color .3s ease; }
.footer-link a:hover { color: var(--footer-text-color-hover); }

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

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


/* ========================= アニメーション ========================= */

@keyframes UpAnime {
    from { opacity: 0; transform: translateY(150px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes DownAnime {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 1; transform: translateY(150px); }
}
@keyframes floatAnime {
    0%   { transform: translateX(0);    opacity: 0; }
    25%  { transform: translateX(-6px); opacity: 1; }
    50%  { transform: translateX(0); }
    100% { transform: translateX(6px);  opacity: 1; }
}

@media (max-width: 780px) {
    #page-top { display: none; }
}


/* ========================= サイドバナー（構造） ========================= */

.side_right { bottom: 0; }



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

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

.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    { font-weight: bold; margin: 0; }
.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 {
    color: #dc3545;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.2;
    margin-top: -0.9375rem;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    display: none;
    word-wrap: break-word;
    max-width: 100%;
    text-align: right;
}
.field-error:empty { display: none; }

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


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

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

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

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

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

main#Confirm .tbl-form.tbl-r02 { margin: 0 auto; }

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#Confirm #contactForm { padding: 0.625rem; border: solid 2px #333; border-radius: 10px; }

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: all .3s ease-out;
}

@media (max-width: 780px) {
    body::before { background-image: none; }

    main#Confirm,
    main#Thanks { margin: 3.125rem auto !important; box-shadow: none !important; }

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

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