/* ============================================
   Japan Mobile Info — SaaS Cards Theme
   ブルー基調 / カード型 / アニメーション対応
   ============================================ */

:root {
  --color-primary: #1565d8;
  --color-primary-dark: #0d47a1;
  --color-navy: #0d1b3e;
  --color-accent: #e60012; /* ロゴのブランドレッドに合わせる */
  --color-bg: #f5f8fc;
  --color-surface: #ffffff;
  --color-text: #1c2534;
  --color-text-sub: #5a6b82;
  --color-border: #e3eaf3;
  --radius: 16px;
  --shadow-sm: 0 2px 8px rgba(13, 27, 62, 0.06);
  --shadow-md: 0 8px 24px rgba(13, 27, 62, 0.10);
  --shadow-lg: 0 16px 40px rgba(13, 27, 62, 0.14);
  --font-jp: "Noto Sans JP", sans-serif;
  --font-en: "Inter", sans-serif;
  --header-h: 68px;
}

/* ---------- リセット・ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { opacity: 0.85; }

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 2000;
  background: var(--color-navy);
  color: #fff;
  padding: 8px 16px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-title {
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.site-logo-img, .custom-logo {
  height: 48px;
  width: auto;
  display: block;
}
.global-nav { display: flex; align-items: center; gap: 24px; }
.nav-list {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-list a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-list a:hover {
  background: rgba(21, 101, 216, 0.08);
  color: var(--color-primary);
  opacity: 1;
}
.lang-switcher ul {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 0.82rem;
}
.lang-switcher a {
  padding: 4px 10px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-sub);
}
.lang-switcher .current-lang a {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ---------- Google翻訳ウィジェットの表示調整 ---------- */
/* 上部に挿入される翻訳バー・ツールチップ・ロゴ類を隠し、レイアウト崩れを防ぐ */
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
.skiptranslate iframe { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight {
  background: transparent !important;
  box-shadow: none !important;
}
font[style] { background: transparent !important; }

/* ハンバーガー */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 96px) 24px 110px;
  background: var(--color-navy);
  color: #fff;
  text-align: center;
}

/* 実写画像スライドショー（クロスフェード） */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s ease, transform 7s linear;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 27, 62, 0.82) 0%, rgba(18, 58, 125, 0.68) 55%, rgba(21, 101, 216, 0.55) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; }
.hero-title {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin: 0 0 20px;
}
.hero-accent {
  background: linear-gradient(transparent 62%, rgba(230, 0, 18, 0.6) 62%);
  color: #ffd9dc;
}
.hero-lead {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* 背景装飾（ふわふわ動く円） */
.hero-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.deco-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.14), transparent 70%);
  animation: float 9s ease-in-out infinite;
}
.deco-circle.c1 { width: 420px; height: 420px; top: -120px; left: -100px; }
.deco-circle.c2 { width: 300px; height: 300px; bottom: -80px; right: -60px; animation-delay: -3s; }
.deco-circle.c3 { width: 180px; height: 180px; top: 30%; right: 18%; animation-delay: -6s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-28px); }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn:hover { transform: translateY(-3px); opacity: 1; }
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(230, 0, 18, 0.4);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(230, 0, 18, 0.5); }
.btn-ghost {
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }

/* ---------- セクション共通 ---------- */
.section { padding: 90px 24px; }
.section.alt-bg { background: #fff; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 900;
  text-align: center;
  margin: 0 0 48px;
  position: relative;
  padding-bottom: 18px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 48px; height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}
.section-more { text-align: center; margin-top: 48px; }

/* ---------- カード共通（SaaS Cards の核） ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(21, 101, 216, 0.35);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* かんたんプラン診断 */
.sim-lead { text-align: center; color: var(--color-text-sub); margin: -28px 0 40px; }
.sim-box { padding: 40px 36px; }
.sim-box:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--color-border); }
.sim-q + .sim-q { margin-top: 36px; }
.sim-q-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sim-q-num {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}
.sim-opts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}
.sim-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 12px 14px;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.sim-opt:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.sim-opt.is-selected {
  border-color: var(--color-primary);
  background: rgba(21, 101, 216, 0.08);
  box-shadow: 0 0 0 2px rgba(21, 101, 216, 0.18);
}
.sim-emoji { font-size: 1.7rem; }
.sim-opt-label { font-weight: 700; font-size: 0.95rem; color: var(--color-text); }
.sim-opt-sub { font-size: 0.74rem; color: var(--color-text-sub); }

.sim-result { margin-top: 0; }
.sim-result.is-open {
  margin-top: 40px;
  padding-top: 36px;
  border-top: 2px dashed var(--color-border);
}
.sim-result-title {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 900;
  margin: 0 0 26px;
}
.sim-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.sim-plan-card {
  position: relative;
  padding: 34px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.sim-plan-card.is-top { border-color: var(--color-accent); border-width: 2px; }
.sim-medal {
  position: absolute;
  top: -16px; left: 16px;
  font-size: 1.7rem;
  filter: drop-shadow(0 2px 4px rgba(13, 27, 62, 0.2));
}
.sim-plan-title { margin: 0; font-size: 1.08rem; font-weight: 700; }
.sim-plan-specs { margin: 0; color: var(--color-text-sub); font-size: 0.85rem; }
.sim-plan-specs .price-num { font-size: 1.5rem; margin-right: 2px; }
.sim-reasons {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: var(--color-text);
}
.sim-reasons li { padding-left: 1.3em; position: relative; margin-bottom: 4px; }
.sim-reasons li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}
.sim-plan-link { margin-top: auto; padding: 10px 20px; font-size: 0.85rem; align-self: stretch; text-align: center; }
.sim-note { font-size: 0.74rem; color: var(--color-text-sub); text-align: center; margin: 24px 0 16px; }
.sim-reset {
  display: block;
  margin: 0 auto;
  border: 2px solid var(--color-border);
  background: #fff;
  color: var(--color-text-sub);
  cursor: pointer;
}
.sim-reset:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* キャリア別シミュレーター（docomo/au共用） */
.dsim-page {
  --dsim-brand: #cc0033;
  --dsim-brand-soft: rgba(204, 0, 51, 0.06);
  --dsim-brand-ring: rgba(204, 0, 51, 0.18);
}
.dsim-page--au {
  --dsim-brand: #eb5505;
  --dsim-brand-soft: rgba(235, 85, 5, 0.07);
  --dsim-brand-ring: rgba(235, 85, 5, 0.2);
}
.dsim-page--sb {
  --dsim-brand: #6b7d8f;
  --dsim-brand-soft: rgba(107, 125, 143, 0.08);
  --dsim-brand-ring: rgba(107, 125, 143, 0.22);
}
.dsim-page .section-inner { max-width: 1100px; margin: 0 auto; }
.dsim-brand { color: var(--dsim-brand); font-family: var(--font-en); }
.dsim-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}
.dsim-block { padding: 26px 24px; }
.dsim-block:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--color-border); }
.dsim-block + .dsim-block { margin-top: 18px; }
.dsim-block-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dsim-block .sim-q-num { background: var(--dsim-brand); }
.dsim-plan-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.dsim-plan-opt { align-items: flex-start; text-align: left; padding: 14px 16px; }
.dsim-plan-opt.is-selected {
  border-color: var(--dsim-brand);
  background: var(--dsim-brand-soft);
  box-shadow: 0 0 0 2px var(--dsim-brand-ring);
}
.dsim-select, .dsim-money input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}
.dsim-field { margin-bottom: 14px; }
.dsim-field:last-child { margin-bottom: 0; }
.dsim-field > label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; }
.dsim-check { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; cursor: pointer; }
.dsim-check input { width: 18px; height: 18px; accent-color: var(--dsim-brand); }
.dsim-money { display: flex; align-items: center; gap: 8px; }
.dsim-money span { color: var(--color-text-sub); font-size: 0.9rem; }
.dsim-hint { font-size: 0.76rem; color: var(--color-text-sub); margin: 10px 0 0; }

.dsim-result-wrap { position: sticky; top: calc(var(--header-h) + 16px); }
.dsim-result { padding: 28px 26px; border-top: 4px solid var(--dsim-brand); }
.dsim-result:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--color-border); border-top-color: var(--dsim-brand); }
.dsim-result-title { font-size: 1.15rem; font-weight: 900; margin: 0 0 18px; }
.dsim-rows { margin: 0; display: grid; grid-template-columns: 1fr auto; row-gap: 10px; font-size: 0.9rem; }
.dsim-rows dt { color: var(--color-text-sub); }
.dsim-rows dd { margin: 0; text-align: right; font-weight: 700; font-family: var(--font-en); }
.dsim-rows .is-minus { color: #1a8917; }
.dsim-rows .is-subtotal {
  border-top: 1px dashed var(--color-border);
  padding-top: 10px;
  color: var(--color-text);
  font-weight: 700;
}
.dsim-total {
  margin: 20px 0 0;
  padding: 16px;
  background: var(--dsim-brand-soft);
  border-radius: 12px;
  text-align: center;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}
.dsim-total-label { font-size: 0.85rem; font-weight: 700; }
.dsim-total-num { font-family: var(--font-en); font-size: 2.3rem; font-weight: 800; color: var(--dsim-brand); }
.dsim-total-unit { font-size: 0.85rem; color: var(--color-text-sub); }
.dsim-warning {
  margin: 14px 0 0;
  padding: 10px 14px;
  background: #fff7e6;
  border: 1px solid #f0d9a8;
  border-radius: 10px;
  font-size: 0.8rem;
}

@media (max-width: 1024px) {
  .dsim-grid { grid-template-columns: 1fr; }
  .dsim-result-wrap { position: static; }
}
@media (max-width: 480px) {
  .dsim-plan-opts { grid-template-columns: 1fr; }
}

/* キャリアから探す */
.carrier-group-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-sub);
  margin: 40px 0 18px;
  padding-left: 12px;
  border-left: 4px solid var(--color-primary);
}
.carrier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.carrier-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px 16px 22px;
  text-align: center;
  border-top: 4px solid var(--carrier-color, var(--color-primary));
}
.carrier-card:hover { opacity: 1; }
.carrier-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--carrier-color, var(--color-primary));
  color: #fff;
  font-weight: 900;
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}
.carrier-card:hover .carrier-mark { transform: scale(1.12); }
.carrier-name { font-weight: 700; color: var(--color-text); font-size: 0.98rem; }
.carrier-count { font-size: 0.76rem; color: var(--color-text-sub); }

/* キャリア別アーカイブのヘッダー */
.carrier-header .carrier-mark-lg {
  width: 76px; height: 76px;
  font-size: 2rem;
  margin: 0 auto 16px;
}
.carrier-archive .page-title { color: var(--carrier-color, var(--color-navy)); }
.carrier-archive .filter-chip.is-active {
  background: var(--carrier-color, var(--color-primary));
  border-color: var(--carrier-color, var(--color-primary));
}

/* プランカード */
.plan-card {
  position: relative;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-badge {
  position: absolute;
  top: -12px; right: 18px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.plan-badge.is-closed { background: #9aa5b1; color: #fff; }
.plan-carrier {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.08em;
}
.plan-title { margin: 0; font-size: 1.15rem; font-weight: 700; }
.plan-title a { color: var(--color-text); }
.plan-specs {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px dashed var(--color-border);
  border-bottom: 1px dashed var(--color-border);
}
.plan-price { margin: 0; }
.price-num {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}
.price-unit { font-size: 0.8rem; color: var(--color-text-sub); }
.plan-data {
  margin: 0;
  background: rgba(21, 101, 216, 0.08);
  color: var(--color-primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.plan-excerpt { margin: 0; font-size: 0.88rem; color: var(--color-text-sub); }
.card-link-cover { position: absolute; inset: 0; border-radius: var(--radius); }

/* 記事カード */
.post-card { overflow: hidden; display: flex; flex-direction: column; }
.post-card-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f0fb, #d4e4f7);
}
.post-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.06); }
.thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 2.6rem;
  opacity: 0.5;
}
.post-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.post-meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--color-text-sub);
  display: flex;
  align-items: center;
  gap: 10px;
}
.post-cat {
  background: rgba(21, 101, 216, 0.08);
  color: var(--color-primary-dark);
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 700;
}
.post-card-title { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.post-card-title a { color: var(--color-text); }
.post-card-excerpt { margin: 0; font-size: 0.86rem; color: var(--color-text-sub); }

/* 特徴カード */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card { padding: 36px 28px; text-align: center; }
.feature-icon { font-size: 2.4rem; display: inline-block; margin-bottom: 12px; }
.feature-card h3 { margin: 0 0 10px; font-size: 1.1rem; }
.feature-card p { margin: 0; font-size: 0.88rem; color: var(--color-text-sub); }

/* ---------- アーカイブ・個別ページ ---------- */
.archive-page, .single-page, .error-page { padding: calc(var(--header-h) + 48px) 24px 90px; }
.page-header { text-align: center; margin-bottom: 48px; }
.page-title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; margin: 0 0 12px; }
.page-lead { color: var(--color-text-sub); margin: 0; }

.breadcrumb {
  font-size: 0.8rem;
  color: var(--color-text-sub);
  margin-bottom: 28px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb .sep { color: var(--color-border); }

.filter-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-chip {
  padding: 8px 20px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-text-sub);
  font-size: 0.86rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.filter-chip:hover, .filter-chip.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  opacity: 1;
}

.single-inner { max-width: 820px; margin: 0 auto; }
.single-article {
  background: #fff;
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}
.entry-title { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.5; margin: 8px 0 0; }
.entry-thumb { margin: 28px 0; }
.entry-thumb img { border-radius: 12px; }
.entry-content { font-size: 1rem; }
.entry-content h2 {
  font-size: 1.35rem;
  border-left: 5px solid var(--color-primary);
  padding-left: 14px;
  margin: 48px 0 20px;
}
.entry-content h3 { font-size: 1.15rem; margin: 36px 0 16px; }
.entry-content img { border-radius: 12px; }
.entry-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 24px 0;
  font-size: 0.92rem;
}
.entry-content th, .entry-content td {
  border: 1px solid var(--color-border);
  padding: 10px 14px;
}
.entry-content th { background: rgba(21, 101, 216, 0.06); }

.plan-spec-box {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 24px 28px;
  margin-bottom: 28px;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  font-size: 0.88rem;
}
.post-nav-next { text-align: right; }

.tag-list a {
  display: inline-block;
  background: rgba(21, 101, 216, 0.08);
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  margin-right: 6px;
}

/* ページネーション */
.pagination { text-align: center; margin-top: 56px; }
.pagination .nav-links { display: inline-flex; gap: 8px; }
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px; height: 42px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-en);
  transition: all 0.2s ease;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  opacity: 1;
}

/* 404 */
.error-inner { text-align: center; padding-top: 40px; }
.error-code {
  font-family: var(--font-en);
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 800;
  margin: 0;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 検索フォーム */
.search-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 28px auto 0;
}
.search-form input[type="search"] {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.92rem;
}
.search-form input[type="submit"], .search-form button {
  padding: 12px 26px;
  border: none;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- フッター ---------- */
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 40px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-logo { font-size: 1.2rem; font-weight: 900; color: #fff; margin: 0 0 8px; }
.footer-desc { font-size: 0.85rem; margin: 0; }
.footer-nav-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav-list a { color: rgba(255, 255, 255, 0.8); font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  padding: 20px;
}
.copyright { margin: 0; font-size: 0.78rem; color: rgba(255, 255, 255, 0.5); }

/* トップへ戻る */
.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 48px; height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s ease;
  z-index: 900;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--color-primary-dark); }

/* ---------- アニメーション（IntersectionObserver連動） ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
/* stagger内のカードは順番に遅延 */
.stagger .fade-in:nth-child(2) { transition-delay: 0.1s; }
.stagger .fade-in:nth-child(3) { transition-delay: 0.2s; }
.stagger .fade-in:nth-child(4) { transition-delay: 0.3s; }
.stagger .fade-in:nth-child(5) { transition-delay: 0.4s; }
.stagger .fade-in:nth-child(6) { transition-delay: 0.5s; }

/* アニメーション軽減設定の尊重（アクセシビリティ） */
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  .deco-circle { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1024px) {
  .card-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .carrier-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 70px 20px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .global-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 24px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  .global-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { padding: 14px 8px; border-bottom: 1px solid var(--color-border); border-radius: 0; }
  .lang-switcher { margin-top: 16px; }

  .hero { padding: calc(var(--header-h) + 64px) 20px 80px; }
  .card-grid, .feature-grid { grid-template-columns: 1fr; }
  .carrier-grid { grid-template-columns: repeat(2, 1fr); }
  .sim-box { padding: 26px 18px; }
  .sim-opts { grid-template-columns: repeat(2, 1fr); }
  .sim-result-grid { grid-template-columns: 1fr; gap: 28px; }
  .single-article { padding: 28px 22px; }
  .footer-inner { flex-direction: column; gap: 28px; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }
  .plan-specs { flex-wrap: wrap; }
}

/* ============================================
   2026-07 リニューアル（ライト基調・比較メディア型）
   ここから下は新デザインの上書きスタイル
   ============================================ */

:root {
  --color-navy: #16305e;
  --color-primary: #2563eb;
  --color-heading: #16305e;
}

/* セクションタイトル：グラデ下線を廃止しネイビーのシンプルな見出しに */
.section-title { color: var(--color-heading); padding-bottom: 0; }
.section-title::after { display: none; }
.section { padding: 72px 24px; }

/* 見出し行（タイトル＋「もっと見る」ボタン） */
.section-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  position: relative;
  margin-bottom: 40px;
}
.section-head .section-title { margin: 0; }
.section-head .btn-small { position: absolute; right: 0; }

/* ボタン */
.btn-primary {
  background: var(--color-navy);
  color: #fff;
  box-shadow: 0 6px 18px rgba(22, 48, 94, 0.25);
}
.btn-primary:hover { background: #1d3d78; box-shadow: 0 10px 24px rgba(22, 48, 94, 0.3); }
.btn-white {
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-navy);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-small { padding: 9px 20px; font-size: 0.82rem; }

/* ---------- ヒーロー（ライト基調＋実写ビジュアル） ---------- */
.hero-light {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 76px) 24px 84px;
  background: linear-gradient(160deg, #eef3fb 0%, #e3ecf8 55%, #dbe7f6 100%);
  text-align: center;
}
.hero-light-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 実写の上に明るいベールを重ね、ネイビー文字の可読性を確保 */
.hero-light-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(238, 243, 251, 0.94) 0%, rgba(227, 236, 248, 0.86) 55%, rgba(219, 231, 246, 0.72) 100%);
}
.hero-light-inner { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; }
.hero-light .hero-title {
  color: var(--color-navy);
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 900;
  line-height: 1.5;
  margin: 0 0 18px;
}
.hero-light .hero-lead {
  color: #47546b;
  font-size: clamp(0.92rem, 1.5vw, 1.05rem);
  margin: 0 auto 32px;
  max-width: 640px;
}

/* アフィリエイト表記バー */
.notice-bar {
  max-width: 980px;
  margin: -30px auto 0;
  position: relative;
  z-index: 5;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 20px;
}
.notice-icon { color: var(--color-primary); font-size: 1.1rem; line-height: 1.6; }
.notice-bar p { margin: 0; font-size: 0.76rem; color: var(--color-text-sub); }

/* ---------- 診断（ライトなチップに） ---------- */
.sim-lead { margin: -24px 0 36px; }
.sim-opt { background: #fff; border-color: #dde5f0; border-radius: 12px; }
.sim-opt:hover { background: #f3f7fd; }
.sim-opt.is-selected { background: rgba(37, 99, 235, 0.07); border-color: var(--color-primary); }
.sim-opts-5 { grid-template-columns: repeat(5, 1fr); }
.sim-opts-3 { grid-template-columns: repeat(3, 1fr); }
.sim-emoji { font-size: 1.3rem; }
.sim-q-num { background: var(--color-navy); }
.sim-start-wrap { text-align: center; margin: 34px 0 0; }
.sim-plan-card.is-top { border-color: var(--color-primary); }

/* ---------- キャリアカード（パステル・左寄せ） ---------- */
.carrier-group-title { border-left-color: var(--color-primary); }
.carrier-grid { grid-template-columns: repeat(3, 1fr); }
.carrier-card {
  align-items: flex-start;
  text-align: left;
  padding: 22px 24px;
  border-top: none;
  border: 1px solid color-mix(in srgb, var(--carrier-color, #2563eb) 22%, #e3eaf3);
  background: color-mix(in srgb, var(--carrier-color, #2563eb) 6%, #ffffff);
  gap: 6px;
}
.carrier-card .carrier-mark, .carrier-card .carrier-count { display: none; }
.carrier-card .carrier-name {
  color: var(--carrier-color, var(--color-primary));
  font-size: 1.1rem;
  font-weight: 800;
}
.carrier-card .carrier-name small { color: var(--color-text-sub); font-size: 0.72rem; font-weight: 500; }
.carrier-tagline { font-size: 0.82rem; color: var(--color-text); }
.carrier-more { font-size: 0.76rem; color: var(--color-text-sub); margin-top: 4px; }
.carrier-card:hover .carrier-more { color: var(--carrier-color, var(--color-primary)); }

/* ---------- 注目のスマホプラン ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.featured-card {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.featured-head { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.featured-carrier {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
}
.featured-badge {
  background: var(--color-accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.featured-title { margin: 0; font-size: 1.02rem; font-weight: 700; color: var(--color-heading); }
.featured-price { margin: 0; }
.featured-price .price-num { color: var(--color-primary); font-size: 1.9rem; }
.featured-price .price-unit { font-size: 0.76rem; }
.featured-features {
  margin: 0;
  padding: 12px 0;
  list-style: none;
  border-top: 1px dashed var(--color-border);
  font-size: 0.8rem;
  color: var(--color-text-sub);
}
.featured-features li { padding-left: 1.2em; position: relative; margin-bottom: 5px; }
.featured-features li::before { content: "◆"; position: absolute; left: 0; color: var(--color-primary); font-size: 0.6rem; top: 0.35em; }
.featured-link { margin-top: auto; text-align: center; align-self: stretch; padding: 10px 18px; }

/* 記事4カラム */
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-4 .post-card-body { padding: 16px 18px 20px; }
.grid-4 .post-card-title { font-size: 0.95rem; }
.grid-4 .post-card-excerpt { display: none; }

/* ---------- このサイトでできること ---------- */
.alt-bg2 { background: #eef2f8; }
.features-section .feature-card {
  background: transparent;
  border: none;
  box-shadow: none;
  text-align: center;
}
.features-section .feature-card:hover { transform: none; box-shadow: none; }
.features-section .feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-navy);
  font-size: 1.5rem;
}
.features-section h3 { color: var(--color-heading); font-size: 1.02rem; }

/* ---------- フッター（4カラム） ---------- */
.site-footer { background: var(--color-navy); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
  gap: 36px;
  padding: 56px 24px 40px;
}
.footer-col-title {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.footer-links { list-style: none; margin: 0; padding: 0; display: block; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: rgba(255, 255, 255, 0.75); font-size: 0.85rem; }
.footer-links a:hover { color: #fff; opacity: 1; }
.footer-social { display: flex; gap: 14px; margin: 0; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.05rem;
}
.footer-social a:hover { background: rgba(255, 255, 255, 0.22); opacity: 1; }

/* ---------- レスポンシブ（リニューアル分） ---------- */
@media (max-width: 1024px) {
  .sim-opts-5 { grid-template-columns: repeat(3, 1fr); }
  .carrier-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .sim-opts-5, .sim-opts-3 { grid-template-columns: repeat(2, 1fr); }
  .carrier-grid { grid-template-columns: 1fr; }
  .featured-grid, .grid-4 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .section-head { flex-direction: column; }
  .section-head .btn-small { position: static; }
  .notice-bar { margin: -20px 16px 0; }
}
