html {
    font-size: clamp(16px, 14px + 0.5vw, 32px);
    overflow-y: scroll; /* 常にスクロールバーを表示 */
}

body {
    margin: 0;
    font-family: "Noto Sans JP", sans-serif;

    /* 変数定義 */
    --color-light-green: #C8DC7A;
    --color-mint-green: #86CCC1;
    --color-light-pink: #EA9CC2;
    --color-emerald-green: #30A28D;
    --color-magenta: #E1619F;
    --color-aqua: #20AEE5;
    --color-gray: #333333;

    --content-width: 450px;
}

/* 汎用的なカラーセット */
.text-color-about {
    color: var(--color-light-green) !important;
}

.bg-color-about {
    background-color: var(--color-light-green) !important;
}

.text-color-curriculum {
    color: var(--color-mint-green) !important;
}

.bg-color-curriculum {
    background-color: var(--color-mint-green) !important;
}

.text-color-admission {
    color: var(--color-light-pink) !important;
}

.bg-color-admission {
    background-color: var(--color-light-pink) !important;
}

.text-color-special-event {
    color: var(--color-emerald-green)
}

.bg-color-special-event {
    background-color: var(--color-emerald-green) !important;
}

.text-color-magenta {
    color: var(--color-magenta);
}

.bg-color-magenta {
    background-color: var(--color-magenta) !important;
}

.container {
    background: var(--color-aqua);
}

.content-left,
.content-right {
    position: fixed;
    top: 0;
    width: calc((100% - var(--content-width)) * 0.5);

    /* スクロールを有効にするプロパティ */
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;

    transform-origin: top;
}

.content-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    left: 0;
}

/* 左部分 */
.content-left__heading {
    /* display: flex;
    flex-direction: column; */
    /* ↑調整 */
    align-items: center;
    color: #FFFFFF;
    margin-bottom: 20px;
    gap: 8px;

    word-break: keep-all;
    overflow-wrap: anywhere;
}

.content-left__heading__event-title {
    font-weight: 900;
    font-size: 20px;
}

.content-left__heading__department-name {
    font-weight: 900;
    font-size: 42px;
    line-height: 49px;
    /* margin-bottom: 12px; */
    /* ↑調整 */
    margin-top: 10px;
    /* ↑調整 */
}

.content-left__heading__eng {
    font-family: "Lato", sans-serif;
    font-size: 14px;
    line-height: 21px;
    margin-top: 12px;
    /* ↑調整 */
}

.menu {
    width: 100%;
    max-width: 300px;
    padding: 32px 20px;
    /* ↑調整 */

    color: #FFFFFF;
    font-weight: 900;
    font-size: 14px;

}

.menu__item {
    padding: 12px 0;

    font-size: 14px;
    text-align: center;
    border-width: 1px 0 0;
    border-style: solid;
    border-color: #FFFFFF;
    box-sizing: border-box;
}

.menu__item a {
    display: block;
}

.menu__item:last-child {
    border-width: 1px 0 1px;
}

.content-left__button-list {
    width: 100%;
    max-width: 300px;
}

.content-left__button {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 300px;
    height: 52px;
    margin: 24px auto;
    /* ↑調整 */
    padding: 15px 30px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-color: #FFFFFF;
    border-width: 1px;
    border-style: solid;
    border-radius: 100px;
    text-decoration: none;
    position: relative;
    overflow: visible;
    cursor: pointer;

    /* ホバー時アニメーション */
    transition: all 0.3s ease;
}

.content-left__button:hover {
    background: #FFFFFF;
    fill: var(--color-aqua);
    color: var(--color-aqua);
}

.content-left__button:hover .button-text::before {
    fill: var(--color-aqua);
}

/* 右部 */
.content-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    right: 0;
}

.content-right__main-visual {
    width: 300px;
    max-width: 400px;
    margin: 24px 0;
    /* ↑調整 */
}

.content-right__head {
    color: #FFFFFF;
    font-weight: 900;

    word-break: keep-all;
    overflow-wrap: anywhere;
}

.content-right__datetime {
    font-family: "Lato", sans-serif;
    font-size: 22px;
    line-height: 24px;
    word-break: normal;
    overflow-wrap: normal;
}

.content-right__location {
    margin-top: 12px;
    font-size: 38px;
    line-height: 42px;
    /* ↑調整 */
}

.content-right__floor {
    font-size: 2rem;
    margin-top: 4px;
    /* ↑調整 */
}

/* 中央部メイン */
.content-main {
    position: relative;

    width: 100%;
    min-width: 300px;
    max-width: var(--content-width); /* PCでの最大幅 */

    min-height: 100vh;

    margin: 0 auto;

    background-color: #FDFDFD; /* コンテンツ自体の背景色 */
    box-sizing: border-box; /* paddingをwidthに含める */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* 影で立体感を出す */
    overflow-x: hidden;
    overflow-y: visible; /* コンテンツがはみ出したらスクロールできるようにする */

    z-index: 10;
}

/* PCなどの横長デバイス向けの設定 */
@media (min-width: 1000px) {
    .content-left,
    .content-right {
        background-color: var(--color-aqua); /* PCでの左右の背景色 */
    }
}

/* 右側を消す */
@media (min-width: 663px) and (max-width: 999px) {
    /* ↑調整 */
    .content-right {
        display: none !important;
    }

    .content-left {
        width: calc(100% - var(--content-width));
    }

    .content-main {
        margin: 0 0 0 auto;
    }
}

/* スマホは両サイド消す */
@media (max-width: 662px) {
    /* ↑調整 */
    .content-left,
    .content-right {
        display: none !important;
    }

    button.floating-menu-button {
        display: block;
    }
}

.content-separator {
    position: absolute;
    width: 100%;
    height: 80px;
    transform: translateY(-40px);

    background-image: url("../image/separator_loop.png");
    background-blend-mode: color; /* または screen, overlay, soft-light など */
    background-repeat: repeat-x;
    background-size: contain;

    animation: scrollBackground 5s linear infinite;
}

.content-separator--reverse {
    animation: scrollBackground-Reverse 5s linear infinite;
}

/* 背景をスクロールさせるための@keyframesルール */
@keyframes scrollBackground {
    from {
        background-position: 0 0; /* 開始位置（左端） */
    }
    to {
        background-position: -212px 0; /* 終了位置（右端に達したら最初に戻る） */
    }
}

@keyframes scrollBackground-Reverse {
    from {
        background-position: 0 0; /* 開始位置（左端） */
    }
    to {
        background-position: 212px 0; /* 終了位置（右端に達したら最初に戻る） */
    }
}

.flex-content {

}


/* トップページ */
.page-header-section {
    padding: 16px 16px 32px;
    color: #ffffff;
    font-weight: 900;
    background-color: var(--color-aqua);
    overflow: hidden;
}

.main-title {
    font-size: 14px;
}

.department-name {
    font-size: 2rem;
}

.main-title-eng {
    font-family: "Lato", sans-serif;
    font-size: 12px;
}

.event-datetime,
.event-location {
    font-size: 17px;
}

.page-header__details {
    margin-top: 10px;
}

.page-header__main-visual {
    width: calc(160%);
    margin-left: -35%;
}

.description {
    font-size: 14px;
    font-weight: 500;
}


/* --- スタイル付きボタン --- */
.styled-button {
    display: flex;
    align-items: center;
    justify-content: center;
    /* max-width: 300px; */
    /* ↑調整 */
    height: 52px;
    margin: 32px auto;
    padding: 15px 30px;
    background-color: #E1619F;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    position: relative;
    overflow: visible;
    cursor: pointer;

    /* 影 */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);

    /* ホバー時アニメーション */
    transition: all 0.3s ease;
}

.styled-button:hover {
    filter: brightness(90%);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(2px);
}

.button-text {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.button-text::before {
    content: url("../image/arrow_button.svg");
    margin-right: 5px;
}

.button-point-icon {
    position: absolute;
    top: -15px;
    right: -5px;
    width: 65px;
    height: auto;
    padding: 5px;
    transform: rotate(15deg);
}

/* 説明コンテンツ */
.department-intro-section {
    padding-top: 1px;
    padding-bottom: 72px;
    /* ↑調整 */

    background-image: url("../image/bg_loop_transparent.png");
    background-repeat: repeat;
    background-position: -20px -20px;
}

.department-intro {
    margin-top: 64px;
     /* ↑調整 */
    padding: 0 16px;
}

.department-intro__header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.department-intro__heading {
    color: var(--color-gray);
    font-size: 24px;
    font-weight: 900;
}

.department-intro__en-title {
    margin-top: 8px;

    font-family: "Lato", sans-serif;
    font-size: 16px;
    font-weight: 900;
    font-style: italic;
}

.description {
    color: var(--color-gray);
    font-weight: 500;
    font-size: 14px;
}

.description--other,
.description--header{
    color: #ffffff;
}

.copyright {
    text-align: center;
    /* ↑調整 */
    margin-top: 4px;
    /* ↑調整 */
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 500;
}

/* --- Slick固有のスタイル調整 --- */
.department-intro__slideshow,
.event-point__slideshow {
    width: auto;
    /* スライダーの高さは、中身の画像に合わせて自動調整されます */
    /* あるいは固定高さを設定する場合は height: 300px; overflow: hidden; など */
    margin: 20px auto 20px;
    position: relative;
    box-sizing: border-box;
}

.department-intro--curriculum .slick-prev,
.department-intro--curriculum .slick-next
{
    background: var(--color-mint-green);
}

.department-intro--admission .slick-prev,
.department-intro--admission .slick-next
{
    background: var(--color-light-pink);
}

.special-event__item .slick-prev,
.special-event__item .slick-next
{
    background: var(--color-emerald-green);
}

.slick-slider-area img {
    display: block;
    width: 200px;
    height: auto;
    border-radius: 16px;
    margin: 0 16px;

    aspect-ratio: 16 / 9;
    /* ↑調整 */
    object-fit: cover;
    /* ↑調整 */
}

.slick-list {
    overflow: visible;
}

.slick-prev,
.slick-next {
    font-size: 0;
    line-height: 1;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    width: 32px;
    height: 32px;
    padding: 0;
    cursor: pointer;
    background: var(--color-light-green);
    border-radius: 50%; /* 丸形 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* 影 */
    z-index: 10;
}

.slick-prev {
    left: 0px; /* 左端に配置 */
}

.slick-next {
    right: 0px; /* 右端に配置 */
}

/* 矢印アイコンをSVG画像で表示 */
.slick-prev:before,
.slick-next:before {
    content: url('../image/arrow.svg'); /* SVG画像のパス */
    display: block;
    width: 16px; /* SVGのサイズ調整 */
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scaleX(-1);
}

.slick-next:before {
    transform: translate(-50%, -50%);
}

/* オープンキャンパス特別企画のスタイル */
.special-event-section {
    padding: 32px 16px 104px;
    /* ↑調整 */
    background-color: #F3DF45;
}

.special-event__header {
    position: relative;
    width: 100%;
    height: 200px;
    text-align: center;
}

.special-event__heading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;

    color: var(--color-gray);
    font-size: 24px;
    font-weight: 900;
}

.special-event__back-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    color: #FFFFFF;
    font-family: "Lato", sans-serif;
    font-weight: 900;
    font-size: 52px;
    line-height: 56px;
    text-align: center;
    white-space: nowrap;
}

.special-event__description {
    font-weight: 500;
    font-size: 14px;
    line-height: 21px;
}

.special-event__item {
    margin-top: 42px;
}

.event-point {
    display: flex;
    overflow: hidden;
    align-items: center;
    margin-top: 40px;
    /* ↑調整 */
    margin-bottom: 16px;
}

.event-point__header {
    display: flex; /* 子要素（POINT, 01, タイトル）を横並びにする */
    align-items: baseline; /* テキストのベースラインを揃える */
    gap: 10px; /* 要素間の隙間 */
    margin-bottom: 20px; /* ヘッダーと下のコンテンツの間の余白 */
}

.event-point__number-group {
    margin-right: 16px;
    text-align: center;
}

.event-point__number-label {
    font-size: 16px;
    font-weight: bold;
    color: #fff; /* 白抜き文字 */
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.2); /* 読みやすくするための軽い影 */
    line-height: 1; /* 行の高さを調整 */
}

.event-point__number {
    font-size: 42px;
    font-weight: bold;
    color: #fff; /* 白抜き文字 */
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.2); /* 読みやすくするための影 */
    line-height: 1; /* 行の高さを調整 */
}

.event-point__heading {
    font-size: 20px;
    font-weight: 700;
    color: #333; /* 黒色 */
}

.event-point__sub-heading {
    font-size: 12px;
}

.special-event__location,
.special-event__time {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px auto;

    color: var(--color-emerald-green);
    font-size: 14px;
    font-weight: 900;
}

.map-icon {
    width: 16px;
    height: auto;
}

/* other-group */
.other-section {
    padding: 104px 16px 72px;
    /* ↑調整 */
    background-color: var(--color-aqua);
}

/* 大学情報部 */
.university-info-section {
    padding: 104px 16px;
    background-color: var(--color-aqua);

    color: white;
    text-align: center;
}

.university-info__heading {
    font-size: 14px;
    font-weight: 700;
}

.university-info__text {
    margin: 24px auto;
    font-size: 12px;
    font-weight: 500;
}

.google-map iframe {
    /* margin-top: 24px; */
    /* ↑調整 */
    border-radius: 16px;
}

.logo-list {
    margin: 24px 0 24px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.link-logo_image {
    height: 32px;
}


/* 詳細ページ */
.detail-page {
    min-height: 100%;
    background-color: #FDFDFD;
    font-weight: 500;
    font-size: 14px;
    color: var(--color-gray);
}

.detail-page-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--color-aqua);

    padding-bottom: 20px;
    color: #FFFFFF;
}

.detail-page-header__img {
    width: 110%;
    margin-top: -60%;
}

.detail-page-header__title {
    margin-top: 16px;
    font-weight: 900;
    font-size: 24px;
    letter-spacing: 1px;
}

.detail-page-header__sub {
    font-family: "Lato", sans-serif;
    font-weight: 500;
    font-style: Italic;
    font-size: 16px;
}

.detail-page-content {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 44px 16px 104px;
    /* ↑調整 */

    background-image: url("../image/bg_loop_transparent.png");
    background-repeat: repeat;
    background-position: -20px -20px;
}

.detail-page__normal-text {
    margin: 24px 0 0 0;
    /* ↑調整 */
    font-size: 14px;
    font-weight: 500;
}

.detail-page__slideshow {
    margin-top: 20px;
    width: 100%; 
}

.detail-page__slideshow .slick-prev,
.detail-page__slideshow .slick-next {
   background-color: var(--color-aqua);
}

.detail-page__decorated-title {
    display: flex;
    flex-direction: column;
    align-items: center;

    margin: 64px 0 0px;
    /* ↑調整 */

    font-weight: 700;
    font-size: 20px;
    letter-spacing: 2px;

    text-align: center;
    /* ↑調整 */
}

.detail-page__decorated-title img {
    width: 140px;
}

.detail-page__sub-heading {
    display: inline-block;

    font-size: 16px;
    font-weight: 700;

    margin-top: 24px;
    /* ↑調整 */

    background-image: linear-gradient(
        to bottom,
        transparent 50%,
        #fdd835 50%
    );

    background-size: 100% 100%; /* 背景画像を要素の幅いっぱいに、高さも要素に合わせる */
    background-repeat: no-repeat; /* 背景画像を繰り返さない */
    background-position: bottom;
}

.teacher-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 16px 0 0 0;
    /* ↑調整 */
    gap: 16px;
}

.teacher-list__row {
    display: flex;
    justify-content: space-evenly;
}

.teacher-item__item {
    width: 140px;
}

.teacher-item__image {
    max-width: 120px;
    width: 100%;
    height: auto;
    margin: auto;
    border-radius: 50%;
    border-style: solid;
    border-width: 1px;
    border-color: #D9D9D9;
}

.teacher-item__name {
    text-align: center;
    margin: 8px 0;
    font-size: 14px;
    font-weight: 500;
}

.teacher-item__subject {
    font-size: 11px;
    font-weight: 400;
    text-align: center;
}

.teacher-item__subject__inner { /* 文字を左寄せしたまま中央寄せする */
    display: inline-block;
    text-align: left;
}

.detail-page__curriculum-structure {
    width: 100%;
    /* max-width: 360px;*/
    /* ↑調整 */
    padding: 0 10px 24px 10px;
    /* ↑調整 */
    margin-top: 24px;
    /* ↑調整 */
    border-style: solid;
    border-color: var(--color-aqua);
    border-width: 1px;
    border-radius: 10px;
}

.cross-mark {
    width: 30px;
    margin: 24px 24px 0 24px;
}

.accordion {
    width: 100%;
    padding: 10px;

    border-width: 1px 0 0;
    border-style: solid;
    border-color: var(--color-aqua);
    box-sizing: border-box;
}

.accordion:last-child {
    border-width: 1px 0 1px;
}

.accordion__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    font-size: 16px;
    font-weight: 700;
}

.accordion__content {
    overflow: hidden;
}

.accordion[open] .accordion__content-inner {
    margin: 20px 0;
}

.curriculum__class-intro {
    width: 100%;
    margin-top: 20px;
}

.curriculum-class__header {
    margin: 8px 0;

    font-size: 14px;
    font-weight: 700;
}

.curriculum-class__description {
    font-size: 14px;
    font-weight: 500;
}

.curriculum-class {
    margin: 36px 0;
}

/* 展開ボタンのスタイル */
.toggle-button {
    position: relative;
    min-width: 24px;
    width: 24px;
    height: 24px;
    display: block;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.toggle-button:hover {
    transform: scale(0.92);
}

.toggle-button:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 2px;
    border-radius: 10px;
    background: var(--color-aqua);
    display: block;
}
.toggle-button:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 95%;
    border-radius: 10px;
    background: var(--color-aqua);
    display: block;
    transition: 0.2s ease-in-out;
}

.accordion[open] .toggle-button {
    transform: rotate(180deg);
}
.accordion[open] .toggle-button:after {
    height: 0;
}

.thumbnail-image {
    width: 100%;
    /* max-width: 300px; */
    /* ↑調整 */
    margin: 0 auto;
    border-radius: 10px;

    aspect-ratio: 16 / 9;
    /* ↑調整 */
    object-fit: cover;
    /* ↑調整 */
}

/* 受験案内 */
.admission-guidance {
    width: 100%;
    margin-top: 24px;
}

.admission-guidance__sub-item {
    margin: 10px 0;
    /* ↑調整 */
    padding: 8px;

    border-style: solid;
    border-color: var(--color-aqua);
    border-width: 1px;
    border-radius: 10px;

    font-size: 14px;
    font-weight: 500;
}

.admission-guidance__sub-header {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
}

.question-list {
    margin: 20px 0 0;
    width: 100%;
}

.question-list__item {

}

.question-list__answer {
    margin: 20px 0 12px;

    font-size: 14px;
    font-weight: 700;
}

/* フローティング部分の実装 */
.floating-menu-button {
    position:fixed;
    display: none;
    width: 60px;
    height: 60px;
    bottom: 10px;
    right: 10px;
    z-index: 110;

    border-radius: 50%;
    background-color: rgba(32, 174, 229, 0.8);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);

    cursor: pointer;
}

/* メニューボタンのアイコン */
.floating-menu-button span {
    display: block;
    position: absolute;
    margin: 0 auto;
    left: 15px;
    width: 30px;
    height: 2px;
    background-color: #FFFFFF;
    border-radius: 4px;
    transition: all 0.3s;
}
.floating-menu-button span:nth-child(1) {
    top: 20px;
}
.floating-menu-button span:nth-child(2) {
    top: 30px;
}
.floating-menu-button span:nth-child(3) {
    top: 40px;
}

.floating-menu-button.is-active span:nth-child(1) {
    transform: translateY(10px) rotate(-45deg);
}

.floating-menu-button.is-active span:nth-child(2) {
    opacity: 0;
}

.floating-menu-button.is-active span:nth-child(3) {
    transform: translateY(-10px) rotate(45deg);
}


.floating-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    visibility: hidden;
    z-index: 100;

    position: fixed;
    width: 90vw;
    min-width: 300px;
    max-width: 420px;

    left: 0;
    bottom: 40px;
    right: 0;
    margin: auto;
    padding: 16px;
    border-radius: 24px;

    background-color: rgba(32, 174, 229, 0.8);

    transform: translateY(100vw);
    transition: 0.3s ease;
}

.floating-menu.is-open {
    visibility: visible;
    transform: translateY(0);
}

@media (min-width: 1138px) and (max-width: 1201px) {
    .content-right__main-visual {
        margin: 54px 0;
        /* ↑調整 */
    }
}

@media (min-width: 451px) and (max-width: 662px) {
    body {
        --content-width: 100%;
        /* ↑調整 */
    }
}


