
/* Instagram Section */
.instagram-section {
    padding: 80px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}



.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.instagram-header {
    text-align: center;
    margin-bottom: 50px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.instagram-icon {
    width: 45px;
    height: 45px;
}

.instagram-title {
    font-size: 42px;
    font-weight: 600;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.instagram-subtitle {
    font-size: 18px;
    color: #888;
    letter-spacing: 2px;
    font-weight: 300;
    margin-top: 5px;
}

/* Grid Layout */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.instagram-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background: #fff;
    transition: transform 0.3s ease;
}

.instagram-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.instagram-link {
    display: block;
    width: 100%;
    height: 100%;
}

.instagram-image-wrapper {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #f0f0f0;
}

.instagram-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.instagram-item:hover .instagram-image {
    transform: scale(1.1);
}

/* Overlay */
.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
}

.overlay-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.overlay-text {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* More Button */
.instagram-footer {
    text-align: center;
    margin-top: 40px;
    width: fit-content;
    margin: auto;
}
.instagram-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: #ffb6c1;
    color: white;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(255, 182, 193, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.instagram-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(255, 182, 193, 0.4);
}

.btn-arrow {
    transition: transform 0.3s ease;
    position: absolute;
    top: 50%;
    bottom: 50%;
    transform: translateY(-50%);
}



/* Tablet: max-width 1024px */
@media screen and (max-width: 1024px) {
    .instagram-section {
        padding: 60px 0;
    }

    .container {
        padding: 0 30px;
    }

    .instagram-header {
        margin-bottom: 40px;
    }

    .instagram-title {
        font-size: 36px;
    }

    .instagram-subtitle {
        font-size: 16px;
    }

    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .overlay-icon {
        font-size: 28px;
    }

    .overlay-text {
        font-size: 13px;
    }

    .instagram-more-btn {
        padding: 12px 30px;
        font-size: 15px;
    }
}

/* Mobile: max-width 600px */
@media screen and (max-width: 600px) {
    .instagram-section {
        padding: 40px 0;
    }

    .container {
        padding: 0 15px;
    }

    .instagram-header {
        margin-bottom: 30px;
    }

    .header-content {
        gap: 10px;
    }

    .instagram-icon {
        width: 35px;
        height: 35px;
    }

    .instagram-title {
        font-size: 28px;
    }

    .instagram-subtitle {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .instagram-item {
        border-radius: 10px;
    }

    .instagram-item:active {
        transform: scale(0.98);
    }

    .instagram-overlay {
        opacity: 0;
    }

    .instagram-item:active .instagram-overlay {
        opacity: 1;
    }

    .overlay-icon {
        font-size: 24px;
    }

    .overlay-text {
        font-size: 12px;
    }

    .instagram-footer {
        margin-top: 30px;
    }

    .instagram-more-btn {
        padding: 10px 25px;
        font-size: 14px;
        border-radius: 30px;
    }

    .btn-arrow {
        width: 16px;
        height: 16px;
    }
}

.instagram-gradient a{
　background: -webkit-linear-gradient(135deg, #427eff 0%, #f13f79 70%) no-repeat;
  background: linear-gradient(135deg, #427eff 0%, #f13f79 70%) no-repeat;/*グラデーション①*/
}


.instagram-gradient:hover a{
  color: #fff; 
}

.tel-area a{
  pointer-events: auto;
}

#header .side-btn.tel-btn{
  top: 335px;
  height: auto;
}

#header .side-btn.tel-btn a{
 background-color: #fff !important;
 color: #af8d67 !important;
 box-shadow: 3px 3px 6px -2px #c3c3c3, 3px 1px 3px rgba(255, 255, 255, 0.8);
  pointer-events: auto;
}

#header .side-btn.tel-btn .vertical-write{
transform: rotate(270deg);
    display: inline-block;  
}

#header .side-btn.tel-btn span{
  letter-spacing: 0.01em;
}

/* Reservation Section */
.reservation-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #fff 0%, #fef9f5 100%);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-weight: 700;
    color: #7e6b5a;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #7e6b5a;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 16px;
    color: #666;
    margin-top: 15px;
}

/* Calendar Wrapper */
.calendar-wrapper {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Month Indicator */
.month-indicator {
    text-align: center;
    margin-bottom: 30px;
}

.month-text {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    padding: 10px 25px;
    background: #fcf5ec;
    border-radius: 25px;
    display: inline-block;
}

/* Date List */
.date-list {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.date-list::-webkit-scrollbar {
    height: 8px;
}

.date-list::-webkit-scrollbar-track {
    background: #fcf5ec;
    border-radius: 10px;
}

.date-list::-webkit-scrollbar-thumb {
    background: #7e6b5a;
    border-radius: 10px;
}

/* Date Item Base */
.date-item {
    min-width: 120px;
    text-align: center;
}

.date-header {
    margin-bottom: 10px;
}

.date-number {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.date-day {
    display: block;
    font-size: 14px;
    color: #666;
}

.date-day.saturday {
    color: #4169e1;
}

.date-day.sunday {
    color: #dc143c;
}

/* Availability Box Base */
.availability-box {
    padding: 15px 10px;
    border-radius: 12px;
    border: 2px solid;
    transition: all 0.3s ease;
    cursor: pointer;
}

.availability-icon {
    display: block;
    font-size: 24px;
    margin-bottom: 5px;
}

.availability-text {
    display: block;
    font-size: 12px;
    font-weight: 500;
}

/* 状態別スタイル - HTMLのclassで制御 */

/* 余裕あり（緑） */
.date-available .availability-box {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}

.date-available .availability-icon::before {
    content: "○";
}

.date-available .availability-text::before {
    content: "余裕あり";
}

/* .date-available .availability-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.2);
} */

/* 残り少し（オレンジ） */
.date-few .availability-box {
    background: #fff3e0;
    border-color: #ff9800;
    color: #e65100;
}

.date-few .availability-icon::before {
    content: "▲";
}

.date-few .availability-text::before {
    content: "残り少し";
}

/* .date-few .availability-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.2);
}
 */
/* 空きなし（赤） */
.date-none .availability-box {
    background: #ffebee;
    border-color: #f44336;
    color: #c62828;
/*     cursor: not-allowed;
 */}

.date-none .availability-icon::before {
    content: "⭕";
}

.date-none .availability-text::before {
    content: "空きなし";
}

/* 休診日（グレー） */
.date-closed .availability-box {
    background: #f5f5f5;
    border-color: #bdbdbd;
    color: #757575;
}

.date-closed .availability-icon::before {
    content: "休";
}

.date-closed .availability-text::before {
    content: "休診日";
}

/* Legend */
.legend {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 25px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-icon {
    font-size: 18px;
}

.legend-available {
    color: #2e7d32;
}

.legend-few {
    color: #e65100;
}

.legend-none {
    color: #c62828;
}

.legend-closed {
    color: #757575;
}

.legend-text {
    font-size: 14px;
    color: #666;
}

/* Other Dates Button */
.other-dates {
    text-align: center;
}

.other-dates-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* .other-dates-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.3);
} */

.btn-arrow {
    transition: transform 0.3s ease;
}

.other-dates-btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-body {
    padding: 25px;
}

/* Static Calendar */
.month-display {
    text-align: center;
    margin-bottom: 20px;
}

.month-display h4 {
    font-size: 20px;
    color: #333;
    font-weight: 600;
}

.static-calendar {
    margin-bottom: 20px;
}

.weekday-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.weekday-header span {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    padding: 8px;
}

.weekday-header span:first-child {
    color: #dc143c;
}

.weekday-header span:last-child {
    color: #4169e1;
}

.calendar-dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

/* Calendar Date Base */
.calendar-date {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    position: relative;
}

/* Calendar Date States - classで制御 */
.calendar-date.empty {
    border: none;
    background: transparent;
}

.calendar-date.past {
    background: #f5f5f5;
    color: #bdbdbd;
}

.calendar-date.sunday {
    color: #dc143c;
}

.calendar-date.saturday {
    color: #4169e1;
}

/* カレンダー内の状態表示 */
.calendar-date.cal-available {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
    cursor: pointer;
}

.calendar-date.cal-available:hover {
    background: #c8e6c9;
}

.calendar-date.cal-few {
    background: #fff3e0;
    border-color: #ff9800;
    color: #e65100;
    cursor: pointer;
}

.calendar-date.cal-few:hover {
    background: #ffe0b2;
}

.calendar-date.cal-none {
    background: #ffebee;
    border-color: #f44336;
    color: #c62828;
    cursor: not-allowed;
}

.calendar-date.cal-closed {
    background: #fafafa;
    border-color: #bdbdbd;
    color: #757575;
    cursor: not-allowed;
}

/* Calendar Legend */
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
}

.cal-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #666;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot.cal-available {
    background: #4caf50;
}

.dot.cal-few {
    background: #ff9800;
}

.dot.cal-none {
    background: #f44336;
}

.dot.cal-closed {
    background: #bdbdbd;
}

/* Modal Footer */
.modal-footer {
    padding: 0 25px 25px;
}

.reserve-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reserve-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.3);
}

/* Responsive: Tablet */
@media screen and (max-width: 1024px) {
    .date-list {
        gap: 12px;
    }

    .date-item {
        min-width: 100px;
    }

    .legend {
        flex-wrap: wrap;
        gap: 15px;
    }
}

/* Responsive: Mobile */
@media screen and (max-width: 600px) {
    .reservation-section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .calendar-wrapper {
        padding: 20px;
    }

    .date-list {
        gap: 10px;
    }

    .date-item {
        min-width: 85px;
    }

    .date-number {
        font-size: 16px;
    }

    .availability-box {
        padding: 12px 8px;
    }

    .availability-icon {
        font-size: 20px;
    }

    .legend {
        gap: 10px;
        padding: 15px;
    }

    .legend-item {
        flex: 1 1 45%;
    }

    .modal-content {
        width: 95%;
        border-radius: 15px;
    }

    .calendar-legend {
        flex-wrap: wrap;
        gap: 10px;
    }

    .cal-legend-item {
        flex: 1 1 45%;
    }
}
