@charset "UTF-8";
/* =========================================
   全体の打ち消し
   ========================================= */

/* 1.list.cssで読み込まれているbodyの制限をこのページだけで打ち消す（sticky対応のため） */
body {
    overflow-x: clip !important; 
    position: relative;
    width: 100%;
}

/* =========================================
   スライダーのスタイル設定
   ========================================= */
/*打ち消し */
.hero--detail .slider-image-link.hero-photo img{
    /*max-height: none; */
    max-height: 450px;
    max-width: none; 
    border: 0;
}

.top-slider-section.hero--detail {
    padding: 40px 0 60px; 
}

.top-slider-section.hero--detail .top-slider-container {
    display: flex;
    flex-direction: row; /* 詳細ページの縦並びを、横並びに戻す */
    align-items: center;
    justify-content: space-between;
}

/* ヒーローエリアのガタつき防止 */
.top-slider-section {
    min-height: 500px; /* 高固定 */
    background-color: #f6f6f6; /* 画像が来るまでの背景色 */
    text-align: left;
    width: 100%;
    overflow-x: clip;
    position: relative;
    letter-spacing: 0.06em;
}

/* スライダーを包む一番外側の枠 */
.top-slider-inner {
    width: 95%; 
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; 
    position: relative; 
}

/* スライドの中身 */
.slider-content-item {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px; 
    position: relative;
}

/* 左側テキスト */

.slider-text-area {
    display: flex;
    flex-direction: column;
    min-height: 400px; 
    justify-content: space-between;
     width: 30%;
    position: relative;
    z-index: 2; /* 画像より上に */
}

.slider-title {
    font-size: 28px !important;
    line-height: 1.6 !important;
    margin: 30px 0 !important;
    /* 写真に食い込ませる設定 */
    width: 150%; 
    max-width: 550px; 
    position: relative;
    background-color: #fff;
    border: 1px solid #000;
    padding: 5px 10px 10px;
    
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slider-title a {
    text-decoration: none;
    color: #000;

    /* --- 以下追加 20260424 --- */
    width: 100%;
    /* --- ここからが2行省略の設定 --- */
    display: -webkit-box;          /* 必須：特殊なボックス形式にする */
    -webkit-box-orient: vertical;  /* 必須：垂直方向に並べる */
    -webkit-line-clamp: 2;         /* 必須：最大行数を指定 */
    overflow: hidden;              /* 必須：溢れた分を隠す */
    /* 1行用設定の「解除」が必要 */
    white-space: normal;           /* nowrapからnormalに戻して改行を許可する */
    text-overflow: ellipsis;       /* 環境により必要になる場合があるため残してOK */
}

/* 右側画像 */
.slider-image-area {
    width: 70%; 
    margin-left: -5%; 
    flex-shrink: 1;
    max-width: 900px; 
    min-width: 0; 
}

.slider-image-link {
    display: block;
    width: 100%; 
}

/* 写真を包むマスクの箱 */
.slider-image-mask {
    width: 100%;
    overflow: hidden; 
    position: relative;
    z-index: 1; 
    border: 1px solid #000;
    border-radius: 16px;
    /* Androidなどで角丸が効かない場合の対策 */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.slider-image-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease; 
    display: block;
}

/* ★ホバー時の指定を「マスクの中のimg」だけに限定する */
.slider-content-item:hover .slider-image-mask img {
    transform: scale(1.1);
}

/* タイトルにアンダーラインを入れる（ホバー時） */
.slider-content-item:hover .hero-detail-title a {
    text-decoration: underline;
  text-decoration-thickness: 2px; 
  text-underline-offset: 5px; 
}

/* タグの幅調整 */
.hero--detail .slider-text-area .post-card__cat{
    max-width: 210px;
}

.slider-desc {
    display: -webkit-box;
    -webkit-line-clamp: 5; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    
    font-size: 14px;
line-height: 1.6;
padding-right: 15px;
}


/* スライダーのページネーションーーーーーーーーーーーーーーーーーーー */

.swiper-pagination-custom {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

/* 共通の丸ボタン */
.swiper-button-prev-custom,
.swiper-button-next-custom {
    width: 44px;
    height: 44px;
    border: 1px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
    background-color: #fff;
}

/* ホバー時に黄色くなる演出 */
.swiper-button-prev-custom:hover,
.swiper-button-next-custom:hover {
    background-color: #FFFF01; 
}

.swiper-button-prev-custom img,
.swiper-button-next-custom img {
    width: 18px;
    height: auto;
}

/* 数字と線のエリア */
.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif; 
    font-weight: 500;
    font-size: 18px;
}

/* 数字の間の長い線 */
.pagination-numbers .separator {
    display: inline-block;
    width: 40px; 
    height: 2px;
    background-color: #000;
}

.pagination-numbers .current,
.pagination-numbers .total {
    display: inline-block;
    width: 1.5em; 
    text-align: center;
}

.spacer {
    flex-grow: 1; 
}

/* トップのスライダーの中にある写真 */
.hero--detail .top-main-swiper .hero-photo img {
    width: 100% !important;
    object-fit: cover !important;
}

.top-main-swiper .slider-image-area img {
    border-radius: 0 !important;
}

/* --- スライダー基本設定 --- */

/* 外枠：横並びのはみ出しを強制カット */
.top-main-swiper {
    position: relative !important;
    overflow: visible !important; 
    display: block !important; 
}

/*「透明」にして、同じ場所に重ねる */
.top-main-swiper .swiper-slide {
    opacity: 0 !important;
    visibility: hidden; 
    transition: opacity 0.8s ease, visibility 0.8s;
}

/* 表示されているスライド */
.top-main-swiper .swiper-slide-active {
    opacity: 1 !important;
    visibility: visible;
    z-index: 10;
}

/* タイトルと本文：初期状態で見えるように調整 */
.top-main-swiper .swiper-slide .slider-text-area {
    opacity: 0;
    transform: translateX(-15px);
    transition: all 0.6s ease 0.3s;
    visibility: visible !important; 
}

.top-main-swiper .swiper-slide-active .slider-text-area {
    opacity: 1;
    transform: translateX(0);
}

/* .swiper 自体の overflow を上書きしてイラストを見せる */
.top-main-swiper.swiper {
    overflow: visible !important;
}

/* セクション全体で画面外のはみ出しをカットする */
.top-slider-section {
    overflow-x: clip;
}

/* =========================================
  スライダーSP設定
   ========================================= */

/*表示切り替えルール
   ========================================= */

/* PC時は、スライダー内のSP用を隠す */
@media screen and (min-width: 961px) {
    .top-slider-section .sp-only { display: none !important; }
}

/* SP時は、スライダー内のPC用を隠す */
@media screen and (max-width: 960px) {
    .top-slider-section .pc-only { display: none !important; }
}
/* 【PC版】画像追従設定 (961px以上)
   ========================================= */
@media screen and (min-width: 961px) {
    .slider-image-area {
        position: relative;
        overflow: visible;
    }
    .slider-pc-decorations div {
        position: absolute;
        z-index: 50;
        pointer-events: none;
    }
    .deco-pc-top-left {
        top: -20px;
        left: -80px;
        width: 100px;
    }
    
    .deco-pc-top-left img {
        width: 100%;
        height: auto;
        display: block;
    }
    
    .deco-pc-people {
        bottom: -65px;
        right: -30px;
        width: 210px;
    }
}

/* SPレイアウト (960px以下)
   ========================================= */
@media screen and (max-width: 960px) {
    .top-slider-section.hero--detail .top-slider-inner {
        padding-bottom: 120px; 
    }
    .slider-content-item {
        flex-direction: column;
        gap: 0;
    }
    .slider-image-area {
        width: 100% !important;
        margin-left: 0 !important;
        order: 1;
        position: relative; 
    }
    .slider-text-area {
        width: 100% !important;
        order: 2;
        min-height: auto !important;
        padding-top: 20px;
    }
    .slider-title {
        width: 100% !important;
        max-width: none !important;
        z-index: 10;
        font-size: 21px !important;
        margin: 10px auto 20px !important;
        line-height: 1.8!important;
    }

    .slider-sp-decorations div {
        position: absolute;
        z-index: 50;
        pointer-events: none;
    }

    .deco-sp-top-left {
        top: -20px; 
        left: -20px;
        width: 15%; 
        max-width: 40px;
    }
    .deco-sp-bottom-right {
        bottom: -20px;
        right: -20px;
        width: 12%;
        max-width: 35px;
    }
    
    /* 外枠に固定される応援団 */
    .deco-sp-people {
        bottom: 0px;
        left: 87%;
        transform: translateX(-50%);
        width: 85%;
        max-width: 200px;
        z-index: 20;
    }
    
    /* --- SP版：中の画像も枠に合わせる設定 --- */
.deco-sp-top-left img,
.deco-sp-bottom-right img,
.deco-sp-people img {
    width: 100%;
    height: auto;
    display: block;
}
    
    /* --- 追加要素 --- */
    .top-slider-section.hero--detail{
        padding: 40px 0 0px;
    }
    
    .top-slider-inner{
        padding: 0 40px;
    }
    
    .hero--detail .top-main-swiper .hero-photo img{
         height: inherit!important;
    }
    
    .top-slider-section.hero--detail .sp-meta-wrapper{
        justify-content: start;
    }
    
    .slider-desc{
        font-size: 16px;
    }
}


/* --- 2. SP（600px以下）のファーストビュー最適化 --- */
@media screen and (max-width: 600px) {
    .slider-image-area {
        width: 90% !important; 
        margin: 0 auto !important;
    }

    /* マスク（枠）の比率を調整 */
    .slider-image-mask {
        aspect-ratio: 16 / 9 !important; 
        width: 100% !important;
        height: auto !important;
    }
    
    /* 中の画像が枠いっぱいに綺麗に収まるように設定 */
    .slider-image-mask img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; 
        aspect-ratio: auto !important; 
    }

    /* テキストとページネーションの間隔を詰める */
    .slider-text-area {
        padding-top: 10px;
    }

    .slider-desc {
        display: -webkit-box;
        -webkit-line-clamp: 3; 
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 10px;
        padding: 0;
}

    /* ページネーション */
    .swiper-pagination-custom {
        margin-top: 5px;
        transform: scale(0.9); 
    }

    /* 下の応援団調整 */
    .top-slider-section.hero--detail .top-slider-inner {
        padding: 0;
        padding-bottom: 90px; 
    }
    
        /* --- 追加要素 --- */
    .slider-title{
        font-size: 18px !important;
        margin: 5px auto 10px !important;
    }
    
    .top-slider-section.hero--detail .post-card__cat{
        font-size: 10px !important;
    }
    
   .deco-sp-people{
       left: 82%;
       max-width: 130px;
    }
    
    .deco-sp-top-left{
        top: -15px;
        left: -15px;
        max-width: 30px;
    }
    
    .deco-sp-bottom-right{
        bottom: -15px;
        right: -15px;
        max-width: 30px;
    }
    
    .top-slider-section.hero--detail {
        padding: 30px 0 0px;
}
    
      .slider-desc{
        font-size: 12px;
        
    }
    
}


/* =========================================
   メッセージセクション
   ========================================= */
.message-section {
    padding: 120px 20px;
    background-color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center; 
    border-bottom: 1px solid #000;
    letter-spacing: 0.06em;
}

/* 特大ロゴ */
.message-logo {
    margin-bottom: 80px;
    width: 100%;
    max-width: 500px;

}

.message-logo img {
    width: 100%;
    height: auto;
}

/* リード文（太字・大きめ） */
.message-lead {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 50px;
    line-height: 2.0;
    letter-spacing: 0.1em;

}

/* 本文（標準） */
.message-text {
    font-size: 16px;
    line-height: 2;
    margin-bottom: 100px;
    max-width: 700px;

}

/* 施設リストの並び */
.message-facilities {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    gap: 50px; 
    max-width: 1200px; 
    margin: 0 auto;
}

.facility-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    flex: 0 1 auto;
}

.facility-illust img {
    width: 90px; 
    height: auto;
}

.facility-name {
display: inline-block;
color: #000;
font-weight: 700;
border-radius: 20px;
border: 1px solid #000;
padding: 4px 10px;
font-size: 14px;
white-space: nowrap;
}

/* アニメーション最初は透明 */
.message-logo,
.message-lead,
.message-text,
.facility-item {
    opacity: 0;
}

/* --- iPad & スマホ --- */

/* 1024px以下（iPadくらい）から2段（4枚・3枚）に切り替え */
@media (max-width: 1024px) {
    .message-facilities {
        gap: 60px 15px;
        padding: 0;
    }

    .facility-item {
        flex: 0 0 calc(20% - 20px); 
        max-width: 20%;
    }
    
    .facility-illust img {
        width: 80px; 
    }
}

/* --- スマホ専用 --- */

@media (max-width: 600px) {
    .message-facilities {
        gap: 30px 15px; 
    }

    .facility-item {
        flex: 0 0 calc(25% - 8px); 
    }

    .facility-illust img {
        width: 100%; 
        max-width: 60px; 
    }

    .facility-name {
        font-size: clamp(8px, 2.6vw, 12px);
        padding: 2px 4px;
        white-space: normal;
        line-height: 1.2;
        width: 100%; 
        text-align: center;
    }
    
    .message-lead {
        font-size: 18px;
        letter-spacing: 0.06em;
    }
    .message-text{
        font-size: 14px;
        line-height: 1.8;
        margin-bottom: 80px;
    }
    
    .message-section{
        padding: 80px 20px;
    }
    
    .message-logo{
        margin-bottom: 50px;
    }
}

/* =========================================
   ピックアップ
   ========================================= */

.top-pickup-main-content.hero {
    display: block; 
    flex-grow: 1;
    padding: 100px 0; 
    align-items: flex-start; 
    border-bottom: 0;
    padding-bottom: 0px;
}


/* セクション全体 */
.top-pickup-section {
    position: relative;
    width: 100%;
    background-color: #f6f6f6;
    border-bottom: 1px solid #000;
    overflow: visible !important; 
    z-index: 10;
}

/* ラッパーで横揺れを防ぐ */
.top-sticky-wrapper {
    width: 100%;
    border-bottom: 1px solid #000;
}

/* --- 1. 親：ここを「stretch」にして左側を引き伸ばす --- */
.top-pickup-container {
    display: flex !important;
    align-items: stretch !important; 
}


/* --- 2. 白い帯（レール）：ここは sticky にしない --- */
.top-pickup-title-area {
    width: 100px;
    background-color: #fff;
    border-right: 1px solid #000;
    flex-shrink: 0;
    position: relative !important; 
    height: auto !important; 
}


/* --- 3. 文字：ここに sticky をかける --- */
.top-pickup-title-vertical {
    position: -webkit-sticky;
    position: sticky !important;
    top: 0px !important;
    display: block !important;
    height: fit-content !important;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 40px;
    letter-spacing: 0.1em;
    white-space: nowrap;
    writing-mode: vertical-rl;
    padding: 40px 20px;
}

.top-pickup-title-vertical span {
    font-size: 14px;
    margin-top: 15px;
    letter-spacing: 0.05em;
}


/* --- 右側 --- */
.top-pickup-main-content {
    flex-grow: 1;
    display: block !important; 
    padding-bottom: 100px; 
}

.top-pickup-inner-1300 {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

/* 記事と広告の並び ーーーーーーーーーーーー*/

/* 記事と広告を横に並べる親 */
.top-pickup-article-flex {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* 記事3つを縦に並べる箱 */
.top-pickup-article-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
    flex-grow: 1; 
}

/* 記事単体のスタイル */
.top-pickup-article {
    background-color: #fff;
    border: 1px solid #000;
    width: 100%; 
}

/* 広告の幅を固定 */
.top-pickup-ad-zone {
    width: 300px; 
    flex-shrink: 0; 
}

/* カード全体の基本設定 ----------------------------*/
.top-pickup-card {
    background-color: #fff;
    border: 1px solid #000;
    transition: transform 0.3s ease;
    border-radius: 16px;
}

.top-pickup-card__link {
    display: flex;
    padding: 30px;
    gap: 30px; 
    text-decoration: none;
    color: inherit;
    align-items: stretch; 
}

/* 画像エリア */
.top-pickup-card__img-wrapper {
    width: 50%; 
    position: relative;
    overflow: hidden;
}

.top-pickup-card__img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

/* マウスを乗せた時に画像を少し大きくする */
.top-pickup-card:hover .top-pickup-card__img-wrapper img {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* テキストエリア */
.top-pickup-card__info {
    width: 60%; 
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* 2. VIEW MOREをカードの右下に固定 */
.top-pickup-card__info {
    display: flex;
    flex-direction: column; 
    flex-grow: 1; 
    padding: 0 10px;
}

.top-pickup-title {
display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; 
    overflow: hidden;
    text-overflow: ellipsis;
line-height: 1.7;
margin-bottom: 15px;
min-height: 2em;
font-size: 21px;
text-align: left;
}

/* マウスを乗せた時のタイトルアンダーライン */
.top-pickup-card:hover .top-pickup-title {
text-decoration: underline;
text-decoration-thickness: 2px;
text-underline-offset: 5px;
    
}

/*  VIEW MOREの矢印を動かす動き */
.top-pickup-card:hover .more-icon {
      transform: translateX(5px);
}

.top-post-card__bottom {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/*  3行で「…」にする */
.top-pickup-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin-bottom: 15px;
    line-height: 1.6;
    height: 4.8em;
    font-size: 14px;
    text-align: left;
}

/*  ピックアップのイラストスタイル */
.pickup-illust {
width: 180px;
margin-left: auto;
margin-bottom: -45px;
opacity: 0;
display: block;
overflow: visible;
z-index: 11; 
position: relative;
}

.pickup-illust img{
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;

}

/* スマートフォン用の設定 */
@media screen and (max-width: 768px) {
    .top-pickup-card a {
        flex-direction: column;
    }

    .top-pickup-card__img-wrapper,
    .top-pickup-card__info {
        width: 100%; 
    }
    
    .top-pickup-card__img-wrapper {
        aspect-ratio: 16 / 9; 
    }
}



/* =========================================
　　824px〜iPadサイズ
   ========================================= */
@media screen and (max-width: 960px) {
    .top-pickup-article-flex {
        flex-direction: column;
        gap: 40px;
    }

    .top-pickup-article-column {
        width: 100%;
    }

    .top-pickup-ad-zone {
        width: 100%; 
    }
    
    .sidebar-ad-group {
        display: flex;
        gap: 20px;
        justify-content: center; 
    }

    .ad-item {
        flex: 1;
        max-width: 300px;
    }
}

/* =========================================
   SPサイズ
   ========================================= */
@media screen and (max-width: 768px) {
    .top-pickup-container {
        flex-direction: column !important;
    }

    .top-pickup-title-area {
        width: 100% !important;
        height: auto !important;
        border-right: none;
        border-bottom: 1px solid #000;
    }

    .top-pickup-title-vertical {
        position: static !important; 
        writing-mode: horizontal-tb; 
        padding: 10px 20px;
        font-size: 28px;
        text-align: left;
    }
    
    .top-pickup-title-vertical span{
        padding-left: 10px;
        letter-spacing: 0.03em;
    }

    .top-pickup-card__link {
        flex-direction: column;
    }

    .top-pickup-card__img-wrapper,
    .top-pickup-card__info {
        width: 100% !important;
    }

    .sidebar-ad-group {
        flex-direction: column;
        align-items: center;
        margin-bottom: 30px;
    }
    
    .top-pickup-main-content.hero{
        padding: 50px 0;
    }
    
    .top-pickup-inner-1300{
        padding: 0 10px;
    }
    
    .top-pickup-card__link{
        padding: 15px;
        gap: 15px;
    }
    
    .top-pickup-card .post-card__date,
    .top-pickup-card .post-card__more span {
        font-size: 14px;
    }
    
    .pickup-illust {
    width: 120px;
    margin-bottom: -80px;

}
    .top-pickup-title{
        font-size: 16px;
        
    }
    .top-pickup-text{
        font-size: 12px;
    }
    
}


/* =========================================
   iPadは広告横並び、SPは広告縦並び
   ========================================= */
@media screen and (max-width: 1024px) {
    .top-pickup-main-content .top-pickup-article-flex {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 50px !important;
        width: 100% !important;
    }

    .top-pickup-article-column {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }

    .top-pickup-ad-zone {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 20px !important;
    }


    /* 768px以上の時（iPadなど）だけ広告を横並び */
    @media screen and (min-width: 768px) {
        .sidebar-ad-group {
            display: flex !important;
            flex-direction: row !important;
            justify-content: center !important;
            gap: 20px !important;
        }
        .ad-item {
            flex: 1 !important;
            max-width: 300px !important;
        }
    }

    /* 767px以下の時（SP）は、広告を縦並び */
    @media screen and (max-width: 767px) {
        .sidebar-ad-group {
            display: flex !important;
            flex-direction: column !important; 
            align-items: center !important;
            gap: 20px !important;
        }
        .ad-item {
            width: 100% !important;
            max-width: 300px !important;
        }
    }
}



/* =========================================
   WEBマガジン記事一覧
   ========================================= */
.btn-back{
    background-color: #000;
    color: #fff;
}

.btn-icon::before {
background: #fff;
}

.btn-icon::after {
border-top: 2px solid #fff;
border-right: 2px solid #fff;
}

.btn-back:hover{
color: #000;
}

.btn-back:hover .btn-icon::before{
    background: #000;
    
}

.btn-back:hover .btn-icon::after {
border-top: 2px solid #000;
border-right: 2px solid #000;
}

.related-section{

}

.who-we-are__icon-left.is-magazine,
.who-we-are__icon-right.is-magazine {
    width: 100px; 
    height: auto;
}

.top-magazine-section.related-section {
    padding-bottom: 0 !important; 
}


.top-magazine-section {
padding-top: 100px;
 border-bottom: 1px solid #000;
}

.top-magazine-section-wrapper{
   max-width: 1300px;
    margin: 0 auto;
    
}

/* イラストの配置設定 */
.magazine-illust {
   width: 250px;
    margin-left: auto;
    margin-bottom: -5px;
    opacity: 0; 
    display: block; 
    overflow: visible;

}

.magazine-illust img{
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像を枠いっぱいに綺麗に収める */
    display: block;

}

/* =========================================
   SPマガジン一覧を2列
   ========================================= */
@media screen and (max-width: 767px) {
    .top-magazine-section .post-grid-container {
        display: flex !important;
        flex-direction: row !important; 
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        gap: 20px 0px !important; 
    }

    /* 子要素：幅を約半分に */
    .top-magazine-section .post-card {
        width: 48.5% !important; 
        margin: 0 0 20px 0 !important;
        flex: none !important; 
    }

    /* カード内の画像 */
    .top-magazine-section .post-card__img-window {
        aspect-ratio: 3 / 2 !important; 
    }

    /* 文字サイズ微調整*/
    .top-magazine-section .post-card__title {
        font-size: 13px !important;
        /*line-height: 1.4 !important;*/
        line-height: 1.7 !important;
        margin-top: 8px !important;
    }
    
    .top-magazine-section .who-we-are__icon-left.is-magazine,
    .top-magazine-section .who-we-are__icon-right.is-magazine{
        width: 40px;
    }
    
    .top-magazine-section .btn-area{
        margin: 50px 0 20px;
        
    }
    
    .magazine-illust {
   width: 160px;
}
    
}


/* =========================================
   カテゴリ
   ========================================= */

.who-we-are__icon-left.is-category {
    width: 110px;
    height: auto;
    margin-bottom: -50px;
}
.who-we-are__icon-right.is-category {
    width: 100px; 
    height: auto;
    margin-bottom: -40px;
}

.top-category-section.related-section {
    padding-bottom: 0 !important; 
}

.top-category-section{
    background-color: #fff;
    padding-top: 120px;
}

.top-category-list{
    justify-content: center;
    padding-top: 30px;
    row-gap: 20px;
}

.top-category-ad-wrapper{
    background-color: initial;
border-top: none;
padding-top: 30px;
padding-bottom: 5px;
}

/* イラストの配置設定 */
.category-illust {
   width: 170px;
    margin-right: auto;
    margin-bottom: -5px;
    opacity: 0; 
    display: block; 
    overflow: visible;
}

.category-illust img {
    width: 100%;
    height: auto;
}


/* =========================================
   SPカテゴリータグ
   ========================================= */
@media screen and (max-width: 767px) {
    .top-category-section .top-category-list {
        display: flex !important;
        flex-wrap: wrap !important; 
        justify-content: flex-start !important; 
        overflow-x: visible !important; 
        white-space: normal !important; 
        gap: 12px 8px !important; 
        padding: 20px 20px 0 !important;
    }

    /* タグのサイズ */
    .top-category-section .top-category-list li a {
        font-size: 15px !important; 
        padding: 10px 18px !important; 
        border-radius: 50px !important; 
        display: inline-block !important;
    }

    /* 3. イラストサイズの微調整 */
    .top-category-section .category-illust {
        width: 120px !important; 
    }
    
    .who-we-are__icon-left.is-category{
        width: 60px;
        margin-bottom: -40px;
    }
    
     .who-we-are__icon-right.is-category{
        width: 50px;
        margin-bottom: -40px;
    }
    
    .top-category-ad-wrapper{
        padding: 40px 0px 20px;
    }
    .top-category-section .ad-zone{
        padding: 0 ;
    }
    .top-category-section{
        padding-top: 80px;
    }
}



/* =========================================
   「WO WE ARE」
   ========================================= */

  /* YOU TUBEの設定 */
.top-youtube-wrapper {
  max-width: 800px;
  aspect-ratio: 16 / 9;
   margin: 0 auto;
}
.top-youtube-wrapper iframe {
  width: 100%;
  height: 100%;
}

@media screen and (max-width: 960px) {
  .top-youtube-wrapper {
  width: 100%;
}
.top-youtube-wrapper iframe {
  width: 100%;
  height: 100%;
}  
}


/* =========================================
   「ADPETA 広告枠 」
   ========================================= */
/* ↓ 以下を設定すると、320pxで表示される */
/* iframeそのものの幅を強制 */
#asta_ads_frame_middle_a {
    width: 320px !important;
    min-width: 320px !important;
}
#asta_ads_frame_middle_b {
    width: 320px !important;
    min-width: 320px !important;
}

#asta_ads_frame_middle_a img {
    width: 320px !important;
}
#asta_ads_frame_middle_b img {
    width: 320px !important;
}