/* =====================================================================
   現場ミエル LP 専用スタイル（/mieru）
   チラシ（小さなサーバで、工場を見える化）の配色・構成に合わせる。
   他ページに影響させないため .lp-mieru 配下にスコープする。
   ===================================================================== */

.lp-mieru {
  --mi-green:      #1aa84f;   /* チラシの緑 */
  --mi-green-dark: #13833d;
  --mi-green-pale: #eef9f1;   /* 淡い緑パネル */
  --mi-navy:       #13316b;   /* チラシの濃紺 */
  --mi-yellow:     #ffe14d;   /* 蛍光マーカー */
  --mi-red:        #e2342c;
  --mi-line:       #d9e4d9;
}

/* 本文はヘッダー分だけ下げる（LPはヒーローが白背景のため） */
.lp-mieru { padding-top: var(--header-h); background: #fff; }

/* ヘッダーはLPでも白背景の上に載るので、文字を濃色に上書き */
body.lp-page .site-header { color: var(--mi-navy); }
body.lp-page .site-header::before {
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.75) 60%, rgba(255,255,255,0) 100%);
  height: 120px;
}

.lp-mieru .container { max-width: 1080px; }

/* ============ セクション共通 ============ */
.mi-sec { padding: clamp(56px, 8vw, 96px) 0; }
.mi-sec--pale { background: var(--mi-green-pale); }
.mi-sec--navy { background: var(--mi-navy); color: #fff; }

.mi-head { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.mi-head__label {
  display: inline-block; background: var(--mi-green); color: #fff;
  font-family: var(--sans-jp); font-weight: 700; font-size: 14px;
  letter-spacing: .08em; padding: 7px 22px 7px 18px; border-radius: 4px 14px 14px 4px;
}
.mi-head__title {
  font-family: var(--sans-jp); font-weight: 700; color: var(--mi-navy);
  font-size: clamp(24px, 3.6vw, 36px); line-height: 1.5; margin: 18px 0 0;
}
.mi-sec--navy .mi-head__title { color: #fff; }
.mi-head__lead { font-size: 15.5px; line-height: 2; color: var(--ink); margin: 16px auto 0; max-width: 760px; }
.mi-sec--navy .mi-head__lead { color: rgba(255,255,255,.92); }

/* ============ ヒーロー ============ */
.mi-hero { position: relative; overflow: hidden; background: #fff; padding: clamp(36px,5vw,64px) 0 clamp(44px,6vw,72px); }
.mi-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  /* 元から明度の高いビジュアルのため、不透明度は下げずそのまま使う */
  background: url('/assets/cocra/img/mieru-hero.webp') center right / cover no-repeat;
}
/* 左（文字側）を白く残し、右の工場写真はそのまま見せる横方向のスクリム */
.mi-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.80) 0%, rgba(255,255,255,.55) 38%, rgba(255,255,255,.10) 66%, rgba(255,255,255,0) 100%),
    linear-gradient(180deg, rgba(255,255,255,0) 72%, rgba(255,255,255,.85) 100%);
}
.mi-hero .container { position: relative; z-index: 1; }

.mi-hero__title {
  font-family: var(--sans-jp); font-weight: 700; line-height: 1.22; margin: 0;
  font-size: clamp(34px, 6.4vw, 68px); color: var(--mi-navy); letter-spacing: .01em;
}
.mi-hero__title .g { color: var(--mi-green); }
.mi-hero__title .mark {
  background: linear-gradient(transparent 62%, var(--mi-yellow) 62%);
  padding: 0 .06em;
}
.mi-hero__sub {
  display: inline-block; margin: 22px 0 0; background: var(--mi-navy); color: #fff;
  font-family: var(--sans-jp); font-weight: 700; font-size: clamp(15px, 2.1vw, 22px);
  padding: 12px 24px; border-radius: 6px; line-height: 1.5;
}
.mi-hero__badge {
  display: inline-block; margin: 16px 0 0; background: var(--mi-yellow); color: var(--mi-navy);
  font-family: var(--sans-jp); font-weight: 700; font-size: clamp(14px, 1.9vw, 19px);
  padding: 11px 22px; border-radius: 6px; line-height: 1.5; border: 2px solid #e8c400;
}
.mi-hero__badge b { color: var(--mi-red); }

/* ============ 仕組み図（制御盤→サーバ→端末） ============ */
.mi-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 8px; }
.mi-flow__item { text-align: center; }
.mi-flow__box {
  background: #fff; border: 2px solid var(--mi-line); border-radius: 12px;
  padding: 22px 14px; box-shadow: 0 10px 24px rgba(0,0,0,.06);
  display: flex; align-items: center; justify-content: center; min-height: 118px;
}
.mi-flow__box .mi { font-size: 54px; color: var(--mi-navy); }
.mi-flow__name {
  display: inline-block; margin-top: 12px; background: var(--mi-green); color: #fff;
  font-family: var(--sans-jp); font-weight: 700; font-size: 14px;
  padding: 6px 16px; border-radius: 20px;
}
.mi-flow__arrow { color: var(--mi-green); font-size: 30px; line-height: 1; }
.mi-flow__cable {
  font-family: var(--sans-jp); font-weight: 700; color: var(--mi-navy);
  font-size: 13px; text-align: center; line-height: 1.4;
}
.mi-flow__cable b { display: block; font-size: 20px; color: var(--mi-green); }

/* ============ 3カラム（見えるようになること） ============ */
.mi-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mi-card {
  background: #fff; border: 2px solid var(--mi-line); border-radius: 12px;
  padding: 30px 24px; text-align: center; box-shadow: 0 10px 24px rgba(0,0,0,.05);
}
.mi-card .mi { font-size: 48px; color: var(--mi-green); }
.mi-card__title {
  font-family: var(--sans-jp); font-weight: 700; font-size: 18px;
  color: var(--mi-navy); margin: 14px 0 10px;
}
.mi-card__text { font-size: 14px; line-height: 1.95; color: var(--ink); margin: 0; }

/* ============ お悩みリスト ============ */
.mi-worry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mi-worry__item {
  background: #fff; border-radius: 12px; padding: 28px 24px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06); position: relative;
}
.mi-worry__item::before {
  content: "“"; position: absolute; top: 6px; left: 16px;
  font-size: 54px; color: var(--mi-green); opacity: .25; line-height: 1;
}
.mi-worry__item p {
  margin: 0; font-family: var(--sans-jp); font-weight: 700;
  font-size: 15.5px; line-height: 1.85; color: var(--ink-strong); padding-top: 14px;
}

/* ============ 特長（チェックリスト） ============ */
.mi-feature { max-width: 820px; margin: 0 auto; }
.mi-feature__item {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--mi-green-pale); border-radius: 10px;
  padding: 20px 24px; margin-bottom: 14px;
}
.mi-feature__check {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 6px;
  background: var(--mi-green); color: #fff; display: flex;
  align-items: center; justify-content: center; font-size: 20px; margin-top: 2px;
}
.mi-feature__body h4 {
  font-family: var(--sans-jp); font-weight: 700; font-size: clamp(17px, 2.2vw, 21px);
  color: var(--mi-navy); margin: 0 0 6px;
}
.mi-feature__body p { margin: 0; font-size: 14.5px; line-height: 1.9; color: var(--ink); }
.mi-note { font-size: 12.5px; color: var(--ink-soft); margin: 10px 0 0; line-height: 1.8; }

/* ============ 導入実績バナー ============ */
.mi-proof {
  background: #fff; border: 3px solid var(--mi-green); border-radius: 14px;
  padding: clamp(26px,4vw,40px); text-align: center; max-width: 880px; margin: 0 auto;
}
.mi-proof__title {
  font-family: var(--sans-jp); font-weight: 700; color: var(--mi-navy);
  font-size: clamp(19px, 2.8vw, 26px); margin: 0 0 16px; line-height: 1.5;
}
.mi-proof__title em { font-style: normal; color: var(--mi-red); }
.mi-proof__text { font-size: 15px; line-height: 2; color: var(--ink); margin: 0; text-align: left; }
.mi-proof__note { font-size: 12.5px; color: var(--ink-soft); margin: 18px 0 0; line-height: 1.8; }

/* ============ 導入の流れ ============ */
.mi-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mi-step { background: #fff; border-radius: 12px; padding: 26px 20px; box-shadow: 0 10px 24px rgba(0,0,0,.06); }
.mi-step__no {
  font-family: var(--sans-en); font-weight: 700; font-size: 13px;
  color: #fff; background: var(--mi-green); display: inline-block;
  padding: 4px 12px; border-radius: 20px; letter-spacing: .06em;
}
.mi-step__title { font-family: var(--sans-jp); font-weight: 700; font-size: 16.5px; color: var(--mi-navy); margin: 14px 0 8px; }
.mi-step__text { font-size: 13.5px; line-height: 1.9; color: var(--ink); margin: 0; }

/* ============ FAQ ============ */
.mi-faq { max-width: 860px; margin: 0 auto; }
.mi-faq__item { background: #fff; border-radius: 10px; padding: 24px 28px; margin-bottom: 14px; box-shadow: 0 8px 20px rgba(0,0,0,.05); }
.mi-faq__q { font-family: var(--sans-jp); font-weight: 700; font-size: 16px; color: var(--mi-navy); margin: 0 0 10px; }
.mi-faq__q::before { content: "Q. "; font-family: var(--sans-en); color: var(--mi-green); }
.mi-faq__a { font-size: 14.5px; line-height: 1.95; color: var(--ink); margin: 0; }
.mi-faq__a::before { content: "A. "; font-family: var(--sans-en); font-weight: 700; color: var(--mi-red); }

/* ============ CTA ============ */
.mi-cta { text-align: center; }
.mi-cta__title {
  font-family: var(--sans-jp); font-weight: 700; color: #fff;
  font-size: clamp(23px, 3.4vw, 34px); line-height: 1.5; margin: 0 0 14px;
}
.mi-cta__lead { color: rgba(255,255,255,.92); font-size: 15.5px; line-height: 2; margin: 0 0 32px; }
.mi-cta__actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.mi-btn {
  display: inline-flex; align-items: center; gap: .5em; border-radius: 10px;
  font-family: var(--sans-jp); font-weight: 700; font-size: 17px;
  padding: 19px 38px; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.mi-btn:hover { transform: translateY(-3px); }
.mi-btn--green { background: var(--mi-green); color: #fff; box-shadow: 0 12px 26px rgba(26,168,79,.4); }
.mi-btn--green:hover { box-shadow: 0 18px 32px rgba(26,168,79,.5); }
.mi-btn--tel { background: #fff; color: var(--mi-navy); box-shadow: 0 12px 26px rgba(0,0,0,.2); }
.mi-tel { margin: 26px 0 0; color: #fff; }
.mi-tel__num { font-family: var(--sans-en); font-weight: 700; font-size: clamp(26px,4vw,38px); letter-spacing: .02em; display: block; }
.mi-tel__note { font-size: 13px; color: rgba(255,255,255,.8); margin: 6px 0 0; }

/* ============ 会社情報（紺背景のCTA内に同居） ============ */
.mi-company {
  margin: clamp(36px, 5vw, 52px) auto 0; padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid rgba(255,255,255,.22); max-width: 720px;
  text-align: center; font-size: 14px; line-height: 2; color: rgba(255,255,255,.82);
}
.mi-company__name { font-family: var(--sans-jp); font-weight: 700; font-size: 19px; color: #fff; margin: 0 0 10px; }
.mi-company p { margin: 0; }
.mi-company a { color: #8ee0a8; text-decoration: underline; }
.mi-company a:hover { color: #fff; }

/* ============ 追従CTA（スマホ） ============ */
.mi-sticky { display: none; }


/* ============ 実機紹介（小さなサーバーの写真＋解説） ============ */
.mi-device {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 48px);
  align-items: center; margin-top: clamp(40px, 6vw, 64px);
  background: #fff; border: 2px solid var(--mi-line); border-radius: 14px;
  padding: clamp(24px, 4vw, 40px); box-shadow: 0 14px 30px rgba(0,0,0,.06);
}
.mi-device__photo { margin: 0; border-radius: 10px; overflow: hidden; }
.mi-device__photo img { width: 100%; height: auto; display: block; }
.mi-device__title {
  font-family: var(--sans-jp); font-weight: 700; color: var(--mi-navy);
  font-size: clamp(19px, 2.6vw, 25px); margin: 0 0 14px; line-height: 1.5;
}
.mi-device__body p { font-size: 15px; line-height: 2; color: var(--ink); margin: 0 0 14px; }
.mi-device__body p:last-child { margin-bottom: 0; }
.mi-device__body b { color: var(--mi-navy); }

/* ============ できること・できないこと ============ */
.mi-can { max-width: 860px; margin: 0 auto; }
.mi-can__list { list-style: none; margin: 0; padding: 0; }
.mi-can__list li {
  position: relative; background: #fff; border-radius: 10px;
  padding: 20px 24px 20px 56px; margin-bottom: 12px;
  font-size: 14.5px; line-height: 1.95; color: var(--ink);
  box-shadow: 0 8px 20px rgba(0,0,0,.05);
}
.mi-can__list li::before {
  content: "check_circle"; font-family: "Material Icons";
  position: absolute; left: 20px; top: 19px;
  font-size: 24px; color: var(--mi-green); line-height: 1;
}
.mi-can__list b { color: var(--mi-navy); }
.mi-can__list a { color: var(--mi-green); text-decoration: underline; }

/* ============ レスポンシブ ============ */
@media (max-width: 900px) {
  .mi-flow { grid-template-columns: 1fr; gap: 6px; }
  .mi-flow__arrow { transform: rotate(90deg); margin: 2px 0; }
  .mi-flow__cable { margin: 4px 0; }
  .mi-grid3, .mi-worry { grid-template-columns: 1fr; gap: 14px; }
  .mi-hero__bg { background-position: 72% center; }
  .mi-hero__bg::after {
    background:
      linear-gradient(180deg, rgba(255,255,255,.86) 0%, rgba(255,255,255,.74) 60%, rgba(255,255,255,.92) 100%);
  }
  .mi-device { grid-template-columns: 1fr; gap: 20px; }
  .mi-steps { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .mi-cta__actions { flex-direction: column; align-items: stretch; }
  .mi-btn { justify-content: center; }

  /* スマホは画面下に電話・相談ボタンを固定 */
  .mi-sticky {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    box-shadow: 0 -6px 20px rgba(0,0,0,.18);
  }
  .mi-sticky a {
    display: flex; align-items: center; justify-content: center; gap: .4em;
    padding: 15px 8px; font-family: var(--sans-jp); font-weight: 700; font-size: 15px; color: #fff;
  }
  .mi-sticky__tel { background: var(--mi-navy); }
  .mi-sticky__form { background: var(--mi-green); }
  body.lp-page .footer-cta { padding-bottom: 60px; }
}
@media (max-width: 560px) {
  .mi-steps { grid-template-columns: 1fr; }
}
