* {
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* 上部ヘッダー */
.site-header {
    height: 60px;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 30;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

/* ロゴ画像 */
.site-logo {
    height: 40px;
    margin-left: 15px;
}

/* ハンバーガーボタン（左側に移動） */
.hamburger {
    width: 30px;
    cursor: pointer;
    z-index: 40;
    margin-left: 80px;
}

@media screen and (max-width: 600px) {
    .hamburger {
        margin-left: 0px;
    }
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: rgba(85, 115, 210);
    margin: 5px 0;
    transition: 0.4s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 左側スライドメニュー */
.menu {
    position: fixed;
    top: 60px;
    /* ヘッダーの高さ分ずらす */
    left: -300px;
    width: 300px;
    height: calc(100% - 60px);
    /* 残りの高さに調整 */
    color: #333;
    transition: left 0.3s ease;
    padding: 20px 20px 20px;
    /* padding-top はヘッダーの高さ不要に */
    z-index: 20;
    overflow-y: auto;
    background-color: #ffffff;
}

/* メニューが開いている状態 */
.menu.open {
    left: 0;
}

/* メニューリスト */
#menu-title {
    color: rgba(85, 115, 210);
    font-weight: bold;
    list-style: none;
    font-size: 20px;
    margin-bottom: 5px;
}

#menu-title-bottom {
    color: rgba(85, 115, 210);
    font-weight: bold;
    list-style: none;
    font-size: 20px;
    margin-top: -20px;
}

#menu-rink {
    color: rgba(85, 115, 210);
    font-family: "Roboto Gothic";
    list-style: none;
    margin-bottom: 5px;
    font-size: 13px;
}

.rinkline {
    margin-top: 10px;
    padding-bottom: 40px;
}

.menu ul {
    list-style: none;
    padding: 0 20px 20px;
    /* 内側余白調整 */
}

.menu li {
    padding: 10px 0;
}

.menu li a {
    color: #333;
    text-decoration: none;
    display: block;
}

.dli-external-link {
    display: inline-block;
    vertical-align: middle;
    color: rgba(85, 115, 210);
    line-height: 1;
    width: 0.75em;
    height: 0.75em;
    border: 0.08em solid currentColor;
    border-radius: 0.08em;
    background: #fff;
    box-sizing: content-box;
    position: relative;
    margin-left: auto;
}

/* 矢印部分 */
.dli-external-link>span {
    position: absolute;
    top: -0.15em;
    right: -0.15em;
    width: 45%;
    height: 45%;
    border: 0.08em solid currentColor;
    border-bottom: 0;
    border-left: 0;
    background: #fff;
    box-shadow: -0.08em 0.08em 0 0.08em #fff;
    box-sizing: border-box;
}

/* 矢印の先 */
.dli-external-link>span::before {
    content: '';
    position: absolute;
    top: -0.04em;
    right: -0.08em;
    width: 0.08em;
    height: 0.7em;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: top center;
}

/* リンク内のテキストとアイコンを左右に分ける */
#menu-rink a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

/* 本文 */
.box {
    margin: 160px 80px 0px 80px;
}

@media screen and (max-width: 600px) {
    .box {
        margin: 100px 30px 0px 30px;
    }
}

/* タイトル */
.box-top-container {
    width: 100%;
    gap: 20px;
    /* 任意で隙間を追加 */
}

.box-top {
    display: inline-block;
    vertical-align: middle;
    /* 要素を上下中央揃えにする */
}

#left {
    flex: 2;
    font-size: larger;
    margin-left: 30px;
    margin-right: 30px;
}

@media screen and (max-width: 1100px) {
    #left {
        margin-left: 0px;
    }
}

#right {
    flex: 4;
}

.font_test {
    color: rgba(85, 115, 210);
}

#title {
    color: rgba(85, 115, 210);
    
    list-style: none;
    font-size: 20px;
    margin-bottom: 5px;
}

/* スクロールエリア全体 */
.horizontal-scroll {
    overflow-x: auto;
    white-space: nowrap;
    padding: 20px 0;
    margin-top: 85px;
}

@media screen and (max-width: 600px) {
    .horizontal-scroll {
        margin-top: 80px;
    }
}

.scroll-cards {
    display: flex;
    gap: 44px;
}

.scroll-card-link {
    text-decoration: none;
    color: inherit;
}

.scroll-card {
    position: relative;
    width: 285px;
    height: 430px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.scroll-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0);
    /* 初期は透明 */
    transition: background-color 0.3s ease;
    pointer-events: none;
    z-index: 10;
    /* カード内部のテキストより上にしない */
}

.scroll-card:hover::after {
    background-color: rgba(255, 255, 255, 0.4);
    /* 半透明の白を上にかぶせる */
}

/* カード内の画像 */
.card-img {
    width: 285px;
    height: 285px;
    object-fit: cover;
}

.card-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: 245px;
    /* 285pxの画像の下辺+少し上に被せる形 */
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.card-title,
.card-text {
    padding-left: 10px;
    padding-right: 10px;
    word-wrap: break-word;
    /* 長い単語の折り返し */
    white-space: normal;
    /* 折り返し有効 */
    text-align: center;
    max-width: 100%;
    /* はみ出さない */
    box-sizing: border-box;
}

.card-title {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 500;
    /* Medium相当 */
    font-size: 16px;
    color: rgba(85, 115, 210);
    padding-top: 50px;
    padding-left: 10px;
    padding-right: 10px;
    text-align: center;
    border-radius: 8px;
}

.card-text {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 500;
    font-size: 12px;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
}

/* 左上の付箋ラベル */
.card-label {
    position: absolute;
    background-color: rgba(85, 115, 210);
    color: white;
    padding: 6px 14px;
    margin-top: 20px;
    font-size: 16px;
    font-weight: bold;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    z-index: 10;
}

/* プロジェクトサイト */
.project-sight {
    text-align: center;
    background-color: #f2f2f2;
    margin-top: 95px;
    padding: 100px 30px 100px 30px;
}

@media screen and (max-width: 600px) {
    .project-sight {
        margin-top: 80px;
        padding: 60px 30px 60px 30px;
    }
}

.project-sight-title {
    font-size: large;
    color: rgba(85, 115, 210);
    margin-bottom: 60px;
}

.project-sight-p {
    margin-top: 50px;
}


/* リンク先 */
.univ-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 60px;
}

.univ-info {
    margin: 30px;
    max-width: 400px;
    color: #4b77da;
}

.univ-info h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.univ-info h3 {
    font-size: 16px;
}

.univ-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    gap: 8px;
    text-decoration: none;
    font-size: 16px;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
    height: 50px;
    max-width: 400px;
    width: auto;
}

#hanareru a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
}

.btn-primary {
    background-color: rgb(75, 119, 218);
    color: #fff;
}

.btn-primary:hover {
    background-color: #3a62c2;
}

.btn-outline {
    border: 2px solid rgb(75, 119, 218);
    color: rgb(75, 119, 218);
    background-color: #ffffff;
}

.btn-outline:hover {
    color: #fff;
    background: rgba(85, 115, 210);
}

.material-symbols-outlined {
    font-size: 20px;
    vertical-align: middle;
}

/* フッター */
footer {
    padding: 23px;
    width: 100%;
    background: rgb(75, 119, 218);
    color: rgb(255, 255, 255);
    text-align: center;
}

@media screen and (max-width: 600px) {
    footer {
        padding: 18px;
        font-size: 10px;
        height: 50px;
    }
}