body {
    margin: 0;
    font-family: sans-serif;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 10px;
}

.section {
    margin-bottom: 60px;
}

.split {
    width: 48%;
}

h1 {
    font-size: 2.5em;
}

#section1, #section2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4%;
}

#section1 img, #section2 img {
    max-width: 100%;
    height: auto;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.row-boxes {
    display: flex;
    gap: 20px;
}

.gray-box {
    background-color: #eee;
    padding: 2px;
    flex: 1;
}

.full {
    width: 100%;
}

#section3 .card-row {
    display: flex;
    gap: 20px;
}

#section3 .card {
    flex: 1;
    padding: 20px;
    background-color: transparent;
    border: none;
}

#section3 .no-border .card {
    border: none;
}

#section4 {
    display: block;
    padding: 0;
    background: none;
    color: #fff;
}
.section4-sp {
  display: none;
}
.section4-overlay {
    background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
                url('image/4.jpg') center/cover no-repeat;
    padding: 60px 40px;
    color: #333;
}

.section4-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    margin-top: 20px;
    position: relative;
    flex-wrap: wrap;
}

.section4-divider {
    width: 2px;
    background-color: #b6b6b6;
    height: 250px;
    position: relative;
    z-index: 1;
}

.section4-left {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: right;
}

.section4-right {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 60px; /* 左本文より下にずらす */
}

.section4-left h3::before {
    content: "";
    position: absolute;
    top: 0.6em;
    right: -40px;
    width: 30px;
    height: 2px;
    background-color: #b6b6b6;
}

.section4-right h3::before {
    content: "";
    position: absolute;
    top: 0.6em;
    left: -40px;
    width: 30px;
    height: 2px;
    background-color: #b6b6b6;
}

.section4-cross {
    position: absolute;
    top: 0.6em;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: #b6b6b6;
    z-index: 2;
}

/* 左タイトル横線の交差点に配置 */
.cross-box.left {
    position: absolute;
    top: 0.6em;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background-color: #d5d5d5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 2;
}

/* 右タイトル横線の交差点に配置 */
.cross-box.right {
    position: absolute;
    top: 4.4em;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background-color: #d5d5d5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 2;
}

.section5-content {
    gap: 20px;
    align-items: flex-start;
}

#section5 .card-row {
    display: flex;
    gap: 20px;
}

#section5 .card {
    flex: 1;
    padding-top: 10px;
    padding-bottom: 1px;
    background-color: transparent;
    border: none;
}

#section5 .no-border .card {
    border: none;
}

.section5-image {
  text-align: center;
  margin: 20px 0;
}

.section5-image img {
  max-width: 100%;
  height: auto;
}

.section6-image {
  text-align: center;
  margin: 20px 0;
}

.section6-image img {
  max-width: 100%;
  height: auto;
}

.section7 {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.section7 h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 28px;
}

.section7-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

.section7-left {
  flex: 1;
  max-width: 10%;
}

.section7-left img {
  width: 80%;
  height: auto;
  border-radius: 8px;
}

.section7-right {
  flex: 2;
}

.section7-right h3 {
  margin-top: 0;
}

#section8 .company {
/*     display: flex; */
}
#section8 .data {
    flex: 1;
    padding: 10px;
    background-color: transparent;
    border: none;
}
#section8 h1 {
    margin-top: 5px;
    margin-bottom: 10px;
}
#section8 .data h3 {
    margin: 0;
    background-color: transparent;
    border: none;
}
#section8 .data p {
    margin: 0;
    padding-left: 20px;
    background-color: transparent;
    border: none;
}

/* 初期状態（非表示 & 下から） */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.3s ease-out;
}

/* スクロール表示で有効化された状態 */
.fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* 初期状態（非表示 & 中央から） */
.zoom-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* スクロール表示で有効化された状態 */
.zoom-in.active {
  opacity: 1;
  transform: scale(1);
}

/* アニメーションディレイを段階的に設定 */
.fade-delay-1 {
  transition-delay: 0.1s;
}

.fade-delay-2 {
  transition-delay: 0.2s;
}

.fade-delay-3 {
  transition-delay: 0.3s;
}

.fade-delay-4 {
  transition-delay: 0.4s;
}

.fade-delay-5 {
  transition-delay: 0.5s;
}

/* 3点メニューボタン */
.menu-toggle {
  position: fixed;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  z-index: 1001;
  background-color: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
}

/* メニュー本体 */
.menu {
  position: fixed;
  top: 50px;
  right: 15px;
  background-color: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  display: none;
  z-index: 1000;
}

.menu.active {
  display: block;
}

.menu ul {
  list-style: none;
  margin: 0;
  padding: 10px 0;
}

.menu li {
  margin: 0;
}

.menu a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
}

.menu a:hover {
  background-color: #f0f0f0;
}

@media screen and (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .menu-toggle {
    top: 8px;
    right: 10px;
    font-size: 22px;
    padding: 6px 10px;
  }

  .menu {
    top: 45px;
    right: 10px;
    width: 80%;
    max-width: 300px;
  }

  .menu a {
    padding: 12px;
    font-size: 16px;
  }

  .container {
    max-width: 750px;
    margin: auto;
    padding: 10px;
  }

  /* 画像を画面幅に合わせて縮小 */
  img {
    max-width: 100%;
    height: auto;
  }

  #section1, #section2 {
      flex-direction: column;
  }
  .split {
      flex-direction: column;
      width: 100%;
  }
  .row-boxes {
      flex-direction: column;
  }
  .card-row {
      flex-direction: column;
  }

  #section4 {
      display: none;
  }
  .section4-sp {
    display: block;
    padding: 40px 20px;
  }
  /* コンテナ：縦線＋テキストの横並び */
.section4-content-sp {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  position: relative;
}

/* 左側の縦線 */
.section4-divider-sp {
  width: 2px;
  background-color: #b6b6b6;
  height: auto;
  position: relative;
}

/* 右側ブロック（縦並び） */
.section4-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* 各タイトルに横線 */
.section4-heading {
  position: relative;
  padding-left: 20px;
  margin-top: 0;
}

.section4-heading::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 20px;
  height: 2px;
  background-color: #b6b6b6;
}

/* 四角形（交差点） */
.cross-box {
  position: absolute;
  width: 28px;
  height: 28px;
  background-color: #d5d5d5;
  color: black;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  z-index: 2;
}

/* 交差点1の位置 */
.cross-box.box1 {
  top: 0.7em; /* タイトル1の位置と合わせる */
  left: 0;
  transform: translate(-50%, -50%);
}

/* 交差点2の位置 */
.cross-box.box2 {
  top: 10.0em; /* タイトル2の縦位置に合わせて調整 */
  left: 0;
  transform: translate(-50%, -50%);
}

  .section5-content {
    flex-direction: row;
    display: flex;
    /* display: flex; */
    /* justify-content: space-between; */
    /* align-items: flex-start; */
  }
  .section5-image {
    max-width: 80px;
    flex-shrink: 0;
  }
  #section5 .card-row {
    flex: 1;
    gap: 5px;
  }
  #section5 .card {
    display: flex;
    flex-direction: column;
    margin-top: 1px;
    margin-bottom: 1px;
  }
  #section5 .card h3{
    margin-top: 1px;
    margin-bottom: 1px;
  }
  #section5 .card p{
    margin-top: 5px;
    margin-top: 5px;
  }
  .section5-image img {
    width: 100%;
    height: auto;
  }


}
