/* ----------------------------------------------------------------------
   LP つわり（morning-sickness）
   Figma: 医療物販LP / LP確認用（node 521:44115）
   FAQ以外は画像で構成。ここではFAQ・追従CTA・フッター・メニュー・セクション画像のみ定義
---------------------------------------------------------------------- */
.ms-lp,
.hamburger-menu--ms {
  --ms-pink-from: #f18da3;
  --ms-pink-to: #da6380;
  --ms-pink-grad: linear-gradient(90deg, var(--ms-pink-from), var(--ms-pink-to));
  --ms-text: #333;
  --ms-heading: #3c4348;
  --ms-sub: #707070;
  --ms-brown: #8e4e43;
  --ms-ff-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --ms-ff-round: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --ms-ff-en: "Cormorant Garamond", "Times New Roman", serif;
  --ms-ff-num: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
}

.ms-lp {
  overflow: hidden;
  color: var(--ms-text);
  font-family: var(--ms-ff-base);
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0;
}

.ms-lp img {
  max-width: 100%;
  height: auto;
}

.ms-lp ul,
.ms-lp ol {
  list-style: none;
}

.ms-lp h1,
.ms-lp h2,
.ms-lp h3 {
  font-weight: inherit;
}

/* 共通見出し */
.ms-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.ms-head__en {
  background: var(--ms-pink-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--ms-ff-en);
  font-size: 18px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.14em;
}

.ms-head__title {
  color: var(--ms-heading);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.1em;
}

.ms-head__title--wide {
  font-family: var(--ms-ff-round);
  letter-spacing: 0.1em;
}

.ms-head__dots {
  background: var(--ms-pink-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 10px;
  line-height: 1;
}

/* ----------------------------------------------------------------------
   よくあるご質問
---------------------------------------------------------------------- */
.ms-faq {
  padding: 56px 20px;
  background: #fff7f9;
}

.ms-faq__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.ms-faq .faq-item {
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}

.ms-faq .faq-question {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 42px 16px 16px;
  color: var(--ms-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
}

.ms-faq .faq-question::before {
  flex-shrink: 0;
  width: 16px;
  background: var(--ms-pink-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--ms-ff-en);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  content: "Q";
}

/* ＋アイコン（開いたら－） */
.ms-faq .faq-question::after {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(90deg, var(--ms-pink-from), var(--ms-pink-to)) center / 14px 1.5px no-repeat,
    linear-gradient(90deg, #e57a92, #e57a92) center / 1.5px 14px no-repeat;
  transform: translateY(-50%);
  content: "";
}

.ms-faq .faq-item.active .faq-question::after {
  background:
    linear-gradient(90deg, var(--ms-pink-from), var(--ms-pink-to)) center / 14px 1.5px no-repeat;
}

.ms-faq .faq-answer {
  display: none;
  padding: 0 16px 16px 42px;
}

.ms-faq .faq-item.active .faq-answer {
  display: block;
}

.ms-faq .faq-answer p {
  font-size: 13px;
  line-height: 1.8;
}

/* ----------------------------------------------------------------------
   追従CTA
---------------------------------------------------------------------- */
.ms-cta {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 50;
  width: 100%;
  max-width: 430px;
  padding: 0 20px calc(30px + env(safe-area-inset-bottom)); /* 画面下端から少し上げる（iPhoneのホームバー分も確保） */
  transform: translateX(-50%);
  pointer-events: none;
}

.ms-cta__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  margin-top: 31px;
  padding-left: 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, #53c023, #06b93f 86%);
  box-shadow: 0 5px 4.7px rgba(217, 96, 126, 0.3);
  color: #fff;
  text-decoration: none;
  pointer-events: auto;
}

/* 追従CTA：4秒に1回、ほんの少しふくらみ、光が斜めに流れる（メニュー内のボタンは動かさない） */
.ms-cta .ms-cta__btn {
  animation: ms-cta-breath 4s ease-in-out infinite;
}

.ms-cta .ms-cta__btn::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%;
  background-position: 150% 0;
  pointer-events: none;
  content: "";
  animation: ms-cta-shine 4s ease-in-out infinite;
}

.ms-cta .ms-cta__text {
  position: relative; /* 光より手前に文字を出す */
}

@keyframes ms-cta-breath {
  0%,
  30%,
  100% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.02);
  }
}

@keyframes ms-cta-shine {
  0%,
  10% {
    background-position: 150% 0;
  }
  40%,
  100% {
    background-position: -50% 0;
  }
}

/* 端末で「動きを減らす」が設定されている場合はアニメーションしない */
@media (prefers-reduced-motion: reduce) {
  .ms-cta .ms-cta__btn,
  .ms-cta .ms-cta__btn::before {
    animation: none;
  }
}

.ms-cta__text {
  font-family: var(--ms-ff-round);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-align: center;
}

.ms-cta__micro {
  position: absolute;
  top: -18px;
  left: 50%;
  padding: 4px 12px;
  border: 1px solid #f0cccc;
  border-radius: 999px;
  background: #fff;
  color: #bf5570;
  font-family: "Zen Maru Gothic", var(--ms-ff-base);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  transform: translateX(-42%);
}

.ms-cta__badge {
  position: absolute;
  top: -27px;
  left: -11px;
  width: 84px;
}

/* ----------------------------------------------------------------------
   ハンバーガーメニュー（LP用：ピンク文字のシンプルなページ内リンク＋追従CTAと同じボタン）
---------------------------------------------------------------------- */
html:has(.ms-lp) {
  scroll-behavior: smooth;
}

.hamburger-menu--ms {
  background: #fff7f9;
}

.hamburger-menu--ms .hamburger-menu__header {
  background: #fff7f9;
  border-bottom: 1px solid #f4e2e6;
}

.hamburger-menu--ms .hamburger-menu__content {
  padding: 32px 20px 48px;
}

.hamburger-menu--ms .hamburger-menu__list li {
  margin-bottom: 4px;
}

.hamburger-menu--ms .hamburger-menu__item {
  padding: 12px 24px;
  color: var(--ms-pink-to);
  font-family: var(--ms-ff-round);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.hamburger-menu--ms .hamburger-menu__item:hover {
  color: var(--ms-pink-from);
}

.hamburger-menu--ms .hamburger-menu__button {
  margin-top: 16px;
  padding: 0;
}

.hamburger-menu--ms .ms-cta__btn {
  margin-top: 40px;
}

/* ----------------------------------------------------------------------
   セクション画像（FAQ以外は画像で構成）
---------------------------------------------------------------------- */
.ms-sec {
  margin: 0;
}

/* WebP / PNG 切り替え用の picture はレイアウトに影響させない */
.ms-lp picture,
.hamburger-menu--ms picture {
  display: contents;
}

.ms-sec img {
  display: block;
  width: 100%;
  height: auto;
}

/* ----------------------------------------------------------------------
   お薬の服用にあたって大切なお知らせ（上部は画像、詳細はアコーディオン）
   Figma: 医療物販LP / LP確認用 服用方法（node 539:351）
---------------------------------------------------------------------- */
.ms-notice {
  padding: 12px 20px 45px;
  background: #fff;
}

.ms-notice img {
  display: block;
  width: 100%;
  height: auto;
}

/* 画像の枠線（左右・下）をHTMLで続ける：グラデーション背景＋内側を白で塗って2pxの枠に見せる */
.ms-notice__frame {
  padding: 0 2px 2px;
  border-radius: 0 0 14px 14px;
  background: var(--ms-pink-grad);
}

.ms-notice__inner {
  padding: 20px 19px 28px;
  border-radius: 0 0 12px 12px;
  background: #fff;
}

/* 開閉トグル：枠付きボタン＋右端の＋／－アイコン */
.ms-notice__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px 12px 18px;
  border: 1px solid #f3b8c6;
  border-radius: 10px;
  background: #fff7f9;
  color: var(--ms-brown);
  font-family: var(--ms-ff-round);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ms-notice__toggle:hover {
  background: #fdeef2;
}

.ms-notice__toggle:focus-visible {
  outline: 2px solid var(--ms-pink-to);
  outline-offset: 2px;
}

.ms-notice__icon {
  position: relative;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ms-pink-grad);
}

.ms-notice__icon::before,
.ms-notice__icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  background: #fff;
  transform: translate(-50%, -50%);
  content: "";
  transition: transform 0.2s ease;
}

.ms-notice__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.ms-notice__toggle[aria-expanded="true"] .ms-notice__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.ms-notice__detail {
  margin-top: 12px;
}

/* ----------------------------------------------------------------------
   行（背景画像の上に部品画像を重ねる）
   Figma: 医療物販LP / lpデザイン FIX（node 670:48882）
   位置・幅は 375px 幅のデザインに対する % で各 img の style に指定
---------------------------------------------------------------------- */
.ms-row {
  position: relative;
  overflow: hidden;
}

.ms-lp .ms-row__bg {
  display: block;
  width: 100%;
  height: auto;
}

.ms-lp .ms-row__part {
  position: absolute;
  max-width: none;
  height: auto;
}

/* 影を付けるカード（料金・CASE）：画像の形に沿って影を落とす */
.ms-lp .ms-row__part--shadow {
  filter: drop-shadow(0 4px 12px rgba(60, 67, 72, 0.16));
}

/* カード（部品画像）の表示アニメーション：js/lp-reveal.js が .ms-reveal / .is-shown を付ける */
.ms-lp .ms-row__part.ms-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.ms-lp .ms-row__part.ms-reveal.is-shown {
  opacity: 1;
  transform: none;
}
