/* ========================================
   ゆっくりPC三昧 - About ページ スタイル
   「サイバー・クリーン」カラースキーム
   メイン: ディープネイビー #1A237E
   アクセント: エレクトリックシアン #00E5FF
   ======================================== */

/* --- リセット --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    background-color: #f9f9f9;
    color: #333;
}

/* --- ヘッダー --- */
header {
    background: linear-gradient(135deg, #0D1442 0%, #1A237E 50%, #0D1442 100%);
    color: #fff;
    padding: 0 5%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    min-height: 70px;
    border-bottom: 2px solid rgba(0, 229, 255, 0.15);
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-title img {
    height: 44px;
    width: 44px;
    border-radius: 8px;
    transition: transform 0.3s;
    border: 2px solid rgba(0, 229, 255, 0.3);
}

.logo-title img:hover {
    transform: rotate(10deg) scale(1.1);
}

.logo-title h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #00E5FF, #00B8D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- ナビゲーション --- */
nav.menu {
    display: flex;
}

nav.menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

nav.menu ul li {
    margin: 0;
}

nav.menu ul li a {
    text-decoration: none;
    color: #B0BEC5;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

nav.menu ul li a:hover {
    color: #ffffff;
    background: rgba(0, 229, 255, 0.1);
}

/* --- Google CSE 十字ボタン非表示 --- */
.gsc-search-button-v2 svg,
.gsc-clear-button,
table.gsc-search-box td.gsc-clear-button,
.gcse-search .gsc-control-cse .gsc-clear-button {
    display: none !important;
}

/* --- ハンバーガーメニュー --- */
.menu-toggle {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    color: #00E5FF;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s;
}

.menu-toggle:hover {
    background: rgba(0, 229, 255, 0.15);
}

@media (max-width: 768px) {
    header {
        padding: 10px 4%;
    }

    .logo-title h1 {
        font-size: 1.1rem;
    }

    nav.menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #0D1442;
        border-top: 2px solid rgba(0, 229, 255, 0.2);
        margin-top: 10px;
        border-radius: 0 0 12px 12px;
    }

    nav.menu ul {
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0;
        gap: 0;
    }

    nav.menu ul li a {
        display: block;
        width: 100%;
        padding: 14px 20px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .menu-toggle {
        display: block;
    }

    nav.menu.active {
        display: flex;
    }
}

/* --- メインコンテンツ --- */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* --- チャンネル説明セクション --- */
.channel-description {
    background: #fff;
    padding: 40px;
    margin: 24px auto;
    max-width: 800px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    text-align: center;
    border-top: 4px solid #00E5FF;
    animation: fadeInUp 0.5s ease-out both;
}

.channel-description h1 {
    color: #1A237E;
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.channel-description p {
    font-size: 1.1em;
    color: #555;
    margin-top: 10px;
    line-height: 1.8;
}

/* --- チャンネル方針セクション --- */
.channel-policy {
    background: #fff;
    padding: 40px;
    margin: 24px auto;
    max-width: 800px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    text-align: center;
    border-top: 4px solid #00B8D4;
    animation: fadeInUp 0.5s ease-out 0.1s both;
}

.channel-policy h1 {
    color: #1A237E;
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.channel-policy p {
    font-size: 1.1em;
    color: #555;
    margin-top: 10px;
    line-height: 1.8;
}

.channel-policy p strong {
    color: #1A237E;
    font-weight: bold;
}

/* --- キャラクター紹介セクション --- */
.character-introduction {
    margin: 40px auto;
    max-width: 1000px;
    padding: 30px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.5s ease-out 0.2s both;
}

.character-introduction>h1 {
    font-size: 1.8rem;
    color: #1A237E;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.character-introduction>h1::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #00E5FF, #00B8D4);
    border-radius: 2px;
    margin: 12px auto 0;
}

/* キャラクター名見出し */
.character-introduction h1+h1,
.character-introduction h1:not(:first-child) {
    font-size: 1.5rem;
    color: #1A237E;
    text-align: left;
    margin: 30px 0 10px;
    padding-left: 16px;
    border-left: 4px solid #00E5FF;
}

/* --- キャラクター情報レイアウト --- */
.character-info,
.character-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
    padding: 24px;
    background: #f8f9fb;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.character-info:hover,
.character-intro:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 229, 255, 0.1);
    border-left-color: #00E5FF;
}

/* --- キャラクター画像 --- */
.character-img {
    width: 180px;
    height: auto;
    flex-shrink: 0;
    border-radius: 14px;
    margin-right: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid #fff;
}

.character-img:hover {
    transform: scale(1.06) rotate(1deg);
    box-shadow: 0 10px 28px rgba(0, 229, 255, 0.2);
}

/* --- キャラクター説明 --- */
.character-description {
    flex: 1;
    text-align: left;
}

.character-description h4 {
    font-size: 1.05rem;
    color: #1A237E;
    margin: 14px 0 6px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.character-description h4::before {
    content: "▶";
    font-size: 0.75rem;
    color: #00E5FF;
}

.character-description p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
    word-wrap: break-word;
}

/* --- レイアウト逆転 --- */
.character-intro.reverse {
    flex-direction: row-reverse;
}

.character-intro.reverse .character-img {
    margin-right: 0;
    margin-left: 20px;
}

/* モバイル */
@media (max-width: 768px) {

    .character-info,
    .character-intro {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .character-img {
        margin: 0 0 16px;
        width: 140px;
    }

    .character-intro.reverse {
        flex-direction: column;
    }

    .character-intro.reverse .character-img {
        margin: 0 0 16px;
    }

    .channel-description,
    .channel-policy {
        padding: 24px;
    }

    h1 {
        font-size: 1.4em;
    }
}

/* --- 共通 h1 --- */
h1 {
    font-size: 1.8em;
    margin-bottom: 16px;
    color: #1A237E;
}

/* --- フッター --- */
footer {
    background: linear-gradient(135deg, #0D1442, #1A237E);
    color: #fff;
    padding: 30px 10%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    margin-top: 40px;
    border-top: 2px solid rgba(0, 229, 255, 0.15);
}

footer .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

footer .footer-logo img {
    width: 40px;
    height: auto;
    border-radius: 8px;
}

footer .footer-logo span {
    font-weight: 700;
    background: linear-gradient(135deg, #00E5FF, #00B8D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

footer .footer-links ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

footer .footer-links ul li a {
    color: #90A4AE;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

footer .footer-links ul li a:hover {
    color: #00E5FF;
}

footer .copyright {
    font-size: 0.85em;
    color: #546E7A;
    margin-top: 10px;
    flex-basis: 100%;
}

@media (max-width: 768px) {
    footer {
        flex-direction: column;
        gap: 16px;
        padding: 24px 6%;
    }

    footer .footer-links ul {
        flex-direction: column;
        gap: 8px;
    }
}

/* --- プライバシーポップアップ --- */
#privacy-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#popup-content {
    background: white;
    padding: 28px;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    font-size: 0.95rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#popup-content button {
    margin-top: 18px;
    padding: 12px 28px;
    font-size: 1rem;
    border: none;
    background: linear-gradient(135deg, #1A237E, #283593);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    font-family: 'Noto Sans JP', sans-serif;
}

#popup-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(26, 35, 126, 0.3);
}

#popup-content a {
    color: #1A237E;
    text-decoration: underline;
}

/* --- アニメーション --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 検索結果 --- */
#search-results {
    margin-top: 20px;
}

.search-result {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #fff;
}

.search-result h3 {
    margin: 0;
    font-size: 1.1em;
    color: #1A237E;
}

.search-result p {
    margin-top: 5px;
    color: #666;
}