/* 全てのページに適用される設定 */
html {
    font-size: 17px;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {

    margin: 0;
    background: #0e0e0e;
    font-family: 'BIZ UDPGothic', sans-serif;
    font-weight: 400;
}

p,
li,
td {
    line-height: 1.6;
}

img {
    max-width: 100%;
}

.sp {
    display: none;
}

.pc {
    display: block;
}

time {
    font-size: 0.8rem;
}

h2 {
    padding: 5px 20px;
    font-family: 'Zen Kaku Gothic New', sans-serif;
}

h3 {
    font-family: 'Zen Kaku Gothic New', sans-serif;
}

/* すべての文字を強制的に左寄せにする設定 */
.content,
footer,
.cat-slide h3,
.hero p,
.hero.index p {
    text-align: left !important;
}

/* 共通項目 ヘッダー*/
header {
    width: 100%;
    background: #de0067;

}

.header-innner {
    width: 100%;
    max-width: none;
    padding: 0 4%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.logo {
    width: 300px;
}

.logo h1 {
    margin: 0;
}

ul.nav {
    display: flex;
    list-style: none;
    margin: 0;
}

.nav li {
    height: 75px;
}

.nav a {
    display: flex;
    align-items: center;
    color: #ffffff;
    height: 100%;
    text-decoration: none;
    padding: 5px 15px;
    transition: 0.3s;
}

.nav a:hover {
    background-color: #ed3d7d;
    color: #fff;
}

/* 共通項目　ヒーロー画像 */
/* ヒーロー画像 */
.hero {
    position: relative;
}

.hero img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.hero p {
    position: absolute;
    top: 32%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: auto;
    white-space: nowrap;
    text-align: center;
    color: #fff;
    text-shadow: 4px 4px 7px #d00053;

    font-size: 3.5rem;
    z-index: 10;
}

.hero.index img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
}

.hero.index p {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    width: initial;
    font-size: 3rem;
    background: none;
    text-shadow: 3px 3px 7px #b00038;
    z-index: 10;
}

#mainImage {
    width: 100%;
    height: 540px;
    object-fit: cover;
    object-position: center;
}

/* 共通項目 2カラム */
main {
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    margin: 50px auto;
    background: #ffffff;
    box-shadow: 2px 2px 5px #eee;
    position: relative;
    z-index: 2 !important;
}

main.other {
    justify-content: center;
}

article {
    width: 650px;
    padding: 15px;
    margin: 10px;

}

/* 共通項目サイドバー */

aside.sidebar {
    width: 300px;
    padding: 10px;
    margin: 10px;
}

.sidebar-item {
    padding: 10px;
    margin-bottom: 30px;
    border: 1px solid #aaa;
    border-radius: 5px;
    box-shadow: 3px 3px 5px #8d98bf;
}

.sidebar-item h3 {
    padding: 5px 20px;
    color: #fff;
    background: #bd003c;
    border-bottom: 5px solid #7a0031;
}

.sidebar-item.profile span {
    font-size: 0.8rem;
}

/* カテゴリー欄のリストの余白を調整 */
.sidebar-item ul {
    padding-left: 20px;
    margin: 0;
}


/* 点を左に揃える設定 */
.sidebar-item li {
    display: list-item;
    list-style-position: outside;
    padding-left: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.profile-img {
    width: 250px;
    height: 200px;
    margin: 0 auto;
    text-align: center;
}

.profile-img img {
    height: 200px;
    object-fit: cover;
}

.profile-link {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar-item .profile-link a {
    color: #fff;
    background: #bd003c;
    border-radius: 5px;
    padding: 5px 15px;
}

.sidebar-item p {
    font-size: 0.9rem;
    margin-bottom: 30px;
}


/* 共通項目 フッター */
footer {
    background: #de0067;
    color: #fff;
    text-align: center;
    padding: 30px 0;
}

/*Topに戻る*/
#page_top {
    position: fixed;
    bottom: 30px;
    /*位置の調整*/
    right: 20px;
    /*位置の調整*/
    z-index: 999 !important;
}

#page_top a {
    cursor: pointer;
    display: inline-block;
    transition: opacity 0.3s;
}


#page_top a:hover {
    opacity: 0.8;
}


#page_top img {
    width: 120px;
    height: auto;
}


/* index.html */
/* カテゴリーバナー */
.cat-slide {
    padding: 30px 0;
    background-image: url(../images/cat-bg.svg);
}

.cat-slide h3 {
    text-align: center;
}


/* 新着一覧 */
h2.index-h2 {
    margin-top: 25px;
}

.post-item {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #aaa;
    border-radius: 5px;
    box-shadow: 3px 3px 5px #8d98bf;
}

.new-posts a,
.sidebar-item a {
    color: #000;
    text-decoration: none;
    transition: 0.3s;
}

.new-posts a:hover,
.sidebar-item a:hover {
    opacity: 0.6;
}
.eyecatch {
    width: 300px;
    height: 180px;
    flex-shrink: 0; 
}

.eyecatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-text {
    position: relative;
    height: auto;
    padding-bottom: 15px;
}

.post-text h3 {
    font-size: 1.1rem;
    margin: 5px 0;
}

.post-text span {
    position: relative;
    display: inline-block;
    /* ボタンとしての幅や高さを正しく持たせます */
    margin-top: 10px;
    padding: 5px 8px;
    background: #bd003c;
    border-radius: 5px;
}

.post-text p span {
    color: #ffffff;
    /* 文字色を白に指定 */
}

/* contents.html */
main.content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
}

.update span {
    font-size: 0.8rem;
    color: #fff;
    background: #d10053;
    padding: 5px 10px;
    margin-bottom: 15px;
    border-radius: 5px;
}

h1.post-title {
    line-height: 1.5;
    color: #bd003c;
    padding: 5px 15px;
    border-bottom: 2px solid #bd003c;
    margin: 40px 0;
}


article h2 {
    color: #fff;
    background: #bd003c;
    border-bottom: 5px solid #6f001f;
    margin: 50px 0 20px;
}

.blog h3 {
    padding: 8px 10px;
    border-bottom: 3px solid #d10053;
    margin: 50px 0 20px;
}

.post-eyecatch,
.post-img {
    text-align: left;
    margin: 30px 0;
}

.post-eyecatch img,
article img {
    width: 500px;
    height: 300px;
    object-fit: cover;
}

p.announce {
    font-size: 0.9rem;
    font-weight: bold;
    color: #d10053;
}

.contents-img {
    width: 350px;
    height: 280px;
    color: #fff;
    background: #777;
    margin: 30px 0;
    /* テキストセンター */
    display: flex;
    justify-content: center;
    align-items: center;
}



/* 関連記事 */
aside.recommend {
    max-width: 650px;
    margin: 30px auto;
    background: #ebedf9;
    padding: 15px;
}

/* 2列のグリッド配置 */
.recommend-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* 枠いっぱいに広げる */
.recommend-wrap a {
    color: #000;
    text-decoration: none;
    display: block;
    width: 100%;
}

/* 各記事カード */
.recommend-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

/* 画像枠 */
.recommend-img {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

/* 画像自体 */
.recommend-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* テキストエリア */
.recommend-text {

    width: calc(100% - 102px);
}

.recommend-text h4 {
    line-height: 1.4;
    font-size: 0.85rem;
    margin: 4px 0 0 0;
}

/* contents-2 Sticky */
.sticky {
    position: sticky;
    top: 0px;
}


/* profile.html */
article.other {
    max-width: 750px;
    margin: 50px auto;
}

.admin-name {
    text-align: right;
}

/* contact.html */
form {
    max-width: 650px;
    margin: 0 auto;
    background: #ebedf9;
    padding: 30px 15px;
}

.attention {
    font-size: 0.8rem;
    color: #bd003c;
}

.contact-wrap {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 30px 0;
}

.contact-wrap div,
input[type="text"],
input[type="email"],
textarea,
select {
    padding: 5px;
    margin: 5px 0;
    width: 100%;
    font-size: 1rem;
}

textarea {
    height: 150px;
}

.submit {
    text-align: center;
}

input[type="submit"] {
    border: 1px solid #ffffff;
    padding: 15px;
    width: 200px;
    color: #fff;
    background: #bd003c;
    font-size: 1rem;
    transition: 0.3s;
}

input[type="submit"]:hover {
    background: #d90246;
}

/* ヘッダーとフッターに共通の準備設定 */
header,
footer {
    position: relative;
    overflow: hidden;
}

/* 左上と右下に配置する市松模様の共通パーツ設定 */
header::before,
header::after,
footer::before,
footer::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;

    /* 市松模様のデザイン */
    background-image:
        linear-gradient(45deg, #fdb9d2 25%, transparent 25%, transparent 75%, #fdb9d2 75%),
        linear-gradient(45deg, #fdb9d2 25%, transparent 25%, transparent 75%, #fdb9d2 75%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

/* 左上の配置 */
header::before,
footer::before {
    top: 0;
    left: 0;
    /* 市松模様の表示、カット */
    -webkit-mask-image: linear-gradient(135deg, rgba(255, 255, 255, 0.73) 45%, transparent 45%);
    mask-image: linear-gradient(135deg, rgba(255, 255, 255, 0.73) 45%, transparent 45%);
}

/* 右下の配置 */
header::after,
footer::after {
    bottom: 0;
    right: 0;
    /* 右下から左上にかけて消えていくグラデーションマスク */
    -webkit-mask-image: linear-gradient(135deg, transparent 55%, rgba(255, 255, 255, 0.73) 55%);
    mask-image: linear-gradient(135deg, transparent 55%, rgba(255, 255, 255, 0.73) 55%);
}



/* Slick slider */
/* スライダー全体のエリア */
.sliderArea {
    position: relative;
    width: 100%;
    background: #171438;
    overflow: hidden;
    margin-top: 45px;
}

.sliderArea ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.slider li {
    margin: 0 10px;
}

/* スライダー内の画像 */
.slider img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    cursor: pointer;
}


/* 矢印のスタイル */
.slick-prev {
    left: 20px !important;
    z-index: 10;
}

.slick-next {
    right: 20px !important;
    z-index: 10;
}

.slick-prev:before {
    content: '<';
    font-size: 30px !important;
    color: #fff !important;
}

.slick-next:before {
    content: '>';
    font-size: 30px !important;
    color: #fff !important;
}

/*  光の粒のベースエリア */
.light-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(to bottom, #0f172a, #1e1b4b);
    overflow: hidden;
    z-index: -1 !important;
}

main {
    position: relative;
    z-index: 2 !important;
    background: rgba(227, 238, 255, 0.85) !important;
}


.post-text,
.post-text h3,
.post-text time,
.sidebar-item {
    color: #000000 !important;
}

/* コンテンツの配置 */
.content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 20vh;
}

/*  光の粒の共通設定 */
.particle {
    position: absolute;
    bottom: -20px;
    background: rgba(255, 255, 188, 0.8);
    border-radius: 50%;
    filter: blur(2px);
    animation: floatUp 8s infinite linear;

    z-index: 20 !important;


    pointer-events: none;
}

/* 各光の粒の大きさと位置・タイミングの個別設定 */
.p1 {
    left: 10%;
    width: 6px;
    height: 6px;
    animation-duration: 6s;
    animation-delay: 0s;
}

.p2 {
    left: 30%;
    width: 4px;
    height: 4px;
    animation-duration: 9s;
    animation-delay: 2s;
}

.p3 {
    left: 55%;
    width: 8px;
    height: 8px;
    animation-duration: 7s;
    animation-delay: 1s;
}

.p4 {
    left: 75%;
    width: 5px;
    height: 5px;
    animation-duration: 11s;
    animation-delay: 4s;
}

.p5 {
    left: 90%;
    width: 7px;
    height: 7px;
    animation-duration: 8s;
    animation-delay: 3s;
}

.p6 {
    left: 5%;
    width: 4px;
    height: 4px;
    animation-duration: 8s;
    animation-delay: 5s;
}

.p7 {
    left: 20%;
    width: 7px;
    height: 7px;
    animation-duration: 10s;
    animation-delay: 1s;
}

.p8 {
    left: 40%;
    width: 5px;
    height: 5px;
    animation-duration: 6s;
    animation-delay: 6s;
}

.p9 {
    left: 50%;
    width: 9px;
    height: 9px;
    animation-duration: 12s;
    animation-delay: 2s;
}

.p10 {
    left: 65%;
    width: 3px;
    height: 3px;
    animation-duration: 7s;
    animation-delay: 4s;
}

.p11 {
    left: 80%;
    width: 6px;
    height: 6px;
    animation-duration: 9s;
    animation-delay: 7s;
}

.p12 {
    left: 95%;
    width: 5px;
    height: 5px;
    animation-duration: 11s;
    animation-delay: 0.5s;
}

.p13 {
    left: 25%;
    width: 8px;
    height: 8px;
    animation-duration: 8s;
    animation-delay: 3.5s;
}

.p14 {
    left: 45%;
    width: 4px;
    height: 4px;
    animation-duration: 13s;
    animation-delay: 1.5s;
}

.p15 {
    left: 70%;
    width: 7px;
    height: 7px;
    animation-duration: 5s;
    animation-delay: 5.5s;
}

/*  上に舞い上がるアニメーション  */
@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-105vh) translateX(30px);
        opacity: 0;
    }
}

/* 文字を読みやすく保つ設定 */
.new-posts,
.sidebar {
    position: relative;
    z-index: 25;
}

.sidebar-item ul {
    padding-left: 20px !important;
    margin: 0 !important;
    text-align: left !important;
}

.sidebar-item li {
    display: list-item !important;
    list-style-type: disc !important;
    list-style-position: outside !important;
    text-align: left !important;
    padding-left: 0px !important;
    font-size: 0.9rem !important;
    margin-bottom: 15px !important;
}

footer {
    text-align: center !important;
}

@media(max-width:600px) {

    /* Slick */
    .slider img {
        height: 18vh;
        width: 45vw;
    }
}

/* ハンバーガーメニュー */

@media (max-width: 600px) {

    .hamburger {
        display: block;
        position: fixed;
        z-index: 110;
        right: 15px;
        top: 17px;
        width: 42px;
        height: 42px;
        cursor: pointer;
        text-align: center;
        background: #fff;
        border-radius: 5px;
    }

    .hamburger span {
        display: block;
        position: absolute;
        width: 30px;
        height: 2px;
        left: 6px;
        background: #bbbbbb;
        transition: 0.3s ease-in-out;
    }

    .hamburger span:nth-child(1) {
        top: 10px;
    }

    .hamburger span:nth-child(2) {
        top: 20px;
    }

    .hamburger span:nth-child(3) {
        top: 30px;
    }

    /* ナビメニュー展開時のボタン */
    .hamburger.active span:nth-child(1) {
        top: 20px;
        left: 6px;
        background: #bbbbbb;
        transform: rotate(-45deg);
    }

    .hamburger.active span:nth-child(2),
    .hamburger.active span:nth-child(3) {
        top: 20px;
        background: #bbbbbb;
        transform: rotate(45deg);
    }

    /* メニュー展開時　*/
    nav.navi-sp {
        position: fixed;
        z-index: 100;
        top: 0;
        left: 0;
        color: #fff;
        background: rgba(0, 0, 0, 0.7);
        text-align: center;
        width: 100%;
        height: auto;
        opacity: 0;
        visibility: hidden;
        padding: 20px 0;
        transition: 0.3s;
    }

    nav.navi-sp ul {
        display: flex;
        margin: 0 auto;
        padding: 0;
        width: 100%;
        height: auto;
        flex-direction: column;
        justify-content: space-between;
    }

    nav.navi-sp ul li a {
        display: block;
        color: #fff;
        padding: 10px 0;
        margin: 5px 0;
        text-decoration: none;
        background: transparent !important;
    }



    /* クリックでナビメニュー開閉 */
    nav.navi-sp.active {
        opacity: 1;
        visibility: visible;
    }
}

/* スマホ表示 */
@media(max-width: 600px) {

    /* 共通項目 フレックスの解除*/

    main,
    .post-item {
        flex-direction: column;
        margin: 10px 0;
        padding: 0 10px;
    }

    .recommend-wrap {
        grid-template-columns: 1fr;
    }

    /* 横幅の調整 */
    article,
    aside.sidebar,
    .eyecatch,
    .post-eyecatch,
    h1.contents-title,
    .contents-img {
        width: 100%;
        margin: 10px 0;
    }

    .post-text {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        padding-bottom: 5px;
    }


    .post-text p {
        margin-top: auto;
        margin-bottom: 0;
    }
.eyecatch {
        width: 100% !important;
        height: 200px !important; /* スマホで見やすい画像の高さに指定 */
    }
    .eyecatch img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

    /* ヘッダー */
    .logo {
        font-size: 0.9rem;
    }

    .logo img {
        width: 210px;
        /* ロゴの横幅をスマホ用に指定 */
        height: auto;
        /* 縦横比を維持する */
        display: block;
        /* 下部の余計な隙間を消す */
    }

    .header-innner {
        margin: 0;
        padding: 10px;
    }

    .header-innner ul {
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 10px;
    }

    /* ヒーロー画像 */
    .hero img {
        height: 150px;
    }

    /* index.html */
    .hero.index img {
        height: 250px;
    }


    .hero.hero.index p {
        display: flex;
        justify-content: center;
        /* 横方向の真ん中 */
        align-items: center;
        /* 縦方向の真ん中 */
        text-align: center;
        /* 文字自体も中央揃え */
        width: 100%;
        height: 400px;
        font-size: 35px;
        /* 文字の大きさを小さく調整（好みのサイズに変えてみてください） */
        line-height: 1.5;
        /* 万が一2行に折り返したときのために行間を少しあける */
        width: 90%;
        /* 画面の左右いっぱいにぶつからないように余白を持たせる */
        white-space: normal;
        /* 文字の自動折り返しを許可する */
    }

    .hero p {
        display: flex;
        justify-content: center;
        /* 横方向の真ん中 */
        align-items: center;
        /* 縦方向の真ん中 */
        text-align: center;
        /* 文字自体も中央揃え */
        width: 100%;
        height: 400px;
        font-size: 35px;
        /* 文字の大きさを小さく調整（好みのサイズに変えてみてください） */
        line-height: 1.5;
        /* 万が一2行に折り返したときのために行間を少しあける */
        width: 90%;
        /* 画面の左右いっぱいにぶつからないように余白を持たせる */
        white-space: normal;
    }

    .hero img {
        height: 160px;
    }



    .post-item {
        gap: 5px;
    }

    /* contents.html */
    main.content {
        grid-template-columns: 1fr;
    }

    .post-eyecatch img,
    article img {
        height: 200px;
    }

    blockquote {
        padding: 15px;
        margin: 0;
    }

    /* 模様 */
    header::before,
    header::after,
    footer::before,
    footer::after {
        width: 60px;
        /* 全体の幅 */
        height: 60px;
        /* 全体の高さ */

        /* 模様の細かさ */
        background-size: 12px 12px;

        /* ポジションの後半も、サイズ変更に合わせて半分に修正 */
        background-position: 0 0, 6px 6px;
    }

    /* スライダー */
    .sliderArea {
        margin-top: 20px;
        /* スマホ時は上の余白を少し詰める */
        padding: 10px 0;
    }

    .slider li {
        margin: 0 5px;
        /* スマホ画面に合わせて隙間を少し狭くする */
    }

    /* スマホで画像を大きく見せる調整 */
    .slider img {
        height: 150px;

    }
    #page_top img {
        width: 75px; /* スマホでの提灯の横幅（お好みで45px〜70px辺りに調整してください） */
    }
    
    #page_top {
        bottom: 20px; /* スマホに合わせて画面下の余白を少し狭く */
        right: 15px;  /* スマホに合わせて画面右の余白を少し狭く */
    }
}