/*
 Theme Name: My Bootstrap Theme
 Author: Todoroki Shogo 
 Description: A custom WordPress theme using Bootstrap
 Version: 1.0
*/
html {
    margin: 0 !important;
    font-size: 16px; /* ベースフォントサイズ（ユーザーが変更可能） */
}

body {
    font-family: "Yu Gothic", "游ゴシック", "YuGothic", sans-serif;
    visibility: hidden;
}

.about-text {
    font-family: "Yu Gothic", "游ゴシック", "YuGothic", sans-serif;
}

.title-with-lines {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    letter-spacing: 0.2rem;
    font-size: calc(1.3rem + 0.5vw);
    margin-bottom: 40px;
    font-family: "Yu Mincho", "游明朝", serif !important;
    color: rgba(0, 0, 0, 0.6);
    overflow: hidden; /* 子要素がはみ出ないようにする */
    position: relative;
}

.title-with-lines::before,
.title-with-lines::after {
    content: "";
    display: block;
    height: 1px; /* 線の太さ */
    background-color: #ccc; /* 線の色 */
    flex: 1; /* 残りのスペースを埋める */
    transform: scaleX(0); /* 初期状態は非表示 (幅0%) */
    transition: transform 0.5s ease-in-out; /* アニメーション */
}

.title-with-lines::before {
    margin-right: 15px; /* 左線と文字の間隔 */
    transform-origin: right;
}

.title-with-lines::after {
    margin-left: 15px; /* 右線と文字の間隔 */
    transform-origin: left;
}

.text {
    opacity: 0; /* 初期状態で非表示 */
    transform: translateY(20px); /* 初期位置を少し下に */
    animation: fadeUp 0.5s ease-in-out forwards; /* フェードインと位置を調整 */
}

.title-with-lines.animate-lines::before,
.title-with-lines.animate-lines::after {
    transform: scaleX(1); /* 線を表示 (幅100%) */
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.sub-container {
    margin-bottom: 150px;
}

.small-text {
    font-size: calc(0.6rem + 0.5vw);
    padding-left: 15px;
    line-height: 26px;
    margin: 0;
}

.pt {
    font-size: calc(0.6rem + 0.5vw);
    margin: 0;
}

/* ページネーションのデザイン */
.pagination {
    margin-top: 70px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid #777; /* ダークグレーの枠線 */
    color: #777; /* 文字色をダークグレーに */
    transition: background-color 0.3s, color 0.3s;
}

.pagination a:hover {
    color: white; /* ホバー時の文字色を白に */
    background-color: #474747; /* ホバー時の背景色をダークグレーに */
    border-color: #474747; /* 枠線もダークグレー */
}

.pagination .current {
    color: white; /* 現在のページは文字色を白に */
    background-color: #474747; /* ホバー時の背景色をダークグレーに */
    border-color: #474747; /* 枠線もダークグレー */
}

.pagination .prev,
.pagination .next {
    text-transform: uppercase; /* テキストを大文字に */
}

@media (max-width: 768px) {
    .pagination {
        margin-top: 20px;
    }

    .pagination a,
    .pagination span {
        padding: 5px 10px;
    }

    .title-with-lines {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .pt {
        font-size: 1.0rem;
    }
}


@media (max-width: 576px) {
    .title-with-lines {
        font-size: 1.3rem;
    }

    .pagination a,
    .pagination span {
        padding: 3px 8px;
    }

    .pt {
        font-size: 0.9rem;
    }
}
