@charset "utf-8";

/* --------------------------------------------------
  初期化・共通設定（ヘッダー・フッター統合）
-------------------------------------------------- */
*,
::before,
::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

ul,
ol {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

html {
    height: 100%;
}

/* bodyの指定を統合（デザイン設定＋最下部固定用のflex設定） */
body {
    color: #ffffff;
    background-color: #2b2b2b;
    font-family: sans-serif;
    font-size: 16px;
    line-height: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dark-mode {
    background-color: #2b2b2b;
    color: #fff;
}

/* メインコンテンツエリアを自動伸縮させる */
main,
.main {
    flex: 1;
}

/* --------------------------------------------------
   ユーティリティ（改行等の表示切り替え）
-------------------------------------------------- */
.pc_view {
    display: none;
}

.sp_view {
    display: block;
}

/* ==================================================
   ヘッダー本体のスタイル
================================================== */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(43, 43, 43, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.is-scrolled {
    background-color: rgba(30, 30, 30, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.header-inner {
    max-width: 1400px;
    height: 80px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-menu-button {
    display: none;
}

.header-logo {
    display: block;
    width: 65px;
    transition: transform 0.2s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

/* ナビゲーションメニュー (PC) */
.header-site-menu {
    flex: 1;
    display: flex;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
}

.header-site-menu::-webkit-scrollbar {
    display: none;
}

.site-menu ul {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-right: 5px;
}

.site-menu ul li {
    white-space: nowrap;
}

.site-menu ul li a {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: bold;
    font-size: 14px;
    color: #dcdcdc;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.site-menu ul li a:hover,
.site-menu ul li a.active {
    color: #ffffff;
}

.site-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3f98ef;
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 2px;
}

.site-menu ul li a:hover::after,
.site-menu ul li a.active::after {
    width: 100%;
}

/* ==================================================
   フッター本体のスタイル
================================================== */
.footer {
    margin-top: auto;
    color: #ffffff;
    background-color: #24211b;
    padding-top: 30px;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.footer-logo {
    display: block;
    width: 70px;
    margin-top: 30px;
}

.footer ul {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    list-style: none;
    padding: 0;
}

.footer ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
}

.footer ul li a:hover {
    text-decoration: underline;
}

.footer-beneath {
    font-size: 14px;
    text-align: center;
    line-height: 1.6;
    margin-top: 30px;
    margin-bottom: 15px;
}

.copyright {
    font-size: 13px;
    font-weight: bold;
    margin-top: 10px;
}

/* ==================================================
  トップへ戻るボタン
================================================== */
#page_top {
    display: none;
    width: 50px;
    height: 50px;
    position: fixed;
    right: 20px;
    bottom: 50px;
    background: #3f98ef;
    opacity: 0.6;
    border-radius: 50%;
    z-index: 999;
    transition: opacity 0.3s ease;
    /* ホバー時にフワッとさせるため追加 */
}

/* マウスオーバー時に少し濃くする */
#page_top:hover {
    opacity: 0.9;
}

#page_top a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* CSSの枠線(border)を利用して上向きの矢印を作成 */
#page_top a::before {
    content: '';
    position: absolute;
    width: 14px;
    /* 矢印の横幅 */
    height: 14px;
    /* 矢印の縦幅 */
    top: 0;
    bottom: -5px;
    /* 矢印の視覚的な中央ズレを補正 */
    right: 0;
    left: 0;
    margin: auto;
    border-top: 3px solid #fff;
    /* 上の線 */
    border-right: 3px solid #fff;
    /* 右の線 */
    transform: rotate(-45deg);
    /* 45度回転させて上向き（くの字）にする */
}

/* ==================================================
  モバイル用設定 (max-width: 800px)
  ※ヘッダーとフッターのモバイル設定を1つのメディアクエリに統合
================================================== */
@media (max-width: 800px) {

    /* --- ヘッダー関連 --- */
    .header {
        position: fixed;
        height: 50px;
        background-color: #2b2b2b;
        border-bottom: none;
        backdrop-filter: none;
    }

    .header.is-scrolled {
        background-color: #222222;
    }

    .header-inner {
        height: 100%;
    }

    .header-logo {
        width: 45px;
    }

    .site-menu ul {
        display: block;
        text-align: center;
    }

    .header-site-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
    }

    .header-site-menu.is-show {
        display: block;
    }

    /* --- フッター・ユーティリティ関連 --- */
    .pc_view {
        display: block;
    }

    .sp_view {
        display: none;
    }

    .footer-beneath {
        margin-top: 30px;
        font-size: 13px;
    }

    .copyright {
        margin-top: 20px;
    }
}