/* =========================
   基本レイアウト
========================= */

#mainContent {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

sup {
  color: #000;
  font-size: 0.6rem;
}

.alignLeft {
  text-align: left;
}

.desktop-only { display: flex; }
.mobile-only { display: none; }

/* =========================
   共通スタイル
========================= */
.section-title {
  font-size: 2.5rem !important;
  font-weight: 600 !important;
  text-align: center;
  margin: 4rem 0;
}

.section-subTitle {
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.5em;
  text-align: center;
  line-height: 1.3;
}

/* =========================
   導入部分（ヒーロー）
========================= */

.hero-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 auto;
}

.hero-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  width: 100%;
  padding: 2rem;
  margin: 0 auto;
}

.hero-top .hero-logo {
  position: absolute;
  top: 40%;
  right: -20%;
  transform: translateY(-50%);
  width: 40%;
  opacity: 0.8;
  z-index: 0;
}

.hero-top img {
  max-width: 100%;
  height: auto;
}

.hero-subtitle {
  background: #004483;
  color: #fff;
  padding: 8px;
  margin: 0 0 1em;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
}

.hero-title {
  color: #CC5C00;
  font-size: 3.5rem !important;
  font-weight: 900 !important;
  margin: 0;
}

.hero-bottom {
  width: 90%;
  margin: 0 auto;
  text-align: center;
}

.hero-bottom img {
  max-width: 100%;
  height: auto;
}

.hero-statement {
  font-size: 1.5rem;
  color: #004483;
  font-weight: 600;
  line-height: 1.6;
  margin: 0 auto;
  width: 80%;
}

/* =========================
   利用イメージ
========================= */

.usage {
  width: 90%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.box-container {
  flex-direction: column;
  gap: 80px;
  width: 90%;
  margin: 0 auto;
}

.box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.box-text {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  width: 100%;
}

.box-text::after {
  content: "";
  position: absolute;
  top: 20%;
  left: 0;
  width: 100%;
  height: 80%;
  background-color: #FFF2DB;
  z-index: -1;
}

.box-text p {
  margin: 1rem 2rem;
}

.box-title {
  padding: 0.7em 0;
  border: 2px solid #003866;
  position: relative;
  background-color: #fff;
  width: 400px;
}

.box-title h3 {
  margin: 0;
  color: #003866;
  font-weight: 600 !important;
  text-align: center;
}

.box-title::before {
  left: -8px;
  top: -8px;
}

.number-box {
  position: absolute;
  left: -16px;
  top: 0;
  transform: translateY(-80%);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: #fff;
  color: #003866;
  font-size: 2rem;
  font-weight: 600;
  border-radius: 4px;
}

.box-image {
  flex: 0 0 12rem;
}

.box-image img {
  width: 100%;
  height: auto;
  display: block;
}

*,::before, ::after {
  box-sizing: border-box;
}

/* =========================
   システムの特徴
========================= */
.features {
  width: 70%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.features-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 70%;
  margin: 0 auto;
}

.features-content.odd {
  position: relative;
  padding: 40px 0;
}

.features-content.odd::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  width: 100vw;
  background: #FFF2DB;
}

.features-content .section-subTitle {
  margin: 1rem auto;
}

/* =========================
   主な機能一覧
========================= */
.function {
  width: 70%;
  padding: 24px;
  border-radius: 8px;
  background-color: #F7F6D9;
}

/* =========================
   製品パンフレットリンク
========================= */
.brochureLink {
  text-align: center;
}

/* =========================
   レスポンシブ対応
========================= */
@media (max-width: 1024px) {
  .features, .function { width: 90%; }
  .box-title { width: 300px; }
  .box-title h3 { font-size: 1rem; }
  .box-container { width: 100%; }
}

@media (max-width: 768px) {
  .desktop-only { display: none; }
  .mobile-only { display: flex; }

  .section-title { font-size: 1.8rem !important; }

  .hero-container { flex-direction: column; }
  .hero-title { font-size: 2.2rem !important; }
  .hero-subtitle { font-size: 1.2rem; }
  .hero-top { min-width: 300px; }
  .hero-statement { font-size: 1rem; }

  .features, .function { width: 95%; }
  .features-content { width: 100%; }

  .box { flex-direction: column; }
  .box-image img {
    width: 50%;
    margin: 0 auto;
  }
  .box-title {
    max-width: 85%;
    margin: 0 auto;
  }
  .number-box { font-size: 1.5rem; }

  .function-content.mobile-only {
    display: block;
  }
  .function-content-parent {
    padding: 1rem 0;
  }
  .function-content-child {
    padding-left: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-top {
    min-width: 100%;
    padding: 2rem 0;
   }
  .hero-title { font-size: 1.8rem !important; }
  .hero-subtitle { font-size: 1rem; }
  .section-subTitle { font-size: 1.2rem !important; }
  .usage { width: 100%; }
  .box-image {
    flex: 0 0 auto;
    width: 100%;
  }
}