/**
 * ランチ本LP専用スタイル。
 * 支給画像と確定したフォーム構成に合わせて追記します。
 */

body.page-template-page-lunchbook {
  margin: 0;
  background-color: #910b1a;
  background-image: url("../images/LP-background.jpg");
  background-repeat: repeat-y;
  background-position: center var(--lunchbook-background-y, 0px);
  background-size: 100% auto;
}

body.lunchbook-is-loading {
  overflow: hidden;
}

/* ページ読み込み画面 */
.lunchbook-loading {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100dvh;
  color: #17110f;
  background: #fff;
  opacity: 1;
  visibility: visible;
  transition: opacity 400ms ease, visibility 400ms ease;
}

.lunchbook-loading--leaving {
  opacity: 0;
  visibility: hidden;
}

.lunchbook-loading__content {
  width: 100%;
  padding: 24px;
  text-align: center;
}

.lunchbook-loading__image {
  width: min(54vw, 260px);
  height: auto;
  margin-inline: auto;
}

.lunchbook-loading__text {
  margin: clamp(22px, 5vw, 36px) 0 0;
  font-family: Arial, sans-serif;
  font-size: clamp(17px, 4vw, 22px);
  line-height: 1.4;
}

.lunchbook-loading__dots span {
  display: inline-block;
  opacity: 0.2;
  animation: lunchbook-loading-dot 1.2s infinite ease-in-out;
}

.lunchbook-loading__dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.lunchbook-loading__dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes lunchbook-loading-dot {
  0%,
  60%,
  100% {
    opacity: 0.2;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(-0.18em);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lunchbook-loading {
    transition: none;
  }

  .lunchbook-loading__dots span {
    opacity: 1;
    animation: none;
  }
}

.lunchbook-lp {
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
  overflow: hidden;
  background: #fff;
}

/* Aエリア：メインビジュアル */
.lunchbook-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 340 / 373;
  overflow: hidden;
  background: #fff;
}

.lunchbook-hero__slider,
.lunchbook-hero__slider .slick-list,
.lunchbook-hero__slider .slick-track,
.lunchbook-hero__slider .slick-slide,
.lunchbook-hero__slider .slick-slide > div,
.lunchbook-hero__slide {
  height: 100%;
}

.lunchbook-hero__slider {
  position: absolute;
  inset: 0;
}

.lunchbook-hero__slide {
  position: relative;
  overflow: hidden;
}

.lunchbook-hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.lunchbook-hero__logo {
  position: absolute;
  z-index: 2;
  top: 2%;
  right: 1.5%;
  width: auto;
  height: 96%;
  pointer-events: none;
  user-select: none;
}

/* Bエリア：第19弾の案内 */
.lunchbook-benefit {
  position: relative;
  z-index: 3;
  width: 100%;
  margin-top: clamp(-48px, -6vw, -20px);
}

.lunchbook-benefit__image {
  width: 100%;
  height: auto;
}

/* Cエリア：ランチ本の紹介 */
.lunchbook-introduction {
  position: relative;
  z-index: 4;
  width: 100%;
  padding-bottom: clamp(24px, 5vw, 40px);
  background: #fff;
}

.lunchbook-introduction__visual {
  position: relative;
  width: 100%;
}

.lunchbook-introduction__main {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
}

.lunchbook-introduction__utensil {
  position: absolute;
  z-index: 1;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.lunchbook-introduction__fork {
  top: -15%;
  left: -4%;
  width: 40%;
}

.lunchbook-introduction__knife {
  top: -15%;
  right: -4%;
  width: 40%;
}

.lunchbook-introduction--motion .lunchbook-introduction__utensil {
  opacity: 0;
  transform: translateY(40%);
  transition:
    opacity 900ms ease,
    transform 1100ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.lunchbook-introduction--motion .lunchbook-introduction__knife {
  transition-delay: 120ms;
}

.lunchbook-introduction--visible .lunchbook-introduction__utensil {
  opacity: 1;
  transform: translateY(0);
}

/* D〜Iエリア共通：スクロール表示アニメーション */
.lunchbook-section--motion {
  opacity: 0;
  transform: translateY(clamp(40px, 10vw, 80px));
  transition:
    opacity 900ms ease,
    transform 1100ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.lunchbook-section--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ローディング中は開始位置への移動をアニメーションさせない。 */
body.lunchbook-is-loading .lunchbook-introduction--motion .lunchbook-introduction__utensil,
body.lunchbook-is-loading .lunchbook-section--motion {
  transition: none;
}

.lunchbook-conversion {
  display: block;
  width: 82%;
  margin: clamp(12px, 3vw, 24px) auto 0;
  transition: opacity 180ms ease;
}

.lunchbook-conversion:hover {
  opacity: 0.86;
}

.lunchbook-conversion:focus-visible {
  outline: 3px solid #c8222b;
  outline-offset: 4px;
}

.lunchbook-conversion img {
  width: 100%;
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
  .lunchbook-introduction--motion .lunchbook-introduction__utensil {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Dエリア：地元の食文化 */
.lunchbook-local-culture {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #fff;
  background: #c9232c;
}

.lunchbook-local-culture__background {
  width: 100%;
  height: auto;
}

.lunchbook-local-culture__text {
  position: absolute;
  z-index: 1;
  top: 29%;
  left: 50%;
  width: 62%;
  margin: 0;
  transform: translateX(-50%);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(13px, 3vw, 24px);
  font-weight: 600;
  line-height: 1.65;
  text-align: center;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* D・Eエリア間：料理写真の連続スライダー */
.lunchbook-food-slider {
  width: 100%;
  padding: clamp(24px, 6vw, 48px) 0;
  overflow: hidden;
  background: #fff;
}

.lunchbook-food-slider__track:not(.slick-initialized) {
  display: flex;
}

.lunchbook-food-slider__slide {
  width: clamp(92px, 28vw, 224px);
  padding-inline: clamp(5px, 1.4vw, 11px);
}

.lunchbook-food-slider__slide img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: clamp(12px, 3vw, 24px);
  object-fit: cover;
  object-position: center;
}

/* Eエリア：選ばれる3つの理由 */
.lunchbook-reasons {
  width: 100%;
  padding: clamp(22px, 5vw, 40px) 0 clamp(28px, 6vw, 48px);
  color: #2b211d;
  background: #fff;
}

.lunchbook-reasons__title {
  width: 96%;
  height: auto;
  margin-inline: auto;
}

.lunchbook-reasons__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7%;
  width: 76%;
  margin: clamp(12px, 3vw, 24px) auto 0;
}

.lunchbook-reason {
  min-width: 0;
}

.lunchbook-reason__image {
  width: 100%;
  height: auto;
}

.lunchbook-reason__text {
  margin: clamp(7px, 1.8vw, 14px) 0 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(11px, 2.8vw, 22px);
  font-weight: 500;
  line-height: 1.7;
  text-align: left;
}

.lunchbook-reason--area {
  width: 76%;
  margin: clamp(24px, 6vw, 48px) auto 0;
}

.lunchbook-reason__image--area {
  width: 100%;
}

.lunchbook-reasons__conversion {
  margin-top: clamp(24px, 6vw, 48px);
}

/* Fエリア：利用期間と掲載エリア */
.lunchbook-availability {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #fff;
  background: #c9232c;
}

.lunchbook-availability__background {
  width: 100%;
  height: auto;
}

.lunchbook-availability__content {
  position: absolute;
  z-index: 1;
  top: 35%;
  left: 50%;
  width: 86%;
  margin-top: 30px;
  transform: translateX(-50%);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  text-align: center;
}

.lunchbook-availability__group + .lunchbook-availability__group {
  margin-top: clamp(10px, 2.5vw, 20px);
}

.lunchbook-availability__heading {
  margin: 0;
  font-size: clamp(15px, 3.6vw, 29px);
  font-weight: 700;
  line-height: 1.35;
}

.lunchbook-availability__group p {
  margin: clamp(2px, 0.7vw, 6px) 0 0;
  font-size: clamp(12px, 3vw, 24px);
  font-weight: 600;
  line-height: 1.5;
}

/* Gエリア：掲載店舗マップ */
.lunchbook-map {
  width: 100%;
  padding: clamp(24px, 6vw, 48px) 0 clamp(30px, 7vw, 56px);
  background: #fff;
}

.lunchbook-map__heading {
  width: 100%;
  height: auto;
}

.lunchbook-map__frame {
  width: 92%;
  margin: clamp(12px, 3vw, 24px) auto 0;
  overflow: hidden;
  background: #eee;
}

.lunchbook-map__frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .lunchbook-section--motion {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Hエリア：購入申し込み */
.lunchbook-purchase {
  width: 100%;
  scroll-margin-top: 20px;
  background: #c1272d;
}

.lunchbook-purchase__heading {
  width: 100%;
  height: auto;
}

.lunchbook-purchase__form {
  padding: 0 7% clamp(30px, 8vw, 64px);
  color: #fff;
  background: #c1272d;
}

.lunchbook-form__row {
  display: grid;
  grid-template-columns: 22% minmax(0, 1fr);
  gap: 4%;
  align-items: center;
  margin-bottom: clamp(14px, 3.5vw, 28px);
}

.lunchbook-form__label {
  font-size: clamp(12px, 3vw, 24px);
  font-weight: 600;
  line-height: 1.4;
}

.lunchbook-form__control,
.lunchbook-form__control .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.lunchbook-form input:not([type="submit"]) {
  width: 100%;
  min-height: clamp(44px, 10vw, 72px);
  padding: 0.5em 0.8em;
  border: 0;
  border-radius: clamp(12px, 3vw, 24px);
  color: #2b211d;
  background: #fff;
  font: inherit;
}

.lunchbook-form__control--quantity {
  width: 34%;
  min-width: 88px;
}

.lunchbook-form input:focus-visible {
  outline: 3px solid #f2c330;
  outline-offset: 3px;
}

.lunchbook-form__submit {
  margin-top: clamp(22px, 5vw, 40px);
  text-align: center;
}

.lunchbook-form input[type="submit"] {
  width: 68%;
  min-height: clamp(48px, 11vw, 80px);
  padding: 0.35em 1em;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: transparent;
  font-size: clamp(18px, 4.5vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}

.lunchbook-form input[type="submit"]:hover {
  color: #c1272d;
  background: #fff;
}

.lunchbook-form__notice {
  margin: clamp(18px, 4vw, 32px) 0 0;
  font-size: clamp(11px, 2.7vw, 21px);
  line-height: 1.8;
}

.lunchbook-purchase .wpcf7-not-valid-tip {
  margin-top: 0.35em;
  color: #fff4a8;
  font-size: 0.85em;
}

.lunchbook-purchase .wpcf7-spinner {
  display: block;
  margin: 12px auto 0;
}

/* Iエリア：その他の購入方法 */
.lunchbook-other-purchases {
  width: 100%;
  padding: clamp(28px, 7vw, 56px) 7% clamp(34px, 8vw, 64px);
  color: #2b211d;
  background: #fff;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  text-align: center;
}

.lunchbook-other-purchases__heading {
  width: 78%;
  height: auto;
  margin-inline: auto;
  padding-bottom: clamp(12px, 3vw, 24px);
  border-bottom: 1px solid #c1272d;
}

.lunchbook-other-purchases::after {
  display: block;
  width: 78%;
  height: 1px;
  margin: clamp(30px, 7vw, 56px) auto 0;
  background: #c1272d;
  content: "";
}

.lunchbook-social-links {
  display: flex;
  justify-content: center;
  gap: 11%;
  margin-top: clamp(22px, 5vw, 40px);
}

.lunchbook-social-links__item {
  display: block;
  width: 17%;
  border-radius: 18%;
  transition: opacity 180ms ease, transform 180ms ease;
}

.lunchbook-social-links__item:hover {
  opacity: 0.82;
  transform: translateY(-3px);
}

.lunchbook-social-links__item:focus-visible {
  outline: 3px solid #c1272d;
  outline-offset: 5px;
}

.lunchbook-social-links__item img {
  width: 100%;
  height: auto;
}

.lunchbook-other-purchases__guide {
  width: 78%;
  margin: clamp(18px, 4vw, 32px) auto 0;
  font-size: clamp(11px, 2.8vw, 22px);
  line-height: 1.75;
  text-align: left;
}

.lunchbook-other-purchases__details {
  width: 78%;
  margin: clamp(30px, 7vw, 56px) auto 0;
  color: #c1272d;
}

.lunchbook-other-purchases__details h2,
.lunchbook-other-purchases__details p {
  margin: 0;
  font-size: clamp(13px, 3.3vw, 26px);
  line-height: 1.55;
}

.lunchbook-other-purchases__details h2 {
  font-weight: 700;
}

.lunchbook-other-purchases__details p + h2 {
  margin-top: clamp(3px, 0.8vw, 6px);
}

/* Jエリア：フッター */
.lunchbook-footer {
  width: min(100%, 800px);
  margin-inline: auto;
  padding: clamp(12px, 3vw, 24px) 7% clamp(22px, 5vw, 40px);
  color: #17110f;
  background: #fff;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  text-align: center;
}

.lunchbook-footer__contact {
  margin: 0;
  font-size: clamp(13px, 3.2vw, 26px);
  line-height: 1.5;
}

.lunchbook-footer__logo {
  width: 66%;
  height: auto;
  margin: clamp(12px, 3vw, 24px) auto 0;
}

.lunchbook-footer__website {
  margin: clamp(12px, 3vw, 24px) 0 0;
  font-size: clamp(12px, 3vw, 24px);
}

.lunchbook-footer a {
  color: inherit;
  text-decoration: none;
}

.lunchbook-footer a:hover {
  text-decoration: underline;
}

.lunchbook-footer a:focus-visible {
  outline: 3px solid #c1272d;
  outline-offset: 3px;
}

.lunchbook-footer__address {
  margin-top: clamp(18px, 4vw, 32px);
  font-size: clamp(11px, 2.8vw, 22px);
  font-style: normal;
  line-height: 1.5;
}

.lunchbook-footer__office + .lunchbook-footer__office {
  margin-top: clamp(18px, 4vw, 32px);
}

.lunchbook-footer__office p {
  margin: 0;
}

.lunchbook-footer__office-name {
  margin-bottom: clamp(5px, 1vw, 8px) !important;
}

.lunchbook-footer__copyright {
  margin: clamp(30px, 7vw, 56px) 0 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: clamp(9px, 2.2vw, 17px);
}

.lunchbook-lp__content {
  width: 100%;
  margin: 0 auto;
  background: #fff;
}

.lunchbook-lp__content > :first-child {
  margin-top: 0;
}

.lunchbook-lp__content > :last-child {
  margin-bottom: 0;
}

/* Contact Form 7のメッセージ表示をレイアウト内に収めます。 */
.lunchbook-lp .wpcf7 form .wpcf7-response-output {
  margin: 1.5em 0 0;
  color: #fff;
  border-color: #fff;
}
