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



/* IDがついた要素すべてに適用する場合（推奨） */
:target {
  scroll-margin-top: 100px;
}

/* または特定のクラスに適用する場合 */
.adv-row {
  scroll-margin-top: 100px;
}

/* ==========================================
   MV
   ========================================== */

/* 1. 親要素に relative を指定（既にあるはずですが再確認） */
.main-visual {
  position: relative;
  width: 100%;
  height: 350px;
  background-image: url('../img/common/mv-bg.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* 2. 背景を暗くするレイヤーを追加 */
.main-visual::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2); /* 0.4〜0.5くらいが文字が浮き出て見えやすいです */
  z-index: 1; /* 背景より上で、コンテンツより下 */
}

/* 3. コンテンツをオーバーレイより前面に出す（重要！） */
.mv-container {
  position: relative; /* これを忘れるとオーバーレイの下に隠れます */
  z-index: 2;        /* オーバーレイ(z-index: 1)より大きな数値 */
  
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  justify-content: flex-start; /* コンテンツ自体は「1100pxの枠内」で左寄せ */
}

/* テキストエリアが広がりすぎないように制限 */
.mv-content {
  max-width: 800px;  /* 文字が端まで伸びすぎないように制限 */
  text-align: left;
}

/* タイトルの背景：白（不透明度高め） */
.mv-title {
  margin-bottom: 20px;
  line-height: 1.8; /* 重なりを考慮して少し広めに調整 */
}

.mv-title span {
  background-color: rgba(255, 255, 255, 0.95);
  color: #395fa4;
  /* remからpxに変更して、巨大化を防ぐ */
  font-size: 36px; 
  font-weight: bold;
  padding: 8px 15px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  display: inline-block;
  margin-bottom: 8px;
  line-height: 1.2;
}

/* リード文 */
.mv-lead {
  color: #fff;
  /* ここもpx指定にして、一定以上にしない */
  font-size: 14px; 
  line-height: 1.7;
  margin-bottom: 30px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
  font-weight: 600;
  max-width: 700px; /* 文字が横に広がりすぎないようにする */
}

/* ボタン */
.mv-btn {
  display: inline-block;
  background-color: #37a2ab;
  color: #fff;
  padding: 12px 35px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.15rem;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.mv-btn:hover {
  background-color: #2e8a91;
  text-decoration: none;
  color: #fff;
}

/* --- 表示切り替え設定 --- */
.sp-only {
  display: none;
}
/* pc-only はデフォルト表示 */

/* --- レスポンシブ設定（スマホ） --- */
@media (max-width: 768px) {
  .main-visual { 
    height: auto; 
    padding: 60px 0; 
  }
  
  .mv-container {
    padding: 0 15px; /* スマホ時は少し余白を狭く */
  }

.mv-title span { 
    /* スマホの時だけ小さくする */
    font-size: 24px; 
    padding: 4px 10px; 
  }

  .mv-lead { 
    font-size: 15px;
    line-height: 1.6;
  }
  
  /* スマホでのみ表示を切り替える */
  .pc-only { 
    display: none !important; 
  }
  .sp-only { 
    display: block !important; 
  }
}

/* ==========================================
   自治体広告一覧コンテナ
   ========================================== */

/* セクション全体の余白 */
.media-list {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center; /* 中央揃え */
}

/* 見出しグループ */
.heading-group {
    margin-bottom: 30px;
}

/* 英語のサブタイトル（MEDIA LIST） */
.sub-title {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #2c5ea7; /* コーポレートカラー等に合わせて変更 */
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

/* メインの見出し（h2） */
.media-list h2 {
    font-size: 28px;
    font-weight: 700;
	line-height: 1.3;
    color: #2c5ea7;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

/* 見出しの下線（装飾） */
.media-list h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #2c5ea7; /* 下線の色 */
}

/* リード文 */
.lead-text {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-top: 0px;
}

/* スマホ対応（768px以下） */
@media (max-width: 768px) {
    .media-list {
        padding: 40px 15px;
    }
    .media-list h2 {
        font-size: 26px;
    }
    .lead-text {
        font-size: 18px;
        text-align: left; /* スマホでは左寄せの方が見やすい場合が多い */
    }
}


/* --- アンカーナビゲーション --- */
.anchor-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0px auto;
    max-width: 1100px;
    padding: 0 10px;
}

.anchor-btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: #2c5ea7;
    border: 1px solid #fff;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.2s;
    text-align: center;
}

.anchor-btn:hover {
    background-color: #4a83db;
    border-color: #fff;
}

/* --- エリア見出し --- */
.area-heading {
    background: #444;
    color: #fff;
    padding: 10px 15px;
    font-weight: bold;
    margin-top: 40px; /* ジャンプした時に上に余白を作る */
    border-radius: 4px 4px 0 0;
    font-size: 16px;
}

/* スムーススクロール（ジャンプした時にスルスル動く） */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px; /* 固定ヘッダーなどがある場合に重ならないように調整 */
}

/* スマホ用調整 */
@media screen and (max-width: 768px) {
    .anchor-nav {
        gap: 6px;
    }
    .anchor-btn {
        flex: 1 1 calc(33.33% - 10px); /* スマホで3列に並べる */
        padding: 8px 4px;
        font-size: 12px;
    }
}




.link-area {
  text-align: center;
  padding: 0px 0 20px 0;
}

.btn-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: #37a2ab;
  border: 2px solid #37a2ab;
  padding: 12px 35px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.3s ease;
}

/* 矢印の土台（棒の部分） */
.btn-arrow {
  position: relative;
  display: inline-block;
  width: 18px; /* 矢印の長さ */
  height: 2px; /* 線の太さ */
  background-color: #37a2ab;
  margin-left: 12px;
  transition: all 0.3s ease;
}

/* 矢印の先端（くの字の部分） */
.btn-arrow::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  width: 7px;
  height: 7px;
  border-top: 2px solid #37a2ab;
  border-right: 2px solid #37a2ab;
  transform: rotate(45deg);
  transition: all 0.3s ease;
}

/* ホバー時の挙動 */
.btn-sub:hover {
  background-color: #37a2ab;
  color: #fff;
}

/* ホバーした時に矢印の色を白くし、右に少し動かす */
.btn-sub:hover .btn-arrow {
  background-color: #fff;
  transform: translateX(5px);
}

.btn-sub:hover .btn-arrow::after {
  border-color: #fff;
}



/* ==========================================
   自治体広告リスト 表
   ========================================== */


/* 全体コンテナ */
.adv-list {
    width: 100%;
    max-width: 1100px;
    margin: 0px auto 40px auto;
    /*border-top: 1px solid #ccc;*/
    font-family: sans-serif;
    color: #333;
}
.anchor-btn {
  cursor: pointer; /* これでマウスを乗せた時に指の形になります */
}

/* --- PC用レイアウト --- */
.adv-header {
    display: flex;
    background-color: #f2f2f2;
    font-weight: bold;
    border-bottom: 2px solid #ccc;
}

.adv-header > div {
    padding: 12px 10px;
    border-right: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.adv-row {
    display: flex;
    border-bottom: 1px solid #ccc;
}

.adv-row > div {
    padding: 12px 10px;
    border-right: 1px solid #eee;
    display: flex;
    align-items: center;
    font-size: 14px;
    min-height: 40px;
}

.col-area { width: 110px; justify-content: center; }
.col-pref { width: 90px; justify-content: center; }
.col-city { width: 110px; justify-content: center; } /* ←これを追加！ */
.col-name { flex: 1; font-weight: bold; min-width: 150px; } 

/* 詳細ボタンの幅調整 */
.col-num { 
  width: 140px; 
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}
.col-num a.btn-detail {
  display: block !important;
  width: 125px; 
  margin: 0 auto;
  padding: 6px 0 !important;
  box-sizing: border-box;
}

/* お問い合わせボタンの幅調整 */
.col-inq { 
  width: 130px; 
  justify-content: center; 
  border-right: none !important; 
}

/* --- 広告問合せボタン（ここが重要！） --- */
/* .btn-inq だけでなく、以前のテーブルのクラス名 .inqBlank も青くします */
.btn-inq, 
.inqBlank,
.col-inq a {
    display: inline-block !important;
    background-color: #2c5ea7 !important; /* 強制的に青色を適用 */
    color: #ffffff !important;           /* 文字は白 */
    padding: 6px 12px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: bold !important;
    text-align: center !important;
    white-space: nowrap !important;
	transition: all 0.2s;
}

/* 通常時のスタイル（ご提示いただいたもの） */
.col-num a.btn-detail {
    display: inline-block !important;
    background-color: #ffffff !important;
    color: #4a83db !important;
    border: 1px solid #4a83db !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: bold !important;
    text-align: center !important;
    white-space: nowrap !important;
    transition: all 0.2s;
}

/* 【追加】href属性がない、または空、または"#"の場合にグレーにする */
.col-num a.btn-detail:not([href]), 
.col-num a.btn-detail[href=""], 
.col-num a.btn-detail[href="#"] {
    background-color: #f5f5f5 !important; /* グレー背景 */
    color: #a8a8a8 !important;        /* 文字を白に */
    border-color: #f5f5f5 !important;     /* 枠線もグレーに */
    pointer-events: none !important;   /* クリック不可 */
    cursor: default !important;
    text-decoration: none !important;
}

.btn-inq:hover, 
.inqBlank:hover,
.col-inq a:hover {
    background-color: #4a83db !important;
    opacity: 0.9;
}

.col-num a.btn-detail:hover {
    background-color: #e2efff !important;
    opacity: 0.9;
}






/* --- スマホ用レイアウト修正 --- */
@media screen and (max-width: 768px) {
    .adv-header { 
        display: flex; 
    }
    
    .adv-header > div,
    .adv-row > div {
        padding: 6px 2px; /* さらに余白を詰め、横並びを死守 */
        font-size: 10px;  /* 全体的に10pxへ */
    }

    /* 6カラムの幅を再配分（合計100%付近） */
    .col-area { width: 14%; font-size: 9px; } /* 地区 */
    .col-pref { width: 12%; }                 /* 都道府県 */
    .col-city { width: 14%; }                 /* 行政 */
    .col-name { flex: 1; min-width: 0; }      /* 媒体名 */
    .col-num  { width: 18%; }                 /* 詳細ボタン枠 */
    .col-inq  { width: 18%; }                 /* 問合せボタン枠 */

    /* ボタン共通のスマホスタイル */
    .col-inq a, 
    .col-num a.btn-detail {
        display: block !important;
        padding: 4px 0 !important;
        font-size: 9px !important; /* 最小サイズ */
        width: 100% !important;
        text-align: center;
        border-radius: 2px !important;
        white-space: nowrap;
    }

    /* 「媒体詳細ページ」という文字は長いのでスマホでは「詳細」にする */
    .col-num a.btn-detail {
        background-color: #ffffff !important; /* 詳細ボタンは白背景にして差をつける */
        color: #4a83db !important;
        border: 1px solid #4a83db !important;
        font-size: 0 !important; /* 元の文字を消す */
    }
    .col-num a.btn-detail::before {
        content: "詳細"; /* 代わりの短い文字を入れる */
        font-size: 10px !important;
    }

    /* お問い合わせボタンも「問合せ」に短縮 */
    .col-inq a {
        font-size: 0 !important;
    }
    .col-inq a::before {
        content: "問合せ";
        font-size: 10px !important;
    }

    /* 媒体名は2行まで許容（...にすると中身が見えないため） */
    .col-name {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.2;
    }
}