/* ===============================================
   基本設定 & PC（デスクトップ）向けスタイル
   =============================================== */

/* --- トップコンテンツカード（.cardWrap） --- */
.cardWrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0;
    margin: 0;
}

.cardWrap p {
    background-color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
    border: solid 2px #D6CAC2;
    padding: 10px;
    color: #333;
    margin: 0;
    position: relative;
}

.cardWrap p:hover {
    transform: translateY(-5px);
}

.cardWrap p a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.cardWrap p a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cardWrap p img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px 6px 0 0;
    margin-bottom: 10px;
}

.cardWrap p span {
    display: block;
    padding: 16px;
}

/* --- freeBox3Lower --- */
.freeBox3Lower .cardWrap {
    grid-template-columns: 1fr;
}

.freeBox3Lower p {
    max-width: 500px;
    justify-self: center;
}


/* --- ナビゲーションカード（.ijuNav） --- */
.ijuNav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* PC: 4カラム */
    gap: 24px;
    padding: 0;
    margin-top: 40px;
    list-style: none;
}

.ijuNav li {
    background-color: #ffffff;
    border-radius: 6px;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
    transition: transform 0.2s ease-in-out;
    border: solid 2px #D6CAC2;
}

.ijuNav li:hover {
    transform: translateY(-5px);
}

.ijuNav li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1.9rem;
    height: 100%;
    box-sizing: border-box;
}

/* アイコン共通設定 */
.ijuNav li a::before {
    content: '';
    display: block;
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* 各アイコン画像 */
.ijuNav .shiru a::before {
    background-image: url('/img/iju/i-shiru.png');
}

.ijuNav .sumu a::before {
    background-image: url('/img/iju/i-sumu.png');
}

.ijuNav .sodateru a::before {
    background-image: url('/img/iju/i-sodateru.png');
}

.ijuNav .hataraku a::before {
    background-image: url('/img/iju/i-hataraku.png');
}


/* ===============================================
   モバイル向けスタイル (画面幅768px以下)
   =============================================== */
@media (max-width: 768px) {

    /* --- トップコンテンツカード（.cardWrap） --- */
    .cardWrap {
        grid-template-columns: repeat(2, 1fr);
        /* モバイル: 2カラム */
        gap: 16px;
    }

    /* --- ナビゲーションカード（.ijuNav） --- */
    .ijuNav {
        grid-template-columns: repeat(2, 1fr);
        /* モバイル: 2カラム */
        gap: 16px;
    }

    .ijuNav li a {
        padding: 20px 10px;
    }

    /* アイコンサイズ調整 */
    .ijuNav li a::before {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    }
}



/* ===============================================
   見出し（.ijuH2）のスタイル
   ※<div class="ijuH2"> 構造専用
   =============================================== */

/* 親div（.ijuH2）にFlexboxと中央揃えを適用 */
#main_body .ijuH2,
.freeBox3Lower .ijuH2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    /* h2の幅をコンテンツ（テキスト）の幅に合わせる */
    margin: 40px auto 30px;
    /* 上下の余白を指定し、左右はautoで中央揃え */
}

/* 中のh2（日本語タイトル）のスタイル */
#main_body .ijuH2 h2,
.freeBox3Lower .ijuH2 h2 {
    /* ▼▼▼ 既存スタイル（#main_body h2）のリセット ▼▼▼ */
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    font-weight: bold;
    font-size: 2.6rem;
}

/* ストライプのライン（h2の直後に疑似要素として表示） */
#main_body .ijuH2 h2::after,
.freeBox3Lower .ijuH2 h2::after {
    content: '';
    display: block;
    width: 100%;
    /* 親(h2)の幅、つまりテキスト幅に追従 */
    height: 5px;
    background-image: repeating-linear-gradient(45deg,
            #ccc,
            #ccc 5px,
            #fff 5px,
            #fff 13px);
    margin-top: 10px;
    /* 日本語テキストとの間隔 */
}

/* 英語のサブタイトル（中のdiv） */
#main_body .ijuH2 div,
.freeBox3Lower .ijuH2 div {
    font-size: 1.6rem;
    font-weight: normal;
    color: #555;
    letter-spacing: 1px;
    margin-top: 10px;
    /* ラインとの間隔 */
}


/* デフォルトのスタイルを打ち消す */
.section_information {
    box-shadow: none;
}

.link_ichiran.lower a {
    border: solid 1px #43341B;
    background-color: #43341B;
    color: #FFF;
    padding: 4px 40px 3px 15px;
}

.link_ichiran.lower a::before {
    border: solid 1px #FFF;
}

.link_ichiran.lower a:hover::before {
    background-color: #FFF;
}

.link_ichiran.lower a::after {
    border-top: 2px solid #FFF;
    border-right: 2px solid #FFF;
}

.link_ichiran.lower a:hover::after {
    border-color: #43341B;
}

.section_information_list div.link_box .link_rss a {
    background-color: #43341B;
    border-radius: 5px;
    padding: 6px;
}


/* --- お知らせリスト --- */
.section_information_list ul li {
    position: relative;
    padding-top: 15px;
    margin-bottom: 15px;
}

.section_information_list ul li:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-image: repeating-linear-gradient(to right, #777777, #777777 1px, transparent 1px, transparent 6px);
}


/* 追記2026年1月7日 修正版 */

/* スライドの幅強制を解除し、Swiperの計算に任せる */
.swiper-wrapper .swiper-slide {
    margin: 0 !important;
    padding: 0 !important;
    /* width: 100%;  ← これを削除またはコメントアウト */
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    /* 高さを自動に */
}

/* 画像の表示設定 */
.swiper-slide img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Swiperコンテナの余白をリセット */
.swiper-container {
    padding: 0 !important;
    overflow: hidden;
    /* はみ出しを確実に隠す */
}