/* 配色とページ共通の基本設定 */
:root {
  --navy: #032d60;
  --blue: #075db4;
  --accent: #0176d3;
  --accent-hover: #014486;
  --muted: #526b80;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 11rem;
}

body {
  min-width: 320px;
}

.l-wrapper {
  background: #f2f9ff;
}

.business-main,
.business-brand-banner {
  color: #243f5b;
  font-family: "Noto Sans JP", "Inter", sans-serif;
  line-height: 1.6;
}

.business-main h1,
.business-main h2,
.business-main h3 {
  font-weight: 700;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #60a5fa;
  outline-offset: 3px;
}

/* コンテンツ幅 */
.container {
  width: min(100% - 3rem, 80rem);
  margin-inline: auto;
}

.container-medium {
  max-width: 64rem;
}

.container-small {
  max-width: 56rem;
}

.container-form {
  max-width: 48rem;
}

/* 共通ボタン */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .375rem 1rem .625rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  font-size: .875rem;
  font-weight: 700;
  text-align: center;
  transition: background-color .2s, transform .2s;
}

.button-outline {
  border-color: var(--blue);
  color: var(--blue);
  background: #fff;
}

.button-outline:hover {
  background: #e7f5ff;
}

.button-accent {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 4px 6px rgba(15, 23, 42, .12);
}

.button-accent:hover {
  background: var(--accent-hover);
}

.button-large {
  padding: .875rem 2rem 1.125rem;
  border-radius: .75rem;
  font-size: 1rem;
}

/* ヒーロー：背景・動画 */
.hero {
  position: relative;
  isolation: isolate;
  padding-top: 8.3125rem;
  margin-top: -10.3125rem;
  overflow: hidden;
  color: var(--navy);
  background: linear-gradient(135deg, rgb(187, 239, 255) 30%, rgb(166, 221, 255) 65%, rgb(82, 176, 239));
}

.hero-video,
.hero::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-video {
  z-index: -2;
  object-fit: cover;
  object-position: left top;
  transform-origin: left top;
  transform: translate3d(0, var(--hero-video-offset, 0px), 0) scale(1.15);
  will-change: transform;
  backface-visibility: hidden;
}

.hero::before {
  content: "";
  z-index: -1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 30%, rgba(213, 240, 255, 0.55) 65%, rgba(217, 143, 249, 0));
}

/* ヒーロー：動画の再生操作 */
.hero-video-controls {
  padding: .5rem 0 1rem;
  text-align: right;
}

.hero-video-controls[hidden] {
  display: none;
}

.hero-video-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.hero-video-label {
  padding: .125rem .5rem .375rem;
  border: 1px solid rgba(255, 255, 255, 0);
  border-radius: .35rem;
  background: rgba(255, 255, 255, .25);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--navy);
  font-size: .75rem;
  font-weight: normal;
}

.hero-video-track {
  position: relative;
  width: 56px;
  height: 30px;
  flex: none;
  border-radius: 999px;
  background: #64748b;
}

.hero-video-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
}

.hero-video-toggle[aria-checked="true"] .hero-video-track {
  background: var(--accent);
}

.hero-video-toggle[aria-checked="true"] .hero-video-track::after {
  transform: translateX(26px);
}

@media (forced-colors: active) {
  .hero-video-track {
    border: 2px solid ButtonText;
  }

  .hero-video-track::after {
    background: ButtonText;
  }
}

/* ヒーロー：ページ内ナビゲーションとボタン */
.hero-navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem 2rem;
  margin-top: 0.75rem;
  margin-bottom: 2rem;
}

.hero-nav,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem 1.5rem;
}

.hero-nav {
  color: var(--navy);
  font-size: .875rem;
  font-weight: 700;
}

.hero-nav a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.hero-actions {
  gap: .75rem;
}

/* ヒーロー：見出し・説明文 */
.hero-grid {
  display: grid;
  grid-template-columns: 8.5fr 4fr;
  align-items: center;
  gap: 3rem;
}

/* 共通ラベル：ヒーロー・学習領域 */
.hero-label,
.content-tag,
.content-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .25rem .75rem .5rem;
  border: 1px solid #b7daf4;
  border-radius: 999px;
  background: rgba(216, 239, 255, .5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--blue);
  font-size: .75rem;
  font-weight: 700;
}

.hero-label {
  /* border-color: rgba(79, 133, 145, 0.5); */
  border: none;
  border-radius: 0;
  color: #eefbff;
  font-size: 1.5rem;
  -webkit-backdrop-filter: blur(4px) brightness(.01);
  backdrop-filter: blur(4px) brightness(.01);
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.content-tag::before,
.content-badge::before {
  content: "";
}

.hero-label span,
.content-tag::before,
.content-badge::before {
  width: .5rem;
  height: .5rem;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
}

.hero h2 {
  margin-top: 1.5rem;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.25;
  letter-spacing: -.025em;
}

.hero-highlight {
  background: linear-gradient(to right, rgba(254, 29, 220, 0.2), rgba(255, 2, 112, 0.2)) left 81.82% / 100% 45% no-repeat;
}

.hero-opening-quote,
.hero-quote-left {
  margin-left: -1.5rem;
}

.hero-quote-right {
  margin-right: -1.5rem;
}

.hero-description {
  margin-top: 1.5rem;
  color: #344f68;
  font-size: 1.125rem;
  line-height: 1.7;
}

.hero-button {
  margin-top: 2.5rem;
}

.hero-button:hover {
  transform: translateY(-2px);
}

/* ヒーロー：実績 */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid #c5ddec;
  border-bottom: 1px solid #c5ddec;
  color: #344f68;
  font-size: 1rem;
  text-align: center;
}

.hero-stats strong {
  color: var(--accent);
  font-size: 1.6rem;
}

.hero-stats>div {
  padding: .125rem .75rem .375rem;
  border-radius: .35rem;
  background: rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(4px) brightness(1.2);
  backdrop-filter: blur(4px) brightness(1.2);
}

/* ヒーロー：ダッシュボードプレビュー */
.dashboard {
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.25);

  -webkit-backdrop-filter: blur(4px) brightness(1.2);
  backdrop-filter: blur(4px) brightness(1.2);
  box-shadow: 0 20px 45px rgba(3, 45, 96, .12);
}

.dashboard .dashboard-label {
  display: block;
  margin: 0 0 .5rem;
  color: var(--blue);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-align: center;
  text-transform: uppercase;
}

.dashboard-screen {
  padding: 1rem;
  border-radius: .5rem;
  background: rgba(220, 240, 255, .72);
  mix-blend-mode: multiply;
  font-size: .75rem;
}

.dashboard-heading,
.dashboard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.dashboard-heading {
  padding-bottom: .5rem;
  border-bottom: 1px solid #c9dfef;
  color: #526b80;
}

.dashboard-row {
  margin-top: .5rem;
  padding: .625rem .75rem .875rem;
  border-radius: .25rem;
  background: #fff;
}

.dashboard-row strong {
  color: var(--blue);
  white-space: nowrap;
}

.dashboard-row .status-green,
.status-green {
  color: #246b45;
}

.dashboard-row-highlight {
  border: 1px solid #9bcdf0;
  animation: dashboard-row-glow 3.2s ease-in-out infinite;
}

@keyframes dashboard-row-glow {

  0%,
  100% {
    border-color: #9bcdf0;
    box-shadow: 0 0 2px rgba(1, 118, 211, .12);
  }

  50% {
    border-color: #d6fcff;
    box-shadow: 0 0 12px rgba(1, 118, 211, .42);
  }
}

.dashboard-badge {
  flex: none;
  padding: .0625rem .5rem .1875rem;
  border-radius: .25rem;
  background: var(--blue);
  color: #fff;
  font-size: .625rem;
}

/* 画像の配置予定枠 */
.image-placeholder {
  display: grid;
  place-items: center;
  border: 1px dashed #8db4d0;
  border-radius: .5rem;
  background: #edf7fd;
  color: #526b80;
  font-size: .75rem;
}

.hero-image {
  display: block;
  width: 100%;
  height: 7rem;
  margin-top: 1rem;
  border-radius: .5rem;
  object-fit: cover;
  object-position: center center;
}

/* セクション共通 */
.section {
  padding: 5rem 0;
}

.section-white {
  background: #fff;
}

.section-muted {
  background: #f2f9ff;
}

/* セクション見出し・英語ラベル */
.section-heading {
  max-width: 48rem;
  margin: 0 auto 4rem;
  text-align: center;
}

.section-heading>p:first-child {
  color: var(--blue);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.gradient-label {
  display: inline-block;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .gradient-label {
    background: linear-gradient(90deg, #7437b5, #0054bf, #007da6, #007f78);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

@media (forced-colors: active) {
  .gradient-label {
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}

.section-heading h2 {
  margin-top: .5rem;
  color: var(--navy);
  font-size: 1.875rem;
  line-height: 1.35;
}

/* 3列グリッド */
.grid-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

/* 人材育成の課題 */
.problems {
  padding: 4rem 0;
  text-align: center;
}

.problems h2 {
  margin-bottom: 2rem;
  color: var(--navy);
  font-size: 1.875rem;
  line-height: 1.4;
}

.problem-grid {
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

/* 課題・特徴・導入ステップ・学習領域のカード共通 */
.problem-card,
.feature-card,
.flow-card,
.content-card {
  border: 1px solid #d5e8f4;
  border-radius: 1rem;
}

/* 課題カード */
.problem-card {
  padding: 1.5rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}

/* カードの説明文 */
.problem-card p,
.feature-card p,
.flow-card p,
.content-card p {
  color: #475569;
  font-size: .875rem;
  line-height: 1.7;
}

/* 課題の解決メッセージ */
.problem-solution {
  display: inline-block;
  padding: .875rem 2rem 1.125rem;
  border-radius: .75rem;
  color: #fff;
  font-size: 1.5rem;
  background: var(--navy);
  font-weight: 700;
  box-shadow: 0 4px 6px rgba(15, 23, 42, .12);
}

/* 特徴・導入ステップのカード */
.feature-card,
.flow-card {
  padding: 2rem;
  background: #f5faff;
}

/* カード共通の番号と見出し */
.problem-heading,
.feature-heading,
.flow-heading,
.content-heading {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}

.problem-number,
.feature-number,
.flow-number,
.content-number {
  display: grid;
  place-items: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #d8efff;
  color: var(--blue);
  font-size: 1.25rem;
  font-weight: 700;
}

.feature-number-accent {
  background: #d8efff;
  color: var(--blue);
}

.feature-card h3,
.flow-card h3,
.content-card h3 {
  margin-bottom: .75rem;
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.4;
}

.problem-card .problem-heading h3,
.feature-card .feature-heading h3,
.flow-card .flow-heading h3,
.content-card .content-heading h3 {
  min-width: 0;
  margin: 0;
  padding-left: .75rem;
  border-left: 1px solid currentColor;
  font-size: 1.125rem;
  line-height: 1.4;
}

.problem-card .problem-heading h3 {
  color: var(--blue);
}

/* 学習領域のカード */
.content-card {
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}

.content-card-highlight {
  border-color: #91c9ef;
}

.content-image {
  --image-scale: 1;
  position: relative;
  z-index: 0;
  aspect-ratio: 8 / 3;
  overflow: hidden;
  border-radius: 1rem 1rem 0 0;
  margin: -2rem -2rem 1.5rem;
}

.content-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(var(--image-scale));
  transition: transform .3s ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .content-image:hover img {
    transform: scale(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .content-image img {
    transition: none;
  }
}

.content-image-university {
  --image-scale: 1.05;
}

.content-image-readymade {
  --image-scale: 1.05;
}

.content-image-original {
  --image-scale: 1.05;
}

.content-tag,
.content-badge {
  z-index: 1;
}

.content-tag {
  position: relative;
}

.content-heading {
  margin-top: 1rem;
}

.content-card ul {
  margin: 1.5rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid #f1f5f9;
  color: #64748b;
  font-size: .75rem;
  list-style: none;
}

.content-card li+li {
  margin-top: .5rem;
}

.content-badge {
  position: absolute;
  top: -.75rem;
  right: 1.5rem;
  border: 0;
  color: #fff;
  background: rgba(255, 82, 14, 1);
}

.content-badge::before {
  background: #fff;
}

/* 学習履歴の一元管理バナー */
.platform-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 2rem;
  border-radius: 1rem;
  color: var(--navy);
  background: #d9efff;
}

.platform-banner p {
  margin-bottom: .25rem;
  color: var(--blue);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
}

.platform-banner h3 {
  font-size: 1.125rem;
}

.platform-banner .button {
  flex: none;
}

/* 簡易分析への案内 */
.cta {
  padding: 4rem 0;
  background: #032d60;
  color: #fff;
  text-align: center;
}

.cta h2 {
  font-size: 1.875rem;
  line-height: 1.4;
}

.cta p {
  max-width: 42rem;
  margin: 1rem auto 2rem;
  color: #d7efff;
}

/* お問い合わせ */
.contact {
  border-top: 1px solid #e2e8f0;
}

.contact .section-heading {
  margin-bottom: 3rem;
}

.contact .contact-description {
  margin-top: .75rem;
  color: #475569;
  font-size: .875rem;
}

.contact-card {
  padding: 2.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}

.contact-notice {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: .5rem;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: .875rem;
}

.contact-notice a {
  text-decoration: underline;
}

/* 個人情報の取扱い・同意 */
.privacy-notice {
  color: #475569;
  font-size: .875rem;
  line-height: 1.7;
}

.privacy-notice a,
.privacy-consent a {
  color: var(--blue);
  text-decoration: underline;
}

/* お問い合わせフォーム */
.contact fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.contact form>fieldset {
  display: grid;
  gap: 1.5rem;
}

.form-group legend,
.contact form label:not(.checkbox) {
  display: block;
  color: #334155;
  font-size: .75rem;
  font-weight: 700;
}

.form-group legend {
  margin-bottom: .5rem;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #334155;
  font-size: .875rem;
}

.checkbox+.checkbox {
  margin-top: .5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact input:not([type="checkbox"]),
.contact select,
.contact textarea {
  display: block;
  width: 100%;
  margin-top: .25rem;
  padding: .625rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: .5rem;
  background: #fff;
  color: #334155;
  font-size: .875rem;
  font-weight: 400;
}

.contact input:not([type="checkbox"]),
.contact select {
  padding-top: .5rem;
  padding-bottom: .75rem;
}

.required {
  color: #ef4444;
}

.submit-button {
  width: 100%;
}

.submit-button:disabled {
  cursor: not-allowed;
  opacity: .6;
}

/* 法人向けブランド帯 */
.business-brand-banner {
  padding: 3rem 0;
  border-top: 1px solid #184875;
  background: var(--navy);
  color: #d7efff;
  text-align: center;
  font-size: .75rem;
}

.business-brand-banner p {
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.business-brand-banner small {
  font-family: "Hiragino Sans W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
  font-size: inherit;
  font-weight: 400;
}

/* ページトップ */
.business-page-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--cp-docomo-red);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  transition: opacity .6s ease, visibility 0s;
}

.business-page-top.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .6s ease, visibility 0s linear .6s;
}

.business-page-top svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* 1023px以下：ヒーローと学習領域を1列にする */
@media (max-width: 1023px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

/* 767px以下：余白・カード・見出しの調整 */
@media (max-width: 767px) {
  .container {
    width: min(100% - 2rem, 80rem);
  }

  .hero h2 {
    padding-left: .5rem;
  }

  .grid-three {
    grid-template-columns: 1fr;
  }

  .section-heading h2,
  .problems h2,
  .cta h2 {
    font-size: 1.5rem;
  }

  .platform-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 639px以下：ヒーローとフォームの調整 */
@media (max-width: 639px) {
  .hero h2 {
    font-size: 1.875rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .desktop-break {
    display: none;
  }

  .hero-button {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 1.5rem;
  }
}

/* 959px以下：共通ヘッダーに合わせたヒーローの位置 */
@media (max-width: 959px) {
  html {
    scroll-padding-top: 4rem;
  }

  .hero {
    padding-top: 1.125rem;
    margin-top: -3.125rem;
  }

  .hero-navigation {
    padding-top: 2rem;
  }
}

/* 動きを抑える設定 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-video {
    transform: scale(1.15);
  }

  .dashboard-row-highlight {
    animation: none;
  }

  .business-page-top,
  .business-page-top.is-hidden {
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}

/* formrun お問い合わせフォーム埋め込み（高さはformrunのembed.jsが自動調整） */
.formrun-embed iframe {
  display: block;
}

/* かんたん診断レポート モーダル */
.report-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.report-modal[hidden] {
  display: none;
}

.report-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.report-modal__panel {
  position: relative;
  width: min(100%, 50rem);
  height: min(100%, 50rem);
  background: #fff;
  border-radius: .75rem;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .15);
  overflow: hidden;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity .25s, transform .25s;
}

.report-modal.is-open .report-modal__panel {
  opacity: 1;
  transform: translateY(0);
}

.report-modal__close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s;
}

.report-modal__close:hover {
  background: var(--accent-hover);
}

.report-modal__close svg {
  width: 1.25rem;
  height: 1.25rem;
}

.report-modal__iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 48rem) {
  .report-modal {
    padding: .75rem;
  }

  .report-modal__panel {
    height: 100%;
  }
}