/* 新規下層ページ共通スタイル */

:root {
  --cm-teal: #1E5563;
  --cm-teal-light: #2E7387;
  --cm-accent: #6FD3E3;
  --cm-bg: #F0EFEB;
  --cm-surface: #F5F4F0;
  --cm-text: #1A1A1A;
  --cm-muted: #5E5C55;
  --cm-border: #D6D4CC;
  --cm-border-light: #E6E4DE;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body.cm-page {
  margin: 0;
  background: var(--cm-bg);
  color: var(--cm-text);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

.cm-page a { color: var(--cm-teal); text-decoration: none; }
.cm-page a:hover { color: var(--cm-teal-light); }

/* ヘッダー（トップページと同一構造） */
.cm-page-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(240, 239, 235, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cm-border);
}

.cm-page-header__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 56px);
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.cm-page-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cm-text);
}

.cm-page-logo__mark {
  width: 30px;
  height: 30px;
  background: var(--cm-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cm-page-logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.cm-page-logo__name { font-size: 14px; font-weight: 900; letter-spacing: 0.01em; white-space: nowrap; }
.cm-page-logo__en { font-size: 8.5px; color: var(--cm-muted); letter-spacing: 0.14em; }

.cm-page-nav { display: flex; gap: 22px; margin-left: 8px; white-space: nowrap; align-items: center; }
.cm-page-nav a { font-size: 12.5px; font-weight: 700; color: #33322D; }
.cm-page-nav a:hover { color: var(--cm-teal); }

.cm-page-header__right { margin-left: auto; display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.cm-page-tel { text-align: right; line-height: 1.2; white-space: nowrap; }
.cm-page-tel a { font-size: 18px; font-weight: 900; letter-spacing: 0.01em; color: var(--cm-text); }
.cm-page-tel span { display: block; font-size: 9.5px; color: var(--cm-muted); margin-top: 2px; }

.cm-page-cta {
  background: var(--cm-teal);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: background .2s ease;
}
.cm-page-cta:hover { background: var(--cm-teal-light); color: #fff !important; }

/* レスポンシブ（トップページと同じブレークポイント 1120px） */
/* cm-desktop-only は非表示だけを担う。display の値は各要素側の指定を尊重する
   （display:initial を書くと .cm-page-nav の flex を打ち消してしまう） */
@media (max-width: 1119px) {
  .cm-desktop-only { display: none !important; }
}

/* パンくず */
.cm-breadcrumb {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px clamp(18px, 4vw, 40px) 0;
  font-size: 12px;
  color: var(--cm-muted);
}
.cm-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cm-breadcrumb li::after { content: "›"; margin-left: 8px; color: var(--cm-border); }
.cm-breadcrumb li:last-child::after { content: ""; }

/* 本文 */
.cm-page-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) clamp(18px, 4vw, 40px) clamp(56px, 7vw, 88px);
}

.cm-page-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  text-wrap: pretty;
}

.cm-page-lead {
  font-size: 15px;
  line-height: 2;
  color: var(--cm-muted);
  margin: 0 0 clamp(36px, 5vw, 56px);
  max-width: 720px;
}

.cm-section { margin-bottom: clamp(44px, 6vw, 72px); }

.cm-section h2 {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--cm-teal);
}

.cm-section h3 {
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 900;
  line-height: 1.6;
  margin: 32px 0 12px;
}

.cm-section p { font-size: 14.5px; line-height: 2; margin: 0 0 18px; }
.cm-section ul, .cm-section ol { font-size: 14.5px; line-height: 2; padding-left: 1.4em; margin: 0 0 18px; }
.cm-section li { margin-bottom: 6px; }

.cm-note {
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--cm-muted);
  background: var(--cm-surface);
  border-left: 3px solid var(--cm-border);
  padding: 14px 18px;
  margin: 0 0 18px;
}

/* テーブル */
.cm-table-wrap { overflow-x: auto; margin: 0 0 18px; }

.cm-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
}

.cm-table th, .cm-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--cm-border-light);
  text-align: left;
}

.cm-table thead th {
  background: var(--cm-teal);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.cm-table tbody tr:last-child td { border-bottom: none; }
.cm-table .cm-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cm-table .cm-highlight { background: #E4F1F4; color: var(--cm-teal); font-weight: 900; }

/* ステップ */
.cm-steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 18px; }
.cm-steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 24px 46px;
  border-left: 2px solid var(--cm-border);
  margin-left: 14px;
}
.cm-steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.cm-steps > li::before {
  content: counter(step);
  position: absolute;
  left: -15px;
  top: 0;
  width: 28px;
  height: 28px;
  background: var(--cm-teal);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cm-steps h3 { margin: 2px 0 8px; }

/* FAQ */
.cm-faq { border-top: 1px solid var(--cm-border); }
.cm-faq__item { border-bottom: 1px solid var(--cm-border); }
.cm-faq__q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 4px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  color: var(--cm-text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}
.cm-faq__q span:first-child { flex: 1; }
.cm-faq__mark { font-size: 20px; font-weight: 400; color: var(--cm-teal); flex-shrink: 0; }
.cm-faq__a { display: none; padding: 0 4px 22px; font-size: 13.5px; line-height: 2.05; color: #33322D; }

/* CTA */
.cm-cta {
  background: var(--cm-teal);
  color: #fff;
  padding: clamp(32px, 4.4vw, 52px) clamp(22px, 4vw, 48px);
  margin-top: clamp(44px, 6vw, 72px);
}
.cm-cta h2 { color: #fff; border: none; padding: 0; margin: 0 0 12px; font-size: clamp(20px, 2.8vw, 28px); }
.cm-cta p { color: #CDE7ED; font-size: 14px; margin: 0 0 26px; max-width: 560px; }
.cm-cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.cm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 30px;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  transition: all .2s ease;
}
.cm-btn--primary { background: var(--cm-accent); color: #0B3540 !important; }
.cm-btn--primary:hover { background: #fff; color: #0B3540 !important; }
.cm-btn--ghost { border: 1px solid #5E7F88; color: #fff !important; }
.cm-btn--ghost:hover { background: #fff; color: var(--cm-teal) !important; }

/* 関連ページ */
.cm-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 20px; }
.cm-related a {
  display: block;
  background: #fff;
  border: 1px solid var(--cm-border);
  padding: 20px 22px;
  transition: all .2s ease;
}
.cm-related a:hover { border-color: var(--cm-teal); background: var(--cm-surface); }
.cm-related__title { font-size: 14.5px; font-weight: 900; color: var(--cm-text); margin-bottom: 6px; }
.cm-related__desc { font-size: 12.5px; color: var(--cm-muted); line-height: 1.8; }

/* フッター（トップページと同一構造） */
.cm-page-footer { background: #1A1A1A; color: #8E8B82; }
.cm-page-footer__inner { max-width: 1240px; margin: 0 auto; padding: clamp(40px, 5vw, 60px) clamp(18px, 4vw, 56px); }
.cm-page-footer a { color: #B5B3AB; font-size: 12px; }
.cm-page-footer a:hover { color: #fff; }

.cm-page-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid #3B3B39;
}

.cm-page-footer__brand { display: flex; align-items: center; gap: 11px; }
.cm-page-footer__brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.cm-page-footer__brand-name { font-size: 14px; font-weight: 900; color: #fff; white-space: nowrap; }
.cm-page-footer__brand-en { font-size: 8.5px; letter-spacing: 0.14em; }

.cm-page-footer__nav { display: flex; flex-wrap: wrap; gap: 22px; }

.cm-page-footer__related { padding: 28px 0; border-bottom: 1px solid #3B3B39; }
.cm-page-footer__related-label { margin: 0 0 18px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--cm-accent); }
.cm-page-footer__related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.cm-page-footer__related a { font-size: 13.5px; font-weight: 700; color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.cm-page-footer__related p { margin: 7px 0 0; font-size: 11.5px; line-height: 1.85; color: #8E8B82; }

.cm-page-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 11px;
}
