/* Hair Works天 予約サイト - ページ固有のスタイル */

/* メニューセクション */
.menu-section {
    margin-bottom: 30px;
}

.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.menu-item {
    background: #1a2a42;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.menu-item:hover {
    background: #243552;
    border-color: #ff8c42;
}

.menu-item.selected {
    border-color: #ff8c42;
    background: #243552;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.menu-name {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
}

.menu-price {
    font-size: 16px;
    font-weight: bold;
    color: #ff8c42;
    background: rgba(255, 140, 66, 0.1);
    padding: 8px 15px;
    border-radius: 15px;
    border: 1px solid #ff8c42;
}

.menu-details {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ff8c42;
}

.menu-details.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

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

.menu-description {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.7;
}

.menu-worktime {
    color: #ff8c42;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 14px;
}

.reservation-notes {
    background: rgba(255, 140, 66, 0.1);
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #ff8c42;
}

.reservation-notes h4 {
    color: #ff8c42;
    font-size: 16px;
    margin-bottom: 12px;
}

.reservation-notes ul {
    list-style: none;
    color: #ffffff;
}

.reservation-notes li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.reservation-notes li:before {
    content: "•";
    color: #ff8c42;
    position: absolute;
    left: 0;
    font-size: 14px;
}

/* カレンダー */
.calendar-container {
    background: #1a2a42;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid #ff8c42;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.calendar-nav {
    background: #ff8c42;
    color: #0a1628;
    border: none;
    padding: 10px 14px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.2s ease;
    min-height: 40px;
    min-width: 40px;
    flex-shrink: 0;
}

.calendar-nav:hover,
.calendar-nav:focus {
    background: #e67a35;
    outline: 2px solid #ff8c42;
    outline-offset: 2px;
}

.month-year {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    flex-grow: 1;
}

.calendar-wrapper {
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
    max-width: 100%;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #243552;
    color: #ffffff;
    border: 1px solid transparent;
    min-height: 36px;
    min-width: 36px;
    box-sizing: border-box;
    width: 100%;
    padding: 2px;
}

.calendar-day-number {
    font-size: 13px;
    font-weight: 500;
}

.calendar-day-staff {
    font-size: 8px;
    color: #ff8c42;
    font-weight: bold;
    margin-top: 1px;
    line-height: 1;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 100%;
}

.calendar-day:hover {
    background: #2a3f5f;
    border-color: #ff8c42;
}

.calendar-day.selected {
    background: #ff8c42;
    color: #0a1628;
    font-weight: bold;
    border-color: #ff8c42;
}

.calendar-day.disabled {
    background: #0f1a2e;
    color: #666;
    cursor: not-allowed;
    border-color: #333;
}

.calendar-day.holiday {
    background: #0f1a2e;
    color: #666;
    position: relative;
}

.calendar-day.holiday::after {
    content: "休";
    position: absolute;
    bottom: 1px;
    right: 1px;
    font-size: 7px;
    color: #ff4757;
    font-weight: bold;
}

.calendar-day.disabled:hover {
    transform: none;
    border-color: #333;
}

/* 時間スロット */
.time-slots-container {
    background: #1a2a42;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid #ff8c42;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: none;
}

.time-slots-container.show {
    display: block;
}

.time-selection-title {
    color: #ffffff;
    margin-bottom: 15px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
}

/* スタッフ表示付きタイトルのスタイル */
.time-selection-title.with-staff {
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.1), rgba(255, 140, 66, 0.05));
    border: 2px solid #ff8c42;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    position: relative;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.time-slot {
    background: #243552;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    color: #ffffff;
    font-weight: 500;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-sizing: border-box;
}

.time-slot:hover {
    background: #2a3f5f;
    border-color: #ff8c42;
}

.time-slot.selected {
    border-color: #ff8c42;
    background: rgba(255, 140, 66, 0.2);
    color: #ff8c42;
}

.time-slot.disabled {
    background: #0f1a2e;
    color: #666;
    cursor: not-allowed;
    border-color: #333;
}

/* フォーム */
.form-container {
    background: #1a2a42;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid #ff8c42;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #ffffff;
}

.form-input,
.form-select {
    width: 100%;
    padding: 15px;
    border: 2px solid #ff8c42;
    border-radius: 8px;
    font-size: 16px;
    background: #243552;
    color: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus {
    outline: 2px solid #ff8c42;
    outline-offset: 2px;
    border-color: #ff8c42;
    background: #2a3f5f;
}

.form-input::placeholder {
    color: #999;
}

.form-select option {
    background: #243552;
    color: #ffffff;
}

.companion-section {
    border-top: 2px solid #ff8c42;
    padding-top: 25px;
    margin-top: 25px;
}

.companion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.companion-title {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
}

.remove-companion {
    background: #ff4757;
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.remove-companion:hover,
.remove-companion:focus {
    background: #ff3742;
    outline: 2px solid #ff4757;
    outline-offset: 2px;
}

/* 確認ページ */
.confirmation-section {
    background: #1a2a42;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid #ff8c42;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.confirmation-title {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
}

.confirmation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 140, 66, 0.2);
    box-sizing: border-box;
}

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

.confirmation-label {
    font-weight: bold;
    color: #ffffff;
}

.confirmation-value {
    color: #ff8c42;
    font-weight: bold;
    text-align: right;
}

/* 重要なお願いセクション */
.important-agreement {
    background: #2a1f1f;
    border: 2px solid #ff8c42;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.important-agreement h4 {
    color: #ff8c42;
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

.agreement-text {
    color: #ffffff;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 14px;
    padding: 15px;
    background: rgba(255, 140, 66, 0.1);
    border-radius: 8px;
    border-left: 4px solid #ff8c42;
}

.agreement-checkbox {
    text-align: center;
}

.checkbox-container {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    color: #ffffff;
    user-select: none;
    padding: 10px;
}

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

.checkmark {
    height: 20px;
    width: 20px;
    background-color: #243552;
    border: 2px solid #ff8c42;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s ease;
}

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

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

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

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

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 4px;
    height: 10px;
    border: solid #0a1628;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 予約ボタンの無効状態 */
.confirm-button:disabled {
    background: #666;
    color: #999;
    cursor: not-allowed;
    opacity: 0.5;
}

.confirm-button:disabled:hover {
    background: #666;
    transform: none;
}

/* 完了ページ */
.completion-container {
    text-align: center;
    background: #1a2a42;
    padding: 35px 25px;
    border-radius: 10px;
    border: 1px solid #ff8c42;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.completion-title {
    font-size: 26px;
    font-weight: bold;
    color: #ff8c42;
    margin-bottom: 25px;
}

.reservation-number {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    background: rgba(255, 140, 66, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 2px solid #ff8c42;
}

.completion-message {
    font-size: 16px;
    color: #ffffff;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* メール注意書きセクション - 修正版 */
.email-notice {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
}

.email-notice-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.email-notice-text {
    color: #ffffff;
    line-height: 1.6;
    flex: 1;
}

.email-notice-text strong {
    color: #ffc107;
    font-size: 16px;
    display: block;
    margin-bottom: 5px; /* 修正: 8pxから5pxに変更 */
    font-weight: bold;
}

.check-reservation-button {
    background: transparent;
    color: #ff8c42;
    border: 2px solid #ff8c42;
    padding: 15px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    transition: all 0.2s ease;
    min-height: 44px;
}

.check-reservation-button:hover,
.check-reservation-button:focus {
    background: #ff8c42;
    color: #0a1628;
    outline: 2px solid #ff8c42;
    outline-offset: 2px;
}
