/* =========================================================
   ユニキャスト MOTTETTE LP — ページ固有スタイル
   lp.css（共通）の後に読み込む。モバイルファースト、主ブレークポイントは min-width: 768px。
   ========================================================= */

/* ---------- 1. トークン（lp.css の値を MOTTETTE 用に上書き） ---------- */
:root {
  /*
   * 元ページのブランドカラーは #177EAD。
   * - 白地の白文字ボタンでは約 4.5:1 で AA ぎりぎり → ボタン背景にはそのまま使い、ホバー時は暗くする。
   * - #F0F5F9（薄い青灰）の上に置く本文サイズの青文字は #177EAD だと約 4.15:1 で不足するため、
   *   文字色には少し暗い --m-blue-text (#136F98, 約 5:1) を使う。大きな見出しも統一のため同じ値にする。
   */
  --c-primary: #177EAD;
  --c-navy: #0B3A5A;
  --m-blue: #177EAD;
  --m-blue-text: #136F98;
  --m-blue-dark: #0F5F83;
  --m-text: #070707;
  --m-tint: #F0F5F9;
  --m-line: #DDDDDD;
  --header-h: 72px;
}

/* ---------- 2. ベース上書き ---------- */
/* ヘッダーはヒーローの上に浮かぶピル型にするので、本文の上余白は不要 */
body {
  padding-top: 0;
  color: var(--m-text);
}
section[id] { scroll-margin-top: 88px; }

/* 暗い／色付き背景の上ではフォーカスリングを白にする */
.mt-hero a:focus-visible,
.mt-hero button:focus-visible,
.cta-dark a:focus-visible,
.company a:focus-visible {
  outline-color: #fff;
}
.robot-dialog button:focus-visible { outline-color: var(--m-blue-dark); }

.m-container {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 20px;
}
.m-container--narrow { max-width: 900px; }

.m-section { padding-block: 64px; background: #fff; }
.m-section--tint { background: var(--m-tint); }

.m-h2 {
  margin-bottom: 32px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--m-blue-text);
}
.m-h2--black { color: var(--m-text); }
/* 見出しの文字幅に合わせた細い下線 */
.m-h2--line-fit {
  display: table;
  margin-inline: auto;
  padding: 0 8px 8px;
  border-bottom: 1px solid var(--m-line);
  font-size: 24px;
}

@media (min-width: 768px) {
  .m-section { padding-block: 100px; }
  .m-h2 { margin-bottom: 72px; font-size: 36px; }
  .m-h2--line-fit { font-size: 28px; }
  .clients .m-h2--line-fit { font-size: 36px; }
}

/* ---------- 3. ヘッダー（ピル型）・SPメニュー ---------- */
.site-header {
  inset: 16px 16px auto 16px;
  height: 56px;
  border-radius: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.site-header.is-scrolled { box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22); }
.site-header__inner { padding-inline: 20px 12px; }
.site-header__logo img { width: 200px; }

.gnav__link { font-weight: 500; }

@media (min-width: 768px) {
  .site-header { inset: 16px 40px auto 40px; }
  .site-header__inner { padding-inline: 40px 28px; }
  .site-header__logo img { width: 200px; }
  .gnav { margin-right: 0; }
}

@media (min-width: 1100px) {
  .site-header__inner { padding-inline: 40px 100px; }
  .gnav__list { gap: 22px; }
}

/* ---------- 4. ヒーロー ---------- */
.mt-hero {
  position: relative;
  overflow: hidden;
  padding: 114px 0 105px;
  /* 白文字のコントラスト確保のため、グラデーション画像の上に薄い暗色を重ねる（最も明るい左上でも約 5:1） */
  background:
    linear-gradient(rgba(20, 10, 90, 0.16), rgba(20, 10, 90, 0.16)),
    #4a5fe6 url("/assets/img/mottette/hero-bg.webp") center / cover no-repeat;
  color: #fff;
}
.mt-hero__inner {
  display: grid;
  justify-items: center;
  gap: 48px;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 20px;
}
.mt-hero__robot { width: min(318px, 82vw); height: auto; }
.mt-hero__body { display: flex; flex-direction: column; align-items: center; text-align: center; }
.mt-hero__logo { width: min(280px, 76vw); height: auto; }
.mt-hero__title { margin: 48px -12px 0; font-size: 24px; font-weight: 700; color: #fff; }
.mt-hero__lead { margin: 50px -14px 0; font-size: 16px; font-weight: 500; line-height: 1.6; color: #fff; }
.mt-hero__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  list-style: none;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 170px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--m-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.2s;
}
.btn-hero:hover { background: var(--m-blue-dark); }
.btn-hero .material-icons { font-size: 22px; }

@media (min-width: 768px) {
  .mt-hero { min-height: 746px; padding: 140px 0 90px; }
  .mt-hero__inner {
    grid-template-columns: 430px 1fr;
    align-items: center;
    justify-items: stretch;
    gap: 0 56px;
  }
  .mt-hero__robot { width: 430px; max-width: none; }
  .mt-hero__logo { width: 100%; max-width: 640px; }
  .mt-hero__title { margin: 88px 0 0; font-size: 36px; }
  .mt-hero__lead { max-width: 613px; margin: 24px 0 0; text-align: left; font-size: 28px; line-height: 1.4; }
  .mt-hero__buttons { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 56px; }
  .btn-hero { min-width: 170px; font-size: 16px; }
}

/* ---------- 5. 紹介動画 ---------- */
.video-sec { padding: 150px 20px 54px; background: #fff; }
.video-sec__frame {
  max-width: 1100px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-sec__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-sec__lead {
  margin-top: 176px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--c-text);
}

@media (min-width: 768px) {
  .video-sec { padding: 54px 20px 178px; }
  .video-sec__lead { margin-top: 230px; font-size: 28px; line-height: 1.4; letter-spacing: 0.02em; }
}

/* ---------- 6. カード（お困り・不安・ニーズ共通） ---------- */
.m-cards {
  display: grid;
  gap: 56px;
  max-width: 1100px;
  margin: 0 auto;
  list-style: none;
}
.m-card { text-align: center; }
.m-card__img {
  width: 100%;
  aspect-ratio: 327 / 225;
  object-fit: cover;
  border-radius: 20px;
  background: #e4e9ee;
}
.m-card__img--robot {
  width: 170px;
  height: 230px;
  aspect-ratio: auto;
  margin-inline: auto;
  border-radius: 0;
  object-position: top;
  background: none;
}
.m-card__title { margin-top: 16px; font-size: 18px; font-weight: 700; color: var(--m-blue-text); }
/* 元ページのカード本文は約物・かなが詰まって見える（プロポーショナルメトリクス）ので再現する */
.m-card__text { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--m-text); font-feature-settings: "palt"; }

@media (min-width: 768px) {
  .m-cards { grid-template-columns: repeat(3, 1fr); gap: 56px; }
  .m-card__title { margin-top: 18px; }
}

/* お客様のニーズ（4 列） */
.m-cards--four { max-width: 1120px; gap: 63px; }
.m-cards--four .m-card__img { width: 240px; max-width: 100%; margin-inline: auto; aspect-ratio: 6 / 5; }
.m-cards--four .m-card__text { font-size: 14px; }

@media (min-width: 768px) {
  .m-cards--four { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
}
@media (min-width: 1024px) {
  .m-cards--four { grid-template-columns: repeat(4, 1fr); }
  .m-cards--four .m-card__img { width: 100%; }
  .m-cards--four .m-card__text { font-size: 16px; }
}

/* ---------- 7. お困りごと ---------- */
.trouble { padding-block: 64px; }
.trouble .m-cards { gap: 48px; }
@media (min-width: 768px) {
  .trouble { padding-block: 80px 160px; }
  .trouble .m-cards { gap: 56px; }
}

/* ---------- 8. 解決（チェック） ---------- */
.checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 64px 31px;
  max-width: 1120px;
  margin-inline: auto;
  list-style: none;
}
.check { flex: 1 1 100%; text-align: center; }
.check__icon {
  display: block;
  font-size: 93px;
  /* 装飾アイコン。SP は元ページの濃い緑、PC は明るい緑 */
  color: #4F977D;
}
.check .m-card__title { margin-top: 24px; }

@media (min-width: 768px) {
  .solution { padding-block: 80px 100px; }
  .checks { gap: 56px 31px; }
  .check { flex: 0 0 calc((100% - 62px) / 3); }
  .check__icon { font-size: 72px; color: #71D268; }
}

/* ---------- 9. 不安とその解消 ---------- */
.anxiety {
  padding-block: 64px 42px;
  background: var(--m-tint);
}
.anxiety__cover-title { margin-top: 32px; margin-bottom: 40px; }
.anxiety__arrow { width: 128px; height: auto; margin: 0 auto 64px; }
.anxiety__action { display: flex; justify-content: center; margin-top: 56px; }

.btn-shadow {
  min-width: 200px;
  padding: 12px 24px;
  border: 0;
  border-radius: 8px;
  background: var(--m-blue);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.2s;
}
.btn-shadow:hover { background: var(--m-blue-dark); }

@media (min-width: 768px) {
  .anxiety {
    padding-block: 80px 165px;
    background: linear-gradient(var(--m-tint) 78%, #fff 96%);
  }
  .anxiety__cover-title { margin-top: 64px; margin-bottom: 56px; }
  .anxiety__arrow { margin-bottom: 100px; }
  .anxiety__action { margin-top: 48px; }
  .btn-shadow { min-width: 369px; font-size: 16px; }
}

/* ---------- 10. ニーズ ---------- */
.needs { padding-block: 100px 150px; }
.needs__closing {
  margin-top: 56px;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--c-text);
}
@media (min-width: 768px) {
  .needs { padding-block: 165px 230px; }
  .needs__closing { margin-top: 72px; }
}

/* ---------- 11. ご利用方法 ---------- */
.use__lead {
  margin-top: 24px;
  text-align: center;
  font-size: 16px;
  color: var(--m-blue-text);
}
.steps {
  display: grid;
  gap: 24px;
  max-width: 245px;
  margin: 40px auto 0;
  list-style: none;
}
.step { position: relative; padding-top: 4px; }
.step__no {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--m-blue);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.step__img { width: 100%; height: 150px; margin-top: 8px; object-fit: contain; }
.step__title { margin-top: 16px; padding-left: 16px; font-size: 20px; font-weight: 700; color: var(--m-blue-text); }
.step__text { margin-top: 8px; padding-left: 16px; font-size: 16px; line-height: 1.7; color: var(--m-text); }

@media (min-width: 768px) {
  .use { padding-block: 70px 130px; }
  .use__lead { margin-top: 52px; color: var(--m-text); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 850px; margin-top: 64px; }
  .step__no { position: absolute; top: 0; left: 0; z-index: 1; width: 48px; height: 48px; font-size: 18px; }
  .step__img { height: 220px; margin-top: 24px; }
  .step__title, .step__text { padding-left: 20px; }
}

/* ---------- 12. 導入事例 ---------- */
.clients__text {
  margin-top: 56px;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--m-blue-text);
}
.clients__action { display: flex; justify-content: center; margin-top: 48px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 294px;
  padding: 14px 12px;
  border: 2px solid #000;
  border-radius: 4px;
  background: #F8F7F6;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.btn-outline .material-icons { font-size: 20px; }
.btn-outline:hover { background: #fff; }

@media (min-width: 768px) {
  .clients { padding-block: 100px 80px; }
  .clients__text { margin-top: 56px; font-size: 20px; }
  .clients__action { margin-top: 40px; }
}

/* ---------- 13. よくあるご質問 ---------- */
.faq-sec { padding-block: 64px; }
.faq-sec__title {
  margin-bottom: 40px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--m-line);
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--m-text);
}
.faq-group__title {
  margin-top: 8px;
  padding: 0 8px 12px;
  border-bottom: 2px solid var(--m-blue);
  font-size: 18px;
  font-weight: 700;
  color: var(--m-blue-text);
}
.faq-group__title:not(:first-of-type) { margin-top: 80px; }

.qa-grid { display: grid; gap: 46px; padding: 40px 0 0; }
.qa { display: grid; gap: 16px; align-content: start; }
.qa__row { display: flex; align-items: flex-start; gap: 16px; }
.qa__mark {
  display: flex;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}
.qa__mark--q { background: #000; }
.qa__mark--a { background: var(--m-blue); }
.qa__q { margin: 0; padding-top: 7px; font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--m-text); }
.qa__a { padding-top: 4px; font-size: 16px; line-height: 1.7; color: var(--m-text); }

.faq-sec__note { margin-top: 56px; font-size: 16px; line-height: 1.7; color: var(--c-text); }

@media (min-width: 768px) {
  .faq-sec { padding-block: 116px 142px; }
  .faq-sec__title { margin-bottom: 56px; font-size: 28px; }
  .faq-group__title { padding-inline: 16px; font-size: 20px; }
  .qa-grid { grid-template-columns: 1fr 1fr; gap: 72px 56px; padding: 56px 32px 24px; }
  .qa__q { font-size: 18px; }
  .faq-sec__note { width: calc(50% - 28px); margin: 40px 32px 0 auto; }
}

/* ---------- 14. 最終 CTA ---------- */
.cta-dark { min-height: 375px; background-image: url("/assets/img/mottette/cta-network.jpg"); }
@media (min-width: 768px) {
  .cta-dark { min-height: 432px; }
  .cta-dark .btn--light { width: 240px; }
}

/* ---------- 15. 会社紹介バナー ---------- */
.company {
  background:
    linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.42)),
    #5d6d78 url("/assets/img/mottette/company-bg.webp") center / cover no-repeat;
  color: #fff;
}
.company__inner {
  min-height: 800px;
  padding: 240px 20px 64px;
}
.company__title { font-size: 36px; font-weight: 700; color: #fff; }
.company__lead { margin-top: 32px; font-size: 24px; line-height: 1.6; color: #fff; }

.btn-black {
  display: inline-block;
  margin-top: 48px;
  padding: 12px 20px;
  border-radius: 4px;
  background: #000;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}
.btn-black:hover { background: #333; }

@media (min-width: 768px) {
  .company__inner { min-height: 900px; padding: 330px 64px 64px; }
  .company__title { font-size: 40px; }
  .company__lead { max-width: 560px; margin-top: 28px; }
}

/* ---------- 16. 右下の固定「ご相談はこちら」 ---------- */
.consult-fab {
  position: fixed;
  right: 0;
  bottom: 24px;
  z-index: 90;
  padding: 12px 18px 12px 22px;
  border-radius: 999px 0 0 999px;
  background: var(--m-blue);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: opacity 0.25s, visibility 0.25s, background-color 0.2s;
}
.consult-fab:hover { background: var(--m-blue-dark); }
.consult-fab:focus-visible { outline-color: #fff; box-shadow: 0 0 0 3px var(--m-blue-dark); }
.consult-fab.is-hidden { visibility: hidden; opacity: 0; }

@media (min-width: 768px) {
  .consult-fab {
    right: 24px;
    bottom: 40px;
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 16px;
  }
}

/* ---------- 17. 取り扱いロボット一覧（dialog） ---------- */
.robot-dialog {
  width: min(1113px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 56px 24px 32px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  color: var(--c-text);
  overflow-y: auto;
}
.robot-dialog::backdrop { background: rgba(0, 0, 0, 0.5); }
body.is-dialog-open { overflow: hidden; }

.robot-dialog__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--c-text);
  cursor: pointer;
}
.robot-dialog__close:hover { background: #eee; }

.robots { display: grid; gap: 32px; list-style: none; }
.robot { text-align: center; }
.robot__img { width: auto; max-width: 100%; height: 240px; margin-inline: auto; object-fit: contain; }
.robot__name { margin-top: 12px; font-size: 20px; font-weight: 700; color: var(--c-text); }
.robot__text { margin-top: 4px; font-size: 18px; line-height: 1.6; color: var(--c-text); }
.robot-dialog__note { margin-top: 32px; text-align: center; font-size: 20px; font-weight: 700; color: var(--m-blue-text); }

@media (min-width: 768px) {
  .robot-dialog { padding: 24px 32px 48px; }
  .robots { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .robot__img { height: 300px; }
  .robot__text { font-size: 20px; }
  .robot-dialog__note { margin-top: 28px; font-size: 24px; }
}

/* ---------- 18. フッター（元ページに合わせて余白を広げる） ---------- */
.site-footer { padding-block: 96px; }
.site-footer__inner { gap: 36px; }
@media (min-width: 768px) {
  .site-footer { padding-block: 100px; }
}

/* ボタン・CTA の字間（元ページの値） */
.cta-dark__title { letter-spacing: 0.1em; }
.btn--light, .btn-outline { letter-spacing: 0.15em; }

.site-footer__links { gap: 5px; }
@media (min-width: 768px) {
  .site-footer__links { gap: 12px 24px; }
}
