:root {
  --shine-color: rgba(255, 255, 255, 0.3);
  --saturate-level: 1.5;
  --shine-skew: -25deg;
  --shine-duration: 0.75s;
  --zoom-scale: 1.05;
  --color-text-h2: #6BAF75;
}

/* Global Container Settings */
html {
  height: -webkit-fill-available;
  background-color: #ffffff; /* bodyから移動 */
  color: #2C5F2D; /* bodyから移動 */
  transition: background-color 0s, color 0s; /* スムーズな切り替えのために追加 */
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

.wrapper, main {
  flex: 1;
  /* max-width: 1000px; */
  /* margin: 0 auto; */
  /* padding: 20px; */
}

/* Hero Section */
.hero {
  position: relative; /* テキストを絶対配置するための基準 */
  height: 250px; /* 高さを固定 */
  overflow: hidden; /* はみ出しを隠す */
}

/* Slider */
.slider {
  height: 100%; /* 親要素の高さに合わせる */
}

.slider div {
  height: 100%; /* スライドの高さを親に合わせる */
}

.slider img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1600 / 500; /* アスペクト比を固定 */
  object-fit: cover; /* 画像をカバーするように表示 */
}

 /* Slick Dots Adjustments */
 .hero .slick-dots {
  bottom: 5px; /* Reposition dots within the hero area */
  z-index: 1;
}

.hero .slick-dots li button:before {
  font-size: 8px;
  color: #ffffff; /* White dots for contrast */
  opacity: 1;
}

.hero .slick-dots li.slick-active button:before {
  color: #6BAF75; /* アクティブなドット：赤（見やすい色に変更） */
  opacity: 1;
}

/* Hero Text Overlay */
.hero-text {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%); /* 上下中央揃え */
  color: #fff;
  background: rgba(0, 0, 0, 0.3); /* 読みやすさのための半透明背景 */
  max-width: 90%;
  padding: 0.5em 1em 0.8em 1em;
  box-sizing: border-box; /* パディングを幅に含める */
  z-index: 10; /* スライダーより手前に表示 */
}

/* Hero Text 内要素のスタイル */
.hero-text h1 {
  font-size: 1.8rem;
  margin: 0; /* 余白をリセット */
  line-height: 1.2; /* 行間を調整して高さを抑える */
}

.hero-text p {
  font-size: 1rem;
  margin: 0.5em 0 1em 0;
  line-height: 1.3; /* 行間を調整 */
}

/* ボタンの共通スタイル */
.cta-btn {
  display: inline-block; /* 上下のマージンを効かせる */
  width: auto; /* 幅をコンテンツに合わせる */
  height: auto; /* 高さをコンテンツに合わせる */
  background: #0078d7; /* デフォルトの背景色 */
  color: #fff; /* 文字色 */
  text-decoration: none; /* リンクの下線を削除 */
  border-radius: 30px; /* 角を丸く */
  transition: background 0.3s ease-in-out, opacity 0.3s ease-in-out; /* ホバー時のアニメーション */
  text-align: center; /* テキストを中央揃え */
}

.cta-btn:hover {
  background: #005bb5; /* ホバー時の背景色 */
}

/* .hero 用のボタンスタイル */
.cta-btn.hero-btn {
  padding: 8px 16px;
  font-weight: bold;
}

/* .hero 以外のボタンスタイル */
.cta-btn:not(.hero-btn) {
  padding: 10px 20px;
  margin: 10px 0 0;
  align-self: center;
}

.cta-btn:focus {
  outline: 2px solid #0078d7;
  outline-offset: 2px;
}

/* Main Content */
.main-content {
  padding: 30px 0px 0;
}

/* Content Blocks */
.content-block {
  background-color: #fafafa;
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  /* border-radius: 4px; */
  padding: 30px;
  margin-bottom: 30px;
}

.content-block h2 {
  font-size: 1.7rem;
  margin-bottom: 15px;
  color: var(--color-text-h2);
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.content-block:last-child {
  margin-bottom: 0;
}

.content-block p {
  font-size: 1rem;
  margin-bottom: 15px;
  line-height: 1.6;
  color: #333;
}

.content-block p:last-child {
  margin-bottom: 0;
}

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

.features {
  list-style: none;
  margin: 1em 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.features li {
  display: flex;
  align-items: center;
  background-color: var(--color-service-bg);
  border: 1px solid var(--color-border);
  padding: 10px 15px;
  border-radius: 4px;
  font-size: 1rem;
  color: var(--color-text);
}

.features li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--color-text-h2);
  font-size: 1.2rem;
  margin-right: 10px;
}

/* Responsive */
@media (min-width: 768px) {
  .hero {
    height: 400px;
  }

  .hero-text h1 {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }

  .hero-text {
    max-width: 50%;
  }

  .hero-text p {
    font-size: 1.1rem;
  }

  .main-content {
    padding: 30px 12px 30px;
  }  

  .cta-wrapper {
    display: flex;
    justify-content: flex-end;
  }
}

/* Dark Mode Overrides */
html.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

html.dark-mode .slick-dots li button:before {
  color: #555; /* ダークモード用の通常のドットカラー */
  opacity: 1;
}

html.dark-mode .slick-dots li.slick-active button:before {
  color: #ffffff; /* ダークモード用のアクティブドットカラー */
}


html.dark-mode .slider img {
  filter: brightness(0.8) contrast(1.1);
}

html.dark-mode .slider img:hover {
  filter: saturate(var(--dark-saturate-level));
}

html.dark-mode .main-content {
  background: #1e1e1e;
  color: #e0e0e0;
}

html.dark-mode .content-block {
  background: #232323;
  box-shadow: none;
  border: 1px solid #444;
}

html.dark-mode .content-block h2 {
  color: var(--color-text-h2);
}

html.dark-mode .content-block p {
  color: var(--dark-color-secondary-text); /* 例: #A3A092 */
}

html.dark-mode .features li {
  background-color: var(--color-service-bg-dark);
  border: 1px solid var(--color-border-dark);
  color: var(--dark-color-text);
}