/* カスタムスタイル */

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
    letter-spacing: 0.03em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 200;
    letter-spacing: 0.08em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* フォーム選択肢のフォント */
.form-input label span,
.form-input .calendar-placeholder,
.form-input select,
.form-input input[type="text"],
.form-input input[type="email"],
.form-input input[type="tel"],
.form-input textarea {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* チェックボックスとラジオボタンのラベル */
.form-input label {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* 相談方法・予約内容の選択肢テキスト */
.form-input label span {
    font-weight: 300;
    letter-spacing: 0.02em;
    font-size: 0.95rem;
}

/* ステップ表示のスタイル */
.step-box {
    padding: 0.5rem 1rem;
    background: #f5f5f0;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #666;
    min-width: 140px;
    text-align: center;
}

/* PC向けの大きなサイズ */
@media (min-width: 1024px) {
    .step-box {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        min-width: 180px;
    }
}

.step-box.active {
    background: #e8e5d8;
    color: #333;
    font-weight: 500;
}

/* フォーム行のレイアウト（ラベル左、入力右） */
.form-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: #374151;
    font-weight: 500;
    padding-top: 0.75rem;
}

/* PC向けの大きなサイズ */
@media (min-width: 1024px) {
    .form-row {
        grid-template-columns: 240px 1fr;
        gap: 2.5rem;
    }
    
    .form-label {
        font-size: 1.05rem;
    }
    
    .form-input input,
    .form-input select,
    .form-input textarea {
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }
    
    .form-input label span {
        font-size: 1rem;
    }
}

.form-input {
    flex: 1;
}

/* 必須/任意バッジ */
.required-badge,
.optional-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 3px;
    min-width: 40px;
    text-align: center;
}

.required-badge {
    background: #c5a977;
    color: white;
}

.optional-badge {
    background: #e5e7eb;
    color: #6b7280;
}

/* タイル選択ボタンのスタイル */
.tile-button {
    padding: 1.25rem 1.5rem;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.95rem;
    color: #374151;
    font-weight: 400;
}

.tile-button:hover {
    border-color: #3d6a83;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.tile-button.active {
    background: #3d6a83;
    color: white;
    border-color: #3d6a83;
    box-shadow: 0 4px 12px rgba(61, 106, 131, 0.3);
}

.tile-button.active:hover {
    background: #2d5569;
    transform: translateY(-2px);
}

/* 日付入力の最小日付設定（今日以降） */
input[type="date"] {
    min-height: 48px;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* セレクトボックスのスタイル */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%233d6a83'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* フォーカス時のアニメーション */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(197, 169, 119, 0.1);
}

/* 送信ボタンのホバー効果 */
#submitBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#submitBtn:disabled:hover {
    transform: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* チェックボックスのカスタムスタイル */
input[type="checkbox"] {
    accent-color: #c5a977;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .tile-button {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    #submitBtn {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .form-label {
        padding-top: 0;
    }
    
    .step-box {
        min-width: 100px;
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}

/* スムーズなスクロール */
html {
    scroll-behavior: smooth;
}

/* カードの影を微調整 */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#thankYouMessage {
    animation: fadeIn 0.5s ease-out;
}

/* カレンダーUI */
.calendar-wrapper {
    position: relative;
}

.calendar-trigger {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
    min-height: 48px;
}

.calendar-trigger:hover {
    border-color: #3d6a83;
}

.calendar-trigger.active {
    border-color: #c5a977;
    box-shadow: 0 0 0 3px rgba(197, 169, 119, 0.1);
}

.calendar-placeholder {
    color: #9ca3af;
}

.calendar-trigger::after {
    content: '▼';
    font-size: 0.75rem;
    color: #6b7280;
    transition: transform 0.2s;
}

.calendar-trigger.active::after {
    transform: rotate(180deg);
}

.calendar-popup {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 1000;
    min-width: 320px;
    display: none;
    animation: fadeIn 0.2s ease-out;
}

.calendar-popup.show {
    display: block;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    background: #fdfcfb;
}

.calendar-nav {
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    color: #3d6a83;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.calendar-nav:hover {
    background: #f3f4f6;
    color: #2d5569;
}

.calendar-month-year {
    font-weight: 500;
    color: #374151;
    font-size: 0.95rem;
}

.calendar-body {
    padding: 0.75rem;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.calendar-weekdays > div {
    text-align: center;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    padding: 0.5rem 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #374151;
    transition: all 0.2s;
    position: relative;
}

.calendar-day:hover {
    background: #f3f4f6;
}

.calendar-day.other-month {
    color: #d1d5db;
    cursor: not-allowed;
}

.calendar-day.other-month:hover {
    background: transparent;
}

.calendar-day.today {
    background: #fef3c7;
    color: #92400e;
    font-weight: 600;
}

.calendar-day.selected {
    background: #3d6a83;
    color: white;
    font-weight: 600;
}

.calendar-day.selected:hover {
    background: #2d5569;
}

.calendar-day.disabled {
    color: #d1d5db;
    cursor: not-allowed;
    background: #f9fafb;
}

.calendar-day.disabled:hover {
    background: #f9fafb;
}

/* 個人情報保護方針 */
.privacy-policy-box {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #fafafa;
    max-height: 400px;
    overflow-y: auto;
    position: relative;
}

.privacy-policy-box::before {
    content: '';
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, #fafafa 0%, rgba(250, 250, 250, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.privacy-policy-box::after {
    content: '';
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to top, #fafafa 0%, rgba(250, 250, 250, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.privacy-policy-content {
    padding: 1.5rem;
    color: #374151;
    line-height: 1.8;
}

.privacy-policy-title {
    font-size: 1rem;
    font-weight: 300;
    color: #4a6b7f;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    letter-spacing: 0.05em;
}

.privacy-policy-title:first-child {
    margin-top: 0;
}

.privacy-policy-text {
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.privacy-policy-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.privacy-policy-list li {
    font-size: 0.875rem;
    color: #4b5563;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.8;
}

.privacy-policy-list li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: #3d6a83;
    font-weight: 600;
}

/* スクロールバーのスタイリング */
.privacy-policy-box::-webkit-scrollbar {
    width: 8px;
}

.privacy-policy-box::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.privacy-policy-box::-webkit-scrollbar-thumb {
    background: #c5a977;
    border-radius: 4px;
}

.privacy-policy-box::-webkit-scrollbar-thumb:hover {
    background: #b89a66;
}

/* 確認ページ */
.confirm-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.confirm-label {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 400;
}

.confirm-value {
    font-size: 1.05rem;
    color: #374151;
    font-weight: 300;
    line-height: 1.8;
}

/* PC向けの大きなサイズ */
@media (min-width: 1024px) {
    .confirm-row {
        grid-template-columns: 240px 1fr;
        gap: 2.5rem;
        padding: 1.5rem 0;
    }
    
    .confirm-label {
        font-size: 1.05rem;
    }
    
    .confirm-value {
        font-size: 1.1rem;
    }
}

.confirm-value:empty::before {
    content: '（未入力）';
    color: #d1d5db;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .calendar-popup {
        min-width: 100%;
        left: 0;
        right: 0;
    }
    
    .privacy-policy-box {
        max-height: 300px;
    }
    
    .privacy-policy-content {
        padding: 1rem;
    }
    
    .confirm-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .confirm-label {
        font-weight: 500;
        color: #374151;
    }
}

