html {
  font-family: "Noto Sans JP", serif;
}

.container {
  width: 90%;
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
}

.pop {
  font-family: "Poppins", serif;
}

.flex {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  list-style-type: none;
}

/* ヘッダー */
header {
  padding: 27px 0;
}

/* ヘッダーがスクロールに追従するスタイル */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: white;
  /* 背景色を設定 */
  transition: 0.3s;
}

/* スクロール時にヘッダーの背景色を変更 */
.scrolled {
  background: rgba(255, 255, 255, 0.9);
}

.logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.logo span {
  color: #4178c0;
}

.logo {
  color: black;
}

.header_menu li {
  margin-left: 40px;
}

.header_menu li a {
  text-decoration: none;
  color: black;
  transition: 0.3s;
}

.header_menu li a:hover {
  color: #4178c0;

  transition: 0.3s;
}

@media only screen and (max-width: 768px) {
  header .container {
    justify-content: center;
  }

  .header_menu li {
    margin: 20px 16px 0;
  }

  nav ul {
    padding-left: 0;
  }
}

/* メイン */

#hero {
  background-image: url(img/toppage.png);
  background-position: center;
  background-size: cover;
  width: 100%;
  max-width: none;
  height: 800px;
  /* 縦幅を増やす */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 90px;
  overflow: hidden;
  border-radius: 0;
}

#hero::before {
  content: "";
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.hero_inner {
  z-index: 2;
  color: white;
  text-align: center;
  width: 100%;
  padding: 0 10%;
  opacity: 0;
  /* 初期状態で非表示 */
  transform: translateY(20px);
  /* 下からの位置 */
  transition: opacity 0.5s ease, transform 0.5s ease;
  /* フェードインのトランジション */
}

.hero_inner.active {
  opacity: 1;
  /* 表示 */
  transform: translateY(0);
  /* 元の位置に戻す */
}

.hero_inner p {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 16px;
}

.hero_inner h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
}

@media only screen and (max-width: 768px) {
  #hero {
    height: 550px;
    /* モバイルでは少し控えめに */
  }

  .hero_inner p {
    font-size: 15px;
  }

  .hero_inner h1 {
    font-size: 17px;
  }

  #software {
    height: 550px;
    /* モバイルでは少し控えめに */
  }

  .software_inner p {
    font-size: 15px;
  }

  .software_inner h1 {
    font-size: 17px;
  }
}

/* コンセプト */

#concept {
  margin-bottom: 120px;
}

.title {
  font-size: 20px;
  font-weight: 500;
  color: #4178c0;

  margin-bottom: 40px;
}

#concept h3 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 60px;
}

.colum-2 {
  width: 48%;
}

.text {
  line-height: 2;
}

.concept-img {
  background-image: url(img/top-2.png);
  background-position: center;
  background-size: cover;
  height: 340px;
  border-radius: 20px;
}

.heading {
  font-family: "Dancing Script", serif;
  font-size: 200px;
  font-weight: 700;
  color: #4a68ba;
  opacity: 0.1;
  position: absolute;
  top: 0;
  right: 0;
  transform: translateY(-30%);
}

@media only screen and (max-width: 768px) {
  #concept h3 {
    font-size: 24px;
    line-height: 1.5;
  }

  .colum-2 {
    width: 100%;
  }

  .text {
    line-height: 1.7;
    font-size: 15px;
  }

  .concept-img {
    margin-top: 30px;
  }
}

/* サービス */
#service {
  margin-bottom: 120px;
}

.service_inner {
  margin-bottom: 40px;
  position: relative;
}

.column-40 {
  width: 40%;
}

.column-55 {
  width: 55%;
}

#service img {
  border-radius: 20px;
}

#service h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

@media only screen and (max-width: 768px) {
  .column-40 {
    width: 100%;
    margin-bottom: 30px;
  }

  .column-55 {
    width: 100%;
  }

  #service h3 {
    font-size: 17px;
  }
}

/* カンパニー */

#company {
  margin-bottom: 120px;
}

#company dl {
  max-width: 900px;
  margin-left: auto;
}

#company dt {
  width: 30%;
  padding: 48px 0;
  border-bottom: solid 1px #d2ecba;
}

#company dd {
  width: 70%;
  padding: 48px 0;
  border-bottom: solid 1px #d2ecba;
}

@media only screen and (max-width: 768px) {
  #company dl {
    font-size: 13px;
  }
}

/* ボトム */
.column-a {
  background-image: url(img/bottom1.jpg);
  background-position: center;
  background-size: cover;
  width: 24%;
  min-width: 300px;
  height: 270px;
  border-radius: 20px;
}

.column-b {
  background-image: url(img/bottom2.jpg);
  background-position: center;
  background-size: cover;
  width: 18%;
  min-width: 250px;
  height: 270px;
  border-radius: 20px;
}

.column-c {
  background-image: url(img/bottom3.jpg);
  background-position: center;
  background-size: cover;
  width: 24%;
  min-width: 300px;
  height: 270px;
  border-radius: 20px;
}

.column-d {
  background-image: url(img/bottom4.jpg);
  background-position: center;
  background-size: cover;
  width: 28%;
  min-width: 350px;
  height: 270px;
  border-radius: 20px;
}

@media only screen and (max-width: 768px) {
  .column-a,
  .column-b,
  .column-c,
  .column-d {
    width: 48%;
    height: 140px;
    margin: 1%;
  }
}

/* フッター */
footer {
  text-align: center;
  margin: 90px 0;
}

.copyright {
  font-size: 12px;
  margin-top: 40px;
}

.fade-in {
  opacity: 0;
  transition: opacity 1s ease-in;
}

.fade-in.visible {
  opacity: 1;
}

.slide-fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1.5s ease-out;
  will-change: opacity, transform;
}

.slide-fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

.company {
  padding: 50px 20px;
  text-align: center;
  border-radius: 10px;
}

.company h2 {
  font-size: 28px;
  font-weight: bold;
  color: #4178c0;
  margin-bottom: 20px;
}

.company table {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.company th,
.company td {
  padding: 15px;
  text-align: left;
  font-size: 16px;
  border-bottom: 1px solid #ddd;
}

.company th {
  background: #4178c0;
  color: white;
  font-weight: bold;
}

.company tr:last-child td {
  border-bottom: none;
}

@media only screen and (max-width: 768px) {
  .company table {
    font-size: 14px;
  }

  .company th,
  .company td {
    padding: 10px;
  }
}

/* NEWS セクション */
.news {
  max-width: 900px;
  margin: 50px auto;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.news h2 {
  font-size: 24px;
  font-weight: bold;
  color: #4178c0;
  margin-bottom: 15px;
  text-align: left;
  border-bottom: 2px solid #4178c0;
  padding-bottom: 10px;
}

.news ul {
  list-style: none;
  padding: 0;
}

.news li {
  font-size: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

.news li:last-child {
  border-bottom: none;
}

/* ハイライトリンク */
.highlight {
  color: #e60000;
  font-weight: bold;
  text-decoration: none;
}

.highlight:hover {
  text-decoration: underline;
}

/* お問い合わせセクション */
.contact {
  max-width: 800px;
  margin: 150px auto;
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.contact h2 {
  font-size: 24px;
  font-weight: bold;
  color: #4178c0;
  margin-bottom: 20px;
  text-align: left;
  border-bottom: 2px solid #4178c0;
  padding-bottom: 10px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form label {
  font-weight: bold;
  text-align: left;
  font-size: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

.contact-form textarea {
  resize: none;
  height: 120px;
}

.contact-btn {
  background: #e60000;
  color: white;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  /* transition: background 0.3s; */
  align-self: center;
}

.contact-btn:hover {
  background: #c40000;
}

/* ソフトウェアセクションのレイアウト調整 */
.software-section {
  display: flex;
  flex-direction: column;
  gap: 50px;
  /* background: #f9f9f9; */
  padding: 50px 0;
}

.software-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.software-item.active {
  opacity: 1;
  transform: translateY(0);
}

.software-item .text {
  width: 50%;
  text-align: left;
}

.software-item .text h3 {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.software-item .text p {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
}

.software-item .image {
  width: 45%;
}

.software-item .image img {
  width: 100%;
  border-radius: 10px;
}

/* 2列目のスタイル（画像右、テキスト左） */
.left-image {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  .software-item {
    flex-direction: column;
    text-align: center;
  }

  .software-item .text,
  .software-item .image {
    width: 100%;
  }
}

.fade-in-right {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-right.active {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-left.active {
  opacity: 1;
  transform: translateX(0);
}

/* サービス */

#software {
  background-image: url(img/software/software-top.png);
  background-position: center;
  background-size: cover;
  width: 100%;
  max-width: none;
  height: 800px;
  /* 縦幅を増やす */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 90px;
  overflow: hidden;
  border-radius: 0;
}

#software::before {
  content: "";
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.software_inner {
  z-index: 2;
  color: white;
  text-align: center;
  width: 100%;
  padding: 0 10%;
}

.software_inner.active {
  opacity: 1;
  /* 表示 */
  transform: translateY(0);
  /* 元の位置に戻す */
}

.software_inner p {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 16px;
}

.software_inner h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
}

.fade-in-text {
  opacity: 0;
  /* 初期状態で非表示 */
  transform: translateY(30px);
  /* 下からの位置を調整 */
  transition: opacity 0.5s ease, transform 0.5s ease;
  /* フェードインのトランジション */
}

.fade-in-text.active {
  opacity: 1;
  /* 表示 */
  transform: translateY(0);
  /* 元の位置に戻す */
}

/* スマホサイズの画像表示位置を調整（レスポンシブ対応で小さくし、全体表示） */
@media only screen and (max-width: 768px) {
  .software-item {
    flex-direction: column;
    text-align: center;
  }
  .software-item .image {
    order: -1; /* 画像を文章の上に配置 */
    width: 80%; /* 画像を少し小さく */
    margin-bottom: 20px;
    object-fit: contain; /* 画像の全体表示 */
  }
  .software-item .image img {
    width: 100%;
    height: auto;
    object-fit: contain; /* 画像を縦横比を保って全体表示 */
  }
  .software-item .text {
    width: 100%;
  }
}
@media only screen and (max-width: 768px) {
  .mobile-br {
    display: block; /* スマホ時に改行 */
  }
}

@media only screen and (min-width: 769px) {
  .mobile-br {
    display: none; /* PCでは改行しない */
  }
}

.info-section {
  text-align: center;
  margin-bottom: 20px;
}
.info-text {
  font-size: 18px;
  line-height: 1.6;
}
.map-container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}
