/* --- 変数定義 --- */
:root {
  --color-primary: #0055ff; /* メインの青 */
  --color-light-blue: #e6f0ff;
  --color-orange: #ffaa77;
  --color-yellow: #ffee00;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg-gray: #444444;
  --color-white: #ffffff;

  --color-orange-active: #ff4500; /* 濃いオレンジ (左側ブロック) */
  --color-orange-bg: #fdd4b0; /* 薄いオレンジ (テキスト背景) */
}

/* --- リセット & ベース --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--color-text);
  line-height: 1.6;
  /* PCで見たときの背景画像設定 */
  background-color: #e0f0ff;
  /* background-image: url("https://placehold.co/1920x1080/cccccc/ffffff?text=PC+Background+Image"); */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* --- PC表示時のスマホビュー中央寄せ設定 --- */
.app-container {
  max-width: 500px; /* スマホ特化の最大幅 */
  margin: 0 auto;
  background-color: var(--color-white);
  min-height: 100vh;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  overflow-x: hidden;
}

/* --- 汎用ユーティリティ --- */
img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* マーカー風アンダーライン */
.marker-yellow {
  /* background: linear-gradient(transparent 80%, var(--color-yellow) 80%); */
  text-decoration-line: underline;
  text-decoration-color: var(--color-yellow);
  text-decoration-thickness: 6px;
  text-underline-offset: 4px;
  font-weight: bold;
}

/* --- ヘッダー --- */
.header {
  padding: 15px 20px;
  background-color: var(--color-white);
}

.logo {
  height: 24px;
}

/* --- セクション: プライマリ (青背景エリア) --- */
.section-primary {
  background-color: var(--color-primary);
  padding: 20px 15px;
  text-align: center;
}

.img-nikken-logo {
  width: 120px;
  margin-bottom: 20px;
}

.card-white {
  background: var(--color-white);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.icon-face {
  width: 80px;
  border-radius: 50%;

  margin-bottom: 10px;
}

.highlight-text {
  font-size: 1.1rem;
  font-weight: bold;
}

/* ステップフロー */
/* --- ステップフローの修正 (全ステップ四角化) --- */

.step-flow {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* ステップ項目 (共通ベース) */
.step-item {
  display: flex;
  align-items: center;
  background-color: var(--color-light-blue); /* デフォルト背景 (1,2,4) */
  position: relative;
  margin-bottom: 2px; /* ステップ間のわずかな隙間 */
  height: 60px; /* 全ステップの高さを揃える */
  /* overflow: hidden; 番号ブロックの角を丸めないため */

  /* 枠線は image_1.png に合わせてデフォルトでは無し */
}

/* 【NEW】全ステップ共通の四角い番号ブロック */
.step-num {
  font-size: 2rem; /* 番号を大きく */
  font-weight: bold;
  background-color: var(--color-white); /* デフォルト背景 (1,2,4) */
  color: var(--color-primary); /* デフォルト文字色 (1,2,4) */
  width: 50px; /* 左側ブロックの幅 */
  height: 100%; /* 親要素(step-item)いっぱいの高さ */
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0; /* 円ではなく完全に四角に */
  margin-right: 0; /* テキストとの間にマージンを作らない */

  /* 番号ブロックの右側に境界線を入れてブロック感を出す */
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

/* 【NEW】全ステップ共通のテキストエリア */
.step-text {
  font-weight: bold;
  font-size: 1.1rem;
  flex: 1; /* 右側の残りスペースを全て使う */
  color: var(--color-text);

  text-align: center;
  padding-left: 0; /* 左は番号ブロックにぴったりくっつける */
  padding-right: 50px;
}

/* --- ステップ3 (現在) だけの色変更 --- */

.step-item.step-current {
  background-color: var(--color-orange-bg); /* テキスト側の背景を薄いオレンジに */
  border: 1px solid var(--color-orange-active); /* 濃いオレンジの枠線を追加 (image_1.png風) */

  /* 枠線を追加した分、わずかに位置を調整 */
  box-sizing: border-box;
}

/* ステップ3の番号ブロックだけ色を反転 */
.step-item.step-current .step-num {
  background-color: var(--color-orange-active); /* 濃いオレンジ背景 */
  color: var(--color-white); /* 白文字 */
  border-right: none; /* 枠線があるから境界線は不要 */
}

/* ステップ3のテキスト色を調整 */
.step-item.step-current .step-text {
  color: #000; /* よりくっきりした黒に */
}

/* --- スタンプと矢印 (前のまま) --- */

.step-arrow {
  color: var(--color-white);
  font-size: 0.8rem;
  margin: -2px 0;
  text-align: center;
}

.stamp-done {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  background: var(--color-white);
}

.stamp-next {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%) rotate(10deg);
  background-color: var(--color-yellow);
  color: #000;
  border: 2px solid #000;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1.2;
  text-align: center;
  z-index: 10;
}

/* --- セクション: インストラクション --- */
.section-instruction {
  padding: 30px 20px;
  text-align: center;
  background-color: var(--color-white);
}

.icon-mail-wrapper {
  margin-bottom: 15px;
  max-width: 30px;
  margin: 0 auto;
}

.instruction-title {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.instruction-desc {
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.divider {
  border: none;
  border-top: 2px solid var(--color-primary);
  margin: 20px 0;
}

.urgency-box {
  margin-bottom: 20px;
}

.icon-megaphone {
  width: 40px;
  margin-bottom: 10px;
}

.urgency-text {
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1.8;
}

.notes {
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-align: center;
}

/* --- セクション: バナー --- */
.section-banner {
  width: 100%;
}
.banner-img {
  width: 100%;
  display: block;
}

/* --- セクション: コンタクト --- */
.section-contact {
  padding: 30px 20px;
  text-align: center;
}

.icon-phone {
  max-width: 30px;
  margin-bottom: 10px;
}

.contact-lead {
  font-weight: bold;
  margin-bottom: 15px;
}

.btn-primary {
  display: block;
  background-color: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  padding: 15px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 25px;
  box-shadow: 0 4px 6px rgba(0, 85, 255, 0.3);
  transition: opacity 0.2s;
  max-width: 240px;
  margin: 30px auto;
}

.btn-primary:active {
  opacity: 0.8;
  transform: translateY(2px);
  box-shadow: none;
}

.contact-info {
  font-size: 0.9rem;
}

.info-title {
  font-weight: bold;
}

.tel-number {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 5px 0;
}

/* --- セクション: カジュアル (青背景) --- */
.section-casual {
  background-color: var(--color-primary);
  padding: 30px 20px;
  text-align: center;
}

.casual-title {
  color: var(--color-white);
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.casual-title .marker-yellow {
  color: var(--color-white); /* 背景が青なので文字色を調整 */
}

.merit-card {
  background-color: var(--color-white);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  max-height: 170px;
}

.merit-title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.merit-num {
  background-color: var(--color-primary);
  color: var(--color-white);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 10px;
  font-size: 1rem;
}

.merit-img {
  max-height: 100px;
}

.p-message {
  font-size: 1.4rem;
  color: var(--color-white);
  margin-top: 20px;
}

.img-message {
  max-height: 200px;
}

/* --- フッター --- */
.footer {
  background-color: var(--color-bg-gray);
  color: var(--color-white);
  padding: 30px 20px;
  text-align: center;
}

.footer-links {
  list-style: none;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.9rem;
}

.copyright {
  font-size: 0.8rem;
  color: #aaaaaa;
}

/* --- JS用アニメーションクラス --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
