@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* home.css */
.h2_img {
    max-width: 100%;
    width: 700px;
    margin: 0 auto 15px;
    padding: 15px 20px 15px 60px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    box-sizing: border-box;
}

/* SVGアイコン（疑似要素で配置） */
.h2_img::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><circle cx="28" cy="24" r="12" fill="none" stroke="%23DDDDDD" stroke-width="6"/><circle cx="20" cy="20" r="12" fill="none" stroke="%232FA0D6" stroke-width="6"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.h2_img h2 {
    margin: 0;
    padding: 0;
    font-size: 123.1%;
    font-weight: bold;
    color: #333;
}

.-type-card .p-postList__item {
    border: 1px solid #606060 !important; 
    color: #006bd6;
    display: flex;
    flex-direction: column;
    justify-content: space-around !important;
    box-sizing: border-box;
}

.l-mainContent__inner {
    max-width: 100%;
}

.p-postList__item {
    /* 固定高さを最小高さに変更（タイトルが長い場合に対応） */
    min-height: 270px;
    height: auto;
}

/* 画像を16:9のアスペクト比で表示（省略されないように） */
.p-postList.-type-card .c-postThumb__figure {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 (9/16 = 0.5625 = 56.25%) */
    overflow: hidden;
}

.p-postList.-type-card .c-postThumb__figure img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* モダンブラウザ用のフォールバック */
@supports (aspect-ratio: 16 / 9) {
    .p-postList.-type-card .c-postThumb__figure {
        aspect-ratio: 16 / 9;
        padding-top: 0;
    }
}

/* 3列・右間隔10px（PC） */
@media (min-width: 960px) {
    .p-postList.-type-card.-pc-col3 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        column-gap: 10px;
    }

    .p-postList.-type-card.-pc-col3 .p-postList__item {
        margin-right: 0;
        width: auto !important;
    }
}

/* 2列（タブレット） */
@media (min-width: 600px) and (max-width: 959px) {
    .p-postList.-type-card.-pc-col3 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 10px;
    }

    .p-postList.-type-card.-pc-col3 .p-postList__item {
        margin-right: 0;
        width: auto !important;
    }
}

/* 1列（スマホ） */
@media (max-width: 599px) {
    .p-postList.-type-card {
        display: block;
    }

    .p-postList.-type-card .p-postList__item {
        margin-right: 0;
        margin-bottom: 20px;
        width: 100% !important;
        justify-content: flex-start !important;  /* 上部にピッタリ揃える */
    }
    
    /* 画像とリンクのマージンを削除 */
    .p-postList.-type-card .p-postList__link {
        margin-top: 0 !important;
    }
    
    .p-postList.-type-card .c-postThumb,
    .p-postList.-type-card .p-postList__thumb {
        margin-top: 0 !important;
    }
    
    .h2_img h2 {
        padding-left: 20px;
        font-size: medium;
    }
}

