:root {
  --color-text: #222222;
  --color-text-light: #444444;
  --ink-strong: #222222;
  --ink-muted: #444444;
  --bg: #ffffff;
  --bg-alt: #EAEAEA;
  --color-white: #ffffff;
  --color-border: #000000;
  --brand: #4A9CC1;
  --brand-grad: linear-gradient(to bottom, #4A9CC1, #4A9CC1, #316e88);
  --brand-contrast: #ffffff;
  --transition-fast: 0.2s ease;
  --container-max: 1120px;
  --fs-title: 22px;
  --fs-body: 16px;
  --fs-small: 14px;
  --lh-title: 1.4;
  --lh-body: 1.9;
  --ls-title: 0;
  --ls-body: 0;
  --ls-small: 0;
  --ink-body: #222222;
  --bg-soft: #EAEAEA;
  --radius-card: 16px;
  --radius-btn: 10px;
  --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.10);
  --shadow-hero: 0 16px 46px rgba(0, 0, 0, 0.18);
  --font-body: "Noto Sans JP";
  --font-heading: "Noto Sans JP", "Avenir", var(--font-body);
}

/* ====================== */
/* ヘッダー */
/* ====================== */
.header-oshivo .header-actions-pc {
  display: flex;
  align-items: center;
}

.header.header-oshivo .header-actions-fixed--oshivo-default {
  display: block;
  position: fixed;
  right: 16px;
  z-index: 1500;
}

@media (min-width: 769px) {
  .header.header-oshivo .header-actions-fixed--oshivo-default {
    display: none;
  }
}



/* background: linear-gradient(to top, #4A9CC1 0%, #75C0C7 50%, #1A7DAC 100%); */
.txt-small {
  font-size: var(--fs-small);
}

strong.underline-brand {
  font-weight: 700;
  border-bottom: 5px solid #1EBCE9;
  padding-bottom: 2px;
  background: none;
}

strong.em-brand {
  color: var(--brand);
  font-weight: 700;
}

strong.em-bold {
  color: #000;
  font-weight: 700;
}

.logo-image {
  height: 70px;
}

@media (max-width: 768px) {
  .logo-image {
    height: 50px;
  }
  
}


.container {
  width: min(var(--container-max), calc(100% - 24px));
  margin: 0 auto;
}

.section-header {
  margin-bottom: 32px;
  text-align: center;
}

.section-title {
  font-size: 38px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink-strong);
  margin: 0 0 10px;
}

.section-subtitle {
  font-size: 18px;
  margin: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 8px;
  background: var(--brand-grad);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background-color: #d32376;
  color: #e5e5e5;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.btn--primary {
  background: var(--brand);
  color: var(--brand-contrast);
}

.btn--primary:hover {
  transform: translateY(-1px);
  background-color: #d32376;
  color: #e5e5e5;
}

.br-440 {
  display: none;
}

/* ====================== */
/* セクションヘッダー */
/* ====================== */
.section--alt {
  background: var(--bg-alt);
}

.section__header {
  text-align: center;
  margin: 0 0 34px;
}

.section__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.25;
  display: inline-block;
  position: relative;
  padding-bottom: 14px;
}

.section__title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 40px;
  /* ← 短いアンダーライン */
  height: 6px;
  background-color: #000;
  transform: translateX(-50%);
}


@media (max-width: 768px) {
  .section__header {
    margin: 0 0 34px;
  }
  
  .section__title {
    font-weight: 700;
    font-size: 30px;
    line-height: 1.25;
    padding-bottom: 14px;
  }
  
  
}
@media (max-width: 440px) {
  .section__header {
    margin: 0 0 34px;
  }
  
  .section__title {
    font-weight: 700;
    line-height: 1.25;
    padding-bottom: 14px;
    font-size: 24px;
  }
}


/* ====================== */
/* HERO */
/* ====================== */
.hero {
  padding: 70px 0;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0px;
  align-items: center;
}

.hero-title {
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--ink-strong);
  padding: 0;
}

.hero-title .em-brand {
  font-size: 52px;
  font-weight: 800;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 32px;
}

.hero-subtitle .em-brand {
  font-size: 48px;
  font-weight: 800;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-actions .btn-primary {
  font-size: 18px;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text-light);
  margin: 0 0 22px;
}

.hero-lead-line {
  display: block;
  position: relative;
  padding-left: 1.2em;
}

.hero-lead-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid var(--brand);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: image-set(url(/static/front/img/agm/hero/hero_pc02.png) type("image/webp"), url(/static/front/img/agm/hero/hero_pc01.png) type("image/png")) center / cover no-repeat;
  z-index: 1;
}

@media (max-width: 768px) {
  .hero__bg {
    background: image-set(url(/static/front/img/agm/hero/hero_sp01.png) type("image/webp"), url(/static/front/img/agm/hero/hero_pc01.png) type("image/png")) center / cover no-repeat;
    height: initial;
  }
  
}

@media (max-width: 768px) {
  .hero {
    align-items: start;
    padding-top: 0px;
  }
  /* 文字ブロックを上に固める */
  .hero-inner {
    display: block;
  }

  .hero .container {
    padding-top: 32px; /* 24px → 32px に増やす */
  }

  /* 文字サイズを一段階だけ縮小 */
  .hero-title {
    font-size: 26px;
    line-height: 1.25;
    margin-bottom: 12px;
  }

  .hero-title .em-brand {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 26px;
  }

  .hero-subtitle .em-brand {
    font-size: 38px;
  }

  .hero-lead {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 18px;
  }

  .hero-actions .btn-primary {
    font-size: 16px;
    padding: 14px 24px;
  }
  .br-440 {
    display: none;
  }
}


@media (max-width: 440px) {
  .hero .container {
    display: flex;
    justify-content: center;
    padding: 24px 0px 0px 0px ;
    height: initial;
  }
  .hero-content {
    display: initial;
    text-align: center;
  }
  .br-440 {
    display: block;
  }
  .hero-title {
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 10px;
  }

  .hero-title .em-brand {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 22px;
  }

  .hero-subtitle .em-brand {
    font-size: 24px;
  }

  .hero-lead {
    font-size: 13px;
    line-height: 1.7;
    display: inline-block;
    text-align: left;
    padding: 0 12px;
    max-width: 92%;
    margin: 0 auto 18px;
  }
  .hero-lead-line::before {
    top: 4px;
    left: -5px;
  }

  .hero-actions .btn-primary {
    font-size: 15px;
    padding: 12px 20px;
  }



}

/* ====================== */
/* about */
/* ====================== */
.about {
  padding: 90px 0
}

.about-txt {
  text-align: center;
  font-size: 22px;
}
@media (max-width: 768px) {

  .about {
    padding: 40px 0;
  }
  .about-txt {
    text-align: left;
    font-size: 17px;
    line-height: 1.8;
    padding: 0 20px;
  }

  .about-txt p {
    margin: 0 0 20px;
  }
}
@media (max-width: 440px) {
  .about {
    padding: 30px 0;
  }
  .about-txt {
    font-size: 15px;
    line-height: 1.85;
  }

  .about-txt p {
    margin: 0 0 18px;
  }
}



/* ====================== */
/* features */
/* ====================== */
.features {
  background: url(/static/front/img/agm/features/feature-bg02.png) top center / cover no-repeat, var(--bg);
  padding-block: 64px;
}

.features__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  /* background: #fff; */
  border-radius: 12px;
}

.feature-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  justify-content: center;
}

.feature-card__title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
  /* text-align: center; */
  color: #fff;
  background: var(--brand);
  border-radius: 30px;
  padding: 6px;
  width: 200px;
  text-align: center;
  margin: 0 auto;
}

.feature-card__text {
  line-height: 1.8;
}

.feature-card-icon {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feature-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.features__list {
  position: relative;
}

.feature-card:not(:first-child) {
  position: relative;
}

.feature-card:not(:first-child)::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e8e8e8;
}

@media (max-width: 768px) {
  .feature-card:not(:first-child)::before {
    display: none;
  }
  
  .features__list {
    grid-template-columns: 1fr;
  }
  .features {
    padding-block: 0;
  }
}



/* ====================== */
/* 活用シーン（交互レイアウト） */
/* ====================== */
.usecases {
  background: url(/static/front/img/agm/usecase/usecase-bg01.png) top center / cover no-repeat, var(--bg-alt);
  padding-bottom: 100px;
}

.usecase-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 80px;
}

.usecase {
  --card-h: 370px;
  --overlap-x: 40px;
  --text-drop: 40px;
  --media-x: 0px;
  --text-x: 0px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  overflow: visible;
}

/* ---------- PC：交互配置 ---------- */
.usecase:nth-child(odd) .usecase__media {
  order: 1;
}
.usecase:nth-child(odd) .usecase__text {
  order: 2;
}
.usecase:nth-child(odd) {
  --media-x: var(--overlap-x);
  --text-x: calc(var(--overlap-x) * -1);
}

.usecase:nth-child(even) .usecase__media {
  order: 2;
}
.usecase:nth-child(even) .usecase__text {
  order: 1;
}
.usecase:nth-child(even) {
  --media-x: calc(var(--overlap-x) * -1);
  --text-x: var(--overlap-x);
}

/* ---------- テキストカード ---------- */
.usecase__text {
  background: #fff;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 1;
  height: var(--card-h);
  padding: 32px 42px;
  transform: translate(var(--text-x), var(--text-drop));
  border-radius: 14px;
}

.usecase__text .card__title {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--brand);
  font-size: 28px;
  line-height: 1.4;
}

.usecase__text .card__text {
  margin: 0;
  color: var(--color-text-light);
  font-size: 16px;
}

/* ---------- メディア ---------- */
.usecase__media {
  background: #fff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
  z-index: 2;
  height: var(--card-h);
  min-height: 320px;
  transform: translateX(var(--media-x));
  border-radius: 14px;
  padding: 8px;
}

.usecase__media .card__media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

/* ---------- 重なり補正 ---------- */
.usecase:nth-child(odd) .usecase__text {
  padding-left: calc(60px + var(--overlap-x));
}
.usecase:nth-child(even) .usecase__text {
  padding-right: calc(60px + var(--overlap-x));
}

/* ====================== */
/* Responsive（SP） */
/* ====================== */
@media (max-width: 768px) {

  .usecases {
    padding-bottom: 40px;
  }
  /* グリッドを縦積み */
  .usecase {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    --media-x: 0px;
    --text-x: 0px;
    border-radius: 12px;
    padding: 18px;
    background: #fff;
  }

  /* テキストカードを分解 */
  .usecase__text {
    display: contents;
    transform: none;
    padding: 0;
    height: auto;
    box-shadow: none;
    background: transparent;
  }

  /* 並び順制御 */
  .usecase__text .card__title {
    order: 1;
    padding: 0 20px;
    margin-bottom: 0;
  }

  .usecase__media {
    order: 2;
    transform: none;
    height: auto;
    min-height: 0;
    margin: 12px 20px;
    padding: 0;
  }

  .usecase__text .card__text {
    order: 3;
    padding: 0 20px;
  }

  /* タイトルの <br> を無効化（1行表示） */
  .usecase__text .card__title br {
    display: none;
  }

  .usecase__media .card__media {
    height: auto;
    aspect-ratio: 16 / 10;
  }
  .usecase-list {
    gap: 40px;
  }
}



.onboarding-flow {
  --flow-gap: 26px;
  gap: var(--flow-gap);
  grid-template-columns: 1fr;
}

.onboarding-flow__item {
  position: relative;
  padding-left: 96px;
  min-height: 56px;
}

/* .onboarding-flow__item::after{ content: ""; position: absolute; left: 56px; top: 28px; width: 34px; height: 4px; background: var(--brand); border-radius: 999px; } */
.onboarding-flow__item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 33px;
  top: 56px;
  bottom: calc(-1 * var(--flow-gap));
  width: 3px;
  background: var(--brand);
  border-radius: 999px;
}

.onboarding-flow__marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 70px;
  height: 70px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 22px;
  line-height: 1;
  flex-direction: column;
}

.onboarding-flow__marker .step-label {
  font-size: 12px;
  line-height: 1.1;
}

.onboarding-flow__marker .step-number {
  font-size: 22px;
  line-height: 1.1;
  height: 24px;
}

.onboarding-flow__card {
  border-bottom: 1px solid #55a6c2;
  padding: 0px 18px 18px 0px;
  margin-bottom: 18px;
}

.onboarding-flow__title {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--brand);
  font-size: 20px;
  line-height: 1.35;
}

.onboarding-flow__text {
  margin: 0;
  color: var(--color-text-light);
  font-size: 16px;
  line-height: 1.8;
}

@media (max-width: 440px) {
  .onboarding-flow {
    --flow-gap: 22px;
  }

  .onboarding-flow__item {
    padding-left: 84px;
    min-height: 48px;
  }

  .onboarding-flow__marker {
    width: 48px;
    height: 48px;
    font-size: 14px;
  }

  .onboarding-flow__item::after {
    left: 48px;
    top: 24px;
    width: 28px;
    height: 3px;
  }

  .onboarding-flow__item:not(:last-child)::before {
    left: 22px;
    top: 48px;
    width: 3px;
  }

  .onboarding-flow__title {
    font-size: 16px;
  }

  .onboarding-flow__text {
    font-size: 14px;
  }
}

/* ====================== */
/* HOW TO USE */
/* ====================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.step-card {
  position: relative;
  border-radius: 14px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 0px 0px 0px 0px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.step-badge {
  position: absolute;
  top: -24px;
  left: 20px;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-contrast);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.step-label {
  font-size: 12px;
  line-height: 1.1;
}

.step-number {
  font-size: 22px;
  line-height: 1.1;
  height: 24px;
}

.step-title-wrap {
  padding: 24px 24px 24px 24px;
  text-align: center;
}

.step-title {
  margin: 0;
  font-size: var(--fs-title);
  font-weight: 900;
  color: var(--ink-strong);
}

.step-image {
  background: var(--bg);
  overflow: hidden;
}

.step-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.step-text-wrap {
  padding: 24px 24px 24px 24px;
}

.step-text {
  margin: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--ink-body);
}

.notes {
  margin-top: 26px;
  border-radius: 14px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 18px 20px;
}

.notes-title {
  margin: 0 0 10px;
  font-size: var(--fs-title);
  font-weight: 900;
  color: var(--ink-strong);
}

.notes-list {
  margin: 0;
  padding-left: 1.2em;
  font-size: var(--fs-small);
  color: var(--color-text-light);
}

.notes-list li+li {
  margin-top: 6px;
}

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

  .step-badge {
    top: -30px;
    left: -10px;
  }

  .step-label {
    font-size: 12px;
  }

  .step-number {
    font-size: 22px;
  }

  .step-image {
    max-height: 450px;
  }
}

@media (max-width: 440px) {
  .step-card {
    padding-top: 0px;
  }

  .step-title {
    font-size: calc(var(--fs-title) - 2px);
  }

  .step-text {
    font-size: calc(var(--fs-body) - 2px);
  }

  .notes-title {
    font-size: calc(var(--fs-title) - 2px);
  }

  .notes-list {
    font-size: calc(var(--fs-small) - 2px);
  }
}






/* ====================== */
/* CTAミドル */
/* ====================== */
/* CTA Section */
.cta-section {
  background: url("/static/front/img/gachacard/top/cta/cta-bg.png") center/cover no-repeat;
  padding: 40px 20px;
  text-align: center;
  color: #ffffff;
}

/* 上部の細いラベル（参考画像の上段イメージ） */
.cta-label {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  opacity: 0.9;
}

/* メインタイトル（白く大きい文字） */
.cta-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 18px;
}

/* 強調部分（黄色） */
.cta-title .highlight {
  font-size: 30px;
  font-weight: 800;
  color: #ffe600;
}

/* 小さめの補足文 */
.cta-sub {
  font-size: 20px;
  margin-bottom: 32px;
  opacity: 0.95;
  color: #000;
}

/* 中央寄せコンテナ */
.cta-inner {
  /* max-width: 780px; */
  margin: 0 auto;
}

/* ボタンコンテナ */
.cta-buttons {
  display: flex;
  justify-content: center;
}

/* 白ボタン */
.btn-contact {
  display: inline-flex;
  align-items: center;
  padding: 19px 60px;
  background-color: #ffffff;
  color: #333333;
  border-radius: 6px;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
  justify-content: center;
}

/* ボタンのアイコン */
.btn-contact .icon-mail {
  width: 22px;
  height: 22px;
  margin-right: 12px;
}

/* Hover */
.btn-contact:hover {
  background-color: #f2f2f2;
}



/* ====================== */
/* CTAボトム */
/* ====================== */

.cta-section#cta-bottom {
  background: url("/static/front/img/agm/cta/cta-bg02.png") center/cover no-repeat;
  padding: 48px 20px;
  text-align: center;
  color: #ffffff;
}

/* 上段ラベル */
.cta-label {
  font-size: 25px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #ffffff;
  text-shadow: 0 5px 6px rgba(0, 0, 0, 0.7);
}

/* メインタイトル全体 */
.cta-title {
  font-size: 25px;
  line-height: 1.5;
  font-weight: 600;
  text-shadow: 0 5px 6px rgba(0, 0, 0, 0.7);
}

/* 白背景の強調ブロック */
.cta-title .highlight {
  display: inline-block;
  background-color: #ffffff;
  color: #1f2f55; /* 濃紺（画像に近い推定値） */
  font-size: 34px;
  font-weight: 800;
  padding: 18px 28px;
  border-radius: 4px;
  margin-bottom: 16px;
  text-shadow: none;
}

/* 下段説明文（白文字） */
.cta-title br + span,
.cta-title {
  color: #ffffff;
}

/* ====================== */
/* スマホ対応 */
/* ====================== */
@media (max-width: 768px) {

  .cta-section#cta-bottom {
    padding: 28px 16px;
  }

  .cta-label {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .cta-title {
    font-size: 18px;
    line-height: 1.6;
  }

  .cta-title .highlight {
    font-size: 22px;
    padding: 14px 16px;
    border-radius: 8px;
  }
}




.footer {
  background: #000000;
  color: #ffffff;
  padding: 38px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.footer__brand {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 18px;
}

.footer__copyright {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

.footer__link {
  color: #ffffff;
  text-decoration: underline;
  font-size: 14px;
}