@charset "utf-8";

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: #001220;
    color: #ffffff;
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN",
                 "Hiragino Mincho Pro", "MS PMincho", serif;
    font-size: 16px;
    line-height: 1.7;
}

/* ==============================
   ページ全体
   ============================== */

#wrapper {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* ==============================
   お問い合わせページ上部
   ============================== */

.contact-heading {
    display: block;
    width: 100%;
    margin: 0 auto 40px;
    text-align: center;
}

.contact-heading__en {
    display: block;
    width: 100%;
    margin: 0 0 12px;
    color: #c5a059;
    font-family: inherit;
    font-size: 14px;
    font-weight: normal;
    letter-spacing: 0.08em;
    text-align: center;
}

.contact-heading__title {
    display: block;
    width: 100%;
    margin: 0;
    color: #ffffff;
    font-family: inherit;
    font-size: 36px;
    font-weight: normal;
    line-height: 1.4;
    text-align: center;
}

.contact-heading__line {
    display: block;
    width: 48px;
    height: 1px;
    margin: 18px auto 30px;
    background: #c5a059;
}

.contact-heading__text {
    display: block;
    width: 100%;
    margin: 0;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.8;
    text-align: center;
}

/* ==============================
   フォーム本体
   ============================== */

#main {
    width: 100%;
    margin: 0 auto;
    padding: 40px;
    background: #00182b;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.section {
    margin: 0;
    padding: 0;
}

.section__ttl {
    margin: 0 0 30px;
    padding: 0 0 14px;
    color: #c5a059;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #c5a059;
    font-family: inherit;
    font-size: 24px;
    font-weight: normal;
}

.section__body {
    margin: 0;
    padding: 0;
}

#txt_explain {
    margin: 0 0 30px;
    padding: 0;
    color: #ffffff;
}

#txt_explain p {
    margin: 0;
    padding: 0;
}

.required-note {
    color: #c5a059;
    font-size: 14px;
}

.red_txt {
    margin: 0 0 20px;
    padding: 0;
    color: #ff6666;
}

/* 必須項目のアスタリスク */
.red {
    color: #ff0000 !important;
}

/* ==============================
   フォーム項目
   ============================== */

.table {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-collapse: collapse;
}

.table tbody {
    display: block;
    width: 100%;
}

.table tr {
    display: block;
    width: 100%;
    margin: 0 0 24px;
    padding: 0;
}

.table th,
.table td {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
}

.table th {
    margin-bottom: 8px;
    color: #c5a059;
    font-family: inherit;
    font-size: 15px;
    font-weight: normal;
}

.table td {
    color: #ffffff;
}

/* ==============================
   入力欄
   ============================== */

input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
    display: block;
    width: 100% !important;
    max-width: none !important;
    margin: 0;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 0;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    outline: none;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    border-color: #c5a059;
}

/* ==============================
   ラジオ・チェックボックス
   ============================== */

input[type="radio"],
input[type="checkbox"] {
    margin-right: 6px;
    accent-color: #c5a059;
}

label {
    color: #ffffff;
    font-family: inherit;
    cursor: pointer;
}

/* 船体・船底図面 */
.table tr:nth-last-child(2) td {
    padding-top: 4px;
}

.table tr:nth-last-child(2) input[type="radio"] {
    margin-right: 7px;
    margin-left: 0;
    vertical-align: middle;
}

.table tr:nth-last-child(2) label {
    margin-right: 18px;
}

/* ==============================
   プライバシーポリシー
   最後の行を横並び・中央配置
   ============================== */

.table tr:last-child {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* チェックボックスを左に配置 */
.table tr:last-child td {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    margin: 0;
    padding: 0;
    order: 1;
}

/* 文章を右に配置 */
.table tr:last-child th {
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
    order: 2;
    color: #c5a059;
    font-size: 15px;
    line-height: 1.7;
}

/* チェックボックス本体 */
.table tr:last-child input[type="checkbox"] {
    display: inline-block;
    width: 18px !important;
    height: 18px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    vertical-align: middle;
    cursor: pointer;
}

/* 重複する「同意する」は非表示 */
.table tr:last-child td label {
    display: none;
}

/* ==============================
   ボタン
   ============================== */

.button_box {
    margin: 35px 0 0;
    padding: 0;
    text-align: center;
}

input[type="submit"] {
    min-width: 180px;
    margin: 0;
    padding: 12px 30px;
    background: transparent;
    border: 1px solid #c5a059;
    border-radius: 0;
    color: #c5a059;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

input[type="submit"]:hover {
    background: #c5a059;
    color: #001220;
}

/* ==============================
   戻るリンク
   ============================== */

.back_link {
    margin-top: 25px;
    text-align: center;
}

.back_link a,
.button_box a {
    color: #c5a059;
    font-family: inherit;
    text-decoration: none;
}

.back_link a:hover,
.button_box a:hover {
    text-decoration: underline;
}

/* ==============================
   船舶情報の見出し
   ============================== */

.table tr:nth-child(4)::before {
    content: "船について教えてください。";
    display: block;
    margin: 0 0 22px;
    padding: 35px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    color: #ffffff;
    font-size: 16px;
    font-weight: normal;
    line-height: 1.8;
}

/* ==============================
   スマートフォン
   ============================== */

@media screen and (max-width: 600px) {

    #wrapper {
        padding: 30px 15px 20px;
    }

    .contact-heading {
        margin-bottom: 30px;
    }

    .contact-heading__en {
        font-size: 13px;
    }

    .contact-heading__title {
        font-size: 30px;
    }

    .contact-heading__line {
        margin: 15px auto 24px;
    }

    .contact-heading__text {
        font-size: 14px;
    }

    #main {
        padding: 25px 20px;
    }

    .section__ttl {
        font-size: 21px;
    }

    input[type="submit"] {
        width: 100%;
    }

    .table tr:last-child {
        gap: 8px;
    }

    .table tr:last-child th {
        font-size: 14px;
    }
}