@charset "UTF-8";

#top_header {
    max-width: 1000px;
    width: 96%;
}

.breadcrumbs {
    max-width: 1280px;
    width: 100%;
    margin: 10px auto;
    font-size: 0.9em;
    background-color: #fbfbfb;
    padding: 0.5% 0;
}

#main,
#main * {
    box-sizing: border-box;
}

#main {
    max-width: 1280px;
    width: 96%;
    margin-inline: auto;
}

.single-content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2%;
}

#main #main_post {
    width: 70%;
}

#main .side {
    width: 26%;
}

.single h1.sub_title {
    margin-top: 0;
    padding-top: 0;
    word-break: auto-phrase;
}

.single h4 {
    padding: 0m;
    margin-bottom: 0.8rem;
    border-bottom: 2px solid #b2d5de;
    font-weight: bold;
    font-size: 1.2em;
}

.single p {
    margin-bottom: 1rem;
}

.single .postImage.post-mv {
    height: 478px;
    margin-bottom: 24px;
    box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.35);
}

.single .postImage.post-mv {
    padding: 0 !important;
}

/* ボックスデザイン */
.article-simple-box {
    position: relative;
    max-width: 98%;
    width: 100%;
    margin: 1.2rem auto 2.5rem;
    padding: 1em calc(1.5em + 9px);
    border-top: 1px solid #277492;
    border-bottom: 1px solid #277492;
    color: #333;
}

.article-simple-box::before,
.article-simple-box::after {
    position: absolute;
    width: 1px;
    top: 50%;
    transform: translateY(-50%);
    height: calc(100% + 20px);
    background-color: #277492;
    content: '';
}

.article-simple-box::before {
    left: 9px;
}

.article-simple-box::after {
    right: 9px;
}

.article-simple-box p {
    line-height: 1.5;
    color: #333;
}

.single .kanren_kiji li:before {
    content: none;
}

/* タブレット以下 */
@media (max-width: 768px) {
    html {
        margin-top: 50px;
    }
}

/* スマホ縦 */
@media (max-width: 480px) {

    html {
        margin-top: 60px;
    }

    #main {
        padding: 0 5px;
    }

    .single-content {
        flex-direction: column;
    }

    #main #main_post {
        width: 100%;
    }

    #main .side {
        width: 100%;
    }

    .single .postImage.post-mv {
        height: 244px;
    }

    .single .postImage.post-mv img {
        margin-top: 0 !important;
    }

    .single .toc ol {
        padding: 2% 1rem 2% 2.5rem;
    }

    .single .toc li {
        margin-top: 0.6rem;
    }

    .single .toc li a {
        display: flex;
    }

    .single .toc:first-child {
        margin-top: 0;
    }

    .profileTxtSet {
        position: relative;
        max-height: 150px;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .profileTxtSet::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 80px;
        background: linear-gradient(to bottom, transparent, #ffffff);
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .profileTxtSet.expanded {
        max-height: none;
    }

    .profileTxtSet.expanded::after {
        opacity: 0;
    }

    .profile-toggle {
        display: block;
        margin: 0 auto 18px;
        padding: 4px 20px;
        color: #277492;
        background-color: #f5fdff;
        border: 1px solid #277492;
        border-radius: 4px;
        cursor: pointer;
    }

    #main #main_post h2 {
        font-size: 1.375rem;
    }

    #main #main_post h3 {
        font-size: 1.25rem;
        letter-spacing: 0.028em;
    }
}