@charset "utf-8";

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

/* 基本設定 */
body {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

a {
    color: #666666;
    text-decoration: none;
}

/* ヘッダー */
#header {
    background: #fff;
    border-bottom: 3px solid #e5e5e5;
    padding: 12px 20px;
}

#header .inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

#header .logo {
    flex-shrink: 0;
}

#header .logo img {
    width: 140px;
    height: auto;
    display: block;
}

.header-title {
    color: #fd0253;
    font-size: 18px;
    font-weight: 900;
    margin: 0;
    letter-spacing: 1.5px;
    flex-shrink: 0;
}

/* プログレスバー */
.progress-container {
    background: #fff;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fd0253 0%, #ff6b9d 100%);
    transition: width 0.4s ease;
    width: 6.67%; /* 1/15 */
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    font-weight: 700;
}

/* メインコンテンツ */
#entry .inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
}

/* ステップ */
.step {
    display: none;
    background: #fff;
    margin: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    animation: fadeIn 0.4s ease;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ステップヘッダー */
.step-header {
    padding: 30px 20px 20px;
    text-align: center;
}

.step-header h2 {
    font-size: 20px;
    font-weight: 900;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.step-note {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-top: 10px;
}

/* ステップコンテンツ */
.step-content {
    padding: 20px;
}

/* フォームフィールド */
.form-field {
    margin-bottom: 24px;
}

.form-field:last-child {
    margin-bottom: 0;
}

.field-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

/* 日程グループ */
.date-group {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.date-group:last-child {
    margin-bottom: 0;
}

.date-group-label {
    font-size: 15px;
    font-weight: 700;
    color: #fd0253;
    margin-bottom: 12px;
}

.date-time-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.date-time-col {
    display: flex;
    flex-direction: column;
}

/* 入力フィールド */
.input-txt,
.input-txtarea,
.input-select {
    width: 100%;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    font-size: 16px;
    font-family: 'Noto Sans JP', sans-serif;
    transition: all 0.3s;
    background: #fff;
}

/* テキスト入力とセレクトボックスの高さを統一 */
.input-txt,
.input-select {
    height: 56px;
    line-height: 24px;
}

.input-txt:focus,
.input-txtarea:focus,
.input-select:focus {
    outline: none;
    border-color: #fd0253;
    box-shadow: 0 0 0 3px rgba(253, 2, 83, 0.1);
}

.input-txtarea {
    min-height: 120px;
    resize: vertical;
}

.input-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23666' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 48px;
    cursor: pointer;
}

.input-select option {
    font-size: 18px;
    padding: 10px 8px;
    line-height: 1.8;
}

.input-note {
    font-size: 13px;
    color: #999;
    margin-top: 10px;
    line-height: 1.6;
}

/* エラー表示 */
.error {
    color: #f00;
    font-size: 13px;
    display: block;
    margin-top: 8px;
    font-weight: 500;
}

.input-txt.input-err,
.input-txtarea.input-err,
.input-select.input-err {
    border-color: #f00;
    background: #fff5f5;
}

/* ラジオボタン（カード型） */
.radio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.radio-grid-simple {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.radio-card {
    display: block;
    cursor: pointer;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-card-inner {
    display: block;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s;
    text-align: center;
}

.radio-card input[type="radio"]:checked + .radio-card-inner {
    border-color: #fd0253;
    background: #fff0f4;
    box-shadow: 0 0 0 3px rgba(253, 2, 83, 0.1);
}

.radio-card-inner:active {
    transform: scale(0.98);
}

.radio-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.radio-card input[type="radio"]:checked + .radio-card-inner .radio-card-title {
    color: #fd0253;
}

/* ステップアクション */
.step-actions {
    padding: 20px;
    display: flex;
    gap: 12px;
    background: #f9f9f9;
}

.btn-prev,
.btn-next,
.btn-submit {
    flex: 1;
    padding: 18px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Noto Sans JP', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.btn-prev {
    background: #fff;
    color: #666;
    border: 2px solid #ddd;
}

.btn-prev:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.btn-next,
.btn-submit {
    background: linear-gradient(135deg, #fd0253 0%, #ff4081 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(253, 2, 83, 0.3);
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(253, 2, 83, 0.4);
}

.btn-next:active,
.btn-submit:active {
    transform: translateY(0);
}

.btn-next:disabled,
.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-next:disabled:hover,
.btn-submit:disabled:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(253, 2, 83, 0.3);
}

/* 年齢確認の補足テキスト */
.age-note {
    font-size: 12px;
    color: #999;
    line-height: 1.7;
    margin-top: 12px;
    padding: 10px 12px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 3px solid #ddd;
}

/* 備考欄の補足テキスト */
.notes-info {
    font-size: 12px;
    color: #999;
    line-height: 1.7;
    margin-top: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 3px solid #ddd;
}

.notes-info p {
    margin-bottom: 8px;
}

.notes-info p:last-child {
    margin-bottom: 0;
}

/* 確認画面 */
.confirmation-list {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.confirmation-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.confirmation-label {
    flex: 0 0 120px;
    font-size: 13px;
    color: #666;
    font-weight: 700;
}

.confirmation-value {
    flex: 1;
    font-size: 15px;
    color: #333;
    word-break: break-all;
}

.important-notes {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.important-notes p {
    font-size: 13px;
    color: #856404;
    margin: 0;
    line-height: 1.6;
}

/* Flatpickr カスタマイズ */
.flatpickr-calendar {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    border: 2px solid #fd0253;
}

.flatpickr-months {
    background: #fd0253;
    border-radius: 10px 10px 0 0;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    color: #fff;
    font-weight: 700;
}

.flatpickr-prev-month svg,
.flatpickr-next-month svg {
    fill: rgba(255, 255, 255, 0.9);
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: #fd0253;
    border-color: #fd0253;
}

.flatpickr-day.today {
    border-color: #fd0253;
    color: #fd0253;
}

.flatpickr-day:hover {
    background: #fff0f4;
    border-color: #fd0253;
}

/* カレンダーアイコン */
.datepicker {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 24px;
    padding-right: 52px;
    cursor: pointer;
    text-align: left !important;
    transition: border-color 0.3s, box-shadow 0.3s !important;
}

/* PC表示 */
@media screen and (min-width: 768px) {
    #header {
        padding: 16px 20px;
    }

    #header .logo img {
        width: 180px;
    }

    .header-title {
        font-size: 22px;
    }

    .step {
        margin: 30px auto;
        max-width: 600px;
    }

    .step-header h2 {
        font-size: 24px;
    }

    .radio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .radio-grid-simple {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn-prev,
    .btn-next,
    .btn-submit {
        font-size: 18px;
        padding: 20px 32px;
    }
}

/* スマホ最適化 */
@media screen and (max-width: 480px) {
    #header {
        padding: 10px 15px;
    }

    #header .inner {
        gap: 12px;
    }

    #header .logo img {
        width: 120px;
    }

    .header-title {
        font-size: 15px;
        letter-spacing: 1px;
    }

    .step {
        margin: 15px 10px;
        border-radius: 8px;
    }

    .step-header {
        padding: 20px 15px 15px;
    }

    .step-header h2 {
        font-size: 18px;
    }

    .step-content {
        padding: 15px;
    }

    .step-actions {
        padding: 15px;
        gap: 10px;
    }

    .btn-prev,
    .btn-next,
    .btn-submit {
        padding: 16px 20px;
        font-size: 15px;
    }

    .confirmation-label {
        flex: 0 0 100px;
        font-size: 12px;
    }

    .confirmation-value {
        font-size: 14px;
    }

    .input-select {
        font-size: 18px;
    }

    .input-select option {
        font-size: 20px;
        line-height: 2;
    }

    /* 日程を縦並びに */
    .date-time-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
