@charset "utf-8";

/*TOPページ*/
* {
    box-sizing: border-box;
}

/* スマートフォン用のCSSで制作 */

body {
    font-family: sans-serif;
    background-color: #f4f4f4;
    color: #2c3c63;
    font-size: 16px;
}

.grid article img {
    width: 80%;
    /* 横幅を80%に縮小 */
    max-height: 250px;
    /* 高さ制限 */
    object-fit: cover;
    /* はみ出さずトリミング */
    margin: 0 auto;
    /* 中央寄せ */
    display: block;
    /* 中央寄せのため */
    border-radius: 8px;
}

/*-----header-----*/

.head a {
    position: relative;
    text-decoration: none;
    color: #4d6bb3;
    font-size: 20px;
    padding: 5px 0;
}

/* 下線の初期状態 */
.head a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    /* 文字のすぐ下に表示 */
    width: 0;
    height: 2px;
    background-color: #2c3c63;
    transition: width 0.3s ease;
}

/* ホバー時にスライドイン */
.head a:hover::after {
    width: 100%;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}



header .inner {
    display: flex;
    justify-content: center;
    /* 全体を中央寄せ */
    align-items: center;
    width: 100%;
}

.date {
    margin-bottom: 10px;
    font-size: 20px;
}

.head ul {
    display: flex;
    gap: 50px;
    margin: 0;
    margin-right: 40px
}

.logo {
    font-size: 25px;
}

/*-----main-----*/
.logo-img {
    width: 42%;
    margin: 50px 0 50px;
    margin-left: auto;
    margin-right: auto;
}

h3 {
    font-size: 25px;
    text-align: left;
    background-color: #d6d6d6;
    margin: 40px 100px 40px;

}

.midasi p {
    font-size: 18px;
    text-align: center;
    background-color: #d6d6d6;
    margin: 20px 40px 20px;
}

.midasi {
    text-align: center;
}

/* aspect-ratioで表示部分の縦横比を固定し、overflow:hiidenではみ出た部分を非表示  */
thumbnail-box {
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #333;
}

/* blog見出しを真ん中に */
.blog h3 {
    margin: 80px auto 40px;
    /* 上 80px、左右自動、下 40px */
    text-align: center;
    max-width: 220px;
    /* 幅を決めると見た目が揃う */
    font-size: 24px;
}

.blog-margin {
    margin-top: 100px 40px 100px;
}

.profile h3 {
    margin-top: 100px;
}

.profile-box img {
    border-radius: 100%;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.profile-text p {
    font-size: 17px;
    text-align: center;
    margin-top: 10px;
}

.profile {
    background-color: #b6bed2;
}

/*--------fotter-------*/
footer {
    background-color: #2c3c63;
    color: #f4f4f4;
    padding: 20px 40px 20px;
    text-align: center;
}


/*==================================================
スライダーのためのcss
===================================*/
.slider img {
    width: 100%;
    /*スライダー内の画像を横幅100%に*/
    height: auto;
}

/*slickのJSで書かれるタグ内、スライド左右の余白調整*/

.slider .slick-slide {
    margin: 0 10px;
    /*スライド左右の余白調整*/
}




@media screen and (min-width: 600px) {

    /* ここにパソコン・タブレットのみに当たるCSSを設定 */
    /*---main----*/
    .logo {
        font-size: 50px;
    }



    .blog h3 {
        margin: 200px auto 40px;
    }

    .head ul {
        font-size: 30px;
        gap: 270px;
    }

    .logo-img {
        width: 50%;
        margin: 100px 0 50px;
        margin-left: auto;
        margin-right: auto;

    }

    .head ul {
        display: flex;
        gap: 45px;
        margin-right: 200px;
        font-size: 25px;
    }

    /*-----main-----*/
    h3 {
        font-size: 20px;
        margin: 0 70px;
        width: 200px;
    }

    .grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 150px;
        max-width: 900px;
        margin: 0 auto;
        padding: 20px;
    }

    .grid article {
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .grid article:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    }

    .grid article img {
        width: 100%;
        height: auto;
        display: block;
    }

    .grid article .midasi {
        padding: 15px;
        background: #f9f9f9;
        text-align: left;
    }

    .grid article .midasi p {
        font-size: 16px;
        color: #333;
        margin: 0;
        text-align: left;
        margin-top: 10px;
    }

    .profile {
        background-color: #b6bed2;
        padding: 80px 20px;
        margin-top: 40px;
    }

    .profile-box {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 30px;
        max-width: 800px;
        margin: 0 auto;
    }

    /* 丸アイコン */
    .profile-box img {
        border-radius: 50%;
        width: 180px;
        height: auto;
        display: block;
    }

}





/*---------シングルページ-----------------*/
.single * {
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    background-color: #f4f4f4;
    color: #2c3c63;
    font-size: 16px;
    line-height: 1.7;


}

/*--------header-------*/
.samune img {
    border-radius: 8px;
    max-width: 90%;
    margin: 0 auto;
}

.spot-grid {
    display: block;
    gap: 20px;
}

.spot-item {
    margin-bottom: 30px;
}

img {
    width: 100%;
    height: auto;
    display: block;
}


header .inner {
    display: flex;
    justify-content: right;
    gap: 50px;
    padding: 5px;
}

.logo {
    font-size: 20px;
    font-weight: bold;
}



.head a {
    text-decoration: none;
    color: #2c3c63;
    font-size: 23px;
}


.article-header {
    text-align: center;
    padding: 20px;
}

.date {
    margin-bottom: 10px;
    font-size: 20px;
    text-align: center;
}

.samune {
    position: relative;
}

.samune img {
    border-radius: 8px;
}



.toc {
    background: white;
    margin: 20px;
    padding: 20px;
    border: 1px solid #ccc;
}

.toc h3 {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 20px;
    margin-left: auto;
    margin-right: auto
}

.toc ol {
    padding-left: 20px;
}

.toc li {
    margin-bottom: 8px;
}


.content {
    margin: 40px 20px;
}

.section-title {
    background: #d6d6d6;
    padding: 8px;
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
}

.text-box {
    margin-bottom: 20px;
}

.text-box h4 {
    font-weight: bold;
    margin-bottom: 5px;
}

.point {
    font-weight: bold;
    margin: 20px 0 10px;
}

/*---nav---*/
.article-nav {
    display: flex;
    justify-content: space-between;
    margin: 40px 20px;
}

.article-nav a {
    text-decoration: none;
    color: #2c3c63;
    font-weight: bold;
}

/*----footer----*/
footer {
    background: #2c3c63;
    color: #fff;
    padding: 15px;
    text-align: center;
}



/* PC版 */
@media screen and (min-width:600px) {
    body {

        font-size: 20px;
    }

    .toc h3 {
        font-weight: bold;
        margin-bottom: 20px;
        font-size: 25px;
        margin-left: auto;
        margin-right: auto
    }

    .spot-grid {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 40px;
    }

    .spot-item {
        flex: 1;
        text-align: center;
    }

    .spot-item img {
        max-width: 80%;
        height: auto;
        margin: 0 auto;
    }


    .logo {
        font-size: 28px;
    }



    .samune .title {
        font-size: 30px;
    }

    .toc {
        max-width: 500px;
        margin: 40px auto;
        text-align: center;
    }

    .content {
        margin: 60px auto;
        max-width: 800px;
    }

    .section-title {
        font-size: 22px;
    }

}

/* comment*/
.comment-author img {
    width: 100px;
    margin-left: 30px;
}

.widget_title {
    display: grid;
    gap: 20px;
    width: 300px;
    margin-left: auto;
    margin-right: auto;
}

h2 a {
    font-size: 22px;
    font-family: Arial, Helvetica, sans-serif;

}

.article-header h2 a {
    font-size: 30px;
}

.inner2 {
    margin-left: auto;
    margin-right: auto;
    width: 95%;
}

.comment-area {
    width: 100%;
    max-width: 700px;
    /* 本文と合わせたい場合はここを調整 */
    margin: 40px auto;
    /* 上下40px、左右自動で中央寄せ */
    padding: 0 15px;
    /* 画面端との余裕 */
    box-sizing: border-box;
}

.post-nav {
    display: flex;
    /* 横並び */
    justify-content: center;
    /* 全体を中央寄せ（左右に振り分けたいなら space-between） */
    gap: 200px;
    /* 前の記事と次の記事の間隔 */
    margin-top: 20px;
}

.comment-area {
    margin-top: 40px;
}

.comment-title {
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: bold;
    color: #2c3c63;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.comment-box {
    border: 1px solid #ccc;
    padding: 20px;
    background: #fff;
    width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.comment-box textarea {
    width: 100%;
    min-height: 120px;
    padding: 10px;
    border: 1px solid #aaa;
    border-radius: 5px;
    font-size: 16px;
}

/* --- 全体コンテンツを中央に制限するラッパー --- */
.site-wrapper {
    max-width: 1100px;
    /* 好きな最大幅に調整 */
    margin: 0 auto;
    /* 中央寄せ */
    padding: 0 20px;
    /* 左右の余白（レスポンシブ時の余裕） */
}

/* grid自体もラッパー内で中央に */
.grid {
    margin: 0 auto;
    max-width: 900px;
    /* 既存の幅に合わせる */
    display: grid;

}




/*マークアップHTML タグとフォーマット*/

.document {
    line-height: 1.8;
    font-size: 1rem;
    color: #333;
    max-width: 700px;
    background-color: #FFF;
    margin: 0 auto;
    padding: 35px;
    text-align: left
}

.document h2 {
    font-size: 1.6rem;
    margin: 2rem 0 1rem;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.3rem;
}





.document p {
    margin: 1rem 0;
}


.document ul,
.document ol {
    margin: 1rem 0 1rem 1.5rem;
    list-style-type: disc;
    /* ・を表示 */
}

.document li {
    margin-bottom: 0.5rem;
    text-align: left;
    list-style-type: disc;
    /* ・を表示 */
}


.document blockquote {
    border-left: 4px solid #aaa;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #555;
    font-style: italic;
}


.document figure {
    margin: 2rem 0;
    text-align: center;
}

.document img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.document figcaption {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}


.document table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.document th,
.document td {
    border: 1px solid #ddd;
    padding: 0.6rem;
}

.document th {
    background: #f5f5f5;
}


@media(width<=390px) {
    .article-header h2 a {
        font-size: 19px;

    }

    .article-header .date {
        font-size: 16px;
    }


    .address {
        text-align: left;
    }

    .next a {
        width: 390px;
        margin-left: auto;
        margin-right: auto;
    }

    .post-nav {
        gap: 150px
    }

    .comment-box {
        margin-left: auto;
        margin-right: auto;
        width: 250px;
    }

    h3 .comment-title {
        align-items: center;
    }

    .document h3 {
        font-size: 1.3rem;
        margin: 1.5rem 0 0.8rem;
        padding-left: 0.5rem;
        border-left: 4px solid #2c3c63;
    }

    .comment-title {
        font-size: 20px;
        margin-bottom: 25px;
        font-weight: bold;
        color: #2c3c63;
        text-align: center;
        width: 175px;

    }

    .post-nav {
        gap: 150px;
    }

}