
/* ========================================
   マキトル総合トップページ専用CSS
   2026-12-01 整理版
======================================== */

/* 1. ファーストビュー */

.mk-front-hero {
  background-color: #eefbfe;
  background-image:
    linear-gradient(
      90deg,
      rgba(238,251,254,0.85) 0%,
      rgba(238,251,254,0.45) 40%,
      rgba(238,251,254,0) 70%
    ),
    url("../images/banner_top2.png");
  background-repeat: no-repeat;
  background-position: center, right center;
  background-size: 100% 100%, auto 100%;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.mk-front-inner {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 1160px;
  min-height: 560px;
  margin: 0 auto;
  padding: 35px 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.mk-front-copy {
  max-width: 650px;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: left;
}

.mk-front-label {
  color: #527bbb;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 18px;
  padding: 0;
}

.mk-front-hero .mk-front-copy h1 {
  display: block;
  color: #263b5d;
  font-weight: 800;
  text-align: left;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 22px;
  padding: 0;
}

.mk-front-hero .mk-front-copy h1 span {
  display: block;
  margin: 0;
  padding: 0;
}

.mk-front-headline-top {
  color: #263b5d;
  font-size: 31px;
  line-height: 1.3;
  font-weight: 800;
}

.mk-front-accent {
  color: #6480c3;
  font-size: 43px;
  line-height: 1.2;
  font-weight: 800;
}

.mk-front-lead {
  color: #344b69;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.75;
  text-align: left;
  margin: 0;
  padding: 0;
}

/* 2. ファーストビュー内の実績カード */

.mk-front-hero .mk-front-stats {
  position: static;
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin: 25px 0 0;
  padding: 0;
  background: transparent;
}

.mk-front-hero .mk-front-stat {
  box-sizing: border-box;
  width: 190px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.9);
  border: 1px solid #d4e4f3;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 3px 12px rgba(45,85,130,0.08);
}

.mk-front-hero .mk-front-stat strong {
  display: block;
  color: #6480c3;
  font-size: 27px;
  line-height: 1.3;
  font-weight: 800;
  white-space: nowrap;
}

.mk-front-hero .mk-front-stat span {
  display: block;
  color: #34445b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 5px;
}

/* 3. サービス選択カード */

.mk-front-services {
  background: #fff;
  padding: 32px 20px 30px;
}

.mk-front-services-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.mk-front-services h2 {
  color: #26364d;
  font-size: 25px;
  font-weight: bold;
  text-align: center;
  margin: 0 0 24px;
}

.mk-front-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 15px;
}

.mk-front-service-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 146px;
  padding: 20px 10px;
  border: 2px solid #cddff4;
  border-radius: 13px;
  background: #f5fbff;
  color: #26364d;
  text-align: center;
  text-decoration: none;
  transition: 0.2s;
}

.mk-front-service-card:hover {
  border-color: #527bbb;
  background: #e6f4ff;
  transform: translateY(-3px);
}

.mk-front-service-card strong {
  font-size: 20px;
  font-weight: bold;
}

.mk-front-service-card span {
  font-size: 12px;
  line-height: 1.6;
}

.mk-front-service-card em {
  color: #527bbb;
  font-size: 14px;
  font-style: normal;
  font-weight: bold;
}

/* 4. マキトルが選ばれる3つの理由 */

.mk-front-reasons {
  background: #f4faff;
  padding: 70px 20px;
  color: #263b5d;
}

.mk-front-reasons-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.mk-front-reasons-label {
  text-align: center;
  color: #527bbb;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.1em;
}

.mk-front-reasons h2 {
  text-align: center;
  color: #263b5d;
  font-size: 30px;
  font-weight: bold;
  margin: 12px 0 20px;
  line-height: 1.5;
}

.mk-front-reasons-lead {
  text-align: center;
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 35px;
}

.mk-front-reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}

.mk-front-reason-card {
  background: #fff;
  border: 1px solid #d5e2f4;
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 4px 14px rgba(40,80,130,0.05);
}

.mk-front-reason-number {
  color: #5d85c5;
  font-size: 28px;
  font-weight: bold;
}

.mk-front-reason-card h3 {
  font-size: 20px;
  font-weight: bold;
  color: #263b5d;
  line-height: 1.5;
  margin: 12px 0;
}

.mk-front-reason-card p {
  font-size: 14px;
  color: #45566c;
  line-height: 1.9;
  margin: 0;
}

/* 5. スマホ表示 */

@media screen and (max-width: 767px) {

  .mk-front-hero {
    display: block;
    min-height: 590px;
    background-image:
      linear-gradient(
        90deg,
        #eefbfe 0%,
        rgba(238,251,254,0.96) 18%,
        rgba(238,251,254,0.64) 42%,
        rgba(238,251,254,0) 72%
      ),
      url("../images/banner_top2_sp.png");
    background-position: center, right bottom;
    background-size: 100% 100%, auto 70%;
  }

  .mk-front-inner {
    min-height: 590px;
    padding: 75px 20px 20px;
    justify-content: flex-start;
  }

  .mk-front-copy {
    max-width: 100%;
    width: 100%;
  }

  .mk-front-label {
    font-size: 12px;
    margin-bottom: 32px;
  }

  .mk-front-hero .mk-front-copy h1 {
    margin-bottom: 32px;
  }

  .mk-front-headline-top {
    font-size: 18px;
    line-height: 1.3;
    white-space: nowrap;
  }

  .mk-front-accent {
    font-size: 25px;
    line-height: 1.25;
    white-space: nowrap;
  }

  .mk-front-lead {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.75;
  }

  /* スマホ実績カードは左下 */
  .mk-front-hero .mk-front-stats {
    position: absolute;
    left: 20px;
    bottom: 16px;
    flex-direction: column;
    gap: 8px;
    margin: 0;
  }

  .mk-front-hero .mk-front-stat {
    width: 140px;
    padding: 9px 11px;
    border-radius: 10px;
  }

  .mk-front-hero .mk-front-stat strong {
    font-size: 21px;
  }

  .mk-front-hero .mk-front-stat span {
    font-size: 10px;
    line-height: 1.4;
  }

  /* スマホサービス選択 */
  .mk-front-services {
    padding: 25px 12px 20px;
  }

  .mk-front-services h2 {
    font-size: 19px;
    margin-bottom: 18px;
  }

  .mk-front-service-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
  }

  .mk-front-service-card {
    min-height: 132px;
    padding: 14px 7px;
    gap: 8px;
  }

  .mk-front-service-card strong {
    font-size: 16px;
  }

  .mk-front-service-card span {
    font-size: 11px;
  }

  .mk-front-service-card em {
    font-size: 12px;
  }

  /* スマホ：選ばれる理由 */
  .mk-front-reasons {
    padding: 45px 16px;
  }

  .mk-front-reasons h2 {
    font-size: 23px;
  }

  .mk-front-reasons-lead {
    font-size: 13px;
  }

  .mk-front-reasons-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mk-front-reason-card {
    padding: 22px 20px;
  }

  .mk-front-reason-card h3 {
    font-size: 18px;
  }
}

/* 6. 小さいスマホ */

@media screen and (max-width: 360px) {
  .mk-front-headline-top {
    font-size: 16px;
  }

  .mk-front-accent {
    font-size: 22px;
  }
}

/* 7. タブレット向け */

@media screen and (min-width: 768px)
and (max-width: 1100px) {

  .mk-front-copy {
    max-width: 53%;
  }

  .mk-front-headline-top {
    font-size: 25px;
  }

  .mk-front-accent {
    font-size: 34px;
  }

  .mk-front-lead {
    font-size: 15px;
  }
}

/* =====================================
   FAQ：回答をすべて常時表示
===================================== */

.faq .panel {
  display: block !important;
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* 質問の開閉操作を無効化 */
.faq .accordion {
  cursor: default !important;
  pointer-events: none;
}

/* 開閉用の矢印を非表示 */
.faq .accordion::after {
  display: none !important;
}


/* ===== HubSpot お問い合わせフォーム ===== */

.mk-front-contact {
  padding: 65px 20px;
  background: #f4faff;
  scroll-margin-top: 100px;
}

.mk-front-contact-inner {
  max-width: 850px;
  margin: 0 auto;
  padding: 45px 40px;
  background: #fff;
  border: 1px solid #d5e2f4;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(40,80,130,0.06);
}

.mk-front-contact-label {
  text-align: center;
  color: #527bbb;
  font-size: 14px;
  font-weight: bold;
}

.mk-front-contact h2 {
  text-align: center;
  color: #263b5d;
  font-size: 30px;
  margin: 12px 0 20px;
}

.mk-front-contact-lead {
  text-align: center;
  color: #45566c;
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 30px;
}

.mk-front-hubspot-form {
  width: 100%;
  min-width: 0;
}

@media screen and (max-width: 767px) {
  .mk-front-contact {
    padding: 35px 12px;
  }

  .mk-front-contact-inner {
    padding: 28px 14px;
  }

  .mk-front-contact h2 {
    font-size: 23px;
  }

  .mk-front-contact-lead {
    font-size: 13px;
  }

  .mk-front-contact-lead br {
    display: none;
  }
}
