:root {
  --primary-color: #1a365d;
  --primary-color-hover: #7e7f7f;
  --secondary-color: #0060e6;
  --background-color: #f8f9fa;
  --text-color: #333;
  --header-height: 60px;
  --transition-duration: 0.3s;
  --ivory-color: #fff9dc;
  --ivory-color-strong: #ffd768;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "BIZ UDPMincho", serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
  padding-top: 130px; /* ヘッダーの高さに合わせて調整 */
}

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

/* Header Section */
.header {
  position: fixed;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo-conent {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

/* logo image */
.main-logo-image {
  width: 310px;
  height: 100px;
  object-fit: cover;
}

.ishiyoshi-circle-logo {
  /* 形状と色 */
  width: 70px; /* 円のサイズ（適宜調整） */
  height: 70px;
  background-color: #388e3c; /* 濃い緑色 */
  border: 2px solid white; /* 外側の白い枠線 */
  border-radius: 50%; /* 円形にする */
  margin-top: 15px;

  /* テキストの配置と中央寄せ */
  display: flex;
  flex-direction: column; /* 縦方向に並べる */
  justify-content: center; /* 縦方向の中央寄せ */
  align-items: center; /* 横方向の中央寄せ */
  outline: 2px solid #388e3c; /* 緑色の細い枠線を外側に追加 */
  outline-offset: 1px; /* 白い枠線から2px離して配置 */
}

.ishiyoshi-circle-logo .text-top,
.ishiyoshi-circle-logo .text-bottom {
  color: white;
  font-weight: bold;
  line-height: 1.2;
  margin: 0;
  font-size: 22px;
}

.ishiyoshi-logo-end .text-top {
  margin-top: 25px;
  color: #388e3c;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  padding: 10px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0; /* 初期状態: 幅をゼロにして非表示 */
  height: 2px;
  background-color: var(--secondary-color); /* ボーダーの色 */
  transition: width 0.3s ease-out; /* 幅のアニメーションを設定 */
}

.nav-link:hover::after {
  width: 100%; /* ホバー時: 幅を100%にして全幅に伸ばす */
}

.nav-link:hover {
  color: var(--secondary-color);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 120%;
  left: 0;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--text-color);
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
  background-color: #f8f9fa;
  color: var(--secondary-color);
}

/* ハンバーガーアイコンの初期設定（非表示） */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 10; /* 他の要素の上に表示 */
}

.menu-toggle .line {
  display: block;
  width: 25px;
  height: 4px;
  background-color: #424242;
  margin: 6px 0;
  transition: 0.3s; /* アニメーションを滑らかにする */
}

/* --- .is-active クラスが適用されたときのスタイル（「X」への変形） --- */

/* 1. 上の線: 45度回転させ、中央に寄せる */
.menu-toggle.is-active .line:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

/* 2. 中央の線: 非表示にする */
.menu-toggle.is-active .line:nth-child(2) {
  opacity: 0;
}

/* 3. 下の線: -45度回転させ、中央に寄せる */
.menu-toggle.is-active .line:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* --- デフォルト（1200px未満のモバイル/タブレット表示） --- */

/* 1200px未満では、ナビリストを非表示にし、ハンバーガーアイコンを表示 */
@media (max-width: 1199px) {
  /* ナビゲーションリストは、初期状態では非表示 */
  .nav {
    display: none; /* 初期は非表示 */
  }

  /* モバイルメニューが開いたとき (JavaScriptでこのクラスを付与) */
  .nav.is-open {
    display: block;
    position: fixed; /* 画面に対して固定 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 背景を少し暗くしてオーバーレイ感を出す */
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 5;

    /* ナビリスト（<ul>）を中央に配置するためのFlexbox設定 */
    display: flex;
    align-items: center; /* 垂直方向中央 */
    justify-content: center; /* 水平方向中央 */
  }

  .nav a {
    /* テキストカラーを白に変更 */
    color: #fff;
    font-size: 1.3em; /* フォントサイズを大きくして視認性アップ */
    padding: 15px 30px;
    /* 下線色も白に近い色に調整 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }

  .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0; /* 初期状態: 幅をゼロにして非表示 */
    height: 2px;
    background-color: #fff; /* ボーダーの色 */
    transition: width 0.3s ease-out; /* 幅のアニメーションを設定 */
  }

  .nav-link:hover::after {
    width: 100%; /* ホバー時: 幅を100%にして全幅に伸ばす */
  }

  .nav-link:hover {
    color: #fff;
  }

  .dropdown-menu {
    position: absolute;
    top: 120%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-190px);
    transition: all 0.3s ease;
    z-index: 1001;
  }

  .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(-180px);
  }

  .dropdown-menu a {
    color: var(--text-color);
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 30px;
  }

  /* ハンバーガーアイコンを表示 */
  .menu-toggle {
    display: block;
  }
  .menu-toggle.is-active .line {
    background-color: #fff;
  }

  .info-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    padding: 15px 0;
  }
}

/* --- 1200px以上 (PC表示) --- */

/* 1200px以上では、ナビリストを表示し、ハンバーガーアイコンを非表示 */
@media (min-width: 1200px) {
  /* PCではリストは常時表示 */
  .nav {
    display: block !important; /* JavaScriptでis-openが付与されても常に表示 */
  }

  /* PCではハンバーガーアイコンを非表示 */
  .menu-toggle {
    display: none;
  }
}

/* Hero Section */
.hero {
  /* background: linear-gradient(135deg, #3d79b6 0%, #115eac 100%); */
  padding: 80px 100px;
  text-align: left;
}

/* 600px未満では、ナビリストを非表示にし、ハンバーガーアイコンを表示 */
@media (max-width: 599px) {
  .hero {
    padding: 80px 20px;
  }
}

.hero-title {
  font-size: 38px;
  margin-bottom: 30px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 0.3rem;
}

/* Mission Section */
.mission {
  padding: 40px 100px;
  color: var(--primary-color);
  width: 100%;
  height: 600px;
}

.mission-content {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  align-items: center;
  padding: 15px 0;
}

.section-title {
  text-align: center;
  font-size: 26px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.mission-subtitle {
  font-size: 28px;
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 30px;
  line-height: 1.4;
}

.mission-text {
  font-size: 18px;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 0.3rem;
  text-align: left;
}

/* mission-messageクラスの背景デザイン */
.mission-message {
  position: relative;
  background-color: #ffffff;
  padding: 20px;
  overflow: hidden;
  z-index: 1;
  text-align: center;
  color: #333;
  width: 600px;
  height: 500px;
  max-width: 100%; /* 親要素の幅を超えないようにする */
}

.mission-introduction {
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 2;
  margin-top: 20px;
  overflow: hidden; /* 背景の要素がはみ出さないように */
  position: relative; /* 擬似要素を配置するための基準 */
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4); /* わずかな浮遊感を出す影 */
}

/* 🔵 グラデーション背景の定義 */
.mission-introduction::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    168deg,
    rgba(0, 166, 255, 1) 0%,
    rgba(204, 237, 83, 0.4) 50%,
    rgba(237, 221, 83, 1) 100%
  );
  opacity: 1; /* 少し透明感を出す */
  z-index: -2;
}

.name-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 10px;
}

.human-content {
  display: flex;
  justify-content: center;
  align-items: start;
  gap: 20px;
  padding: 10px;
}

.mission-name {
  font-size: 28px;
  font-weight: bold;
  color: var(--text-color);
  line-height: 1.4;
}

.manager {
  border-bottom: solid 1px #1a365d;
}

.license {
  text-align: end;
  font-size: 16px;
  color: #666;
  margin-top: 10px;
}

.mission-image {
  width: 500px;
  height: 500px;
  max-width: 100%; /* 親要素の幅を超えないようにする */
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4); /* わずかな浮遊感を出す影 */
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.mission-image:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

/* スライドショーのスタイル設定 */
.slideshow-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-radius: 5%;

  /* ★フェードとぼかしの両方にトランジションを設定 */
  transition:
    opacity 1.5s ease-in-out,
    filter 1.5s ease-in-out;
  opacity: 0;
  /* 初期はぼかしなし */
  filter: blur(0px);
}

/* 現在表示中のレイヤー */
.active-layer {
  opacity: 1;
  /* アクティブ時はぼかしなし */
  filter: blur(0px);
}

/* ★ぼかしながらフェードアウトするレイヤーに適用するクラス */
.blur-out-layer {
  /* フェードアウト中に最大20pxぼかす */
  filter: blur(20px);
  /* 透明になる */
  opacity: 0;
}

#slideshow-bg {
  position: relative;
  cursor: pointer;
}

/* オーバーレイの基本スタイル */
.bgm-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* 画像を見せつつ暗くする */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  transition:
    opacity 0.8s ease,
    visibility 0.8s;
}

/* クリック後に付与する非表示クラス */
.bgm-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 再生アイコンのデザイン */
.play-circle {
  width: 70px;
  height: 70px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 10px;
  transition: transform 0.3s ease;
}

.play-triangle {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #ffffff;
  margin-left: 4px;
}

.play-text {
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.2em;
}

.bgm-overlay:hover .play-circle {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.1);
}

/* 1200px未満では、ナビリストを非表示にし、ハンバーガーアイコンを表示 */
@media (max-width: 1199px) {
  .mission {
    padding: 20px 0;
    height: fit-content;
  }

  /* コンテンツを縦並びに変更 */
  .mission-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
  }

  .mission-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 520px;
    margin-bottom: 20px;
    padding: 0;
  }

  .mission-introduction {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 550px;
    min-width: 350px;
  }

  .human-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 10px;
  }

  .mission-image {
    width: 100%;
    min-width: 250px;
  }
}

/* Strengths Section */
.strengths {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.strengths-subtitle {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 50px;
  line-height: 1.4;
}

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.strength-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.strength-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.strength-description {
  min-height: 200px;
  padding: 0px 30px 40px;
}

.strength-number {
  font-size: 48px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1;
}

.strength-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 20px;
  line-height: 1.4;
}

.strength-link {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border: 2px solid #1a365d;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.strength-link:hover {
  background-color: var(--primary-color);
  color: white;
}

.strength-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

/* Information Section */
.information {
  padding: 80px 0;
  background-color: #fff;
}

.info-subtitle {
  font-size: 28px;
  font-weight: bold;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 50px;
}

.info-text {
  font-size: 24px;
  line-height: 1.6;
  color: var(--text-color);
}

/* .info-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  padding: 15px 0;
} */

.info-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
  padding: 15px 0;
}

.info-item {
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  /* padding: 40px; */
  overflow: hidden;
  z-index: 1;
  text-align: center;
  color: #333;
  width: 350px;
  height: 350px;
  position: relative;
}

/* 擬似要素1: 寒色系のぼかし円（左上） */
.info-item-blue::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 350px;
  translate: calc(-50%);

  /* 色の透明度をわずかに上げる (0.25 → 0.35) */
  background-color: rgba(68, 138, 255, 0.35);
  border-radius: 50%;
  filter: blur(20px);
  z-index: -1;
}

/* 擬似要素2: 寒色系のぼかし円（左上） */
.info-item-yellow::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 350px;
  translate: calc(-50%);

  /* 色の透明度をわずかに上げる (0.25 → 0.35) */
  background-color: rgba(255, 155, 68, 0.35);
  border-radius: 50%;
  filter: blur(20px);
  z-index: -1;
}

/* 擬似要素2: 寒色系のぼかし円（左上） */
.info-item-green::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 350px;
  translate: calc(-50%);

  /* 色の透明度をわずかに上げる (0.25 → 0.35) */
  background-color: rgba(84, 255, 68, 0.35);
  border-radius: 50%;
  filter: blur(20px);
  z-index: -1;
}

.info-discription {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 20px;
}

.info-more {
  display: block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  padding: 3px 8px;
  border: 2px solid #1a365d;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.info-more:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Access Section */
.access {
  padding: 80px 0;
  background-color: #f8f9fa;
  text-align: center;
}

.access-subtitle {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 50px;
}

.access-info {
  max-width: 600px;
  margin: 0 auto;
}

.contact-info {
  background-color: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.address,
.phone {
  font-size: 16px;
  /* margin-bottom: 20px; */
  color: var(--text-color);
  text-decoration: none;
  padding: 10px 0;
}

.address:hover {
  color: var(--secondary-color);
}

.transport-info {
  display: flex;
  justify-content: space-between;
  margin: 30px 0;
  gap: 20px;
}

.transport-item {
  flex: 1;
}

.transport-item h5 {
  font-size: 16px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.contact-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.contact-btn:hover {
  background-color: #2d5a87;
}

.iframe-container {
  position: relative;
  width: 100%;
  /* 16:9 のアスペクト比を維持するためのパディング (9 / 16 * 100 = 56.25%) */
  padding-top: 56.25%;
  margin-top: 20px;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
.footer {
  background-color: var(--text-color);
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-bottom: 80px;
}

.footer-logo p {
  font-size: 18px;
  color: #ccc;
  margin-bottom: 40px;
}

.copyright {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 40px;
}

/* スクロールトップボタンのスタイル */
#scrollToTopBtn {
  font-family: poppuns, sans-serif;
  gap: 5px;
  /* 画面右下に固定配置 */
  position: fixed;
  bottom: 30px;
  right: 30px;
  /* 見た目の調整 */
  z-index: 99; /* 他の要素より手前に表示 */
  background-color: #3498db; /* ボタンの背景色 */
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 10%;
  font-size: 20px;
  line-height: 1.2;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);

  /* 初期状態は非表示 */
  display: none;

  /* ホバー時の見た目の変化をスムーズにする */
  transition: background-color 0.3s ease;
}

#scrollToTopBtn:hover {
  background-color: #2980b9;
}

/* 補足: Google Icons (Material Symbols) の調整 */
#scrollToTopBtn .material-symbols-outlined {
  /* アイコンとテキストの高さを揃えるために、アイコンのサイズとマージンを調整 */
  font-size: 20px;
  /* Flexアイテムとなったアイコン自体の垂直方向の配置を微調整 (任意) */
  /* アイコンのベースラインがテキストより上にズレる場合によく使われる調整 */
  margin-top: 2px;
  margin-right: 7px;
}

.scroll-comment {
  margin-bottom: 2px;
}

.tile-big {
  color: var(--text-color);
  font-size: 38px;
  font-weight: bold;
  line-height: 1.2;
}

.tile-middle {
  color: var(--text-color);
  font-size: 18px;
  line-height: 1.8;
}

.tile-small {
  color: var(--text-color);
  margin-right: 10px;
  margin-bottom: 30px;
  text-align: center;
  font-size: 18px;
  line-height: 1.2;
}

/* 各タイルの共通スタイル */
.tile {
  /* オーバーレイ用に相対位置指定 */
  position: relative;
  width: 50px;
  height: 50px;
  /* タイルの色 */
  /* background-color: #0048ac; */
  opacity: 0;
  transform: scale(0); /* 初期状態は縮小 */

  /* アニメーション設定 */
  animation-name: fill-in;
  animation-duration: 1s; /* アニメーションの速度をさらに速く */
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
}

/* アニメーションのキーフレーム: 縮小から元のサイズへ */
@keyframes fill-in {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* (N) 番目のタイルに (N-1) * 0.03秒の遅延を設定 */
/* タイル数が増えたため、遅延時間を 0.03s に短縮し、全体の表示時間を調整 */
.tile {
  animation-delay: calc((var(--n) - 1) * 0.02s);
}

/* ギャラリーの配置 */
.gallery {
  display: flex;
  gap: 10px;
}

.gallery img {
  width: 150px;
  height: 100px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.3s;
}

.gallery img:hover {
  border: 2px solid #007bff;
}

.lightbox-trigger.underline-link {
  /* デフォルトのテキストデコレーション（下線）を削除 */
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  /* ホバー時の変化を滑らかにするためのトランジション（オプション） */
  transition: color 0.3s ease;
  padding: 10px 0;
  position: relative;
}

.lightbox-trigger.underline-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0; /* 初期状態: 幅をゼロにして非表示 */
  height: 2px;
  background-color: var(--secondary-color); /* ボーダーの色 */
  transition: width 0.3s ease-out; /* 幅のアニメーションを設定 */
}

.lightbox-trigger.underline-link:hover::after {
  width: 100%; /* ホバー時: 幅を100%にして全幅に伸ばす */
}

.lightbox-trigger.underline-link:hover {
  color: var(--secondary-color);
}

/* 🔦 ライトボックス (モーダル) スタイル */
.lightbox {
  display: none; /* 初期状態では非表示 */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(29, 31, 37);
  overflow: auto;
  /* ライトボックス自体のフェードイン */
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

/* 半透明の背景 */
.lightbox.human-image {
  background-color: var(--ivory-color);
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1; /* ライトボックスが表示されたら完全に不透明に */
}

/* 🔦 ライトボックス (モーダル) スタイル - 関連修正 */
.lightbox-content {
  /* 画像とキャプションを縦に中央揃えするための調整 */
  display: flex;
  flex-direction: column;
  align-items: center; /* 横方向中央揃え */
  justify-content: center; /* 縦方向中央揃え */

  margin: auto;
  max-width: 90%;
  max-height: 90%;
  transition: transform 0.3s ease-out;
}

/* 💡 コメント・ページ番号エリアのスタイル */
.lightbox-caption {
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  background-color: var(--primary-color); /* 見やすくするために背景を追加 */
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  font-size: 18px;
  /* 下の角を丸く */
  border-bottom-left-radius: 10px; /* 左下 */
  border-bottom-right-radius: 10px; /* 右下 */
}

/* 💡 コメント・ページ番号エリアのスタイル（文字色と背景色を変更） */
.lightbox-caption.human-image {
  color: var(--primary-color);
  background-color: var(--ivory-color-strong);
}

#caption-text {
  margin: 5px 0;
}

#page-counter {
  margin: 5px 0;
  font-size: 0.9em;
}

/* 💡 画像のアニメーションのラッパー (変更点: transform を削除) */
.lightbox-image-wrapper {
  position: relative;
  /* 非表示時の初期状態 (透明) */
  opacity: 0;
  /* opacity にのみトランジションを設定 */
  transition: opacity 0.3s ease-out;
  /* 画像と同じ最大サイズを適用し、ビューポートを基準としたサイズを制限 */
  max-width: 100vw;
  max-height: 80vh;
  /* ラッパー内での画像のサイズ調整を可能にする */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  /* 上の角を丸く */
  border-top-left-radius: 10px; /* 左上 */
  border-top-right-radius: 10px; /* 右上 */
}

/* 💡 画像表示時の状態 (通常の位置、不透明) */
.lightbox.active .lightbox-image-wrapper.show {
  opacity: 1; /* フェードインして表示 */
}

#lightbox-image {
  width: 100%;
  height: auto;
  max-width: 100vw;
  max-height: 80vh;
  display: block;
  object-fit: contain;
}

/* ❌ 閉じるボタン */
.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
  color: #bbb;
  opacity: 1;
  text-decoration: none;
  cursor: pointer;
}

/* ❌ 閉じるボタン（文字色変更） */
.close-btn.human-image {
  color: var(--primary-color);
}

.close-btn.human-image:hover,
.close-btn.human-image:focus {
  color: var(--primary-color-hover);
}

/* ◀️ ▶️ カルーセルボタン */
.prev-btn,
.next-btn {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 1;
}

.prev-btn {
  left: 10px;
  border-radius: 3px 0 0 3px;
}

.next-btn {
  right: 10px;
  border-radius: 3px 0 0 3px;
}

.prev-btn:hover,
.next-btn:hover {
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 1;
}

/* Compare Section */
.price {
  padding: 80px 0;
  background-color: #fff;
  text-align: center;
}

.ohaka-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  padding: 15px 0;
}

/*
 * 1. コンテナ設定
 * 画像と金額タグの重ね合わせの基準となるように relative を指定
 */
.price-container {
  /* 画像のサイズに合わせて調整してください */
  width: 500px;
  height: 500px;
  max-width: 100%; /* 親要素の幅を超えないようにする */
  position: relative;
  display: inline-block; /* コンテナを内容物のサイズに合わせる */
  overflow: hidden; /* 必要に応じて */
}

/*
 * 2. 画像設定
 * コンテナ内に収まるように設定
 */
.ohaka-illust-image {
  width: 450px;
  height: 550px;
  max-width: 100%; /* 親要素の幅を超えないようにする */
  margin: 10px;
  object-fit: cover;
}

/*
 * 3. 金額タグの絶対配置とスタイル
 * absolute で画像の上に重ねる
 */
.price-tag {
  position: absolute;
  /* 画像の右上、または左上など、目立たせたい位置に調整してください */
  top: 70%;
  right: 5%;

  /* デザイン：チラシ風に目立たせる */
  background: #ff4500; /* 目立つオレンジ色 */
  color: white;
  padding: 15px 10px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* 立体感を出す */
  text-align: center;
  font-family: "Arial Black", sans-serif; /* インパクトのあるフォント */
  line-height: 1.2;
  transform: rotate(3deg); /* 少し傾けて、手書きのチラシのような雰囲気を出す */
}

/*
 * 4. 新しく追加する注意書きのスタイル
 * 画像の左上に絶対配置
 */
.note-company {
  position: absolute;
  top: 5%; /* 上からの位置を調整 */
  left: 5%; /* 左からの位置を調整 */

  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  z-index: 10; /* 他の要素より手前に表示するために z-index を指定 */
  white-space: nowrap; /* テキストが途中で改行されないように */
}

.note-company.other-company {
  background: #49647d; /* 半透明の黒背景 */
}

.note-company.my-company {
  background: #388e3c; /* 半透明の黒背景 */
}

.catchphrase {
  font-size: 24px;
  margin-bottom: 5px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.price-main {
  font-size: 0; /* インライン要素間のスペースをリセット */
  white-space: nowrap; /* 価格が途中で改行されないようにする */
}

.currency {
  font-size: 24px;
  font-weight: bold;
  vertical-align: top; /* 単位を金額の上端に合わせる */
  margin-right: -5px;
}

.amount {
  font-size: 56px; /* 金額を一番大きく */
  font-weight: 900;
  /* 価格を赤色で強調 */
  text-shadow: 2px 2px 0 #8b0000; /* 価格に影をつけ、さらに目立たせる */
}

.unit {
  font-size: 24px;
  font-weight: bold;
  margin-left: -5px;
  vertical-align: top;
}

.tax-note {
  font-size: 18px;
  margin-top: 5px;
  font-weight: bold;
}

.compare-content {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding: 15px 0;
}

.compare-table {
  display: grid;
  /* 4つの列: ラベル, 購入ヘッダー, レンタルヘッダー, 補足 */
  grid-template-columns: 250px 1.5fr 1.5fr;
  border-collapse: collapse;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

/* --- ヘッダー行 (購入/レンタル) のスタイル --- */
.table-header {
  display: contents; /* grid-template-columns の定義に沿って要素を配置 */
  font-weight: bold;
  color: #ffffff;
  text-align: center;
}

/* 左上角は空白 */
.col-head {
  background-color: #f0f0f0; /* 薄い灰色 */
}

/* 購入する場合のヘッダー */
.col-buy {
  background-color: #49647d; /* 濃い青 */
  padding: 15px 10px;
}

/* レンタルする場合のヘッダー */
.col-rent {
  background-color: #5cb85c; /* 濃い緑 */
  padding: 15px 10px;
}

/* --- データ行のスタイル --- */
.table-row {
  display: contents;
}

.table-row > div:first-child {
  border-top: 1px solid #ddd;
}

.table-row > div {
  padding: 15px 10px;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.col-label.total-label {
  font-size: 24px;
  color: #333333;
}

/* ラベル列 (左側) */
.col-label {
  background-color: #f0f0f0; /* 薄い灰色 */
  color: #666; /* 濃い灰色 */
  font-size: 16px;
  font-weight: bold;
  justify-content: flex-start; /* 左寄せ */
  padding-left: 20px;
}

/* 購入データ列の基本スタイル */
.col-buy.data-white {
  background-color: #ffffff;
  color: #333333; /* 濃い文字色 */
}

/* レンタルデータ列の基本スタイル */
.col-rent.data-green {
  background-color: #ffffff;
  color: #5cb85c; /* 緑の文字色 */
  font-weight: bold;
}

/* 日数 (購入) の補足 */
.col-buy.data-buy-note {
  background-color: #ffffff;
  color: #666;
  font-size: 14px;
  justify-content: center;
}

/* 購入費用合計 */
.total-row .total-buy {
  font-size: 24px;
  font-weight: bold;
  color: #333333;
}

/* レンタル費用合計 */
.total-row .total-rent {
  background-color: #e6ffe6; /* 薄い緑の背景 */
  color: #5cb85c;
  font-size: 24px;
  font-weight: bold;
}

.total-label {
  font-weight: bold;
  font-size: 24px;
}

/* 下部の比較テキストエリア */
.footnote-area {
  text-align: center;
  margin-top: 20px;
  padding: 10px;
}

/*
 * 「同じ品質でも、こんなに違います！！」のスタイル
 * 緑色の大きめフォントに
 */
.summary-text {
  color: #28a745; /* 緑色 */
  font-size: 48px; /* 大きめサイズ */
  font-weight: bold;
  margin-bottom: 15px;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* 少し影をつけて立体感を */
}

/*
 * 「その差額はなんと20万円！」の破裂する円形デザイン用ラッパー
 */
.emphasis-circle-wrapper {
  position: relative; /* 子要素の絶対配置の基準 */
  display: inline-block; /* 内容に合わせてサイズ調整 */
  margin-top: 20px;
  margin-bottom: 30px; /* 下にスペース */
  /* ここに直接はスタイルを適用せず、中の emphasis-text に適用 */
}

/*
 * 「その差額はなんと20万円！」のテキスト（破裂する円のスタイル）
 */
.emphasis-text {
  /* 破裂する円のデザイン */
  background-color: #dc3545; /* 赤色 */
  color: white;
  padding: 20px 30px; /* パディングで円の大きさを調整 */
  border-radius: 50%; /* 円形にする */
  position: relative;
  font-size: 36px; /* テキストサイズ */
  font-weight: bold;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3); /* テキストに影 */
  line-height: 1.3;
  display: inline-block; /* 内容に合わせてサイズ調整 */
  white-space: nowrap; /* テキストが途中で改行されないように */

  /* 破裂感を出すための擬似要素 */
  box-shadow:
    0 0 0 5px #dc3545,
    /* 外側に同色で影 */ 0 0 0 10px rgba(220, 53, 69, 0.5),
    /* 少し薄い赤で外側にもう一層 */ 0 0 0 15px rgba(220, 53, 69, 0.2); /* さらに薄い赤で外側にもう一層 */
  animation: pulse 1.5s infinite alternate; /* 鼓動するようなアニメーション */

  /* 斜めに傾けてダイナミックに */
  transform: rotate(-5deg);
}

.emphasis-text.display-toggle {
  display: none; /* 初期状態では非表示 */
}

/* 金額「20万円」を特に強調 */
.emphasis-text span {
  font-size: 1.5em; /* 親要素の1.5倍の大きさ */
  color: #ffeb3b; /* 明るい黄色で強調 */
  text-shadow: 2px 2px 0 #c0392b; /* 濃い赤系の影 */
}

/* 破裂感を出すアニメーション */
@keyframes pulse {
  0% {
    transform: scale(1) rotate(-5deg);
    box-shadow:
      0 0 0 5px #dc3545,
      0 0 0 10px rgba(220, 53, 69, 0.5),
      0 0 0 15px rgba(220, 53, 69, 0.2);
  }
  100% {
    transform: scale(1.05) rotate(-5deg);
    box-shadow:
      0 0 0 5px #dc3545,
      0 0 0 12px rgba(220, 53, 69, 0.7),
      0 0 0 20px rgba(220, 53, 69, 0.4);
  }
}

/*
 * 雲のようなふわふわとした矢印のスタイル
 * 吹き出し（フキダシ）デザインで表現
 */
.summary-text-arrow {
  display: inline-block; /* 内容に合わせてサイズ調整 */
  position: relative;
  padding: 20px 30px;

  /* 背景と文字色 */
  background-color: #fee9d9; /* 薄いオレンジ/ベージュ系の背景 */
  color: #28a745; /* 緑色の文字 */

  font-size: 20px;
  font-weight: bold;
  line-height: 1.6;
  text-align: left; /* 読みやすいように左揃えに */

  /* 雲のような丸みとふわふわ感 */
  border-radius: 40px 40px 40px 10px; /* 隅の丸みを非対称にして雲のような形状に */
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); /* 軽めの影で浮遊感を出す */
  border: 3px solid #ff6347; /* 赤系のボーダー色 (Tomato色) */

  /* 矢印（しっぽ）の生成（今回は右下を少し尖らせることで矢印の代わりとします） */
  /* * コミック風のフキダシの「しっぽ」を付ける場合は、
    * ::after 擬似要素を使用して、右下などに小さな三角を配置します。
    */
}

/* * 補足: より明確な「矢印」や「しっぽ」を付けるためのCSS例
 * 例として、フキダシを下に向けた「しっぽ」を付けます。
 */
.summary-text-arrow::after {
  content: "";
  position: absolute;
  bottom: -15px; /* 下に突き出す */
  left: 50%;
  transform: translateX(-50%) rotate(45deg); /* 回転させて三角に */
  width: 20px;
  height: 20px;
  background-color: #f0f0f0; /* 本体と同じ背景色 */
  border-right: 2px solid #ccc;
  border-bottom: 2px solid #ccc;
  z-index: -1; /* 本体より背面に配置 (不要な場合が多い) */
}

/* 1200px未満では、ナビリストを非表示にし、ハンバーガーアイコンを表示 */
@media (max-width: 1199px) {
  /* 下部の比較テキストエリア */
  .footnote-area {
    width: 100%;
  }
}

/* 600px未満では、ナビリストを非表示にし、ハンバーガーアイコンを表示 */
@media (max-width: 599px) {
  /*
   * 「その差額はなんと20万円！」のテキスト（破裂する円のスタイル）
   */
  .emphasis-text {
    display: none; /* スマホでは非表示 */
  }

  .emphasis-text.display-toggle {
    display: block; /* スマホでは表示 */
  }

  /* logo image */
  .main-logo-image {
    width: 280px;
    height: 100px;
    object-fit: cover;
  }

  .ishiyoshi-logo-start {
    display: none; /* スマホでは表示 */
  }

  .ishiyoshi-logo-end {
    display: none; /* スマホでは表示 */
  }

  /* 施工例 */
  .info-item {
    width: 290px;
    height: 290px;
  }

  /*
  * 1. コンテナ設定
  * 画像と金額タグの重ね合わせの基準となるように relative を指定
  */
  .price-container {
    width: 290px;
  }

  /* 下部の比較テキストエリア */
  .compare-content .emphasis-circle-wrapper {
    width: 90%;
  }

  .emphasis-text.display-toggle {
    font-size: 28px;
  }

  .compare-table {
    display: grid;
    /* 4つの列: ラベル, 購入ヘッダー, レンタルヘッダー, 補足 */
    grid-template-columns: 160px 1.5fr 1.5fr;
  }

  /* ラベル列 (左側) */
  .col-label {
    width: 160px;
  }
  /* 左上角は空白 */
  .col-head {
    width: 160px;
  }
}
