@charset "UTF-8";
/*
トップページ（固定ページ 1652）と、サービスの一覧（固定ページ 1728、/service/）、事例紹介の一覧（固定ページ 76）、Strution（固定ページ 1687）に読み込む CSS。functions.php が読み込む。
本文は、セクションごとのグループ（mghp-home-section）に分けてあり、ここではその class にだけ当てる。
色はロゴとフッターの赤を差し色にし、セクションを白と薄い灰色の帯で交互に区切る。
*/

/* 色などの変数（--mghp-*）は common.css に置く */

/* 本文をセクション（mghp-home-section）で組んだページ（トップ、Strution）は、本文の上下の余白を各セクションの余白で取る */
.home .site-body,
.site-body:has(.entry-body > .mghp-home-section:first-child) {
  padding-top: 0;
  padding-bottom: 0;
  /* 帯（--tinted の影）を、画面の幅で切る。切らないと、ページの外まで描かれる */
  overflow-x: clip;
}
.home .entry-body > :first-child {
  margin-top: 0;
}
/* 全ページの本文の前に入る余白（固定ページ 1197 のスペーサー）は、セクションの余白と重なるので隠す */
.home .main-section > .wp-block-spacer:first-child,
.main-section:has(.entry-body > .mghp-home-section:first-child) > .wp-block-spacer:first-child {
  display: none;
}

/* セクション：上下の余白をそろえる。--tinted は、画面の幅いっぱいに薄い灰色の帯を敷く */
.mghp-home-section {
  padding-block: var(--mghp-section-pad);
  margin-block: 0 !important;
}
.mghp-home-section--tinted {
  background: var(--mghp-tint);
  box-shadow: 0 0 0 100vmax var(--mghp-tint);
  clip-path: inset(0 -100vmax);
}

/* セクションの見出し：英字を大きく、和文を小さく赤で添える（下の短い線は、作業者の指摘で外した） */
.entry-body h2.mghp-home-heading {
  margin: 0 0 clamp(28px, 4vw, 44px);
  padding: 0;
  border: 0;
  background: none;
  color: var(--mghp-ink);
  line-height: 1.2;
}
.entry-body h2.mghp-home-heading::before,
.entry-body h2.mghp-home-heading::after {
  content: none;
}
.mghp-home-heading-en {
  display: block;
  font-family: Lato, sans-serif;
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.mghp-home-heading-ja {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--mghp-red);
}

.entry-body .mghp-home-subheading {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: none;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.5;
  color: var(--mghp-ink);
}
.entry-body .mghp-home-subheading::before,
.entry-body .mghp-home-subheading::after {
  content: none;
}

.mghp-home-catch {
  margin: 0 0 16px;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
}
.mghp-home-lead {
  max-width: 52em;
  margin: 0 auto;
  color: var(--mghp-muted);
  line-height: 2;
}

/* 和文は文節で折り返し（Chrome と Edge。ほかのブラウザーは無視する）、最後の行に 1〜2 字だけ残らないようにする */
:is(.mghp-home-section, .mghp-svc) :is(.mghp-home-lead, .mghp-home-subheading, .mghp-home-catch, .mghp-home-card-title, .mghp-home-card-text, .mghp-home-case-title, .mghp-home-case-text, .mghp-svc-title, .mghp-svc-text, .mghp-home-other-title, .mghp-home-other-text) {
  word-break: auto-phrase;
  text-wrap: pretty;
}

/* PC 用の改行は、カードやリードが狭くなる幅（1000px 以下）ではやめ、文節の折り返しに任せる */
@media (max-width: 1000px) {
  .mghp-home-lead br,
  .mghp-home-card-text br {
    display: none;
  }
}
/* 狭い幅では、文章を左にそろえる（中央にそろえた長い文は読みにくい） */
@media (max-width: 781px) {
  .mghp-home-lead {
    text-align: left !important;
    line-height: 1.9;
  }
}

/* サービスのカード（Strution、WADZEE KRAFT、WADZEE、freio、常駐型、請負型）。
   作業者の指示で、柱とそのほかを分けず、同じ大きさのカードを 1 つのグリッドに並べる。
   PC は 3 列、900px 以下は 2 列、600px 以下は 1 列にする */
.mghp-home-products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px !important;
  margin-block: clamp(28px, 4vw, 40px) 0 !important;
}
.mghp-home-products > .mghp-home-card {
  margin: 0 !important;
}
@media (max-width: 900px) {
  .mghp-home-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .mghp-home-products {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* カード（トップの製品、WADZEE の製品、そのほか）。作業者の指摘で、丸い角と丸の中の矢印をやめ、角の小さい四角にする。
   影は付けず、細い枠だけにする。ホバーでは枠を赤にし、右下の矢印を右へ動かす（上の辺の赤の線は、はみ出て見えたのでやめた。作業者の指摘） */
.mghp-home-card {
  position: relative;
  padding: 32px 24px 28px;
  border: 1px solid var(--mghp-line);
  border-radius: 2px;
  background: #fff;
  transition: border-color 0.2s;
}
.mghp-home-card.has-link:hover,
.mghp-home-card.has-link:focus-within {
  border-color: var(--mghp-red);
}
/* 右下の矢印は、丸を付けず赤の線で描き、本文と重ならないよう、カードの下の余白を矢印の分だけ広げる */
.mghp-home-card.has-link,
.mghp-home-other.has-link {
  padding-bottom: 56px;
}
.mghp-home-card.has-link::after,
.mghp-home-other.has-link::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 28px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 16' fill='none' stroke='%23c8161e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 8h25M20 2l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s;
}
:is(.mghp-home-card, .mghp-home-other).has-link:is(:hover, :focus-within)::after {
  transform: translateX(4px);
}
.mghp-home-card > * {
  margin-block: 0;
}
.mghp-home-products figure.wp-block-image.mghp-logo {
  height: 110px;
  margin-bottom: 20px;
}
.mghp-home-products figure.wp-block-image.mghp-logo img {
  max-width: 100%;
}
/* Strution は文字だけのロゴで、枠いっぱいだとほかの 2 つより大きく見えるので、少し小さくする */
.mghp-home-products figure.wp-block-image.mghp-logo img[src*="strution"] {
  max-width: 78%;
}
.mghp-home-card-title {
  margin-bottom: 10px !important;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}
.mghp-home-card-text {
  color: var(--mghp-muted);
  font-size: 14px;
  line-height: 1.8;
}

@media (max-width: 781px) {
  .mghp-home-products,
  .mghp-home-others {
    gap: 16px !important;
  }
  .mghp-home-card {
    padding: 24px 20px 24px;
  }
  .mghp-home-products figure.wp-block-image.mghp-logo {
    height: 72px;
    margin-bottom: 14px;
  }
  .mghp-home-products figure.wp-block-image.mghp-logo img {
    max-width: 70%;
  }
  .mghp-home-card-title {
    font-size: 17px;
  }
}

/* サービスのページ（固定ページ 1728）。3 つの柱を、左にロゴ、右に説明の横長のカードで縦に並べる */
.mghp-svc {
  padding-block: clamp(8px, 2vw, 24px) var(--mghp-section-pad);
}
.mghp-svc > .mghp-home-lead {
  margin-bottom: clamp(28px, 4vw, 40px);
}
.mghp-svc-row {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  padding: 32px 56px 32px 40px;
}
/* Lightning の .container .is-layout-flow > * + * の余白（詳細度 0,2,1）より強くする */
.entry-body .mghp-svc .mghp-svc-row {
  margin-block: 0 20px;
}
.mghp-svc-row figure.wp-block-image.mghp-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  margin: 0;
}
.mghp-svc-row figure.wp-block-image.mghp-logo img {
  width: auto !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.mghp-svc-row figure.wp-block-image.mghp-logo img[src*="strution"] {
  max-width: 82%;
}
.mghp-svc-row-body > * {
  margin-block: 0;
}
.mghp-svc-label {
  display: inline-block;
  margin-bottom: 10px !important;
  padding: 2px 12px;
  border-radius: 2px;
  background: #fbe9ea;
  color: var(--mghp-red-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.mghp-svc-title {
  margin-bottom: 10px !important;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.6;
}
.mghp-svc-text {
  color: var(--mghp-muted);
  font-size: 15px;
  line-height: 1.9;
}
.entry-body .mghp-svc .mghp-home-others-heading {
  margin-top: clamp(40px, 5vw, 56px);
}
@media (max-width: 781px) {
  .mghp-svc-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 20px 28px;
  }
  .mghp-svc-row figure.wp-block-image.mghp-logo {
    height: 80px;
  }
  .mghp-svc-row figure.wp-block-image.mghp-logo img {
    max-width: 80%;
  }
  .mghp-svc-title {
    font-size: 18px;
  }
}

/* そのほかのサービス（freio、常駐型、請負型）。3 つの柱より小さく、白のカードを横に並べる。
   Lightning の「body .container .is-layout-flow > * + *」（上の余白を消す）より強くするため、class を 2 回書く */
.entry-body .mghp-home-others-heading.mghp-home-others-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: clamp(40px, 5vw, 56px) 0 24px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--mghp-muted);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.entry-body .mghp-home-others-heading::before,
.entry-body .mghp-home-others-heading::after {
  content: "";
  position: static;
  flex: 1;
  width: auto;
  height: 1px;
  border: 0;
  background: #dcdad6;
}
.mghp-home-others {
  gap: 16px !important;
  margin-block: 0 !important;
}
.mghp-home-other {
  position: relative;
  height: 100%;
  box-sizing: border-box;
  padding: 20px 20px 22px;
  border: 1px solid var(--mghp-line);
  border-radius: 2px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.mghp-home-other > * {
  margin-block: 0;
}
.mghp-home-other.has-link:hover,
.mghp-home-other.has-link:focus-within {
  border-color: var(--mghp-red);
}
/* 図（ロゴや、題を描いた画像）は同じ高さの枠に左寄せで収める */
.mghp-home-other figure.mghp-home-other-visual {
  display: flex;
  align-items: center;
  height: 44px;
  margin: 0 0 12px;
}
.mghp-home-other figure.mghp-home-other-visual img {
  width: auto !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.mghp-home-other-title {
  margin-bottom: 4px !important;
  font-size: 15px;
  font-weight: 700;
}
.mghp-home-other-text {
  color: var(--mghp-muted);
  font-size: 13px;
  line-height: 1.8;
  word-break: auto-phrase;
  text-wrap: pretty;
}
/* 「もっと見る」のボタン（もとは「MORE …」）：灰色の幅いっぱいの帯をやめ、中央に赤の枠のボタンを置く */
.mghp-home-more {
  margin-top: clamp(32px, 4vw, 44px) !important;
}
/* 赤の塗りのボタン。ホバーでは色を反転させず、少し暗くして矢印を右へ動かすだけにする。
   Lightning のボタンはホバーで filter（明るさ 1.1、彩度 2）をかけ、赤がぎらついてちらつくので、filter を消す */
.mghp-home-more .wp-block-button__link {
  min-width: 240px;
  padding: 15px 40px;
  border: 0;
  border-radius: 2px;
  background: var(--mghp-red);
  color: #fff;
  /* 文言は日本語（もっと見る。作業者の指示） */
  font-family: Lato, "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(200, 22, 30, 0.2);
  transition: background-color 0.2s ease;
}
.mghp-home-more .wp-block-button__link::after {
  content: "\2192";
  content: "\2192" / "";
  display: inline-block;
  margin-left: 10px;
  transition: transform 0.2s ease;
}
.mghp-home-more .wp-block-button__link:hover,
.mghp-home-more .wp-block-button__link:focus-visible {
  filter: none;
  background: var(--mghp-red-dark);
  color: #fff;
}
.mghp-home-more .wp-block-button__link:hover::after,
.mghp-home-more .wp-block-button__link:focus-visible::after {
  transform: translateX(4px);
}
.mghp-home-more .wp-block-button__link:focus-visible {
  outline: 3px solid var(--mghp-ink);
  outline-offset: 3px;
}

/* ニュース：日付と題名を 1 行に並べ、行を線で区切る */
.mghp-home-news-list.wp-block-latest-posts {
  max-width: 880px;
  margin: 0 auto;
  padding: 0;
  border-top: 1px solid var(--mghp-line);
}
.mghp-home-news-list.wp-block-latest-posts li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 24px;
  margin: 0;
  padding: 20px 4px;
  border-bottom: 1px solid var(--mghp-line);
}
.mghp-home-news-list .wp-block-latest-posts__post-date {
  order: -1;
  flex: 0 0 auto;
  min-width: 8.5em;
  color: var(--mghp-muted);
  font-family: Lato, sans-serif;
  font-size: 14px;
}
/* ニュースかブログかの札（functions.php が一覧を組み直して付ける） */
.mghp-home-news-type {
  flex: 0 0 auto;
  min-width: 4.5em;
  padding: 1px 10px;
  border-radius: 2px;
  background: var(--mghp-red-tint);
  color: var(--mghp-red-dark);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.mghp-home-news-type--blog {
  background: var(--mghp-tint);
  color: var(--mghp-muted);
}
.mghp-home-news-list .wp-block-latest-posts__post-title {
  flex: 1 1 20em;
  color: var(--mghp-ink);
  font-weight: 700;
  text-decoration: none;
}
.mghp-home-news-list .wp-block-latest-posts__post-title:hover {
  color: var(--mghp-red);
  text-decoration: underline;
}
.mghp-home-news-list .wp-block-latest-posts__post-excerpt {
  flex-basis: 100%;
  margin: 0;
  color: var(--mghp-muted);
  font-size: 14px;
}
@media (max-width: 781px) {
  .mghp-home-news-list.wp-block-latest-posts li {
    padding: 16px 4px;
  }
  .mghp-home-news-list .wp-block-latest-posts__post-date {
    font-size: 13px;
  }
}

/* ケーススタディ：写真の比率をそろえ、業種を赤の小さなラベルにする */
.mghp-home-cases {
  gap: 24px !important;
  margin: 0 !important;
}
/* カード全体をリンクにする。写真にはリンクを付けず、題名のリンクの ::after をカードいっぱいに広げる（リンクは 1 つ、名前は題名） */
.mghp-home-cases > .wp-block-column {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--mghp-radius);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s;
}
.mghp-home-cases > .wp-block-column:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
/* キーボードで題名のリンクに来たら、カードの外側に枠を出す（overflow で切れない） */
.mghp-home-cases > .wp-block-column:has(a:focus-visible) {
  outline: 3px solid var(--mghp-red);
  outline-offset: 3px;
}
.mghp-home-cases > .wp-block-column > * {
  margin-block: 0;
}
.mghp-home-cases figure.wp-block-image {
  margin: 0;
  overflow: hidden;
}
.mghp-home-cases figure.wp-block-image img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  /* 人の顔が上で切れないよう、上寄りに切り出す */
  object-position: center 25%;
  transition: transform 0.3s;
}
.mghp-home-cases > .wp-block-column:hover figure.wp-block-image img {
  transform: scale(1.03);
}
.mghp-home-case-cat {
  align-self: flex-start;
  margin: 20px 20px 0 !important;
  padding: 2px 10px;
  border-radius: 2px;
  background: #fbe9ea;
  color: var(--mghp-red-dark);
  font-size: 12px;
  font-weight: 700;
}
.mghp-home-case-title {
  margin: 10px 20px 0 !important;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}
.mghp-home-case-title a {
  color: var(--mghp-ink);
  text-decoration: none;
  outline: none;
}
.mghp-home-case-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.mghp-home-cases > .wp-block-column:hover .mghp-home-case-title a {
  color: var(--mghp-red);
}
.mghp-home-case-text {
  margin: 8px 20px 24px !important;
  color: var(--mghp-muted);
  font-size: 14px;
  line-height: 1.8;
}
@media (max-width: 781px) {
  .mghp-home-cases {
    gap: 16px !important;
  }
}
/* 781px 以下はカードを縦に積む。写真が縦に 3 枚続くので、少し低め（16:9）にする。集合写真なので、横には切らない */
@media (max-width: 781px) {
  .mghp-home-cases figure.wp-block-image img {
    aspect-ratio: 16 / 9;
  }
}

/* 事例のカードの列の数を、件数で決める（作業者の指示：数に応じて割り切れるように）。
   3 の倍数は 3 列、4 件と 2 件は 2 列、1 件は 1 列にする。カードの幅は 3 列のときと同じにし、並び全体を中央に置く。
   ほかの件数（5、7 件など）は 3 列で、最後の行を中央に寄せる。781px 以下は 1 列に積む */
.mghp-home-cases {
  --mghp-case-cols: 3;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center;
  max-width: calc((100% - 48px) / 3 * var(--mghp-case-cols) + 24px * (var(--mghp-case-cols) - 1));
  margin-inline: auto !important;
}
.mghp-home-cases:has(> .wp-block-column:nth-child(4):last-child),
.mghp-home-cases:has(> .wp-block-column:nth-child(2):last-child) {
  --mghp-case-cols: 2;
}
.mghp-home-cases:has(> .wp-block-column:only-child) {
  --mghp-case-cols: 1;
}
.mghp-home-cases > .wp-block-column {
  flex: 0 0 calc((100% - 24px * (var(--mghp-case-cols) - 1)) / var(--mghp-case-cols)) !important;
}
@media (max-width: 781px) {
  .mghp-home-cases {
    max-width: none;
  }
  .mghp-home-cases > .wp-block-column {
    flex-basis: 100% !important;
  }
}

/* 事例紹介の一覧（固定ページ 76、/case-study/）。トップと同じカードを、白の地に置くので枠を付ける */
.mghp-case-list {
  padding-bottom: var(--mghp-section-pad);
}
.mghp-case-list figure.mghp-case-list-logo {
  margin: 0 auto clamp(28px, 4vw, 40px);
}
.mghp-case-list .mghp-home-cases > .wp-block-column {
  border: 1px solid var(--mghp-line);
}


/* トップのスライダー（parts/slider.php の mghp-hero）。図は SVG、題と説明は文字で出すので、どの幅でも文字が切れない。
   背景は元の画像の色に、細かい点の模様を重ねる */
.mghp-hero {
  --hero-bg: #d21a23;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: clamp(36px, 5vw, 56px) 20px clamp(52px, 6vw, 68px);
  background-color: var(--hero-bg);
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.6px);
  background-size: 6px 6px;
  color: #fff;
  text-align: center;
}
.mghp-hero--strategy { --hero-bg: #d21a23; }
/* 緑は元の画像（#4f8e6c）より少し暗くする。白の説明の文字のコントラストを 4.5:1 以上にするため（#4f8e6c では 3.9:1） */
.mghp-hero--solution { --hero-bg: #3f7658; }
.mghp-hero--strution { --hero-bg: #6e6e6e; }
.mghp-hero a {
  color: inherit;
  text-decoration: none;
}
.mghp-hero-figure {
  display: block;
  width: auto;
  height: clamp(100px, 12vw, 150px);
}
.ltg-slide .mghp-hero-title {
  margin: clamp(16px, 2vw, 24px) 0 10px;
  font-family: Lato, sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.ltg-slide .mghp-hero-caption {
  max-width: 40em;
  margin: 0;
  font-size: clamp(13px, 1.2vw, 15px);
  line-height: 1.9;
  letter-spacing: 0.06em;
  word-break: auto-phrase;
  text-wrap: pretty;
}
.home .ltg-slide .swiper-slide {
  height: auto;
}
@media (max-width: 781px) {
  .home .ltg-slide .swiper-button-next,
  .home .ltg-slide .swiper-button-prev {
    display: none;
  }
  .mghp-hero-caption br {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mghp-home-card,
  .mghp-home-cases figure.wp-block-image img,
  .mghp-home-more .wp-block-button__link::after {
    transition: none;
  }
  :is(.mghp-home-card, .mghp-home-other).has-link:is(:hover, :focus-within)::after,
  .mghp-home-cases > .wp-block-column:hover figure.wp-block-image img,
  .mghp-home-more .wp-block-button__link:hover::after,
  .mghp-home-more .wp-block-button__link:focus-visible::after {
    transform: none;
  }
}

/* Strution のページ（固定ページ 1687、/service/strution/）。作業者の指示で、トップと同じセクションの組み方に直した。
   文言は変えず、見出しの大きさ、カード、料金の行、事例のカードをトップにそろえた */
/* 冒頭は、一言（キントーンを駆使した…）の見出しと図だけにする。帯にも図にも Strution の名前があるので、
   ロゴと「What is Strution?」は置かない。説明の文はコンセプトへ移した（作業者の指示） */
.entry-body h2.mghp-st-catch {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--mghp-ink);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.entry-body h2.mghp-st-catch::before,
.entry-body h2.mghp-st-catch::after {
  content: none;
}
.mghp-st-intro figure.mghp-st-figure {
  margin: clamp(24px, 4vw, 40px) auto 0;
}
/* 「Strategy + Solution = Strution」の図は、見出しより目立たないよう小さくする（作業者の指摘） */
.mghp-st-intro figure.mghp-st-figure img {
  width: 100% !important;
  max-width: 420px;
  height: auto;
}
/* 図の画像（伴走、スケジュール）は、白のカードに収める */
figure.mghp-st-panel {
  max-width: 860px;
  margin: clamp(32px, 5vw, 48px) auto 0 !important;
  padding: clamp(12px, 2vw, 24px);
  border: 1px solid var(--mghp-line);
  border-radius: var(--mghp-radius);
  background: #fff;
}
figure.mghp-st-panel img {
  width: 100%;
  height: auto;
}
.entry-body h3.mghp-st-video-title {
  margin: clamp(48px, 6vw, 72px) 0 20px;
  padding: 0;
  border: 0;
  font-size: clamp(18px, 2vw, 22px);
}
.entry-body h3.mghp-st-video-title::before,
.entry-body h3.mghp-st-video-title::after {
  content: none;
}
.mghp-st-video {
  max-width: 860px;
  margin-inline: auto !important;
}
/* 16:9 の枠（::before の上の余白）いっぱいに動画を置く。読み込みのときにスクリプトが iframe の style に
   高さ（その時点の幅から計算した値）を書き、枠より低くなって下が空くので、CSS で上書きする */
.mghp-st-video iframe {
  height: 100% !important;
  margin: 0;
  border-radius: var(--mghp-radius);
}

/* コンセプト：説明の文、進め方の図と 3 つの説明（下の .mghp-st-guide）、紹介動画の順に置く。
   もとは 3 枚のカードがあり、図の説明と同じ文だったので、図の説明に統合した。
   社名の意味の文（相互成長）は会社概要へ移した（どちらも作業者の指示） */
.mghp-st-strategy {
  color: var(--mghp-red);
}
.mghp-st-solution {
  color: #357e63;
}
.mghp-st-inline-logo {
  display: inline-block;
  width: 96px;
  height: auto;
  vertical-align: -0.1em;
}

/* 5 つのポイント：画像と短い文を、白のカードで横に並べる */
.mghp-st-points {
  gap: 16px !important;
}
.mghp-st-points > .wp-block-column {
  box-sizing: border-box;
  padding: 20px 16px;
  border: 1px solid var(--mghp-line);
  border-radius: var(--mghp-radius);
  background: #fff;
}
.mghp-st-points > .wp-block-column > * {
  margin-block: 0;
}
.mghp-st-points figure.wp-block-image {
  margin-bottom: 14px !important;
}
.mghp-st-points figure.wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
}
.mghp-st-points p {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.8;
  word-break: auto-phrase;
  text-wrap: pretty;
}

/* なぜ月額サービス？：もとは文字を描いた 4 枚の画像（添付 1617、1132、1618、1128）。作業者の指摘（意味が分からない）で、
   画像の文字のまま、事業の前提（見出し）と、月額サービスでできること（赤の矢印の後）を分けた 2×2 のカードにした */
.mghp-st-reasons {
  gap: 20px !important;
  max-width: 960px;
  margin: 0 auto !important;
}
.mghp-st-reasons + .mghp-st-reasons {
  margin-top: 20px !important;
}
.mghp-st-reason {
  box-sizing: border-box;
  height: 100%;
  padding: 28px clamp(20px, 3vw, 32px);
  border: 1px solid var(--mghp-line);
  border-radius: var(--mghp-radius);
  background: #fff;
}
.mghp-st-reason > * {
  margin-block: 0 !important;
}
/* 絵（もとの画像の左にあった絵だけを切り出した SVG）を左に置き、右に見出しと答えを並べる */
.mghp-st-reason:has(> .mghp-st-reason-icon) {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 20px;
}
.mghp-st-reason > .mghp-st-reason-icon {
  grid-row: 1 / 3;
  align-self: start;
  margin: 4px 0 0 !important;
}
.mghp-st-reason-icon img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 480px) {
  .mghp-st-reason:has(> .mghp-st-reason-icon) {
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 14px;
  }
}
.entry-body h3.mghp-st-reason-title {
  padding: 0;
  border: 0;
  background: none;
  color: var(--mghp-ink);
  font-size: 17px;
  line-height: 1.7;
  word-break: auto-phrase;
  text-wrap: pretty;
}
.entry-body h3.mghp-st-reason-title::before,
.entry-body h3.mghp-st-reason-title::after {
  content: none;
}
/* 答えの文。赤の矢印はリンクのカードの印と同じに見えるので付けない（作業者の指摘） */
.mghp-st-reason-answer {
  margin-top: 14px !important;
  padding-top: 12px;
  border-top: 1px dashed var(--mghp-line);
  color: var(--mghp-ink);
  font-size: 15px;
  line-height: 1.8;
  word-break: auto-phrase;
}
@media (max-width: 1000px) {
  .mghp-st-reason-title br {
    display: none;
  }
}
@media (max-width: 781px) {
  .mghp-st-reasons,
  .mghp-st-reasons + .mghp-st-reasons {
    gap: 16px !important;
  }
  .mghp-st-reasons + .mghp-st-reasons {
    margin-top: 16px !important;
  }
}
/* プランとオプション：料金の画像を左、内容を右に置く白のカード */
.mghp-st-price {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  max-width: 960px;
  margin: 0 auto 16px !important;
  padding: 24px clamp(20px, 3vw, 36px);
  box-sizing: border-box;
  border: 1px solid var(--mghp-line);
  border-radius: var(--mghp-radius);
  background: #fff;
}
.mghp-st-price > * {
  margin: 0 !important;
}
.mghp-st-price figure.wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
}
.mghp-st-price ul {
  padding-left: 1.2em;
  line-height: 1.9;
}
.mghp-st-price li + li {
  margin-top: 4px;
}
.mghp-st-note {
  max-width: 960px;
  margin: 8px auto 0 !important;
  color: var(--mghp-muted);
  font-size: 13px;
}
.mghp-st-plan .mghp-home-others-heading {
  max-width: 960px;
  margin-inline: auto !important;
}

/* お問い合わせ */
.mghp-cta {
  text-align: center;
}
.mghp-cta .mghp-home-more {
  margin-top: 0 !important;
}

@media (max-width: 781px) {
  .mghp-st-points {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mghp-st-price {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .mghp-st-price figure.wp-block-image img {
    max-width: 300px;
  }
}
/* ストリューションの進め方の図（添付 1471。SVG に差し替わる）。作業者の指摘（図の意味が分からない）を受け、図はそのままに、
   図の上に番号の印（1 戦略、2 問題解決、3 伴走）を置き、横（スマホでは下）に同じ番号の説明を並べる。
   印の位置は図に対する割合で決める */
.mghp-st-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  max-width: 1040px;
  margin: clamp(32px, 5vw, 48px) auto 0 !important;
}
.mghp-st-guide-figure {
  position: relative;
  margin: 0 !important;
  padding: clamp(10px, 1.5vw, 18px);
  border: 1px solid var(--mghp-line);
  border-radius: var(--mghp-radius);
  background: #fff;
}
.mghp-st-guide-figure figure.wp-block-image {
  margin: 0;
}
.mghp-st-guide-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.mghp-st-pin {
  position: absolute;
  z-index: 1;
  width: 32px;
  height: 32px;
  margin: 0 !important;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--mghp-ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  color: #fff;
  font-family: Lato, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
  transform: translate(-50%, -50%);
}
.mghp-st-pin--1 { left: 4%; top: 45%; }
.mghp-st-pin--2 { left: 92%; top: 22%; }
.mghp-st-pin--3 { left: 36%; top: 86%; }

/* 説明：番号の丸を、図の印と同じ見た目にする */
.mghp-st-legend {
  margin: 0 !important;
  padding: 0;
  list-style: none;
  counter-reset: mghp-legend;
}
.mghp-st-legend li {
  position: relative;
  margin: 0;
  padding: 0 0 0 46px;
  counter-increment: mghp-legend;
  color: var(--mghp-muted);
  font-size: 14px;
  line-height: 1.85;
  word-break: auto-phrase;
}
.mghp-st-legend li + li {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--mghp-line);
}
.mghp-st-legend li::before {
  content: counter(mghp-legend);
  position: absolute;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--mghp-ink);
  color: #fff;
  font-family: Lato, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 32px;
  text-align: center;
}
.mghp-st-legend li + li::before {
  top: 18px;
}
.mghp-st-legend strong {
  display: block;
  margin-bottom: 4px;
  color: var(--mghp-ink);
  font-family: Lato, "Noto Sans JP", sans-serif;
  font-size: 18px;
  line-height: 1.6;
}
@media (max-width: 900px) {
  .mghp-st-guide {
    grid-template-columns: 1fr;
    max-width: 640px;
  }
}
@media (max-width: 480px) {
  .mghp-st-pin {
    width: 26px;
    height: 26px;
    border-width: 2px;
    font-size: 13px;
    line-height: 22px;
  }
}
/* 別のタブで開くカード（WADZEE KRAFT。inc/lp.php）は、右下の矢印を「外へ開く」の印（Tabler Icons の external-link）に替える（作業者の指示） */
:is(.mghp-home-card, .mghp-home-other).has-link:has(> a.wp-block-group-vk-link[target="_blank"])::after {
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8161e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6h-6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-6'/%3E%3Cpath d='M11 13l9-9'/%3E%3Cpath d='M15 4h5v5'/%3E%3C/svg%3E");
}
:is(.mghp-home-card, .mghp-home-other).has-link:has(> a.wp-block-group-vk-link[target="_blank"]):is(:hover, :focus-within)::after {
  transform: translate(2px, -2px);
}
