:root {
    --fv-height: 400px;
    --nav-height: 50px;
    --separator: 6rem;
}
/* common parts */
.container {
    width: 80%;
    max-width: 1000px;
    padding-top: var(--nav-height);
    margin: 0 auto var(--separator);
}
hr.separator {
    color: var(--blue);
    width: 200px;
    border-style: solid;
    margin: var(--separator) auto 0;
}
.title-block {
    background-color: var(--white-blue);
    border-radius: 10px;
    padding: 20px 0;
    margin-bottom: 40px;
}
/* decoration parts */
.background-book {
    height: 300px;
    background-image: linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.5)), url('../image/decoration/book.jpg');
    background-color: rgba(255,255,255,0.5);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}
.background-scenery {
    height: 300px;
    background-image: linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.5)), url('../image/decoration/scenery.jpg');
    background-color: rgba(255,255,255,0.5);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* ナビバー */
header {
    position: fixed;
    z-index: 9999;
    top: 0;
    right: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
}
ul.menu {
    list-style-type: none;
    gap: 10px;
    padding: 10px 0;
}
ul.menu li:last-child {
    margin-right: 0; /* 最後の項目の右側の間隔を消す */
}
ul.menu li a {
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: bold;
}

/* ファーストビュー */
.fv {
    display: grid;
    grid-template-columns: 2fr 1fr;
    min-height: var(--fv-height);
    margin: var(--nav-height) 30px 30px 30px;
}
.fv .fv-image img {
    border-radius: 30px;
    height: 60vh;
}
.fv .fv-text__content {
    width: 80%;
}
.fv .subtitle {
    font-weight: bold;
    font-size: 2rem;
    padding-bottom: 10px;
    box-sizing: border-box;
    cursor: default;
}
.fv .main-title {
    padding-bottom: 40px;
    box-sizing: border-box;
    cursor: default;
}
/* お知らせ */
.content-notify {
    max-width: 800px;
    margin: 0 auto;
}
.content-notify li {
    display: grid;
    grid-template-columns: 120px auto;
}
.content-notify__date {
    padding-right: 10px;
}

/* 進路に応じた自由な選択肢 */

.content-category {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.content-category__box {
    padding: 2rem;
    box-sizing: border-box;
    border: 1px solid var(--gray);
    border-radius: 5px;
}

.content-category__box h3 {
    text-align: center;
    text-underline-offset: 3px;
}
a.content-category__button {
    color: white;
    background-color: var(--blue);
    padding: 8px 10px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: bold;
}

/* 学び方を知る */
table.content-study__table {
    border-top: solid 1px var(--gray);
    border-right: solid 1px var(--gray);
    border-spacing: 0;
    border-radius: 3px;
}
.content-study__table td {
    box-sizing: border-box;
    padding: 10px;
    border-bottom: solid 1px var(--gray);
    border-left: solid 1px var(--gray);
    border-radius: 3px;
}
.content-study__table tr td:nth-child(1) {
    width: 180px;
    font-weight: bold;
}
.content-study__table tr td:nth-child(2) {
    width: calc(100% - 180px);
}
.content-study__model img {
    width: 100%;
    border: 1px solid var(--gray);
    border-radius: 3px;
}

/* キャンパスライフ */
.content-introduction__description {
    padding-bottom: 10px;
}

.content-introduction__images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 10px;
}

.content-introduction__images img {
    height: 300px;
    border-radius: 3px;
}

.content-activity__content {
    display: flex;
    flex-wrap: wrap; /* 要素を折り返し可能にする */
    gap: 16px; /* 要素間の間隔を設定 */
}
.content-activity__content > div {
    width: calc(50% - 8px); /* 2列に分ける */
}
.content-activity__content iframe, .content-activity__content .content-activity__content__card {
    width: 100%; /* 各動画を親要素の幅に合わせる */
    aspect-ratio: 16 / 9; /* アスペクト比を維持 */
    border: none; /* 枠線を非表示 */
    border-radius: 3px;
}
.content-activity__content__card {
    position: relative; /* 子要素の絶対配置をサポート */
}
.content-activity__content__card a {
    position: absolute; /* 親のサイズに合わせる */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    text-decoration: none;
    font-size: 2rem;
    font-weight: bold;
    border-radius: 3px;
    padding: 30px;
    color: var(--dark-gray);
    background: linear-gradient(135deg, var(--light-blue), var(--orange));
    border: 1px solid var(--gray);
    transition: border 0.3s ease-in-out;
}
.content-activity__content__card a:hover {
    border: 1px solid var(--dark-gray);
}

/* 専任教員 */
.content-professor__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
    padding-bottom: 30px;
}
.content-professor__box {
    display: grid;
    grid-template-columns: 1fr 2fr;
    border: 1px solid var(--gray);
}
.content-professor__box img {
    width: 100%;
    height: 100%;
}
.content-professor__box h4 {
    padding-bottom: 5px;
}
.content-professor__box > div:nth-child(2) {
    padding: 10px;
    box-sizing: border-box;
    border-radius: 3px;
    position: relative;
}
.content-professor__box > div:nth-child(2) > div:last-child {
    position: absolute;
    bottom: 10px;
    right: 10px;
}
.content-professor__link {
    display: flex;
    justify-content: flex-end;
    column-gap: 8px;
    padding-top: 15px;
}
/* キャンパス・セミナー情報 */
.content-information {
    max-width: 800px;
    margin: 0 auto;
}

/* フッター */
.footer {
    background-color: var(--blue);
    padding: 40px 15px;
    text-align: center;
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--dark-gray);
}
.footer .footer-content p {
    margin: 5px 0;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    gap: 15px;
}
.footer-links li {
    display: inline;
}
.footer-links a {
    color: white;
    text-decoration: underline;
}