:root {
    --white: #fff;
    --black: #333
}

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

/* ヘッダー全体 */
.site-header {
    width: 100%;
    border-bottom: 1px solid #ddd;
    position: fixed;
    z-index: 9;
    background-color: #fff;
}

/* ヘッダー内コンテナ */
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1024px;
    height: 90px;
    padding: 0 0.8em;
    margin: 0 auto;
    font-size: 1.2rem;
}

/* PC用リスト（横並び） */
.pc-nav {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* PC用リストの各項目 */
.header-nav-item {
    padding: 12px;
    font-weight: bold;
    color: #555;
    text-align: center;
    position: relative;
    /* 下線アニメを使うならrelative */
}

a {
    text-decoration: none;
    color: inherit;
}

.header-nav-item:hover {
    color: #777;
}

/* ハンバーガーアイコン（PC時は非表示） */
.header-ham {
    display: none;
    /* モバイル時に表示するので、PC時は隠す */
    cursor: pointer;
}

.menu2 {
    width: 20px;
    height: 3px;
    margin: 4px 0;
    background-color: #333;
}

/* モバイル用リスト（初期は非表示） */
.mobile-nav {
    display: none;
    /* PC時は非表示 */
    margin: 0;
    padding: 0;
    list-style: none;
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.section-title h1 {
    font-size: 2rem;
}

.section-title p {
    opacity: 0.6;
}

.hero {
    height: 100vh;
    background-image: url(src/niwatoribox-16-9.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.hero::before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.11);
    backdrop-filter: blur(24px);
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    padding-top: 90px;
}

.hero-text {
    font-size: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8em;
    margin-top: 1em;
}

.hero-text p {
    color: #fff;
    text-shadow: 0px 0px 8px rgba(0, 0, 0, 0.33);
}

.join {
    margin-top: 2rem;
    font-size: 20px;
    color: #fff;
    font-weight: bold;
    padding: 12px 2rem;
    background-color: #4b6ce2;
    border-radius: 8px;
}

.about,
.plugins,
.operator {
    padding: 4rem 0;
    scroll-margin-top: 90px;
}

.about-inner,
.plugins-inner,
.operator-inner {
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    width: 100%;
    max-width: 1024px;
}

.about {
    color: var(--black);
}

.plugins {
    color: var(--white);
    background-color: #333;
}

.operator {
    color: var(--black);
}

.plugin-cards {
    /* gridレイアウトを採用し、カードが自動的に整列されます */
    margin: 1rem 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.plugin-card {
    width: 100%;
    border: 4px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    overflow: hidden;
    transition: all .3s ease;
    cursor: pointer;
}

.plugin-card:hover {
    transform: translateY(-8px);
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.33);
}

.card-image {
    background-position: center;
    background-size: cover;
    height: 200px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.card-content {
    padding: 1rem;
}

.card-text {
    word-wrap: break-word;
    margin-top: 0.6rem;
}

.profile-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1024px;
    overflow: hidden;
    border-radius: 16px;
    position: relative;
    border: 1px solid #ddd;
}

.profile-header {
    background-position: center;
    background-size: cover;
    height: 300px;
    width: 100%;
}

.profile-icon {
    position: absolute;
    top: 200px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: auto;
    aspect-ratio: 1/1;
    border-radius: 999px;
    box-shadow: 0px 0px 0px 10px #fff, 0px 0px 16px rgba(0, 0, 0, 0.33);
}

.profile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 5rem 1rem 3rem 1rem;
}

.cracker {
    position: relative;
}

.cracker::before {
    position: absolute;
    content: '\\';
    top: 50%;
    left: -40px;
    font-size: 14px;
    transform: translateY(-50%);
}

.cracker::after {
    position: absolute;
    content: '\/';
    top: 50%;
    right: -40px;
    font-size: 14px;
    transform: translateY(-50%);
}

@media screen and (max-width: 768px) {

    /* PC用リストは非表示にしてハンバーガーに切り替え */
    .pc-nav {
        display: none;
    }

    /* ハンバーガーアイコンを表示 */
    .header-ham {
        display: block;
    }

    /* モバイル用リストを左からスライドインさせる場合 */
    .mobile-nav {
        position: fixed;
        top: 90px;
        /* ヘッダーの高さに合わせる */
        left: -100%;
        /* 初期状態は画面の左外 */
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        display: flex;
        /* flexコンテナ */
        flex-direction: column;
        /* 縦並び */
        align-items: center;
        justify-content: center;
        gap: 2rem;
        /* アイテム間の余白 */
        transition: left 0.3s ease-in-out;
        backdrop-filter: blur(10px);
        z-index: 999;
    }

    /* モバイル用リストに active が付与されたら表示 */
    .mobile-nav.active {
        left: 0;
    }

    /* モバイル用リストの項目 */
    .mobile-nav .header-nav-item {
        color: #fff;
        /* 文字色を白に */
        font-size: 1.5rem;
        width: auto;
        border: none;
        /* 必要に応じてボーダーを付けてもOK */
    }

    .mobile-nav .header-nav-item:hover {
        color: #ccc;
    }

    /* ハンバーガーアイコンが開閉したときのアニメ（必要に応じて） */
    .header-ham.open .menu2:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .header-ham.open .menu2:nth-child(2) {
        opacity: 0;
    }

    .header-ham.open .menu2:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .plugin-cards {
        grid-template-columns: 1fr;
    }

    .plugin-card {
        width: 100%;
    }
}