/* ============================================================
   Minacle Design Office / Service Page CSS (Clean)
   固定ページ個別CSS用
   最終更新: 2026-05-15
   ============================================================ */

/* ------------------------------------------------------------
   01. ヒーロー
   ------------------------------------------------------------ */
.md-page.ag-custom-page .ag-service-hero {
  position: relative;
  padding: clamp(32px, 5vw, 64px) 24px clamp(72px, 10vw, 120px);
  background: linear-gradient(180deg, var(--md-color-primary-50) 0%, #ffffff 100%);
  overflow: hidden;
}
.md-page.ag-custom-page .ag-service-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.md-page.ag-custom-page .ag-service-hero h1 {
  margin: 0 0 20px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: 0.06em;
  color: var(--md-color-primary-400);
}
.md-page.ag-custom-page .ag-service-hero-sub {
  margin: 0 0 36px;
  color: var(--md-color-text-soft);
  font-size: 1rem;
  line-height: 2;
}
.md-page.ag-custom-page .ag-service-hero-scope {
  margin: 18px 0 0;
  text-align: center;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--md-color-primary-400);
  line-height: 2;
  letter-spacing: 0.06em;
}
.md-page.ag-custom-page .ag-service-hero-img {
  margin: 36px auto;
  aspect-ratio: 16 / 9;
  max-width: 640px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--md-color-neutral-0);
  box-shadow: var(--md-shadow-card);
}
.md-page.ag-custom-page .ag-service-hero-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.md-page.ag-custom-page .ag-cta-note {
  margin-top: 18px;
  color: var(--md-color-text-soft);
  font-size: 0.85rem;
  line-height: 1.85;
}
.md-page.ag-custom-page .ag-anchor-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--md-color-primary-400);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid var(--md-color-primary-200);
  padding-bottom: 2px;
  transition: opacity 0.25s ease;
}
.md-page.ag-custom-page .ag-anchor-link:hover { opacity: 0.7; }

/* ------------------------------------------------------------
   共通パーツ：スクリプト文字・セクションヘッド・ボタン
   ------------------------------------------------------------ */

.md-page.ag-custom-page .ag-section-head {
  text-align: center;
  margin-bottom: 44px;
}

/* ボタン */
.md-page.ag-custom-page .ag-btn-outline {
  border: 1px solid var(--md-color-primary-400) !important;
  color: var(--md-color-primary-400) !important;
  background: var(--md-color-neutral-0) !important;
  font-weight: 600;
}
.md-page.ag-custom-page .ag-btn-outline:hover {
  background: var(--md-color-primary-400) !important;
  color: var(--md-color-neutral-0) !important;
}

/* 1カラム小見出し（アイコン＋右伸び線） */
.md-page.ag-custom-page .ag-plan-sub-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--md-color-primary-400);
  letter-spacing: 0.06em;
}
.md-page.ag-custom-page .ag-plan-sub-heading svg {
  width: 18px; height: 18px;
  color: var(--md-color-primary-400);
  flex-shrink: 0;
}
.md-page.ag-custom-page .ag-plan-sub-heading .ag-heading-line {
  flex: 1;
  height: 4px;
  background-image: radial-gradient(circle, #c8d0d4 2px, transparent 2px);
  background-size: 10px 4px;
  background-repeat: repeat-x;
  background-position: left center;
  border: none;
}

.md-page.ag-custom-page .ag-bullet-list li .ag-bullet-label {
  font-weight: 700;
  color: var(--md-color-text);
}

/* ------------------------------------------------------------
   00b. 詳細ページ（menu/terms/option/aftercare）共通パーツ
   （表示崩れ調査の続き：service.css から丸ごと欠落していたため
   backup/before_static_migration_20260811/preview-*.html より復元）
   ------------------------------------------------------------ */
.md-page.ag-custom-page .ag-page-topbar {
  padding: 16px 24px;
  text-align: left;
}
.md-page.ag-custom-page .ag-page-topbar + section {
  padding-top: clamp(24px, 4vw, 40px);
}
.md-page.ag-custom-page .ag-breadcrumb {
  max-width: var(--md-content-width);
  margin: 0 auto;
  font-size: 0.85rem;
  color: var(--md-color-text-soft);
}
.md-page.ag-custom-page .ag-breadcrumb a {
  color: var(--md-color-primary-400);
  text-decoration: none;
}
.md-page.ag-custom-page .ag-breadcrumb a:hover {
  text-decoration: underline;
}
.md-page.ag-custom-page .ag-breadcrumb-sep {
  margin: 0 6px;
  color: var(--md-color-primary-200);
}
.md-page.ag-custom-page .ag-breadcrumb-current {
  color: var(--md-color-text-soft);
}
.md-page.ag-custom-page .ag-page-banner {
  margin: 0 auto 40px;
  max-width: var(--md-content-width);
  aspect-ratio: 2 / 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--md-shadow-card);
}
.md-page.ag-custom-page .ag-page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.md-page.ag-custom-page .ag-page-banner--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--md-color-primary-50);
  color: var(--md-color-text-soft);
  font-size: 0.9rem;
  text-align: center;
  padding: 24px;
  line-height: 1.8;
}
.md-page.ag-custom-page .ag-info-card {
  padding: clamp(24px, 4vw, 36px);
  background: var(--md-color-neutral-0);
  border: 1px solid var(--md-color-border);
  border-radius: 16px;
  box-shadow: var(--md-shadow-card);
}
.md-page.ag-custom-page .ag-info-card + .ag-info-card {
  margin-top: 24px;
}
.md-page.ag-custom-page .ag-service-terms-note {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--md-color-border);
  font-size: 0.92rem;
  color: var(--md-color-text-soft);
  line-height: 1.9;
  text-align: left;
}
.md-page.ag-custom-page .ag-service-terms-note .ag-bullet-label {
  color: var(--md-color-text);
}

/* セクション背景（09〜11. 詳細ページ用の新規セクション） */
.md-page.ag-custom-page .ag-service-menu {
  background: var(--md-color-neutral-50) !important;
  padding: clamp(64px, 8vw, 100px) 24px;
}
.md-page.ag-custom-page .ag-service-option {
  background: var(--md-color-primary-50) !important;
  padding: clamp(64px, 8vw, 100px) 24px;
}
.md-page.ag-custom-page .ag-service-after {
  background: var(--md-color-neutral-0) !important;
  padding: clamp(64px, 8vw, 100px) 24px;
}
.md-page.ag-custom-page .ag-service-commitments {
  background: var(--md-color-primary-50) !important;
  padding: clamp(64px, 8vw, 100px) 24px;
}
.md-page.ag-custom-page .ag-service-menu h2,
.md-page.ag-custom-page .ag-service-option h2,
.md-page.ag-custom-page .ag-service-after h2,
.md-page.ag-custom-page .ag-service-commitments h2 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: var(--md-color-primary-400);
  letter-spacing: 0.06em;
}

/* Menu：お品書きページ */
.md-page.ag-custom-page .ag-menu-notice {
  max-width: 680px;
  margin: 32px auto 48px;
}
.md-page.ag-custom-page .ag-reassure-balloon .ag-menu-notice-lead {
  margin: 0 0 14px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "YuMincho", serif;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--md-color-primary-400);
  line-height: 1.8;
  letter-spacing: 0.06em;
}
.md-page.ag-custom-page .ag-menu-notice-body {
  margin: 0;
  font-size: 0.92rem;
  line-height: 2;
  color: var(--md-color-text);
}
.md-page.ag-custom-page .ag-menu-section .ag-plan-sub-heading {
  font-size: 1.05rem;
  margin-bottom: 16px;
}
@media (max-width: 767px) {
  .md-page.ag-custom-page .ag-menu-notice {
    margin-bottom: 36px;
  }
  .md-page.ag-custom-page .ag-menu-notice-body br {
    display: none;
  }
}

/* Option：オプションページ */
.md-page.ag-custom-page .ag-option-lead {
  margin: 0 0 26px;
  text-align: center;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  line-height: 2;
  color: var(--md-color-primary-400);
  letter-spacing: 0.06em;
}
@media (max-width: 767px) {
  .md-page.ag-custom-page .ag-option-lead br {
    display: none;
  }
}

/* Aftercare：公開後のサポートページ／やさしいWeb部室 */
.md-page.ag-custom-page .ag-service-club {
  background: var(--md-color-warm-bg);
  padding: clamp(64px, 8vw, 100px) 24px;
}
.md-page.ag-custom-page .ag-service-club .ag-section-head h2 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: var(--md-color-warm-text);
  letter-spacing: 0.06em;
}
.md-page.ag-custom-page .ag-club-subtitle {
  margin: 10px 0 0;
  text-align: center;
  color: var(--md-color-warm-text);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
}
.md-page.ag-custom-page .ag-club-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.md-page.ag-custom-page .ag-club-row-photo {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--md-color-neutral-0);
  border: 1px solid var(--md-color-warm-border);
  color: var(--md-color-warm-text);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
  line-height: 1.8;
}
.md-page.ag-custom-page .ag-club-row-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.md-page.ag-custom-page .ag-club-row-body p {
  margin: 0 0 16px;
  color: var(--md-color-text);
  line-height: 1.9;
}
.md-page.ag-custom-page .ag-club-row-body p:last-child {
  margin-bottom: 0;
}
.md-page.ag-custom-page .ag-club-price {
  font-weight: 600;
  color: var(--md-color-warm-text);
}
.md-page.ag-custom-page .ag-club-note {
  font-size: 0.85rem;
  color: var(--md-color-text-soft);
  border-top: 1px dashed var(--md-color-warm-border);
  padding-top: 16px;
}
@media (max-width: 768px) {
  .md-page.ag-custom-page .ag-club-row {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   02. 共感パート（Empathy）
   ------------------------------------------------------------ */
.md-page.ag-custom-page .ag-service-empathy {
  background: var(--md-color-neutral-0) !important;
  padding: clamp(40px, 5vw, 64px) 24px clamp(40px, 5vw, 64px);
}
.md-page.ag-custom-page .ag-service-empathy h2 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--md-color-warm-text);
  line-height: 1.65;
}
.md-page.ag-custom-page .ag-pain-list,
.md-page.ag-custom-page .ag-reassure-balloon-wrap {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.md-page.ag-custom-page .ag-pain-list {
  padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 44px);
  background: var(--md-color-warm-bg);
  border: 1px solid var(--md-color-warm-border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(107, 93, 88, 0.06);
  list-style: none;
}
.md-page.ag-custom-page .ag-pain-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  color: var(--md-color-warm-text);
  line-height: 1.95;
  font-weight: 350;
}
.md-page.ag-custom-page .ag-pain-list li + li {
  border-top: 1px dashed var(--md-color-warm-border);
}
.md-page.ag-custom-page .ag-pain-list li::before {
  content: "";
  position: absolute;
  top: 22px; left: 4px;
  width: 12px; height: 1px;
  background: var(--md-color-warm-text);
  opacity: 0.5;
}
.md-page.ag-custom-page .ag-empathy-lead {
  max-width: 720px;
  margin: 44px auto 44px;
  text-align: center;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 600;
  color: var(--md-color-warm-text);
  line-height: 1.9;
  letter-spacing: 0.06em;
}

/* アイコン吹き出し */
.md-page.ag-custom-page .ag-reassure-balloon-wrap {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 0;
}
.md-page.ag-custom-page .ag-reassure-avatar {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border-radius: 50%;
  overflow: visible;
  border: none;
  box-shadow: none;
  background: transparent;
}
.md-page.ag-custom-page .ag-reassure-avatar img {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--md-color-primary-200);
  box-shadow: 0 4px 12px rgba(107, 93, 88, 0.1);
  display: block;
}
.md-page.ag-custom-page .ag-reassure-avatar::after {
  content: "みなくる";
  display: block;
  font-size: 0.72rem;
  color: var(--md-color-text-soft);
  letter-spacing: 0.08em;
  text-align: center;
  margin-top: 4px;
}
.md-page.ag-custom-page .ag-reassure-balloon {
  position: relative;
  flex: 1;
  background: var(--md-color-neutral-0);
  border: 1px solid var(--md-color-border);
  border-radius: 16px;
  padding: 18px 22px;
}
.md-page.ag-custom-page .ag-reassure-balloon::before {
  content: "";
  position: absolute;
  top: 16px; left: -10px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 10px solid var(--md-color-border);
}
.md-page.ag-custom-page .ag-reassure-balloon::after {
  content: "";
  position: absolute;
  top: 17px; left: -8px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 9px solid var(--md-color-neutral-0);
}
.md-page.ag-custom-page .ag-reassure-balloon p {
  margin: 0;
  color: var(--md-color-primary-400);
  font-size: 0.95rem;
  line-height: 2;
  font-weight: 350;
}
.md-page.ag-custom-page .ag-reassure-balloon--closing p {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif !important;
  font-size: clamp(1.05rem, 2vw, 1.25rem) !important;
  font-weight: 600 !important;
  color: var(--md-color-primary-400) !important;
  line-height: 1.9 !important;
}

/* ------------------------------------------------------------
   03. コンセプト
   ------------------------------------------------------------ */
.md-page.ag-custom-page .ag-service-concept {
  background: var(--md-color-neutral-0) !important;
  padding: clamp(40px, 5vw, 64px) 24px;
  text-align: center;
}
.md-page.ag-custom-page .ag-service-concept h2 {
  margin: 0 0 20px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--md-color-primary-400);
  line-height: 1.65;
}
.md-page.ag-custom-page .ag-concept-lead {
  max-width: 600px;
  margin: 0 auto 40px;
  color: var(--md-color-text-soft);
  line-height: 2;
}
.md-page.ag-custom-page .ag-service-concept-img {
  margin: 0 auto 40px;
  aspect-ratio: 16 / 9;
  max-width: 560px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--md-color-neutral-0);
  box-shadow: var(--md-shadow-card);
}
.md-page.ag-custom-page .ag-service-concept-img img { width: 100%; height: 100%; object-fit: cover; }
.md-page.ag-custom-page .ag-concept-body {
  max-width: 640px;
  margin-inline: auto;
  color: var(--md-color-text);
  line-height: 2;
}
.md-page.ag-custom-page .ag-concept-who {
  margin: 32px auto 0;
  padding: 28px 32px;
  max-width: 620px;
  background: var(--md-color-primary-50);
  border-radius: var(--md-radius-card);
  color: var(--md-color-text);
  font-size: 1rem;
  line-height: 2;
}

/* ------------------------------------------------------------
   03-2. Who / 作る人のこと
   （アイコン表示崩れ調査の続き：service.css から丸ごと欠落していたため
   backup/preview_v19_20260811.html より復元）
   ------------------------------------------------------------ */
.md-page.ag-custom-page .ag-service-who {
  background: var(--md-color-warm-bg) !important;
  padding: clamp(56px, 7vw, 88px) 24px;
  text-align: center;
}
.md-page.ag-custom-page .ag-who-inner {
  max-width: 680px;
  margin-inline: auto;
}
.md-page.ag-custom-page .ag-service-who h2 {
  margin: 0 0 32px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--md-color-warm-text);
  line-height: 1.65;
}
.md-page.ag-custom-page .ag-who-avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 30px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--md-color-primary-200);
  box-shadow: 0 8px 24px rgba(95, 129, 152, 0.16);
}
.md-page.ag-custom-page .ag-who-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.md-page.ag-custom-page .ag-who-body {
  margin: 0 0 22px;
  line-height: 2.2;
  font-size: 0.97rem;
}
.md-page.ag-custom-page .ag-who-body--last {
  margin-bottom: 30px;
}
.md-page.ag-custom-page .ag-who-link {
  margin: 0;
}
.md-page.ag-custom-page .ag-btn-outline-warm {
  display: inline-flex;
  width: auto;
  min-width: 220px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border: 1px solid var(--md-color-warm-text) !important;
  color: var(--md-color-warm-text) !important;
  background: var(--md-color-neutral-0) !important;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.md-page.ag-custom-page .ag-btn-outline-warm:hover {
  background: var(--md-color-warm-text) !important;
  color: var(--md-color-neutral-0) !important;
}

@media (max-width: 767px) {
  .md-page.ag-custom-page .ag-who-body br:not(.ag-sp-only) {
    display: none;
  }
  .md-page.ag-custom-page .ag-who-body {
    text-align: left;
    font-size: 0.93rem;
    line-height: 2.05;
  }
}

/* ------------------------------------------------------------
   03-3. Policy / この仕事で大切にしていること
   （同上：backup/preview_v19_20260811.html より復元。
   h2の書式は preview 側の複数セクション共通ルールから
   .ag-service-policy 分のみ抜粋）
   ------------------------------------------------------------ */
.md-page.ag-custom-page .ag-service-policy {
  background: var(--md-color-neutral-50) !important;
  padding: clamp(64px, 8vw, 100px) 24px;
}
.md-page.ag-custom-page .ag-service-policy h2 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: var(--md-color-primary-400);
  letter-spacing: 0.06em;
}
.md-page.ag-custom-page .ag-policy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1040px;
  margin-inline: auto;
}
.md-page.ag-custom-page .ag-policy-card {
  border: 1px solid var(--md-color-border) !important;
  background: var(--md-color-neutral-0) !important;
  box-shadow: var(--md-shadow-card);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 32px);
}
.md-page.ag-custom-page .ag-policy-card h3 {
  margin: 0 0 12px !important;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.15rem !important;
  font-weight: 600;
  color: var(--md-color-primary-400);
  line-height: 1.6;
}
.md-page.ag-custom-page .ag-policy-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--md-color-text);
  line-height: 1.9;
}
@media (max-width: 768px) {
  .md-page.ag-custom-page .ag-policy-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   04. ミニ診断
   ------------------------------------------------------------ */
.md-page.ag-custom-page .ag-service-diagnosis {
  background: var(--md-color-primary-50) !important;
  padding: clamp(64px, 8vw, 100px) 24px;
}
.md-page.ag-custom-page .ag-service-diagnosis .ag-section-head {
  text-align: center;
  margin-bottom: 8px;
}
.md-page.ag-custom-page .ag-service-diagnosis h2 {
  margin: 0 0 12px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--md-color-primary-400);
  line-height: 1.65;
}
.md-page.ag-custom-page .ag-diagnosis-lead {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--md-color-primary-400);
  line-height: 2;
  letter-spacing: 0.06em;
}
.md-page.ag-custom-page .ag-diagnosis-box {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 52px);
  background: var(--md-color-neutral-0) !important;
  border: 1px solid var(--md-color-primary-200) !important;
  border-radius: 24px !important;
  box-shadow: 0 16px 48px rgba(107, 93, 88, 0.08) !important;
}
.md-page.ag-custom-page .ag-diagnosis-box h3 {
  margin: 0 0 8px;
  text-align: center;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 600;
  color: var(--md-color-primary-400);
  letter-spacing: 0.08em;
}
.md-page.ag-custom-page .ag-diagnosis-box .ag-diagnosis-desc {
  text-align: center;
  color: var(--md-color-text-soft);
  line-height: 2;
  margin-bottom: 32px;
}

/* 診断：できることグリッド */
.md-page.ag-custom-page .ag-diag-can-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0 0;
}
.md-page.ag-custom-page .ag-diag-can-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: var(--md-color-primary-50);
  border: 1px solid var(--md-color-border);
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--md-color-text);
  line-height: 1.7;
}
.md-page.ag-custom-page .ag-diag-can-item svg {
  width: 20px; height: 20px;
  color: var(--md-color-primary-400);
  flex-shrink: 0;
  margin-top: 1px;
}

/* 診断：こんな方リスト */
.md-page.ag-custom-page .ag-diag-who-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.md-page.ag-custom-page .ag-diag-who-list li {
  position: relative;
  padding: 10px 14px 10px 32px;
  background: var(--md-color-neutral-0);
  border: 1px solid var(--md-color-border);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--md-color-text);
  line-height: 1.7;
}
.md-page.ag-custom-page .ag-diag-who-list li::before {
  content: "";
  position: absolute;
  top: 50%; left: 14px;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--md-color-primary-400);
  opacity: 0.6;
}

/* 診断：進め方（フローと統一） */
.md-page.ag-custom-page .ag-diag-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0 0;
}
.md-page.ag-custom-page .ag-diag-step {
  text-align: center;
  padding: 28px 16px 24px !important;
  background: var(--md-color-neutral-0) !important;
  border: 1px solid var(--md-color-border) !important;
  border-radius: 999px !important;
  aspect-ratio: 1 / 1;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  box-shadow: 0 4px 24px rgba(90, 126, 150, 0.12);
}
.md-page.ag-custom-page .ag-diag-step .ag-diag-step-num {
  position: static !important;
  transform: none !important;
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: var(--md-color-primary-400) !important;
  font-size: 2.2rem !important;
  font-family: "Times New Roman", serif !important;
  font-style: italic !important;
  font-weight: 500 !important;
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
  margin-bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.md-page.ag-custom-page .ag-diag-step h4 {
  margin: 0 0 6px;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: var(--md-color-primary-400);
  line-height: 1.4;
  text-align: center;
}
.md-page.ag-custom-page .ag-diag-step p {
  margin: 0;
  font-size: 0.85rem !important;
  color: var(--md-color-text-soft);
  line-height: 1.65 !important;
  text-align: center;
}

/* 診断：料金・CTA */
.md-page.ag-custom-page .ag-price-block {
  margin: 28px 0 0;
  padding: 28px;
  background: var(--md-color-primary-50) !important;
  border: 1px solid var(--md-color-border);
  border-radius: 12px;
  text-align: center;
}
.md-page.ag-custom-page .ag-price-label {
  font-size: 0.82rem;
  color: var(--md-color-text-soft);
  letter-spacing: 0.12em;
  margin: 0 0 8px;
}
.md-page.ag-custom-page .ag-price-main {
  margin: 0 0 8px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--md-color-primary-400);
  line-height: 1.2;
}
.md-page.ag-custom-page .ag-price-main .ag-price-unit { font-size: 1.2rem; }
.md-page.ag-custom-page .ag-price-main .ag-price-tax { font-size: 0.9rem; font-weight: 400; color: var(--md-color-text-soft); }
.md-page.ag-custom-page .ag-price-note { margin: 0; font-size: 0.82rem; color: var(--md-color-text-soft); }

/* 診断：次の一歩メモ（注記風の割り込みボックス） */
.md-page.ag-custom-page .ag-firsttalk-memo {
  max-width: 900px;
  margin: 24px auto 0;
  padding: 18px 24px;
  background: var(--md-color-primary-50);
  border: 1px solid var(--md-color-border);
  border-radius: 8px;
  text-align: center;
}
.md-page.ag-custom-page .ag-firsttalk-memo p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--md-color-text);
  line-height: 1.9;
}
.md-page.ag-custom-page .ag-diagnosis-cta { text-align: center; margin-top: 28px; }
.md-page.ag-custom-page .ag-diagnosis-cta-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--md-color-text-soft);
  line-height: 1.9;
  text-align: center;
}

/* 04b. はじめの相談：補足カード
   （表示崩れ調査の続き：service.css から欠落していたため
   backup/preview_v19_20260811.html より復元） */
.md-page.ag-custom-page .ag-checkup-note {
  max-width: 900px;
  margin: 24px auto 0;
  padding: 18px 24px;
  background: var(--md-color-neutral-50);
  border: 1px solid var(--md-color-border);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--md-color-text);
  line-height: 1.9;
}
.md-page.ag-custom-page .ag-checkup-note-title {
  margin: 0 0 6px;
  font-weight: 600;
  color: var(--md-color-primary-400);
}
.md-page.ag-custom-page .ag-checkup-note p {
  margin: 0;
}
.md-page.ag-custom-page .ag-checkup-note-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--md-color-accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--md-color-primary-200);
}

/* ------------------------------------------------------------
   05. 3つのサポートプラン
   ------------------------------------------------------------ */
.md-page.ag-custom-page .ag-service-plans {
  background: var(--md-color-neutral-0) !important;
  padding: clamp(64px, 8vw, 100px) clamp(24px, 5vw, 80px) clamp(48px, 6vw, 72px);
}
.md-page.ag-custom-page .ag-service-plans .ag-section-head {
  text-align: center;
  margin-bottom: 52px;
}
.md-page.ag-custom-page .ag-service-plans > .ag-section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem) !important;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 600;
  color: var(--md-color-primary-400);
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}

/* プランブロック */
.md-page.ag-custom-page .ag-plan-block {
  max-width: 1040px;
  margin: 0 auto 48px !important;
  padding-bottom: 48px !important;
  border-bottom: none !important;
}
.md-page.ag-custom-page .ag-plan-block:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.md-page.ag-custom-page .ag-plan-block:not(:last-child)::after {
  content: "";
  display: block;
  width: 120px;
  height: 4px;
  background-image: radial-gradient(circle, var(--md-color-primary-300) 2.5px, transparent 2.5px);
  background-size: 14px 4px;
  background-repeat: repeat-x;
  background-position: left center;
  margin: 48px auto 0 !important;
  border: none !important;
}

/* 2カラム */
.md-page.ag-custom-page .ag-plan-block .ag-plan-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  align-items: start !important;
  max-width: 100% !important;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.md-page.ag-custom-page .ag-plan-row.ag-plan-row--reverse { direction: rtl; }
.md-page.ag-custom-page .ag-plan-row.ag-plan-row--reverse > * { direction: ltr; }

/* 画像（水色シャドウ） */
.md-page.ag-custom-page .ag-plan-row-img-wrap {
  position: relative;
  padding: 16px 0 0 16px;
}
.md-page.ag-custom-page .ag-plan-row-img-wrap--reverse {
  padding: 16px 16px 0 0;
}
.md-page.ag-custom-page .ag-plan-row-img-wrap::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0; left: 0;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  background: var(--md-color-primary-50);
  border-radius: 16px;
}
.md-page.ag-custom-page .ag-plan-row-img-wrap--reverse::before { left: auto; right: 0; }
.md-page.ag-custom-page .ag-plan-row-img-inner {
  position: relative;
  z-index: 2;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--md-shadow-card);
}
.md-page.ag-custom-page .ag-plan-row-img-inner img { width: 100%; height: 100%; object-fit: cover; }

/* プランテキスト */
.md-page.ag-custom-page .ag-plan-num-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--md-color-accent) !important;
}
.md-page.ag-custom-page .ag-plan-num-row .ag-plan-num-text {
  font-size: 2.7rem;
  font-weight: 500;
  font-family: "Times New Roman", serif;
  font-style: italic;
  color: var(--md-color-accent) !important;
  line-height: 1;
}
.md-page.ag-custom-page .ag-plan-num-row .ag-line {
  width: 36px; height: 1px;
  background: var(--md-color-border) !important;
  flex-shrink: 0;
}
.md-page.ag-custom-page .ag-plan-num-row svg {
  width: 32px; height: 32px;
  color: var(--md-color-primary-400);
  flex-shrink: 0;
}
.md-page.ag-custom-page .ag-plan-title {
  margin: 0 0 6px !important;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem) !important;
  font-weight: 600;
  color: var(--md-color-primary-400);
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.md-page.ag-custom-page .ag-plan-tagline {
  font-size: 0.92rem !important;
  letter-spacing: 0.1em;
  color: var(--md-color-accent) !important;
  margin: 0 0 20px !important;
  line-height: 1.7;
}
.md-page.ag-custom-page .ag-plan-desc {
  font-size: 1rem !important;
  color: var(--md-color-text);
  line-height: 2 !important;
  margin: 0 0 16px;
}
.md-page.ag-custom-page .ag-plan-row-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.md-page.ag-custom-page .ag-plan-row-price {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--md-color-primary-400);
}
.md-page.ag-custom-page .ag-plan-row-price .ag-plan-tax {
  font-size: 0.78rem; font-weight: 400; color: var(--md-color-text-soft);
}
.md-page.ag-custom-page .ag-plan-row-period {
  font-size: 0.82rem; color: var(--md-color-text-soft);
}
.md-page.ag-custom-page .ag-plan-row-note-inline {
  font-size: 0.78rem; color: var(--md-color-text-soft);
}
.md-page.ag-custom-page .ag-plan-row-note-tag {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--md-color-text-soft);
  background: var(--md-color-primary-50);
  border: 1px solid var(--md-color-border);
  border-radius: 4px;
  padding: 6px 10px;
  margin: 12px 0 0;
  line-height: 1.7;
}
.md-page.ag-custom-page .ag-plan-row-note-tag .ag-anchor-link {
  display: inline;
  margin-top: 0;
  font-size: inherit;
}

/* アイコン付きミニカード */
.md-page.ag-custom-page .ag-plan-mini-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 12px 0 20px;
}
.md-page.ag-custom-page .ag-plan-mini-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--md-color-primary-50);
  border: 1px solid var(--md-color-border);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--md-color-text);
  line-height: 1.5;
}
.md-page.ag-custom-page .ag-plan-mini-card svg {
  width: 16px; height: 16px;
  color: var(--md-color-primary-400);
  flex-shrink: 0;
}

/* 1カラム補足 */
.md-page.ag-custom-page .ag-plan-full {
  max-width: 1040px;
  margin: 36px auto 0;
}
.md-page.ag-custom-page .ag-plan-row-sub-note {
  padding: 18px 24px;
  background: var(--md-color-neutral-50);
  border: 1px solid var(--md-color-border);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--md-color-text);
  line-height: 1.9;
  margin-bottom: 20px;
}

/* 事例カード */
.md-page.ag-custom-page .ag-plan-case-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: start;
  padding: 18px 20px;
  background: var(--md-color-neutral-0);
  border: 1px solid var(--md-color-border);
  border-radius: 10px;
}
.md-page.ag-custom-page .ag-plan-case-row + .ag-plan-case-row { margin-top: 12px; }
.md-page.ag-custom-page .ag-plan-case-row .ag-case-img-placeholder {
  aspect-ratio: 4 / 3;
  background: var(--md-color-primary-50);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--md-color-text-soft);
  text-align: center;
  padding: 8px;
}
.md-page.ag-custom-page .ag-plan-case-row .ag-case-label {
  display: block;
  font-size: 0.72rem;
  color: var(--md-color-text-soft);
  margin: 0 0 4px;
  line-height: 1.5;
}
.md-page.ag-custom-page .ag-plan-case-row .ag-case-body h4 {
  margin: 0 0 6px;
  font-size: 1rem !important;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 600;
  color: var(--md-color-primary-400);
  line-height: 1.55;
}
.md-page.ag-custom-page .ag-plan-case-row .ag-case-body p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--md-color-text-soft);
  line-height: 1.8;
}
.md-page.ag-custom-page a.ag-plan-case-row {
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s ease;
}
.md-page.ag-custom-page a.ag-plan-case-row:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.md-page.ag-custom-page .ag-plan-case-row .ag-case-img {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
}
.md-page.ag-custom-page .ag-plan-case-row .ag-case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* プラン3：サブプラン3カラム */
.md-page.ag-custom-page .ag-sub-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 16px;
  margin-bottom: 24px;
}
/* プラン03・07オプション：2カラムのサブプラン（769px以上のみ。
   768px以下は既存の .ag-sub-plans 1カラム化ルールをそのまま優先させる） */
@media (min-width: 769px) {
  .md-page.ag-custom-page .ag-sub-plans--2col {
    grid-template-columns: repeat(2, 1fr);
  }
}
.md-page.ag-custom-page .ag-sub-plan {
  padding: 24px 20px;
  background: var(--md-color-neutral-0);
  border: 1px solid var(--md-color-border);
  border-radius: 12px;
}
.md-page.ag-custom-page .ag-sub-plan h4 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--md-color-primary-400);
}
.md-page.ag-custom-page .ag-sub-plan-price {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--md-color-primary-400);
  margin: 0 0 14px;
}
.md-page.ag-custom-page .ag-sub-plan-price .ag-tax { font-size: 0.78rem; font-weight: 400; color: var(--md-color-text-soft); }
.md-page.ag-custom-page .ag-sub-plan .ag-note { font-size: 0.78rem; color: var(--md-color-text-soft); margin-top: 12px; line-height: 1.7; }

/* bullet list */
.md-page.ag-custom-page .ag-bullet-list { list-style: none; padding: 0; margin: 0; }
.md-page.ag-custom-page .ag-bullet-list li {
  position: relative;
  padding: 6px 0 6px 22px;
  color: var(--md-color-text);
  line-height: 1.85;
  font-size: 0.85rem;
}
.md-page.ag-custom-page .ag-bullet-list li::before {
  content: "";
  position: absolute;
  top: 16px; left: 0;
  width: 8px; height: 0;
  border-top: 1px solid var(--md-color-primary-400);
}

/* ------------------------------------------------------------
   05a. プラン後の簡易CTA／もっと詳しく知りたい方へ
   （アイコン表示崩れ調査の続き：service.css から丸ごと欠落していたため
   backup/preview_v19_20260811.html より復元）
   ------------------------------------------------------------ */
.md-page.ag-custom-page .ag-service-mini-cta {
  background: var(--md-color-primary-50) !important;
  padding: clamp(40px, 5vw, 64px) 24px;
}
.md-page.ag-custom-page .ag-service-mini-cta p {
  margin: 0 0 24px;
  color: var(--md-color-text-soft);
  line-height: 2;
}
.md-page.ag-custom-page .ag-mini-cta-shindan-link {
  margin-top: 0;
}
@media (max-width: 768px) {
  .md-page.ag-custom-page .ag-mini-cta-shindan-link {
    margin-top: 24px;
  }
}
.md-page.ag-custom-page .ag-service-details {
  background: var(--md-color-neutral-0) !important;
  padding: clamp(64px, 8vw, 100px) 24px;
}
.md-page.ag-custom-page .ag-service-details h2 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: var(--md-color-primary-400);
  letter-spacing: 0.06em;
}
.md-page.ag-custom-page .ag-service-details .ag-policy-card {
  display: flex;
  flex-direction: column;
}
.md-page.ag-custom-page .ag-service-details .ag-anchor-link {
  display: block;
  margin-top: 18px;
}

/* ------------------------------------------------------------
   05b. Welcome Range / 声をかけていい範囲（レターカード）
   （アイコン表示崩れ調査対応：service.css から丸ごと欠落していたため
   backup/preview_v19_20260811.html より復元）
   ------------------------------------------------------------ */
.md-page.ag-custom-page .ag-service-welcome {
  background: var(--md-color-warm-bg) !important;
  padding: clamp(64px, 8vw, 100px) 24px;
}
.md-page.ag-custom-page .ag-welcome-letter {
  max-width: 680px;
  margin-inline: auto;
  background: var(--md-color-neutral-0);
  border: 1px solid var(--md-color-warm-border);
  border-radius: 20px;
  padding: clamp(36px, 5vw, 56px);
  text-align: center;
  box-shadow: 0 16px 48px rgba(107, 93, 88, 0.08);
}
.md-page.ag-custom-page .ag-welcome-letter-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--md-color-warm-bg);
  color: var(--md-color-warm-text);
}
.md-page.ag-custom-page .ag-welcome-letter-icon svg {
  width: 24px;
  height: 24px;
}
.md-page.ag-custom-page .ag-welcome-letter h2 {
  margin: 0 0 20px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: var(--md-color-warm-text);
  letter-spacing: 0.06em;
  line-height: 1.6;
}
.md-page.ag-custom-page .ag-welcome-letter-lead {
  margin: 0 0 32px;
  color: var(--md-color-text-soft);
  font-size: 0.92rem;
  line-height: 2;
}
.md-page.ag-custom-page .ag-welcome-letter-list {
  text-align: left;
  margin: 0 0 36px;
}
.md-page.ag-custom-page .ag-welcome-letter-balloon {
  margin-top: 0;
}

@media (max-width: 767px) {
  .md-page.ag-custom-page .ag-welcome-letter {
    padding: 32px 24px;
  }
  .md-page.ag-custom-page .ag-welcome-letter h2 br {
    display: none;
  }
}

/* ------------------------------------------------------------
   06. フロー
   ------------------------------------------------------------ */
.md-page.ag-custom-page .ag-service-flow {
  background: var(--md-color-primary-50) !important;
  padding: clamp(72px, 9vw, 120px) 24px;
}
.md-page.ag-custom-page .ag-service-flow h2 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: var(--md-color-primary-400);
  letter-spacing: 0.06em;
}
.md-page.ag-custom-page .ag-steps-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 900px;
  margin-inline: auto;
}
.md-page.ag-custom-page .ag-steps-5 .ag-step {
  text-align: center;
  padding: 24px 12px 20px !important;
  background: var(--md-color-neutral-0) !important;
  border: none !important;
  border-radius: 999px !important;
  aspect-ratio: 1 / 1;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  box-shadow: 0 4px 24px rgba(90, 126, 150, 0.12);
  margin-top: 0 !important;
}
.md-page.ag-custom-page .ag-steps-5 .ag-step-num {
  position: static !important;
  transform: none !important;
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: var(--md-color-primary-400) !important;
  font-size: 2rem !important;
  font-family: "Times New Roman", serif;
  font-style: italic;
  font-weight: 700 !important;
  width: auto !important;
  height: auto !important;
  line-height: 1;
  margin-bottom: 8px;
}
.md-page.ag-custom-page .ag-steps-5 .ag-step h4 {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: var(--md-color-primary-400);
  margin: 0 0 6px !important;
  line-height: 1.5 !important;
  text-align: center;
}
.md-page.ag-custom-page .ag-steps-5 .ag-step p {
  font-size: 0.85rem !important;
  color: var(--md-color-text-soft);
  line-height: 1.65 !important;
  text-align: center;
  margin: 0;
}

/* 06b. ご相談からサポート開始までの流れ
   （アイコン表示崩れ調査の続き：HTML側は .ag-steps-row を使用しているが
   service.css には旧ドラフト由来の .ag-steps-5 しかなく実際には無効化されていたため
   backup/preview_v19_20260811.html より .ag-steps-row 定義を復元。
   .ag-steps-5 は現在どのページからも参照されていない可能性があるが、
   追記のみの方針のため削除はしていない） */
.md-page.ag-custom-page .ag-steps-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  max-width: var(--md-content-width);
  margin-inline: auto;
}
.md-page.ag-custom-page .ag-steps-row .ag-step {
  padding: 0 20px;
  border-left: 1px solid var(--md-color-border);
  text-align: left;
  background: none;
  box-shadow: none;
  border-radius: 0;
  aspect-ratio: auto;
}
.md-page.ag-custom-page .ag-steps-row .ag-step:first-child {
  border-left: none;
  padding-left: 0;
}
.md-page.ag-custom-page .ag-steps-row .ag-step-num {
  display: block;
  font-family: "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 2rem;
  color: var(--md-color-primary-400);
  margin-bottom: 8px;
  line-height: 1;
}
.md-page.ag-custom-page .ag-steps-row .ag-step h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--md-color-primary-400);
  text-align: left;
}
.md-page.ag-custom-page .ag-steps-row .ag-step p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--md-color-text-soft);
  line-height: 1.7;
  text-align: left;
}

@media (max-width: 768px) {
  .md-page.ag-custom-page .ag-steps-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .md-page.ag-custom-page .ag-steps-row .ag-step {
    border-left: none;
    border-top: 1px solid var(--md-color-border);
    padding: 20px 0 0;
  }
  .md-page.ag-custom-page .ag-steps-row .ag-step:first-child {
    border-top: none;
    padding-top: 0;
  }
}

/* ------------------------------------------------------------
   07. AI活用
   ------------------------------------------------------------ */
.md-page.ag-custom-page .ag-service-ai {
  background: var(--md-color-neutral-50) !important;
  padding: clamp(64px, 8vw, 100px) 24px;
}
.md-page.ag-custom-page .ag-service-ai h2 {
  margin: 0 0 20px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: var(--md-color-primary-400);
  letter-spacing: 0.06em;
}
.md-page.ag-custom-page .ag-ai-body {
  max-width: 760px;
  margin-inline: auto;
  line-height: 2;
  color: var(--md-color-text);
}
.md-page.ag-custom-page .ag-ai-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 760px;
  margin-inline: auto;
}
.md-page.ag-custom-page .ag-ai-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 14px;
  background: var(--md-color-neutral-0) !important;
  border: 1px solid var(--md-color-border);
  border-radius: 12px;
  font-size: 0.84rem;
  color: var(--md-color-text);
  line-height: 1.7;
  text-align: center;
}
.md-page.ag-custom-page .ag-ai-card svg {
  width: 28px; height: 28px;
  color: var(--md-color-primary-400);
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   08. FAQ
   ------------------------------------------------------------ */
.md-page.ag-custom-page .ag-service-faq {
  background: var(--md-color-neutral-0) !important;
  padding: clamp(72px, 9vw, 120px) 24px;
}
.md-page.ag-custom-page .ag-service-faq h2 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: var(--md-color-primary-400);
  letter-spacing: 0.06em;
}
.md-page.ag-custom-page .ag-faq-list { max-width: 760px; margin-inline: auto; }
.md-page.ag-custom-page .ag-faq-item { padding: 24px 0; border-bottom: 1px solid var(--md-color-border); }
.md-page.ag-custom-page .ag-faq-item:first-child { border-top: 1px solid var(--md-color-border); }
.md-page.ag-custom-page .ag-faq-q {
  font-weight: 600;
  color: var(--md-color-primary-400);
  margin: 0 0 10px;
  line-height: 1.7;
  font-size: 0.95rem;
  padding-left: 24px;
  position: relative;
}
.md-page.ag-custom-page .ag-faq-q::before {
  content: "Q";
  position: absolute; left: 0;
  font-family: "Times New Roman", serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--md-color-primary-400);
}
.md-page.ag-custom-page .ag-faq-a {
  margin: 0;
  color: var(--md-color-text);
  line-height: 1.9;
  font-size: 0.92rem;
  padding-left: 24px;
  position: relative;
}
.md-page.ag-custom-page .ag-faq-a::before {
  content: "A";
  position: absolute; left: 0;
  font-family: "Times New Roman", serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--md-color-text-soft);
}

/* ------------------------------------------------------------
   09. クロージング
   ------------------------------------------------------------ */
.md-page.ag-custom-page .ag-service-closing {
  background: var(--md-color-primary-50) !important;
  padding: clamp(72px, 9vw, 120px) 24px;
  text-align: center;
}
.md-page.ag-custom-page .ag-service-closing > div {
  max-width: 800px !important;
  margin-inline: auto;
}
.md-page.ag-custom-page .ag-service-closing h2 {
  margin: 0 0 28px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: var(--md-color-primary-400);
  letter-spacing: 0.06em;
}
.md-page.ag-custom-page .ag-closing-img {
  margin: 0 auto 40px;
  aspect-ratio: 16 / 9;
  max-width: 560px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--md-color-neutral-50);
  box-shadow: var(--md-shadow-card);
}
.md-page.ag-custom-page .ag-closing-img img { width: 100%; height: 100%; object-fit: cover; }
.md-page.ag-custom-page .ag-closing-body {
  max-width: 100% !important;
  line-height: 2;
  color: var(--md-color-text);
}

/* ------------------------------------------------------------
   09b. 利用規約ヒント（クロージング下の案内バー）
   （アイコン表示崩れ調査対応：service.css から丸ごと欠落していたため
   backup/preview_v19_20260811.html より復元）
   ------------------------------------------------------------ */
.md-page.ag-custom-page .ag-terms-hint-wrap {
  text-align: center;
  margin-top: 16px;
  padding: 0 24px 16px;
}
.md-page.ag-custom-page .ag-terms-hint {
  display: inline-flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 680px;
  text-align: left;
}
.md-page.ag-custom-page .ag-terms-hint-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin-top: 2px;
}
.md-page.ag-custom-page .ag-terms-hint-icon svg {
  width: 100%;
  height: 100%;
  color: var(--md-color-primary-400);
}
.md-page.ag-custom-page .ag-terms-hint-text {
  flex: 1 1 auto;
  min-width: 0;
}
.md-page.ag-custom-page .ag-terms-hint-desc {
  margin: 0;
  color: var(--md-color-text-soft);
  font-size: 0.9rem;
  line-height: 1.9;
  text-align: left;
  text-wrap: pretty;
}
.md-page.ag-custom-page .ag-terms-hint-desc strong {
  color: var(--md-color-text);
  font-weight: 600;
}
.md-page.ag-custom-page .ag-terms-hint-link {
  margin: 4px 0 0;
  text-align: center;
}
.md-page.ag-custom-page .ag-terms-hint-link .ag-anchor-link {
  margin-top: 0 !important;
}
.md-page.ag-custom-page .ag-terms-hint-link .ag-anchor-link,
.md-page.ag-custom-page .ag-policy-card .ag-anchor-link {
  font-weight: 600;
}
@media (min-width: 769px) {
  .md-page.ag-custom-page .ag-terms-hint-link {
    margin-top: -20px;
  }
}

/* ------------------------------------------------------------
   10. 最終CTA
   ------------------------------------------------------------ */
.md-page.ag-custom-page .ag-service-final-cta {
  background: #6E91A7 !important;
  padding: clamp(64px, 8vw, 100px) 24px;
  text-align: center;
}
.md-page.ag-custom-page .ag-service-final-cta h2 {
  margin: 0 0 20px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: #fff !important;
}
.md-page.ag-custom-page .ag-service-final-cta .ag-script,
.md-page.ag-custom-page .ag-service-final-cta p {
  color: rgba(255, 255, 255, 0.85) !important;
}
.md-page.ag-custom-page .ag-service-final-cta .ag-btn {
  background: var(--md-color-neutral-0) !important;
  color: var(--md-color-primary-400) !important;
  border: 2px solid var(--md-color-neutral-0) !important;
  font-weight: 700 !important;
}
.md-page.ag-custom-page .ag-service-final-cta .ag-btn:hover {
  background: transparent !important;
  color: var(--md-color-neutral-0) !important;
}
.md-page.ag-custom-page .ag-service-final-cta .ag-btn-outline {
  background: transparent !important;
  color: var(--md-color-neutral-0) !important;
  border: 2px solid rgba(255,255,255,0.7) !important;
  font-weight: 400 !important;
}
.md-page.ag-custom-page .ag-service-final-cta .ag-btn-outline:hover {
  background: var(--md-color-neutral-0) !important;
  color: var(--md-color-primary-400) !important;
  border-color: var(--md-color-neutral-0) !important;
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 768px) {
  .md-page.ag-custom-page .ag-plan-block .ag-plan-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .md-page.ag-custom-page .ag-plan-row.ag-plan-row--reverse { direction: ltr; }
  .md-page.ag-custom-page .ag-plan-row-img-wrap,
  .md-page.ag-custom-page .ag-plan-row-img-wrap--reverse { padding: 12px 0 0 12px; }
  .md-page.ag-custom-page .ag-plan-case-row { grid-template-columns: 1fr; }
  .md-page.ag-custom-page .ag-sub-plans { grid-template-columns: 1fr; }
  .md-page.ag-custom-page .ag-ai-card-grid { grid-template-columns: repeat(2, 1fr); }
  .md-page.ag-custom-page .ag-reassure-balloon-wrap {
    flex-direction: column !important;
    align-items: center !important;
  }
  .md-page.ag-custom-page .ag-reassure-avatar { align-items: center !important; }
  .md-page.ag-custom-page .ag-reassure-balloon {
    border-radius: 16px !important;
    width: 100% !important;
  }
  .md-page.ag-custom-page .ag-reassure-balloon::before,
  .md-page.ag-custom-page .ag-reassure-balloon::after { display: none !important; }
  .md-page.ag-custom-page .ag-reassure-avatar::after {
    font-size: 0.65rem !important;
    white-space: nowrap;
    display: block !important;
  }
}

@media (max-width: 640px) {
  .md-page.ag-custom-page .ag-diag-can-grid,
  .md-page.ag-custom-page .ag-diag-who-list { grid-template-columns: 1fr; }
  .md-page.ag-custom-page .ag-diag-steps { grid-template-columns: repeat(2, 1fr); }
  .md-page.ag-custom-page .ag-diag-step {
    aspect-ratio: auto !important;
    border-radius: 16px !important;
    padding: 20px 12px 16px !important;
    min-height: 100px;
  }
  .md-page.ag-custom-page .ag-plan-mini-cards { grid-template-columns: 1fr; }
  .md-page.ag-custom-page .ag-steps-5 { grid-template-columns: repeat(2, 1fr) !important; }
  .md-page.ag-custom-page .ag-steps-5 .ag-step:last-child {
    grid-column: 1 / -1;
    max-width: 160px;
    margin-inline: auto;
    width: 100%;
  }
  .md-page.ag-custom-page .ag-steps-5 .ag-step {
    aspect-ratio: auto !important;
    border-radius: 16px !important;
    padding: 20px 12px 16px !important;
    min-height: 100px;
  }
}

/* ============================================================
   追加修正
   ============================================================ */

/* 最終CTAの直後のSWELL余白も消す */
.md-page.ag-custom-page .ag-service-final-cta {
  margin-bottom: 0 !important;
  padding-bottom: clamp(64px, 8vw, 100px) !important;
}

/* スマホ：アイコン＋みなくるを正しく縦並び中央寄せ */
@media (max-width: 768px) {
  .md-page.ag-custom-page .ag-reassure-balloon-wrap {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
  }
  .md-page.ag-custom-page .ag-reassure-avatar {
    width: 80px !important;
    align-items: center !important;
    flex-shrink: 0;
  }
  .md-page.ag-custom-page .ag-reassure-avatar img {
    width: 80px !important;
    height: 80px !important;
  }
  .md-page.ag-custom-page .ag-reassure-avatar::after {
    display: block !important;
    font-size: 0.7rem !important;
    white-space: nowrap;
    margin-top: 4px;
    text-align: center;
  }
  .md-page.ag-custom-page .ag-reassure-balloon {
    border-radius: 16px !important;
    width: 100% !important;
    margin-top: 0 !important;
  }
  .md-page.ag-custom-page .ag-reassure-balloon::before,
  .md-page.ag-custom-page .ag-reassure-balloon::after {
    display: none !important;
  }
}

/* スマホ：「みなくる」テキストを確実に表示 */
@media (max-width: 768px) {
  .md-page.ag-custom-page .ag-reassure-avatar::after {
    content: "みなくる" !important;
    display: block !important;
    font-size: 0.7rem !important;
    color: var(--md-color-text-soft) !important;
    letter-spacing: 0.08em !important;
    text-align: center !important;
    margin-top: 4px !important;
    white-space: nowrap !important;
  }
}

/* アイコン下「みなくる」：spanで直接表示 */
.md-page.ag-custom-page .ag-avatar-name {
  display: block;
  font-size: 0.72rem;
  color: var(--md-color-text-soft);
  letter-spacing: 0.08em;
  text-align: center;
  margin-top: 4px;
  white-space: nowrap;
}
/* ::afterは無効化 */
.md-page.ag-custom-page .ag-reassure-avatar::after {
  content: none !important;
  display: none !important;
}

/* アイコン+名前のラッパー */
.md-page.ag-custom-page .ag-reassure-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.md-page.ag-custom-page .ag-reassure-avatar {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 2px solid var(--md-color-primary-200);
  box-shadow: 0 4px 12px rgba(107, 93, 88, 0.1);
  flex-shrink: 0;
  display: block !important;
  /* flex関連をリセット */
  flex-direction: unset !important;
  align-items: unset !important;
  gap: unset !important;
  background: transparent !important;
}

.md-page.ag-custom-page .ag-reassure-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.md-page.ag-custom-page .ag-avatar-name {
  display: block !important;
  font-size: 0.72rem;
  color: var(--md-color-text-soft);
  letter-spacing: 0.08em;
  text-align: center;
  white-space: nowrap;
}

/* スマホでもwrapperを中央に */
@media (max-width: 768px) {
  .md-page.ag-custom-page .ag-reassure-balloon-wrap {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
  }
  .md-page.ag-custom-page .ag-reassure-balloon {
    border-radius: 16px !important;
    width: 100% !important;
  }
  .md-page.ag-custom-page .ag-reassure-balloon::before,
  .md-page.ag-custom-page .ag-reassure-balloon::after {
    display: none !important;
  }
}

/* ============================================================
   スマホ：各セクションの説明文サイズを小さく
   ============================================================ */
@media (max-width: 768px) {

  /* ヒーロー：SNSを頑張り過ぎなくても… */
  .md-page.ag-custom-page .ag-service-hero-sub {
    font-size: 0.9rem !important;
    line-height: 1.85 !important;
  }

  /* コンセプト：大きな声で目立つための… */
  .md-page.ag-custom-page .ag-concept-lead,
  .md-page.ag-custom-page .ag-concept-body {
    font-size: 0.9rem !important;
    line-height: 1.85 !important;
  }

  /* ミニ診断：何から始めたらいいかわからない方へ */
  .md-page.ag-custom-page .ag-service-diagnosis .ag-section-head > p {
    font-size: 0.9rem !important;
  }

  /* 3つのサポートプラン：あなたの状況に合わせて… */
  .md-page.ag-custom-page .ag-service-plans .ag-section-head > p {
    font-size: 0.9rem !important;
  }

  /* プラン説明文（ホームページを作るほどでは… / 本格的なHP制作と… など） */
  .md-page.ag-custom-page .ag-plan-desc {
    font-size: 0.92rem !important;
    line-height: 1.85 !important;
  }

  /* AI活用：各プランでは… / 最後はあなた自身の言葉として… */
  .md-page.ag-custom-page .ag-ai-body p {
    font-size: 0.92rem !important;
    line-height: 1.85 !important;
  }

  /* クロージング：発信は無理に… / SNSが得意ではなくても… */
  .md-page.ag-custom-page .ag-closing-body p {
    font-size: 0.92rem !important;
    line-height: 1.85 !important;
  }

  /* 最終CTA：まずは現在のお悩みやご希望を… */
  .md-page.ag-custom-page .ag-service-final-cta > p {
    font-size: 0.9rem !important;
  }
}
