@charset "utf-8";



.header-container {
    background-color: #f0f0f0;
    padding: 0.5%;
    text-align: center;
}

.header-container h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    padding: 5px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.map-link {
    display: inline-flex;
    align-items: center;
    color: #1e73be; /* アイコン色（青系） */
    text-decoration: none;
    transition: color 0.3s;
}

.map-link:hover {
    color: #0f4a8a; /* ホバー時の色 */
}

.map-icon {
    margin-left: 200%;
    width: 70px;
    height: 70px;
}






.main-content {
    padding: 20px 15%;
    line-height: 1.8;
}

.main-content-background-color {
    background-color: #e2ebf5;
}

.main-content h2 {
    color: #eb5527;
    margin-top: 40px;
    font-weight: bold;
    text-align: center;
}

.main-content h3 {
    color: #3b79bb;
    margin-top: 20px;
    text-align: center;
    font-size: 1.25rem;
}

.main-content p {
    /*margin: 10px 0;*/
    font-size: 15px;
    line-height: 200%;
    margin-top: 2%;
}




.button-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 320px;
    margin: 0 auto;
    margin-bottom: 7.5%;
    margin-top: 2.5%;
}

.custom-button {
    position: relative;
    background-color: #3071b7;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 20px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center; /* 中央寄せ */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.custom-button:hover {
    background-color: #255a94;
    transform: translateY(-1px);
}

.button-text {
    text-align: center;
}

.arrow {
    position: absolute;
    right: 20px; /* 右端の余白 */
    font-size: 1.2rem;
    font-weight: bold;
}




.sub-content {
    padding: 20px 10%;
    line-height: 1.6;
    margin-top: 5%;
}

.sub-content h3 {
    font-weight: bold;
    font-size: 1.5rem;
    text-align: center;    
}

.sub-content p {
    font-size: 13px;
    line-height: 160%;
    text-align: center;
}


.sub-header {
    margin-top: 20px;
    /*margin-bottom: 5px;*/
}

.sub-header p {
    font-size: 18px;
    line-height: 160%;
    font-weight: 800;
    text-decoration: underline;
}

.flex-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    align-items: center;
}

.flex-container img {
    max-width: 100%;
    border-radius: 10px;
    /*box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
}

.teacher-container {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 2%;
    margin-bottom: 5%;
}

.teacher-container img {
    max-width: 150px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.teacher-container h3 {
    flex: 1;
}



.highlight {
    font-size: 1.2rem;
    font-weight: bold;
    color: #118fd2;
    background-color: #e6f4fa;
    padding: 10px 15px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 20px;
}

.achievements {
    padding: 20px;
    font-size: 1.2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    color: #118fd2;
    background-color: #f0f8ff;
}

.quote {
    font-style: italic;
    background-color: #f0f8ff;
    border-left: 4px solid #118fd2;
    padding: 10px 20px;
    margin: 10px 0;
    border-radius: 5px;
}

.highlight-large {
    font-size: 1.25rem;
    font-weight: bold;
    color: #0056b3;
    text-align: center;
    margin-top: 20px;
    background-color: #e6f4fa;
    padding: 15px;
    border-radius: 10px;
}

.highlight-large-2 {
    font-weight: bold;
    color: #118fd2;
    text-align: center;
    margin-top: 60px;
    /*margin-bottom: 30px;*/
    background-color: #e6f4fa;
    padding: 15px;
    border-radius: 10px;
}
.highlight-large-2 p{
    font-size: 2.0rem;
    line-height: 160%;
    position: relative;
    display: inline; /* テキストの幅に合わせる */
    background: linear-gradient(to bottom, transparent 80%, #ffd700 80%);
    font-weight: 800;
    padding: 0 2px; /* 文字に沿うよう、余白を最小限に */
}

.head-space{
    margin-top: 10%;
}

.head-space-half{
    margin-top: 7.5%;
}

/** 単純な開くもの **/
details {
    font-family: Arial, sans-serif;
    margin-bottom: 10px;
}

summary {
    cursor: pointer;
    font-weight: bold;
    color: #1b65c4;
}

details[open] summary {
    color: #333; /* 展開中の色を変更する例 */
}




.content {
    overflow: hidden;
    max-height: 200px; /* 初期状態で見せたい高さ */
    transition: max-height 0.3s ease, color 0.3s ease;
    position: relative;
}
.content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px; /* フェードアウトの高さ */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
}

.content.expanded {
    /*max-height: 1000px; /* 必要に応じて十分大きな値に */
    max-height: 100%;
}
.content.expanded::after {
    display: none; /* 展開後はフェードアウト効果を消す */
}

.read-more {
    color: #118fd2;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 2.5%;
    display: inline-block;
    text-decoration: underline;
}


.university-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 5%;
    margin-bottom: 15%;
}

.university-card {
    background: #118fd2;
    color: #fff;
    text-align: center;
    padding: 15px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 15px;
}

.university-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}



/**カルーセル　画像*/
.carousel-osaka {
    position: relative;
    /*width: 80%;*/
    max-width: 50%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    height: 400px;
}

.carousel-osaka2 {
    position: relative;
    /*width: 80%;*/
    max-width: 30%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.carousel-track {
    display: flex;
    transition: transform 1.0s ease-in-out;
}

.carousel-track2 {
    display: flex;
    transition: transform 1.0s ease-in-out;
}

.carousel-slide {
    flex: 0 0 auto;
    width: 100%;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

/* ナビゲーションボタン */
.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.carousel-nav button {
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.carousel-nav button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.yellow-underline {
    text-decoration: underline;
    text-decoration-color: yellow;
    text-decoration-thickness: 3px;
}


/* アクセス詳細 */
.access-container {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 2%;
    margin-bottom: 5%;
    margin-left: 10%;
    /*margin-right: 5%;*/
}

.access-container img {
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.access-container h3 {
    flex: 1;
}

.access-container p{
    font-size: 20px;
}
/* アクセス詳細 */


.sp-display{
    display: none;
}

.pc-display{
    display: block;
}






/* カルーセル */
.carousel {
  position: relative;
  max-width: 900px; /* 必要に応じて調整 */
  margin: auto;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
  position: relative;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

.text-overlay {
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: left;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  width: 100%;
  font-family: serif;
  border-radius: 8px;
}

.text-overlay h2 {
  font-size: 2.0rem;
  margin: 0 0 30px;
}

.text-overlay p {
  font-size: 1rem;
  line-height: 1.5;
}

.text-overlay h6 {
  font-size: 1rem;
  line-height: 1.5;
  background-color: #3071b9;
  padding: 0.3em 1.0em;
  display: inline-block;
  margin-top: 0.75em;
}

/* ドットのスタイル */
.dots {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: white;
}





@media (max-width: 768px) {
    .sp-display{
        display: block;
    }

    .pc-display{
        display: none;
    }




    .main-content {
        padding: 12% 5%;
        line-height: 1.8;
    }


    .point-section {
        margin: 15% 5% !important;
    }



    .header-container {
        padding: 0.5%;
    }

    .header-container h1 {
        font-size: 1.5rem;
    }
    .map-icon {
        margin-left: 60%;
        width: 45px;
        height: 45px;
    }




    .button-container {
         margin-bottom: 25%;
         margin-top: 0;
    }


    .sub-content {
        margin-top: 5%;
    }


    .flex-container {
        flex-direction: column;
    }

    .flex-container img {
        max-width: 100%;
    }

    .teacher-container {
        flex-direction: column;
        text-align: center;
        margin-top: 15%;
        margin-bottom: 15%;
    }

    .teacher-container img {
        /*margin-bottom: 3px;*/
    }


    /* アクセス詳細 */
    .access-container {
        flex-direction: column;
        text-align: center;
        margin-top: 15%;
        margin-bottom: 15%;
        margin-left: 0%;
        margin-right: 0%;
    }

    .access-container img {
        max-width: 450px;
    }

    .access-container p{
        font-size: 16px;
    }
    /* アクセス詳細 */



    .highlight-large {
        font-size: 1.0rem;
        margin-bottom: 20px;
    }

    .highlight-large-2 p{
        font-size: 1.3rem;
    }


    .main-content {
    
    }


    .main-content h2 {
        color: #eb5527;
        /*font-size: 2.75vh;*/
        margin-bottom: 20px;
        text-align: center;
    }

    .head-space{
        margin-top: 30%;
    }

    .head-space-half{
        margin-top: 12.5%;
    }

    .university-grid {
        grid-template-columns: repeat(3, 1fr); /* スマホは3列 */
        margin-top: 10%;
        margin-bottom: 35%;
    }
    .university-card {
        font-size: 15px;
    }
    .carousel-osaka{
        max-width: 100%;
        height: 100%;
    }

    .carousel-osaka2{
        max-width: 100%;
        height: 100%;
        margin-top: -25px;
    }

    .read-more {
        margin-bottom: 5%;
    }
}



