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

body {
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

.lp {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
}

.lp-section {
  position: relative;
  width: 100%;
}

.lp-section-image {
  display: block;
  width: 100%;
  height: auto;
}

.lp-cta {
  position: absolute;
  display: block;
  text-decoration: none;
  z-index: 2;
}

.lp-cta img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.lp-sticky-cta {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 30;
  display: block;
  width: min(calc(100% - 24px), 640px);
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms ease;
  text-decoration: none;
  will-change: opacity, transform;
}

.lp-sticky-cta.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.lp-sticky-cta img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.lp-footer {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  padding: 24px 16px 32px;
  box-sizing: border-box;
  color: #4b5563;
  background: #fff;
  font-size: 12px;
  line-height: 1.7;
}

.lp-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.lp-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}



/* custom */
/* section-form：メールアドレスの入力欄と送信ボタン。
   位置と大きさはデザイン（幅750px）の実寸を、セクションの幅に対する割合（cqw）にしたもの。 */
.lp-section-custom[data-section="section-form"] {
  container-type: inline-size;
}
.lp-section-custom[data-section="section-form"] .pw-form-base {
  display: block;
  width: 100%;
  height: auto;
}
.pw-form {
  position: absolute;
  inset: 0;
  margin: 0;
}
/* 入力欄：左49px・上6px・幅653px・高さ88px・角丸10px */
.pw-form-field {
  position: absolute;
  left: 6.53cqw;
  top: 0.8cqw;
  width: 87.07cqw;
  height: 11.73cqw;
  margin: 0;
}
.pw-form-input {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 4.4cqw;
  border: 0;
  border-radius: 1.33cqw;
  background: #fff;
  color: #1f2933;
  font-family: inherit;
  font-weight: 700;
  /* iPhoneは16px未満の入力欄を押すと画面が拡大されるので、16pxを下回らないようにする */
  font-size: max(16px, 4.8cqw);
  box-shadow: 0 0.27cqw 0 rgba(0, 40, 90, 0.25);
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}
.pw-form-input::placeholder {
  color: #aaa;
  opacity: 1;
}
.pw-form-input:focus {
  box-shadow: 0 0 0 0.53cqw #ffd54a;
}
/* 送信ボタン：左39px・上112px・幅672px・高さ150px（書き出し時のボタンと同じ位置・同じ「ふわっと浮く」動き） */
.pw-form-submit {
  position: absolute;
  left: 5.2cqw;
  top: 14.93cqw;
  width: 89.6cqw;
  height: 20cqw;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  animation: pwFormFloat 2.6s ease-in-out infinite;
}
.pw-form-submit img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
@keyframes pwFormFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .pw-form-submit { animation: none; }
}
.pw-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Googleマップ（script.js で section-06 の後ろに入れる）：LPの幅いっぱい、横4:縦3で伸び縮みする */
.pw-map {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #e5e3df;
}
.pw-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* section-faq：よくある質問。見出しはデザインの画像、Q&Aは押すと開くHTML。
   大きさはデザイン（幅750px）の実寸を、セクションの幅に対する割合（cqw）で指定。 */
.lp-section-custom[data-section="section-faq"] {
  container-type: inline-size;
  background: linear-gradient(180deg, #e9f5fd 0%, #f2fafe 60%, #e9f5fd 100%);
  padding-bottom: 4.7cqw;
}
/* 見出し（タイトル＋写真）はデザインの画像をそのまま使う */
.pw-faq-head {
  width: 100%;
  aspect-ratio: 750 / 272;
  /* 画像はHTML側で指定する（{{image}}はセクションのHTMLでだけ置き換わるため） */
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
}
.pw-faq-list {
  display: flex;
  flex-direction: column;
  gap: 3.2cqw;
  padding: 0 6cqw;
}
.pw-faq-item {
  border-radius: 2.9cqw;
  border: 0.4cqw solid #1a7fe0;
  background: #fff;
  overflow: hidden;
}
.pw-faq-item.pw-faq-orange {
  border-color: #f2922e;
  background: #fff7ef;
}
.pw-faq-item > summary {
  display: flex;
  align-items: center;
  gap: 2.4cqw;
  padding: 2.4cqw 3.2cqw;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.pw-faq-item > summary::-webkit-details-marker { display: none; }
.pw-faq-badge {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 7cqw;
  height: 7cqw;
  border-radius: 50%;
  background: #208afa;
  color: #fff;
  font-size: 3.1cqw;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.pw-faq-badge-a { background: #ef8b1f; }
.pw-faq-q {
  flex: 1;
  color: #0b3f8f;
  font-size: 3.6cqw;
  font-weight: 700;
  line-height: 1.45;
}
/* 開閉の印（＋／−） */
.pw-faq-mark {
  flex: 0 0 auto;
  position: relative;
  width: 3.4cqw;
  height: 3.4cqw;
}
.pw-faq-mark::before,
.pw-faq-mark::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 0.5cqw;
  border-radius: 0.3cqw;
  background: #1a7fe0;
  transform: translateY(-50%);
  transition: transform 200ms ease, opacity 200ms ease;
}
.pw-faq-mark::after { transform: translateY(-50%) rotate(90deg); }
.pw-faq-orange .pw-faq-mark::before,
.pw-faq-orange .pw-faq-mark::after { background: #f2922e; }
.pw-faq-item[open] .pw-faq-mark::after { transform: translateY(-50%) rotate(0deg); opacity: 0; }
.pw-faq-answer {
  display: flex;
  align-items: flex-start;
  gap: 2.4cqw;
  margin: 0 3.2cqw;
  padding: 2.4cqw 0 3.2cqw;
  border-top: 0.27cqw dashed #9cc7f2;
}
.pw-faq-orange .pw-faq-answer { border-top-color: #f3bd86; }
.pw-faq-answer p {
  margin: 0;
  color: #333;
  font-size: 2.9cqw;
  line-height: 1.75;
  font-weight: 500;
}
/* 答えの中の強調（デザインに合わせてオレンジ） */
.pw-faq-strong-orange { color: #ee7f1e; }
.pw-faq-mark-orange {
  background: linear-gradient(transparent 55%, #ffe680 55%);
  font-weight: 700;
  color: #ee7f1e;
}
@media (prefers-reduced-motion: reduce) {
  .pw-faq-mark::before, .pw-faq-mark::after { transition: none; }
}
