/* =========================================================
   page-flyer.css
   ポスティング／折込ページ専用スタイル
   ========================================================= */

/* =========================================================
   バナー（上部イメージ）
   ========================================================= */

.banner {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 1;
  object-fit: cover;
  border-radius: 12px;
}

/* =========================================================
   料金表（テーブル）
   ========================================================= */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  margin-top: 10px;
}

.table-scroll:focus {
  outline: 2px solid rgba(0, 0, 0, .15);
  outline-offset: 2px;
}

.price-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 15px;
}

.price-table th,
.price-table td {
  border: 1px solid rgba(0, 0, 0, .1);
  padding: 10px 14px;
  text-align: center;
  white-space: nowrap;
}

.price-table thead th {
  background: #f8f4ef;
  color: #333;
  font-weight: 700;
}

.price-table tbody th {
  background: #faf7f0;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .price-table {
    font-size: 14px;
  }

  .price-table th,
  .price-table td {
    padding: 8px 10px;
  }
}

/* --- 地区別料金表レイアウト用 --- */

/* 2段ヘッダーの1行目をやや強調 */
.price-table.price-table--area thead tr:first-child th {
  background: #f8f4ef;
  font-weight: 700;
}

/* 地区名（1列目）は折り返して左寄せにする */
.price-table.price-table--area .col-area {
  text-align: left;
  white-space: normal;
  line-height: 1.6;
}

/* 媒体（2列目）は少し狭め・中央寄せのままでOK */
.price-table.price-table--area .col-media {
  white-space: nowrap;
}

/* 改定後の価格だけ太字で目立たせる */
.price-table.price-table--area .price-new {
  font-weight: 700;
}

/* --- 地区別料金表（神戸市・明石市・三田市）用ラッパー --- */
.price-table-wrap {
  margin-top: 10px;
}

/* テーブル右上に「(単価：円)」を表示 */
.price-table-meta {
  text-align: right;
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

/* --- 料金説明ブロック --- */

.price-notes {
  font-size: 15px;
  color: var(--text, #333);
  margin-top: 16px;
  line-height: 1.8;
}

.price-notes p {
  margin: 0 0 4px;
}

.price-notes .example {
  margin: 12px 0;
  padding: 12px 16px;
  background: #fafafa;
  border-radius: 8px;
}

.price-notes .example__title {
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--primary, #c9333e);
}

.price-notes ul {
  margin: 0;
  padding-left: 1.2em;
}

.price-notes li {
  margin-bottom: 8px;
}

.price-notes strong {
  font-weight: 700;
  color: var(--primary, #c9333e);
}

/* --- ご注意ブロック（黄系背景） --- */

.price-notes .notice {
  margin-top: 14px;
  padding: 12px 16px;
  background: #fff9e6; /* 淡いクリーム系 */
  border-radius: 8px;
  font-size: 14px;
  color: #5a4c2d;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
}

.price-notes .notice strong {
  color: #a07300; /* タイトル部のみ濃い金茶系で視認性UP */
}

/* =========================================================
   Flow（広告依頼の流れ）
   ========================================================= */

.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* デスクトップ：横並び */
  gap: 16px;
  align-items: start;
  margin-top: 14px;
  transition: all .3s ease;
}

.flow__step {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
  min-height: 140px;
}

.flow__icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 8px;
}

.flow__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.flow__label {
  margin: 0;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text, #333);
  font-size: 14px;
}

/* 矢印（デスクトップ時は右向き） */
.flow__step::after {
  content: "";
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid var(--primary, #3b82f6);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.flow__step:last-child::after {
  display: none;
}

/* --- Flow レスポンシブ --- */

@media (max-width: 980px) {
  .flow {
    gap: 12px;
  }

  .flow__icon {
    width: 60px;
    height: 60px;
  }
}

/* ▼ スマホ時（縦並び） */
@media (max-width: 640px) {
  .flow {
    grid-template-columns: 1fr; /* 縦並び */
    gap: 20px;
  }

  .flow__step {
    text-align: left;
    padding: 12px;
    min-height: auto;
  }

  .flow__icon {
    float: left;
    margin: 2px 10px 0 0;
    width: 52px;
    height: 52px;
  }

  .flow__label {
    font-size: 15px;
    display: flex;
    align-items: center;
    min-height: 52px;
  }

  /* 矢印：下向きに変更 */
  .flow__step::after {
    right: 50%;
    top: auto;
    bottom: -18px;
    transform: translateX(50%) rotate(90deg);
    border-left-color: var(--primary, #3b82f6);
  }
}

/* =========================================================
   広告取扱基準
   ========================================================= */

.policy {
  margin-top: 8px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 10px;
}

.policy__list {
  counter-reset: polcnt;
  list-style: none;
  margin: 0;
  padding: 0;
}

.policy__item {
  position: relative;
  padding-left: 1.8em;
  margin-bottom: 8px;
  line-height: 1.8;
  color: var(--text, #333);
}

/* 番号バッジ（シンプル・グレー系） */
.policy__item::before {
  counter-increment: polcnt;
  content: counter(polcnt) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 600;
  color: #888;
}

/* 注釈（控えめなグレー背景） */
.policy__note {
  margin-top: 8px;
  margin-bottom: 8px;
  padding: 10px 12px;
  background: #f7f7f7;
  border-radius: 6px;
  font-size: 14px;
  color: #555;
}

@media (max-width: 640px) {
  .policy {
    padding: 12px;
  }

  .policy__item {
    padding-left: 1.6em;
  }
}

/* =========================================================
   ベネフィット（メリット）カード
   ========================================================= */

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.benefit {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--primary, #c9333e);
  border-radius: 12px;
  padding: 24px 18px 36px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.benefit__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary, #c9333e);
  letter-spacing: 0.02em;
}

.benefit__text {
  margin: 0;
  font-size: 14.5px;
  color: var(--text, #333);
  line-height: 1.8;
}

/* アイコン（右下配置） */
.benefit__icon {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 64px;
  height: 64px;
}

.benefit__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0; /* 背景なし */
}

/* --- ベネフィット レスポンシブ --- */

@media (max-width: 980px) {
  .benefits {
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .benefits {
    grid-template-columns: 1fr;
  }

  .benefit {
    padding: 20px 16px 60px;
  }

  .benefit__icon {
    width: 60px;
    height: 60px;
    right: 10px;
    bottom: 10px;
  }
}

/* =========================================================
   横並びバナー（折込／ポスティングなどへのリンク）
   ========================================================= */

.link-banners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.banner-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(0, 0, 0, .15); /* 控えめなグレー枠 */
  box-shadow: 0 3px 10px rgba(0, 0, 0, .05);
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

/* hoverで浮かせ＋色を少し強調 */
.banner-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
}

/* バナー内部（背景は個別設定） */
.banner-content {
  position: relative;
  padding: 20px 24px;
  height: 100px; /* 縦サイズ維持 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  color: #222;
}

/* 白い半透明オーバーレイ */
.banner-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .46);
  z-index: 0;
}

/* テキスト前面 */
.banner-title,
.banner-text {
  position: relative;
  z-index: 1;
}

.banner-title {
  font-size: 20px;
  font-weight: 800;
  color: #222;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}

.banner-text {
  font-size: 16px;
  color: #333;
  margin: 0;
  line-height: 1.7;
}

/* 背景画像（個別設定） */
.banner-orikomi {
  background-image: url("https://placehold.jp/700x100.png");
}

.banner-posting {
  background-image: url("https://placehold.jp/700x100.png");
}

/* --- バナー レスポンシブ --- */

@media (max-width: 780px) {
  .link-banners {
    grid-template-columns: 1fr;
  }

  .banner-content {
    padding: 16px 20px;
    height: 180px;
  }

  .banner-title {
    font-size: 18px;
  }

  .banner-text {
    font-size: 15px;
  }
}

/* =========================================================
   page-flyer 用 微調整
   ========================================================= */

/* バナー直後のカードは余白を詰める（従来の margin-top:0 と同等） */
#ad-benefits.asc-card {
  margin-top: 0;
}

/* 途中見出しなどで使う縦余白（従来の margin-top:50px と同等） */
.section-gap {
  margin-top: 50px;
}
