#header {
  height: auto;
}
#header .img {
  display: none;
}
#header .img.top {
  display: block;
}
#header .inner {
  position: relative;
}

/*  カレンダー */
.calender {
  max-width: 33.4rem;
  margin: 4rem auto;
  border-radius: 0.8rem;
  background: #fff;
  border: 0.2rem solid;
  box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.15);
}
.calender__head img {
  border-top-left-radius: 0.6rem;
  border-top-right-radius: 0.6rem;
}
.calender__body {
  padding: 2rem 1.8rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}
.calender__text {
  line-height: 1.6;
  color: #000;
}
.recipe__title {
  width: 14.4rem;
  height: 4.2rem;
  margin: 0 auto;
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  background: currentColor;
  mask: url(../img/recipe_title.png) no-repeat center / contain;
}
.recipe__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  margin-top: 1.6rem;
}
.recipe__name {
  font-size: 1.4rem;
  line-height: 1.6;
  white-space: pre-line;
  color: #000;
}
.calender.is-winter {
  color: #0097FD;
  border-color: #E6F6FF;
}
.calender.is-spring {
  color: #FF3D86;
  border-color: #FFF0F5;
}
.calender.is-summer {
  color: #1DB905;
  border-color: #EAFFD6;
}
.calender.is-autumn {
  color: #FD5128;
  border-color: #FEF2EE;
}

/* Contents */
#links {
  margin: 4rem 0 17rem;
}
#links .inner {
  max-width: 34rem;
}
#links .title {
  font-size: 2.2rem;
  font-weight: bold;
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: center;
  color: #E63332;
}
#links .list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin-top: 1.9rem;
}
#links .item:nth-of-type(1) {
  grid-column: span 2;
}
#links .link {
  filter: drop-shadow(0.2rem 0.3rem 0.5rem rgba(0, 0, 0, 0.11));
}

/* GAモーダル */
.ga-modal {
  position: fixed;
  inset: 0;
  width: 89%;
  max-width: 33.4rem;
  height: fit-content;
  max-height: calc(100dvh - 12rem);
  margin: auto;
  padding: 3.4rem 1.2rem 2.8rem;
  background: #fff;
  border: none;
  border-radius: 0.6rem;
  box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.3);
  opacity: 0;
  scale: 0.9;
  transition: all 0.3s allow-discrete;
}
.ga-modal[open] {
  opacity: 1;
  scale: 1;
}
.ga-modal::backdrop {
  overflow: hidden;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: display 0.5s allow-discrete, opacity 0.5s;
}
.ga-modal[open]::backdrop {
  opacity: 1;
}
@starting-style {
  .ga-modal[open] {
    opacity: 0;
    scale: 0.9;
  }
  .ga-modal[open]::backdrop {
    opacity: 0;
  }
}
.ga-modal_title {
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1.55;
  text-align: center;
}
.ga-modal_form {
  margin-top: 1.7rem;
  padding: 0 0.5rem;
}

/* フォーム */
.form-group + .form-group {
  margin-top: 2.7rem;
}
.form-label {
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1.55;
  font-feature-settings: "palt";
  text-align: center;
}
.form-label span {
  font-size: 1.6rem;
}
.form-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.9rem;
  margin-top: 1.2rem;
}
.form-group [type="radio"] {
  opacity: 0;
  position: absolute;
}
.form-group label:has(input[type="radio"]) {
  display: inline-block;
  min-height: 5rem;
  padding: 0.9rem 0;
  border-radius: 0.6rem;
  font-size: 1.8rem;
  font-weight: normal;
  line-height: 1.55;
  text-align: center;
  background: #fff;
  border: 0.2rem solid #D9D9D9;
  box-shadow: 0.2rem 0.4rem 0.4rem rgba(0, 0, 0, 0.16);
  cursor: pointer;
}
.form-group label:has(input[type="radio"]:checked) {
  color: #fff;
  background: #DB3342;
  border-color: #DB3342;
}
#submitButton {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 4.8rem;
  padding: 1.5rem;
  border-radius: 0.6rem;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
  text-align: center;
  color: #fff;
  background: #DB3342;
}
#submitButton::after {
  position: absolute;
  top: 50%;
  right: 6.3rem;
  translate: 0 -50%;
  content: "";
  width: 2.7rem;
  height: 2.7rem;
  background: url(../img/icon_next.svg) no-repeat center / contain;
}
#submitButton:disabled {
  background: #ccc;
  cursor: not-allowed;
}
#modalClose {
  position: relative;
  display: block;
  margin: 3.2rem auto 0;
  padding: 0.5rem 2.9rem;
  font-size: 1.4rem;
  line-height: 1;
  color: #999495;
}
#modalClose::after {
  position: absolute;
  top: 50%;
  right: 0.3rem;
  translate: 0 -50%;
  content: "";
  width: 2.4rem;
  height: 2.4rem;
  background: currentColor;
  mask: url(../img/icon_next.svg) no-repeat center / contain;
}
.success-message {
  display: none;
  padding: 15px;
  margin-top: 20px;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 4px;
  color: #155724;
}