/* ------ 共通css設定 ------ */

/* --- Note Sans JPの読み込み --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* --- カラーと共通スタイルの変数の定義 --- */
:root {
    --font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --color-bg-light: #FFFFFF;
    --color-bg-dark: #1A1A1A;
    --color-text-light: #FFFFFF;
    --color-text-dark: #222222;
    --color-text-sub: #BBBBBB;
    --color-border: #EAEAEA;
    --color-accent: #004cffff;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --box-shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* --- 全体 --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    margin: 0;
    padding: 0;
    padding-top: 80px;
}

hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 30px 0;
}

/* --- リンク --- */
a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
    text-decoration: underline;
}


/* --- ヘッダー --- */
.site-header {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: 0 20px;
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}
.header-logo a {
    color: var(--color-text-light);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

/* --- ハンバーガーメニュー  --- */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}
.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-light);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ハンバーガー開閉アニメーション */
.menu-toggle.is-active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- ナビゲーションメニュー --- */
.header-nav {
    /* 画面全体に広がるメニュー */
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: rgba(0, 0, 0, 0.9);

    /* デフォルトは隠す */
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

/* JSで .is-active が付いたら表示 */
.header-nav.is-active {
    transform: translateX(0);
}

/* メニューを縦並びにする */
.header-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-direction: column;
    padding: 30px;
}
.header-nav li {
    margin-left: 0;
    margin-bottom: 20px;
}
.header-nav a {
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 1.2rem;
    color: var(--color-text-light);
}
.header-nav a:hover,
.header-nav a.active {
    color: var(--color-text-light);
}

/* --- メインコンテンツ --- */
/* コンテナ */
.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: calc(100vh - 50px);
}

/* カード */
.card {
    background-color: #FFFFFF;
    border-radius: var(--border-radius);
    padding: 25px 30px;
    margin-bottom: 25px;
    border: 1px solid var(--color-border);
    box-shadow: var(--box-shadow);
    transition: box-shadow 0.2s ease-out;
}
.card:hover {
    box-shadow: var(--box-shadow-hover);
}

/* カード内の段落テキストに含まれるリンク */
.card p a {
    color: inherit; /* 段落の文字色を継承 */
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px; /* テキストと下線の隙間 */
    font-weight: 500;
    transition: all 0.2s ease;
}

.card p a:hover {
    color: var(--color-accent);
    text-decoration-color: var(--color-accent);
    opacity: 1.0;
}

/* リンク集 */
.links-list { list-style: none; padding: 0; }
.links-list li a {
    display: block; padding: 12px 15px; margin-bottom: 10px;
    border: 1px solid var(--color-border); color: var(--color-text-dark);
    text-align: center; font-weight: 500; border-radius: var(--border-radius);
    transition: all 0.2s ease-in-out;
}
.links-list li a:hover {
    background-color: var(--color-accent); border-color: var(--color-accent);
    color: #fff; text-decoration: none;
}

/* --- 特商法に基づく表記ページなどの定義リスト --- */
.law-list dt {
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 5px;
    color: var(--color-text-dark);
    border-left: 4px solid var(--color-accent);
    padding-left: 10px;
}

.law-list dd {
    margin-left: 0;
    margin-bottom: 20px;
    padding-left: 14px;
}

.law-caution {
    font-size: 0.9rem;
    color: #E74C3C;
}


/* 注意 (一般) */
.caution {
    color: #E74C3C;
}


/* クレジット表記 */
.copyright {
    font-size: 0.9rem;
    text-align: right;
    margin-top: 20px;
}

/* --- フッター --- */
.site-footer {
    background-color: var(--color-bg-dark);
    color: var(--color-text-sub);
    text-align: center;
    padding: 40px 20px;
    margin-top: 20px;
}

.footer-content {
    margin-bottom: 20px;
}

.footer-link {
    color: #bbb;
    text-decoration: none;
    font-size: 0.9rem;
}

/* --- レスポンシブ対応 --- */
/* PC / タブレット向け */
@media (min-width: 769px) {
    .header-nav {
        width: 33vw;
        max-width: 400px;
        left: auto;
        right: 0;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    }
}