body {
  margin: 0;
  min-height: 100dvh;

  background-image: url("../images/paraphrase.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.30);
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

h1 {
  position: fixed;
  top: 	140px; /* 固定位置はそのままキープ */
  left: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;

  /* フォントをアンティークなセリフ体（明朝体）に変更 */
  font-family: 'Cinzel', 'Georgia', 'Times New Roman', serif;
  font-style: normal;
  
  /* すべて大文字にしてクラシックで厳かな雰囲気を演出 */
  text-transform: uppercase;
}

/* 1行目：Paraphrase（メインタイトル） */
h1 span.main-text {
  display: block; /* 改行させる */
  font-size: 35px; /* 現在のサイズをベースに指定 */
  font-weight: 700; /* 重厚感を出すために太めに */
  letter-spacing: 0.15em; /* 文字の間隔を広げて気品を出す */
  margin-bottom: 6px; /* 2行目とのすき間 */

  /* 文字色を1枚目のロゴのようなアンティークゴールドのグラデーションにする */
  background: linear-gradient(to bottom, #ffffff 0%, #ebd087 40%, #b29336 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* 扉の光とリンクする、上品な発光・シャドウエフェクト */
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8))
          drop-shadow(0 0 15px rgba(212, 175, 55, 0.35));
}

/* 2行目：For IELTS Listening（サブタイトル） */
h1 span.sub-text {
  display: block; /* 改行させる */
  font-size: 14px; /* メインより思い切り小さくするのがおしゃれに見せるコツ */
  font-weight: 600;
  letter-spacing: 0.4em; /* 文字の間隔を広げて海外映画のタイトルのように */
  
  /* サブタイトルは少し控えめなシルバー・プラチナ系のグラデーション */
  background: linear-gradient(to bottom, #ffffff, #b0c2de);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8))
          drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
          
  /* 文字の間隔を広げた分、右側に寄ってしまうのを中央に戻す補正 */
  padding-left: 0.4em; 
}

 animation: fadeUp 1s ease-out forwards;

}

h1 span {
  font-size: 0.6em;
}


.start-area {
  position: absolute;
  bottom: 7%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;

animation: startFadeUp 1s ease-out 0.4s forwards;
  opacity: 0;

}

.start-button {
  display: inline-block;
  padding: 9px 16px; /* 左右の余白を少し広げて、より押しやすいボタンらしい黄金比に */
  font-size: 15px;
  border-radius: 50px;
  margin: 5px;
  cursor: pointer;
  font-weight: 700; /* 文字をくっきりさせて視認性をアップ */
  transition: all 0.3s ease; /* ホバー時のアニメーションを滑らかに */

  /* フォントをタイトルや他のボタンと統一（王道ファンタジーのセリフ体） */
  font-family: 'Cinzel', 'Georgia', serif;
  text-transform: uppercase; /* 大文字にしてクラシックな印象に */

  /* 扉の光を吸い込んだような、透明感のあるゴールドグラデーション */
  background: linear-gradient(
    145deg,
    rgba(255, 235, 170, 0.85),
    rgba(225, 185, 85, 0.8),
    rgba(165, 125, 35, 0.75)
  );

  /* メインボタン同様、光が当たっているような立体感のあるゴールド立体枠線 */
  border: 2px solid;
  border-color: #f1dfa9 #a1833c #785e23 #f1dfa9;

  /* 文字を暗めのネイビーにすることで、明るいボタンの上でもくっきり読めるようにします */
  color: #0b1528;
  text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.4);

  /* 現在の素晴らしいインセットシャドウを活かしつつ、外側に「光の輪（グロウ）」をプラス */
  box-shadow:
    inset 0 3px 6px rgba(255, 255, 255, 0.75),
    inset 0 -5px 8px rgba(0, 0, 0, 0.25),
    0 4px 10px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(212, 175, 55, 0.25); /* じんわりとした外側への発光 */
}

/* ホバー（マウスをのせたとき）のエフェクト：扉の光が開くような発光 */
.start-button:hover {
  filter: brightness(1.15);
  transform: scale(1.03); /* ほんの少しだけ大きくして、吸い込まれるような感覚に */
  box-shadow:
    inset 0 3px 6px rgba(255, 255, 255, 0.85),
    inset 0 -5px 8px rgba(0, 0, 0, 0.15),
    0 6px 15px rgba(0, 0, 0, 0.5),
    0 0 25px rgba(212, 175, 55, 0.5); /* 発光を強める */
}

/* クリックしたときの沈み込み */
.start-button:active {
  transform: scale(0.98);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 2px 5px rgba(0, 0, 0, 0.3);
}

.goal-text {
  margin-top: 4px;
  font-family: "Swanky and Moo Moo", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 22px;
  color: #B29336;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes startFadeUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Helpボタン全体 */
.helpContainer{
  position:fixed;
  top:20px;
  right:20px;
}

#helpBtn {
  width: 35px;
  height: 35px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;

  font-family: 'Cinzel', 'Georgia', serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;

  /* 深みのあるターコイズ・エメラルドのグラデーション */
  background: linear-gradient(to bottom, #5f9390, #2c4f4d);
  
  /* 枠線はゴールドにすることで、魔石がゴールドにはめ込まれたような高級感が出ます */
  border: 2px solid;
  border-color: #f1dfa9 #8a6d25 #6a531a #f1dfa9;

  /* 文字は白く発光させる */
  color: #fff;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.6);

  /* オーブのようなツヤ感を出すシャドウ */
  box-shadow: 
    inset 0 2px 3px rgba(255, 255, 255, 0.4),
    inset 0 -3px 4px rgba(0, 0, 0, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.4);
}

/* ホバー時の発光エフェクト */
#helpBtn:hover {
  filter: brightness(1.2);
  transform: scale(1.05);
  box-shadow: 
    inset 0 2px 3px rgba(255, 255, 255, 0.5),
    inset 0 -3px 4px rgba(0, 0, 0, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.5),
    0 0 10px rgba(95, 147, 144, 0.6); /* 青緑の妖しい光 */
}

/* ツールチップ */
.tooltip{
  position:absolute;
  top:55px;
  right:0;

  background:#222;
  color:#fff;

  padding:7px 12px;
  border-radius:10px;

  font-size:1.2rem;
  white-space:nowrap;

  opacity:0;
  visibility:hidden;
  transition:.2s;

  box-shadow:3px 3px 10px rgba(0,0,0,.2);
}

/* 吹き出しの三角 */
.tooltip::before{
  content:"";
  position:absolute;
  top:-8px;
  right:18px;

  border-left:8px solid transparent;
  border-right:8px solid transparent;
  border-bottom:8px solid #222;
}

/* マウスを乗せたら表示 */
.helpContainer:hover .tooltip{
  opacity:1;
  visibility:visible;
}

/* モーダル背景 */
#helpModal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.6);

    display:flex;
    justify-content:center;
    align-items:center;
}

/* 非表示 */
.hidden{
    display:none !important;
}

/* 白い枠 */
.modalContent{
    background:#fff;
    padding:20px;
    border-radius:12px;
    max-width:900px;
    width:90%;
    position:relative;
}

/* 閉じる */
#closeModal{
    position:absolute;
    top:10px;
    right:20px;
    font-size:3rem;
    cursor:pointer;
}

/* 画像 */
#helpImage{
    width:100%;
    max-height:75vh;
    object-fit:contain;
}

/* ボタンの並びのコンテナ（重複を整理しました） */
.slideButtons {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Back・Nextボタンの共通シンプル・アンティーク装飾 */
.slideButtons button {
  min-width: 80px;
  padding: 6px 20px;

  /* フォントを他と統一して世界観をキープ */
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase; /* 大文字にして映画のタイトルのように */

  /* 2枚目や他のボタンと合わせた「完全な丸（カプセル型）」 */
  border-radius: 999px;

  /* 1枚目のロゴにもある、上品で温かみのあるアンティーク・アイボリー */
  background: rgba(255, 250, 240, 0.9); /* ほんの少し透過させて背景に馴染ませます */
  
  /* 深みのあるブラウン文字。アイボリーとの相性が良く、文字がパッと読めます */
  color: #4a3c38;

  /* 他のパーツと統一された、細めの上品なゴールドの立体枠線 */
  border: 2px solid;
  border-color: #f1dfa9 #a1833c #785e23 #f1dfa9;

  /* 元のフラットな影から、ファンタジーのプレートが浮き出ているようなリアルな影へ */
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.6);

  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

/* ホバー（マウスをのせたとき）の動き */
.slideButtons button:hover {
  /* 元のコードの「上に少し浮き出る（translateY）」動きを継承 */
  transform: translateY(-3px);
  filter: brightness(1.05); /* ほんの少しだけ明るく光らせる */
  
  /* 浮き出た分、ボタンの下の影を少し濃く・広くして立体感を強調 */
  box-shadow: 
    0 8px 12px rgba(0, 0, 0, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* クリックした時の沈み込み効果（オプションとして追加） */
.slideButtons button:active {
  transform: translateY(-1px);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.independent-text {
  position: fixed !important;
  bottom: 20px !important;
  left: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  text-align: center !important;
  font-size: 12px !important;
  color:  #fffff0 !important;
  z-index: 99999 !important;
}