:root {
    --primary-brown: #3b2c28;
    --accent-copper: #a67c6d;
    --bg-beige: #f6efe9;
    --text-gray: #666;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans JP', sans-serif; color: var(--primary-brown); line-height: 1.6; }

/* レイアウトの肝：分割画面設定 */
.split-container {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden; /* 親でのスクロールを禁止 */
}

/* 左側：固定 */
.sidebar {
    flex: 0 0 50%;
    height: 100%;
    background: url('../img/register-bg.png') no-repeat center center / cover;
    position: relative;
    color: #fff;
    padding: 60px;
}

.sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3); /* 画像を少し暗くして文字を読みやすく */
}

.sidebar-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; padding-top: 35vh; }

.sidebar-nav ul { list-style: none; margin-bottom: 40px; font-weight: 500;}
.sidebar-nav a { color: #fff; text-decoration: none; font-size: 14px; display: block; margin-bottom: 15px; opacity: 0.8; }

.sidebar-campaign {
    border: 1px solid #fff;
    padding: 20px;
    background: #B0786040;
    backdrop-filter: blur(5px);
    margin-bottom: 30px;
    border-radius: 8px;
    align-self: flex-start;
}

.campaign-tag { font-size: 12px; margin-bottom: 5px; }
.campaign-main { font-size: 16px; font-weight: 600; font-family: 'Noto Serif JP', serif; letter-spacing:0.05rem;}
.campaign-main .highlight { color: #ffffff; font-size: 22px; background: linear-gradient(90deg, #a65e45 0%, #633230 100%); padding: 2px 5px; border-radius: 4px; }

.sidebar-steps { list-style: none; margin-top: auto; }
.sidebar-steps li { margin-bottom: 10px; font-size: 14px; display: flex; align-items: flex-start; }
.step-num { width: 24px; height: 24px; border: 1px solid #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-right: 15px; flex-shrink: 0; font-size: 12px; font-family: 'Noto Serif JP', serif; }
.sidebar-steps .note { display: block; font-size: 11px; opacity: 0.7; margin-top: 8px; padding-left: 8px; }

/* 右側：スクロール */
.form-area {
    flex: 0 0 50%;
    height: 100%;
    overflow-y: auto; /* ここでスクロールを発生させる */
    background-color: #fff;
    padding: 80px 0;
}

.form-container { max-width: 80%; margin: 0 auto; padding: 0 40px; }

.form-header { margin-bottom: 40px; }
.label-eng { color: var(--accent-copper); font-size: 14px; letter-spacing: 0.1em; }
.form-header h1 { font-size: 32px; margin: 10px 0; font-family: 'Noto Serif JP', serif; letter-spacing: 0.05rem;}
.sub-lead { font-size: 14px; color: var(--text-gray); }

/* プログレスバー */
.progress-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 50px; font-size: 12px; }
.step { display: flex; align-items: center; color: #ccc; }
.step.is-active { color: var(--primary-brown); font-weight: 700; }
.step .num { width: 20px; height: 20px; border-radius: 50%; border: 1px solid #ccc; display: inline-flex; align-items: center; justify-content: center; margin-right: 8px; }
.step.is-active .num { background: var(--primary-brown); color: #fff; border-color: var(--primary-brown); }
.bar { flex: 1; height: 1px; background: #eee; margin: 0 15px; }

/* 申し込み内容 */
.order-summary { background: var(--primary-brown); color: #fff; padding: 40px; border-radius: 4px; margin-bottom: 60px; }
.order-row { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 15px; margin-bottom: 15px; }
.order-row.highlight { color: #dcc7ba; border-bottom: none; }
.item-price { font-size: 20px; font-weight: 700; }
.order-note { font-size: 11px; opacity: 0.7; }

/* フォーム部品 */
.form-group { margin-bottom: 30px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 10px; font-size: 14px; }
.req { background: #e65f5f; color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 2px; vertical-align: middle; margin-left: 5px; }

.input-flex, .birth-flex { display: flex; gap: 15px; }
input[type="text"], input[type="email"], input[type="password"], select {
    width: 100%; padding: 12px 15px; border: 1px solid #785A4670; border-radius: 4px; font-size: 15px;
}

.input-note { font-size: 11px; color: var(--text-gray); margin-top: 8px; }

::placeholder {
    color: #b5ada880; /* または #b5ada8 (少し茶色味の入った薄いグレー) */
    opacity: 1;  /* Firefoxで色が薄くなりすぎるのを防ぐために必要 */
}

select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;

    /* ↓↓↓ ここから追加・修正 ↓↓↓ */
    appearance: none;           /* ブラウザ標準の矢印を消す */
    -webkit-appearance: none;   /* Safari用 */
    -moz-appearance: none;      /* Firefox用 */

    /* 矢印を背景画像として配置（Luumのアクセントカラーに合わせたSVG） */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23a67c6d' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    
    /* 右端から15pxの位置に矢印を配置（ここを調整すると矢印の位置が変わります） */
    background-position: right 15px center; 
    background-size: 10px 6px;

    /* 文字が矢印に重ならないよう、右側のパディングを多めに取る */
    padding-right: 40px; 
}

/* IEで矢印を消すための設定 */
select::-ms-expand {
    display: none;
}

.agreement-box { background: var(--bg-beige); padding: 20px; border-radius: 4px; margin-bottom: 30px; }
.agreement-box.final { background: none; border: 1px solid #ddd; text-align: center; }
.checkbox-label { font-size: 13px; cursor: pointer; }
.checkbox-label a { color: var(--accent-copper); text-decoration: none; }
.checkbox-label a:hover { text-decoration: underline; }
.error-notice { background: #fce4e4; padding: 20px; border-radius: 4px; font-size: 13px; margin-bottom: 30px; line-height: 1.8; }
.error-notice a { color: #e65f5f; text-decoration: underline; }
.error-notice a:hover { color: #e65f5f; text-decoration: none; }
.submit-btn {
    width: 100%; background: #c9b9ad; color: #fff; border: none; padding: 25px; border-radius: 8px; font-size: 18px; font-weight: 700; cursor: pointer; transition: 0.3s;
}
.submit-btn span { display: block; font-size: 11px; font-weight: 400; margin-top: 5px; }
.submit-btn:hover { background: var(--accent-copper); }

.ssl-note { text-align: center; font-size: 11px; color: #999; margin-top: 20px; }

.radio-group {
    display: flex;      /* 横並びにする */
    gap: 30px;          /* 「女性」と「男性」の間の距離 */
    align-items: center; /* 垂直方向の中央揃え */
    margin-top: 10px;    /* 上の「性別」ラベルとの隙間 */
}

/* 各選択肢（ラベル）のスタイル調整 */
.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;   /* 文字の太さを通常に（お好みで） */
    font-size: 15px;
}

/* ラジオボタンの丸と文字の間の隙間 */
.radio-group input[type="radio"] {
    width: auto;        /* 幅が100%にならないように固定 */
    margin-right: 8px;   /* 丸の右側に隙間を作る */
    cursor: pointer;
}

input[type="radio"] {
    accent-color: #a67c6d; /* Luumのアクセントカラー（銅色） */
}

/* スマホ対応：横並びを解除して縦並びに */
@media (max-width: 1024px) {
    .split-container { flex-direction: column; height: auto; overflow: visible; }
    .sidebar { flex: 0 0 auto; height: auto; padding: 40px 20px; }
    .form-area { height: auto; overflow: visible; padding: 40px 0; }
    .form-container { padding: 0 20px; }
}