/* ===== reset / base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic UI", "Meiryo UI", sans-serif;
  background: #0d3a8a;
  color: #14323c;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

button {
  font-family: inherit;
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

[hidden] {
  display: none !important;
}

/* ===== app shell ===== */
.app {
  max-width: 480px;
  margin: 0 auto;
  background: #1957c4;
  min-height: 100vh;
  overflow: hidden;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.25);
}

.screen {
  position: relative;
}

/* ===== フッター ===== */
.site-footer {
  line-height: 0;
  font-size: 0;
}

.site-footer__img {
  width: 100%;
  height: auto;
  display: block;
}

/* 結果ページ表示中のみフッター背景色を変える */
#screen-result:not([hidden]) ~ .site-footer {
  background-color: #bdf4f4;
}

/* ===== MSC header ===== */
.msc-header {
  background: #ffffff;
  padding: 4px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
}

.msc-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.msc-logo-img {
  width: auto;
  height: 40px;
  display: block;
}

/* ===== トップ：ヒーロー ===== */
/* .app provides the blue backdrop. Hero is transparent and lifted above
   the campaign curve so the title image's fish render in front of it. */
.hero {
  background: transparent;
  padding: 24px 16px 0;
  text-align: center;
  color: #ffffff;
  position: relative;
  z-index: 2;
}

.hero__title-wrap {
  margin-top: 8px;
}

.hero__lead {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 18px;
  letter-spacing: 0.02em;
}

.hero__title-wrap {
  margin: 0;
  padding: 0;
  text-align: center;
}

.hero__title-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* ===== トップ：キャンペーン ===== */
/* curved top edge overlaps the hero section; body color comes from .app */
.campaign {
  background-color: transparent;
  background-image: url("images/campaign-bg.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
  padding: 60px 0 26px;
  margin-top: -40px;
  position: relative;
  z-index: 1;
  text-align: center;
  color: #14323c;
}

.campaign__text {
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic UI", "Meiryo UI", sans-serif;
  font-size: clamp(12px, 3.7vw, 17px);
  line-height: 1.6;
  letter-spacing: -0.04em;
  margin: 0;
  padding: 0 12px;
  background: #ebe6cd;
  font-weight: 900;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* SPでは固定改行を無効にして自然な折返しにする */
@media (max-width: 400px) {
  .campaign__text br {
    display: none;
  }
}

/* PC専用の改行（SPでは詰めて表示） */
.campaign__br-pc {
  display: none;
}
@media (min-width: 768px) {
  .campaign__br-pc {
    display: inline;
  }
}

.campaign__accent {
  color: #004cc8;
  font-weight: 900;
}

.campaign__link {
  color: inherit;
  text-decoration: none;
}
.campaign__link:hover {
  opacity: 0.8;
}

.campaign__deadline {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(6px, 2vw, 16px);
  background-color: #ebe6cd;
  background-image: url("images/deadline-bg.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% auto;
  padding: clamp(16px, 5vw, 28px) 8px;
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic UI", "Meiryo UI", sans-serif;
  font-size: clamp(14px, 4.6vw, 24px);
  color: #14323c;
  letter-spacing: -0.03em;
}

.campaign__deadline-label {
  color: #14323c;
  font-weight: 900;
  /* 漢字は視覚的に大きく見えるため、日付の数値より一段下げる */
  font-size: clamp(12px, 4vw, 21px);
}

.campaign__deadline-date {
  color: #14323c;
  font-weight: 900;
  font-size: clamp(14px, 4.6vw, 24px);
  white-space: nowrap;
}

.campaign__deadline-big {
  font-size: clamp(20px, 6.8vw, 36px);
  font-weight: 900;
  line-height: 1;
  margin: 0 1px;
}

/* ボタン背景帯（左右端まで広げる） */
.campaign__btn-wrap {
  background: #ebe6cd;
  padding: 24px 18px;
  margin: -1px 0 -26px;
}

/* ===== ボタン ===== */
.btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 16px 24px;
  font-size: 17px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-decoration: none;
  transition: transform 0.05s ease, box-shadow 0.1s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: #ef6a35;
  color: #ffffff;
  box-shadow: 0 4px 0 #b94a1d;
}

.btn--primary:hover {
  background: #f47b48;
}

.btn--primary:disabled {
  background: #cccccc;
  box-shadow: 0 4px 0 #999999;
  cursor: not-allowed;
}

.btn--ghost {
  background: #ffffff;
  color: #14323c;
  border: 1px solid #d8d8d8;
  box-shadow: 0 2px 0 #c4c4c4;
}

.btn--cta {
  background: #ffffff;
  color: #ef6a35;
  border: 3px solid #ef6a35;
  border-radius: 12px;
  box-shadow: 0 4px 0 #b94a1d;
  font-size: 18px;
}

.btn--cta:hover {
  background: #fff5ef;
}

.btn__fish {
  color: #ef6a35;
  font-size: 18px;
}

.btn--link {
  background: #ef6a35;
  color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 0 #b94a1d;
}

/* 画像ボタン（ベース色なし・押下のみアニメ） */
.btn-image {
  appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 85%;
  max-width: 320px;
  margin: 0 auto;
  display: block;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-image:hover {
  transform: translateY(-6px);
  filter: brightness(1.05);
}

.btn-image:active {
  transform: translateY(2px);
}

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

/* ===== トップ：プレゼント ===== */
/* wave-top background; top of image overlaps slightly to hide seam */
.prize {
  background-color: #ebe6cd;
  background-image: url("images/prize-bg.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
  padding: 60px 18px 30px;
  text-align: center;
}

.prize__title {
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic UI", "Meiryo UI", sans-serif;
  font-size: 36px;
  color: #14323c;
  font-weight: 900;
  margin: 36px 0 24px;
  letter-spacing: 0.1em;
}

.prize__card {
  padding: 0;
}

.prize__image {
  width: 100%;
  aspect-ratio: 732 / 609;
  /* 上のレイヤー: レジャーシート画像 / 下のレイヤー: 円形フレーム */
  background-image: url("images/prize-leisure-sheet.png"),
    url("images/prize-frame.png");
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: 80% auto, contain;
  margin: 0 auto 18px;
  max-width: 300px;
}

.prize__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.prize__name {
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic UI", "Meiryo UI", sans-serif;
  text-align: left;
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
  font-weight: 700;
}

.prize__count {
  font-size: 20px;
  font-weight: 900;
  color: #14323c;
  margin: 0;
  white-space: nowrap;
}
.prize__count-num {
  font-size: 1.8em;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ===== トップ：応募方法・注意事項 ===== */
.notice {
  background: #1957c4;
  padding: 22px 16px 28px;
  color: #14323c;
}

.notice__card {
  background: #ffffff;
  border-radius: 8px;
  margin-bottom: 18px;
  overflow: hidden;
}

.notice__card:last-child {
  margin-bottom: 0;
}

.notice__title {
  background: #ffffff;
  color: #14323c;
  text-align: center;
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic UI", "Meiryo UI", sans-serif;
  font-size: 18px;
  font-weight: 900;
  padding: 14px 12px;
  margin: 0;
  border-bottom: 1px solid #ebe6cd;
}

/* 同じカード内で2つ目以降のタイトルは線でなく空きスペースで区切る */
.notice__card .notice__body + .notice__title {
  margin-top: 28px;
}

.notice__body {
  background: #ffffff;
  color: #14323c;
  padding: 16px 18px 20px;
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic UI", "Meiryo UI", sans-serif;
  font-size: 14px;
  line-height: 1.75;
}

.notice__intro {
  margin: 0 0 16px;
  font-weight: 700;
}

.notice__subtitle {
  font-size: 15px;
  font-weight: 900;
  margin: 18px 0 8px;
  color: #14323c;
  letter-spacing: -0.01em;
}

.notice__subtitle:first-child {
  margin-top: 0;
}

.notice__text {
  margin: 0 0 8px;
}

.notice__text:last-child {
  margin-bottom: 0;
}

/* STEP 1〜4：番号は本文に内包されているのでリストマーカーは消す */
.notice__steps {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
}

.notice__steps li {
  margin-bottom: 8px;
}

.notice__steps li:last-child {
  margin-bottom: 0;
}

.notice__list {
  margin: 0;
  padding-left: 18px;
}

.notice__list li {
  margin-bottom: 8px;
}

.notice__list li:last-child {
  margin-bottom: 0;
}

/* ===== 質問：ヒーロー ===== */
/* curved ground image rises from the bottom; .app provides the blue sky */
.quiz-hero {
  background-color: transparent;
  background-image: url("images/campaign-bg.png");
  background-repeat: no-repeat;
  /* offset scales with viewport: smaller screens push the ground lower */
  background-position: center bottom clamp(-64px, calc(14vw - 100px), -28px);
  background-size: 100% auto;
  padding: 16px 16px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.quiz-hero__fish {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.quiz-hero__lead {
  position: relative;
  z-index: 1;
  background: transparent;
  color: #14323c;
  margin: 4px 0 0;
  padding: 8px 16px 20px;
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic UI", "Meiryo UI", sans-serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.6;
}

/* ===== カウンター ===== */
.quiz-counter {
  background-color: #ebe6cd;
  background-image: url("images/deadline-bg.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  color: #14323c;
  text-align: center;
  padding: 16px;
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic UI", "Meiryo UI", sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.quiz-counter__current {
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.quiz-counter__total {
  font-weight: 900;
}

/* ===== 質問本体 ===== */
.quiz-body {
  background: #1957c4;
  padding: 22px 18px 32px;
  color: #ffffff;
}

.quiz-text {
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic UI", "Meiryo UI", sans-serif;
  font-size: 21px;
  line-height: 1.6;
  font-weight: 700;
  margin: 0 0 22px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.option {
  appearance: none;
  background: #ffffff;
  color: #14323c;
  border: 4px solid #f9d150;
  border-radius: 12px;
  padding: 16px 14px;
  font-size: 19px;
  font-weight: 700;
  text-align: center;
  transition: background 0.1s, color 0.1s, border 0.1s;
}

.option:hover {
  background: #fff5d6;
}

.option--selected {
  background: #fdcc54;
  border-color: #fdcc54;
  color: #14323c;
}

.quiz-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.quiz-nav .btn {
  padding: 14px;
  font-size: 16px;
  border-radius: 12px;
  box-shadow: none;
}

.quiz-nav .btn--primary {
  border: 3px solid #ffffff;
  color: #14323c;
  /* smooth white outline: 16-direction ring with slight blur */
  text-shadow: 2px 0 1px #fff, 1.85px 0.77px 1px #fff, 1.41px 1.41px 1px #fff,
    0.77px 1.85px 1px #fff, 0 2px 1px #fff, -0.77px 1.85px 1px #fff,
    -1.41px 1.41px 1px #fff, -1.85px 0.77px 1px #fff, -2px 0 1px #fff,
    -1.85px -0.77px 1px #fff, -1.41px -1.41px 1px #fff,
    -0.77px -1.85px 1px #fff, 0 -2px 1px #fff, 0.77px -1.85px 1px #fff,
    1.41px -1.41px 1px #fff, 1.85px -0.77px 1px #fff;
}

/* ===== 結果 ===== */
.result-body {
  background: #1957c4;
  padding: 22px 18px 28px;
  color: #ffffff;
}

.result-lead {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 16px;
}

.result-card {
  color: #ffffff;
  text-align: center;
  margin: 18px 0 32px;
}

.result-card__catch {
  color: #ffffff;
  font-size: clamp(13px, 4vw, 18px);
  font-weight: 900;
  margin: 0 0 6px;
  line-height: 1.5;
  letter-spacing: -0.04em;
}

.result-card__name {
  font-size: clamp(20px, 7.2vw, 38px);
  font-weight: 900;
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.result-card__level-prefix {
  font-size: clamp(18px, 5.2vw, 23px);
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.04em;
}

.result-card__level-line {
  margin: 0;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.result-card__level {
  font-size: clamp(18px, 5.4vw, 24px);
  font-weight: 900;
  color: #09187b;
  background-color: #f9d24f;
  padding: 0 6px 0 8px;
  line-height: 1.2;
}

.result-card__level-mid {
  font-size: clamp(18px, 5.4vw, 24px);
  font-weight: 900;
  color: #09187b;
  background-color: #f9d24f;
  padding: 0 8px 0 0;
  line-height: 1.2;
}

.result-card__level-suffix {
  font-size: clamp(18px, 5.2vw, 23px);
  font-weight: 700;
  color: #ffffff;
}

.result-image-wrap {
  margin: 22px 0 18px;
  border-radius: 8px;
  overflow: hidden;
}

.result-image {
  width: 100%;
  height: auto;
}

.result-image-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #c9c9c9;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  border-radius: 8px;
}

.result-card__message {
  text-align: center;
  margin: 16px 0 0;
  font-size: clamp(14px, 4.6vw, 19px);
  font-weight: 700;
  line-height: 1.7;
  white-space: pre-line;
  color: #ffffff;
}

.result-card__eco-label {
  text-align: center;
  margin: 16px 0 0;
  font-size: clamp(14px, 4.6vw, 19px);
  font-weight: 700;
  line-height: 1.7;
  white-space: pre-line;
  color: #ffffff;
}

/* ===== 結果：下部CTA ===== */
/* wave-top background, same treatment as the top page prize section */
.result-cta-section {
  background-color: transparent;
  background-image: url("images/prize-bg.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
  padding: 60px 18px 30px;
  text-align: center;
  position: relative;
}

.result-cta-section__text {
  font-size: clamp(15px, 4.8vw, 20px);
  font-weight: 700;
  color: #14323c;
  margin: 32px 0 14px;
  line-height: 1.6;
}

.result-video {
  background: #000000;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 22px;
}

.result-video__iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}


/* ===== 微調整：レスポンシブ ===== */
@media (max-width: 360px) {
  .hero__main {
    font-size: 26px;
  }
  .hero__title {
    padding: 28px 12px;
  }
  .quiz-text,
  .option {
    font-size: 15px;
  }
  .btn--cta {
    font-size: 16px;
  }
}

/* ===== PC / タブレット（横幅1024pxまで広げる） ===== */
/* 480px 前提のモバイルレイアウトを保ったまま、サイズ・余白・配置を
   PC向けに引き伸ばす。ブレイクポイントは 768px（タブレット以上）。 */
@media (min-width: 768px) {
  .app {
    max-width: 1024px;
  }

  /* ヘッダー：ロゴを大きく */
  .msc-header {
    padding: 12px 24px;
    min-height: 72px;
  }
  .msc-logo-img {
    height: 52px;
  }

  /* ヒーロー：余白とタイトルを拡大 */
  .hero {
    padding: 40px 32px 0;
  }
  .hero__lead {
    font-size: 32px;
    margin-bottom: 28px;
  }
  .hero__title-img {
    max-width: 720px;
  }

  /* キャンペーン：幅広レイアウト */
  .campaign {
    padding: 80px 0 25px;
    margin-top: -56px;
  }
  .campaign__text {
    font-size: 22px;
    padding: 0 48px;
    line-height: 1.7;
    letter-spacing: -0.02em;
  }
  /* PC幅では固定改行を外して自然な折返しに（PC専用改行 .campaign__br-pc のみ残す） */
  .campaign__text br {
    display: none;
  }
  .campaign__text br.campaign__br-pc {
    display: inline;
  }
  .campaign__deadline {
    padding: 32px 16px;
    font-size: 32px;
    gap: 16px;
    border-top: 5px solid #ffffff;
    border-bottom: 5px solid #ffffff;
  }
  .campaign__deadline-label {
    font-size: 28px;
  }
  .campaign__deadline-date {
    font-size: 32px;
  }
  .campaign__deadline-big {
    font-size: 52px;
  }
  .campaign__btn-wrap {
    padding: 32px 24px;
  }
  .btn-image {
    max-width: 420px;
  }

  /* プレゼント：画像と説明を2カラム */
  .prize {
    padding: 80px 32px 48px;
  }
  .prize__title {
    font-size: 48px;
    margin: 48px 0 32px;
    letter-spacing: 0.15em;
  }
  .prize__card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
  }
  .prize__image {
    max-width: 100%;
    width: 100%;
    margin: 0;
  }
  .prize__meta {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
  }
  .prize__name {
    font-size: 26px;
    line-height: 1.4;
  }
  .prize__count {
    font-size: 30px;
  }

  /* 応募方法・注意事項：内側を広く取り、文字も拡大 */
  .notice {
    padding: 32px 48px 40px;
  }
  .notice__card {
    margin-bottom: 24px;
  }
  .notice__title {
    font-size: 22px;
    padding: 18px 16px;
  }
  .notice__body {
    padding: 24px 32px 28px;
    font-size: 16px;
    line-height: 1.85;
  }
  .notice__intro {
    font-size: 17px;
    margin-bottom: 20px;
  }
  .notice__subtitle {
    font-size: 18px;
    margin: 24px 0 10px;
  }
  .notice__steps li {
    margin-bottom: 10px;
  }
  .notice__list {
    padding-left: 22px;
  }
  .notice__list li {
    margin-bottom: 10px;
  }

  /* 質問ヒーロー：魚イラスト・テキスト拡大 */
  /* 背景画像は横幅100%で大きいまま、地面が見える部分だけになるよう下にスライド */
  .quiz-hero {
    padding: 24px 32px 0;
    background-position: center bottom -300px;
  }
  .quiz-hero__fish {
    max-width: 380px;
  }
  .quiz-hero__lead {
    font-size: 26px;
    padding: 16px 32px 28px;
  }

  /* カウンター：Q番号を大きく */
  .quiz-counter {
    padding: 24px;
    font-size: 34px;
  }
  .quiz-counter__current {
    font-size: 56px;
  }

  /* 質問本体：選択肢を2カラム */
  .quiz-body {
    padding: 40px 56px 48px;
  }
  .quiz-text {
    font-size: 28px;
    line-height: 1.7;
    margin-bottom: 32px;
    text-align: center;
  }
  .quiz-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 40px;
  }
  .option {
    font-size: 22px;
    padding: 22px 18px;
  }
  .quiz-nav {
    max-width: 640px;
    margin: 0 auto;
    gap: 24px;
  }
  .quiz-nav .btn {
    font-size: 20px;
    padding: 18px;
  }

  /* 結果本体：カードと画像を中央寄せで大きく */
  .result-body {
    padding: 32px 48px 40px;
  }
  .result-lead {
    font-size: 30px;
    margin-bottom: 24px;
  }
  .result-card {
    max-width: 720px;
    margin: 24px auto 40px;
  }
  .result-card__catch {
    font-size: 24px;
  }
  .result-card__name {
    font-size: 52px;
  }
  .result-card__level-prefix {
    font-size: 28px;
  }
  .result-card__level,
  .result-card__level-mid {
    font-size: 32px;
  }
  .result-card__level-suffix {
    font-size: 28px;
  }
  .result-image-wrap {
    max-width: 480px;
    margin: 28px auto 24px;
  }
  .result-card__message {
    font-size: 22px;
    line-height: 1.8;
    margin: 20px 0 0;
  }
  .result-card__eco-label {
    font-size: 22px;
    line-height: 1.8;
    margin: 20px 0 0;
  }

  /* 結果CTA：動画プレースホルダを抑えた幅に */
  .result-cta-section {
    padding: 80px 48px 56px;
  }
  .result-cta-section__text {
    font-size: 26px;
    margin: 96px 0 24px;
    line-height: 1.7;
  }
  .result-video {
    max-width: 720px;
    margin: 0 auto 32px;
  }
}
