@charset "utf-8";

/* メインセクション */
.contact-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    min-height: 100vh;
}

.contact-container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

/* カレンダーボックス */
.calendar-box {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,74,120,0.1);
    padding: 40px;
    border: 1px solid rgba(0,74,120,0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.calendar-box:hover {
    transform: translateY(-5px);
}

.calendar-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #004A78, #0066cc);
}

.calendar-box h2 {
    color: #004A78;
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.calendar-box h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #004A78;
    border-radius: 2px;
}

.calendar-box p {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.calendar-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 10px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.calendar-container iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
    background: #fff;
}

/* 横並びコンテナ */
.contact-flex-container {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

/* LINEボックス */
.line-box {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,185,0,0.1);
    padding: 40px;
    border: 1px solid rgba(0,185,0,0.1);
    position: relative;
    overflow: hidden;
    flex: 1;
    transition: transform 0.3s ease;
}

.line-box:hover {
    transform: translateY(-5px);
}

.line-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #00B900;
}

.line-qr {
    width: 180px;
    height: 180px;
    margin: 30px auto;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.line-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.line-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #00B900;
    color: #fff;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,185,0,0.2);
    width: fit-content;
    margin: 0 auto;
}

.line-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,185,0,0.3);
}

.line-btn img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

/* 電話ボックス */
.phone-box {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,74,120,0.1);
    padding: 40px;
    border: 1px solid rgba(0,74,120,0.1);
    position: relative;
    overflow: hidden;
    flex: 1;
    transition: transform 0.3s ease;
}

.phone-box:hover {
    transform: translateY(-5px);
}

.phone-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #004A78;
}

.phone-number {
    margin: 60px 0 30px;
    text-align: center;
}

.phone-number a {
    color: #004A78;
    font-size: 36px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
}

.phone-number a:hover {
    color: #0066cc;
}

.phone-icon::before {
    content: '';
    width: 36px;
    height: 36px;
    margin-right: 15px;
    background: url('../img/phone-icon.webp') no-repeat center;
    background-size: contain;
}

.phone-note {
    font-size: 14px;
    color: #666;
    margin-top: 20px;
    padding: 15px;
  }

/* レスポンシブ対応 */
/* タブレット: 768px-1199px */
@media screen and (max-width: 1199px) and (min-width: 768px) {
    .contact-section {
        padding: 40px 0;
    }

    .calendar-box {
        padding: 30px;
    }

    .calendar-box h2 {
        font-size: 28px;
    }

    .calendar-container iframe {
        height: 500px;
    }
}

/* モバイル: 767px以下 */
@media screen and (max-width: 767px) {
    .feature-top img[src="img/Group 152.webp"] {
        content: url("../img/Group 206.webp");
    }

    .contact-section {
        padding: 30px 0;
    }

    .calendar-box {
        padding: 25px;
        border-radius: 15px;
    }

    .calendar-box h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .calendar-box p {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .calendar-container {
        padding: 15px;
    }

    .calendar-container iframe {
        height: 450px;
    }

    .contact-flex-container {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }

    .line-box, .phone-box {
        padding: 25px;
    }

    .line-qr {
        width: 150px;
        height: 150px;
        margin: 20px auto;
    }

    .line-btn {
        padding: 12px 25px;
        font-size: 15px;
    }

    .phone-number span {
        font-size: 28px;
    }

    .phone-btn {
        padding: 12px 25px;
        font-size: 15px;
    }

    .phone-icon::before {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }
}

/* 小さなモバイル: 479px以下 */
@media screen and (max-width: 479px) {
    .contact-section {
        padding: 20px 0;
    }

    .calendar-box {
        padding: 20px;
        border-radius: 12px;
    }

    .calendar-box h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .calendar-box p {
        font-size: 14px;
        padding: 0 10px;
    }

    .calendar-container {
        padding: 10px;
    }

    .calendar-container iframe {
        height: 400px;
    }

    .contact-flex-container {
        gap: 15px;
        margin-bottom: 20px;
    }

    .line-box, .phone-box {
        padding: 20px;
    }

    .line-qr {
        width: 130px;
        height: 130px;
        margin: 15px auto;
    }

    .line-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .line-btn img {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }

    .phone-number span {
        font-size: 24px;
    }

    .phone-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .phone-icon::before {
        width: 18px;
        height: 18px;
        margin-right: 8px;
    }

    .phone-note {
        font-size: 13px;
        padding: 12px;
    }
}