/* 1. 共通設定 */
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth; /* スムーズスクロール */
    overflow-x: hidden;
    font-size: clamp(14px, 1.5vw, 18px);
    /* 素晴らしい記述方法、消すなよ */
}
body {
    font-family: sans-serif;
    color: black;
    background-color: black;
    overflow-x: hidden;
}

button {
    min-height: 3rem;
}
button:hover {
    filter: brightness(120%);
    transition: 0.3s;
}

.curved-top {
    position: relative;
    border-top-left-radius: 50% 40px;
    border-top-right-radius: 50% 40px;
}
.curved-bottom {
    position: relative;
    border-bottom-left-radius: 50% 40px;
    border-bottom-right-radius: 50% 40px;
}

/* ヘッダーとナビバー */
.navbar {
    position: fixed;
    z-index: 1000; /* 最前面に */
    width: 100%;
    padding: 0 1.5rem;
    box-sizing: border-box; /* パディング分を幅に含める */
    height: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    background-color: black;
}
.navbar-logo {
    height: 3.5rem;
    width: auto;
    object-fit: cover;
}
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
}
.nav-menu .nav-btn {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    color: white;
    text-decoration: none;
    font-family: "Oswald";
    font-weight: bold;
    font-size: 1rem;
    border: none;
    border-radius: 3rem;
    object-fit: fill;
}
.nav-menu ul li a:hover {
    transition: all 0.3s ease;
    color: black;
    background-color: white;
}
/* ハンバーガーボタン */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: 0.3s;
}

/* ナビバー終了 */

/* 参加ボタン */
.fixed-button {
    position: fixed;
    bottom: 8rem;
    right: 1rem;
    padding: 0.5rem 0.5rem 0.5rem 1.2rem;
    font-weight: bold;
    background-color: orange;
    color: white;
    border: none;
    border-radius: 3rem;
    cursor: pointer;
    z-index: 1000; /* 最前面に */
}
.fixed-button a {
    color: inherit; /* 親要素の文字色を継承 */
    text-decoration: none; /* 下線を消す */
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.fixed-button div {
    text-align: center;
}
.fixed-button a h3 {
    font-weight: bold;
    font-size: 1.5rem;
    margin: 0;
    padding: 0;
    font-family: "Oswald";
}
.fixed-button a p {
    font-weight: bold;
    font-size: 0.8rem;
    margin: 0;
    padding: 0;
}

/* よくある質問のヘッダー設定 */
.section-header {
    text-align: center;
    margin: 5rem auto 5rem;
    font-weight: bold;
}
.heading-text {
    font-family: "Oswald", sans-serif;
    font-size: 2.5rem;
}
.sub-heading-text {
    font-size: 1rem;
    color: rgb(0, 100, 170);
}

/* よくある質問セクション */
.question-section {
    background-color: whitesmoke;
    padding: 5rem 0 15rem;
}
.questions {
    font-family: sans-serif;
    cursor: pointer;
}
.question {
    margin-bottom: 2rem;
}
.question-header {
    color: rgb(0, 100, 170);
    font-weight: bold;
    font-size: 1.5rem;
    margin: 5rem auto 1rem;
    border-bottom: 1px solid rgb(0, 100, 170);
}
.question-header p {
    width: clamp(300px, 90%, 1000px);
    margin: 0 auto;
}
.question-title {
    background-color: white;
    color: black;
    font-weight: bold;
    width: clamp(300px, 90%, 1000px);
    margin: 0 auto;
    padding: 1rem 2rem;
    user-select: none; /* テキスト選択不可 */
    cursor: pointer;
    border: 3px solid rgb(0, 100, 170);
    transition: all 0.3s ease;
}
.question-title:hover,
.question[open] > .question-title {
    background-color: rgb(0, 100, 170);
    color: white;
}

.question-answer {
    padding: 1rem 2rem;
    background-color: white;
    border: 3px solid rgb(0, 100, 170);
    width: clamp(300px, 90%, 1000px);
    margin: 0 auto;
}
.question-answer a {
    display: block;
    margin-top: 0.5rem;
    color: blue;
}

/* footerのCSS */
.footer-container {
    padding: 3rem 5rem 2rem;
    color: white;
    margin-top: -100px;
    background-color: rgb(0, 100, 170);
}
.footer-container a:hover {
    transition: all 0.3s ease;
    color: goldenrod;
}

.footer-logo {
    font-family: "Oswald", sans-serif;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 3rem;
}
.footer-logo h3 {
    font-weight: bold;
    font-size: 2rem;
    margin: 0;
    padding: 0;
}
.footer-logo p {
    font-weight: 200;
    font-size: 0.6rem;
    line-height: 0.6rem;
    margin: 0;
    padding: 0;
}
.footer-menu-container {
    display: flex;
    justify-content: space-between;
}
.footer-menu {
    font-family: "Oswald", sans-serif;
    display: flex;
    gap: 2rem;
    font-size: 1rem;
    font-weight: bold;
}

.footer-menu-container a {
    color: inherit;
    /* 親要素と同じ色にする（または任意の色に変更） */
    text-decoration: none;
    /*下線をなくす */
    display: flex;
    align-items: center;
}
.footer-menu span {
    color: goldenrod;
}
.sns-icon {
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 0.4rem;
}
.sns-icon-link {
    font-weight: 800;
    fill: goldenrod;
}

/* 最後のコピーライト部分 */
.copy {
    text-align: center;
    font-size: 0.8rem;
    color: white;
    margin: 1.5rem 0;
    background-color: black;
}
.copy a {
    color: inherit;
    /* 親要素と同じ色にする（または任意の色に変更） */
    text-decoration: none;
    /*下線をなくす */
}

/* スマホ用メディアクエリ */
@media (max-width: 768px) {
    /* ナビバーについて */
    .navbar {
        height: 4rem;
    }
    .navbar-logo {
        max-height: 2.5rem;
    }
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 2rem;
        height: 1.5rem;
        z-index: 2001;
    }
    .hamburger span {
        display: block;
        width: 100%;
        height: 3px;
        background: white;
        border-radius: 2px;
    }

    .nav-menu {
        position: fixed;
        top: -100%; /* 最初は画面外（上） */
        left: 0;
        width: 100%;
        height: 100%;
        background: black;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center; /* 中央に縦並び */
        transition: top 0.3s ease;
        z-index: 2000;
    }
    /* ナビメニューの表示状態 */
    .nav-menu.active {
        top: 0; /* メニューを表示する */
    }

    .nav-menu ul {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    /* 表示状態 */
    .nav-menu.active {
        top: 0; /* 下に降ろす */
    }
    /* ナビバーについて終了 */

    .voice-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    /* フッターについて */
    .footer-menu-container {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    .footer-menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        margin-bottom: 2rem;
    }
}
