/* ベースリセットと配色設定 */
:root {
    --primary-color: #0d233a; /* 重厚感・信頼感のあるネイビー */
    --accent-color: #d4af37;  /* 資金調達をイメージするゴールド */
    --text-color: #333333;
    --bg-color: #f4f6f9;
    --white: #ffffff;
    --border-color: #dddddd;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.navbar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1.5px;
}

.tag {
    font-size: 12px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

/* アラートメッセージ */
.alert-box {
    background-color: #e3f2fd;
    border-left: 5px solid #1e88e5;
    padding: 15px;
    margin: 25px 0;
    border-radius: 4px;
    font-size: 14px;
}

/* 各セクション共通 */
section {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

section h1, section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    font-size: 22px;
}

/* 契約書本文リーディングエリア */
.contract-body {
    max-height: 350px;
    overflow-y: scroll;
    border: 1px solid var(--border-color);
    padding: 20px;
    background-color: #fafafa;
    border-radius: 4px;
    font-size: 14px;
}

.contract-body h3 {
    font-size: 15px;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #000;
}

.contract-body p {
    margin-bottom: 10px;
    text-align: justify;
}

/* 重要事項チェックエリア */
.importance-section {
    border: 2px solid #e67e22; /* 警告・注意を促すオレンジの枠線 */
}

.importance-section h2 {
    color: #e67e22;
    border-bottom: 2px solid #e67e22;
}

.importance-lead {
    font-weight: bold;
    margin-bottom: 15px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    position: relative;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
    padding-left: 30px;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 3px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #ccc;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #e67e22;
    border-color: #e67e22;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.master-check input:checked ~ .checkmark {
    background-color: #27ae60;
    border-color: #27ae60;
}

.label-text {
    padding-left: 5px;
}

hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 10px 0;
}

/* フォーム入力エリア */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
}

.required {
    color: #e74c3c;
    font-size: 12px;
    background: #fdedec;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px; /* スマホでズームされないためのサイズ */
}

.readonly-field {
    background-color: #eaeded;
    color: #7f8c8d;
    font-weight: bold;
}

.input-hint {
    display: block;
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
}

.fixed-party-box {
    background: #fcfcfc;
    border: 1px dashed var(--border-color);
    padding: 15px;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 25px;
}

/* ボタンコントロール */
.submit-area {
    text-align: center;
    margin-top: 30px;
}

.btn-disabled-msg {
    font-size: 13px;
    color: #e74c3c;
    margin-bottom: 10px;
    font-weight: bold;
}

#submit-btn {
    background-color: #bdc3c7;
    color: #ffffff;
    border: none;
    padding: 18px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: not-allowed;
    width: 100%;
    transition: all 0.3s ease;
}

#submit-btn.active {
    background-color: #27ae60;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

#submit-btn.active:hover {
    background-color: #219653;
    transform: translateY(-2px);
}

/* フッター */
.footer {
    text-align: center;
    padding: 30px 0;
    color: #7f8c8d;
    font-size: 12px;
}

/* スマートフォン最適化（レスポンシブ） */
@media (max-width: 600px) {
    section {
        padding: 20px 15px;
    }
    body {
        font-size: 15px;
    }
    .navbar .tag {
        display: none; /* スマホではロゴのみですっきり見せる */
    }
    #submit-btn {
        font-size: 16px;
        padding: 15px 20px;
    }
}