/* a1-formations.css — FINAL (Full-Width / No Shrink Version)
   ポリシー: スマホでも“最大幅”で表示。縮小系の指定を撤廃。
   クリエイティブが大きい場合に切れないよう、details内/カード側は原則切らない。
*/

/* =============================
   基本レイアウト
   ============================= */
.a1-formations {
  display: block;
  max-width: 860px;
  margin: 0 auto;
}

.a1-formation-card {
  border: 1px solid #cccccc;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  margin: 0 0 16px;
  box-sizing: border-box;
  /* 切らない：広告を最大幅で見せるため */
  overflow: visible;
}

.a1-formation-title {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: .02em;
  margin-bottom: 8px;
}

.a1-separator {
  height: 1px;
  background: #cccccc;
  margin: 6px 0 10px;
}

.a1-members {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 10px;
}

.a1-member {
  display: block;
  width: 90px;
  min-width: 60px;
  max-width: 100px;
  text-decoration: none;
}

.a1-member-thumb {
  background: #f6f6f6;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.a1-member-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.a1-member-name {
  display: block;
  margin-top: 4px;
  color: #333;
  font-size: 12px;
  text-align: center;
}

.a1-video-holder { margin-top: 8px; }

/* =============================
   解説(details)領域
   ============================= */
.a1-concept {
  margin-top: 8px;
  margin-bottom: 16px;
  color:#333;
  line-height:1.7;
}

.a1-concept details{
  display: block;
  width: 100%;
  max-width: 100%;
  /* 切らない：内部の広告がはみ出しても見切れないように */
  overflow: visible;
}

.a1-concept details > *{
  max-width: 100%;
  box-sizing: border-box;
}

.a1-concept-body { position:relative; }
.a1-concept-collapsed {
  max-height: 12em;
  overflow: hidden;
}
.a1-concept-collapsed::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3em;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
  pointer-events: none;
}
.a1-concept-body.a1-open { max-height: none; }
.a1-concept-body.a1-open::after { display:none; }

/* ボタン */
.a1-concept .a1-readmore {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 8px;
  border: 1px solid #333333;
  background: #727272;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
}
.a1-concept .a1-readmore:hover { background:#cccccc; }

/* ページング */
.a1-pager {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 16px 0 24px;
  flex-wrap: wrap;
}
.a1-pager a,
.a1-pager span {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}
.a1-pager .is-current {
  background: #f0f0f0;
  pointer-events: none;
  font-weight: 700;
}

/* =============================
   広告プレースホルダ（共通・縮小禁止）
   ============================= */
/* 余白は維持しつつ“最大幅”を許容。はみ出しは切らない方針 */
.lazy-ad-slot{
  /* 独立化は維持（レイアウト干渉を避ける） */
  display: flow-root;
  width: 100%;
  max-width: none;             /* ← 親の幅制限に従いつつ、強制上限は付けない */
  min-width: 0;
  margin: 2em 0;
  box-sizing: border-box;
  overflow: visible;           /* ← 切らない */
}

/* ins は縮めない。幅指定はしない（Googleのinline指定を尊重） */
.lazy-ad-slot > ins.adsbygoogle{
  display: block !important;
  /* width: auto;  ← 明示不要。Google付与の width を尊重 */
  min-height: 250px;
  box-sizing: border-box;
  margin: 0;                   /* 余計な左右ズレを避ける。Googleの負マージンは広告側が制御 */
}

/* 本文コンテナが flex/grid の場合の保険 */
.entry-content .lazy-ad-slot{ min-width: 0; }

/* =============================
   画像/iframe などの一般安定化
   ============================= */
.a1-formations img,
.a1-formations iframe{
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}

/* 中央寄せの強制 */
.a1-formations .a1-concept details .lazy-ad-slot{
  display: flex;               /* フレックスで中央寄せ */
  justify-content: center;
  text-align: center;          /* ← 保険：古いブラウザ用 */
}

/* Googleの負マージン等を無効化して中央に固定 */
.a1-formations .a1-concept details .lazy-ad-slot > ins.adsbygoogle{
  margin: 0 auto !important;   /* left/right のズレをリセット */
}