/* メインスタイルシート */
:root {
    --primary-color: #0288d1;     /* 青系のメインカラー */
    --primary-dark: #01579b;      /* 暗めの青 */
    --primary-light: #e1f5fe;     /* 明るい青（背景用） */
    --secondary-color: #00acc1;   /* アクセント用の青緑色 */
    --text-color: #263238;        /* 少し暗めのテキストカラー */
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --error-color: #f44336;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --form-shadow: 0 4px 16px var(--shadow-color);
    --transition-time: 0.3s;
}

/* =====================
   ベースレイアウト
   ===================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: #f0f7fa; /* 水をイメージした薄い青の背景 */
    padding-bottom: 50px;
    font-size: 16px;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

header p {
    color: #666;
}

/* =====================
   製品説明セクション
   ===================== */
.product-info-section {
    margin-bottom: 40px;
}

.product-card {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.product-image {
    flex: 0 0 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #e1f5fe, #b3e5fc);
}

.product-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-details {
    flex: 0 0 65%;
    padding: 25px;
}

.product-title {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 1.4em;
    position: relative;
    padding-bottom: 10px;
}

.product-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

/* =====================
   製品特徴とシステム説明
   ===================== */
.product-features {
    margin-bottom: 20px;
}

.product-description {
    margin-bottom: 20px;
    color: #37474f;
    line-height: 1.6;
}

.feature-item {
    display: flex;
    margin-bottom: 15px;
}

.feature-icon {
    flex: 0 0 30px;
    color: var(--secondary-color);
    font-size: 1.2em;
    margin-right: 10px;
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-text strong {
    font-weight: 500;
    margin-bottom: 2px;
}

.feature-text span {
    font-size: 0.9em;
    color: #607d8b;
}

.product-system {
    background-color: #e8f5e9;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--secondary-color);
}

.product-system h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 500;
}

.product-system p {
    margin-bottom: 5px;
    font-size: 0.95em;
    color: #37474f;
}

.product-system p strong {
    color: var(--primary-dark);
}

.system-note {
    font-size: 0.85em !important;
    font-style: italic;
    margin-top: 10px !important;
    color: #607d8b !important;
}

/* =====================
   サブスクリプション特典
   ===================== */
.subscription-benefits {
    background-color: #fff8e1;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
    border: 2px solid #ffcc80;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.subscription-benefits h4 {
    color: #f57f17;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 600;
    text-align: center;
}

.subscription-benefits ul {
    margin: 0;
    padding-left: 10px;
    list-style-type: none;
}

.subscription-benefits li {
    font-size: 0.95em;
    margin-bottom: 10px;
    color: #37474f;
    position: relative;
    padding-left: 25px;
}

.subscription-benefits li strong {
    color: #e91e63;
    font-weight: 600;
}

.subscription-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

/* =====================
   価格比較
   ===================== */
.price-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.price-item {
    text-align: center;
    padding: 0 15px;
}

.price-item.highlight {
    background-color: #fff9c4;
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px dashed #ffa000;
    position: relative;
}

.price-label {
    font-size: 0.9em;
    color: #757575;
    margin-bottom: 5px;
}

.price-value {
    font-size: 1.6em;
    font-weight: 700;
    color: #424242;
}

.price-value.regular {
    text-decoration: line-through;
    color: #757575;
}

.price-value.discount {
    color: #d32f2f;
}

.price-unit {
    font-size: 0.6em;
    font-weight: normal;
}

.price-arrow {
    font-size: 1.5em;
    margin: 0 10px;
    color: #ffa000;
    font-weight: bold;
}

.price-save {
    background-color: #d32f2f;
    color: white;
    font-size: 0.8em;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 5px;
}
/* 修正前の関連スタイルは残したまま、以下を追加 */
.price-tax {
    font-size: 0.8em;
    color: #757575;
    margin-top: 2px;
}

/* =====================
   配送周期選択
   ===================== */
.cycle-description {
    margin-bottom: 15px;
}

.cycle-description p {
    color: #37474f;
    font-size: 0.95em;
    margin: 0;
}

.delivery-span-options {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.delivery-span-option {
    flex: 1;
    position: relative;
    margin-bottom: 10px;
}

.delivery-span-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.delivery-span-option label {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.delivery-span-option input[type="radio"]:checked + label {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
}

.cycle-title {
    font-weight: 500;
    font-size: 1.05em;
    margin-bottom: 5px;
    color: var(--text-color);
}

.cycle-subtitle {
    font-size: 0.85em;
    color: #607d8b;
}

.recommended-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 0.8em;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.delivery-span-option.recommended label {
    border-color: var(--secondary-color);
}

/* =====================
   フォームスタイル
   ===================== */
.form-section {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--form-shadow);
    margin-bottom: 36px;
    overflow: hidden;
    transition: transform var(--transition-time), box-shadow var(--transition-time);
}

.form-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-color);
}

.form-section-header {
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
    color: white;
    padding: 18px 24px;
    position: relative;
}

.form-section-header h2 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.form-section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-light));
}

.form-section-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95em;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all var(--transition-time);
    background-color: #fff;
}

.form-control:hover {
    border-color: #b0bec5;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(2, 136, 209, 0.15);
    background-color: #fff;
}

/* 必須マーカー */
.required {
    color: var(--error-color);
    margin-left: 3px;
}

.error-message {
    color: var(--error-color);
    font-size: 0.9em;
    margin-top: 5px;
}

/* =====================
   入力フィールドスタイル
   ===================== */
/* ラジオボタングループ */
.application-type-options,
.gender-options,
.housing-status-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.application-type-option,
.gender-option,
.housing-status-option {
    flex: 1;
    min-width: 100px;
}

.application-type-option input[type="radio"],
.gender-option input[type="radio"],
.housing-status-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.application-type-option label,
.gender-option label,
.housing-status-option label {
    display: block;
    background-color: var(--light-gray);
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-weight: normal;
}

.application-type-option input[type="radio"]:checked + label,
.gender-option input[type="radio"]:checked + label,
.housing-status-option input[type="radio"]:checked + label {
    background-color: #e8f5e9;
    border-color: var(--primary-color);
    color: var(--primary-dark);
    font-weight: bold;
}

.application-type-option label:hover,
.gender-option label:hover,
.housing-status-option label:hover {
    background-color: #e8f5e9;
}

/* 日付入力 */
input[type="date"].form-control {
    padding: 12px 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23455a64' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* 郵便番号入力 */
.postal-code-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.postal-code-group input {
    width: 100px;
}

.postal-code-group button {
    padding: 10px 15px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.postal-code-group button:hover {
    background-color: #1976d2;
}

/* =====================
   確認画面スタイル
   ===================== */
.confirm-item {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.confirm-item:last-child {
    border-bottom: none;
}

.confirm-label {
    font-weight: bold;
    margin-bottom: 3px;
}

.confirm-value {
    padding-left: 10px;
}

/* 規約同意 */
.agreement-box {
    background-color: var(--light-gray);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.agreement-box label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.agreement-box input[type="checkbox"] {
    margin-right: 10px;
}

.agreement-link {
    color: var(--secondary-color);
    text-decoration: none;
}

.agreement-link:hover {
    text-decoration: underline;
}

/* =====================
   ボタンスタイル
   ===================== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 41, 63, 0.15);
    letter-spacing: 0.5px;
}

.btn:hover {
    background: linear-gradient(45deg, var(--primary-dark), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 41, 63, 0.2);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 41, 63, 0.2);
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s;
}

.btn:hover::after {
    left: 100%;
}

.btn-secondary {
    background: linear-gradient(45deg, #546e7a, #78909c);
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #455a64, #607d8b);
}

/* =====================
   メッセージボックス
   ===================== */
.message-box {
    text-align: center;
    padding: 40px 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.message-box h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.message-box.error h2 {
    color: var(--error-color);
}

.message-box p {
    margin-bottom: 30px;
}

.message-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.success-icon {
    color: var(--success-color);
}

.error-icon {
    color: var(--error-color);
}

/* =====================
   フッター
   ===================== */
footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    color: #666;
    font-size: 0.9em;
}

/* =====================
   セクション説明文
   ===================== */
.section-description {
    font-size: 0.85em;
    color: #607d8b;
    margin: 5px 0 0;
    line-height: 1.4;
}

/* 日付入力のヒント表示 */
.date-input-wrapper {
    position: relative;
}

.date-format-hint {
    display: block;
    font-size: 0.8em;
    color: #607d8b;
    margin-top: 4px;
}

/* =====================
   入力ヒント
   ===================== */
.input-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.85em;
    color: #607d8b;
    line-height: 1.4;
}

/* =====================
   レスポンシブ対応
   ===================== */
@media (min-width: 768px) {
    .delivery-span-options {
        display: flex;
        gap: 15px;
    }
    
    .delivery-span-option {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .form-section-body {
        padding: 15px;
    }
    
    .delivery-span-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .product-card {
        flex-direction: column;
    }
    
    .product-image {
        flex: auto;
        padding: 30px;
    }
    
    .product-image img {
        max-width: 180px;
    }
    
    .product-details {
        flex: auto;
    }
}

@media (max-width: 576px) {
    .form-section {
        margin-bottom: 24px;
    }
    
    .form-section-header h2 {
        font-size: 18px;
    }
    
    .form-section-body {
        padding: 16px;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-control {
        padding: 12px;
        font-size: 15px;
    }
    
    .application-type-options,
    .gender-options,
    .housing-status-options {
        flex-direction: column;
        gap: 8px;
    }
    
    .application-type-option,
    .gender-option,
    .housing-status-option {
        width: 100%;
    }
    
    .section-description {
        font-size: 0.8em;
    }
    
    /* 入力フィールドのタッチ領域を広げる */
    .form-control {
        height: 48px;
    }
    
    /* セレクトボックスの高さを調整 */
    select.form-control {
        height: 48px;
        background-position: right 15px center;
    }
    
    /* ボタンのタッチ領域を広げる */
    .btn {
        padding: 15px 25px;
        font-size: 16px;
    }
    
    /* 郵便番号検索ボタンのサイズ調整 */
    .postal-code-group button {
        height: 48px;
        padding: 0 15px;
    }
    
    .step-navigation {
        margin-bottom: 25px;
    }
    
    .step-item .step-label {
        font-size: 11px;
    }
    
    .step-number {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
    
    .form-control:focus {
        box-shadow: 0 0 0 3px rgba(2, 136, 209, 0.25);
        border-color: var(--primary-color);
    }
    
    .input-hint {
        font-size: 0.8em;
    }
    
    /* ラジオボタンのレイアウト調整 */
    .application-type-option label,
    .gender-option label,
    .housing-status-option label {
        width: 100%;
        padding: 12px;
        font-size: 15px;
        text-align: left;
    }
    
    /* ラジオボタンに小さなアイコンを追加 */
    .application-type-option label::before,
    .gender-option label::before,
    .housing-status-option label::before {
        content: '○';
        display: inline-block;
        width: 20px;
        margin-right: 5px;
    }
    
    .application-type-option input[type="radio"]:checked + label::before,
    .gender-option input[type="radio"]:checked + label::before,
    .housing-status-option input[type="radio"]:checked + label::before {
        content: '●';
        color: var(--primary-color);
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }
    
    .form-section-header h2 {
        font-size: 1.2em;
    }
    
    .form-control {
        font-size: 14px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .price-comparison {
        flex-direction: column;
    }
    
    .price-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
}