top-img{
    width: 100%;
    height: auto;
}

.text-center{
    text-align: center;
}

.font-size-40{
    font-size: 40px;
}


.card-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4列 */
    grid-gap: 20px; /* カード間の隙間 */
    max-width: 1200px; /* 全体幅 */
    margin: 0 auto; /* 中央寄せ */
}

/* スマホ用 */
@media screen and (max-width: 768px) {
    .card-container {
        display: block;      /* grid を解除して縦並びに */
        margin: 0 auto;
        max-width: 100%;     /* 横幅を画面に合わせる */
        gap: 0;              /* grid-gap は不要 */
    }
    
    .card-container > * {
        margin-bottom: 20px; /* 各カードの間隔 */
    }
}

.card {
    /* background-color: #f5f5f5;
    border: 1px solid #ddd; */
    padding: 20px;
    text-align: center;
    border-radius: 8px;
}

.card img{
    width: 100%;
    height: auto;
}

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

/* 中盤の背景画像セクション */
.background-section {
    position: relative;  /* slick矢印のため必須 */
    background-image: url('/wp-content/themes/original/images/background.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.background-section > * {
    position: relative;
    z-index: 1;
}

/* --- スライドショー --- */
.slider img {
  width: 100%;
  height: auto;
  display: block;
}

/* 矢印の位置 */
.slick-prev {
  left: 10px !important;
}
.slick-next {
  right: 10px !important;
}

/* 矢印の丸背景 + 白色アイコン */
.slick-prev,
.slick-next {
    width: 50px !important;
    height: 50px !important;
    background: rgba(0,0,0,0.5) !important; /* 黒丸背景 */
    border-radius: 50% !important;
    position: absolute !important; /* 丸背景の位置固定 */
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    border: none !important;
    outline: none !important;
    cursor: pointer;
}

/* hover 背景 */
.slick-prev:hover,
.slick-next:hover {
    background: rgba(0,0,0,0.8) !important;
}

/* slick デフォルト非表示 */
.slick-prev:before, .slick-next:before {
  content: '' !important;
}

.slick-prev:after,
.slick-next:after {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-size: 22px !important;
  color: #fff !important;
  content: "\f104" !important; /* ← 左矢印 */
}

.slick-next:after {
  content: "\f105" !important; /* → 右矢印 */
}

/* hover */
.slick-prev:hover, .slick-next:hover {
  background: rgba(0,0,0,0.8);
}


/* コンテンツ説明 */
.contens-flex {
    display: flex;
    align-items: center; /* 縦方向中央揃え */
}

.image-container,
.text-content {
    width: 50%;       /* 左右50%ずつ */
    box-sizing: border-box;
    padding: 10px;    /* お好みで余白 */
}

.image-container img {
    width: 100%;      /* 画像をコンテナ幅に合わせる */
    height: auto;
}

.text-content {
    text-align: left;  /* 文字は左寄せ */
}

/* ニュースリスト全体 */
.news-list {
    display: flex;
    flex-direction: column; /* 記事を縦に積む */
    gap: 50px;
    max-width: 900px;
    margin: 50px auto 20px; /* 上:50px、左右:自動、下:0 */
}

/* 各ニュース記事 */
.news-item {
    border-bottom: 1px solid #ddd;
    padding-bottom: 40px;
}

.news-item:last-child {
    border-bottom: none;
}

/* リンクを横並びにする */
.news-link {
    display: flex;             /* 横並びにする */
    gap: 30px;
    align-items: flex-start;   /* 上揃え */
    text-decoration: none;     /* 下線を消す */
    color: inherit;            /* 文字色を継承 */
}

/* 画像部分 */
.news-img {
    flex-shrink: 0;            /* 横幅固定 */
}

.news-img img {
    width: 260px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
}

/* テキスト部分 */
.news-content {
    flex: 1;                   /* 残り幅を占有 */
    display: flex;
    flex-direction: column;    /* タイトル・抜粋を縦に積む */
}

/* メタ情報 */
.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.news-date {
    font-size: 14px;
    color: #555;
}

.news-category {
    font-size: 13px;
    padding: 4px 12px;
    border: 1px solid #ccc;
    border-radius: 20px;
}

/* タイトル */
.news-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
}

/* 抜粋 */
.news-excerpt {
    color: #444;
    line-height: 1.7;
}

/* スマホ用 */
@media screen and (max-width: 768px) {
    .news-link {
        display: block;       /* flex を解除して縦並びに */
    }

    .news-img {
        width: 100%;          /* 画像を画面幅いっぱいに */
        margin-bottom: 15px;  /* 画像とテキストの間隔 */
    }

    .news-img img {
        width: 100%;          /* 画像の横幅も100%に */
        height: auto;         /* 高さ自動 */
    }

    .news-content {
        flex: none;           /* flex を解除 */
    }
}