/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
:root {
  --main: #ff5d9a;
  --accent: #999;
  --base: #f9f5f5;
  --white: #fff;
  --gray: #999;
  --light-gray: #ccc;
  --black: #333;
  --error: rgba(255, 93, 154, 0.1);
  --linear-gradient: linear-gradient(90deg, #FF5D9A 0%, #FF9898 100%);

  --bg-appleple-daikichi: #c40f32;
  --bg-daikichi: linear-gradient(259deg, #FFD69C 0%, #F35B5B 60%);
  --bg-kichi: linear-gradient(259deg, #FFFC9C 0%, #F3815B 60%);
  --bg-chukichi: linear-gradient(259deg, #ACF486 0%, #EFDD4F 60%);
  --bg-suekichi: linear-gradient(259deg, #A5E8D6 0%, #66E86B 60%);
  --bg-kyo: linear-gradient(259deg, #CD9CFF 0%, #5B91F3 60%);
  --bg-daikyo: linear-gradient(259deg, #FF9CA3 0%, #E45BF3 60%);
}
.bg-appleple-daikichi {
  background: var(--bg-appleple-daikichi);
}
.text-lg h1 {
  font-size: 40px !important;
}
.bg-daikichi {
  background: var(--bg-daikichi);
}
.bg-kichi {
  background: var(--bg-kichi);
}
.bg-chukichi {
  background: var(--bg-chukichi);
}
.bg-suekichi {
  background: var(--bg-suekichi);
}
.bg-kyo {
  background: var(--bg-kyo);
}
.bg-daikyo {
  background: var(--bg-daikyo);
}

::placeholder {
  color: var(--gray);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
a, button {
  cursor: pointer;
}

html {
  -webkit-text-size-adjust: 100%;
  line-height: 1.7;
}

main {
  display: block;
  flex: 1;
}

em {
  font-weight: bold;
  color: var(--black);
  font-style: normal;
}

fieldset {
  display: contents;
  border: none;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", Meiryo, "Noto Sans CJK JP", sans-serif;
  font-style: normal;
  font-weight: 300;
  color: var(--black);
  background-color: var(--base);
  background-image: url('/themes/root@appleple/new-year-2025/images/back.svg');
  background-position: 0 0;
  background-repeat: repeat;
  background-size: 112px 56px;
}
.container {
  min-height: 100vh;
  margin: 0 auto;
  max-width: 768px;
  background-color: var(--base);
  display: flex;
  flex-direction: column;
}

.header {
  width: 100%;
  line-height: 0;
}
.header img {
  width: 100%;
}
header {
  width: 100%;
  height: 40px;
  position: relative;
  overflow: hidden;
  background-image: url(/themes/root@appleple/new-year-2025/images/bar.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
header p {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  position: absolute;
  top: 50%;
  left: 0%;
  padding-right: 1rem;
  transform: translate(0, -50%);
}
header p span:first-of-type {
  text-align: center;
  leading-trim: both;
  color: var(--white);
  text-edge: cap;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  line-height: 170%;
}
header p span:last-of-type {
  color: var(--white);
  text-align: center;
  leading-trim: both;
  text-edge: cap;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 170%
}

footer {
  width: 100%;
  height: 40px;
  position: relative;
  overflow: hidden;
  background-image: url(/themes/root@appleple/new-year-2025/images/bar.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
footer p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-size: 12px;
  font-style: normal;
  font-weight: 300;
  line-height: 170%;
}

section {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
  max-width: 400px;
  padding: 3rem 1rem;
  margin: 0 auto; 
}

h1 {
  position: relative;
  font-size: 1.875rem;
  padding-bottom: calc(1rem + 1rem);
  text-align: center;
  line-height: 1.5;
}
h1:before {
  width: 64px;
  height: 16px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  content: '';
  background-image: url(/themes/root@appleple/new-year-2025/images/kirakira3.svg);
}
h2 {
  width: fit-content;
  margin: 0 auto;
  position: relative;
  font-size: 1rem;
  padding-left: calc(0.8rem + 1rem);
  line-height: 1.7;
}
h2:before {
  width: 16px;
  height: 16px;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  content: '';
  background-image: url(/themes/root@appleple/new-year-2025/images/kirakira1.svg);
  background-repeat: no-repeat;
}

.c-btn-flex {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.c-btn-fix {
  appearance: none;
}

.c-btn-next,
.c-btn-back,
.c-btn-share {
  text-decoration: none;
  width: 100%;
  padding: 2px 8px;
  border: none;
  transition: 0.3s ease-in;
  transition-propaty: padding;
  background-color: transparent;
}
.c-btn-next:hover span,
.c-btn-back:hover span,
.c-btn-share:hover span {
  padding: 12.5px 0;
}
.c-btn-next:hover,
.c-btn-back:hover,
.c-btn-share:hover {
  padding: 0;
}
/* next */
.c-btn-next span {
  display: block;
  width: 100%;
  text-align: center;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.7;
  border-radius: 99px;
  padding: 10.5px 4px;
  transition: 0.3s ease-in;
  transition-propaty: padding;
  background: var(--linear-gradient);
}
/* back */
.c-btn-back span {
  display: block;
  width: 100%;
  text-align: center;
  color: var(--main);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.7;
  border-radius: 99px;
  padding: 10.5px 4px;
  transition: 0.3s ease-in;
  transition-propaty: padding;
  background: var(--white);
  border: 1px solid var(--main);
}
/* share */
.c-btn-share span {
  display: block;
  width: 100%;
  text-align: center;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.7;
  border-radius: 99px;
  padding: 10.5px 4px;
  transition: 0.3s ease-in;
  transition-propaty: padding;
  background: var(--black);
}

.c-staff {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}
.c-staff-img {
  width: 140px;
  height: 140px;
  margin: 0 auto;
}
.c-staff-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
}
.c-staff-role {
  font-size: 0.875rem;
  font-weight: 400;
}
.c-staff-name {
  font-size: 1rem;
  font-weight: 600;
}
.c-staff-greet {
  font-size: 1rem;
  font-weight: 400;
  text-align: left;
}

.c-question {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.c-question-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--black);
  font-weight: 600;
}
.c-question-label__required {
  display: inline-block;
  color: var(--white);
  background-color: var(--main);
  border-radius: 99rem;
  padding: 0 0.5rem;
  font-weight: 300;
}
.c-question-label__any {
  display: inline-block;
  color: var(--white);
  background-color: var(--gray);
  border-radius: 99rem;
  padding: 0 0.5rem;
  font-weight: 300;
}
.c-question-text {
  padding: 1rem;
  border-radius: var(--41, 4px);
  border: 1px solid var(--light-gray);
  background-color: var(--white);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
}
.c-question-text:focus {
  border: 1px solid var(--gray);
  outline: 1px solid var(--gray);
}
.invalid .c-question-text {
  border: 1px solid var(--main);
  outline: 1px solid var(--main);
  background-color: var(--error);
}

.c-question-textarea {
  padding: 1rem;
  border-radius: var(--41, 4px);
  border: 1px solid var(--light-gray);
  background-color: var(--white);
  height: 88px;
  resize: none;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
}
.c-question-textarea:focus {
  border: 1px solid var(--gray);
  outline: 1px solid var(--gray);
}
.invalid .c-question-textarea {
  border: 1px solid var(--main);
  outline: 1px solid var(--main);
  background-color: var(--error);
}

.c-question-fieldset-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.c-question-radio {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 1.5rem 1rem;
  border-radius: 4px;
  background: var(--white);
}
.c-question-radio input[type=radio] {
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  border-radius: 16px;
  border: 1px solid var(--gray);
  background: var(--white);
  padding: 2px;
  background-clip: content-box;
}
.c-question-radio input[type=radio]:checked {
  background-color: var(--main);
}

.c-question-radio__image {
  flex-basis: 50px;
  height: 50px;
}
.c-question-radio__image img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}
.c-question-radio__text {
  flex: 1;
}
.invalid .c-question-radio {
  border: 1px solid var(--main);
  outline: 1px solid var(--main);
  background-color: var(--error);
}

.c-question-error {
  display: none;
  color: var(--main);
}
.invalid .validator-result-0 {
  display: block;
}

.c-link {
  color: var(--black);
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: 170%;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: none;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}

.l-who-staff {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  list-style: none;
}
.c-staff-switch {
  border: none;
  background-color: transparent;
} 
.c-staff-switch:hover {
  opacity: 0.7;
  transition: 0.2s;
  transition-propaty: opacity;
}
.c-staff-switch-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 0.5rem;
}
.c-staff-switch-name {
  display: block;
  color: var(--black);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.c-form-check h3 {
  color: var(--black);
  font-size: 24px;
  font-weight: 600;
  line-height: 150%;
  padding-bottom: 1rem;
}
.c-form-check dt {
  color: var(--black);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.c-form-check dt button {
  color: var(--white);
  position: relative;
  appearance: none;
  background: var(--gray);
  padding: 4px 1rem 4px 2.5rem;
  border-radius: 999px;
  border: none;
}

.c-form-check dt button::before {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 1rem;
  width: 1rem;
  height: 1rem;
  content: '';
  background-image: url(/themes/root@appleple/new-year-2025/images/edit.svg);
  background-repeat: no-repeat;
  background-position: center;
}

.c-form-check dd {
  color: var(--black);
  font-size: 1rem;
}
.c-form-check-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--accent);
}

.c-omikuji {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 1rem;
  border: 2px solid var(--gray);
  background-color: var(--white);
}
.c-omikuji-heading {
  border-radius: 8px;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.c-omikuji-heading h1 {
  order: 1;
  color: var(--white);
  font-size: 3rem;
  line-height: 1;
  padding: 0; 
}
.c-omikuji-heading h1::before {
  display: none;
}
.c-omikuji-heading p {
  color: var(--white);
  text-align: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%;
  letter-spacing: 8.4px;
  line-height: 1.5;
}
.c-omikuji-overview {
  color: var(--black);
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
}
.c-omikuji-description div {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
}
.c-omikuji-description div {
  border-top: 1px solid var(--gray);
}
.c-omikuji-description dt {
  font-size: 1rem;
  font-weight: 600;
}
.c-omikuji-description dd {
  flex: 1;
  font-size: 1rem;
  font-weight: 300;
}

.c-omikuji-form__status {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(255,255,255,0.5);
}
.c-omikuji-box__wrap {
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.c-omikuji-box {
  background-color: transparent;
  border: none;
  width: 100px;
}
.c-omikuji-box span {
  line-height: 0;
  display: block;
}
.c-omikuji-box__nav {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  pointer-events: none;
}
.c-omikuji-box__label {
  color: var(--main);
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
}

.omikuji-pull::before {
  content: '';
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, 0);
  width: 30px;
  height: 36px;
  background-image: url(/themes/root@appleple/new-year-2025/images/pull-arrow.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  animation: pullOmikuji 2s infinite;
}

@keyframes pullOmikuji {
  0%, 20%, 50%, 80%, 100% {
      transform: translate(-50%, 0%);
  }
  40% {
      transform: translate(-50%, 50%);
  }
  60% {
      transform: translate(-50%, 23%);
  }
}

.outlined-text {
  text-shadow: 
      -2px -2px 0 var(--white),
      -2px  0   0 var(--white),
      -2px  2px 0 var(--white),
       0   -2px 0 var(--white),
       0    2px 0 var(--white),
       2px -2px 0 var(--white),
       2px  0   0 var(--white),
       2px  2px 0 var(--white);
  color: var(--main);
}

.images_omikuji_ue {
  width: 100%;
}
.images_omikuji_sita {
  width: 100%;
}
.images_omikuji_bou {
  width: 10px;
}
.images_omikuji_ue_wrap {
  position: relative;
  z-index: 1;
}
.images_omikuji_sita_wrap {
  position: relative;
  z-index: 3;
}
.images_omikuji_bou_wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  z-index: 2;
}

.graduallyーdisappear {
  animation: graduallyDisappear 2s ease-in forwards;
}

@keyframes graduallyDisappear {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}


.omikuji-bou {
  animation: getOmikuji 2s ease-in forwards;
}

@keyframes getOmikuji {
  0% {
    transform: translateX(-50%) translateY(-50%);
  }
  100% {
    transform: translateX(-50%) translateY(-100%);
  }
}

.omikuji-click {
  /* アニメーションを適用する要素の中心を設定 */
  transform-origin: center center;
  /* 初期状態でアニメーションを適用 */
  animation: flickOmikuji 1s ease-in;
}
@keyframes flickOmikuji {
  0% {
    transform: translate(0%, 0%);
  }
  50% {
    transform: translate(0%, 30px);
  }
  100% {
    transform: translate(0%, 0%);
  }
}

.omikuji-loading {
  /* アニメーションを適用する要素の中心を設定 */
  transform-origin: center center;
  /* 初期状態でアニメーションを適用 */
  animation: shakeOmikuji 1s infinite ease-in-out;
}
@keyframes shakeOmikuji {
  0% {
    transform: rotate3d(0, 0, 1, 0deg);
  }
  25% {
    transform: rotate3d(0, 0, 1, -15deg);
  }
  75% {
    transform: rotate3d(0, 0, 1, 15deg);
  }
  100% {
    transform: rotate3d(0, 0, 1, 0deg);
  }
}

/* アニメーション停止時のクラス */
.omikuji-stop {
  animation: none;
  transform: translate(0%, 0%) rotate3d(0, 0, 1, 0deg);
  transition: transform 0.5s ease-out;
}

.c-banner {
  line-height: 0;
  display: block;
  width: 100%;
  height: auto;
}
.c-banner img {
  width: 100%;
  height: 100%;
  object-fit: contain; 
}

.bold {
  font-weight: 600;
}

.text-main {
  color: var(--main);
}
.text-main a {
  color: var(--main);
}
.outline-none {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

