/* sol.html 専用スタイル（元<style>タグより移植） */
/* 必要に応じてここにスタイルを追加してください */

/* ソリューション領域の背景画像スタイル */
#solution-areas {
  min-height: 100vh;
  position: relative;
}

#solution-areas .crystal-card {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
}

/* 背景画像のオーバーレイアニメーション */
#solution-areas::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 33, 71, 0.1) 0%,
    transparent 50%,
    rgba(0, 71, 142, 0.1) 100%
  );
  animation: overlayPulse 8s ease-in-out infinite;
  z-index: 0;
}

@keyframes overlayPulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

/* 統一セクションタイトルスタイル */
.section-title {
  margin-bottom: 3rem !important;
  margin-top: 3rem !important;
}

.section-title h2 {
  font-size: 32px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  margin-bottom: 20px !important;
  padding-bottom: 20px !important;
  position: relative !important;
  color: #3b434c !important;
}

.section-title h2::before {
  content: "" !important;
  position: absolute !important;
  display: block !important;
  width: 120px !important;
  height: 1px !important;
  background: #ddd !important;
  bottom: 1px !important;
  left: calc(50% - 60px) !important;
}

.section-title h2::after {
  content: "" !important;
  position: absolute !important;
  display: block !important;
  width: 40px !important;
  height: 3px !important;
  background: #ff8c00 !important;
  bottom: 0 !important;
  left: calc(50% - 20px) !important;
}

.section-title h3 {
  padding: 0 !important;
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  color: #6c757d !important;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: image-set(
    url("../images/solution/solution_001.webp") type("image/webp"),
    url("../images/solution/solution_001.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.hero-overlay {
  background: linear-gradient(
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.4)
  ) !important;
}
.hero-section .container {
  position: relative;
  z-index: 10;
}
.hero-content {
  position: absolute;
  z-index: 10;
  top: 30%;
  left: 0;
  width: 100%;
}
.hero-section-line {
  z-index: 11 !important;
}
.solution-wrapper {
  position: relative;
  width: 100%;
  overflow-x: hidden;
}
.hero-section {
  position: relative;
  min-height: 80vh;
  max-height: 800px;
  background-color: #003366;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 76px;
  z-index: 1;
}
.text-navy {
  color: #003366;
}
.bg-navy {
  background-color: #003366;
}
.venn-section {
  position: relative;
  overflow: hidden;
}
.crystal-card {
  background-color: rgba(255, 255, 255, 0.98) !important;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  color: #333 !important;
}

/* ダークモード対応でも明るい背景を維持 */
@media (prefers-color-scheme: dark) {
  .crystal-card {
    background-color: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #333 !important;
  }
}

.crystal-card .card-title {
  color: #1a1a1a !important;
  font-weight: 600 !important;
}

.crystal-card .card-text {
  color: #444 !important;
}
.crystal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.crystal-list {
  font-size: 0.85rem;
  color: #555 !important;
}

.crystal-list li {
  color: #555 !important;
  margin-bottom: 3px;
}
.solution-heading {
  color: #003366;
  font-weight: 600;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid #eee;
  padding: 0.75rem 1rem;
  background-color: #e9ecef;
  border-radius: 0 8px 8px 0;
  border-left: 4px solid #495057;
}
.solution-subheading {
  font-size: 1.1rem;
  margin-top: 1.25rem;
  font-weight: 600;
}
.leftbar {
  position: relative;
  padding-left: 15px;
}
.leftbar:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #003366, #0066cc);
  border-radius: 3px;
}
.feature-card,
.case-study-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  will-change: transform;
}
.feature-card:hover,
.case-study-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}
@media (max-width: 992px) {
  .hero-section {
    min-height: 70vh;
    max-height: 700px;
  }
}
@media (max-width: 768px) {
  .hero-section {
    min-height: 60vh;
    max-height: 600px;
    margin-top: 60px;
  }
  .venn-section {
    padding: 3rem 0;
  }
}
@media (max-width: 576px) {
  .hero-section {
    min-height: 50vh;
    max-height: 500px;
  }
}
.summary-section {
  position: relative;
  background: linear-gradient(135deg, #1a4db3, #3b82f6, #60a5fa);
  padding: 5rem 0;
  width: 100%;
  z-index: 1;
  overflow: hidden;
}
.summary-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  opacity: 0.15;
  z-index: -1;
  animation: pulse 8s ease-in-out infinite alternate;
}
.summary-section::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  z-index: -1;
  animation: rotate 30s linear infinite;
}
.summary-section .bg-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background-image: url("../images/solution/solution_summary_bg.jpg");
  background-size: cover;
  background-position: center right;
  opacity: 0.15;
  z-index: 0;
  border-top-right-radius: 100px;
  border-bottom-right-radius: 20px;
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 40%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 40%,
    rgba(0, 0, 0, 0) 100%
  );
  filter: grayscale(30%) contrast(110%);
}
@keyframes pulse {
  0% {
    opacity: 0.1;
  }
  100% {
    opacity: 0.2;
  }
}
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.summary-section .container {
  position: relative;
  z-index: 2;
}
.summary-section .section-title {
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.05em;
  color: white;
}
.summary-section .lead {
  font-size: 1.25rem;
  line-height: 1.8;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  color: white;
  position: relative;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 8px;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}
.summary-section .lead:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.contact-section {
  height: auto !important;
  padding-top: 2rem !important;
  text-align: center;
}
@media (max-width: 768px) {
  .summary-section {
    padding: 3rem 0;
  }
  .summary-section .section-title {
    font-size: 2rem;
  }
  .summary-section .lead {
    font-size: 1.1rem;
    line-height: 1.6;
    padding: 1rem;
  }
  .summary-section .bg-image-overlay {
    width: 100%;
    opacity: 0.1;
    border-radius: 0;
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* ヒーローセクションのテキストスタイル */
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-title .title-line-1 {
  color: #007bff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  display: block;
  font-weight: bold;
}

.hero-title .title-line-2 {
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  display: block;
  margin-top: 0.5rem;
  font-weight: bold;
}

.hero-title .white-text {
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: bold;
}

.hero-content .lead {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-cta-wrapper {
  margin-top: 2rem;
  text-align: right;
}

.hero-cta-wrapper .btn-primary {
  background-color: #007bff;
  border-color: #007bff;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.hero-cta-wrapper .btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .hero-content {
    top: 25%;
  }

  /* ソリューションセクションの縦並び対応 */
  #solution-details .row {
    flex-direction: column !important;
  }

  #solution-details .col-md-6 {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 2rem !important;
  }

  /* 画像を上に、テキストを下に配置 */
  #solution-details .col-md-6 img {
    order: 1 !important;
  }

  /* 各行の順序調整 */
  #solution-details .row:nth-child(1) .col-md-6:first-child {
    order: 2 !important; /* テキスト */
  }

  #solution-details .row:nth-child(1) .col-md-6:last-child {
    order: 1 !important; /* 画像 */
  }

  #solution-details .row:nth-child(2) .col-md-6:first-child {
    order: 1 !important; /* 画像 */
  }

  #solution-details .row:nth-child(2) .col-md-6:last-child {
    order: 2 !important; /* テキスト */
  }

  #solution-details .row:nth-child(3) .col-md-6:first-child {
    order: 2 !important; /* テキスト */
  }

  #solution-details .row:nth-child(3) .col-md-6:last-child {
    order: 1 !important; /* 画像 */
  }

  /* 画像のマージン調整 */
  #solution-details img.img-fluid {
    margin-bottom: 1.5rem !important;
  }

  /* テキストの読みやすさ向上 */
  #solution-details .solution-heading {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
  }

  #solution-details .solution-subheading {
    font-size: 1.2rem !important;
    margin-bottom: 0.8rem !important;
  }

  #solution-details p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.2rem !important;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-title .title-line-1,
  .hero-title .title-line-2 {
    font-size: 2.5rem;
  }

  .hero-content .lead {
    font-size: 1.2rem;
  }

  .hero-cta-wrapper {
    text-align: center;
  }

  .hero-cta-wrapper .btn-primary {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
  }
}
