@charset "UTF-8";

/* SP：画面下の固定 CTA（電話・お問い合わせ）。
   MV を過ぎたら表示し、フォーム・フッターが見えている間は隠す（sp-fixed-cta.js）。
   ボタンはサイト共通の「額縁」形（外枠 4px＋内側 1px 線、角丸 5px/3px）に揃える。 */
.sp-fixed-cta {
  display: none;
}

@media only screen and (max-width: 767px) {
  .sp-fixed-cta {
    position: fixed;
    z-index: 800; /* ヘッダー・ドロワー（1000）より下 */
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: #f6f3ef;
    border-top: 1px solid #ebe7e2;
    box-shadow: 0 -2px 10px rgba(34, 34, 34, 0.1);
    opacity: 0;
    visibility: hidden;
    translate: 0 100%;
    transition:
      opacity 0.25s ease-in,
      translate 0.25s ease-in,
      visibility 0s linear 0.25s;
  }

  .sp-fixed-cta.is-visible {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
    transition:
      opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
      translate 0.45s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0s linear 0s;
  }

  /* 共通：外枠 */
  .sp-fixed-cta a {
    display: block;
    min-width: 0;
    height: 52px;
    padding: 4px;
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
    -webkit-tap-highlight-color: transparent;
    transition: translate 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease;
  }

  .sp-fixed-cta a:active {
    translate: 0 1px;
    box-shadow: none;
  }

  /* 共通：内側の 1px 線 */
  .sp-fixed-cta__inner {
    display: flex;
    align-items: center;
    height: 100%;
    border-radius: 3px;
    overflow: hidden;
    line-height: 1;
    transition: background-color 0.1s ease, border-color 0.1s ease;
  }

  /* ---------- 電話（白・オレンジ線）。番号の下に受付時間 ---------- */
  .sp-fixed-cta__tel {
    background: #fff;
  }

  .sp-fixed-cta__tel .sp-fixed-cta__inner {
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    border: 1px solid #f55430;
    background: #fff;
  }

  .sp-fixed-cta__num {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: "Libre Baskerville", serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0;
    color: #222;
    white-space: nowrap;
  }

  /* 受話器アイコン（ヘッダーと同じアセット） */
  .sp-fixed-cta__num:before {
    content: "";
    flex-shrink: 0;
    width: 11px;
    height: 14px;
    background: url(../img/common/icon/ic-phone_black.svg) no-repeat center / contain;
  }

  .sp-fixed-cta__hours {
    font-family: "Noto Serif JP", serif;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0;
    color: #6e6e6e;
    white-space: nowrap;
  }

  .sp-fixed-cta__tel:active .sp-fixed-cta__inner {
    border-color: #4a2e20;
    background: #f7f4f0;
  }

  .sp-fixed-cta__tel:active .sp-fixed-cta__hours {
    color: #4a2e20;
  }

  /* ---------- お問い合わせ（オレンジ麻の葉・白線＋メールアイコン） ---------- */
  .sp-fixed-cta__contact {
    background: #f55430 url(../img/common/bg-frame03.png);
  }

  .sp-fixed-cta__contact .sp-fixed-cta__inner {
    border: 1px solid #fff;
  }

  .sp-fixed-cta__label {
    flex: 1;
    min-width: 0;
    text-align: center;
    font-family: "Noto Serif JP", serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #fff;
    white-space: nowrap;
  }

  /* 右端の白い正方形＋メールアイコン（ヘッダー・フッターと同じ） */
  .sp-fixed-cta__contact .sp-fixed-cta__inner:after {
    content: "";
    flex-shrink: 0;
    width: 42px;
    height: 100%;
    background: #fff url(../img/common/icon/ic-mail_orange.svg) no-repeat center / 21px 14px;
    transition: background-color 0.1s ease;
  }

  .sp-fixed-cta__contact:active {
    filter: brightness(0.92);
  }

  .sp-fixed-cta__contact:active .sp-fixed-cta__inner:after {
    background: #f55430 url(../img/common/icon/ic-mail_white.svg) no-repeat center / 21px 14px;
  }
}

/* 狭い端末（〜374px）：電話番号を 1px 詰める */
@media only screen and (max-width: 374px) {
  .sp-fixed-cta__num {
    font-size: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-fixed-cta,
  .sp-fixed-cta.is-visible {
    translate: 0 0;
    transition: opacity 0.2s linear, visibility 0s linear 0.2s;
  }

  .sp-fixed-cta.is-visible {
    transition-delay: 0s;
  }
}
