@charset "utf-8";

/* ===========================================================
   株式会社スペースラボ お問い合わせフォーム スキン
   Xserver CGIツール メールフォーム用 自作スキンCSS
   -----------------------------------------------------------
   Color : #073D78 (navy) / #0953A0 (blue) / #D3E3F2 / #EAF1F8
           #FAFAF8 (bg) / #4C4949 (text) / #C9A27E (accent)
=========================================================== */

/* ----------------------------------------------------------
    リセット / 新要素設定
------------------------------------------------------------- */
html, body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, p, blockquote, pre, code, form, fieldset, legend, table, th, td, caption, a, article, aside, nav, section, figure, figcaption, footer, header, main, audio, canvas, video, menu, details {
    margin: 0;
    padding: 0;
    background: transparent;
    font-size: 100%;
    vertical-align: baseline;
}
fieldset, legend, img { border: 0; }
article, aside, nav, section, figure, figcaption, footer, header, main, menu, details { display: block; }
video, audio, canvas { display: inline-block; }
audio:not([controls]) { display: none; }
[hidden] { display: none; }
* { box-sizing: border-box; }

/* ----------------------------------------------------------
    ベース
------------------------------------------------------------- */
html {
    overflow-y: scroll;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #FAFAF8;
    color: #4C4949;
    font: 15px/1.9 "Noto Sans JP", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, "游ゴシック", YuGothic, sans-serif;
    font-feature-settings: "pkna";
    letter-spacing: .02em;
    word-wrap: break-word;
}

/* ----------------------------------------------------------
    要素
------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    font-feature-settings: "palt";
    line-height: 1.4;
    color: #073D78;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { list-style: none; }
dt { font-weight: bold; }
hr {
    display: block;
    height: 1px;
    margin: 1em 0;
    padding: 0;
    border: 0;
    border-top: 1px solid #D3E3F2;
}
a { color: #0953A0; text-decoration: underline; }
a:hover { color: #073D78; text-decoration: none; }
a:focus-visible { outline: 2px solid #0953A0; outline-offset: 2px; }
img { vertical-align: middle; }
address, cite, em, dfn, i, var { font-style: normal; }
em, strong, b { font-weight: 700; }
del { text-decoration: line-through; }
table { border-collapse: collapse; border-spacing: 0; }
th, td { font-weight: normal; text-align: left; }
th { font-weight: bold; }
caption { font-weight: normal; text-align: left; }

/* ----------------------------------------------------------
    フォーム系
------------------------------------------------------------- */
input, textarea, select, button {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
}
input, button { line-height: normal; vertical-align: middle; }

input[type=text],
input[type=email],
input[type=tel],
input[type=number],
input[type=password],
textarea,
select {
    width: 100%;
    max-width: 440px;
    padding: 11px 13px;
    background: #fff;
    color: #4C4949;
    border: 1px solid #D3E3F2;
    border-radius: 6px;
    box-shadow: inset 0 1px 2px rgba(7, 61, 120, .05);
    transition: border-color .2s ease, box-shadow .2s ease;
}
textarea {
    max-width: 100%;
    min-height: 160px;
    overflow: auto;
    vertical-align: top;
    line-height: 1.8;
}
input[type=text]:focus,
input[type=email]:focus,
input[type=tel]:focus,
input[type=number]:focus,
input[type=password]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #0953A0;
    box-shadow: 0 0 0 3px rgba(9, 83, 160, .14);
}
input[type=radio], input[type=checkbox] { cursor: pointer; accent-color: #0953A0; }
label { cursor: pointer; }
legend { color: #073D78; }

/* 送信・確認ボタン */
input[type=submit],
input[type=button] {
    min-width: 220px;
    padding: 15px 34px;
    background: #073D78;
    color: #fff;
    border: 1px solid #073D78;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .12em;
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
input[type=submit]:hover,
input[type=button]:hover {
    background: #0953A0;
    border-color: #0953A0;
    box-shadow: 0 6px 18px rgba(9, 83, 160, .24);
    transform: translateY(-1px);
}
/* 「戻る」はサブボタン */
input[type=submit][value="戻る"],
input[type=button][value="戻る"] {
    min-width: 160px;
    background: #fff;
    color: #073D78;
    border: 1px solid #D3E3F2;
    font-weight: 500;
    box-shadow: none;
}
input[type=submit][value="戻る"]:hover,
input[type=button][value="戻る"]:hover {
    background: #EAF1F8;
    border-color: #0953A0;
    transform: none;
}
input[type=submit]:disabled,
input[type=button]:disabled,
input[type=checkbox]:disabled {
    cursor: default;
    opacity: .5;
    transform: none;
    box-shadow: none;
}
.box__ttl input[type=button] {
    min-width: 0;
    padding: 6px 14px;
    margin-right: 5px;
    font-size: 13px;
    letter-spacing: .04em;
}

/* ----------------------------------------------------------
    ヘッダー
------------------------------------------------------------- */
#site-header {
    flex: 0 0 auto;
    background: #fff;
    border-bottom: 1px solid #D3E3F2;
    box-shadow: 0 1px 10px rgba(7, 61, 120, .06);
}
#site-header .header__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
}
#site-header .header__logo {
    height: 52px;
    width: auto;
    display: block;
    flex: 0 0 auto;
}
#site-header .header__name {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-left: 18px;
    border-left: 1px solid #D3E3F2;
}
#site-header .header__company {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.2;
    color: #073D78;
}
#site-header .header__tagline {
    font-size: 11px;
    letter-spacing: .22em;
    color: #7d7a7a;
}
#site-header .header__contact {
    margin-left: auto;
    text-align: right;
    line-height: 1.45;
}
#site-header .header__tel {
    display: block;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #073D78;
    text-decoration: none;
}
#site-header .header__hours {
    display: block;
    font-size: 11px;
    letter-spacing: .04em;
    color: #7d7a7a;
}

/* ----------------------------------------------------------
    メインコンテンツ
------------------------------------------------------------- */
#wrapper {
    flex: 1 0 auto;
    width: 100%;
    max-width: 800px;
    margin: 40px auto 56px;
    padding: 0 20px;
}

#main {
    background: #fff;
    border: 1px solid #D3E3F2;
    border-radius: 14px;
    box-shadow: 0 6px 28px rgba(7, 61, 120, .08);
    padding: 0 0 36px;
    overflow: hidden;
}

.section { margin-bottom: 40px; }
.section:last-child { margin-bottom: 0; }
.section__ttl {
    padding: 26px 32px;
    margin-bottom: 32px;
    background: linear-gradient(100deg, #073D78 0%, #0953A0 100%);
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: .1em;
}
.section__body { padding: 0 32px; }

#txt_explain {
    margin-bottom: 26px;
    padding: 18px 22px;
    background: #EAF1F8;
    border-radius: 8px;
    border-left: 4px solid #0953A0;
    color: #3C4A5C;
    font-size: 14px;
    line-height: 1.95;
}
#txt_explain p { margin: 0; }

.red_txt {
    color: #C0392B;
    font-weight: 700;
    line-height: 1.9;
}
/* エラー枠は中身があるときのみ表示（テンプレートでは
   <div class="red_txt">{$form_error}</div> と1行で記述すること） */
div.red_txt:empty { display: none; }
div.red_txt:not(:empty) {
    margin-bottom: 22px;
    padding: 14px 20px;
    background: #FDF1EF;
    border: 1px solid #F1C9C2;
    border-radius: 8px;
    font-size: 14px;
}

.block { margin-bottom: 15px; }
.block:last-child { margin-bottom: 0; }
.block__ttl {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
}

/* 入力項目テーブル */
.table {
    width: 100%;
    margin-bottom: 30px;
    border-top: 1px solid #D3E3F2;
}
.table th {
    width: 32%;
    padding: 20px 18px;
    background: #F5F9FD;
    color: #073D78;
    border-bottom: 1px solid #D3E3F2;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .06em;
    line-height: 1.7;
    vertical-align: top;
}
.table td {
    padding: 20px 18px;
    background: #fff;
    border-bottom: 1px solid #D3E3F2;
    color: #4C4949;
    font-size: 14.5px;
    line-height: 1.85;
    vertical-align: top;
}

/* ボタンを囲うclassタグ */
.button_box {
    clear: both;
    padding: 8px;
    text-align: center;
}
.section__body .button_box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px;
    padding: 14px 0 4px;
}
/* 「サイトへ戻る」リンク */
#main > .button_box {
    padding: 30px 32px 0;
    border-top: 1px solid #EAF1F8;
    margin-top: 34px;
    font-size: 14px;
}
#main > .button_box a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0953A0;
    text-decoration: none;
    letter-spacing: .04em;
}
#main > .button_box a::before { content: "‹"; font-size: 18px; line-height: 1; }
#main > .button_box a:hover { color: #073D78; text-decoration: underline; }

/* 左詰の文字を表示するためのclassタグ */
.left_txt { text-align: left; }

/* ----------------------------------------------------------
    フッター
------------------------------------------------------------- */
#footer {
    flex: 0 0 auto;
    margin-top: auto;
    padding: 26px 24px;
    background: #073D78;
    color: rgba(255, 255, 255, .78);
    text-align: center;
    font-size: 12px;
    letter-spacing: .1em;
    line-height: 1.9;
}
#footer .footer__addr {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 12.5px;
    letter-spacing: .06em;
}
#footer .footer__copy {
    display: block;
    font-size: 11.5px;
    letter-spacing: .14em;
    color: rgba(255, 255, 255, .62);
}

/* ----------------------------------------------------------
    レスポンシブ
------------------------------------------------------------- */
@media screen and (max-width: 768px) {
    #site-header .header__inner { padding: 14px 18px; gap: 14px; }
    #site-header .header__logo { height: 40px; }
    #site-header .header__company { font-size: 14px; letter-spacing: .1em; }
    #site-header .header__tagline { font-size: 10px; }
    #site-header .header__name { padding-left: 14px; }
    #site-header .header__contact { display: none; }

    #wrapper { margin: 20px auto 32px; padding: 0 14px; }
    #main { border-radius: 10px; padding-bottom: 28px; }

    .section__ttl { padding: 20px 20px; margin-bottom: 24px; font-size: 17px; letter-spacing: .06em; }
    .section__body { padding: 0 20px; }

    #txt_explain { padding: 14px 16px; font-size: 13.5px; }

    /* テーブルを縦積みに */
    .table, .table tbody, .table tr, .table th, .table td { display: block; width: 100%; }
    .table { border-top: 0; margin-bottom: 24px; }
    .table tr {
        margin-bottom: 16px;
        border: 1px solid #D3E3F2;
        border-radius: 8px;
        overflow: hidden;
    }
    .table tr:last-child { margin-bottom: 0; }
    .table th {
        padding: 12px 14px;
        border-bottom: 1px solid #D3E3F2;
        font-size: 13.5px;
    }
    .table td { padding: 14px; border-bottom: 0; font-size: 14px; }

    input[type=text],
    input[type=email],
    input[type=tel],
    input[type=number],
    input[type=password],
    textarea,
    select { max-width: 100%; font-size: 16px; }

    .section__body .button_box { flex-direction: column-reverse; gap: 12px; }
    input[type=submit], input[type=button] { width: 100%; min-width: 0; padding: 15px 20px; }
    input[type=submit][value="戻る"], input[type=button][value="戻る"] { width: 100%; }

    #main > .button_box { padding: 24px 20px 0; margin-top: 26px; }

    #footer { padding: 22px 18px; }
}

@media screen and (max-width: 420px) {
    #site-header .header__logo { height: 34px; }
    #site-header .header__company { font-size: 13px; }
    .section__ttl { font-size: 16px; }
}

/* ----------------------------------------------------------
    汎用ユーティリティ（メールフォームツール標準）
------------------------------------------------------------- */
.m0 { margin: 0 !important; }
.m5 { margin: 5px !important; }
.m10 { margin: 10px !important; }
.m15 { margin: 15px !important; }
.m20 { margin: 20px !important; }
.m30 { margin: 30px !important; }
.m40 { margin: 40px !important; }
.mt0 { margin-top: 0 !important; }
.mt5 { margin-top: 5px !important; }
.mt10 { margin-top: 10px !important; }
.mt15 { margin-top: 15px !important; }
.mt20 { margin-top: 20px !important; }
.mt30 { margin-top: 30px !important; }
.mt40 { margin-top: 40px !important; }
.mt50 { margin-top: 50px !important; }
.mb0 { margin-bottom: 0 !important; }
.mb5 { margin-bottom: 5px !important; }
.mb10 { margin-bottom: 10px !important; }
.mb15 { margin-bottom: 15px !important; }
.mb20 { margin-bottom: 20px !important; }
.mb30 { margin-bottom: 30px !important; }
.mb40 { margin-bottom: 40px !important; }
.mb50 { margin-bottom: 50px !important; }
.ml10 { margin-left: 10px !important; }
.ml20 { margin-left: 20px !important; }
.mr10 { margin-right: 10px !important; }
.mr20 { margin-right: 20px !important; }
.p0 { padding: 0 !important; }
.p10 { padding: 10px !important; }
.p20 { padding: 20px !important; }
.pt0 { padding-top: 0 !important; }
.pt10 { padding-top: 10px !important; }
.pt20 { padding-top: 20px !important; }
.pb0 { padding-bottom: 0 !important; }
.pb10 { padding-bottom: 10px !important; }
.pb20 { padding-bottom: 20px !important; }
.w30per { width: 30% !important; }
.w50per { width: 50% !important; }
.w70per { width: 70% !important; }
.w100per { width: 100% !important; }
.fl { float: left !important; }
.fr { float: right !important; }
.tal { text-align: left !important; }
.tar { text-align: right !important; }
.tac { text-align: center !important; }
.breakAll { word-break: break-all !important; }
.dispN { display: none !important; }
.dispI { display: inline !important; }
.dispIB { display: inline-block !important; }
.dispB { display: block !important; }
.dispF { display: flex !important; }
.fontNormal { font-weight: normal !important; }
.fontBold { font-weight: bold !important; }
.font10 { font-size: 10px !important; }
.font12 { font-size: 12px !important; }
.font14 { font-size: 14px !important; }
.colorBlack { color: #000; }
.clear, .cf { clear: both; }
.clearfix:before, .clearfix:after,
.cf:before, .cf:after { content: " "; display: table; }
.clearfix:after, .cf:after { clear: both; }