@charset "UTF-8";
/* ==========================================================================
   madras-cta.css
   大阪マドラスカレー 公式サイト — CTA / デリバリー導線 / スマホ追従バー
   作成: 2026-07-16
   更新: 2026-11-24  menu（サービス終了）を削除／ロゴ下の赤矢印・カレー紹介を追加（5章・6章）
   設置: <head> 内、既存 style.css の「後ろ」に読み込むこと（上書きの都合上）

   ※ 本サイトは html { font-size: 10px } のため 1rem = 10px。
      混乱を避けるため、本ファイルでは font-size を全て px で指定している。
   ブランド配色（既存サイトから抽出）
     背景 #FDD901 / 文字 #5F4532 / フッター #DA461D / Noto Sans JP
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ファーストビュー直下 CTA ブロック
   -------------------------------------------------------------------------- */
.cta {
  padding: 40px 16px 32px;
  text-align: center;
  font-family: "Noto Sans JP", sans-serif;

  /* メインビジュアルの背景イラスト（カレー皿の柄）がここまで及ぶと
     ラベル文字が読めなくなるため、ブランドの黄色でベタ塗りして分離する。
     z-index はイラストより前面に出すために必要。 */
  background: #FDD901;
  position: relative;
  z-index: 2;
}

.cta__group {
  margin-bottom: 28px;
}

.cta__group:last-child {
  margin-bottom: 0;
}

.cta__label {
  font-size: 14px;
  font-weight: 700;
  color: #5F4532;
  margin-bottom: 10px;
  letter-spacing: .08em;
}

.cta__row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta__btn {
  display: inline-block;
  min-width: 150px;
  padding: 16px 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 2px 6px rgba(95, 69, 50, .25);
  transition: opacity .2s, transform .2s;
}

.cta__btn:hover,
.cta__btn:focus {
  opacity: .85;
  transform: translateY(-1px);
  color: #fff;
}

.cta__btn--store {
  background: #1A1A1A;
  min-width: 280px;
  font-size: 17px;
  padding: 18px 24px;
}

.cta__btn--uber  { background: #06C167; }
.cta__btn--demae { background: #E60012; }

/* --------------------------------------------------------------------------
   1-2. デリバリー各社の公式バッジ
   Uber Eats から配布されている公式ロックアップをそのまま使う。
   ガイドラインでロゴの改変・切り抜き・色変更・再配色を禁じているため、
   画像には一切手を加えない。
   （2026-11-24: menu はサービス終了のため削除。現在は Uber Eats の1枚のみ）

   支給された素材は縦組み（ほぼ正方形）：
     ubereats_badge.png  698 x 721 … 緑 #06C167 が焼き込み済み・「ご注文はこちら」入り
   横長ボタンには収まらないので、アプリストアのバッジのように正方形で置く。
   -------------------------------------------------------------------------- */
.cta__row--badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
}

.cta__badge {
  display: block;
  line-height: 0;                 /* img下の余白を殺す */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(95, 69, 50, .25);
  transition: opacity .2s, transform .2s;
}

.cta__badge:hover,
.cta__badge:focus {
  opacity: .85;
  transform: translateY(-1px);
}

.cta__badge img {
  display: block;
  height: 132px;
  width: auto;
}

/* --------------------------------------------------------------------------
   2. スマホ用 固定追従バー
   購入者の100%がスマホのため、スマホのみ表示。PC では非表示。
   -------------------------------------------------------------------------- */
.fixbar {
  display: none;
}

/* --------------------------------------------------------------------------
   3. スマホ（768px以下）
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {

  /* --- 既存の BASE フローティングバナーを非表示にする ---------------------
     既存サイトには .float_bnr（position:fixed; bottom:0; z-index:4）が
     常設されている。追従バーと画面下部で重なるため、スマホでは追従バーに
     一本化する。PC では従来どおり .float_bnr を表示する。
     ---------------------------------------------------------------------- */
  .l_footer .float_bnr {
    display: none !important;
  }

  .fixbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, .2);
    font-family: "Noto Sans JP", sans-serif;
    /* iPhone のホームバー領域を避ける */
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  /* 通販 / Uber / 電話 の3ボタン（2026-11-24: menu を削除して4→3ボタン）。
     タップ領域は 320px 幅でも 1ボタン約 90 x 47px あり、44px の指針を満たす。 */
  .fixbar__btn {
    flex: 1;
    padding: 15px 2px;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
  }

  .fixbar__btn:hover,
  .fixbar__btn:focus {
    color: #fff;
    opacity: .85;
  }

  .fixbar__btn--store { flex: 1;  background: #1A1A1A; }
  .fixbar__btn--uber  { flex: 1;  background: #06C167; }
  .fixbar__btn--tel   { flex: .8; background: #5F4532; }

  /* 追従バーに最後のコンテンツが隠れないように余白を確保 */
  body {
    padding-bottom: calc(50px + env(safe-area-inset-bottom, 0px));
  }

  /* CTA はスマホでは縦積み（横並びだと1つあたりが狭すぎる） */
  .cta {
    padding: 28px 16px 24px;
  }

  .cta__row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta__btn {
    min-width: 0;
    width: 100%;
  }

  .cta__btn--store {
    min-width: 0;
    width: 100%;
  }

  /* バッジは縦積みにしない。正方形を全幅に伸ばすと巨大な四角になり、
     スクロール量ばかり増えてCTAとして機能しなくなる。横並びのまま少し縮める。 */
  .cta__row--badges {
    flex-direction: row;
    gap: 10px;
  }

  .cta__badge img {
    height: 116px;
  }
}

/* --------------------------------------------------------------------------
   5. ロゴ下の赤矢印（2026-11-24 追加）
   ロゴのすぐ下に置き、下の購入ボタン（#cta）へ視線を誘導する。
   ロゴ画像（logo_main.png）は上下に余白が多く、絵柄の下端は画像の高さの約64%の位置。
   h1 の幅は style.css で PC 78vw / スマホ 157vw・143vw に決まっているので、
   そこから絵柄の下端を逆算して top を決めている。
   min() は、横長で背の低い画面でも矢印がメインビジュアルからはみ出さないための上限。
   -------------------------------------------------------------------------- */
.mv_arrow {
  position: absolute;
  left: 50%;
  top: min(calc(50% + 9.5vw), calc(100% - 13vw - 24px));
  width: 120px;                        /* clamp 非対応の古い端末向けの保険 */
  width: clamp(100px, 11vw, 200px);   /* 高さは幅の約1.17倍 */
  transform: translateX(-50%);
  /* 4 にする理由: スマホの固定ヘッダー .l_header が z-index:5。同じ 5 だと DOM で後ろの矢印が
     ヘッダーとドロワーメニューの上に出てしまう。mv_parts（1〜4）よりは前に出したいので 4。 */
  z-index: 4;
  pointer-events: none;           /* オープニング中（透明な間）は押せないように */
  line-height: 0;
  opacity: 0;                     /* オープニング中は隠す */
  transition: opacity .6s ease .2s;
  filter: drop-shadow(0 4px 4px rgba(95, 69, 50, .35));
}

/* オープニング終了で script.js が body から js-opening を外す → 表示 */
body:not(.js-opening) .mv_arrow {
  opacity: 1;
  pointer-events: auto;
}

.mv_arrow svg {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;           /* クリックは常に a 要素で受ける */
  animation: mvArrowBounce 1.6s ease-in-out infinite;
}

.mv_arrow:hover svg,
.mv_arrow:focus svg {
  animation-play-state: paused;
}

@keyframes mvArrowBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(12px); }
}

@media (prefers-reduced-motion: reduce) {
  .mv_arrow svg { animation: none; }
}

/* スマホ: ロゴ h1 の位置が PC と違う（style.css で top 43% + margin-top 15% / 8%） */
@media screen and (max-width: 768px) {
  .mv_arrow {
    top: min(calc(43% + 33vw), calc(100% - 26vw - 16px));
    width: 110px;
    width: clamp(90px, 22vw, 160px);
  }
  #cta { scroll-margin-top: 7rem; }
}

@media screen and (max-width: 414px) {
  .mv_arrow {
    top: min(calc(43.5% + 27vw), calc(100% - 31vw - 12px));
    width: 26vw;
  }
}

/* --------------------------------------------------------------------------
   6. カレーの写真と説明（2026-11-24 追加 / NEWS の上）
   CTA と同じ黄色地。見出しは既存の .content_ttl（Suez One・赤）を流用している。
   -------------------------------------------------------------------------- */
.curry {
  background: #FDD901;
  position: relative;
  z-index: 2;
  padding: 72px 24px 96px;
  font-family: "Noto Sans JP", sans-serif;
  color: #5F4532;
}

.curry__ttl {
  text-align: center;
  margin-bottom: 48px;
}

.curry__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 56px;
}

.curry__photo {
  flex: 0 0 54%;
}

.curry__photo img,
.curry__placeholder {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  border: 6px solid #fff;
  box-shadow: 0 6px 18px rgba(95, 69, 50, .25);
  box-sizing: border-box;
}

/* 写真が届くまでの仮枠。差し替え後は使わない */
.curry__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, #fff6c4 0 14px, #fff0a8 14px 28px);
  color: #a08060;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .1em;
}

.curry__text {
  flex: 1;
  text-align: left;
}

.curry__name {
  font-size: 26px;
  font-weight: 700;
  color: #DA461D;
  line-height: 1.4;
  margin-bottom: 12px;
}

.curry__lead {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 20px;
}

.curry__desc {
  font-size: 16px;
  line-height: 2;
  letter-spacing: .04em;
}

@media screen and (max-width: 768px) {
  .curry {
    padding: 48px 20px 64px;
  }

  .curry__ttl {
    margin-bottom: 28px;
  }

  .curry__inner {
    flex-direction: column;
    gap: 24px;
  }

  .curry__photo {
    flex: none;
    width: 100%;
    max-width: 520px;
  }

  .curry__text {
    text-align: center;
  }

  .curry__name { font-size: 22px; }
  .curry__lead { font-size: 17px; margin-bottom: 14px; }
  .curry__desc { font-size: 15px; line-height: 1.9; }
}

/* オーナー紹介（6章の続き） */
.curry__owner {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 2px dotted rgba(95, 69, 50, .35);
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: .04em;
}

@media screen and (max-width: 768px) {
  .curry__owner { font-size: 13px; }
}

/* --------------------------------------------------------------------------
   7. WebP 化に伴う調整（2026-11-24）
   ロゴを <picture> で包んだため、h1（flex）の中で picture が縮まないよう幅を固定する。
   これが無いと img の width:100% の基準が無くなり、ロゴの大きさが変わる。
   -------------------------------------------------------------------------- */
#logo picture,
.shopinfo_item .img picture {
  display: block;
  width: 100%;
}
