﻿@charset "utf-8";

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #000000;
}

p {
  font-family: sans-serif;
}

/* メインコンテンツ */
.main {
  padding: 60px 0 0 0;
  background-color: #1a1a1a;
}

.service-container {
  width: 70%;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 20px 5% 20px 5%;
  box-sizing: border-box;
}

/* タイトル */
.service-title {
  font-family: sans-serif;
  font-size: 1.6rem;
  font-weight: bold;
  color: #312C8A;
}
.service-title span {
  font-family: sans-serif;
  font-size: 1.3rem;
  font-weight: bold;
  color: #312C8A;
}
.service-title2 {
  font-family: sans-serif;
  font-size: 1.1rem;
  color: #312C8A;
  margin: 2px auto 0px auto;
}
.service-title::after {
  content: "";
  display: block;
  width: 106%; /* ← ここでラインだけ長くする */
  height: 2px;
  background-color: #dddddd;
  margin: 20px auto 0px auto;
  transform: translateX(-3%); /* ← 横にはみ出す補正 */
}
/* 各サービス項目 */
.service-item1 {
  padding: 0px 0px 20px 0px;
}

.service-item1::after {
  content: "";
  display: block;
  width: 106%; /* ← ここでラインだけ長くする */
  height: 2px;
  background-color: #000000;
  margin: 0px auto 0px auto;
  transform: translateX(-3%); /* ← 横にはみ出す補正 */
}

.service-line1 {
  font-size: 1.1rem;
  font-weight: bold;
  color: #000000;
}

.service-container2 {
  display: flex;           /* 横並びにする */
  justify-content: center; /* 中央寄せ */
  gap: 20px;               /* 各ブロックの間隔 */
  margin: 10px auto 0px auto;
}

.service-item2 {
  margin: 0px auto 0px auto;
}

.service-line2 {
  font-size: 1.1rem;
  font-weight: bold;
  color: #000000;
}

.service-img2 {
  width: 100%;            /* 画像サイズ調整（任意） */
  height: auto;
  display: block;
  margin-top: 0px;         /* 文字と画像の間隔 */
  cursor: pointer; /* ← これを追加！ */
}



.service-container3 {
  display: flex;           /* 横並びにする */
  justify-content: center; /* 中央寄せ */
  gap: 20px;               /* 各ブロックの間隔 */
  margin: 10px auto 0px auto;
}

.service-item3 {
  margin: 0px auto 40px auto;
}

.service-line3 {
  font-size: 1.1rem;
  font-weight: bold;
  color: #000000;
}

.service-img3 {
  width: 100%;            /* 画像サイズ調整（任意） */
  border: 1px solid #aaa;
  height: auto;
  display: block;
  margin-top: -5px;         /* 文字と画像の間隔 */
  cursor: pointer; /* ← これを追加！ */
}

/* モーダル背景（フェード＋ビネット風） */
.modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0,0,0,0.75);
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.0s ease, visibility 0s linear 1.0s;
  display: flex;
  align-items: flex-start; /* ← ここを変更（上寄せ） */
  justify-content: center;
  padding-top: 13%; /* ← 上から少し余白をとる（好みで調整） */
}

/* モーダルを表示するとき */
.modal.show {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.0s ease;
}

/* モーダル内容（落下＆フェード） */
.modal-content {
  position: relative;
  font-family: sans-serif;
  background: radial-gradient(circle, rgba(200,200,200,1.0) 75%, rgba(150,150,150,1.0) 100%);
  color: #000000;
  padding: 20px 30px;
  width: 40%;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  transform: translateY(-40px);
  opacity: 0;
  transition: all 1.0s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ボタン中央寄せラッパー */
.modal-link-wrapper {
  text-align: center; /* ボタンだけ中央に */
  margin-top: 20px;
}

.modal-link {
  display: inline-block;
  margin-top: 10px;
  margin-left: 0px; /* ← 少し左寄せ */

  color: #000000;
  text-decoration: none;
  padding: 5px 20px;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: background-color 1.0s ease, color 0.8s ease;
}

.modal-link:hover {
  background-color: rgba(25, 35, 160,0.9);
  color: #ffffff;
}

/* 表示時アニメーション */
.modal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
}

/* 閉じるボタン（モーダル右上外） */
.close {
  position: absolute;
  top: -10px;
  right: -30px;
  font-size: 30px;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  z-index: 1100;
  transition: color 0.3s ease;
}

.close:hover {
  color: #aaaaaa;
}



/* レスポンシブ ------------------------------------------------------------------------------------------------------------ */
@media screen and (max-width: 1182px) {


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



.service-item1::after {
  margin: 30px auto -10px auto;
}

.service-container2 {
  display: block;
  justify-content: center; /* 中央寄せ */

}

.service-item2 img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  }

.service-container3 {
  display: block;
  justify-content: center; /* 中央寄せ */
}

.service-img3 {
  width: 100%;            /* 画像サイズ調整（任意） */
  height: auto;
  display: block;
  margin-top: 0px;         /* 文字と画像の間隔 */
  cursor: pointer; /* ← これを追加！ */
}

.service-img3 img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  display: block;
}

.service-item3 {
  margin: 0px auto 0px auto;
}

@media screen and (max-width: 732px) {
.section {
  max-width: 100%;
  padding: 0;
  margin: 0 auto 20px auto;
  overflow-x: hidden;
  }

.service-container {
  width: 100%;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 20px 5% 20px 5%;
  box-sizing: border-box;
}

.service-title2 {
  font-size: 1.0rem;
}

.section img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  }

.service-img2 {
  margin-top: -15px;         /* 文字と画像の間隔 */
}

.service-img3 {
  margin-top: -15px;         /* 文字と画像の間隔 */
}

/* モーダル内容（落下＆フェード） */
.modal-content {
  padding: 15px 15px;
  width: 60%;
  }

.modal-link {
  display: inline-block;
  margin-top: 10px;
  margin-left: 0px; /* ← 少し左寄せ */
  background-color: rgba(25, 35, 160,0.9);
  color: #ffffff;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: background-color 1.0s ease, color 0.8s ease;
 }
}

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

/* サブタイトル（右） */
.sub-title {
  font-size: 0.7rem;
  }
/* 下段の説明文 */
.description {
  font-size: 0.8rem;
  }
}
