<link rel="preconnect"href="https://fonts.googleapis.com" > <link rel="preconnect"href="https://fonts.gstatic.com"crossorigin > <link href="https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Zen+Maru+Gothic&display=swap"rel="stylesheet" >

body {
    height: auto;
    overflow: hidden;
}

/* 全体を左右に分割 */
.container {
    display: flex;
/*    height: 100vh; */
    flex-wrap: nowrap;
    overflow: hidden;
}

 /* コラム本文デザイン */

    .column-index {
        /*
    max-height: calc(1.5em * 3);
    /* 2行分だけ表示 */
        overflow: auto;
        */
    }

    .column-main ul {
        display: flex;
        flex-wrap: wrap;
        /*       justify-content: space-around; */
    }

    .column-main li {
        list-style: none;
        margin: 0.3em 0.5em;
        padding: 0.2em 0.8em;
        border: solid 2px #999;
        border-radius: 9999px;
        /*線*/

        font-size: 1.2em;
        text-align: center;
        line-height: 1em;
    }


    .column-index ul {
        display: flex;
        flex-wrap: nowrap;
        /*       justify-content: space-around; */
    }

    .column-index li {
        list-style: none;
        margin: 0.3em 0.5em;
        padding: 0.2em 0.8em;
        border: solid 2px #999;
        border-radius: 9999px;
        /*線*/

        font-size: 1.2em;
        text-align: center;
        line-height: 1em;
    }

    .column-main {
        order: 2;
        /* 2番目に表示　*/

        display: flex;
        flex-wrap: wrap;
        /*    grid-template-columns: 1fr 1fr;  */
        gap: 10px;

    }

    .moji {
        font-family: "Zen Maru Gothic", serif;
        line-height: 1.8;
        color: #333;
        /* 全体文字を黒に */
    }

    .sub-title {
        border-bottom: 1px solid #000;
        /*    display: inline-block; */
        font-weight: bold;
        font-size: 1.5em;
    }

    .item {
        box-sizing: border-box;

        max-width: 47%;

        min-width: 340px;
        background: #eee;
        margin: 10px;
        /*        width: 30%;*/
        border: 2px solid #999;
        border-radius: 20px;

        padding: 1.5%;

    }

    .title {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;

        background-color: #F6E596;

        border: 0px dashed #999;
        border-radius: 10px;
        border-left: solid 10px #ffaf58;
        border-right: solid 1.5rem #F6E596;

        padding: 10px;
        font-size: clamp(14px, 2.5cqw, 22px);
        /* 最小14px、最大26pxでブラウザ幅に応じて変動 clamp(最小, 可変, 最大) cqw は「コンテナ幅の 1%」を意味し、.item が縮小・拡大したときに自動でサイズが変わります*/
        font-weight: bold;
        overflow: hidden;
        /* 省略時の表示制御 */
        text-overflow: ellipsis;
        /* はみ出したら省略表示 */
        white-space: nowrap;
        /* テキストを1行にする */

    }

    .title span {
        display: inline-block;
        padding-left: 0%;
        /* 開始位置を右外に */
        will-change: transform;
        overflow: hidden;
        /* 省略時の表示制御 */
        text-overflow: ellipsis;
        /* はみ出したら省略表示 */
    }


    /* hover時はスクロール */
    .title:hover {
        text-overflow: clip;
        /* ellipsis解除 */
    }

    .title:hover span {
        animation: slide 10s linear infinite;

    }


    @keyframes slide {
        0% {
            transform: translateX(0%);
        }

        100% {
            transform: translateX(-100%);
        }
    }

    .midashi {
        box-sizing: border-box;

        /*        background: #fff;*/
        margin-top: 20px;
        /*        border: 1px dashed #999;*/
        border-radius: 10px;
        padding: 0 1em;
        font-weight: bold;


    }

    .honbun {
        box-sizing: border-box;

        /*        background: #fff;*/
        /*       margin: 10px 10% 10px; */
        /*        border: 1px dashed #999; */
        border-radius: 10px;

        /*        display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    */

        font-weight: normal;
        overflow: hidden;
        margin-top: 20px;
        padding: 0 1em;


    }

    .gazou {
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: center;

    }

    .gazou img {
        vertical-align: top;
    }

    .gazou.-inscribed img {
        display: block;
        margin: 1rem auto;
        width: 90%;
        height: 90%;
        object-fit: contain;
        border-radius: 10px;
    }

    .syohinmei {
        box-sizing: border-box;
        text-align: right;
        margin-right: 3em;

    }

    .hizuke {
        box-sizing: border-box;
        margin-top: 20px;
        margin-left: 2em;
        /* 左から2文字分の余白 */
    }

    /* ボタン */

    .button01 {
        text-align: center;
        background-color: #ff861c;
        border: solid 2px #ff861c;
        color: #fff;
        border-radius: 10px;
        padding: 10px 30px;
        text-decoration: none;
        font-size: 1em;
        display: inline-block;
    }

    .button01:hover {
        color: #ffffff;
    }

    .icon-spin {
        margin-right: 8px;
        display: inline-block;
    }

    /* ボタンにホバーした時、アイコンだけ回転 */
    .button01:hover .icon-spin {
        animation: spin 2s linear infinite;
    }

    @keyframes spin {
        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    }

    /* アコーディオン */
/*
    .accordion-content {
        max-height: calc(1.5em * 2);
        /* 初期は2行分だけ表示 */
        overflow: hidden;
        position: relative;
        transition: max-height 0.8s ease-in-out;
        /* 開閉の速度（秒数）を変更可能  例：0.5s（速め）、1.5s（ゆっくり） */
    }
*/
    /*
.accordion-content.expanded {
max-height: 3000px; /* 全文表示時に十分な高さに */
}

*/ 
.accordion-toggle {
    display: inline-block;
    /* inline-block に変更 */
    margin-left: 50%;
    /* 左右を自動で中央揃え */
    transform: translate(-50%);
    padding: 10px 30px;
    background: #ffaf58;
    border: 2px solid #d97a00;
    border-radius: 9999px;
    /* pill型 */
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    height: 42px;
    text-align: center;
    width: fit-content;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    /* 影で立体感 */
}


.accordion-toggle:hover {
    background: #ff914d;
    transform: scale(1.05);

}

    アコーディオン　ここまで　*/

.toggle-position {
    text-align: center;
}

@media screen and (max-width: 959px) {
    .column-index ul {
        justify-content: space-around;
    }

    .item {
        max-width: 100%;
    }
}
