@charset "UTF-8";

/* 標準的なフォント（本文などに使用） */
html {
    font-size: 62.5%; /* rem単位でのフォントサイズ計算を容易にするため(フォントサイズを10pxで揃える)。 62.5％=10pxなので、×10で計算できる */
    font-family: "Noto Sans JP", sans-serif;
    font-style: normal;
    line-height: 1.6;
    color: #34495e;
    box-sizing: border-box;
    scroll-behavior: smooth;
    margin-top: 0 !important;
}

/* 全体の背景色 */
body {
    background-color: #f8f8f8;
}

a:hover{
    cursor: pointer;
}



/*  hamburger ------------------------*/
/* hamburgerメニュー */
.menu_btn {
    position: fixed;
    color: #f8f8f8;
    top: 15px;
    right: 20px;
    z-index: 30;
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    cursor: pointer;
}


/*  hamburgerメニュー画面 */
.menu {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 20;
	width: 100vw;
	height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
    margin: 0 auto;
    background:  #2c3e50;
    color: #f8f8f8;
}

.menu_item {
	width: 100%;
	height: auto;
	padding: 1em 1em;
	text-align: center;
	box-sizing: border-box;
    font-size: 1.6rem;
}

/* ★メニュー画面のアニメーション 画面外から画面外へ*/
.menu {
	transform: translatey(-200vh);/* 100vwはスクロールバーの上越えて画面いっぱいという意味なので-100VWは画面外に移動している */
	transition: all 0.4s ease-in-out;
}

.menu.is_active {
	transform: translatey(0);/* 画面を見えるところに */
}


/* ハンバーガーメニューのパーツ */
.menu_btn span {
	display: block; /* 非表示に */
}

.menu_btn {
	width: 50px;
	height: 44px;
}

.menu_btn span {
    position: absolute;
    left: 25px;
    width: 26px;
    height: 2px;
    background-color: #00b2df;
    transition: all .6s;
}

.menu_btn span:nth-of-type(1) {/* .menu_btnの中にある  spanの1番目という意味 */
	top: 14px;
}

.menu_btn span:nth-of-type(2) {
	top: 23px;
}

.menu_btn span:nth-of-type(3) {
	top: 32px;
}


/* ★ハンバーガーメニューのパーツのアニメーション ×になる*/
.menu_btn.is_active span:nth-of-type(1) {
	transform: translateY(9px) rotate(-45deg);
}

.menu_btn.is_active span:nth-of-type(2) {
	opacity: 0;
}

.menu_btn.is_active span:nth-of-type(3) {
	transform: translateY(-9px) rotate(45deg);
}

/* PC用ナビゲーションのスタイル */
.nav_pc {
    display: none; /* モバイル初期状態では非表示 */
}


/*  nav pc*/
@media (width>768px) {
    .hamburger {
        display: none;
    }

    .nav_pc {
        font-size: 1.8rem;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px 0;
        width: 100%;
        margin-bottom: 25px;
    }

    .nav_pc ul {
        display: flex;
        padding: 0;
        margin: 0;
    }

    .nav_item {
        background-color: #506e8c;
        padding: 10px 30px;
        border-left: 1px solid #6f9ac6;
    }

    .nav_item a {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-decoration: none;
    }

    .nav_item:hover{
        background-color: #6f9ac6;
        transition: background-color 0.3s ease;
    }

    .nav_item a .nav_dt {
        color: #f8f8f8;
    }

    .nav_item a .nav_dd {
        color: #a8babb;
        font-size: 1.3rem;
    }

    .nav_item:first-child {
        border-left: none;
    }
}




/* header ------------------------*/
header {
    position: relative;
    width: 100%;
    height: auto;
    padding: 10px 0 0 10px;
    background-color: #f8f8f8;
}

header::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.1) 1px, transparent 1px); /* 縦線のみのパターン */
    background-size: 10px 10px; /* パターンの繰り返し単位 */
    background-color: #3a5c7d; /* パターンのベースカラー */
    opacity: 0.8;
}

header p{
    text-align: end;
    font-size: 1.4rem;
}


header h1{
    color: #2c3e50;
    display: inline-block;
    padding: 20px 0 20px 0;
    font-size: 1.6rem;
}


@media (width>768px) {
    header h1{
        font-size: 2rem;
        padding-left: 20px;
    }
}



/* kv ------------------------*/
.kv_wrapper {
    background: linear-gradient(135deg, #2c3e50, #34495e); /* ダークネイビーから濃いグレーのグラデーション */
    color: #ecf0f1;
    padding: 50px 15px;
    text-align: center;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px; /* 下のコンテンツとの余白 */
    overflow: hidden;
    position: relative;
    z-index: -2;
}

.kv_wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 15px 15px; /* グリッドのサイズ*/
    opacity: 0.7; /* 透明度 */
    z-index: -1;
}

.kv_wrapper p {
    margin: 10px 0;
    line-height: 1.5;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}


.kv_wrapper p:nth-child(1) {/* 1つ目のpタグ「第7回 朝礼」 */
    font-size: 1.2rem;
    font-weight: bold;
    color: #e9eff1;
    margin-bottom: 8px;
    letter-spacing: 0.03em; /* スマホ向けに文字間を調整 */
}

.kv_wrapper p:nth-child(2) {/* 2つ目のpタグ「自分が身につけたWebサイト制作の技術」 */
    font-size: 1.4rem;
    font-weight: 500;
    color: #ecf0f1;
    margin-bottom: 15px;
}

.kv_wrapper p:nth-child(3) {/* 3つ目のpタグ「『モーダルウィンドウ』」 */
    font-size: 2.2rem;
    font-weight: bold;
    color: #3498db;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.6), 0 0 20px rgba(52, 152, 219, 0.4);
}

@media (width>768px)  {
    .kv_wrapper {
        max-width: 1100px;
        margin-left: auto; /* 中央に寄せる */
        margin-right: auto;
        padding: 80px 20px;
        border-radius: 8px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        margin-bottom: 60px;
    }

    .kv_wrapper::before {
        background-image:
            linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
            linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
        background-size: 20px 20px; /* グリッドのサイズ*/
        opacity: 0.8;
    }

    .kv_wrapper p {
        margin: 15px 0;
        line-height: 1.6;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    }

    .kv_wrapper p:nth-child(1) {
        font-size: 2rem;
        margin-bottom: 10px;
        letter-spacing: 0.05em;
    }

    .kv_wrapper p:nth-child(2) {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .kv_wrapper p:nth-child(3) {
        font-size: 3.2rem;
        letter-spacing: 0.1em;
        text-shadow: 0 0 15px rgba(52, 152, 219, 0.8), 0 0 25px rgba(52, 152, 219, 0.6);
    }
}



/* main ------------------------*/
main{
    max-width: 1100px;/*コンテンツが入る中身の部分*/
    margin-left: auto; /* 中央に寄せる */
    margin-right: auto;
    padding-left: 25px; /*  (モバイルでの余白) */
    padding-right: 25px; /*  (モバイルでの余白) */
    font-size: 1.4rem;
    margin-bottom: 100px;
}

main li{
    list-style-type: decimal;/* 数字で表示 */
    list-style-position: inside; /* リスト・スタイル・ポジション：インサイド リストの・の位置を指定するためのプロパティ*/
    margin: 10px 0;
}

main p{
    line-height: 1.8;
    margin-top: 5px;
}

.codepen_wrapper{
    margin-top: 30px;
}

.point{
    padding: 20px 0 10px 0;
}

.knowledge li{
    list-style: none;
}

@media (width>768px)  {
main{
    font-size: 1.6rem;
}

main li{
    margin-bottom: 20px;
}

.point{
    padding: 30px 0 20px 0;
}
}



/* 見出し装飾 ------------------------*/

h2{
    background: #34495e;
    color: #f8f8f8;
    padding: 3px 0 3px 10px;
    border-radius: 5px;
    margin: 40px 0 10px 0;
    font-size: 1.5rem;
}

h3{
    margin: 20px 0 5px 0;
    font-weight: 700;
    line-height: 1.5;
    border-bottom: 2px solid #2589d0;
    display: inline-block;
    font-size: 1.5rem;
}

h4{
    position: relative;
    padding-left: 35px;
    color: #ffca2c;
    text-shadow: 0.5px 0.5px rgb(160, 158, 158);
    font-weight: 700;
    font-size: 1.5rem;
}

h4:before {
    position: absolute;
    content: "P";
    background: #ffca2c;
    color: white;
    font-weight: 900;
    font-size: 15px;
    border-radius: 50%;
    left: 0;
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

h4:after {/*吹き出しのちょこんと出た部分*/
    content: '';
    display: block;
    position: absolute;
    left: 20px;
    height: 0;
    width: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 12px solid #ffca2c;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

@media (width>768px)  {
    h2{
        font-size: 1.8rem;
        margin: 80px 0 10px 0;
        padding: 5px 0 5px 15px;
    }

    h3{
        font-size: 1.8rem;
        border-bottom: 3px solid #2589d0;
        margin: 30px 0 5px 0;
    }

    h4{
        font-size: 2rem;
    }
}



/* footer ------------------------*/

footer {
    text-align: center;
    position: relative;
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: #34495e;
    color: #ecf0f1;
}

footer::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px; /* 線の太さ */
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 10px 10px;
    background-color: #3a5c7d;
    opacity: 0.8;
}

/* トップに戻るボタン ------------------ */
.page-top-button {
    display: block; /* 常に表示 */
    position: fixed; /* 画面に固定 */
    bottom: 20px;
    right: 20px;
    z-index: 100;

    background-color: #3498db;
    color: #f8f8f8;
    text-decoration: none;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* 軽い影 */
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer; /* マウスカーソルをポインターにする */

    /* ホバー時のアニメーション */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-top-button:hover {
    background-color: #2589d0;
    transform: translateY(-3px); /* わずかに上に移動するアニメーション */
}


@media (width>768px)  {
    .page-top-button {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 1.6rem;
        bottom: 15px;
        right: 15px;
    }
}
