/* 2026-07-13 responsibility refactor: page-specific layout only; shared tokens are referenced from magonote-common.css. Existing selectors remain compatible. */

/* page-first-guide.css
   対象: 100384_first-guide.json
   前提: magonote-common.css + magonote-icons.css
   方針: 「初めての方へ」の情報量を整理し、役割別の色・CTA順位・B2B向けの直線性を明確化する。
*/

.magonote-page--first-guide {
  --mgtop-hero-width: var(--mn-width-hero, 1180px);
  --mgtop-wrap: var(--mn-width-normal, 1120px);
  --mgtop-card-radius: var(--mn-radius-card, 16px);
  --mgtop-panel-radius: var(--mn-radius-panel, 18px);
  --mgtop-text-readable: var(--mn-text-readable, #43566F);
}

/* =========================================================
   セクションの役割と境界
   =========================================================
*/

.magonote-page--first-guide .page-section--hero {
  border-bottom: 1px solid rgba(0, 88, 216, 0.14);
}

.magonote-page--first-guide .page-section--trust {
  border-bottom: 1px solid rgba(7, 39, 96, 0.10);
  background: #F4F7FB;
}

.magonote-page--first-guide .page-section--tools {
  border-bottom: 1px solid rgba(0, 88, 216, 0.12);
  background: #FFFFFF;
}

.magonote-page--first-guide .page-section--free {
  border-bottom: 1px solid rgba(31, 155, 91, 0.18);
  background: linear-gradient(180deg, #F2FBF6 0%, #ECF9F2 100%);
}

.magonote-page--first-guide .page-section--plans {
  border-bottom: 1px solid rgba(217, 119, 6, 0.18);
  background: linear-gradient(180deg, #FFF9EF 0%, #FFF4DF 100%);
}

.magonote-page--first-guide .page-section--support {
  background: #F7F9FC;
}

.magonote-page--first-guide .mgtop-section-head--left {
  max-width: 900px;
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

.magonote-page--first-guide .mgtop-section-head p,
.magonote-page--first-guide .mgtop-entry-card small {
  color: var(--mgtop-text-readable);
}

/* =========================================================
   ヒーロー
   =========================================================
*/

.magonote-page--first-guide .mgtop-hero {
  padding-top: var(--mn-space-13, 48px);
  padding-bottom: 46px;
}

.magonote-page--first-guide .mgtop-hero__visual {
  padding: var(--mn-space-6, 18px);
  border-radius: var(--mgtop-panel-radius);
  background: radial-gradient(circle at 100% 0%, rgba(31, 155, 91, 0.09) 0, rgba(31, 155, 91, 0) 34%),
    linear-gradient(135deg, #FFFFFF 0%, #F4FAFF 100%);
  box-shadow: 0 14px 34px rgba(25, 78, 126, 0.10);
}

.magonote-page--first-guide .mgtop-hero__visual .mgtop-feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--mn-space-4, 12px);
  margin-top: 0;
}

.magonote-page--first-guide .mgtop-hero__visual .mgtop-mini-card {
  min-height: 112px;
  padding: var(--mn-space-6, 18px);
  border-left-width: 4px;
  border-radius: var(--mgtop-card-radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 7px 18px rgba(25, 78, 126, 0.06);
  text-decoration: none !important;
}

.magonote-page--first-guide .mgtop-mini-card--free {
  border-left-color: rgba(31, 155, 91, 0.72);
  background: linear-gradient(135deg, #FFFFFF 0%, #F2FBF6 100%) !important;
}

.magonote-page--first-guide .mgtop-mini-card--commercial {
  border-left-color: rgba(217, 119, 6, 0.72);
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF7E6 100%) !important;
}

.magonote-page--first-guide .mgtop-btn--trial {
  border: 1px solid var(--mn-commercial, #B55D00);
  background: var(--mn-commercial, #B55D00);
  color: #FFFFFF !important;
  box-shadow: 0 11px 24px rgba(217, 119, 6, 0.24);
}

.magonote-page--first-guide .mgtop-btn--trial:hover {
  background: var(--mn-commercial-hover, #934A00);
}

.magonote-page--first-guide .mgtop-btn--free {
  border: 1px solid var(--mgtop-mint);
  background: var(--mgtop-mint);
  color: #FFFFFF !important;
}

.magonote-page--first-guide .mgtop-btn--free:hover {
  background: var(--mgtop-mint-dark);
}

/* =========================================================
   カード・文字・一覧
   =========================================================
*/

.magonote-page--first-guide .mgtop-entry-grid {
  gap: var(--mn-space-5, 16px);
}

.magonote-page--first-guide .mgtop-entry-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.magonote-page--first-guide .mgtop-entry-card {
  min-height: 144px;
  padding: var(--mn-space-7, 20px);
  border-radius: var(--mgtop-card-radius);
  box-shadow: 0 7px 18px rgba(25, 78, 126, 0.07);
}

.magonote-page--first-guide .mgtop-entry-card:hover {
  box-shadow: 0 12px 24px rgba(25, 78, 126, 0.11);
}

.magonote-page--first-guide .mgtop-entry-card strong {
  font-size: 17px;
}

.magonote-page--first-guide .mgtop-entry-card small {
  font-size: var(--mn-font-base, 15px);
  line-height: var(--mn-line-readable, 1.7);
}

.magonote-page--first-guide .mgtop-entry-card__label {
  padding: 4px 9px;
  border-radius: var(--mn-radius-pill, 999px);
  font-size: var(--mn-font-caption, 12px);
}

.magonote-page--first-guide .page-section--trust .mgtop-entry-card {
  border-color: rgba(0, 88, 216, 0.16);
}

.magonote-page--first-guide .page-section--free .mgtop-entry-card {
  border-color: rgba(31, 155, 91, 0.22);
  background: #F7FFFB;
}

.magonote-page--first-guide .page-section--free .mgtop-entry-card__label {
  border-color: rgba(31, 155, 91, 0.22);
  background: var(--mgtop-mint-soft);
  color: var(--mgtop-mint-dark);
}

.magonote-page--first-guide .page-section--support .mgtop-entry-card {
  box-shadow: none;
}

.magonote-page--first-guide .mgtop-task-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mn-space-3, 10px);
  margin-top: var(--mn-space-8, 22px);
}

.magonote-page--first-guide .mgtop-task-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid rgba(0, 88, 216, 0.18);
  border-radius: var(--mn-radius-sm, 8px);
  background: #FFFFFF;
  color: var(--mgtop-blue-dark);
  font-size: var(--mn-font-note, 14px);
  font-weight: 800;
}

.magonote-page--first-guide .mgtop-guide-grid {
  margin-top: var(--mn-space-9, 24px);
}

.magonote-page--first-guide .mgtop-section-action {
  display: flex;
  justify-content: center;
  margin-top: var(--mn-space-9, 24px);
}

/* 探し方ガイド：548×188画像を背景装飾として使用 */
.magonote-page--first-guide .mgtop-guide-grid .mgtop-guide-card {
  position: relative;
  min-height: 188px;
  overflow: hidden;
  padding: 22px 44% 22px 22px;
  background-color: #FFFFFF;
  background-repeat: no-repeat;
  background-position: center, right center;
  background-size: 100% 100%, auto 100%;
  isolation: isolate;
}

.magonote-page--first-guide .mgtop-guide-grid .mgtop-guide-card--search {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(255,255,255,.96) 42%, rgba(255,255,255,.72) 59%, rgba(255,255,255,.04) 78%),
    url("https://magonotetools.com/wp-content/uploads/magonote-images/magonote_banner_first_guide_search_548x188.webp");
}

.magonote-page--first-guide .mgtop-guide-grid .mgtop-guide-card--reverse {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(255,255,255,.96) 42%, rgba(246,251,255,.72) 59%, rgba(246,251,255,.04) 78%),
    url("https://magonotetools.com/wp-content/uploads/magonote-images/magonote_banner_first_guide_reverse_548x188.webp");
}

.magonote-page--first-guide .mgtop-guide-grid .mgtop-guide-card > .mgtop-entry-card__label,
.magonote-page--first-guide .mgtop-guide-grid .mgtop-guide-card > strong,
.magonote-page--first-guide .mgtop-guide-grid .mgtop-guide-card > small {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .magonote-page--first-guide .mgtop-guide-grid .mgtop-guide-card {
    min-height: 188px;
    padding-right: 40%;
    background-position: center, right center;
  }
}

@media (max-width: 520px) {
  .magonote-page--first-guide .mgtop-guide-grid .mgtop-guide-card {
    padding: 18px 34% 18px 18px;
  }

  .magonote-page--first-guide .mgtop-guide-grid .mgtop-guide-card--search {
    background-image:
      linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(255,255,255,.97) 48%, rgba(255,255,255,.80) 64%, rgba(255,255,255,.10) 86%),
      url("https://magonotetools.com/wp-content/uploads/magonote-images/magonote_banner_first_guide_search_548x188.webp");
  }

  .magonote-page--first-guide .mgtop-guide-grid .mgtop-guide-card--reverse {
    background-image:
      linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(255,255,255,.97) 48%, rgba(246,251,255,.80) 64%, rgba(246,251,255,.10) 86%),
      url("https://magonotetools.com/wp-content/uploads/magonote-images/magonote_banner_first_guide_reverse_548x188.webp");
  }
}

/* =========================================================
   画像バナー導線
   =========================================================
*/

.magonote-page--first-guide .mgtop-banner-grid {
  display: grid;
  gap: 14px;
  align-items: stretch;
}

.magonote-page--first-guide .mgtop-banner-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.magonote-page--first-guide .mgtop-banner-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.magonote-page--first-guide .mgtop-image-banner {
  --mgtop-banner-label-bg: var(--mgtop-blue-soft);
  --mgtop-banner-label-color: var(--mgtop-blue-dark);
  --mgtop-banner-border: rgba(0, 88, 216, 0.18);
  position: relative;
  display: block;
  min-width: 0;
  height: 125px;
  margin-top: var(--mn-space-10, 28px);
  overflow: hidden;
  border: 1px solid var(--mgtop-banner-border);
  border-radius: var(--mn-radius-image, 14px);
  background: #FFFFFF;
  color: var(--mgtop-ink);
  text-decoration: none !important;
  box-shadow: 0 7px 18px rgba(25, 78, 126, 0.07);
  isolation: isolate;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.magonote-page--first-guide .mgtop-banner-grid .mgtop-image-banner {
  margin-top: 0;
}

.magonote-page--first-guide .mgtop-image-banner:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 111, 191, 0.38);
  box-shadow: 0 12px 24px rgba(25, 78, 126, 0.12);
}

.magonote-page--first-guide .mgtop-image-banner:focus-visible {
  outline: 3px solid rgba(0, 88, 216, 0.34);
  outline-offset: 3px;
}

.magonote-page--first-guide .mgtop-image-banner__media,
.magonote-page--first-guide .mgtop-image-banner__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.magonote-page--first-guide .mgtop-image-banner__media img {
  object-fit: cover;
  object-position: center;
}

.magonote-page--first-guide .mgtop-image-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.90) 36%, rgba(234,243,255,.62) 58%, rgba(234,243,255,.08) 76%);
}

.magonote-page--first-guide .mgtop-image-banner--green {
  --mgtop-banner-label-bg: var(--mgtop-mint-soft);
  --mgtop-banner-label-color: var(--mgtop-mint-dark);
  --mgtop-banner-border: rgba(31,155,91,.22);
}

.magonote-page--first-guide .mgtop-image-banner--green::after {
  background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.90) 36%, rgba(242,251,246,.64) 58%, rgba(242,251,246,.08) 76%);
}

.magonote-page--first-guide .mgtop-image-banner--orange {
  --mgtop-banner-label-bg: var(--mgtop-orange-soft);
  --mgtop-banner-label-color: var(--mgtop-orange-dark);
  --mgtop-banner-border: rgba(217,119,6,.28);
}

.magonote-page--first-guide .mgtop-image-banner--orange::after {
  background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.89) 36%, rgba(255,247,230,.66) 58%, rgba(255,247,230,.08) 76%);
}

.magonote-page--first-guide .mgtop-image-banner--trial-primary {
  border-width: 2px;
  border-color: var(--mn-commercial, #B55D00);
  box-shadow: 0 13px 28px rgba(217, 119, 6, 0.18);
}

.magonote-page--first-guide .mgtop-image-banner__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--mn-space-1, 4px);
  width: 64%;
  max-width: 390px;
  height: 100%;
  padding: 12px 15px;
}

.magonote-page--first-guide .mgtop-image-banner__label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid rgba(0,88,216,.16);
  border-radius: var(--mn-radius-pill, 999px);
  background: var(--mgtop-banner-label-bg);
  color: var(--mgtop-banner-label-color);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.magonote-page--first-guide .mgtop-image-banner strong {
  display: block;
  color: var(--mgtop-ink);
  font-size: clamp(16px, 1.45vw, 19px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.magonote-page--first-guide .mgtop-image-banner small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--mgtop-text-readable);
  font-size: var(--mn-font-caption, 12px);
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* =========================================================
   レスポンシブ
   =========================================================
*/

@media (max-width: 960px) {
  .magonote-page--first-guide .mgtop-banner-grid--two,
  .magonote-page--first-guide .mgtop-banner-grid--three {
    grid-template-columns: 1fr;
  }

  .magonote-page--first-guide .mgtop-image-banner__content {
    width: 58%;
  }
}

@media (max-width: 760px) {
  .magonote-page--first-guide .mgtop-hero {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .magonote-page--first-guide .mgtop-hero__visual .mgtop-feature-grid,
  .magonote-page--first-guide .mgtop-entry-grid--two {
    grid-template-columns: 1fr;
  }

  .magonote-page--first-guide .mgtop-entry-card {
    min-height: auto;
    padding: var(--mn-space-6, 18px);
  }

  .magonote-page--first-guide .mgtop-image-banner__content {
    width: 70%;
    padding-inline: 14px;
  }

  .magonote-page--first-guide .mgtop-section-action {
    justify-content: stretch;
  }

  .magonote-page--first-guide .mgtop-section-action .mgtop-btn {
    width: 100%;
  }
}


/* 2026-07-13 SVG placement map: layout only. */
.magonote-page--first-guide .mgtop-hero__visual .mgtop-mini-card--with-svg-icon {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--mn-space-3, 10px);
  align-items: center;
}

.magonote-page--first-guide .mgtop-hero__visual .mgtop-mini-card--with-svg-icon > .mn-svg-icon {
  grid-row: 1 / span 2;
  margin-bottom: 0;
}

.magonote-page--first-guide .mgtop-hero__visual .mgtop-mini-card--with-svg-icon > strong,
.magonote-page--first-guide .mgtop-hero__visual .mgtop-mini-card--with-svg-icon > span {
  grid-column: 2;
}

.magonote-page--first-guide .page-section--trust .mgtop-entry-card > .mn-svg-icon,
.magonote-page--first-guide .page-section--free .mgtop-entry-card > .mn-svg-icon,
.magonote-page--first-guide .page-section--support .mgtop-entry-card > .mn-svg-icon {
  align-self: flex-start;
  margin-bottom: var(--mn-space-3, 10px);
}
/* =========================================================
   2026-07-15 visual revision
   - missing-image fallbacks
   - guide banner visibility
   - free / trial / support card balance
   - section density
   ========================================================= */

/* セクション間の空白を抑え、ページの流れをつなげる */
.magonote-page--first-guide .page-section--trust {
  padding-bottom: 48px;
}

.magonote-page--first-guide .page-section--tools {
  padding-top: 48px;
  padding-bottom: 52px;
}

.magonote-page--first-guide .page-section--free,
.magonote-page--first-guide .page-section--plans,
.magonote-page--first-guide .page-section--support {
  padding-top: 48px;
  padding-bottom: 48px;
}

/* ヒーロー4カードの画像を同じ寸法で安定表示 */
.magonote-page--first-guide .mgtop-hero__visual .mn-webp-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

/* 3つの検索導線は右側の画像を見せる */
.magonote-page--first-guide .page-section--tools .mgtop-banner-grid--three .mgtop-image-banner__media img {
  object-position: right center;
}

.magonote-page--first-guide .page-section--tools .mgtop-banner-grid--three .mgtop-image-banner::after {
  background: linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(255,255,255,.94) 39%, rgba(234,243,255,.56) 60%, rgba(234,243,255,.02) 84%);
}

/* 探し方ガイド2枚は画像付き横長バナーとして認識できる濃さにする */
.magonote-page--first-guide .mgtop-guide-grid .mgtop-guide-card {
  min-height: 168px;
  padding-right: 42%;
  border-color: rgba(0, 88, 216, 0.18);
  background-size: 100% 100%, auto 100%;
}

.magonote-page--first-guide .mgtop-guide-grid .mgtop-guide-card--search {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(255,255,255,.96) 39%, rgba(255,255,255,.63) 57%, rgba(255,255,255,.02) 80%),
    url("https://magonotetools.com/wp-content/uploads/magonote-images/magonote_banner_first_guide_search_548x188.webp");
}

.magonote-page--first-guide .mgtop-guide-grid .mgtop-guide-card--reverse {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(255,255,255,.96) 39%, rgba(246,251,255,.63) 57%, rgba(246,251,255,.02) 80%),
    url("https://magonotetools.com/wp-content/uploads/magonote-images/magonote_banner_first_guide_reverse_548x188.webp");
}

/* 無料3カードの画像領域をそろえる */
.magonote-page--first-guide .page-section--free .mgtop-entry-grid--free {
  align-items: stretch;
}

.magonote-page--first-guide .page-section--free .mgtop-entry-card {
  min-height: 190px;
}

.magonote-page--first-guide .page-section--free .mgtop-entry-card > .mn-svg-icon {
  --mn-svg-icon-size: 76px !important;
}

/* もぐらは表示確認済みの横長バナーをカード背景として使用 */
.magonote-page--first-guide .page-section--free .mgtop-entry-card--mogura {
  position: relative;
  overflow: hidden;
  padding-right: 42%;
  border-color: rgba(31, 155, 91, 0.25);
  background-color: #F7FFFB;
  background-image:
    linear-gradient(90deg, rgba(247,255,251,.99) 0%, rgba(247,255,251,.97) 48%, rgba(247,255,251,.70) 66%, rgba(247,255,251,.06) 88%),
    url("https://magonotetools.com/wp-content/uploads/magonote-images/magonote_banner_mogura_1095x188.webp");
  background-repeat: no-repeat;
  background-position: center, right center;
  background-size: 100% 100%, auto 100%;
}

/* 大型トライアル画像は右側のイラストを中心に見せる */
.magonote-page--first-guide .mgtop-image-banner--trial-primary .mgtop-image-banner__media img {
  object-position: 68% center;
}

.magonote-page--first-guide .mgtop-image-banner--trial-primary::after {
  background: linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(255,249,239,.97) 44%, rgba(255,244,223,.76) 62%, rgba(255,244,223,.08) 88%);
}

/* FAQ・要望・問い合わせはCSSアイコンで欠けを防ぐ */
.magonote-page--first-guide .mgtop-support-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 10px;
  border: 1px solid rgba(0, 88, 216, 0.16);
  border-radius: 18px;
  background: linear-gradient(145deg, #FFFFFF 0%, #EDF5FF 100%);
  color: #0B4FAE;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 7px 18px rgba(25, 78, 126, 0.07);
}

.magonote-page--first-guide .mgtop-support-icon::before {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.magonote-page--first-guide .mgtop-support-icon--faq::before {
  content: "?";
}

.magonote-page--first-guide .mgtop-support-icon--request::before {
  content: "+";
}

.magonote-page--first-guide .mgtop-support-icon--contact::before {
  content: "✉";
  font-size: 30px;
}

.magonote-page--first-guide .page-section--support .mgtop-entry-card {
  min-height: 184px;
  border-color: rgba(0, 88, 216, 0.14);
  background: #FFFFFF;
  box-shadow: 0 7px 18px rgba(25, 78, 126, 0.06);
}

@media (max-width: 760px) {
  .magonote-page--first-guide .page-section--trust,
  .magonote-page--first-guide .page-section--tools,
  .magonote-page--first-guide .page-section--free,
  .magonote-page--first-guide .page-section--plans,
  .magonote-page--first-guide .page-section--support {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .magonote-page--first-guide .mgtop-guide-grid .mgtop-guide-card {
    min-height: 160px;
    padding-right: 38%;
  }

  .magonote-page--first-guide .page-section--free .mgtop-entry-card--mogura {
    min-height: 176px;
    padding-right: 36%;
    background-image:
      linear-gradient(90deg, rgba(247,255,251,.99) 0%, rgba(247,255,251,.96) 58%, rgba(247,255,251,.40) 84%, rgba(247,255,251,.04) 100%),
      url("https://magonotetools.com/wp-content/uploads/magonote-images/magonote_banner_mogura_1095x188.webp");
  }
}
