/* css/style.css */

/* --- CSS変数定義 (モダンデザイン版) --- */
:root {
  --font-color-base: #333;
  --color-white: #fff;
  --color-accent: #E63946; /* アクセントになる赤色 */
  --color-primary: #457B9D; /* プライマリの青色 */
  --color-secondary: #1D3557; /* セカンダリの濃い青 */

  --bg-body: #f8f9fa; /* 全体の背景を少しグレーに */
  --bg-period: linear-gradient(135deg, #1D3557, #457B9D); /* 期間の背景をグラデーションに */
  --bg-about: #edf2f4; /* 概要セクションの背景 */
  --bg-apply: var(--color-white); /* 応募方法セクションの背景 */
  --bg-prize: #FFFBEF; /* 賞品セクションを暖かみのあるクリーム色に */
  --bg-form: #A8DADC;
  --bg-footer: #1D3557;

  --headline-gradient-about: linear-gradient(135deg, #e63946, #f77f00);
  --headline-gradient-apply: linear-gradient(135deg, #2a9d8f, #60d394);
  --headline-gradient-map: linear-gradient(135deg, #457B9D, #A8DADC);
  --headline-form-text: var(--color-secondary);

  --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 8px 25px rgba(0, 0, 0, 0.12);
  --border-radius-base: 12px;
}

/* --- リセット & 基本スタイル --- */
*, ::before, ::after { box-sizing: border-box; }
::before, ::after { text-decoration: inherit; vertical-align: inherit; }
html {
  cursor: default;
  line-height: 1.6;
  -moz-tab-size: 4;
  tab-size: 4;
  -webkit-tap-highlight-color: transparent;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  word-break: break-word;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--font-color-base);
  font-size: 14px;
  background-color: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, p { margin: 0; }
img { max-width: 100%; display: block; }
section { padding-block: 40px; }

/* --- 汎用クラス --- */
.wrapper {
  padding-inline: 4.2%;
  max-width: 1100px;
  margin-inline: auto;
}
.headline {
  font-weight: bold;
  font-size: 22px;
  border-radius: 50px;
  color: var(--color-white);
  max-width: 320px;
  margin-inline: auto;
  margin-bottom: 60px;
  padding-block: 8px;
  text-align: center;
  letter-spacing: 1px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
  box-shadow: var(--shadow-strong);
}
.highlight {
  color: var(--color-accent);
  font-weight: bold;
}

/* --- ヘッダー & 主要セクション --- */
.fv__item img { width: 100%; }
.period__wrapper {
  background: var(--bg-period);
  color: var(--color-white);
  text-align: center;
  font-weight: bold;
  font-size: 1.1em;
  padding-block: 14px;
  letter-spacing: 0.5px;
}
.period__wrapper .highlight {
  color: #F1FAEE;
  font-size: 1.2em;
  vertical-align: middle;
}

/* --- aboutセクション --- */
.about { background-color: var(--bg-about); }
.about .headline { background-image: var(--headline-gradient-about); }
.about .about__description { font-size: 1.05em; margin-top: 16px; line-height: 1.8; }
.about .about__limit {
  font-size: 1.05em;
  color: var(--color-accent);
  font-weight: bold;
  margin-top: 16px;
  text-align: center;
  background: var(--color-white);
  padding: 12px;
  border-radius: var(--border-radius-base);
  box-shadow: var(--shadow-soft);
}

/* --- how_to_applyセクション --- */
.how_to_apply { background-color: var(--bg-apply); }
.how_to_apply .headline { background-image: var(--headline-gradient-apply); }
.how_to_apply .apply_flow { 
  margin: 24px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* フローステップ */
.flow-step {
  background-color: var(--color-white);
  color: var(--font-color-base);
  border-radius: var(--border-radius-base);
  padding: 20px;
  width: 100%;
  max-width: 400px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.flow-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

.flow-step__number {
  background-image: var(--headline-gradient-apply);
  color: var(--color-white);
  font-weight: bold;
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.flow-step--final .flow-step__number {
  background-image: var(--headline-gradient-about);
}
.flow-step__content { flex: 1; }
.flow-step__title { font-weight: bold; font-size: 1em; margin-bottom: 6px; }
.flow-step__description { font-size: 0.9em; line-height: 1.6; opacity: 0.9; }

/* 矢印 */
.flow-arrow {
  color: #ccc;
  font-size: 32px;
  font-weight: bold;
  margin: 0;
}
.flow-arrow::before {
  content: "▼";
}

/* 注意書きエリアのスタイル */
.how_to_apply .apply__cont { 
  display: flex; 
  align-items: stretch;
  gap: 16px;
  background: #fdf0f0;
  padding: 20px;
  border-radius: var(--border-radius-base);
  margin-top: 50px;
  border: 1px solid #fce0e0;
}
.how_to_apply .apply__cont .attention {
  flex-shrink: 0;
  width: 90px;
  font-size: 20px;
  font-weight: bold;
  background-color: var(--color-accent);
  color: var(--color-white);
  border-radius: 8px;
  display: grid;
  place-items: center;
  text-align: center;
}
.how_to_apply .apply__cont .check__descriptions {
  flex-grow: 1;
  font-size: 12px;
  color: #555;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

/* --- prizeセクション --- */
.prize { background-color: var(--bg-prize); }
.prize .headline {
  background-image: linear-gradient(135deg, #f7b733, #fc4a1a);
  color: var(--color-white);
  margin-bottom: 40px;
}
.prize .prize__cont {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.prize .prize__cont .prize__item {
  border-radius: var(--border-radius-base);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.prize .prize__cont .prize__item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-strong);
}

/* --- mapセクション --- */
.map { background-color: var(--color-white); }
.map .headline { background-image: var(--headline-gradient-map); }
.map .map__cont {
  margin-top: 40px;
  border-radius: var(--border-radius-base);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

/* --- formセクション --- */
.form { background-color: var(--bg-form); text-align: center; }
.form .headline { background-color: var(--color-white); color: var(--headline-form-text); box-shadow: var(--shadow-soft); }
.form .form__description { color: var(--color-secondary); font-size: 1.1em; margin-bottom: 24px; font-weight: 500;}
.form iframe { border-radius: var(--border-radius-base); }


/* --- フッター --- */
footer {
  background-color: var(--bg-footer);
  color: #f1faee;
  text-align: center;
  font-size: 10px;
  padding-block: 20px;
}

/* --- アニメーション関連 --- */
.fixed-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}
#btn_animation .btn {
  display: grid;
  place-items: center;
  position: relative;
  width: 100px;
  height: 100px;
  font-size: 20px;
  font-weight: bold;
  border-radius: 50%;
  text-decoration: none;
  background-image: var(--headline-gradient-about);
  color: var(--color-white);
  overflow: hidden;
  transition: transform 0.2s ease-out;
  box-shadow: var(--shadow-strong);
}
#btn_animation .btn:hover {
  text-decoration: none;
  color: var(--color-white);
  transform: scale(1.1);
}
#btn_animation .btn::before {
  position: absolute;
  content: '';
  top: -180px;
  left: 0;
  width: 30px;
  height: 100%;
  background-color: var(--color-white);
  animation: btn_animation 2.5s ease-in-out infinite;
}
@keyframes btn_animation {
  0% { transform: scale(0) rotate(45deg); opacity: 0; }
  80% { transform: scale(0) rotate(45deg); opacity: 0.5; }
  81% { transform: scale(4) rotate(45deg); opacity: 1; }
  100% { transform: scale(50) rotate(45deg); opacity: 0; }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================================================
   レスポンシブ対応 (PC・タブレット向けスタイル)
   ========================================================================== */
@media screen and (min-width: 768px) {
  body { font-size: 16px; }
  section { padding-block: 80px; }
  .wrapper { padding-block: 0; }
  .headline { font-size: 28px; max-width: 450px; padding-block: 12px; }

  .period__wrapper { font-size: 1.2rem; padding-block: 16px; }
  
  /* PC表示時のフロー横並び */
  .how_to_apply .apply_flow {
    max-width: 100%;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
  }
  .flow-step {
    flex: 1;
    max-width: none;
    width: auto;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
  }
  .flow-step__number { margin-bottom: 16px; }
  .flow-arrow {
    transform: rotate(0);
    align-self: center;
    font-size: 40px;
    padding: 0 16px;
  }
  .flow-arrow::before {
    content: "▶";
  }
  .flow-step__title { font-size: 1.1em; }
  .flow-step__description { font-size: 0.9em; }
  
  .how_to_apply .apply__cont {
    max-width: 800px;
    margin-inline: auto;
    padding: 24px;
  }
  .how_to_apply .apply__cont .check__descriptions { font-size: 14px; }
  
  .prize .prize__cont {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
  }
  
  .map .map__cont {
    max-width: 800px;
    margin-inline: auto;
    padding: 0;
  }
}
