@charset "UTF-8";

:root {
  --sky: #62c2df;
  --yellow: #ffca2f;
  --yellow-deep: #e8aa0f;
  --ink: #514e39;
  --blue: #3159aa;
  --paper: rgba(255, 255, 255, 0.94);
  --shadow: rgba(70, 75, 60, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  background: var(--sky);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;

  color: var(--ink);

  font-family:
    "Yu Gothic",
    "Hiragino Kaku Gothic ProN",
    Meiryo,
    sans-serif;

  background-color: var(--sky);
  background-image: url("/images/common/backgroundlong.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;

  -webkit-text-size-adjust: 100%;
}

button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.precautions-page {
  width: min(100%, 760px);
  min-height: 100dvh;
  margin: 0 auto;
  padding:
    calc(env(safe-area-inset-top) + 14px)
    max(14px, env(safe-area-inset-right))
    calc(env(safe-area-inset-bottom) + 36px)
    max(14px, env(safe-area-inset-left));
}

/* =========================================================
   Header
   ========================================================= */

.page-header {
  position: relative;
  padding-top: 8px;
}

.back-button {
  position: relative;
  z-index: 5;

  display: block;

  width: clamp(54px, 15vw, 78px);

  margin: 0 0 8px;

  padding: 0;
  border: 0;
  background: transparent;

  cursor: pointer;
}

.back-button img {
  display: block;
  width: 100%;
  height: auto;

  filter: drop-shadow(0 4px 2px rgba(0, 0, 0, 0.12));

  user-select: none;
  -webkit-user-drag: none;
}

.title-card {
  position: relative;

  width: min(92%, 620px);

  margin: -22px auto 22px;
  padding: 20px 22px 22px;

  overflow: hidden;

  border: 5px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;

  background:
    repeating-linear-gradient(
      -55deg,
      #ffca2f 0,
      #ffca2f 30px,
      #ffdc62 30px,
      #ffdc62 60px
    );

  text-align: center;

  box-shadow:
    0 7px 0 rgba(128, 104, 26, 0.22),
    0 14px 28px rgba(42, 80, 91, 0.12);
}

.title-card::after {
  content: "";

  position: absolute;
  inset: auto 8% -18px;

  height: 36px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.5);

  filter: blur(15px);

  pointer-events: none;
}

.title-kicker {
  display: inline-block;

  margin: 0 0 2px;
  padding: 3px 13px;

  border-radius: 999px;

  background: rgba(49, 89, 170, 0.93);
  color: #fff;

  font-size: clamp(0.68rem, 2.8vw, 0.82rem);
  font-weight: 900;
  letter-spacing: 0.14em;
}

.title-card h1 {
  margin: 5px 0 5px;

  font-size: clamp(2rem, 8vw, 3.25rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.title-lead {
  margin: 0;

  font-size: clamp(0.8rem, 3.5vw, 1rem);
  line-height: 1.55;
  font-weight: 800;
}

/* =========================================================
   Notice cards
   ========================================================= */

.notice-list {
  display: grid;
  gap: 18px;

  width: min(92%, 620px);

  margin: 0 auto;
}

.notice-card {
  position: relative;

  padding: 20px 18px 19px;

  border: 3px solid rgba(255, 202, 47, 0.95);
  border-radius: 24px;

  background: var(--paper);

  box-shadow:
    0 6px 0 rgba(83, 87, 69, 0.13),
    0 12px 24px rgba(46, 79, 88, 0.08);

  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;

  margin: 0 0 13px;
}

.section-number {
  display: grid;
  place-items: center;

  flex: 0 0 auto;

  width: 42px;
  height: 42px;

  border-radius: 50%;

  background: var(--yellow);
  color: var(--ink);

  box-shadow: 0 3px 0 rgba(153, 113, 11, 0.22);

  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.notice-card h2 {
  margin: 0;

  color: #4f4b37;

  font-size: clamp(1.06rem, 4.6vw, 1.35rem);
  line-height: 1.35;
  font-weight: 900;
}

.notice-card p,
.notice-card li {
  font-size: clamp(0.9rem, 3.7vw, 1.02rem);
  line-height: 1.78;
  font-weight: 650;
}

.notice-card p {
  margin: 0;
}

.notice-card p + p {
  margin-top: 12px;
}

.notice-card ul {
  margin: 0;
  padding: 0;

  list-style: none;
}

.notice-card li {
  position: relative;

  padding-left: 1.45em;
}

.notice-card li + li {
  margin-top: 8px;
}

.notice-card li::before {
  content: "";

  position: absolute;

  left: 0.12em;
  top: 0.72em;

  width: 0.58em;
  height: 0.58em;

  border-radius: 50%;

  background: var(--yellow);

  box-shadow: 0 1px 0 rgba(150, 109, 10, 0.2);
}

/* =========================================================
   Bottom button
   ========================================================= */

.bottom-action {
  width: min(92%, 620px);

  margin: 24px auto 0;
  padding-bottom: 8px;
}

.bottom-back-button {
  display: block;

  width: min(82%, 360px);

  margin: 0 auto;
  padding: 14px 20px;

  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;

  background:
    repeating-linear-gradient(
      -55deg,
      #ffca2f 0,
      #ffca2f 24px,
      #ffdc62 24px,
      #ffdc62 48px
    );

  color: var(--ink);

  box-shadow:
    0 5px 0 rgba(126, 99, 23, 0.25),
    0 8px 14px rgba(40, 67, 75, 0.1);

  font-size: clamp(0.95rem, 4vw, 1.08rem);
  font-weight: 900;

  cursor: pointer;
}

.bottom-back-button:active,
.back-button:active {
  transform: translateY(2px);
}

/* =========================================================
   Small iPhones
   ========================================================= */

@media (max-width: 390px) {
  .precautions-page {
    padding-left: 10px;
    padding-right: 10px;
  }

  .title-card,
  .notice-list,
  .bottom-action {
    width: 94%;
  }

  .title-card {
    margin-top: -18px;
    padding: 17px 16px 18px;

    border-radius: 23px;
  }

  .notice-list {
    gap: 14px;
  }

  .notice-card {
    padding: 17px 15px 16px;

    border-radius: 20px;
  }

  .section-number {
    width: 37px;
    height: 37px;

    font-size: 0.74rem;
  }

  .notice-card p,
  .notice-card li {
    line-height: 1.72;
  }
}

/* backgroundlongが終わった後も違和感を出しにくくする */
@media (min-width: 761px) {
  body {
    background-size: 760px auto;
  }
}


/* =========================================================
   2026-08-20 初回注意事項 確認・同意エリア
   ========================================================= */

/* 初回注意事項ページでは戻るボタンを表示しない */
.back-button,
.bottom-action {
  display: none !important;
}

/* 戻るボタンを削除した分、タイトルを自然な位置へ */
.page-header {
  padding-top: 14px;
}

.title-card {
  margin-top: 0;
}

/* 注意事項を読んだ後の確認エリア */
.agreement-card {
  width: min(92%, 620px);

  margin: 24px auto 0;
  padding: 22px 18px 24px;

  border: 4px solid rgba(255, 202, 47, 0.98);
  border-radius: 24px;

  background: rgba(255, 255, 255, 0.97);

  text-align: center;

  box-shadow:
    0 6px 0 rgba(83, 87, 69, 0.13),
    0 12px 24px rgba(46, 79, 88, 0.08);
}

.agreement-card h2 {
  margin: 0;

  color: #3159aa;

  font-size: clamp(1.12rem, 4.8vw, 1.45rem);
  line-height: 1.35;
  font-weight: 900;
}

.agreement-guide {
  margin: 10px 0 18px;

  color: #514e39;

  font-size: clamp(0.86rem, 3.6vw, 1rem);
  line-height: 1.65;
  font-weight: 700;
}

/* ネイティブcheckboxは非表示にして、大きく押しやすい見た目に */
.agreement-check {
  position: relative;

  display: flex;
  align-items: center;
  gap: 12px;

  width: 100%;

  padding: 14px 14px;

  border: 2px solid #ddd7b9;
  border-radius: 16px;

  background: #fffdf4;

  text-align: left;

  cursor: pointer;

  -webkit-tap-highlight-color: transparent;
}

.agreement-check input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
  pointer-events: none;
}

.check-visual {
  position: relative;

  flex: 0 0 auto;

  width: 30px;
  height: 30px;

  border: 3px solid #d4a61a;
  border-radius: 7px;

  background: #fff;

  box-shadow: inset 0 1px 2px rgba(70, 60, 20, 0.08);
}

.agreement-check input:checked + .check-visual {
  border-color: #efb51a;
  background: #ffca2f;
}

.agreement-check input:checked + .check-visual::after {
  content: "";

  position: absolute;

  left: 8px;
  top: 3px;

  width: 8px;
  height: 15px;

  border-right: 4px solid #514e39;
  border-bottom: 4px solid #514e39;

  transform: rotate(45deg);
}

.agreement-check input:focus-visible + .check-visual {
  outline: 3px solid rgba(49, 89, 170, 0.38);
  outline-offset: 3px;
}

.check-label {
  color: #514e39;

  font-size: clamp(0.9rem, 3.8vw, 1.03rem);
  line-height: 1.5;
  font-weight: 900;
}

/* 開始ボタン */
.start-button {
  display: block;

  width: min(92%, 420px);

  margin: 20px auto 0;
  padding: 15px 18px;

  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;

  background:
    repeating-linear-gradient(
      -55deg,
      #ffca2f 0,
      #ffca2f 24px,
      #ffdc62 24px,
      #ffdc62 48px
    );

  color: #514e39;

  box-shadow:
    0 5px 0 rgba(126, 99, 23, 0.25),
    0 8px 14px rgba(40, 67, 75, 0.10);

  font-size: clamp(0.96rem, 4vw, 1.12rem);
  font-weight: 900;

  cursor: pointer;

  transition:
    transform 120ms ease,
    opacity 120ms ease,
    filter 120ms ease;
}

.start-button:not(:disabled):active {
  transform: translateY(2px);
}

/* 未同意時は明確に押せない状態 */
.start-button:disabled {
  opacity: 0.42;

  filter: grayscale(0.7);

  cursor: default;

  box-shadow:
    0 3px 0 rgba(126, 99, 23, 0.13),
    0 5px 10px rgba(40, 67, 75, 0.05);
}

@media (max-width: 390px) {
  .agreement-card {
    width: 94%;

    margin-top: 18px;
    padding: 18px 14px 20px;

    border-radius: 20px;
  }

  .agreement-check {
    gap: 10px;
    padding: 12px;
  }

  .check-visual {
    width: 28px;
    height: 28px;
  }

  .agreement-check input:checked + .check-visual::after {
    left: 7px;
    top: 3px;
  }

  .start-button {
    width: 96%;
    margin-top: 17px;
  }
}
