@charset "UTF-8";
/* 202511261124 test */

/* ==== オーバーレイ全体（半透明黒の背景） ==== */
#campaignOverlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6); /* 半透明の黒 */
  z-index: 50001;
  opacity: 0;
  pointer-events: none;           /* 非表示時はタッチ対象から外す */
  transition: opacity 0.3s ease;
}

#campaignOverlay.mdc-show {
  opacity: 1;
  pointer-events: auto;           /* 表示中のみタッチ有効 */
}

/* 中身のコンテナ */
#campaignOverlay #overlayContent {
  position: relative;
  max-width: 90vw;
}

/* バナー全体 */
#campaignOverlay .mdc-banner-wrapper {
  position: relative;
  width: 80vw;
  max-width: 400px;
  min-width: 300px;
  margin: 0 auto 16px;
  overflow: hidden;
  background: #f5f5f5;
}

/* 下にあるバナー内容 */
#campaignOverlay .mdc-banner-content {
  position: relative;              /* 紙吹雪の親になるので relative */
  width: 100%;
  height: 100%;
  z-index: 50002;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  font-size: 32px;
  font-weight: bold;
  color: #333;
  opacity: 0;
  transition: opacity 0.9s ease 0.7s;
  overflow: hidden;                /* 紙吹雪のはみ出しを隠す */
}
#campaignOverlay .mdc-banner-content p {
  margin: 0;
}
#campaignOverlay .mdc-banner-content p.mdc-accent-color001 {
  color: #e8721e;
}
#campaignOverlay .mdc-banner-content p small {
  font-size: 16px;
}

#campaignOverlay .mdc-banner-content-coupon {
  position: relative;          /* 疑似要素のために relative */
  overflow: hidden;            /* はみ出した光を隠す */
  z-index: 50003;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 8px 16px;
  background: #e8721e;
  color: #fff;
  cursor: pointer;
  user-select: none;
  /* ほんの少しの発光感（常時） */
  box-shadow: 0 0 8px rgba(232,114,30,0.6);
}

/* キラッと光る筋 */
#campaignOverlay .mdc-banner-content-coupon::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -40%;
  width: 80%;
  height: 200%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.5) 80%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  /* 通過1秒 → 休憩2秒 → 通過1秒 → 休憩2秒（全体6秒） */
  animation: mdc-kiraEffect 6s linear infinite;
}

@keyframes mdc-kiraEffect {
  /* 1回目の通過（1秒）: 0〜16.6% */
  0% { transform: translateX(-120%); opacity: 0; }
  8% { opacity: 1; }
  16.6% { transform: translateX(250%); opacity: 0; }
  /* 休憩（2秒）: 16.6〜50% */
  50% { transform: translateX(-120%); opacity: 0; }
  /* 2回目の通過（1秒）: 50〜66.6% */
  58% { opacity: 1; }
  66.6% { transform: translateX(250%); opacity: 0; }
  /* 休憩（2秒）: 66.6〜100% */
  100% { transform: translateX(250%); opacity: 0; }
}

/* スマホ専用（幅 480px 以下） */
@media screen and (max-width: 480px) {
  #campaignOverlay .mdc-banner-content { font-size: 24px; }
  #campaignOverlay .mdc-banner-content p small { font-size: 14px; }
}

/* カーテン共通：最初は四角形で中央ぴったり */
#campaignOverlay .mdc-curtain {
  position: absolute;
  top: -100%;
  width: 50%;
  height: 200%;
  background: #667654;
  z-index: 50005;
  box-shadow: none;
}

#campaignOverlay .mdc-curtain-left { left: 0; }
#campaignOverlay .mdc-curtain-right { right: 0; }

/* play 時にアニメーション開始 */
#campaignOverlay .mdc-banner-wrapper.mdc-play .mdc-curtain-left {
  animation: mdc-curtainOpenLeft 1.0s ease-in-out forwards;
}
#campaignOverlay .mdc-banner-wrapper.mdc-play .mdc-curtain-right {
  animation: mdc-curtainOpenRight 1.0s ease-in-out forwards;
}

/* バナーを表示 */
#campaignOverlay .mdc-banner-wrapper.mdc-play .mdc-banner-content {
  opacity: 1;
}

@keyframes mdc-curtainOpenLeft {
  0% { transform: translateX(0); border-radius: 0; }
  100% { transform: translateX(-100%); border-radius: 0 80% 80% 0; box-shadow: -18px 0 30px rgba(0,0,0,0.5); }
}

@keyframes mdc-curtainOpenRight {
  0% { transform: translateX(0); border-radius: 0; }
  100% { transform: translateX(100%); border-radius: 80% 0 0 80%; box-shadow: 18px 0 30px rgba(0,0,0,0.5); }
}

/* 丸背景の × ボタン */
#campaignOverlay #closeOverlay {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}
#campaignOverlay #closeOverlay:hover {
  background: rgba(0,0,0,0.9);
}

/* 「今後表示しない」チェック */
#campaignOverlay .mdc-dont-show-wrapper {
  text-align: center;
  margin-bottom: 8px;
  color: #fff;
  font-size: 14px;
}
#campaignOverlay .mdc-dont-show-wrapper label { cursor: pointer; }
#campaignOverlay .mdc-dont-show-wrapper input { margin-right: 4px; }

/* コピーしましたトースト */
#campaignOverlay .mdc-copy-toast {
  z-index: 50004;
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%) translateY(10px);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
#campaignOverlay .mdc-copy-toast.mdc-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 紙吹雪アニメーション */
#campaignOverlay .mdc-confetti {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 50002;
}
#campaignOverlay .mdc-confetti-piece {
  position: absolute;
  bottom: -10px;
  width: 6px;
  height: 14px;
  opacity: 0;
  transform-origin: center bottom;
}
#campaignOverlay .mdc-confetti.mdc-burst .mdc-confetti-piece {
  animation-name: mdc-confettiUp;
  animation-timing-function: cubic-bezier(0.18, 0.89, 0.32, 1.28);
  animation-fill-mode: forwards;
}
@keyframes mdc-confettiUp {
  0% { opacity: 1; transform: translate3d(0, 0, 0) rotateZ(0deg); }
  45% { opacity: 1; transform: translate3d(var(--confetti-shift, 0px), calc(-1 * var(--confetti-peak, 120px)), 0) rotateZ(var(--confetti-tilt, 0deg)); }
  100% { opacity: 0; transform: translate3d(calc(var(--confetti-shift, 0px) * 1.3), 16px, 0) rotateZ(calc(var(--confetti-tilt, 0deg) * 1.4)); }
}

/* 左端の「クーポン」タブボタン */
#couponTab {
  z-index: 50000;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  transform-origin: left center;
  animation: mdc-couponTabShake 3s ease-in-out infinite;
  touch-action: manipulation;
}

@media screen and (max-width: 480px) {
  #couponTab {
    font-size: 16px;
  }
}

#couponTab span { letter-spacing: 0.15em; }

/* タブを3秒ごとに揺らす */
@keyframes mdc-couponTabShake {
  0%, 70%, 100% { transform: rotate(0deg); }
  72% { transform: rotate(-4deg); }
  76% { transform: rotate(4deg); }
  80% { transform: rotate(-3deg); }
  84% { transform: rotate(3deg); }
  88% { transform: rotate(0deg); }
}

/* オーバーレイバナー関連ここまで */

/* ヘッダー調整 */
.headline .inbox1.flex p {
  font-size: 12.5px;
  line-height: 1.4;
}

@media (max-width: 1080px) {
  .headline { height: 50px; }
  .headline .inbox1 { padding: 10px 0px; }
}

@media (max-width: 669px) {
  .headline .inbox1.flex > img { display: none; }
}

/* サンプル・見積のフローティングボタン */
#fix_bottun_box {
  bottom: 20px;
  right: 10px;
  width: auto;
}

@media screen and (max-width: 1080px) {
  #fix_bottun_box a { width: 90px; }
  #fix_bottun_box a img { width: auto; height: auto; }
  #slider .swiper-pagination { display: none; }
  #slider .swiper-container { margin: 0 auto 50px !important; }
}

/* ================================================
   価格表ページ (f65/f66) スマホ対応
   2026-04-07
   ================================================ */
@media screen and (max-width: 770px) {

  /* テーブルを block 化して overflow-x を有効に */
  table.kakaku {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  /* すでに .scroll div がある場合も念のため */
  div.scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* セル内は折り返しさせない（横スクロールで見る前提） */
  table.kakaku th,
  table.kakaku td {
    white-space: nowrap;
    font-size: 12px;
    padding: 6px 8px;
  }

  table.kakaku caption {
    font-size: 12px;
  }

  /* inbox3 の左右パディングを少し詰める */
  .inbox3 {
    padding: 15px 8px;
  }

  table.kakaku caption {
    position: sticky;
    left: 0;
    width: calc(100vw - 16px); /* inbox3の左右パディング8px×2を引く */
    font-size: 15px;
  }
}

.btn-flat-15hida {
  margin-bottom: 5px;
}

.btn-flat-drape, .btn-flat-syakou, .btn-flat-lace, .btn-flat-kakou {
  margin-bottom: 8px;
}