@charset "UTF-8";
/*-------------
vars
-------------*/
:where(.blog-main){
    --inner-width: 1200px;
    --inner-width_sp: 90.625vw;
    --inner-sides: 40px;
    --inner-sides_sp: 4.6875vw;
    
    --main-blue: #4990ff;
    --accent-blue: #1450a4;
    --link-blue: #0088ff;
    --base-black: #333;
    --accent-black: #1f1f1f;
    --border-gray: #dedede;
    --bg-gray: #eee;
    --text-gray: #666;
    
    --font-mono: "SF Mono", "Menlo", "Roboto Mono", "Noto Sans Mono", "Consolas", "Courier New", monospace;
    
    --linear: .3s linear;
    --ease: .3s ease;
}
@media screen and (max-width:1280px){
    :where(.blog-main){
        --inner-sides: 20px;
    }
}
@media screen and (max-width:767px){
    :where(.blog-main){
        --inner-width: var(--inner-width_sp);
        --inner-sides: var(--inner-sides_sp);
    }
}
:where(.blog-main){
    --arrow-slide: arrow-slide .75s forwards;
}
:where(.blog-main) *,
:where(.blog-main) *::before,
:where(.blog-main) *::after{
    box-sizing: border-box;
}

/*-------------
header・footer
-------------*/
.menu__loading{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 0 20px;
    box-sizing: border-box;
    line-height: 1.2;
}
@media screen and (max-width:767px){
    .menu__loading{
        min-height: 32px;
        font-size: 12px;
    }
}
.header-pc-category .menu__loading{
    padding: 25px 20px;
    font-size: 12px;
    line-height: 1.6;
}
.header-pc-category .menu__loading:empty::before{
    content: "　";
}
.header._dummy .header_actionver ul{
    opacity: 0;
}
.header._dummy .header_actionver ul li a::before{
    display: inline-block;
    height: 15px;
    content: "";
}
.header._dummy .actionBox{
    flex: 1 1 auto;
    position: relative;
    margin: 0;
}
.header._dummy .actionBox li{
    opacity: 0;
    pointer-events: none;
    user-select: none;
}
@keyframes menu__loading{
    0%  { transform: rotate(0deg); }
    100%{ transform: rotate(360deg); }
}
.menu__loading:empty::after,
body:not(._load-end) .header._dummy .actionBox::after{
    position: absolute;
    top: calc(50% - 15px);
    left: calc(50% - 15px);
    width: 30px;
    height: 30px;
    border: solid 5px rgba(0,0,0,.2);
    border-left-color: rgba(0,0,0,.5);
    border-radius: 50%;
    box-sizing: border-box;
    content: "";
    animation: menu__loading 1s infinite linear;
}
.menu__loading a{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: inherit;
    padding: 5px 20px;
    border-radius: 99px;
    box-sizing: border-box;
    background: #1f1f1f;
    color: #fff;
}

/*-------------
blog-column
-------------*/
.blog-column{
    display: grid;
    grid-template-columns: 1fr 850px;   
    gap: 0 50px;
    margin-bottom: 50px;
}
@media screen and (max-width:767px){
    .blog-column{
        grid-template-columns: 100%;
        gap: 30px 0;
        margin-bottom: 40px;
    }
}
.blog-column-main{
    overflow: hidden;
}

/* blog-page-title */
.blog-page-title{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 15px;
    margin-bottom: 15px;
    line-height: calc(1em + 6px);
}
.blog-page-title__sub{
    flex: 0 0 auto;
    padding-left: 12px;
    border-left: solid 2px currentColor;
    color: #888;
    font-size: 16px;
    line-height: calc(1em + 2px);
}

/* blog-column-side */
@media screen and (min-width:768px){
    .blog-column-side{
        grid-row: 1 / 2;
    }
}
.blog-sidemenu__heading{
    position: relative;
    margin-bottom: 15px;
    padding-left: 29px;
    font-size: 18px;
    font-weight: bold;
    line-height: calc(1em + 10px);
}
.blog-sidemenu__heading::before{
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 23px;
    height: 19px;
    background: url(../images/icon_list.svg) no-repeat center / contain;
    content: "";
}
@media screen and (max-width:767px){
    .blog-sidemenu__heading{
        margin-bottom: 10px;
        padding-left: 26px;
        font-size: 16px;
    }
    .blog-sidemenu__heading::before{
        width: 20px;
        height: 16px;
    }
}
.blog-sidemenu-list{
    background: #fff;
}
.blog-sidemenu-list .sidemenu-accodion{
    height: auto;
    padding: 12px 40px 10px 15px;
    border-top: solid 2px var(--main-blue);
    font-size: 15px;
    font-weight: bold;
}
@media screen and (max-width:767px){
    .blog-sidemenu-list .sidemenu-accodion{
        padding: 8px 36px 8px 15px;
        font-size: 14px;
    }
}
.blog-sidemenu-list-l2{
    padding: 10px;
}
.blog-sidemenu-list-l2__item:not(:last-child){
    border-bottom: dotted 1px #ddd;
}
.blog-sidemenu-list-l2__item a{
    display: block;
    position: relative;
    padding: 10px 20px 10px 15px;
    border-radius: 3px;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: .03em;
    transition: 0.3s;
}
@media screen and (max-width:767px){
    .blog-sidemenu-list-l2__item a{
        padding-left: 10px;
        font-size: 12px;
    }
}
@media (any-hover: hover){
    .blog-sidemenu-list-l2__item a:hover{
        background: #f5f5f5;
    }
}
.blog-sidemenu-list-l2__item a::after{
    position: absolute;
    top: calc(50% - 3px);
    right: 10px;
    transform: rotate(-90deg);
    width: 8px;
    height: 5px;
    background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="5" data-name="svg" viewBox="0 0 8 5"><path d="M4 5a.52.52 0 0 1-.389-.175L.123.827A.494.494 0 0 1 .179.12a.52.52 0 0 1 .722.056L4 3.726 7.099.176a.52.52 0 0 1 .722-.055c.215.18.24.497.056.707L4.389 4.825A.52.52 0 0 1 4 5" style="fill:%23888"/></svg>') no-repeat center / contain;
    content: "";
}
.blog-sidemenu__count{
    display: inline-block;
    margin-left: max(-.2em, -5px);
    color: var(--text-gray);
}

/*-------------
blog-list
-------------*/
.blog-list{
    display: grid;
    gap: 10px;
}
.blog-list._loading{
    opacity: 0;
}
@media screen and (max-width:767px){
    .blog-list{
        gap: 5px;
    }
}
.blog-list-item{
    width: 100%;
    overflow: hidden;
    border-bottom: solid 1px var(--border-gray);
    border-radius: 4px;
    background: #fff;
}
.blog-list-item-inner{
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr auto;
    gap: 0 20px;
    padding: 30px;
}
@media screen and (max-width:767px){
    .blog-list-item-inner{
        display: block;
        padding: 15px 15px 20px;
    }
}
.blog-list-thumb{
    grid-row: 1 / 3;
    width: 300px;
}
@media screen and (max-width:767px){
    .blog-list-thumb{
        width: 100%;
        margin-bottom: 17px;
    }
}
.blog-list-thumb img{
    width: 100%;
    height: auto;
}
.blog-list-body{
    flex: 1 1 auto;
}
.blog-list-title{
    margin-bottom: 15px;
    padding-bottom: 11px;
    border-bottom: solid 1px var(--accent-blue);
    font-size: 20px;
    font-weight: bold;
    line-height: calc(1em + 8px);
}
.blog-list-title a{
    display: block;
}
@media screen and (max-width:767px){
    .blog-list-title{
        margin-bottom: 12px;
        padding-bottom: 8px;
        overflow: hidden;
        font-size: 18px;
        line-height: calc(1em + 6px);
        text-overflow: ellipsis;
    }
    .blog-list-title a{
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
.blog-list-info{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.blog-list-date{
    color: var(--text-gray);
    line-height: 1;
}
@media screen and (max-width:767px){
    .blog-list-date{
        font-size: 12px;
    }
}
.blog-list-cate{
    display: inline-block;
    padding: 3px 12px;
    background: var(--main-blue);
    border-radius: 99px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: .02em;
    line-height: calc(1em + 2px);
}
@media screen and (max-width:767px){
    .blog-list-cate{
        padding: 3px 10px;
        font-size: 10px;
    }
}
.blog-list-exc{
    margin-top: 11px;
    color: var(--base-black);
    line-height: calc(1em + 8px);
}
@media screen and (max-width:767px){
    .blog-list-exc{
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        margin-top: 10px;
        overflow: hidden;
        font-size: 12px;
        text-overflow: ellipsis;
    }
}
.blog-list-bottom{
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 11px;
}
.blog-list-more{
    flex: 0 0 auto;
}
.blog-list-more a{
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 4px;
    background: var(--accent-blue);
    color: #fff;
    font-size: 12px;
    line-height: calc(1em + 2px);
    letter-spacing: .05em;
}
@media screen and (max-width:767px){
    .blog-list-more a{
        gap: 6px;
        padding: 6px 11px;
    }
}
.blog-list-more a::before{
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    background: #fff;
    content: "";
}

/* blog-pager */
.blog-pager{
    --my-pager-size: 40px;
    display: grid;
    justify-content: center;
    align-items: center;
    grid-template-columns: 80px auto 80px;
    gap: 0 20px;
    min-height: var(--my-pager-size);
    margin-top: 40px;
}
@media screen and (max-width:767px){
    .blog-pager{
        --my-pager-size: min(40px, 14.375vw);
        grid-template-columns: 1fr 1fr;
        gap: 15px 6px;
        margin-top: 20px;
    }
}
.blog-pager-arrow._next{
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}
@media screen and (max-width:767px){
    .blog-pager-arrow._next{
        grid-column: 2 / 3;
    }
}
.blog-pager-arrow a{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0 8px;
    height: 40px;
    border-radius: 4px;
    background: var(--accent-blue);
    color: #fff;
    letter-spacing: .08em;
}
.blog-pager-arrow a::after{
    flex: 0 0 auto;
    transform: rotate(45deg);
    width: 6px;
    height: 6px;
    margin-top: -2px;
    border-top: solid 2px #fff;
    border-right: solid 2px #fff;
    content: "";
}
.blog-pager-arrow._prev a::after{
    order: -1;
    transform: rotate(-135deg);
}
@media screen and (max-width:767px){
    .blog-pager-arrow a{
        height: 36px;
        font-size: 1.2rem;
    }
    .blog-pager-arrow a::after{
        width: 6px;
        height: 6px;
        margin-top: 0;
    }
}
.blog-pager-list{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0 5px;
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}
@media screen and (max-width:767px){
    .blog-pager-list{
        gap: 0 min(10px, 1.25vw);
        width: 100%;
        grid-column: 1 / 3;
        grid-row: 2 / 3;
    }
}
.blog-pager-list-item{
    flex: 0 0 auto;
    width: var(--my-pager-size);
}
.blog-pager-list-item a{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 0;
    height: var(--my-pager-size);
    border: solid 1px var(--border-gray);
    border-radius: 50%;
    background: #fff;
    color: var(--base-black);
    font-size: 14px;
    font-weight: 500;
    transition: border var(--ease), background var(--ease), color var(--ease);
}
@media (any-hover: hover){
    .blog-pager-list-item a:hover{
        opacity: 1;
        border-color: var(--accent-black);
        background: var(--accent-black);
        color: #fff;
    }
}
.blog-pager-list-item a._current{
    border-color: var(--accent-black);
    background: var(--accent-black);
    color: #fff;
    pointer-events: none;
}
.blog-pager-list._last::before,
.blog-pager-list._middle::before,
.blog-pager-list._first::after,
.blog-pager-list._middle::after{
    display: block;
    flex: 0 0 auto;
    width: 18px;
    height: 2px;
    background: url(../images/icon_dots.svg) no-repeat center / contain;
    content: "";
}
.blog-pager-list._last .blog-pager-list-item:first-child,
.blog-pager-list._middle .blog-pager-list-item:first-child{
    order: -1;
}
.blog-pager-list._first .blog-pager-list-item:last-child,
.blog-pager-list._middle .blog-pager-list-item:last-child{
    order: 1;
}

/*-------------
blog-dtl
-------------*/
.blog-dtl{
    background: #fff;
}
.blog-dtl-main{
    padding: 25px 30px 40px;
}
@media screen and (max-width:767px){
    .blog-dtl-main{
        padding: 20px 20px 30px;
    }
}
.blog-dtl-head{
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: solid 1px var(--accent-blue);
}
@media screen and (max-width:767px){
    .blog-dtl-head{
        margin-bottom: 30px;
        padding-bottom: 10px;
    }
}
.blog-dtl-info{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 15px;
    margin-bottom: 20px;
}
.blog-dtl-head-date{
    flex: 0 0 auto;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}
.blog-dtl-head-cate{
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.blog-dtl-head-cate-item{
    padding: 3px 12px;
    background: var(--main-blue);
    border-radius: 99px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: .02em;
    line-height: calc(1em + 2px);
}
@media screen and (max-width:767px){
    .blog-dtl-info{
        gap: 5px 10px;
        margin-bottom: 16px;
    }
    .blog-dtl-head-date{
        font-size: 12px;
    }
    .blog-dtl-head-cate{
        gap: 4px;
    }
    .blog-dtl-head-cate-item{
        padding: 3px 10px;
        font-size: 10px;
    }
}
.blog-dtl-head-title{
    margin: 0;
    padding: 0;
    font-size: 24px;
    font-weight: bold;
    line-height: calc(1em + 10px);
}
@media screen and (max-width:767px){
    .blog-dtl-head-title{
        font-size: 20px;
        line-height: calc(1em + 8px);
    }
}

/* blog-dtl-aside */
.blog-dtl-aside{
    padding: 40px 30px;
    border-top: solid 1px var(--border-gray);
}
@media screen and (max-width:767px){
    .blog-dtl-aside{
        padding: 30px 20px;
    }
}

/* blog-dtl-related */
.blog-dtl-related:not(:last-child){
    margin-bottom: 20px;
}
.blog-dtl-related-title{
    margin-bottom: 18px;
    font-size: 20px;
    line-height: calc(1em + 4px);
}
@media screen and (max-width:767px){
    .blog-dtl-related-title{
        margin-bottom: 13px;
        font-size: 18px;
    }
}
.blog-dtl-related-list{
    display: grid;
    grid-template-columns: calc(50% + 1px) 1fr;
    border-top: solid 1px var(--border-gray);
    border-bottom: solid 1px var(--border-gray);
}
@media screen and (max-width:767px){
    .blog-dtl-related-list{
        display: block;
    }
}
.blog-dtl-related-list-item a{
    display: flex;
    align-items: flex-start;
    gap: 0 15px;
    height: 100%;
    padding: 15px 0 15px 15px;
}
@media screen and (min-width:768px){
    .blog-dtl-related-list-item:not(:nth-last-child(-n+2)) a,
    .blog-dtl-related-list-item:nth-last-child(2):nth-child(2n) a{
        border-bottom: solid 1px  var(--border-gray);
    }
    .blog-dtl-related-list-item:nth-child(odd) a{
        padding: 15px 15px 15px 0;
        border-right: solid 1px var(--border-gray);
    }
}
@media screen and (max-width:767px){
    .blog-dtl-related-list-item a{
        gap: 0 12px;
        padding: 10px 0;
    }
    .blog-dtl-related-list-item:not(:last-child) a{
        border-bottom: solid 1px  var(--border-gray);
    }
}
.blog-dtl-related-list-thumb{
    flex: 0 0 auto;
    width: 120px;
    height: 80px;
    overflow: hidden;
}
@media screen and (max-width:767px){
    .blog-dtl-related-list-thumb{
        width: 90px;
        height: 60px;
    }
}
.blog-dtl-related-list-thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-dtl-related-list-title{
    padding-top: 2px;
    font-size: 14px;
    font-weight: normal;
    line-height: calc(1em + 8px);
}
@media screen and (max-width:767px){
    .blog-dtl-related-list-title{
        padding-top: 1px;
        font-size: 13px;
    }
}

/* blog-dtl-next-link */
.blog-dtl-next-link{
    display: grid;
    grid-template-columns: calc(50% + 1px) 1fr;
    position: relative;
    margin-top: 20px;
    border-top: solid 1px var(--border-gray);
    border-bottom: solid 1px var(--border-gray);
    background: var(--bg-gray);
}
.blog-dtl-next-link:not(:last-child){
    margin-bottom: 23px;
}
.blog-dtl-next-link::before{
    position: absolute;
    top: 15px;
    left: calc(50% + 1px);
    width: 1px;
    height: calc(100% - 30px);
    background: #d3d3d3;
    content: "";
}
@media screen and (max-width:768px){
    .blog-dtl-next-link::before{
        top: 10px;
        height: calc(100% - 20px);
    }
}
.blog-dtl-next-link-item._next{
    grid-column: 2 / 3;
}
.blog-dtl-next-link-item a{
    display: block;
    height: 100%;
    padding: 15px 36px 15px 20px;
    font-weight: bold;
}
@media screen and (min-width:769px){
    .blog-dtl-next-link-item._prev a{
        padding-right: 20px;
        padding-left: 36px;
    }   
}
@media screen and (max-width:768px){
    .blog-dtl-next-link-item a{
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 10px 15px 10px;
        font-weight: normal;
    }
}
.blog-dtl-next-link-item._next a{
    text-align: right;
}
.blog-dtl-next-link-item._prev a::before,
.blog-dtl-next-link-item._next a::after{
    position: absolute;
    top: calc(.5em + 14px);
    right: 16px;
    transform: rotate(45deg);
    width: 8px;
    height: 8px;
    border-top: solid 2px #999;
    border-right: solid 2px #999;
    content: "";
}
.blog-dtl-next-link-item._prev a::before{
    right: auto;
    left: 16px;
    transform: rotate(-135deg);
}
@media screen and (max-width:768px){
    .blog-dtl-next-link-item._prev a::before,
    .blog-dtl-next-link-item._next a::after{
        flex: 0 0 auto;
        position: static;
    }
}
.blog-dtl-next-link-title{
    display: block;
    font-weight: normal;
}
@media screen and (max-width:767px){
    .blog-dtl-next-link-title{
        display: none;
    }
}

/* blog-dtl-tags */
.blog-dtl-tags{
    display: flex;
    flex-wrap: wrap;
    gap: 13px 15px;
}
.blog-dtl-tag a{
    color: var(--link-blue);
    font-size: 14px;
    line-height: calc(1em + 4px);
    text-decoration: underline;
}
@media screen and (max-width:767px){
    .blog-dtl-tags{
        gap: 10px 12px;
    }
    .blog-dtl-tag a{
        font-size: 13px;
    }
}
@media (any-hover: hover){
    .blog-dtl-tag a:hover{
        opacity: 1;
        text-decoration: none;
    }
}

/* blog-back-btn */
.blog-back-btn{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
}
.blog-back-btn a{
    display: block;
    background: var(--accent-black);
    min-width: 200px;
    padding: 15px;
    border-radius: 99px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: .05em;
    text-align: center;
    transition: background var(--ease);
}
@media screen and (max-width:767px){
    .blog-back-btn{
        margin-top: 20px;
    }
    .blog-back-btn a{
        min-width: min(300px, 56.25vw);
        padding: 10px 15px;
        font-size: 14px;
    }
}
@media (any-hover: hover){
    .blog-back-btn a:hover{
        opacity: 1;
        background: #7e7e7e;
    }
}

/*-------------
blog-Search UI
-------------*/
/* [ADD 2025-12-19 j.iwamoto] */
.blog-search{
    margin: 0 0 38px;
    text-align: left;
}
.blog-search__control{
    display: flex;
    align-items: center;
    gap: 8px;
}
.blog-search__input{
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d6dbe3;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    line-height: 1;
}
.blog-search__input:focus{
    outline: none;
    border-color: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}
.blog-search__btn{
    flex: 0 0 auto;
    height: 40px;
    padding: 0 10px;
    min-width: 48px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;

    background: #111;
    color: #fff;
}
.blog-search__btn:hover{
    filter: brightness(0.95);
}
.blog-search__btn:active{
    transform: translateY(1px);
}
@media (max-width: 520px){
    .blog-search__btn{
        min-width: 56px;
        padding: 0 10px;
    }
}
.search-result-caption{
    margin: 6px 0 12px;
    font-size: 18px;
    font-weight: 700;
}

/* =========================================
   カスタムブロック：目次
   ========================================= */

/* 全体の大枠 */
.toc-box {
    border: none;                /* 枠線はなし */
    background-color: #f4f8ff;   /* 背景色（薄い水色） */
    padding: 30px;               /* 内側の余白 */
    
    /* ★ここを変更：横幅を狭めて真ん中に置く */
    max-width: 500px;            /* 横幅の上限（ここを好きな数字に変えてOK） */
    margin: 35px auto;           /* 上下は35px、左右は「auto（真ん中）」 */
    
    border-radius: 15px;         /* 角を丸く */
}

/* 1つ目のパーツ（タイトル） */
.toc-box > *:nth-child(1) {
    font-weight: bold;
    font-size: 1.3em;
    color: #0066cc;              /* 文字色を青に */
    margin-bottom: 20px;
    border-bottom: 2px dotted #aaccff; /* 下線を可愛い点線に */
    padding-bottom: 12px;
    display: block;
    text-align: center;          /* 中央揃え */
}

/* 2つ目のパーツ（リスト） */
.toc-box > *:nth-child(2) {
    font-size: 1.0em;
}
/* 標準の「・」を消して、自分で作る */
.toc-box ul {
    margin: 0;
    padding-left: 0;             /* 左の余白をリセット */
    list-style: none;            /* 標準の点を消す */
}
.toc-box li {
    margin-bottom: 12px;
    padding-left: 20px;          /* 左にドット用の隙間を作る */
    position: relative;          /* ドットを配置する基準 */
}
/* ★CSSで小さな水玉を作る魔法 */
.toc-box li::before {
    content: "";                 /* 空っぽの要素を作る */
    position: absolute;
    top: 0.6em;                  /* 上からの位置 */
    left: 0;                     /* 左端に配置 */
    width: 8px;                  /* ドットの幅 */
    height: 8px;                 /* ドットの高さ */
    background-color: #aaccff;   /* ドットの色（薄い青） */
    border-radius: 50%;          /* 丸くする */
}
/* リンクの色 */
.toc-box a {
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid transparent; /* 透明な下線を準備 */
    transition: border-color 0.3s;
}
.toc-box a:hover {
    color: #0066cc;
    border-bottom-color: #0066cc; /* マウスを乗せたら下線を青く */
}

/* --- カスタムブロック：目次 ここまで--- */



/* =========================================
   カスタムブロック：商品カードのデザイン（自動リンク対応版）
   ========================================= */

/* カード全体の設定 */
.product-card-item {
    position: relative;          
    display: block;              
    border: 1px solid #e0e0e0;   
    background: #fff;            
    padding: 20px;               
    box-sizing: border-box;      
    border-radius: 6px;          
    height: 100%;                
    transition: all 0.3s ease;   
    
    /* ★重要：JSでリンク化するので、マウスを指マークにする */
    cursor: pointer;
}

/* マウスを乗せた時の動き */
.product-card-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.15); 
    border-color: #aaa;          
    transform: translateY(-3px); 
}

/* --- カードの中身 --- */

/* 1番目の要素：画像 */
.product-card-item > *:nth-child(1) {
    width: 100%;                 
    height: auto;                
    border: 1px solid #f0f0f0;   
    margin-bottom: 15px;         
    vertical-align: bottom;      
    display: block;              /* 画像をブロック要素として扱う */
}

/* 2番目の要素：商品名（タイトル） */
/* ★ここを「aタグ」から「2番目の箱」への指定に変更しました */
.product-card-item > *:nth-child(2) {
    font-weight: bold;           /* 太字 */
    font-size: 13px;           /* 文字サイズ */
    color: #333;                 /* 色は黒（リンクっぽく青にしたい場合は #0066cc） */
    margin-bottom: 10px;         
    text-align: center;          /* 中央揃え */
    line-height: 1.4;            
    display: block;
}

/* 3番目の要素：説明文 */
.product-card-item > *:nth-child(3) {
    font-size: 13px;           
    color: #666;                 
    line-height: 1.6;            
    margin: 0;
    text-align: left;            
    display: block;
}

/* ※4番目の要素（URL欄）はスクリプトが自動で消すのでCSS不要 */

/* --- 自動レイアウト用（これを忘れると縦並びのままになります！） --- */
.auto-card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.auto-card-grid .product-card-item {
    width: calc(33.333% - 14px); /* PCでは3列 */
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .auto-card-grid .product-card-item {
        width: 100%; /* スマホでは1列 */
    }
}

/* --- カスタムブロック：商品カードのデザイン ここまで--- */