@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: #333;
  /* 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: #37a2ab; /* コーポレートカラー等に合わせて変更 */
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

/* メインの見出し（h2） */
.media-list h2 {
    font-size: 28px;
    font-weight: 700;
	line-height: 1.3;
    color: #333;
    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: #37a2ab; /* 下線の色 */
}

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

/* スマホ対応（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: 20px auto;
    max-width: 1100px;
    padding: 0 10px;
}

.anchor-btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: #37a2ab;
    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: #9dd1d6;
    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;
    /*border-top: 1px solid #ccc;*/
    font-family: sans-serif;
    color: #333;
}

/* --- 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: 130px; justify-content: center; }
.col-pref { width: 100px; justify-content: center; }
.col-name { flex: 1; font-weight: bold; } 
.col-date { width: 100px; justify-content: center; }
.col-num  { width: 80px;  justify-content: center; }
.col-inq  { width: 120px; justify-content: center; border-right: none !important; }

/* --- 広告問合せボタン（ここが重要！） --- */
/* .btn-inq だけでなく、以前のテーブルのクラス名 .inqBlank も青くします */
.btn-inq, 
.inqBlank,
.col-inq a {
    display: inline-block !important;
    background-color: #37a2ab !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;
}

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

/* --- スマホ用レイアウト修正 --- */
@media screen and (max-width: 768px) {
    .adv-header { 
        display: flex; /* スマホでもヘッダーを表示 */
    }
    
    .adv-header > div,
    .adv-row > div {
        padding: 8px 4px; /* 余白を最小限に */
        font-size: 11px;  /* 文字サイズを小さくして収める */
    }

    /* 各カラムの幅をスマホ用に最適化（合計100%になるように調整） */
    .col-area { width: 18%; font-size: 10px; } /* 地区は小さく */
    .col-pref { width: 16%; }
    .col-name { flex: 1; min-width: 0; }      /* 媒体名を一番広く */
    .col-num  { width: 10%; }                  /* PV */
    .col-inq  { width: 75px; }                 /* ボタン幅を固定 */

    /* ラベル（：）は横並びの時は不要なので非表示に */
    .adv-row > div::before {
        display: none;
    }

    /* 広告問合せボタンをスマホサイズに */
    .btn-inq, .inqBlank, .col-inq a {
        padding: 4px 6px !important;
        font-size: 10px !important;
        width: 100%; /* 枠いっぱいに広げる */
    }
    
    /* 媒体名が長い場合に折り返さず「...」にする設定（お好みで） */
    .col-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}