body {
  margin: 0;
  padding: 0; /* ← これを明示して余白を削除 */
  background-color: black;
  font-family: sans-serif;
  color: white;
}
.middle-section {
  position: relative;
  display: inline-block;
  margin-top: 0;
  padding-top: 0;
}
.middle-img {
  width: 100%;
  max-width: 1200px;
  display: block;
}

.overlay-link {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  color: red;
  font-size: 2.5em;
  font-weight: bold;
  text-align: left;
  text-decoration: none;
  background-color: transparent;
  padding: 10px 0;
  border-radius: 5px;
  z-index: 10;
  word-break: break-all;
}






*,
*:before,
*:after {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
}

html {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-size: 162.5%;
}

.btn,
a.btn,
button.btn {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
  position: relative;
  display: inline-block;
  padding: 1rem 4rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  letter-spacing: 0.1em;
  color: #212529;
  border-radius: 0.5rem;
}

.btn-border-gradient-wrap {
  display: inline-block;
  margin: 0;
  padding: 0;
}

.btn-border-gradient-wrap--gold {
  background-image: -webkit-linear-gradient(
    315deg,
    #704308 0%,
    #ffce08 37%,
    #fefeb2 47%,
    #fafad6 50%,
    #fefeb2 53%,
    #e1ce08 63%,
    #704308 100%
  );
  background-image: linear-gradient(
    135deg,
    #704308 0%,
    #ffce08 37%,
    #fefeb2 47%,
    #fafad6 50%,
    #fefeb2 53%,
    #e1ce08 63%,
    #704308 100%
  );
}

.btn-border-gradient-wrap--gold:hover a.btn {
  text-shadow: 0 0 15px rgba(250, 250, 214, 0.5),
    0 0 15px rgba(250, 250, 214, 0.5), 0 0 15px rgba(250, 250, 214, 0.5),
    0 0 15px rgba(250, 250, 214, 0.5);
}

a.btn-border-gradient {
  font-size: 2rem;
  background: #000;
}

.btn-text-gradient--gold {
  font-family: "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro",
    "Hiragino Mincho ProN", "HGS明朝E", "ＭＳ Ｐ明朝", serif;

  background: -webkit-gradient(
    linear,
    left bottom,
    left top,
    from(#ffffdb),
    to(#a16422)
  );

  background: -webkit-linear-gradient(bottom, #ffffdb, #a16422);

  background: linear-gradient(to top, #ffffdb, #a16422);
  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;
}

/* --- フォームの縦並び用 --- */
.form-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 1rem;
}
/* ---------- レイアウト補助 ---------- */


/* iframe をはみ出させない */
.iframe-wrapper {
  margin-top: 0;
  margin: 0;
  padding: 0;
}
.iframe-wrapper iframe {
  margin: 0;
  padding: 0;
  display: block;
  border: none;
}

/* テキストリンクをまとめて縦並び */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

/* 共通リンク装飾（赤＋下線なし） */
.ext-link {
  color: red;
  text-decoration: none;
}

/* 画像を常に画面幅にフィットさせる */
.section-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* スマホ向け (600px 以下) でも要素は縦積み */

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

.content-block {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  height: auto;
}
.link-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1.5rem 0;
  text-align: center;
}

.ext-link {
  color: red;
  text-decoration: none;
}

a.btn-border-gradient {
  text-decoration: none; /* 下線を消す */
}
/* -------- フォーム背景 -------- */
.form-background {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background: #000;
  margin: 0 auto;
  padding: 0;
}
/* -------- iframe を常に全表示 -------- */
.content-block iframe {
  display: block;
  width: 100%;
  height: 1800px;      /* ★ フォームの実長に合わせる。足りなければ増やす */
  max-height: none;
  border: none;
  overflow: visible;
  min-height: 100vh;
}
/* ─── HERO 画像と重ねる文字 ───────────────────── */
.hero {
  position: relative;           /* 文字をこの中で絶対配置 */
  width: 100vw;                 /* 画面幅いっぱい */
  max-width: 1200px;            /* 必要なら上限 */
  margin: 0 auto;
}

.hero-img {
  width: 100%;
  height: auto;                 /* 画像をそのまま表示 */
  display: block;
}

/* 共通テキストスタイル */
.hero-text {
  position: absolute;
  top: 0;
  left: 12%;                    /* 横中央基準 */
  transform: none;
  font-family: "Yu Gothic", sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 3rem);   /* 画面幅で可変 */
  font-weight: 700;
  text-align: left;
  line-height: 1.2;
  white-space: normal;        /* <br> を改行として扱う */
  max-width: 90%;
  pointer-events: none;         /* クリック貫通 (任意) */
}

.hero-text {
  position: absolute;
  top: 15%;                     /* 背景画像内の縦位置（％で指定） */
  left: 8%;                     /* 背景画像内の横位置 */
  transform: none;             /* ← セミコロンを忘れずに！ */

  font-family: "Yu Gothic", sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 3rem);  /* 画面幅に追従 */
  font-weight: 700;
  text-align: left;
  line-height: 1.4;
  white-space: normal;
  max-width: 90%;

  pointer-events: none;        /* マウス無効（必要なら） */
  z-index: 10;                 /* 背景画像より上に表示 */
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);  /* 可読性向上 */
}

/* 赤文字：大きめ */
.hero-text.red {
  color: #ff0000;
  top: 20%;
  font-size: clamp(0.6rem, 1.5vw, 3rem);  /* ← スマホ〜PC対応で大きめ */
  line-height: clamp(0.1rem, 1vw, 1rem);
}

/* 緑文字：少し控えめ */
.hero-text.green {
  color: #00ff99;
  top: 43%;
  font-size: clamp(0.7rem, 1.5vw, 2.1rem);  /* ← 少し小さめ */
  line-height: clamp(1rem, 1.6vw, 2rem); /* こちらも詰める */
}

/* スマホで少し縮めたい場合 */
@media (max-width: 600px) {

  /* ── ① ヒーローテキストを小さく ── */
  .hero-text {
    font-size: clamp(0.7rem, 2.5vw, 1rem);
  }

  /* ── ② iframe を 1 画面ぶんの高さにして内部スクロール ── */
  .content-block iframe {
    width: 100%;
    height: 1800px;                 /* 画面高いっぱい */
    display: block;
    border: none;
    overflow: visible;
  }
}
/* ① 赤・緑テキスト全体をさらに下へ：*/
  .hero-text-block {
    top: 10vh;               /* ← いま 8% 前後なら 10vh 程度にする */
    left: 5%;
    width: 90%;
  }
    /* ② テキスト行間と文字サイズを小さめにして全体を詰める */
  .hero-text-block p.red,
  .hero-text-block p.green {
    font-size: clamp(0.7rem, 2.4vw, 0.95rem);
    line-height: 1.15;      /* ← 詰めすぎなら 1.2 に */
    margin: 0.15em 0;
  }
  .overlay-link {
    font-size: 1.1em;
    width: 90%;
    padding: 8px 0;
  }
    /* ③ EA の詳細ボタンをテキストの下にずらす */
  .overlay-link {
    position: relative;      /* ← absolute でなく flow に乗せる */
    display: block;
    margin: 4vh auto 0;      /* 上 4vh で十分離す（必要なら増減） */
    width: 90%;
    font-size: 1em;          /* スマホ用 */
    z-index: 2;              /* かぶり防止用にテキストより手前 */
  }
  .hero-copy {
    top: clamp(2rem, 6vh, 6rem); /* スマホ用に位置を詰める */
  }
    .btn-border-gradient {
    display: inline-block;
    white-space: nowrap;         /* ← 改行防止 */
    overflow: visible;
    text-overflow: ellipsis;     /* ← 長すぎたら省略（任意） */
    max-width: 190vw;             /* ← はみ出し防止（任意） */
    font-size: clamp(1.65rem, 3.2vw, 1rem)!important; /* ← スマホで文字を小さく */
  }

  .btn-text-gradient--gold {
    white-space: nowrap;         /* ← 改行防止 */
    font-size: inherit; /* ← 親に合わせる */}
}

.hero {
  background: url("top.jpg") top center / contain no-repeat;
  aspect-ratio: 16 / 9;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  position: relative;
}

.hero-copy {
  position: absolute;
  top: clamp(6rem, 12vh, 12rem);  /* ← ここを追加 */
  left: 3%;                        /* 位置調整したい場合は追加 */
  color: white;
  text-align: left;
  max-width: 90%;
  font-size: clamp(1rem, 2.5vw, 2rem);
  line-height: 1.4;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
  word-break: keep-all;
}

.hero-copy p {
  margin-bottom: 0.7rem;
}

.red-link {
  color: red;
  text-decoration: none;
}

.hero-copy .green {
  color: #00ff99;
}

.image-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.responsive-image {
  width: 100%;
  height: auto;
  display: block;
}

.text-overlay {
  position: absolute;
  font-size: clamp(1rem, 2vw, 2rem);
  font-weight: bold;
  line-height: 1.3;
  z-index: 2;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.red {
  color: red;
}

.green {
  color: #00ff99;
}

.hero-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 200px; /* ← 画像とテキストが十分収まる高さを指定 */

}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

.hero-text-block {
  position: absolute;
  top: 20%;
  left: 5%;
  width: 90%;
  color: white;
  font-size: clamp(1rem, 2vw, 2rem);
  line-height: 1.5;
  font-family: "Yu Gothic", sans-serif;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.hero-text-block .red {
  color: #ff0000;
  margin-bottom: 0.5rem;
}

.hero-text-block .green {
  color: #00ff99;
  margin-bottom: 0.5rem;
}
.hero-text-block p {
  margin: 0.3em 0;           /* 各段落の上下マージンを詰める */
  line-height: 1.4;          /* 行間を詰める */
  font-size: clamp(1rem, 2vw, 2.2rem);  /* 必要に応じて */
}
.tall-form{
  width:100%;
  height:1400px;   /* == フォームが確実に収まる値にする */
  max-width:1200px;
  display:block;
  border:none;
}
