/* Hair Works天 予約サイト - レスポンシブ対応 */

/* 旧Safari対応 */
@supports not (display: grid) {
    .calendar-grid {
        display: flex;
        flex-wrap: wrap;
    }

    .calendar-day {
        width: calc(100% / 7);
        box-sizing: border-box;
    }

    .time-slots {
        display: flex;
        flex-wrap: wrap;
    }

    .time-slot {
        width: calc(50% - 6px);
        margin: 3px;
    }
}

/* タブレット対応 */
@media screen and (max-width: 768px) {
    .container {
        padding: 80px 16px 16px;
    }

    .header-content {
        padding: 0 16px;

    }

    .header-logo {
        height: 50px;
        max-height: 50px;
    }
    
    .header-logo .logo-image,
    .header-logo img {
        height: 200px;
        max-height: 160px;
    }
    
    .header-logo::after {
        font-size: 12px;
    }

    .header-map-button {
        padding: 6px 12px;
        font-size: 12px;
        min-height: 32px;
    }

    .main-reservation-button {
        padding: 16px 32px;
        font-size: 16px;
        max-width: 280px;
    }

    .button-icon {
        font-size: 18px;






    }

    .button-text {
        font-size: 14px;




    }

    .button-arrow {
        font-size: 16px;

    }
    
    /* スマホでのボタン順序変更（日時選択画面のみ） */
    #datetime-page .button-group {
        flex-direction: column-reverse;
        gap: 12px;

    }

    .button-group {
        flex-direction: column;
        gap: 12px;
    }

    .back-button,
    .confirm-button {
        width: 100%;

    }

    .calendar-container {
        padding: 15px;
    }
    
    .calendar-grid {
        gap: 3px;
    }
    
    .calendar-day {
        min-height: 32px;
        min-width: 32px;
        font-size: 12px;
    }
    
    .time-slots {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }

    .time-slot {
        font-size: 13px;
        padding: 10px;
    }

    /* ロゴサイズのモバイル対応 */
    .shop-logo {
        height: 100px;
    }
    
    .shop-logo-image {
        height: 350px;
    }

    .matsukaru-logo {
        height: 100px;
    }

    .matsukaru-logo-image {
        height: 100px;
    }

    /* 新しい要素のモバイル対応 */
    .shop-subtitle {
        font-size: 14px;
    }
    
    .shop-catchphrase {
        font-size: 13px;
        padding: 8px;
    }
    
    .notice-item {
        padding: 12px;
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .notice-icon {
        font-size: 16px;
        align-self: flex-start;
    }
    
    .notice-text {
        font-size: 13px;
    }
    
    .hours-item {
        padding: 10px 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .day-label,
    .time-value {
        font-size: 14px;

    }

    .access-section {
        padding: 12px;
    }
    
    .access-subtitle {
        font-size: 15px;
    }

    .access-text {
        font-size: 13px;
    }

    .navigation-note {
        margin-top: 10px;
        padding: 10px;
    }
    
    .note-title,
    .note-text {
        font-size: 12px;
    }

    .parking-info {
        padding: 12px;

        flex-direction: column;
        gap: 5px;
    }
    
    .parking-text {
        font-size: 14px;
    }
}

/* スマートフォン対応 */
@media screen and (max-width: 480px) {
    .header-content {
        height: 60px;
    }

    .container {
        padding: 70px 12px 12px;
    }
    
    .calendar-grid {
        gap: 2px;
    }
    
    .calendar-day {
        min-height: 28px;
        min-width: 28px;
        font-size: 11px;
    }
    
    .shop-subtitle {
        font-size: 13px;
    }
    
    .shop-catchphrase {
        font-size: 12px;
        padding: 6px;
    }
    
    /* スマホでのボタン順序変更を強化 */
    #datetime-page .button-group {
        flex-direction: column-reverse;
        gap: 10px;


    }

    /* さらに小さいロゴサイズ調整 */
    .shop-logo {
        height: 80px;
    }
    
    .shop-logo-image {
        height: 300px;
    }
    
    .matsukaru-logo {
        height: 80px;
    }
    
    .matsukaru-logo-image {
        height: 80px;
    }

    .important-notices,
    .business-hours,
    .access-info {
        padding: 15px;
        margin-bottom: 20px;

    }

    .section-title {



        font-size: 18px;
        margin-bottom: 15px;
    }

    .notice-item {
        padding: 10px;
        gap: 8px;






    }

    .notice-text {
        font-size: 12px;
        line-height: 1.5;
    }

    .hours-item {
        padding: 8px 10px;

    }

    .day-label,
    .time-value {
        font-size: 13px;
    }

    .access-section {
        padding: 10px;
    }

    .access-subtitle {
        font-size: 14px;
        margin-bottom: 8px;

    }

    .access-text {

        font-size: 12px;

    }

    .navigation-note {
        margin-top: 8px;
        padding: 8px;
    }
    
    .note-title,
    .note-text {
        font-size: 11px;
    }
    
    .parking-info {
        padding: 10px;
    }
    
    .parking-icon {
        font-size: 18px;
    }
    
    .parking-text {
        font-size: 13px;
    }
}

/* 極小画面対応 */
@media screen and (max-width: 320px) {
    .container {
        padding: 70px 8px 8px;
    }
    
    .header-content {
        padding: 0 8px;
    }

    .shop-logo {
        height: 60px;


    }

    .shop-logo-image {
        height: 250px;

    }

    .matsukaru-logo {
        height: 60px;
    }

    .matsukaru-logo-image {
        height: 200px;




    }

    .main-reservation-button {
        padding: 12px 24px;

        font-size: 14px;
        max-width: 260px;
        gap: 10px;
    }

    .button-icon {
        font-size: 16px;
    }

    .button-text {
        font-size: 12px;
    }

    .button-arrow {
        font-size: 14px;

    }

    /* 極小画面でもボタン順序変更 */
    #datetime-page .button-group {
        flex-direction: column-reverse;
        gap: 8px;


    }

    .calendar-day {
        min-height: 24px;
        min-width: 24px;
        font-size: 10px;
    }

    .time-slots {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 6px;
    }

    .time-slot {
        font-size: 12px;
        padding: 8px;
        min-height: 36px;
    }
}

/* 高解像度ディスプレイ対応 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .header-logo .logo-image,
    .header-logo img,
    .shop-logo-image,
    .matsukaru-logo-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* プリント用スタイル */
@media print {
    .main-header,
    .button-group,
    button {
        display: none !important;
    }
    
    .container {
        padding: 20px !important;
        max-width: none !important;
    }

    .page {
        display: block !important;

    }

    .page:not(.active) {
        display: none !important;


    }

    body {
        background: white !important;
        color: black !important;
    }

    .shop-info,
    .important-notices,
    .business-hours,
    .access-info {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
}
