/* ===== リセット（必要であれば） ===== */
html, body {
  margin: 0;
  padding: 0;
}

/* ===== 全体設定 ===== */
body {
  background-color: var(--color-base);
  color: var(--color-text);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.05em;
}

.container {
  width: 100%;
  text-align: center;
  padding: 0;
}

/* ===== 共通の <p> 設定（セクション2の設定を統一） ===== */
p {
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.8;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ===== 画像共通設定 ===== */
.responsive-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== セクション2（画像＋h1） ===== */
.container-2 .image-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.container-2 h1.main-title {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: clamp(16px, 3vw, 24px);
  letter-spacing: 0.05em;
  text-align: center;
  width: 90%;
  margin: 0;
}

/* ===== セクション3（下線付きテキスト） ===== */
.container-3 {
  position: relative;
  padding: 0;
}

.container-3 .text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  color: #fff;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.underlined {
  text-decoration: underline;
}

/* ===== セクション4 ===== */
.container-4 h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.arrow {
  font-size: 2rem;
  margin: 20px 0;
}

/* ===== 画像ボックス ===== */
.image-box {
  margin-top: 30px;
}

.center-image {
  max-width: 300px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ===== セクション5（フッター） ===== */
.container-5 {
  padding: 0;
  position: relative;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
}

.short-height {
  max-height: 300px;
  object-fit: cover;
}

.footer {
  background: #fff;
  color: #070101;
  font-size: 0.9rem;
  padding: 10px 0;
}

/* ===== セクション2〜5：上下の余白を追加 ===== */
.container-2,
.container-3,
.container-4,
.container-5 {
  margin-top: 60px;
  margin-bottom: 60px;
}

/* ===== レスポンシブ対応 ===== */
@media (max-width: 768px) {
  .container-2 h1.main-title {
    font-size: clamp(14px, 4vw, 20px);
  }

  .container-4 h1 {
    font-size: 1.5rem;
  }

  .container-3 .text-overlay {
    font-size: 0.9rem;
  }
}


@media (max-width: 768px) {
  p {
    font-size: 0.95rem; /* スマホで少し小さめ */
    line-height: 1.6;    /* 行間を少し詰める */
    padding-left: 1rem;  /* 両端に少し余白をつける */
    padding-right: 1rem;
  }
}

@media (max-width: 480px) {
  p {
    font-size: 0.8rem;
    line-height: 1.5;
  }
}
p {
  max-width: 90vw;
  margin-left: auto;
  margin-right: auto;
  word-break: break-word;
}

/* デフォルトはPC表示 */
.image-pc {
  display: block;
}

.image-sp {
  display: none;
}

/* スマホのときに切り替え */
@media (max-width: 768px) {
  .image-pc {
    display: none;
  }

  .image-sp {
    display: block;
  }
}

/* デフォルトでは <br> を非表示（PC） */
.br-sp {
  display: none;
}

/* スマホだけ <br> を表示して強制改行 */
@media (max-width: 768px) {
  .br-sp {
    display: inline;
  }
}
