/*PC用*/
@media print,
screen and (min-width: 641px) {

    .h_menu,
    #sp_global_nav {
        display: none;
    }

    .case_btn{
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        justify-content: center; /* コンテンツを中央寄せにする */
        gap: 10px;
    }
    
    .original-button {
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        margin-right: 0.5rem;
        text-decoration: none;
        color: #e74b7e;
        font-size: 18px;
        border-radius: 20px;
        width: 220px;
        height: 50px;
        font-weight: bold;
        transition: 0.3s;
        box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.25);
        text-shadow: 1px 1px 2px rgba(255, 255, 255, 1);
        background-image: linear-gradient(180deg, rgba(254, 214, 227, 1) 100%, rgba(255, 126, 168, 1));
    }
      
    .original-button:hover {
        box-shadow: 0 0 rgba(0, 0, 0, 0);
    }

    .case_btn a:nth-child(n+5) {
        margin-top: 1rem; /* 5つ目以降のアイテムから改行 */
    }

    .caseflex {
        display: flex;
        flex-direction: row;
        justify-content: flex-start; /* 要素を左から順に配置 */
        align-items: flex-start; /* 要素を上端で揃える */
        flex-wrap: wrap; /* 必要に応じて項目を折り返す */
        width: 98%;
        max-width: 1020px;
        margin: 0 auto;
        padding: 0 10px; /* コンテナの左右にパディング */
    }
    
    .casebox {
        flex: 0 0 calc(50% - 20px); /* 一行に2つ収まるように調整、20pxは左右のマージンを考慮 */
        margin: 10px; /* 左右のマージン */
        box-sizing: border-box;
        padding: 15px;
        border: 3px solid #d2d2d2;
        border-radius: 5px;
    }

    /* 最初と最後の要素のマージンを調整して、親要素との間にも適切なスペースを確保 */
    /* .caseflex .casebox:first-child {
        margin-left: 20px;
    }

    .caseflex .casebox:last-child {
        margin-right: 20px;
    } */

        

    .casetitle{
        width: 100%;
        /* max-width: 1000px; */
        font-size: 25px;
        font-weight: bold;
        text-align: center;
        color: #ff717b;;
        /* font-family: '游明朝', 'YuMincho', 'Hiragino Mincho ProN', serif; */
    }

    .caseimg{
        display: flex;
        /* justify-content: space-around; */
        align-items: center;
        width:47%;
        /* margin:auto; */
        margin-top:2rem;
        margin-bottom: 2rem;
    }

    .caseimg img{
        width:100%;
    }

    .caseimg img:nth-child(2){
        width:5%;
        /* height:40%; */
        transform:rotate(360deg);
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        margin-top: 2rem;
    }


    .casep{
        color: white;
        font-size: 20px;
        font-weight: bold;
        /* font-family: '游明朝', 'YuMincho', 'Hiragino Mincho ProN', serif; */
        background-color: #fbafb4;
    }

    /*--------------------
	.column
	--------------------*/

    .column p {
        width: 100%;
        max-width: 1000px;
        margin: 0 auto 5em;
        font-size: 20px;
        line-height: 1.875;
    }
    #category .category{
        text-align: center;
        margin: 0 auto 5em;
        font-size: 20px;
    }

    #column-list .column-list{
        display: flex;
        flex-wrap: wrap;
    }

    /* #column-list .column_item{
       border: 1px #000000;
       -webkit-flex-basis: 32%;
       flex-basis: 32%;
       max-width: 32%;
        
    } */

    .columnflex {
        display: flex;
        flex-direction: row;
        justify-content: flex-start; /* 要素を左から順に配置 */
        align-items: flex-start; /* 要素を上端で揃える */
        flex-wrap: wrap; /* 必要に応じて項目を折り返す */
        width: 98%;
        max-width: 1020px;
        margin: 0 auto;
        padding: 0 10px; /* コンテナの左右にパディング */
    }

    .columnbox {
        flex: 0 0 calc(33% - 17px); /* 一行に3つ収まるように調整*/
        margin: 10px 10px 30px; /* 上下左右のマージン */
        box-sizing: border-box;
        padding: 10px;
        border: 3px solid #d2d2d2;
        border-radius: 5px;
    }
    .columnbox .date{
        font-size: 15px;
        color: #000000;
        margin-bottom: 0%;
    }
 

    .columnbox .column_hl{
        width: 100%;
        max-width: 1000px;
        margin: 0 auto;
        color: #474747;
        font-size: 17px;
        font-weight: bold;
        text-align: center;
    }

    .columnbox img{
        margin: 1rem auto;
        width: 100%;
    }

    .btn_right{
        display: flex;
        justify-content: flex-end;
    }


}



/*SP用*/
@media screen and (max-width:640px) {

    img {
        max-width: 100%;
        height: auto;
        width: auto;
    }

    body {
        min-width: auto !important;
        overflow: inherit !important;
    }

    .sp_tac {
        text-align: center !important;
    }

    .sp_tar {
        text-align: right !important;
    }

    .sp_mb15 {
        margin-bottom: 15px !important;
    }

    .sp_mb20 {
        margin-bottom: 20px !important;
    }

    div,
    p,
    dd,
    dl,
    dt,
    th,
    td,
    span,
    li {
        box-sizing: border-box;
    }

    .case_btn{
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* コンテンツを中央寄せ */
        gap: 10px; /* アイテム間のギャップ */
    }
    
    .original-button {
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        text-decoration: none;
        color: #e74b7e;
        font-size: 14px;
        border-radius: 20px;
        width: 160px;
        height: 50px;
        font-weight: bold;
        transition: 0.3s;
        box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.25);
        text-shadow: 1px 1px 2px rgba(255, 255, 255, 1);
        background-image: linear-gradient(180deg, rgba(254, 214, 227, 1) 100%, rgba(255, 126, 168, 1));
    }
    
    .original-button:hover {
        box-shadow: 0 0 rgba(0, 0, 0, 0);
    }
    
    .case_btn a:nth-child(n+3) {
        margin-top: 1rem; /* 3つ目以降のアイテムに上のマージンを追加 */
    }

    .caseflex{
        width: 100%;
        max-width: 1020px;
        margin: 0 auto;
        padding: 0 3vw;
    }

    .casebox{
        margin: 0 auto 30px;
        padding: 15px;
        border: 3px solid #d2d2d2;
        border-radius: 5px;
    }

    .casetitle{
        width: 100%;
        margin-top: 4rem;
        /* max-width: 1000px; */
        font-size: 25px;
        font-weight: bold;
        text-align: center;
        color: #ff717b;
        /* font-family: '游明朝', 'YuMincho', 'Hiragino Mincho ProN', serif; */
    }
    
    .caseimg{
        text-align: center;
    }

    .caseimg img{
        margin-top: 1rem;
        margin-bottom:1rem;
        width: 100%;
    }

    .caseimg img:nth-child(2){
        width: 10%;
        margin: 0;
        transform:rotate(90deg);
    }

    /* アコーディオン */

    .accordion {
        display: flex;
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .accordion-item {
        border: 1px solid #ddd;
        width: 90%; /* updated this */
        box-sizing: border-box;
        margin: auto; /* added this */
        margin-top: 1rem;
        margin-bottom: 2rem;
    }

    .accordion-item input {
        display: none;
    }

    .accordion-title {
        display: block;
        width: 100%;
        padding: 10px;
        background-color: #ff717b;
        color: white;
        font-weight: bold;
        cursor: pointer;
        text-align: center;
        box-sizing: border-box;  /* add this */
        font-size: 20px;
        /* font-weight: bold; */
        /* font-family: '游明朝', 'YuMincho', 'Hiragino Mincho ProN', serif; */
    }

    .accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.2s ease-out;
        width: 100%; /* updated this */
    }

    .accordion-item input:checked ~ .accordion-content {
        max-height: 100vh;
    }

    .casep{
        color: white;
        font-size: 20px;
        font-weight: bold;
        /* font-family: '游明朝', 'YuMincho', 'Hiragino Mincho ProN', serif; */
        background-color: #fbafb4;
        }

    .accordion-content .casep{
        margin: 0;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        padding-left: 0.5rem;
        font-size: 20px;
        line-height: 1.5;
        text-align: left;
    }

    .accordion-content p{
        text-align: left;
        /* margin: 0; */
        padding-left: 0.5rem;
        padding-right: -0.5rem;
    }

       /*--------------------
	.column
	--------------------*/

    .column p {
        width: 100%;
        max-width: 1000px;
        margin: 0 auto 3em;
        font-size: 20px;
        line-height: 1.875;
    }
    #category .category{
        text-align: center;
        margin: 0 auto 5em;
        font-size: 20px;
    }

    #column-list .column-list{
        display: flex;
        flex-wrap: wrap;
    }


    .columnflex {
        display: flex;
        flex-direction: row;
        justify-content: flex-start; /* 要素を左から順に配置 */
        align-items: flex-start; /* 要素を上端で揃える */
        flex-wrap: wrap; /* 必要に応じて項目を折り返す */
        width: 98%;
        max-width: 1020px;
        margin: 0 auto;
        padding: 0 10px; /* コンテナの左右にパディング */
    }

    .columnbox {
        /* flex: 0 0 calc(33% - 17px); 一行に3つ収まるように調整 */
        margin: 10px auto;
        box-sizing: border-box;
        padding: 10px;
        border: 3px solid #d2d2d2;
        border-radius: 5px;
    }
    .columnbox .date{
        font-size: 15px;
        color: #000000;
        margin-bottom: 0%;
    }
 

    .columnbox .column_hl{
        width: 100%;
        /* max-width: 1000px; */
        margin: 0 auto;
        color: #474747;
        font-size: 20px;
        font-weight: bold;
        text-align: center;
    }

    .columnbox img{
        margin: 1rem auto;
        width: 100%;
    }


    .btn_right{
        display: flex;
        justify-content: flex-end;
    }


}


