/* リセット：余計な隙間を消す */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: #000; /* 背景は黒 */
    color: #fff; /* 文字は白 */
    font-family: "Times New Roman", serif; /* クラシックなセリフ体 */
    line-height: 1.8;
}

/* ナビゲーション */
nav {
    display: flex;
    justify-content: space-between;
    padding: 20px 50px;
    position: fixed;
    width: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 100;
}

nav ul { display: flex; list-style: none; }
nav ul li { margin-left: 20px; }
nav ul li a { color: #fff; text-decoration: none; border-bottom: 1px solid transparent; transition: 0.3s; }
nav ul li a:hover { border-bottom: 1px solid #fff; }

/* ヒーローエリア（最初に見える画面） */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #333;
}

.hero h1 { font-size: 4rem; letter-spacing: 10px; }

/* 各セクション */
.scroll-section {
    padding: 100px 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

h2 { font-size: 2rem; margin-bottom: 30px; border-bottom: 1px solid #333; display: inline-block; }

.owner-card {
    background: #111;
    padding: 40px;
    border: 1px solid #333;
}

/* ボタン */
.classic-btn {
    display: inline-block;
    padding: 15px 50px;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    transition: 0.5s;
}

.classic-btn:hover {
    background: #fff;
    color: #000;
}

/* スクロールアニメーション用の下準備 */
.scroll-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s, transform 1s;
}

/* アニメーションが発動した時のクラス */
.is-shown {
    opacity: 1;
    transform: translateY(0);
}

/* --- 以下のコードを style.css の最後の方に追記、または該当箇所を書き換えてください --- */

/* 動画を背景いっぱいに広げる */
.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画面に合わせて切り抜き */
    z-index: -2;
}

/* 動画を少し暗くして文字を読みやすくする */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* 0.6 を大きくするとより暗くなります */
    z-index: -1;
}

/* オープニング時のふわっとエフェクト（タイトル用） */
.hero-title {
    font-size: 5rem;
    opacity: 0;
    filter: blur(10px); /* 最初はぼかす */
    transform: translateY(20px);
    animation: openingFade 2.5s forwards; /* 2.5秒かけて実行 */
}

@keyframes openingFade {
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

/* 鯖主2人を横に並べる設定（スマホでは縦に並びます） */
.owner-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* 画面が狭いときは折り返す */
}

.owner-card {
    flex: 1;
    min-width: 280px;
    max-width: 380px;
}

/* --- 以前の style.css にある .owner-card を以下の設定で上書き・追記してください --- */

.owner-container {
    display: flex;
    gap: 40px; /* 2人の間隔を少し広げます */
    justify-content: center;
    align-items: flex-end; /* 立ち絵の足元を揃える */
    flex-wrap: wrap;
    margin-top: 50px;
}

.owner-card {
    background: rgba(255, 255, 255, 0.03); /* ほんの少しだけ透ける背景 */
    padding: 30px;
    border: 1px solid #333;
    border-radius: 20px;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    transition: 0.4s;
}

.owner-card:hover {
    border-color: #fff; /* カーソルを合わせると枠が光る */
}

/* 立ち絵の設定 */
.owner-image-wrapper {
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
}

.owner-standing-img {
    width: 100%;
    height: auto;
    max-height: 400px; /* 立ち絵が大きくなりすぎないよう調整 */
    object-fit: contain;
    filter: grayscale(100%); /* モノクロ基調に合わせて画像を白黒に */
    transition: 0.5s;
}

.owner-card:hover .owner-standing-img {
    filter: grayscale(0%); /* カーソルを合わせると色がつく演出（お好みで） */
    transform: scale(1.05); /* 少しだけズーム */
}

/* 名前のサイズを大きく */
.owner-name {
    font-size: 2.2rem; /* 前よりかなり大きく */
    font-weight: bold;
    letter-spacing: 4px;
    margin-bottom: 10px;
    border-bottom: 2px solid #fff;
    display: inline-block;
}

.owner-desc {
    font-size: 1rem;
    color: #ccc;
    text-align: left;
}

/* Discordページ用のデザイン */
.page-header {
    padding: 150px 0 50px;
    text-align: center;
}

.discord-invite {
    text-align: center;
    margin-bottom: 100px;
}

.invite-box {
    border: 1px solid #fff;
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
}
/* --- Discordページ：余白を贅沢に使う設定 --- */

/* ページ全体のコンテナに左右の余裕を持たせる */
.container {
    max-width: 1000px; /* 少し広げてゆったりさせる */
    margin: 0 auto;
    padding: 0 40px;
}

/* 見出し周りの余白を大きく */
.page-header {
    padding: 200px 0 120px; /* 上下の余白を大幅に増加 */
    text-align: center;
    letter-spacing: 0.2em; /* 文字の間隔を広げて優雅に */
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 30px;
}

/* セクション間の距離を離す */
.discord-invite, .bot-section {
    margin-bottom: 180px; /* セクション同士がくっつかないように */
}

/* 招待ボックスをスリムにして中心に置く */
.invite-box {
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2); /* 線を細く、少し薄く */
    padding: 80px 40px; /* 中の余白をたっぷり取る */
    background: transparent; /* 背景を抜いてシンプルに */
}

.invite-box h2 {
    letter-spacing: 0.3em;
    margin-bottom: 40px;
}

/* Botカードの間隔と高さを調整 */
.bot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px; /* カード同士の隙間を広げる */
    margin-top: 60px;
}

.bot-card {
    /* オーナー紹介の .owner-card と同じ設定を適用 */
    background: rgba(255, 255, 255, 0.03);
    padding: 40px; /* 余白を少し多めに */
    border: 1px solid #333;
    border-radius: 20px;
    flex: 1;
    min-width: 300px;
    max-width: 450px; /* Bot紹介は少し横幅に余裕を持たせる */
    transition: 0.4s;
    text-align: center; /* 中央揃え */
}
/* ホバー時の演出も統一 */
.bot-card:hover {
    border-color: #fff;
    transform: translateY(-10px);
}

.bot-card .owner-standing-img {
    max-height: 250px; /* Bot画像は立ち絵より少し小さめが綺麗です */
    filter: grayscale(100%);
}

.bot-card:hover .owner-standing-img {
    filter: grayscale(0%);
}

.bot-card h3 {
    font-size: 1.8rem;
    margin: 20px 0;
    letter-spacing: 0.1em;
}

.bot-card p {
    line-height: 2; /* 行間を広くして読みやすく */
    color: #999; /* 文字色を少し落として上品に */
}

/* --- プロフィールページ専用のデザイン --- */

.owner-profile-page {
    padding-top: 150px;
    position: relative;
    overflow: hidden;
}

/* 背景に大きく流れる文字（クラシックな演出） */
.bg-name-text {
    position: absolute;
    top: 100px;
    left: -50px;
    font-size: 15rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.03); /* ほとんど見えないくらい薄く */
    z-index: -1;
    white-space: nowrap;
    user-select: none;
}

.profile-layout {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.profile-visual {
    flex: 1;
}

.profile-img {
    width: 100%;
    filter: grayscale(100%);
    transition: 1s;
}

.profile-img:hover {
    filter: grayscale(0%); /* 触れると色が戻る */
}

.profile-content {
    flex: 1;
}

.sub-title {
    display: block;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 10px;
}

.main-name {
    font-size: 4rem;
    margin-bottom: 50px;
    border-bottom: 1px solid #fff;
}

.profile-text-block {
    margin-bottom: 40px;
}

.profile-text-block h2 {
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    margin-bottom: 15px;
    color: #fff;
}

.profile-text-block p {
    line-height: 2.2;
    color: #ccc;
}

/* スマホ対応：画面が狭いときは縦に並べる */
@media (max-width: 768px) {
    .profile-layout {
        flex-direction: column;
    }
    .main-name {
        font-size: 2.5rem;
    }
}

.owner-link { text-decoration: none; color: inherit; }

/* --- style.css の最後に追記 --- */

/* 左右を入れ替えるための設定 */
.profile-layout.reverse {
    flex-direction: row-reverse; /* 画像と文章の位置を逆にします */
}

/* スマホの時は結局縦に並ぶので、位置を戻す設定 */
@media (max-width: 768px) {
    .profile-layout.reverse {
        flex-direction: column-reverse; /* スマホでは画像が下、文章が上になります */
    }
    .bg-name-text {
        font-size: 8rem; /* スマホでは背景文字を少し小さく */
    }
}

/* --- トップページのDiscord紹介セクション --- */

#discord-entrance {
    padding: 150px 20px; /* 上下の余白をたっぷり取る */
    background: rgba(255, 255, 255, 0.02); /* ほんの少しだけ背景色を変えて区切りを出す */
    border-top: 1px solid #111;
    border-bottom: 1px solid #111;
    text-align: center;
}

.entrance-content .sub-title {
    display: block;
    letter-spacing: 0.4em;
    color: #888;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.entrance-content .section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    letter-spacing: 0.1em;
}

.entrance-content .description {
    line-height: 2.2;
    color: #ccc;
    margin-bottom: 50px;
}

/* ボタンの横幅を少し広げて優雅に */
#discord-entrance .classic-btn {
    min-width: 250px;
}

/* --- 共通フッターのデザイン --- */

.site-footer {
    background-color: #050505; /* 背景よりさらに深い黒 */
    border-top: 1px solid #222;
    padding: 80px 0 30px;
    margin-top: 100px; /* 前のセクションとの距離 */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand .footer-logo {
    font-size: 2rem;
    letter-spacing: 0.3em;
    margin-bottom: 10px;
}

.footer-brand .footer-tagline {
    color: #666;
    font-size: 0.9rem;
}

/* フッター内のメニュー */
.footer-nav {
    display: flex;
    gap: 60px;
}

.footer-nav-group h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #444;
    margin-bottom: 20px;
}

.footer-nav-group ul {
    list-style: none;
    padding: 0;
}

.footer-nav-group ul li {
    margin-bottom: 12px;
}

.footer-nav-group ul li a {
    color: #999;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
}

.footer-nav-group ul li a:hover {
    color: #fff;
}

/* コピーライト部分 */
.footer-bottom {
    text-align: center;
    border-top: 1px solid #111;
    padding-top: 30px;
}

.footer-bottom p {
    color: #333;
    font-size: 0.8rem;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-nav {
        justify-content: center;
        gap: 40px;
    }
}

/* ロゴリンクのホバー演出 */
.nav-logo a, .footer-logo a {
    transition: opacity 0.3s ease, letter-spacing 0.3s ease;
    cursor: pointer;
}

.nav-logo a:hover, .footer-logo a:hover {
    opacity: 0.7; /* 少し透ける */
    letter-spacing: 0.4em; /* 文字の間隔が少し広がる（Classicな演出） */
}

/* Botやオーナーのカード全体をリンクにした時のリセット */
.bot-card a, .owner-card a {
    text-decoration: none;
    color: inherit;
    display: block; /* カード全体をクリック可能にする */
}

/* ホバー時に少し浮き上がる演出を統一 */
.bot-card:hover, .owner-card:hover {
    cursor: pointer;
}

/* --- Bot個別ページ用の微調整（style.cssの最後に追記） --- */

.bot-spec-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.bot-spec-list li {
    color: #ccc;
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* リストの先頭に「・」の代わりに「-」を表示する演出 */
.bot-spec-list li::before {
    content: "-";
    position: absolute;
    left: 0;
    color: #fff;
}

/* --- Bot専用：画像を完璧な正円にして、ホバーで色づける --- */

/* 通常時：丸く切り抜き、白黒にする */
.bot-card .owner-standing-img,
.bot-profile-img {
    width: 200px !important;  /* 強制的に200pxにする */
    height: 200px !important; /* 強制的に200pxにする */
    object-fit: cover;        /* 中心で切り抜く（これで歪まなくなります） */
    border-radius: 50%;       /* 正円にする */
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin: 0 auto 20px;
    display: block;           /* 中央寄せのために必要 */
    filter: grayscale(100%);  /* 最初は白黒 */
    transition: 0.5s;         /* 変化を滑らかに */
}

.bot-profile-img {
    width: 200px !important;  /* 強制的に200pxにする */
    height: 200px !important; /* 強制的に200pxにする */
    object-fit: cover;        /* 中心で切り抜く（これで歪まなくなります） */
    border-radius: 50%;       /* 正円にする */
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin: 0 auto 20px;
    display: block;           /* 中央寄せのために必要 */
    /*filter: grayscale(100%);  /* 最初は白黒 */
    transition: 0.5s;         /* 変化を滑らかに */
}

/* カーソルを合わせた時：色がつき、少し光る */
.bot-card:hover .owner-standing-img,
.bot-profile-img:hover {
    filter: grayscale(0%);    /* 色を戻す */
    border-color: #fff;       /* 枠線を白く光らせる */
    transform: scale(1.05);   /* 少しだけ大きく */
}

.bot-profile-img:hover {
    filter: grayscale(0%);    /* 色を戻す */
    border-color: #fff;       /* 枠線を白く光らせる */
    transform: scale(1.05);   /* 少しだけ大きく */
}

/* --- 背景文字を画像にするための修正 --- */

/* --- 背景画像をTwitterヘッダー風に固定する設定 --- */

.bg-name-text {
    position: absolute;
    top: 0px;        /* 上からの位置（ナビゲーションの下あたり） */
    left: 0;
    width: 100%;      /* 横幅いっぱい */
    height: 600px;    /* ★ここで縦幅（見える範囲）を指定します。自由に数字を変えてOK */
    z-index: -1;
    opacity: 0.1;     /* 透け具合（0.05〜0.1くらいがおすすめ） */
    overflow: hidden; /* はみ出した画像を見せない */
    pointer-events: none;
}

.bg-image {
    width: 100%;      /* 横幅を親要素に合わせる */
    height: 100%;     /* 縦幅を親要素に合わせる */
    object-fit: cover; /* ★重要：比率を保ったまま、指定した範囲（300px）を埋め尽くす */
    object-position: center; /* 画像のどの部分を中心に持ってくるか（centerやtopなど） */
    filter: grayscale(60%);
}

/* --- News ページの記事一覧ボタン --- */
/* --- News ページの記事一覧（横長ボタン） --- */
/* --- News ページの記事一覧（横長ボタン） --- */

.news-list-section {
    padding: 50px 0 100px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px; /* 記事同士の隙間 */
}

.news-item-card {
    display: flex;
    align-items: stretch; /* 画像と文字の高さを揃える */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    text-decoration: none;
    color: inherit;
    transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    border-radius: 15px;
}

.news-item-card:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px); /* 右に少しスライドする演出 */
}

.news-thumbnail {
    width: 200px; /* 横長画像のサイズ */
    height: 120px;
    min-height: 180px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 0.5s;
    flex-shrink: 0;
}

.news-item-card:hover .news-thumbnail {
    filter: grayscale(0%);
}

.news-info {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.news-date {
    font-size: 0.85rem;
    color: #888;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-summary {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.6;
    /* 3行以上になったら「...」にする設定 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* スマホ対応：横長から縦長カードに切り替え */
@media (max-width: 768px) {
    .news-item-card {
        flex-direction: column;
    }
    .news-thumbnail {
        width: 100%;
        height: 200px;
    }
    .news-item-card:hover {
        transform: translateY(-10px); /* スマホでは上に浮かす */
    }
}
/* 記事IDのバッジ風スタイル */
.news-id {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4); /* 文字を少し薄く */
    font-family: 'Courier New', Courier, monospace; /* IDっぽく等幅フォント */
    border: 1px solid rgba(255, 255, 255, 0.1); /* 薄い枠線 */
    padding: 2px 8px;
    margin-right: 12px;
    border-radius: 4px;
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.02);
}

/* ホバー時にIDも少し明るくなる演出 */
.news-item-card:hover .news-id {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
}