/*
Theme Name:  Gridzone soreiine
Template:    gridzone
Description: soreiine.jp カスタムチャイルドテーマ
Version:     1.0.0
Text Domain: gridzone
*/

/* ============================================================
   Google Fonts
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;700&display=swap');

/* ============================================================
   Base
   ============================================================ */
body {
  font-family: 'Noto Sans JP', 'Titillium', Arial, sans-serif;
  background: #f3f3f3;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.main {
  background: #f3f3f3;
}

/* ============================================================
   Masonry グリッド レイアウト
   padding で 10px の隙間を作り JS gutter は 0 にする
   ============================================================ */
#masonry {
  /* 左右端カードの外側 5px 分を吸収 */
  margin: 0 -12px;
}

/* 全カード: 25% 幅（4列）*/
.masonry-item {
  width: 25%;
  padding: 0 12px;
  box-sizing: border-box;
  margin-bottom: 20px;
}




/* タブレット (781px〜1024px) : 2列 */
@media only screen and (min-width: 781px) and (max-width: 1024px) {
  .masonry-item {
    width: 50% !important;
  }
}
/* モバイル (iPhone 13 mini: 375px 対応) */
@media only screen and (max-width: 780px) {
  /* 親テーマの min-width: 1024px を上書き */
  #wrapper {
    min-width: 0 !important;
    overflow-x: hidden !important;
  }
  #masonry {
    margin: 0 !important;
  }
  .masonry-item {
    width: 100% !important;
    padding: 0 !important;
    margin-bottom: 8px !important;
  }
}

/* ============================================================
   カード（.masonry-inner）
   ============================================================ */
.masonry-inner {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  transition:
    transform 0.40s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.40s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.masonry-inner:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.14);
}

/* ============================================================
   サムネイル画像
   ============================================================ */
.entry-thumbnail {
  display: block;
  overflow: hidden;
  margin-bottom: 0;
  position: relative;
}
.entry-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.60s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.masonry-inner:hover .entry-thumbnail img {
  transform: scale(1.07);
}

/* ホバー時: 白グラジエントオーバーレイ（下部） */
.entry-thumbnail::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.85) 100%
  );
  opacity: 0;
  transition: opacity 0.40s ease;
  pointer-events: none;
  z-index: 1;
}
.masonry-inner:hover .entry-thumbnail::after {
  opacity: 1;
}

/* 親テーマの黒グラジエント(image-gradient.png)を無効化 */
.masonry-item .entry-thumbnail:before {
  display: none !important;
}

/* ============================================================
   カード本文エリア
   ============================================================ */
.masonry-item .entry-title {
  padding: 10px 14px 0;
  margin: 0 0 8px 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.masonry-item .entry-title a {
  color: #1a1a1a;
}
.masonry-item .entry-title a:hover {
  color: #555;
}
.masonry-item .entry-meta {
  padding: 0 14px 12px;
  margin-top: 4px;
  font-size: 11px;
  color: #bbb;
}
.masonry-item .entry-meta a {
  color: #999;
}
.masonry-item .entry-meta a:hover {
  color: #333;
}

/* ============================================================
   カテゴリーバッジ（常時表示・ピルスタイル）
   ============================================================ */

/* 親テーマの absolute 隠し配置を上書きして常時表示 */
.masonry-item .entry-category {
  position: relative !important;
  opacity: 1 !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  background: transparent !important;
  padding: 10px 14px 4px !important;
  pointer-events: auto !important;
  transition: none !important;
}

/* 親テーマの黒バッジを上書き */
.masonry-item .entry-category a {
  display: inline-block !important;
  background: #efefef !important;
  color: #555 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  border-radius: 20px !important;
  padding: 3px 12px !important;
  margin-bottom: 4px;
  transition: background 0.22s ease, color 0.22s ease !important;
}
.masonry-item .entry-category a:hover,
.masonry-item .entry-category a:focus {
  background: #111 !important;
  color: #fff !important;
}

/* ============================================================
   スクロールフェードイン
   ============================================================ */
@keyframes soreiineFadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.masonry-item.soreiine-animate {
  animation: soreiineFadeInUp 0.70s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* ============================================================
   ページネーション（数字タイプ）
   ============================================================ */
.pagination ul { display: none; }

.pagination {
  margin: 30px 20px 40px;
  text-align: center;
  line-height: 1;
}
.pagination .page-numbers {
  display: inline-block;
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-size: 14px;
  font-weight: 600;
  color: #555;
  margin: 0 3px 6px;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
  text-decoration: none;
}
.pagination .page-numbers:hover {
  background: #333;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}
.pagination .page-numbers.current {
  background: #111;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}
.pagination .page-numbers.dots {
  background: none;
  box-shadow: none;
  color: #bbb;
  cursor: default;
  transform: none;
}
.pagination .page-numbers.prev,
.pagination .page-numbers.next {
  font-size: 13px;
}

/* ============================================================
   詳細ページ タイトル
   ============================================================ */
.entry-header h1.entry-title {
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  padding: 0;
}

/* ============================================================
   タグバッジ
   ============================================================ */
.post-tags a {
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  transition: background 0.22s ease, color 0.22s ease;
}
.post-tags a:hover {
  background: #111;
  color: #fff;
}

/* ============================================================
   モバイル追加調整
   ============================================================ */
@media only screen and (max-width: 780px) {
  .masonry-inner:hover {
    transform: translateY(-4px);
  }
}

/* ============================================================
   サイドバー完全非表示（PC・スマホ共通）
   ============================================================ */

/* ウィジェットサイドバー (.s1) を非表示 */
.s1,
.sidebar.s1 {
  display: none !important;
}

/* サイドバーあり時のmain-innerパディングをリセット */
.col-2cl .main-inner,
.col-2cr .main-inner {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

/* 左アイコンナビバー分のwrapperパディングをリセット */
#wrapper {
  padding-left: 0 !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
}

/* 左アイコンバー (.s2) を非表示 */
.sidebar.s2,
.s2 {
  display: none !important;
}

/* ============================================================
   ヘッダー・フッター ネイビー化
   ============================================================ */

/* ヘッダー */
#header,
#header-sticky {
  background: #0a1628 !important;
  border-bottom: none !important;
  box-shadow: none !important;
}
#header .site-title a,
#header .site-description,
.nav-menu a {
  color: #fff !important;
}
.nav-menu a:hover {
  color: #aac4ff !important;
}

/* フッター */
#footer,
#footer-bottom,
#footer-widgets {
  background: #0a1628 !important;
  border-top: none !important;
  border-bottom: none !important;
  color: #aab4c8 !important;
}
#footer-bottom a,
#footer-bottom #copyright,
#footer-bottom #credit {
  color: #aab4c8 !important;
}
#footer-bottom a:hover {
  color: #fff !important;
}
#footer-bottom #back-to-top {
  border-color: rgba(255,255,255,0.2) !important;
  color: #aab4c8 !important;
}
#footer-bottom #back-to-top:hover {
  color: #fff !important;
}

/* ============================================================
   カテゴリーナビゲーションバー
   ============================================================ */
.soreiine-cat-nav {
  padding: 16px 8px 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.soreiine-cat-nav::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.soreiine-cat-nav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: max-content;
}
.soreiine-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 99px;
  background: #fff;
  color: #444;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.soreiine-cat-pill:hover {
  background: #0a1628;
  color: #fff !important;
  transform: translateY(-2px);
}
.soreiine-cat-pill.current {
  background: #0a1628;
  color: #fff;
  box-shadow: 0 4px 12px rgba(10,22,40,0.25);
}
.soreiine-cat-count {
  display: inline-block;
  font-size: 10px;
  font-weight: 400;
  opacity: 0.6;
}
@media only screen and (max-width: 780px) {
  .soreiine-cat-nav-inner {
    flex-wrap: nowrap;
  }
}

/* ============================================================
   カテゴリードロワー
   ============================================================ */

/* ハンバーガーボタン：ヘッダー中央配置・大きめ */
#soreiine-cat-btn {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  color: #fff;
}
#soreiine-cat-btn span:not(.soreiine-cat-btn-label) {
  display: block;
  width: 28px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.drawer-open #soreiine-cat-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.drawer-open #soreiine-cat-btn span:nth-child(2) { opacity: 0; }
.drawer-open #soreiine-cat-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.soreiine-cat-btn-label {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}

/* ヘッダー .group を relative に */
#header .group {
  position: relative;
}

/* オーバーレイ */
#soreiine-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  backdrop-filter: blur(2px);
}
#soreiine-overlay.open { display: block; }

/* ドロワー本体：右スライド */
#soreiine-drawer {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: #fff;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#soreiine-drawer.open { transform: translateX(0); }

/* ドロワーヘッダー */
.soreiine-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #0a1628;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
#soreiine-drawer-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s;
}
#soreiine-drawer-close:hover { color: #fff; }

/* ドロワーボディ */
.soreiine-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 32px;
  -webkit-overflow-scrolling: touch;
}

/* すべて見るリンク */
.soreiine-drawer-all {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  transition: background 0.15s;
}
.soreiine-drawer-all:hover,
.soreiine-drawer-all.current {
  background: #f5f7fa;
  color: #0a1628;
}

/* グループ */
.soreiine-drawer-group { border-bottom: 1px solid #f0f0f0; }

/* 親カテゴリー */
.soreiine-drawer-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.soreiine-drawer-parent:hover { background: #f5f7fa; }
.soreiine-drawer-parent.current { color: #0a1628; }
.soreiine-drawer-parent-name { flex: 1; }
.soreiine-drawer-arrow {
  font-size: 18px;
  color: #bbb;
  transition: transform 0.25s ease;
  line-height: 1;
}
.soreiine-drawer-group.open .soreiine-drawer-arrow { transform: rotate(90deg); }

/* 子カテゴリー（アコーディオン） */
.soreiine-drawer-children {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: #f8f9fb;
}
.soreiine-drawer-group.open .soreiine-drawer-children { max-height: 600px; }
.soreiine-drawer-divider { height: 0; margin: 8px 16px; border-top: 2px solid #e0e3e8; }
.soreiine-drawer-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 10px 28px;
  font-size: 12px;
  color: #555;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border-top: 1px solid #ececec;
}
.soreiine-drawer-child:hover,
.soreiine-drawer-child.current { background: #eef1f7; color: #0a1628; }
.soreiine-drawer-child-all { font-weight: 600; color: #444; }
.soreiine-drawer-count {
  font-size: 10px;
  color: #bbb;
  margin-left: 6px;
  flex-shrink: 0;
}

/* カテゴリーナビ（コンテンツ上）は非表示 */
.soreiine-cat-nav { display: none; }

/* ============================================================
   モバイル時ヘッダー：ロゴ右隣にハンバーガーボタン
   ============================================================ */
@media only screen and (max-width: 780px) {
  #header .group {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
  }
  /* ロゴのfloatを解除 */
  .site-title {
    float: none;
    line-height: 1;
    padding: 10px 0;
    flex-shrink: 0;
  }
  /* PCナビは非表示 */
  #wrap-nav-header,
  #wrap-nav-mobile {
    display: none !important;
  }
  /* ハンバーガーボタン：ロゴの右隣（margin-leftで右寄せ） */
  #soreiine-cat-btn {
    margin-top: 0;
    padding: 8px 16px;
  }
}

/* モバイル時ヘッダーのpadding縮小で見切れ防止 */
@media only screen and (max-width: 780px) {
  #header {
    padding: 0 12px !important;
  }
}

/* モバイル時ロゴ左寄せ */
@media only screen and (max-width: 780px) {
  .site-title a img {
    margin: 0 !important;
  }
  .site-title a {
    display: inline-block;
  }
  /* ハンバーガーボタンを確実に表示 */
  #soreiine-cat-btn {
    display: flex !important;
    flex-shrink: 0;
    margin-left: auto;
    margin-top: 0;
    padding: 8px 12px;
  }
}


/* ============================================================
   ヘッダー 常時表示（sticky）
   ============================================================ */
#header-sticky {
  position: sticky;
  top: 0;
  z-index: 9997;
}
/* stickThis JS による pointer-events: none を上書き */
#header-sticky.sticky-element-sticky {
  pointer-events: auto !important;
}
/* overflow-x: hidden があるとstickyが効かないためclipに変更 */
#wrapper {
  overflow-x: clip !important;
}

/* ============================================================
   TOPページ モバイル：左右上下5%余白
   ============================================================ */
@media only screen and (max-width: 780px) {
  .home .content,
  .archive .content {
    padding: 5% !important;
  }
  /* masonryの負マージンをリセット */
  #masonry {
    margin: 0 !important;
  }
}

/* ============================================================
   詳細ページ モバイル：左右上下5%余白
   ============================================================ */
@media only screen and (max-width: 780px) {
  .single .content > article {
    padding: 0 !important;
  }
  .single .content {
    padding: 5% !important;
  }
  .post-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
  }
  .entry-content {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }
  .entry-footer {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }
  .entry > *:not(.alignfull) {
    max-width: 100% !important;
  }
  .entry-header h1.entry-title {
    font-size: 20px;
    padding: 0 16px;
  }
  .entry-header .entry-meta {
    padding: 0 16px;
  }
}

/* 詳細ページ：タイトル・カテゴリの幅を画像幅に合わせる（モバイル） */
@media only screen and (max-width: 780px) {
  .entry-header,
  .entry-footer {
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
  .entry-header h1.entry-title {
    padding: 0 !important;
    margin-right: 0 !important;
  }
  .entry-header .entry-meta {
    padding: 0 !important;
  }
}

/* 投稿者名・著者ボックス・記事下CTAを非表示 */
.entry-author,
.author-bio,
.soreiine-article-cta {
  display: none !important;
}

/* スクロールフェードインアニメーション無効化 */
.masonry-item.soreiine-animate {
  animation: none !important;
}

/* 詳細ページ PC：フル幅 */
.single .content > article {
  padding: 0;
}
.post-wrapper {
  max-width: 100%;
  border-radius: 0;
  box-shadow: none;
}

/* ============================================================
   詳細ページ タイトルエリア（2カラムより上・全幅）
   ============================================================ */
.single .entry-header-top {
  padding: 32px 0 24px;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 0;
}
.single .entry-header-top .entry-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 12px;
  color: #1a1a2e;
}
.single .entry-header-top .entry-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
  color: #888;
}
.single .entry-category a {
  display: inline-block;
  background: #efefef;
  color: #555;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 20px;
  padding: 3px 12px;
  transition: background 0.22s ease, color 0.22s ease;
  text-decoration: none;
}
.single .entry-category a:hover,
.single .entry-category a:focus {
  background: #111;
  color: #fff;
}
@media only screen and (max-width: 780px) {
  .single .entry-header-top {
    padding: 20px 0 16px;
  }
  .single .entry-header-top .entry-title {
    font-size: 20px;
  }
}

/* ============================================================
   詳細ページ PC：左スクショ・右コンテンツ 2カラム
   ============================================================ */
.single .post-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.post-col-left {
  width: 50%;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow: hidden;
}
.post-col-left .entry-media {
  margin-bottom: 0;
}
.post-col-left .entry-media img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  display: block;
}
.post-col-right {
  width: 50%;
  overflow-y: auto;
  padding: 24px 48px 40px;
  box-sizing: border-box;
  min-height: 100vh;
}
/* 右カラム内のentry-footer幅制限をリセット */
.post-col-right .entry-footer {
  max-width: 100%;
  padding: 0;
  margin: 0 0 24px;
}
.post-col-right .entry-content {
  padding: 0;
}
.post-col-right .entry > *:not(.alignfull) {
  max-width: 100%;
}

/* モバイルは1カラムに戻す */
@media only screen and (max-width: 780px) {
  .single .post-wrapper {
    flex-direction: column;
  }
  .post-col-left,
  .post-col-right {
    width: 100%;
    position: static;
    max-height: none;
    padding: 0;
  }
  .post-col-left .entry-media img {
    height: auto;
    object-fit: unset;
  }
}

/* ============================================================
   CTA ボタン共通スタイル
   ============================================================ */
.soreiine-cta-btn {
  display: inline-block;
  background: #0a1628;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 10px 22px;
  border-radius: 4px;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.soreiine-cta-btn:hover {
  background: #1a2f50;
  transform: translateY(-1px);
}

/* ヘッダーCTA */
#soreiine-header-cta {
  margin-right: 12px;
  font-size: 13px;
  padding: 8px 18px;
}

/* 記事末尾CTA */
.soreiine-article-cta {
  background: #f5f7fa;
  border-left: 4px solid #0a1628;
  border-radius: 8px;
  padding: 28px 32px;
  margin: 40px auto;
  max-width: 640px;
}
.soreiine-article-cta-label {
  font-size: 12px;
  font-weight: 700;
  color: #0a1628;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  opacity: 0.6;
}
.soreiine-article-cta-text {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 18px;
  line-height: 1.6;
}
.soreiine-article-cta-text strong {
  color: #2962ff;
}
.soreiine-article-cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.soreiine-cta-primary {
  background: #0a1628;
}

/* モバイル */
@media only screen and (max-width: 780px) {
  #soreiine-header-cta {
    font-size: 11px;
    padding: 6px 12px;
    margin-right: 8px;
  }
  .soreiine-article-cta {
    padding: 20px 16px;
    margin: 28px 0;
  }
  .soreiine-article-cta-buttons {
    flex-direction: column;
  }
  .soreiine-article-cta-buttons .soreiine-cta-btn {
    text-align: center;
  }
  .soreiine-inline-cta {
    padding: 20px 16px;
    margin: 16px 0 20px;
  }
  .soreiine-inline-cta-title { font-size: 16px; }
  .soreiine-inline-cta-buttons { flex-direction: column; }
  .soreiine-inline-cta-buttons .soreiine-cta-btn { text-align: center; }
}

/* 右カラムの browser-shot 画像を非表示 */
.post-col-right .browser-shot {
  display: none !important;
}

/* ============================================================
   「このようなサイトを作りたい方へ」インラインCTA
   ============================================================ */
.soreiine-inline-cta {
  background: linear-gradient(135deg, #f8f9fb 0%, #eef1f7 100%);
  border-radius: 12px;
  padding: 28px 24px;
  margin: 24px 0 28px;
  text-align: center;
}
.soreiine-inline-cta-title {
  font-size: 18px;
  font-weight: 700;
  color: #0a1628;
  margin: 0 0 10px;
  line-height: 1.4;
}
.soreiine-inline-cta-text {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  margin: 0 0 18px;
}
.soreiine-inline-cta-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* アウトラインボタン */
.soreiine-cta-outline {
  background: transparent !important;
  color: #0a1628 !important;
  border: 2px solid #0a1628;
}
.soreiine-cta-outline:hover {
  background: #0a1628 !important;
  color: #fff !important;
}

/* セカンダリボタン */
.soreiine-cta-secondary {
  background: #fff !important;
  color: #0a1628 !important;
  border: 2px solid #d0d5dd;
}
.soreiine-cta-secondary:hover {
  background: #f5f7fa !important;
  border-color: #0a1628;
}

/* ============================================================
   AdSense 広告コンテナ
   ============================================================ */

/* 共通ラッパー */
.soreiine-ad-wrap {
  overflow: hidden;
  text-align: center;
}

/* 一覧ページ インフィード広告（masonryカードと同幅） */
.soreiine-ad-item .soreiine-ad-wrap {
  background: #f5f5f5;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

/* 記事詳細ページ 広告エリア */
.soreiine-ad-article {
  margin: 40px auto;
  max-width: 728px;
}
.soreiine-ad-article .soreiine-ad-wrap {
  min-height: 90px;
}

/* モバイル */
@media only screen and (max-width: 780px) {
  .soreiine-ad-article {
    margin: 24px auto;
  }
  .soreiine-ad-item .soreiine-ad-wrap {
    min-height: 200px;
  }
}

/* ============================================================
   ポップアップCTA
   ============================================================ */
.soreiine-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}
.soreiine-popup {
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: soreiinePopupIn 0.3s ease;
}
@keyframes soreiinePopupIn {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.soreiine-popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.2s;
}
.soreiine-popup-close:hover { color: #333; }
.soreiine-popup-title {
  font-size: 20px;
  font-weight: 700;
  color: #0a1628;
  margin: 0 0 12px;
  line-height: 1.5;
}
.soreiine-popup-text {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin: 0 0 24px;
}
.soreiine-popup-text strong { color: #2962ff; }
.soreiine-popup-btn {
  display: inline-block;
  background: #2962ff;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(41, 98, 255, 0.3);
}
.soreiine-popup-btn:hover {
  background: #1e50d9;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(41, 98, 255, 0.4);
}
.soreiine-popup-note {
  font-size: 12px;
  color: #999;
  margin: 12px 0 0;
}
@media only screen and (max-width: 780px) {
  .soreiine-popup {
    padding: 32px 24px;
    max-width: 340px;
  }
  .soreiine-popup-title { font-size: 18px; }
  .soreiine-popup-btn { padding: 12px 28px; font-size: 14px; }
}

/* ============================================================
   ランディングページ (page-whitepaper)
   ============================================================ */

/* ホワイトペーパーLP: 親テーマのコンテナ余白を消す */
.page-id-841 #page,
.page-id-841 .container-inner,
.page-id-841 .main,
.page-id-841 .main-inner,
.page-id-987 #page,
.page-id-987 .container-inner,
.page-id-987 .main,
.page-id-987 .main-inner,
.page-id-989 #page,
.page-id-989 .container-inner,
.page-id-989 .main,
.page-id-989 .main-inner {
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  border: none !important;
}
.page-id-841 .sidebar.s2,
.page-id-987 .sidebar.s2,
.page-id-989 .sidebar.s2 {
  display: none !important;
}

.lp-wrap {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
  overflow-x: hidden;
}
.lp-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Hero ---- */
.lp-hero {
  background: linear-gradient(160deg, #0a1628 0%, #132040 50%, #1a2f55 100%);
  color: #fff;
  text-align: center;
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
}
.lp-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(41,98,255,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.lp-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(41,98,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.lp-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}
.lp-hero-label {
  display: inline-block;
  background: rgba(41, 98, 255, 0.2);
  color: #8bb4ff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 7px 20px;
  border-radius: 20px;
  border: 1px solid rgba(41, 98, 255, 0.3);
  margin: 0 0 28px;
}
.lp-hero-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 20px;
  letter-spacing: 0.02em;
  color: #fff !important;
}
.lp-hero-sub {
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255,255,255,0.7) !important;
  margin: 0 0 36px;
}
.lp-hero-sub strong {
  color: #8bb4ff;
}
.lp-hero-cta {
  display: inline-block;
  background: #2962ff;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 48px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 20px rgba(41, 98, 255, 0.35);
}
.lp-hero-cta:hover {
  background: #1e50d9;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(41, 98, 255, 0.45);
}

/* ---- Trust Bar ---- */
.lp-trust-bar {
  background: #f0f2f5;
  padding: 16px 24px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lp-trust-bar span {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  background: #fff;
  padding: 6px 14px;
  border-radius: 16px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* ---- Benefits ---- */
.lp-benefits {
  padding: 72px 24px 56px;
  background: #fff;
}
.lp-section-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  text-align: center;
  margin: 0 0 40px;
  line-height: 1.4;
}
.lp-section-title--white {
  color: #fff;
}
.lp-benefits-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.lp-benefit-card {
  background: #f8f9fb;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.lp-benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.lp-benefit-num {
  font-size: 32px;
  font-weight: 700;
  color: #2962ff;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.lp-benefit-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 10px;
  line-height: 1.4;
}
.lp-benefit-card p {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
  margin: 0;
}

/* ---- Preview ---- */
.lp-preview {
  background: #f8f9fb;
  padding: 72px 24px;
}
.lp-phase-list {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lp-phase-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  border: 1px solid #eee;
  transition: border-color 0.2s;
}
.lp-phase-item:hover {
  border-color: #2962ff;
}
.lp-phase-badge {
  flex-shrink: 0;
  background: #0a1628;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.lp-phase-item strong {
  font-size: 15px;
  color: #1a1a2e;
  display: block;
  margin-bottom: 4px;
}
.lp-phase-item p {
  font-size: 13px;
  color: #888;
  margin: 0;
  line-height: 1.6;
}

/* ---- Form Section ---- */
.lp-form-section {
  background: linear-gradient(160deg, #0a1628 0%, #132040 100%);
  padding: 72px 24px 80px;
  text-align: center;
}
.lp-form-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  margin: -20px 0 36px;
}
.lp-form-card {
  max-width: 440px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.lp-form {
  text-align: left;
}
.lp-form-group {
  margin-bottom: 20px;
}
.lp-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}
.lp-required {
  color: #e53935;
  margin-left: 2px;
}
.lp-optional {
  font-weight: 400;
  font-size: 12px;
  color: #999;
  margin-left: 4px;
}
.lp-form-group input[type="text"],
.lp-form-group input[type="email"] {
  width: 100%;
  padding: 13px 16px;
  font-size: 15px;
  font-family: 'Noto Sans JP', sans-serif;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}
.lp-form-group input:focus {
  outline: none;
  border-color: #2962ff;
  background: #fff;
}
.lp-form-group--checkbox { margin: -4px 0 12px; }
.lp-checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #555; cursor: pointer; }
.lp-checkbox-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: #0a1628; cursor: pointer; flex-shrink: 0; }
.lp-form-error {
  color: #e53935;
  font-size: 13px;
  min-height: 18px;
  margin: 0 0 8px;
}
.lp-submit-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: #2962ff;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 16px rgba(41, 98, 255, 0.3);
}
.lp-submit-btn:hover {
  background: #1e50d9;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(41, 98, 255, 0.4);
}
.lp-submit-btn:disabled {
  background: #bbb;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.lp-form-note {
  font-size: 12px;
  color: #aaa;
  text-align: center;
  margin: 14px 0 0;
}

/* ---- Thank You ---- */
.lp-thankyou {
  padding: 100px 24px;
  text-align: center;
  background: #fff;
}
.lp-thankyou-inner {
  max-width: 480px;
  margin: 0 auto;
}
.lp-thankyou-icon {
  width: 64px;
  height: 64px;
  background: #4caf50;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  margin: 0 auto 24px;
  box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
}
.lp-thankyou-title {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 12px;
}
.lp-thankyou-text {
  font-size: 15px;
  color: #555;
  margin: 0 0 28px;
}
.lp-download-btn {
  display: inline-block;
  background: #2962ff;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 48px;
  border-radius: 10px;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 16px rgba(41, 98, 255, 0.3);
}
.lp-download-btn:hover {
  background: #1e50d9;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(41, 98, 255, 0.4);
}
.lp-thankyou-sub {
  font-size: 14px;
  color: #888;
  margin: 32px 0 0;
  line-height: 1.8;
}
.lp-thankyou-sub a {
  color: #2962ff;
  font-weight: 600;
}

/* ---- LP レスポンシブ ---- */
@media only screen and (max-width: 780px) {
  .lp-hero {
    padding: 64px 20px 56px;
  }
  .lp-hero-title {
    font-size: 26px;
  }
  .lp-hero-sub {
    font-size: 14px;
  }
  .lp-hero-cta {
    padding: 14px 32px;
    font-size: 15px;
  }
  .lp-benefits {
    padding: 48px 16px 36px;
  }
  .lp-benefits-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .lp-benefit-card {
    padding: 24px 20px;
  }
  .lp-section-title {
    font-size: 20px;
    margin-bottom: 28px;
  }
  .lp-preview {
    padding: 48px 16px;
  }
  .lp-phase-item {
    padding: 16px;
    gap: 12px;
  }
  .lp-form-section {
    padding: 48px 16px 56px;
  }
  .lp-form-card {
    padding: 28px 20px;
  }
  .lp-thankyou {
    padding: 64px 16px;
  }
  .lp-trust-bar {
    gap: 6px;
    padding: 12px 16px;
  }
  .lp-trust-bar span {
    font-size: 11px;
    padding: 5px 10px;
  }
}

/* ========================================
   Magazine — Archive (Landing Page)
   ======================================== */

.mag-hero {
  text-align: center;
  padding: 64px 24px 48px;
  background: linear-gradient(135deg, #0a1628 0%, #1a2a44 100%);
  color: #fff;
}
.mag-hero-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: .04em;
  margin: 0 0 12px;
  color: #fff;
}
.mag-hero-desc {
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

/* カテゴリータブ */
.mag-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 28px 24px 8px;
  max-width: 900px;
  margin: 0 auto;
}
.mag-tab {
  display: inline-block;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  background: #f5f5f5;
  border-radius: 20px;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.mag-tab:hover {
  background: #e0e0e0;
  color: #222;
}
.mag-tab--active {
  background: #0a1628;
  color: #fff;
}
.mag-tab--active:hover {
  background: #1a2a44;
  color: #fff;
}

/* 記事カードグリッド */
.mag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1080px;
  margin: 32px auto 0;
  padding: 0 24px;
}
.mag-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}
.mag-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,.10);
}
.mag-card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f0f0f0;
}
.mag-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mag-card-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a1628, #1a2a44);
  color: rgba(255,255,255,.2);
  font-size: 48px;
  font-weight: 700;
}
.mag-card-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.mag-card-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #0a1628;
  background: #e8ecf2;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
  align-self: flex-start;
}
.mag-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 8px;
  color: #1a1a1a;
}
.mag-card-excerpt {
  font-size: 13px;
  color: #777;
  line-height: 1.6;
  margin: 0 0 12px;
  flex: 1;
}
.mag-card-date {
  font-size: 12px;
  color: #aaa;
}

/* ページネーション */
.mag-pagination {
  text-align: center;
  padding: 48px 24px 16px;
}
.mag-pagination .page-numbers {
  list-style: none;
  display: inline-flex;
  gap: 6px;
  padding: 0;
  margin: 0;
}
.mag-pagination .page-numbers li {
  display: inline;
}
.mag-pagination .page-numbers a,
.mag-pagination .page-numbers span {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  color: #555;
  background: #f5f5f5;
  transition: background .2s;
}
.mag-pagination .page-numbers a:hover {
  background: #e0e0e0;
}
.mag-pagination .page-numbers .current {
  background: #0a1628;
  color: #fff;
}

/* 空メッセージ */
.mag-empty {
  text-align: center;
  padding: 80px 24px;
  color: #999;
  font-size: 15px;
}

/* Archive CTA */
.mag-archive-cta {
  text-align: center;
  padding: 48px 24px 64px;
  max-width: 600px;
  margin: 0 auto;
}
.mag-archive-cta-text {
  font-size: 15px;
  color: #444;
  margin: 0 0 20px;
  line-height: 1.7;
}
.mag-archive-cta-buttons {
  display: flex;
  justify-content: center;
}

/* ========================================
   Magazine — Single Article
   ======================================== */

.mag-article {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* パンくず */
.mag-breadcrumb {
  font-size: 12px;
  color: #999;
  padding: 20px 0 24px;
  line-height: 1.6;
}
.mag-breadcrumb a {
  color: #777;
  text-decoration: none;
}
.mag-breadcrumb a:hover {
  color: #0a1628;
  text-decoration: underline;
}
.mag-breadcrumb-sep {
  margin: 0 6px;
  color: #ccc;
}
.mag-breadcrumb-current {
  color: #444;
}

/* 記事ヘッダー */
.mag-header {
  margin-bottom: 32px;
}
.mag-category-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #0a1628;
  padding: 4px 14px;
  border-radius: 3px;
  margin-bottom: 12px;
}
.mag-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 12px;
  color: #1a1a1a;
}
.mag-meta {
  font-size: 13px;
  color: #999;
}
.mag-updated {
  color: #bbb;
}

/* 目次 */
.mag-toc {
  background: #f8f9fa;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 36px;
}
.mag-toc:empty {
  display: none;
}
.mag-toc-label {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #333;
}
.mag-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mag-toc-list li {
  margin: 0;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}
.mag-toc-list li:last-child {
  border-bottom: none;
}
.mag-toc-list a {
  color: #444;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
}
.mag-toc-list a:hover {
  color: #0a1628;
}
.mag-toc-h3 {
  padding-left: 20px !important;
}
.mag-toc-h3 a {
  font-size: 13px;
  color: #777;
}

/* 記事本文 */
.mag-body h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 48px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0a1628;
  color: #1a1a1a;
}
.mag-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 36px 0 12px;
  color: #333;
}
.mag-body p {
  font-size: 15px;
  line-height: 1.85;
  color: #444;
  margin: 0 0 20px;
}
.mag-body ul,
.mag-body ol {
  margin: 0 0 20px;
  padding-left: 24px;
}
.mag-body li {
  font-size: 15px;
  line-height: 1.75;
  color: #444;
  margin-bottom: 6px;
}
.mag-body blockquote {
  border-left: 4px solid #0a1628;
  margin: 24px 0;
  padding: 16px 20px;
  background: #f8f9fa;
  color: #555;
  font-size: 14px;
  line-height: 1.7;
}
.mag-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.mag-body th,
.mag-body td {
  padding: 10px 14px;
  border: 1px solid #ddd;
  text-align: left;
}
.mag-body th {
  background: #f5f5f5;
  font-weight: 700;
  color: #333;
}
.mag-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}

/* 記事フッターCTA */
.mag-footer-cta {
  background: linear-gradient(135deg, #0a1628 0%, #1a2a44 100%);
  color: #fff;
  text-align: center;
  padding: 48px 32px;
  border-radius: 12px;
  margin: 56px 0;
}
.mag-footer-cta-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #8bb4e0;
  margin: 0 0 12px;
}
.mag-footer-cta-text {
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 28px;
  color: #fff;
}
.mag-footer-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.mag-cta-btn-primary {
  display: inline-block;
  background: #fff;
  color: #0a1628 !important;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background .2s, transform .15s;
  letter-spacing: .03em;
}
.mag-cta-btn-primary:hover {
  background: #e8ecf1;
  transform: translateY(-1px);
}
.mag-cta-btn-secondary {
  display: inline-block;
  background: transparent;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.5);
  text-decoration: none !important;
  transition: background .2s, border-color .2s;
  letter-spacing: .03em;
}
.mag-cta-btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

/* 関連記事 */
.mag-related {
  margin-top: 56px;
}
.mag-related-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 20px;
  color: #1a1a1a;
}
.mag-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mag-related-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .15s;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.mag-related-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}
.mag-related-card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f0f2f5;
}
.mag-related-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mag-related-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.mag-related-card-cat {
  font-size: 11px;
  font-weight: 700;
  color: #0a1628;
  margin-bottom: 6px;
}
.mag-related-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: #333;
  margin-bottom: 8px;
  flex: 1;
}
.mag-related-card-date {
  font-size: 12px;
  color: #aaa;
}

/* ========================================
   Magazine — Responsive
   ======================================== */

@media (max-width: 768px) {
  .mag-hero {
    padding: 48px 20px 36px;
  }
  .mag-hero-title {
    font-size: 26px;
  }
  .mag-hero-desc {
    font-size: 14px;
  }
  .mag-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 16px;
  }
  .mag-article {
    padding: 0 16px 48px;
  }
  .mag-title {
    font-size: 22px;
  }
  .mag-body h2 {
    font-size: 19px;
  }
  .mag-body h3 {
    font-size: 16px;
  }
  .mag-toc {
    padding: 20px;
  }
  .mag-footer-cta {
    padding: 32px 20px;
  }
  .mag-footer-cta-text {
    font-size: 14px;
  }
  .mag-footer-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .mag-cta-btn-primary,
  .mag-cta-btn-secondary {
    text-align: center;
    padding: 14px 20px;
    font-size: 14px;
  }
  .mag-related-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .mag-tabs {
    padding: 20px 16px 8px;
    gap: 6px;
  }
  .mag-tab {
    padding: 6px 14px;
    font-size: 12px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .mag-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mag-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   Footer Navigation
   ============================================================ */
.soreiine-footer-nav {
  background: #0a1628;
  padding: 40px 0 32px;
  overflow-x: auto;
}
.soreiine-footer-nav .pad {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
.soreiine-footer-menu-wrap ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* 親メニュー: 横並び */
.soreiine-footer-menu-wrap > nav > ul,
.soreiine-footer-menu-wrap > ul,
#footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
}
#footer-menu > li {
  flex: 0 0 auto;
  position: relative;
  padding: 0 24px 20px 0;
  max-width: 100%;
}
#footer-menu > li > a,
#footer-menu > li > span > a {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.03em;
  display: block;
  padding: 4px 0;
  border-bottom: 2px solid rgba(255,255,255,0.2);
  margin-bottom: 8px;
}
#footer-menu > li > a:hover,
#footer-menu > li > span > a:hover {
  color: #8bb4e0;
}
/* ドロップダウントグルボタン非表示 */
#footer-menu button {
  display: none !important;
}
/* 子メニュー: 常に表示 */
#footer-menu .sub-menu {
  display: flex !important;
  flex-wrap: wrap;
  position: static !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  margin: 0;
  max-height: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}
#footer-menu .sub-menu li {
  flex: 0 0 auto;
  margin: 0;
}
#footer-menu .sub-menu a {
  color: #fff;
  font-size: 12px;
  text-decoration: none;
  padding: 3px 12px 3px 0;
  display: block;
  white-space: nowrap;
}
#footer-menu .sub-menu a:hover {
  color: #fff;
}

/* レスポンシブ: モバイル */
@media (max-width: 768px) {
  .soreiine-footer-nav {
    padding: 28px 0 20px;
  }
  #footer-menu {
    flex-direction: column;
    gap: 0;
  }
  #footer-menu > li {
    padding: 0 0 16px;
  }
  #footer-menu .sub-menu {
    flex-wrap: wrap;
    gap: 0;
  }
}
