/* =========================================================
RESET
========================================================= */

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}

body {
font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
line-height: 1.8;
color: #333;
background: #fafafa;
}

img {
max-width: 100%;
height: auto;
}

a {
color: inherit;
}

/* =========================================================
COMMON
========================================================= */

.kaitori_container {
width: 90%;
max-width: 1000px;
margin: 0 auto;
}

section {
padding: 70px 0;
}

h2 {
margin-bottom: 40px;
text-align: center;
font-size: 34px;
}

.is-hidden {
display: none !important;
}

/* =========================================================
HEADER
※ style.css のヘッダーを使用
========================================================= */

/*
ヘッダー関連のCSSは style.css に統一しています。

使用するクラス：
.site-header
.nav
.logo
.menu
.menu-important
.menu-contact
.dropdown
.dropbtn
.arrow
.submenu
.hamburger

kaitori_form.css では上記を上書きしません。
*/

/* =========================================================
HERO
========================================================= */

.kaitori_hero {
padding: 80px 20px;
color: #fff;
background: #1d3557;
text-align: center;
}

.kaitori_hero h1 {
margin-bottom: 15px;
font-size: 42px;
}

.kaitori_hero p {
font-size: 18px;
}

.kaitori_button-group {
margin-top: 35px;
}

.kaitori_btn {
display: inline-block;
margin: 10px;
padding: 15px 35px;
border-radius: 40px;
color: #fff;
background: #ff9800;
text-decoration: none;
transition: .3s;
}

.kaitori_btn:hover {
background: #e68900;
}

/* =========================================================
買取方法カード
========================================================= */

.cards {
display: grid;
grid-template-columns: repeat(
auto-fit,
minmax(280px, 1fr)
);
gap: 30px;
}

.card {
padding: 30px;
background: #fff;
border-radius: 10px;
box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
}

.card h3 {
margin-bottom: 20px;
}

.card ul {
margin-left: 20px;
}

.card-note {
margin-top: 15px;
color: #666;
font-size: 13px;
}

/* =========================================================
買取ステップ
========================================================= */

.kaitori_steps {
display: grid;
gap: 20px;
}

.kaitori_step {
display: flex;
align-items: center;
padding: 20px;
background: #fff;
border-radius: 8px;
box-shadow: 0 3px 12px rgba(0, 0, 0, .08);
}

.kaitori_step h3 {
margin-bottom: 5px;
}

.kaitori_number {
width: 60px;
height: 60px;
margin-right: 20px;
flex-shrink: 0;

display: flex;
align-items: center;
justify-content: center;

color: #fff;
background: #1d3557;
border-radius: 50%;

font-size: 20px;
font-weight: bold;

}

/* =========================================================
FAQ
========================================================= */

.faq {
max-width: 800px;
margin: auto;
}

details {
margin-bottom: 15px;
padding: 15px;
background: #fff;
border-radius: 8px;
}

summary {
cursor: pointer;
font-weight: bold;
}

/* =========================================================
FORM
========================================================= */

.application {
background: #f1f5f9;
}

.form-box {
max-width: 800px;
margin: auto;
padding: 40px;
background: #fff;
border-radius: 12px;
box-shadow: 0 5px 25px rgba(0, 0, 0, .08);
}

.form-group {
margin-bottom: 25px;
}

.form-group > label {
display: block;
margin-bottom: 8px;
font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
width: 100%;
padding: 13px 15px;

border: 1px solid #ccc;
border-radius: 6px;

font-family: inherit;
font-size: 16px;

}

.form-group textarea {
min-height: 150px;
resize: vertical;
}

/* =========================================================
必須・任意
========================================================= */

.required,
.optional {
display: inline-block;
margin-left: 8px;
padding: 2px 7px;

color: #fff;
border-radius: 4px;

font-size: 12px;

}

.required {
background: #e53935;
}

.optional {
background: #777;
}

/* =========================================================
買取方法選択
========================================================= */

.application-type-group {
display: flex;
gap: 15px;
flex-wrap: wrap;
}

.application-type-label {
position: relative;
margin: 0 !important;
cursor: pointer;
}

.application-type-label input {
position: absolute;
opacity: 0;
pointer-events: none;
}

.application-type-button {
display: block;
padding: 14px 25px;

border: 2px solid #ddd;
border-radius: 8px;

background: #fff;
cursor: pointer;

transition: .2s;

}

.application-type-label input:checked
+ .application-type-button {
border-color: #1d3557;
color: #fff;
background: #1d3557;
}

/* =========================================================
RADIO
========================================================= */

.radio-group {
display: flex;
gap: 25px;
flex-wrap: wrap;
}

.radio-group label {
margin: 0;
font-weight: normal;
}

.radio-group input {
width: auto;
margin-right: 6px;
}

/* =========================================================
生年月日
========================================================= */

.birthdate-group {
display: flex;
gap: 10px;
}

.birthdate-group select:first-child {
flex: 1;
}

.birthdate-group select:nth-child(2),
.birthdate-group select:nth-child(3) {
flex: 0 0 110px;
}

/* =========================================================
FILE
========================================================= */

.form-group input[type="file"] {
padding: 10px;
background: #fafafa;
}

.form-note {
margin-top: 15px;
color: #666;
font-size: 14px;
text-align: center;
}

.form-note-left {
margin-top: 8px;
text-align: left;
}

/* =========================================================
SIGNATURE
========================================================= */

.signature-description {
margin-bottom: 10px;
color: #666;
font-size: 14px;
}

.signature-wrapper {
width: 100%;
overflow: hidden;

border: 2px solid #ccc;
border-radius: 6px;

background: #fff;

}

.signature-pad {
display: block;
width: 100%;
height: 220px;

touch-action: none;
cursor: crosshair;

}

.signature-clear {
margin-top: 10px;
padding: 8px 18px;

border: 1px solid #ccc;
border-radius: 5px;

color: #333;
background: #fff;

cursor: pointer;

}

.signature-clear:hover {
background: #f1f1f1;
}

/* =========================================================
振込先口座
========================================================= */

.bank-section {
margin: 35px 0;
padding: 30px;

border: 1px solid #e2e8f0;
border-radius: 10px;

background: #f8fafc;

}

.bank-section h3 {
margin-bottom: 25px;
padding-bottom: 10px;

border-bottom: 2px solid #1d3557;

}

/* =========================================================
規約
========================================================= */

.terms-group {
padding: 20px;

border: 1px solid #ffd27a;
border-radius: 8px;

background: #fff8e8;

}

.terms-checkbox {
display: flex !important;
align-items: flex-start;

gap: 10px;

margin: 0 !important;

font-weight: normal !important;
cursor: pointer;

}

.terms-checkbox input {
width: auto !important;
margin-top: 7px;
flex-shrink: 0;
}

/* =========================================================
送信ボタン
========================================================= */

.form-submit {
margin-top: 35px;
text-align: center;
}

.form-submit button {
padding: 16px 60px;

border: none;
border-radius: 40px;

color: #fff;
background: #ff9800;

font-size: 18px;
font-weight: bold;

cursor: pointer;
transition: .3s;

}

.form-submit button:hover {
background: #e68900;
}

/* =========================================================
FOOTER
※ style.css のフッターを基本として使用
========================================================= */

/*
フッターも style.css と共通化する場合、
kaitori_form.css 側では上書きしません。
*/

/* =========================================================
MOBILE
========================================================= */

@media (max-width: 768px) {

/* =====================================================
   HEADER
   ※ ヘッダーは style.css に統一
===================================================== */


/* =====================================================
   HERO
===================================================== */

.kaitori_hero {
    padding: 60px 20px;
}

.kaitori_hero h1 {
    font-size: 30px;
}


/* =====================================================
   SECTION
===================================================== */

section {
    padding: 50px 0;
}

h2 {
    font-size: 28px;
}


/* =====================================================
   STEPS
===================================================== */

.kaitori_step {
    flex-direction: column;
    text-align: center;
}

.kaitori_number {
    margin: 0 0 15px;
}


/* =====================================================
   FORM
===================================================== */

.form-box {
    padding: 25px 20px;
}

.application-type-group {
    flex-direction: column;
}

.application-type-button {
    text-align: center;
}

.radio-group {
    flex-direction: column;
    gap: 10px;
}


/* =====================================================
   BIRTHDAY
===================================================== */

.birthdate-group {
    gap: 6px;
}

.birthdate-group select {
    min-width: 0;
    padding: 12px 5px;
    font-size: 14px;
}

.birthdate-group select:nth-child(2),
.birthdate-group select:nth-child(3) {
    flex: 0 0 75px;
}


/* =====================================================
   BANK
===================================================== */

.bank-section {
    padding: 20px 15px;
}


/* =====================================================
   SIGNATURE
===================================================== */

.signature-pad {
    height: 180px;
}


/* =====================================================
   SUBMIT
===================================================== */

.form-submit button {
    width: 100%;
}

}

/* =========================================================
使用可能な本人確認書類一覧
========================================================= */

.identity-document-info {
margin-top: 10px;
margin-bottom: 25px;
}

.identity-document-info details {
border: 1px solid #ddd;
border-radius: 8px;
background: #fafafa;
overflow: hidden;
}

.identity-document-info summary {
padding: 15px 18px;
cursor: pointer;
font-weight: bold;
color: #333;
background: #f5f5f5;
list-style: none;
position: relative;
padding-right: 45px;
}

/* Safariなどで標準の三角を消す */
.identity-document-info summary::-webkit-details-marker {
display: none;
}

/* 開閉アイコン */
.identity-document-info summary::after {
content: "＋";
position: absolute;
right: 18px;
top: 50%;
transform: translateY(-50%);
font-size: 20px;
font-weight: normal;
}

.identity-document-info details[open] summary::after {
content: "−";
}

.identity-document-info summary:hover {
background: #eeeeee;
}

.identity-document-list {
padding: 18px 20px;
background: #fff;
}

.identity-document-list p {
margin-top: 0;
line-height: 1.8;
}

.identity-document-list ul {
margin: 10px 0 20px;
padding-left: 25px;
}

.identity-document-list li {
margin-bottom: 8px;
line-height: 1.7;
}

.identity-document-list .form-note {
margin-bottom: 0;
font-size: 13px;
color: #666;
line-height: 1.8;
}

/* =========================================================
健康保険資格確認書 注意欄
========================================================= */

.qualification-card {
margin-top: 25px;
padding: 20px;
border: 1px solid #e0b4b4;
border-radius: 8px;
background: #fff8f8;
}

.qualification-card h4 {
margin-top: 0;
margin-bottom: 15px;
padding-bottom: 10px;
border-bottom: 1px solid #e5caca;
color: #b00000;
font-size: 17px;
}

.qualification-content {
display: flex;
gap: 25px;
align-items: flex-start;
}

.qualification-text {
flex: 1;
}

.qualification-important {
font-weight: bold;
color: #333;
line-height: 1.8;
}

.qualification-text ul {
margin: 10px 0 15px;
padding-left: 22px;
}

.qualification-text li {
margin-bottom: 8px;
line-height: 1.7;
}

.qualification-note {
margin-bottom: 0;
padding: 10px;
background: #fff0f0;
border-radius: 5px;
color: #b00000;
font-size: 13px;
line-height: 1.7;
}

.qualification-image {
width: 280px;
flex-shrink: 0;
text-align: center;
}

.qualification-image p {
margin-top: 0;
margin-bottom: 8px;
font-weight: bold;
color: #555;
}

.qualification-image img {
display: block;
width: 100%;
height: auto;
border: 1px solid #ddd;
border-radius: 5px;
background: #fff;
}

/* =========================================================
健康保険資格確認書 スマホ
========================================================= */

@media (max-width: 768px) {

.qualification-card {
    padding: 15px;
}

.qualification-content {
    display: block;
}

.qualification-image {
    width: 100%;
    max-width: 320px;
    margin: 20px auto 0;
}

}

/* =========================================================
規約・査定ルール・キャンセル規定
========================================================= */

.rules-info {
margin-top: 20px;
margin-bottom: 25px;
}

.rules-info details {
border: 1px solid #ddd;
border-radius: 8px;
background: #fafafa;
overflow: hidden;
}

.rules-info summary {
cursor: pointer;
padding: 16px 20px;
font-weight: bold;
font-size: 16px;
color: #333;
background: #f5f5f5;
list-style: none;
position: relative;
padding-right: 45px;
}

/* Safari / Chrome */
.rules-info summary::-webkit-details-marker {
display: none;
}

.rules-info summary::after {
content: "＋";
position: absolute;
right: 18px;
top: 50%;
transform: translateY(-50%);
font-size: 22px;
font-weight: normal;
color: #666;
}

.rules-info details[open] summary::after {
content: "－";
}

.rules-info summary:hover {
background: #eeeeee;
}

.rules-content {
padding: 20px;
background: #fff;
}

.rule-section {
padding-bottom: 20px;
margin-bottom: 20px;
border-bottom: 1px solid #e5e5e5;
}

.rule-section:last-of-type {
margin-bottom: 10px;
border-bottom: none;
}

.rule-section h3 {
margin: 0 0 12px;
padding-left: 10px;
border-left: 4px solid #333;
font-size: 18px;
}

.rule-section p {
margin: 8px 0;
line-height: 1.8;
}

.rule-section ul {
margin: 10px 0 0;
padding-left: 22px;
}

.rule-section li {
margin-bottom: 8px;
line-height: 1.7;
}

/* =========================================================
規約・査定ルール・キャンセル規定 スマートフォン
========================================================= */

@media screen and (max-width: 768px) {

.rules-info summary {
    padding: 14px 45px 14px 15px;
    font-size: 15px;
}

.rules-content {
    padding: 15px;
}

.rule-section h3 {
    font-size: 17px;
}

.rule-section li {
    font-size: 14px;
}

}

/* ===== Safari対応：手書き署名 ===== */

.signature-pad {
    display: block;
    width: 100%;
    height: 200px;

    /* Safariで署名中にページがスクロールするのを防止 */
    touch-action: none;

    /* 文字選択などを防止 */
    -webkit-user-select: none;
    user-select: none;

    /* iOS Safari向け */
    -webkit-touch-callout: none;
}