@charset "utf-8";

/* =================================================================
   1. PC Layout: Top Page Components (min-width: 769px)
   ================================================================= */
@media screen and (min-width: 769px) {
    /* Main Visual Slideshow (Vanilla JS + CSS Scroll Snap) */
    .mv {
        width: 960px;
        margin: 0 auto 32px;
        position: relative;
        overflow: hidden;
        border-radius: 4px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    .slider-wrapper {
        position: relative;
        width: 100%;
    }
    .slides {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none; /* Firefox用スクロールバー非表示 */
    }
    .slides::-webkit-scrollbar {
        display: none; /* Chrome/Safari用スクロールバー非表示 */
    }
    .slide {
        flex-shrink: 0;
        width: 100%;
        scroll-snap-align: start;
    }
    .slide img {
        width: 960px;
        height: 380px;
        object-fit: cover;
        display: block;
    }
    .slider-dots {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 10px;
        z-index: 10;
    }
    .dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: rgba(255,255,255,0.6);
        cursor: pointer;
        transition: background-color 0.3s;
    }
    .dot.active {
        background-color: #2c79bf;
        transform: scale(1.2);
    }

    /* Section Headings in Main Content */
    .mainContents section {
        margin-bottom: 45px;
    }
    .mainContents section h2 {
        background-color: #2c79bf;
        padding: 16px 10px 12px 28px;
        color: #FFF;
        font-size: 2.2rem;
        position: relative;
        margin-bottom: 25px;
        font-weight: bold;
        border-radius: 3px;
    }
    .mainContents section h2 span {
        font-size: 1.4rem;
        font-style: italic;
        margin-left: 12px;
        font-weight: normal;
        opacity: 0.9;
    }
    .mainContents section h2::after {
        position: absolute;
        content: "";
        width: 4px;
        height: 20px;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        background-color: #FFF;
    }

    /* News Block & "More" Button */
    .listBtn {
        text-align: right;
        margin-top: 15px;
    }
    .listBtn a.topBtn {
        display: inline-block;
        background-color: #eaeaea;
        padding: 6px 15px 6px 25px;
        color: #333;
        font-size: 1.3rem;
        font-weight: bold;
        border-radius: 3px;
        position: relative;
    }
    .listBtn a.topBtn::before {
        content: "〉";
        position: absolute;
        left: 10px;
        font-size: 1.0rem;
        color: #666;
    }
    .listBtn a.topBtn:hover {
        background-color: #dcdcdc;
        color: #000;
    }

    /* Access Map Block */
    .mainContents .access {
        display: flex;
        gap: 25px;
        margin-top: 20px;
    }
    .mainContents .access .gmap {
        width: 360px;
        height: 230px;
        border: solid 3px #eaeaea;
        border-radius: 4px;
        overflow: hidden;
    }
    .mainContents .access .gmap iframe {
        border: 0;
        width: 100%;
        height: 100%;
    }
    .mainContents .access .right {
        flex-grow: 1;
    }
    .mainContents .access .right h3 {
        border-bottom: solid 3px #2c79bf;
        position: relative;
        font-size: 1.8rem;
        padding: 0 0 8px 30px;
        margin-bottom: 20px;
        font-weight: bold;
        color: #333;
    }
    .mainContents .access .right h3::before {
        content: "🏫"; /* 元の icon_school.gif の代替絵文字 */
        position: absolute;
        left: 5px;
        top: 0;
        font-size: 1.8rem;
    }
    .mainContents .access .right .accessTxt,
    .mainContents .access .right .telTxt {
        border-bottom: dotted 1px #ccc;
        margin-bottom: 12px;
        padding-bottom: 12px;
        font-size: 1.5rem;
    }
    .mainContents .access .right .telTxt {
        font-size: 1.8rem;
        font-weight: bold;
        color: #2c79bf;
        border-bottom: none;
    }
}

/* =================================================================
   2. SP Layout: Top Page Components (max-width: 768px)
   ================================================================= */
@media screen and (max-width: 768px) {
    /* Main Visual Slideshow for SP */
    .mv {
        width: 100%;
        position: relative;
        overflow: hidden;
        background-color: #eee;
    }
    .slider-wrapper {
        width: 100%;
    }
    .slides {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
    }
    .slides::-webkit-scrollbar {
        display: none;
    }
    .slide {
        flex-shrink: 0;
        width: 100%;
    }
    .slide img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        display: block;
    }
    .slider-dots {
        position: absolute;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 8px;
        z-index: 10;
    }
    .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: rgba(255,255,255,0.6);
        cursor: pointer;
    }
    .dot.active {
        background-color: #2c79bf;
    }

    /* Headings for SP */
    .mainContents section {
        margin-bottom: 35px;
    }
    .mainContents section h2 {
        background-color: #2c79bf;
        padding: 12px 15px;
        color: #FFF;
        font-size: 1.8rem;
        margin-bottom: 20px;
        font-weight: bold;
    }
    .mainContents section h2 span {
        font-size: 1.2rem;
        font-style: italic;
        margin-left: 8px;
    }

    /* "More" Button for SP */
    .listBtn {
        text-align: center;
        margin-top: 15px;
    }
    .listBtn a.topBtn {
        display: block;
        width: 180px;
        margin: 0 auto;
        background-color: #eaeaea;
        padding: 10px;
        color: #333;
        font-size: 1.3rem;
        font-weight: bold;
        border-radius: 4px;
    }

    /* Access Section for SP */
    .mainContents .access {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .mainContents .access .gmap {
        width: 100%;
        height: 200px;
        border: solid 3px #eaeaea;
        box-sizing: border-box;
    }
    .mainContents .access .gmap iframe {
        width: 100%;
        height: 100%;
    }
    .mainContents .access .right h3 {
        border-bottom: solid 3px #2c79bf;
        font-size: 1.6rem;
        padding: 0 0 5px 25px;
        margin-bottom: 15px;
        font-weight: bold;
        position: relative;
    }
    .mainContents .access .right h3::before {
        content: "🏫";
        position: absolute;
        left: 2px;
        top: 0;
    }
    .mainContents .access .right .accessTxt,
    .mainContents .access .right .telTxt {
        border-bottom: dotted 1px #ccc;
        margin: 0 0 10px;
        padding-bottom: 10px;
        font-size: 1.4rem;
    }
    .mainContents .access .right .telTxt {
        font-size: 1.6rem;
        font-weight: bold;
        color: #2c79bf;
        border-bottom: none;
    }
}
