@charset "utf-8";
/* CSS Document */

#content-2column #main ul#list li .img_box img,
#news_list ul li .img_box img{
   aspect-ratio: 4 / 3;
   object-fit: cover;
}

footer .block01 h2 {
    max-width: 140px;
}

/* =========================================================
   ページ内リンクボタン (page_nav_area)
========================================================= */
.page_nav_area {
    margin-top: 40px;
    margin-bottom: 20px;
}

.page_nav_list {
    display: flex;
    flex-wrap: wrap; /* PCでは横並びで折り返す */
    justify-content: center;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page_nav_list li {
    margin: 0;
}

.page_nav_list li a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background-color: #ffffff;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    border-radius: 5px; /* ★角丸を5pxに変更 */
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    text-align: center;
    gap: 10px;
    box-sizing: border-box;
}

/* 下向き三角マークの作成 */
.page_nav_list li a::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 5px 0 5px;
    border-color: var(--main-color) transparent transparent transparent;
    transition: border-color 0.3s ease;
}

/* ホバー時のアクション */
.page_nav_list li a:hover {
    background-color: var(--main-color);
    color: #ffffff;
    opacity: 1;
}

.page_nav_list li a:hover::after {
    border-top-color: #ffffff;
}

/* =========================================================
   スマホ用調整（縦積み・横幅いっぱい）
========================================================= */
@media screen and (max-width: 768px) {
    .page_nav_list {
        flex-direction: column; /* 要素を縦積みにする */
        gap: 10px; /* ボタン同士の隙間を少し詰める */
    }

    .page_nav_list li {
        width: 100%; /* リストを横幅いっぱいに */
    }

    .page_nav_list li a {
        width: 100%; /* ボタン自体を横幅いっぱいに */
        padding: 15px; /* スマホでタップしやすいように高さを少し出す */
    }
}

/* =========================================================
   スムーススクロールと位置調整
========================================================= */
html {
    scroll-behavior: smooth;
}

.service_block_item {
    scroll-margin-top: 100px;
}
/* =========================================================
   関連記事エリア (pickup_area)
========================================================= */

/* エリア全体の余白 */
.pickup_area {
    margin-top: 50px;
}

/* 見出しを目立たせる */
.pickup_area .h3_center {
    text-align: center;
    margin-bottom: 25px;
}
.pickup_area .h3_center h3 {
    display: inline-block;
    font-size: 22px;
    font-weight: bold;
    color: #333333;
    padding-bottom: 8px;
    border-bottom: 3px solid #2980b9; /* アクセントカラーのライン */
}

/* リストレイアウト（PCは自動で横に並ぶ） */
.pickup_list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 各記事カードの基本スタイル */
.pickup_list li {
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pickup_list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.pickup_list li a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: #333333;
}

/* 画像エリア */
.pickup_list .img_box {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.pickup_list .img_box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pickup_list li:hover .img_box img {
    transform: scale(1.05);
}

/* テキストエリア */
.pickup_list .text_box {
    padding: 15px 20px;
    flex-grow: 1;
}

.pickup_list .text_box .title {
    margin: 0;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.5;
    /* 2行でリーダー（...）にする */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================================
   スマホ用調整（左画像・右テキスト）
========================================================= */
@media screen and (max-width: 768px) {
    .pickup_list {
        display: flex;
        flex-direction: column; /* 縦積みに変更 */
        gap: 15px;
    }

    .pickup_list li a {
        flex-direction: row; /* 横並びに変更 */
        align-items: center;
    }

    .pickup_list .img_box {
        width: 120px; /* スマホ時の画像の横幅を固定 */
        flex-shrink: 0;
        aspect-ratio: 4 / 3; /* サムネイルっぽく少し縦の比率を増やす */
    }

    .pickup_list .text_box {
        padding: 10px 15px;
    }
    
    .pickup_list .text_box .title {
        font-size: 14px; /* スマホでは少し文字を小さく */
    }
}

/* =========================================
   トップページ：4つの事業エリア修正版
========================================= */
.top_services { padding: 60px 0; background: #f9f9f9; }

/* メイン事業 */
.service-main { display: flex; background: #fff; border-radius: 8px; overflow: hidden; margin-bottom: 50px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.service-main .img-box, .service-main .text-box { width: 50%; }
.service-main .img-box img { width: 100%; height: 100%; object-fit: cover; }
.service-main .text-box { padding: 40px; display: flex; flex-direction: column; justify-content: center; line-height: 1.8;}
.service-main .label { display: inline-block; background: color-mix(in srgb, var(--main-color), transparent 90%); color: var(--main-color); padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: bold; margin-bottom: 15px; width: fit-content; }
.service-main h3 { font-size: 24px; margin-bottom: 15px; line-height: 1.8; }
.service-main .btn { display: inline-block; background: var(--main-color); color: #fff; padding: 12px 30px; text-decoration: none; font-weight: bold; width: fit-content; }
.service-main .desc p{line-height: 1.8;;}

/* サブ事業 */
.service-sub { 
  display: flex; 
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 20px;
  list-style: none; 
  padding: 0; 
  margin: 0; 
}
.service-sub li { 
  width: calc((100% - 40px) / 3); 
  background: #fff;
  overflow: hidden; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
}
.service-sub li a { display: block; height: 100%; text-decoration: none; color: inherit; padding-bottom: 20px; }
.service-sub li .img-box { aspect-ratio: 16/9; margin-bottom: 15px; }
.service-sub li .img-box img { width: 100%; height: 100%; object-fit: cover; }
.service-sub li h3, .service-sub li .desc, .service-sub li .more { padding: 0 20px; }
.service-sub li .desc { font-size: 14px; color: #666; margin-bottom: 15px;}
.service-sub li .desc p{line-height: 1.8;;}
.service-sub li .more { text-align: right; color: var(--main-color); font-weight: bold; display: block; }

/* --- メディアクエリ修正 --- */

/* スマホ対応 (〜768px) */
@media screen and (max-width: 768px) {
  .service-main { flex-direction: column; }
  .service-main .img-box, .service-main .text-box { width: 100%; box-sizing: border-box; }
  .service-main .img-box { aspect-ratio: 16/9; }
  .service-sub { flex-direction: column; }
  .service-sub li { width: 100%; margin-bottom: 0; }
}

@media (max-width: 599px) {
  /* small devices */
  .service-main .text-box { padding: 25px; }
}

@media (min-width: 600px) and (max-width: 960px) {
  /* tablets */
  .service-sub li { width: calc((100% - 20px) / 2); } /* タブレットは2カラムに */
}

@media (min-width: 1210px) {
  /* large desktops */
  .top_services .wrap { max-width: 1200px; }
}