/*ロゴ画像*/
#ad-logo img {
	display: block;
	width: 150px;	/*ロゴの幅*/
}
#ad-logo {
	margin: 0;padding: 0;
	padding-left: 3vw;	/*ロゴの左側に空ける余白*/
}

	/*画面幅700px以上の追加指定*/
	@media screen and (min-width:700px) {

	/*ロゴ画像*/
	#ad-logo img {
		width: 200px;	/*ロゴの幅*/
	}

	}/*追加指定ここまで*/

/* =========================
   パンくずリンク
   ========================= */
.breadcrumb {
  font-size: 0.95rem;
  margin: 1rem 0 0rem 9vw;
  color: #6b7280;
}
.breadcrumb a {
  color: #6b7280;
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.4em; }

/* ========== 見出し（広告掲載料金）位置調整 ========== */
.advertisement-section h2.c {
  margin-top: 0.3rem;
  margin-bottom: 1.0rem;
  justify-content: flex-start;
  align-items: flex-start;
  margin-left: 2vw;
}

/* ========== 広告掲載料金：2カラム構成 ========== */
.ad-pricing-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 0 2vw;
  margin-top: 1.5rem;
  align-items: flex-start;
}
.ad-pricing-box { flex: 1 1 720px; min-width: 360px; }
.ad-pricing-note {
  font-weight: bold;
  font-size: 0.95rem;
  margin: 0.5rem 0;
}

/* 料金表（左側） */
.ad-pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background-color: #fff;
}
.ad-pricing-table th,
.ad-pricing-table td {
  border: 1px solid #ccc;
  padding: 0.8em 1em;
  text-align: center;
  vertical-align: middle;
  font-weight: normal;
}
.ad-pricing-table th {
  background-color: #f0f0f0;
  font-weight: bold;
  white-space: nowrap;
}
.ad-pricing-table .subprice { font-size: 0.85em; color: #666; }

/* 右側イメージ */
.ad-pricing-image { flex: 0 0 280px; max-width: 100%; }
.ad-pricing-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* スマホ対応（縦積み） */
@media (max-width: 768px) {
  .ad-pricing-wrapper { flex-direction: column; }
  .ad-pricing-image { margin-top: 1rem; max-width: 100%; }
}

/* ========== PDF「表まわり」テーブル完全再現 ========== */
.a4-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
  font-variant-numeric: tabular-nums;
  font-size: 10.5pt;
}
.a4-table th,
.a4-table td {
  border: 1px solid #cfcfcf;
  padding: 8px 14px;
  line-height: 1.35;
  vertical-align: middle;
  text-align: center;
  white-space: nowrap; /* 「円」の改行防止 */
}
.a4-table thead th {
  background: #f3f4f6;
  font-weight: 700;
}
/* 左寄せにすべき列 */
.a4-table .col-type,
.a4-table .col-note,
.a4-table tbody th[scope="row"] { text-align: left; }
/* 備考だけは折返し可 */
.a4-table .col-note { white-space: normal; }

/* 6回掲載の右罫線を点線に */
.a4-table .col-6 {
  border-right-style: dotted;
  border-right-width: 2px;
  border-right-color: #bdbdbd;
}
/* 年契約列を強調 */
.a4-table td.em { font-weight: 800; }
/* 強制一行（例：各50,000円） */
.nowrap { white-space: nowrap !important; }

/* ★キャプション（表右上の注意文） */
.a4-table-caption {
  position: absolute;
  top: -10mm;
  right: 0;
  font-size: 9.8pt;
  color: #333;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .a4-table-caption { position: static; margin: .4em 0; white-space: normal; }
  .a4-table { font-size: 9.6pt; }
  .a4-table th, .a4-table td { padding: 7px 10px; }
}

/* ===== 固定/追従ヘッダーとコンテンツの重なり防止 ===== */
:root{
  /* ヘッダーの見かけ高さ（必要に応じて微調整） */
  --site-header-h: 80px;
}

@media (max-width: 899px){
  :root{ --site-header-h: 64px; }
}

/* ヘッダーを最前面にして背景を白で塗る（他CSSの指定と競合しない範囲で） */
header{
  position: sticky;   /* 既にfixedならこの指定は無視されます */
  top: 0;
  z-index: 1000;
  background: #fff;
}

/* コンテンツ側にヘッダー分の余白を確保 */
main{
  padding-top: var(--site-header-h);
}

/* パンくずや冒頭見出しがさらに近い場合は少し下げる */
.breadcrumb{ margin-top: calc(1rem + 0px); }

/* アンカーリンクのスクロール位置補正（#idジャンプ時にヘッダー下に止める） */
[id]{ scroll-margin-top: var(--site-header-h); }

/* A4テーブルの右上キャプションがヘッダー下に潜らないよう余白を足す */
.ad-a4-section .a4-head{ margin-top: 6px; }



/* =========================
   出稿方法セクション（#advertisement）統合CSS
   既存 adver-2A.css と重複しないよう、全て #advertisement でスコープ
   ========================= */

/* セクション余白（既存 .advertisement-section には干渉しない） */
#advertisement.advertisement-section{
  background:#fff;
  padding-top:2rem;
  padding-bottom:2rem;
}

/* 2カラム固定レイアウト */
#advertisement .advertisement-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2カラム固定 */
  gap: 24px; /* 少し余裕を広げる */
  padding: 0 2vw;
  align-items: start;
}

/* 画面幅900px以下：1カラムに落とす */
@media (max-width: 900px) {
  #advertisement .advertisement-cards {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 4vw;
  }
}

/* カード全体をリンク化（既存と衝突しないようスコープ） */
#advertisement .card-link{
  display:block;
  height:100%;
  color:inherit;
  text-decoration:none;
}

/* カード本体 */
#advertisement .advertisement-card{
  position:relative;
  background:#fff;
  border:1.5px solid #e5e7eb;
  border-radius:8px;
  padding:0;
  transition:transform .2s ease, box-shadow .2s ease;
}
#advertisement .advertisement-card:hover{
  transform:translateY(-3px);
  box-shadow:0 6px 16px rgba(0,0,0,.08);
}

/* メディア領域（16:9） */
#advertisement .advertisement-card-media{
  aspect-ratio:16/9;
  margin:0;
  overflow:hidden;
  border-radius:10px;
  background:#fafafa;
}
#advertisement .advertisement-card-media img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

/* タイトル */
#advertisement .advertisement-card-title{
  margin:.8rem 0 0;
  padding:0 .9rem;
  font-size:1rem;
  line-height:1.5;
  font-weight:500;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* スペック（文章ブロック） */
#advertisement .advertisement-specs{ margin-top:.75rem; padding:0 .9rem; }

/* 要望どおり spec-box の枠は削除 */
#advertisement .spec-box{
  border:none;
  border-radius:8px;
  padding:.75rem .9rem;
  background:#fff;
}
#advertisement .spec-box + .spec-box{ margin-top:.6rem; }

#advertisement .spec-label{
  font-size:.95rem;
  color:#333;
  line-height:1.7;
}
#advertisement .spec-value{
  font-size:1.1rem;
  font-weight:700;
}

/* CTA（このセクションで使用する場合のみ適用） */
#advertisement .advertisement-cta{
  margin:20px 0 0;
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:12px;
  padding:0 12px;
}
#advertisement .advertisement-cta-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5em;
  height:60px;
  padding:0 20px;
  border-radius:999px;
  background:#ffd400;
  color:#111;
  font-weight:700;
  font-size:.9rem;
  text-decoration:none;
  box-shadow:0 1px 0 #e5c200, 0 3px 8px rgba(0,0,0,.08);
  border:1px solid #ffe16a;
  line-height:1;
  transition:all .25s ease;
}
#advertisement .advertisement-cta-btn:hover{
  background:#111;
  color:#ffd400;
  border-color:#111;
  box-shadow:0 1px 0 #000, 0 5px 10px rgba(0,0,0,.12);
}
#advertisement .advertisement-cta-btn .cta-arrow{
  display:inline-flex;
  align-items:center;
  margin-left:.5em;
  font-weight:900;
  line-height:1;
}
@media (max-width:640px){
  #advertisement .advertisement-cta{
    grid-template-columns:1fr;
    gap:10px;
    padding:0 8px;
  }
}

/* Videosの調整 */
/* 動画カードのずれ対策：メディアを枠いっぱいにフィット */
#advertisement .advertisement-card-media{
  position: relative;         /* 子をabsoluteで敷き詰めるため */
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #000;           /* 白帯を黒に（任意） */
}

/* video / img / iframe どれでも全面フィット */
#advertisement .advertisement-card-media > video,
#advertisement .advertisement-card-media > img,
#advertisement .advertisement-card-media > iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;          /* 余白なしでトリミングして埋める */
}

/* 余白なしで“全体”を見せたい場合は contain に切替（どちらか一方でOK） */
/* #advertisement .advertisement-card-media > video{ object-fit: contain; background:#000; } */






/* 見出しとリード文を揃える */
h2.c {
  margin-left: 2vw;         /* 既存の見出し左寄せ */
}

.lead {
  margin: 0.6rem 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
  margin-left: 2vw;         /* ← h2.c と同じ位置に揃える */
  max-width: 70ch;          /* 読みやすい幅に制限（任意） */
}
.lead strong { font-weight: 700; color: #111; }
.lead em { font-style: normal; color: #c00; font-weight: 700; }


/* アンカーリンクのスクロール位置補正 */
[id] { scroll-margin-top: var(--site-header-h, 80px); } 