@charset "utf-8";

/* Header Styling */
html {
	font-family: "Zen Maru Gothic";
	font-weight: 500;
	font-style: bold;
 }

header {
    background-color: #4946a7;
    height: 100px;
    width: 100%;
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
}

nav {
    display: flex;
    height: 100px;
}

img.icon {
    border-radius: 50%;
    height: 75px;
    width: 75px;
    left: 25px;
    margin: 12.5px;
}

.nav-links {
    margin: 25px;
    margin-left: auto;
    font-size: 25px;
    height: 50px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    margin-left: 20px;
}

/* ハンバーガーメニューのスタイル */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-right: 20px;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
    z-index: 1100; /* ナビゲーションより前面に表示 */
}

.hamburger-menu span {
    background-color: white;
    height: 4px;
    width: 30px; /* 通常時の線の長さ */
    margin: 4px 0;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease; /* アニメーション */
    position: relative;
}

/* ハンバーガーメニューがアクティブな状態 */
.hamburger-menu.active span:nth-child(1) {
    width: calc(30px * sqrt(2)); /* 線の長さを維持 */
    transform: rotate(45deg) translate(0, 0); /* 真ん中の線の中点で交差 */
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0; /* 真ん中の線を非表示 */
}

.hamburger-menu.active span:nth-child(3) {
    width: calc(30px * sqrt(2)); /* 線の長さを維持 */
    transform: rotate(-45deg) translate(0, 0); /* 真ん中の線の中点で交差 */
}

/* モバイル用ナビゲーション */
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center; /* テキストを中央揃え */
    justify-content: flex-start; /* 上揃えを維持 */
    background-color: #4946a7;
    position: fixed;
    top: 100px; /* headerの下に配置 */
    right: -100%; /* 初期状態で画面外に配置 */
    height: calc(100% - 100px); /* headerを除いた高さ */
    width: 70%; /* 画面の70%を占める */
    padding: 20px; /* 内側の余白を調整 */
    transition: right 0.3s ease; /* スライドアニメーション */
    z-index: 1000;
}

.mobile-nav-links a {
    color: white;
    text-decoration: none;
    padding: 10px 0; /* 上下の間隔を調整 */
    font-size: 20px;
    text-align: center; /* テキストを中央揃え */
    width: 100%; /* リンクを幅いっぱいに */
}

/*Main Styling*/

main {
	margin: 0;
	margin-top: 100px;
	text-align: center;
	min-height: 100vh;
}

h1 {
	font-size: 56px;
	margin: 150px 0 100px;
}

.to-content {
	margin: 50px auto;
	min-width: 628px;
	width: calc(100% / 3);
	height: 500px;
	border: #000 solid 3px;
}

.to-content a{
	text-decoration: none;
	color: #000;
}

.content {
	width: 100%;
	height: 480px;
	padding-top: 20px;
}

.no-image {
	background-color: #808080;
	width: 80%;
	height: 50%;
	margin: 0 auto;
}

.no-image img {
	width: 48px;
	height: 48px;
	margin: 0;
	margin-top: calc((50% - 48px) / 2);
}

.on-image {
	width: 80%;
	height: 50%;
	margin: 0 auto;
}

.on-image img{
	width: 100%;
	height: 100%;
	margin: 0;
	margin-top: 0;
	border: #000 solid 1px;
}

.content-title {
	text-align: start;
	margin: 10px 0;
	margin-left: 10%;
}

/* Footer Styling */
footer {
    background-color: #808080;
    height: 200px;
    width: 100%;
    position: absolute;
    left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

footer p {
    font-size: 14px;
	color: #fff;
    text-align: center;
    margin: 0 auto 50px;
    padding: 0;
    width: 129px;
}

/* レスポンシブ設定 */
@media screen and (max-width: 820px) {
    .nav-links {
        display: none; /* 820px以下で非表示 */
    }

    .hamburger-menu {
        display: flex;
    }

    .mobile-nav-links.open {
        right: 0; /* スライドイン */
    }
}