/* AWS伴走MSP — Cloud Assist ページ専用スタイル
   ファイル配置: /includes/msp/msp-style.css
   msp.html 内の <link rel="stylesheet" href="..."> から参照される。
*/
/* ================================================================
   msp.html / AWS伴走MSPページ専用スタイル
   —— ベースのフォント / 配色 / コンテナ幅 / 見出しスタイル等は
      既存テーマ（denettm）の CSS でカバーされている前提。
      ここではセクション固有のレイアウトと装飾のみを定義する。
   ================================================================ */
:root {
  --red: #ab010b;
  --red-deep: #8a0009;
  --gray: #424242;
  --gray-600: #6e6e6e;
  --lightgray: #e0e0e0;
  /* WordPress(denettm)テーマ側で未定義の場合に備えたフォールバック値。
     テーマ側で値が定義済みなら、後勝ちでテーマ値が優先される。 */
  --wp--style--root--padding-right: 15px;
  --wp--style--root--padding-left: 15px;
  --wp--preset--font-size--large: clamp(18px, 1.125rem + ((1vw - 3.2px) * 0.291), 21px);
}


/* ================================================================
   CONTENT AREA — site-matching light theme
   ================================================================ */
.msp-lp {
  background: #fff;
  color: #424242;
  /* WPテーマのコンテナ内に挿入された際、子セクションがviewport幅で
     ブレイクアウトするのでoverflow-x: clipで横スクロールを抑止する */
  overflow-x: clip;
}

/* ----------------------------------------------------------------
   Full-bleed sections —— WPテーマのコンテンツコンテナ(max-width)で
   背景が切れないように、各セクションを画面幅(100vw)へ拡張する。
   仕組み: 親の幅(50%)からviewportの中心(50vw)を引いた値だけ
   margin-leftをマイナスに振ると、要素の幅が 100vw に拡張される。
   ---------------------------------------------------------------- */
.msp-lp > section,
.msp-lp > .mid-cta {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
}

/* 最上段セクションの上部余白を圧縮（WPテーマヘッダ直下に貼り付くため、
   各セクション標準の上下padding(clamp(60px,8vw,120px))は冗長になる） */
.msp-lp > section:first-of-type,
.msp-lp > :first-child {
  padding-top: clamp(20px, 3vw, 40px);
}

.inner {
  max-width: 1350px;
  margin: 0 auto;
  padding-left: var(--wp--style--root--padding-right);
  padding-right: var(--wp--style--root--padding-left);
}

/* ---- Section heading ---- */
.sec-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
  /* lang="en"はHTML側に付与 */
}

.sec-heading {
  margin-bottom: 3.5rem;
}

.sec-heading h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 900;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: #424242;
}

.sec-heading .rule {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--red);
  margin-top: 1.25rem;
  border-radius: 2px;
}

.sec-heading .sub {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: #666;
  line-height: 2;
  max-width: 860px;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 36px;
  background: var(--red);
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.06em;
}

.btn-primary:hover {
  background: var(--red-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(171, 1, 11, 0.25);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 36px;
  background: transparent;
  color: #424242;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.06em;
}

.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 40px;
  background: #fff;
  color: var(--red);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.06em;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ---- Hero ---- */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4vw, 80px) var(--wp--style--root--padding-right) clamp(60px, 6vw, 100px) var(--wp--style--root--padding-left);
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
  max-width: 100%;
}

.hero::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -8%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(171, 1, 11, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lightgray), transparent);
}

.hero-inner {
  max-width: 1350px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}

.hero-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--red);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-copy {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.6;
  letter-spacing: 0.04em;
  margin-bottom: 1.8rem;
  color: #424242;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.5s;
}

.hero-copy .em {
  color: var(--red);
  position: relative;
}

.hero-copy .em::after {
  content: '';
  position: absolute;
  bottom: 0.1em;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  opacity: 0.3;
  border-radius: 2px;
}

.hero-tagline {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 700;
  line-height: 1.75;
  color: var(--red);
  margin-bottom: 1.4rem;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.6s;
}

.hero-sub {
  font-size: var(--wp--preset--font-size--large);
  color: #555;
  line-height: 2;
  max-width: 640px;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.7s;
}

.hero-price {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-left: 4px solid var(--red);
  background: rgba(171, 1, 11, 0.04);
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.8s;
}

.hero-price-amount {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-price-amount small {
  font-size: 0.85rem;
  color: #999;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.hero-price-label {
  font-size: 0.92rem;
  color: #666;
  line-height: 1.6;
}

.hero-cta-area {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.9s;
}

.hero-metrics {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  padding-top: 2.5rem;
  border-top: 1px solid var(--lightgray);
  opacity: 0;
  animation: fadeUp 1s ease forwards 1.1s;
}

.metric-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--red);
  letter-spacing: -0.02em;
}

.metric-value span {
  font-size: 0.95rem;
  color: #999;
  margin-left: 0.2rem;
  font-weight: 500;
}

.metric-label {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.3rem;
  letter-spacing: 0.04em;
}

/* Hero SVG Diagram */
.hero-diagram {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-diagram svg {
  width: 100%;
  max-width: 380px;
  height: auto;
}

.hero-diagram .draw-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawIn 2.5s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
}

.hero-diagram .draw-line-d1 {
  animation-delay: 1s;
}

.hero-diagram .draw-line-d2 {
  animation-delay: 1.3s;
}

.hero-diagram .draw-line-d3 {
  animation-delay: 1.6s;
}

.hero-diagram .node-fade {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.hero-diagram .node-fade-d1 {
  animation-delay: 1.2s;
}

.hero-diagram .node-fade-d2 {
  animation-delay: 1.5s;
}

.hero-diagram .node-fade-d3 {
  animation-delay: 1.8s;
}

.hero-diagram .node-fade-d4 {
  animation-delay: 2.1s;
}

.hero-diagram .node-fade-d5 {
  animation-delay: 2.4s;
}

@keyframes drawIn {
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-diagram {
    display: none;
  }

  .hero-metrics {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* ---- Trust Bar ---- */
.trust-bar {
  background: #fff;
  padding: 24px 0;
  border-bottom: 1px solid #e0e0e0;
  border-top: 1px solid #e0e0e0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 48px);
  flex-wrap: wrap;
}

.trust-bar-text {
  font-size: 0.78rem;
  color: #888;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.trust-bar img {
  height: 56px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.trust-bar img:hover {
  opacity: 1;
}

/* ---- Problem Section ---- */
.problem-section {
  padding: clamp(60px, 8vw, 120px) var(--wp--style--root--padding-right);
  background: #fff;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
  max-width: 1350px;
  margin: 0 auto;
}

.problem-card {
  padding: clamp(24px, 3vw, 36px);
  background: #f5f5f5;
  border-radius: 12px;
  border-left: 4px solid transparent;
  transition: all 0.3s;
}

.problem-card:hover {
  border-left-color: var(--red);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.problem-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.problem-card h3 {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 700;
  line-height: 1.65;
  margin-bottom: 0.8rem;
  color: #424242;
}

.problem-card p {
  font-size: 0.92rem;
  color: #666;
  line-height: 1.95;
}

@media (max-width: 768px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Value Section (Managed Plan) ---- */
.value-section {
  padding: clamp(60px, 8vw, 120px) var(--wp--style--root--padding-right);
  background: #f5f5f5;
}

.value-stack {
  display: flex;
  flex-direction: column;
  max-width: 1350px;
  margin: 0 auto;
}

.value-layer {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0 1.5rem;
  align-items: start;
  padding: clamp(24px, 3vw, 36px) 0;
  border-bottom: 1px solid #e0e0e0;
  transition: all 0.3s;
}

.value-layer:first-child {
  border-top: 1px solid #e0e0e0;
}

.value-layer:hover {
  padding-left: 16px;
  background: #fff;
  border-radius: 8px;
}

.layer-number {
  font-size: 2rem;
  font-weight: 700;
  color: #e0e0e0;
  line-height: 1;
  padding-top: 4px;
  text-align: center;
  transition: color 0.3s;
}

.value-layer:hover .layer-number {
  color: var(--red);
}

.layer-content h3 {
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  font-weight: 900;
  margin-bottom: 0.3rem;
  color: #424242;
}

.layer-tagline {
  font-size: 0.92rem;
  color: #888;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.layer-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.layer-item {
  font-size: 0.85rem;
  color: #666;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 4px 12px;
  transition: all 0.25s;
  letter-spacing: 0.04em;
}

.layer-item:hover {
  border-color: var(--red);
  color: var(--red);
}

@media (max-width: 600px) {
  .value-layer {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .layer-number {
    text-align: left;
    font-size: 1.5rem;
  }
}

/* ---- Scope Section ---- */
.scope-section {
  padding: clamp(60px, 8vw, 120px) var(--wp--style--root--padding-right);
  background: #fff;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
  max-width: 1350px;
  margin: 0 auto;
}

.scope-card {
  padding: clamp(24px, 3vw, 36px);
  background: #f5f5f5;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s;
}

.scope-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.scope-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.2rem;
}

.scope-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.scope-dot-infra {
  background: #2563eb;
}

.scope-dot-system {
  background: #e88b00;
}

.scope-dot-security {
  background: var(--red);
}

.scope-dot-ops {
  background: #1a9e6f;
}

.scope-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #424242;
}

.scope-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.scope-item {
  font-size: 0.88rem;
  color: #666;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 6px 14px;
  transition: all 0.25s;
}

.scope-item:hover {
  border-color: #bdbdbd;
  color: #424242;
}

@media (max-width: 600px) {
  .scope-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Scale Section (Architecture Diagram) ---- */
.scale-section {
  padding: clamp(60px, 8vw, 120px) var(--wp--style--root--padding-right);
  background: #f5f5f5;
}

.arch-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding: 1.5rem 0;
  max-width: 1350px;
  margin-left: auto;
  margin-right: auto;
}

.arch-node {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 14px 20px;
  text-align: center;
  min-width: 110px;
  flex-shrink: 0;
  transition: all 0.3s;
}

.arch-node:hover {
  border-color: var(--red);
  box-shadow: 0 4px 16px rgba(171, 1, 11, 0.1);
  transform: translateY(-2px);
}

.arch-node-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #424242;
}

.arch-node-detail {
  font-size: 0.78rem;
  color: #888;
  margin-top: 2px;
}

.arch-arrow {
  color: var(--red);
  flex-shrink: 0;
  padding: 0 8px;
  font-size: 0.85rem;
  opacity: 0.5;
}

.arch-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.arch-branch-arrow {
  color: #888;
  font-size: 0.72rem;
}

.scale-note {
  font-size: 0.85rem;
  color: #888;
  text-align: center;
  max-width: 1350px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .arch-diagram {
    flex-direction: column;
    align-items: stretch;
  }

  .arch-arrow {
    padding: 8px 0;
    text-align: center;
    transform: rotate(90deg);
  }

  .arch-node {
    min-width: auto;
  }
}

/* ---- Accompaniment Section ---- */
.accomp-section {
  padding: clamp(60px, 8vw, 120px) var(--wp--style--root--padding-right);
  background: #fff;
}

.accomp-section .sec-heading h2 {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.accomp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
  max-width: 1350px;
  margin: 0 auto;
}

.accomp-card {
  padding: clamp(24px, 3vw, 36px);
  background: #f5f5f5;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s;
}

.accomp-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.accomp-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: #888;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  transition: all 0.3s;
}

.accomp-card:hover .accomp-icon {
  border-color: var(--red);
  color: var(--red);
  background: rgba(171, 1, 11, 0.04);
}

.accomp-card h3 {
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 0.75rem;
  color: #424242;
  min-height: 3.1em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.accomp-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.9;
}

@media (max-width: 768px) {
  .accomp-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Plan Comparison ---- */
.plan-section {
  padding: clamp(60px, 8vw, 120px) var(--wp--style--root--padding-right);
  background: #f5f5f5;
}

.plan-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  position: relative;
  max-width: 1350px;
  margin: 0 auto;
}

.plan-scroll-hint {
  display: none;
  font-size: 0.78rem;
  color: #888;
  text-align: right;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  max-width: 1350px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .plan-scroll-hint {
    display: block;
  }
}

.plan-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.plan-table th,
.plan-table td {
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid #f5f5f5;
  vertical-align: middle;
}

.plan-table thead th {
  font-size: 1.1rem;
  font-weight: 700;
  padding: 20px;
  border-bottom: 2px solid #e0e0e0;
  white-space: nowrap;
  color: #424242;
}

.plan-table thead th:first-child {
  font-size: 0.85rem;
  font-weight: 500;
  color: #888;
}

.plan-col-highlight {
  background: rgba(171, 1, 11, 0.04);
  border-top: 3px solid var(--red);
}

.plan-table .plan-col-highlight {
  background: rgba(171, 1, 11, 0.04);
}

.plan-table .category-row td {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff !important;
  background: var(--red) !important;
  padding: 8px 20px;
  border-bottom: none;
  text-align: left;
}

.plan-table .label-cell {
  color: #666;
  font-size: 0.9rem;
  text-align: left;
}

.plan-check {
  color: var(--red);
  font-weight: 700;
}

/* plan-check/dashのスクリーンリーダー向けテキストはsr-onlyで付与 */

.plan-dash {
  color: #e0e0e0;
}

.plan-price-row td {
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: none;
}

.plan-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: #424242;
}

.plan-price small {
  font-size: 0.75rem;
  color: #888;
  font-weight: 400;
}

.plan-recommended {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--red);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

/* ---- Case Studies ---- */
.case-section {
  padding: clamp(60px, 8vw, 120px) var(--wp--style--root--padding-right);
  background: #fff;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
  max-width: 1350px;
  margin: 0 auto;
}

.case-card {
  padding: clamp(24px, 3vw, 36px);
  background: #f5f5f5;
  border-radius: 12px;
  border-left: 4px solid var(--red);
  transition: all 0.3s;
}

.case-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.case-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 1rem;
}

.case-card h3 {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 0.8rem;
  color: #424242;
}

.case-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.9;
}

@media (max-width: 768px) {
  .case-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- FAQ ---- */
.faq-section {
  padding: clamp(60px, 8vw, 120px) var(--wp--style--root--padding-right);
  background: #f5f5f5;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #e0e0e0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  gap: 16px;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--red);
}

.faq-question h3 {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.65;
}

.faq-toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 400;
  color: #888;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  transition: all 0.3s;
}

.faq-item.faq-open .faq-toggle {
  transform: rotate(45deg);
  border-color: var(--red);
  color: var(--red);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-answer-inner {
  padding-bottom: 20px;
  font-size: 0.92rem;
  color: #666;
  line-height: 2;
}

/* ---- Final CTA ---- */
.final-cta {
  padding: clamp(60px, 8vw, 120px) var(--wp--style--root--padding-right);
  background: var(--red);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 50%;
  height: 200%;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.04) 50%, transparent 60%);
  pointer-events: none;
}

.final-cta h2 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.8;
  margin-bottom: 1rem;
  position: relative;
}

.final-cta .cta-sub {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 2.5rem;
  line-height: 2;
  position: relative;
}

.final-cta-phone {
  margin-top: 2rem;
  position: relative;
}

.final-cta-phone-sub {
  font-size: 0.82rem;
  opacity: 0.6;
  letter-spacing: 0.08em;
}

/* ---- Floating CTA (Mobile) ---- */
.floating-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  padding: 10px var(--wp--style--root--padding-right);
  border-top: 1px solid #e0e0e0;
}

.floating-cta-inner {
  display: flex;
  gap: 8px;
  max-width: 1350px;
  margin: 0 auto;
}

.floating-cta .btn-primary,
.floating-cta .btn-outline {
  flex: 1;
  min-width: auto;
  min-height: 44px;
  /* WCAG 2.5.5 タッチターゲット最小サイズ */
  padding: 12px 8px;
  font-size: 0.85rem;
}

@media (max-width: 768px) {

  /* デフォルトは非表示。.visibleクラスで表示、.hiddenクラスで非表示 */
  .floating-cta {
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    transition: opacity 0.3s, visibility 0.3s;
  }

  .floating-cta.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .floating-cta.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }
}

/* ---- Footer overrides ---- */
.site-footer-wrap {
  letter-spacing: 0;
}

.site-footer-wrap a {
  color: inherit;
}

.site-footer-wrap a:hover {
  opacity: 0.6;
  text-decoration: none;
}

.site-footer-wrap img {
  border-radius: 0;
}

.footer-columns {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 1350px;
  margin: 0 auto;
}

.footer-col-left {
  flex: 0 0 24%;
  min-width: 180px;
  padding-right: 30px;
}

.footer-col-right {
  flex: 1 1 76%;
  min-width: 0;
}

@media (max-width: 781px) {
  .footer-columns {
    flex-direction: column;
  }

  .footer-col-left {
    flex: none;
    width: 100%;
    padding-right: 0;
    margin-bottom: 30px;
  }

  .footer-col-right {
    flex: none;
    width: 100%;
  }

  .footer-nav-service {
    flex-direction: column;
  }
}

/* ---- Scroll Reveal ---- */
.js-loaded .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.js-loaded .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 {
  transition-delay: 0.08s;
}

.reveal-d2 {
  transition-delay: 0.16s;
}

.reveal-d3 {
  transition-delay: 0.24s;
}

.reveal-d4 {
  transition-delay: 0.32s;
}

.reveal-d5 {
  transition-delay: 0.40s;
}

.reveal-d6 {
  transition-delay: 0.48s;
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ---- Mid-page CTA ---- */
.mid-cta {
  background: rgba(171, 1, 11, 0.04);
  border-top: 1px solid rgba(171, 1, 11, 0.1);
  border-bottom: 1px solid rgba(171, 1, 11, 0.1);
  padding: 32px 0;
}

.mid-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 var(--wp--style--root--padding-right);
}

.mid-cta-text {
  font-size: 1rem;
  font-weight: 700;
  color: #424242;
  line-height: 1.7;
}

.mid-cta-sub {
  display: block;
  font-size: 0.88rem;
  font-weight: 400;
  color: #666;
  margin-top: 4px;
}

/* ---- Screen Reader Only ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {

  .js-loaded .reveal,
  .hero-label,
  .hero-copy,
  .hero-sub,
  .hero-price,
  .hero-cta-area,
  .hero-metrics {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .hero-diagram .draw-line {
    stroke-dashoffset: 0;
    animation: none;
  }

  .hero-diagram .node-fade {
    opacity: 1;
    animation: none;
  }
}

/* ---- Responsive Fine-tuning ---- */
@media (max-width: 480px) {
  .hero-copy {
    font-size: 1.6rem;
  }

  .hero-copy br {
    display: none;
  }

  .hero-cta-area {
    flex-direction: column;
  }

  .btn-primary,
  .btn-outline {
    min-width: auto;
    width: 100%;
  }

  .hero-price-amount {
    font-size: 1.6rem;
  }
}

@media (max-width: 1024px) {
  .accomp-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .accomp-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Support Systems Section (3 plans overview) ---- */
.support-section {
  padding: clamp(60px, 8vw, 120px) var(--wp--style--root--padding-right);
  background: #f5f5f5;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 28px);
  max-width: 1350px;
  margin: 0 auto;
  align-items: stretch;
}

.support-card {
  padding: clamp(28px, 3vw, 40px);
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s;
}

.support-card:not(.is-core):hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
  border-color: #bdbdbd;
}

.support-card.is-core {
  border: 2px solid var(--red);
  background: linear-gradient(180deg, rgba(171, 1, 11, 0.04) 0%, #fff 60%);
}

.support-card.is-core:hover {
  box-shadow: 0 10px 28px rgba(171, 1, 11, 0.18);
  transform: translateY(-3px);
}

.support-card.is-core::before {
  content: '中核プラン';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 5px 14px;
  border-radius: 4px;
  white-space: nowrap;
}

.support-card-role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.support-card-name {
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  font-weight: 900;
  margin-bottom: 0.7rem;
  color: #424242;
  line-height: 1.4;
}

.support-card-lead {
  font-size: 0.92rem;
  color: #666;
  line-height: 1.85;
  margin-bottom: 1.4rem;
}

.support-card-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: #424242;
  margin-bottom: 0.2rem;
  letter-spacing: -0.02em;
}

.support-card-price small {
  font-size: 0.72rem;
  color: #888;
  font-weight: 400;
}

.support-card-pricenote {
  font-size: 0.78rem;
  color: #888;
  margin-bottom: 1.4rem;
  line-height: 1.6;
}

.support-card-list {
  margin: 0 0 1.5rem 0;
  padding-left: 0;
}

.support-card-list li {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.65;
  position: relative;
  padding: 5px 0 5px 22px;
}

.support-card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 5px;
  border-bottom: 2px solid var(--red);
  border-left: 2px solid var(--red);
  transform: rotate(-45deg);
}

.support-card-cta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
  text-align: center;
}

.support-card-cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--red);
  padding: 6px 0;
  transition: all 0.2s;
}

.support-card-cta a::after {
  content: '→';
  transition: transform 0.2s;
}

.support-card-cta a:hover {
  opacity: 0.75;
}

.support-card-cta a:hover::after {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .support-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .support-card.is-core {
    margin-top: 14px;
  }
}

/* ---- Companion Support Plan Section ---- */
.companion-section {
  padding: clamp(60px, 8vw, 120px) var(--wp--style--root--padding-right);
  background: #fff;
}

.companion-section-title {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 700;
  color: #424242;
  margin: 0 0 1.5rem;
  padding: 6px 0 6px 14px;
  border-left: 4px solid var(--red);
  letter-spacing: 0.04em;
  max-width: 1350px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.companion-roles {
  margin-bottom: clamp(40px, 5vw, 60px);
}

.companion-roles .value-stack {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 0 clamp(20px, 3vw, 32px);
  border: 1px solid #e0e0e0;
}

.companion-roles .value-layer:hover {
  background: #fff;
}

.companion-roles .value-layer:first-child {
  border-top: none;
}

.companion-roles .value-layer:last-child {
  border-bottom: none;
}

.companion-usecases {
  max-width: 1350px;
  margin: 0 auto;
}

/* ---- Hero Diagram for 3-tier plans (service overview) ---- */
.hero-tier {
  transition: all 0.3s;
}

.hero-tier-recommended rect {
  filter: drop-shadow(0 4px 12px rgba(171, 1, 11, 0.15));
}


/* ================================================================
   NEW SECTIONS — Pricing Model / Companion Strip
   ================================================================ */
.pricing-model-section {
  padding: clamp(60px, 8vw, 120px) var(--wp--style--root--padding-right);
  background: #fff;
}

.pricing-model-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.5vw, 32px);
  max-width: 1180px;
  margin: 0 auto;
  align-items: stretch;
}

.pricing-model-card {
  padding: clamp(28px, 3vw, 40px);
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  background: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s;
}

.pricing-model-card.is-typical {
  background: #f5f5f5;
  color: #6e6e6e;
}

.pricing-model-card.is-ours {
  background: linear-gradient(180deg, rgba(171, 1, 11, 0.04) 0%, #fff 60%);
  border: 2px solid var(--red);
}

.pricing-model-card.is-ours::before {
  content: 'Cloud Assist AWS保守運用サービス';
  position: absolute;
  top: -14px;
  left: 24px;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 5px 14px;
  border-radius: 4px;
  white-space: nowrap;
}

.pricing-model-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #888;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

.pricing-model-card.is-ours .pricing-model-tag {
  color: var(--red);
}

.pricing-model-card h3 {
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: #424242;
}

.pricing-model-card.is-typical h3 {
  color: #6e6e6e;
}

.pricing-model-formula {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 14px 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e0e0e0;
  margin-bottom: 1.4rem;
  text-align: center;
  color: #424242;
}

.pricing-model-card.is-typical .pricing-model-formula {
  background: #ebebeb;
  color: #888;
  border-color: #ddd;
}

.pricing-model-card.is-ours .pricing-model-formula {
  background: #fff;
  color: var(--red);
  border-color: rgba(171, 1, 11, 0.3);
}

.pricing-model-list {
  margin: 0;
  padding: 0;
  flex: 1;
}

.pricing-model-list li {
  font-size: 0.92rem;
  line-height: 1.85;
  position: relative;
  padding: 8px 0 8px 26px;
  border-bottom: 1px dashed #e8e8e8;
}

.pricing-model-list li:last-child {
  border-bottom: none;
}

.pricing-model-card.is-typical .pricing-model-list li::before {
  content: '×';
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  color: #aaa;
  font-weight: 700;
}

.pricing-model-card.is-ours .pricing-model-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 16px;
  width: 10px;
  height: 5px;
  border-bottom: 2px solid var(--red);
  border-left: 2px solid var(--red);
  transform: rotate(-45deg);
}

@media (max-width: 768px) {
  .pricing-model-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Companion strip (痒いところに手が届く) ---- */
.companion-strip {
  padding: clamp(60px, 8vw, 100px) var(--wp--style--root--padding-right);
  background: #f5f5f5;
}

.companion-strip-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.companion-strip-text h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 900;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: #424242;
  margin-bottom: 1.5rem;
}

.companion-strip-text h2 .em {
  color: var(--red);
}

.companion-strip-text p {
  font-size: 1rem;
  line-height: 2;
  color: #555;
  margin-bottom: 1rem;
}

.companion-strip-visual {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.companion-band {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}

.companion-band:last-child {
  border-bottom: none;
}

.companion-band-text {
  flex: 1;
}

.companion-band-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #424242;
  margin-bottom: 2px;
}

.companion-band-text span {
  display: block;
  font-size: 0.82rem;
  color: #888;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .companion-strip-inner {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   Typography overrides —— cloudassist.jp/aws/msp/ の既存ページ
   （denettmテーマ・本文16px基準）と文字サイズ感を揃える。
   現状の0.9〜0.92rem(14〜15px)系を1rem(16px)へ底上げし、
   見出しh3も0.05〜0.1rem分大きめに振っている。
   ================================================================ */

/* セクション見出しの h2 を少し大きく（21→27px ≒ 1.3〜1.7rem） */
.msp-lp .sec-heading h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.7;
}

/* セクション見出しの説明文（sub）— 14→16px */
.msp-lp .sec-heading .sub {
  font-size: 1rem;
}

/* ---- カード見出し・本文（共通で本文16px化） ---- */
.msp-lp .problem-card h3,
.msp-lp .case-card h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
}
.msp-lp .accomp-card h3 {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
}
.msp-lp .scope-card h3 {
  font-size: 1.15rem;
}

.msp-lp .problem-card p,
.msp-lp .accomp-card p,
.msp-lp .case-card p {
  font-size: 1rem;
}

/* ---- FAQ ---- */
.msp-lp .faq-question h3 {
  font-size: 1.1rem;
}
.msp-lp .faq-answer-inner {
  font-size: 1rem;
}

/* ---- Plan Table ---- */
.msp-lp .plan-table {
  font-size: 1rem;
}
.msp-lp .plan-table .label-cell {
  font-size: 1rem;
}
.msp-lp .plan-table thead th {
  font-size: 1.2rem;
}
.msp-lp .plan-table thead th:first-child {
  font-size: 0.95rem;
}

/* ---- Pricing Model ---- */
.msp-lp .pricing-model-list li {
  font-size: 1rem;
}
.msp-lp .pricing-model-formula {
  font-size: 1.1rem;
}

/* ---- Scope (chip-style items はやや小さめのまま) ---- */
.msp-lp .scope-item {
  font-size: 0.95rem;
}

/* ---- Companion Strip ---- */
.msp-lp .companion-band-text strong {
  font-size: 1.05rem;
}
.msp-lp .companion-band-text span {
  font-size: 0.9rem;
}
.msp-lp .companion-strip-text p {
  font-size: 1.05rem;
}

/* ---- CTA / Mid-CTA / Final CTA 本文 ---- */
.msp-lp .mid-cta-text {
  font-size: 1.1rem;
}
.msp-lp .mid-cta-sub {
  font-size: 0.95rem;
}
.msp-lp .final-cta .cta-sub {
  font-size: 1.05rem;
}

/* ---- ボタン文字も標準16pxへ ---- */
.msp-lp .btn-primary,
.msp-lp .btn-outline,
.msp-lp .btn-white {
  font-size: 1.05rem;
}
