@charset "UTF-8";
/*==================================================================
  共通コンポーネント追加分（index / ingredients 両ページで使用）
  style.css はビルド生成物のため直接編集せず、本ファイルに追記する
==================================================================*/

/*--------------------------- PC左サイドバーの出店スケジュール画像
  <img> は親が display:none でも必ずダウンロードされるため、
  スマホでも約600KBの画像を無駄に読み込んでいた。
  1280px 以上でのみ参照される CSS 背景に変更することで、
  モバイルでは一切ダウンロードされなくなる。
  （CSS背景はメディアクエリが一致しない限り取得されない）
-------------------------------------------------------------------*/
.l-schedule__post--bg {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

@media (min-width: 1280px) {
  .l-schedule__post--bg {
    background-image: url(../images/x_post.jpg);
  }
}

/*------------------------------------------------- スキップリンク
   下層ページ共通。フォーカスされるまで画面外に退避させる。
   ここに置いていない状態だと、ただのリンクとして常時表示される。
-------------------------------------------------------------------*/
.c-skip-link {
  background-color: #000DA8;
  border-radius: 0 0 8px 0;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: bold;
  left: 0;
  padding: 10px 16px;
  position: fixed;
  top: 0;
  -webkit-transform: translateY(-120%);
      -ms-transform: translateY(-120%);
          transform: translateY(-120%);
  z-index: 200;
}

.c-skip-link:focus {
  -webkit-transform: translateY(0);
      -ms-transform: translateY(0);
          transform: translateY(0);
}

/*--------------------------------------------- 視覚的に隠すテキスト
  見出しが画像のみだと検索エンジン／AI クローラには alt しか渡らない。
  画像は装飾（alt="")に落とし、見出しの実テキストを併記するための
  画像置換テクニック。表示内容と一致した文言のみを入れる。
-------------------------------------------------------------------*/
.u-visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  -webkit-clip-path: inset(50%);
          clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/*----------------------------------------- ボタン内の食べ物アイコン
   scroll_item.webp（サイト既存のマーキー素材）から魚とご飯を切り出して
   1枚に合成したもの。元素材と同じタッチなので浮かない。
   高さだけ指定し、幅は原寸比（140:48）に任せる。
-------------------------------------------------------------------*/
.c-more__icon {
  -ms-flex-negative: 0;
      flex-shrink: 0;
  height: 24px;
  width: auto;
}

/* PC左サイドバーはボタン幅 288px・文字 1.4rem なので少し小さく */
@media (min-width: 1280px) {
  .l-schedule__more .c-more__icon {
    height: 21px;
  }
}

/*------------------------------------------------- X への遷移ボタン
  課題:
    セクション背景 #0028EF に対して従来の紺ボタン #000DA8 は
    コントラスト 1.57:1 でほぼ同化していた。
  対応:
    - X のブランドカラーである黒を面に使い、遷移先を一目で分かるようにする
    - 白のリングで境界を作る（白 vs #0028EF = 7.6:1）
      薄水色のサイドバー上では黒の面自体が 16.6:1 で成立するため、
      どちらの背景でも境界コントラスト 3:1 以上を確保できる
    - 「Xに遷移します」をボタン内の副ラベルに格納。
      リンク内に入るため読み上げでも遷移先が伝わる
-------------------------------------------------------------------*/
.c-x-button {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background-color: #000000;
  border: 2px solid #ffffff;
  border-radius: 34px;
  -webkit-box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
          box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  color: #ffffff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  min-height: 68px;
  padding: 10px 18px 10px 12px;
  text-decoration: none;
  -webkit-transition: background-color 0.3s, -webkit-transform 0.15s;
  transition: background-color 0.3s, -webkit-transform 0.15s;
  -o-transition: background-color 0.3s, transform 0.15s;
  transition: background-color 0.3s, transform 0.15s;
  transition: background-color 0.3s, transform 0.15s, -webkit-transform 0.15s;
}

.c-x-button:hover {
  background-color: #1A1A1A;
}

.c-x-button:active {
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  -webkit-transform: translateY(2px);
      -ms-transform: translateY(2px);
          transform: translateY(2px);
}

.c-x-button:focus-visible {
  outline: 3px solid #FFC700;
  outline-offset: 3px;
}

/* X ロゴ。黒面から浮かせるため白の丸で抜く */
.c-x-button__icon {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background-color: #ffffff;
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  height: 34px;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 34px;
}

.c-x-button__text {
  display: block;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.c-x-button__label {
  display: block;
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1.25;
}

.c-x-button__note {
  color: rgba(255, 255, 255, 0.78);
  display: block;
  font-size: 1.2rem;
  line-height: 1.3;
  margin-top: 3px;
}

.c-x-button__arrow {
  -ms-flex-negative: 0;
      flex-shrink: 0;
  -webkit-transition: -webkit-transform 0.3s;
  transition: -webkit-transform 0.3s;
  -o-transition: transform 0.3s;
  transition: transform 0.3s;
  transition: transform 0.3s, -webkit-transform 0.3s;
  width: 20px;
}

.c-x-button:hover .c-x-button__arrow {
  -webkit-transform: translateX(6px);
      -ms-transform: translateX(6px);
          transform: translateX(6px);
}

/*--------------------------------------- 375px 未満での寸法調整
  幅 320px では 1.6rem のまま「本日のメニューを / Check!」と
  不自然な位置で折り返すため、1 行に収まるよう詰める。
-------------------------------------------------------------------*/
@media (max-width: 374px) {
  .c-x-button {
    gap: 8px;
    min-height: 62px;
    padding-left: 10px;
    padding-right: 12px;
  }

  .c-x-button__icon {
    height: 30px;
    width: 30px;
  }

  .c-x-button__label {
    font-size: 1.35rem;
  }

  .c-x-button__note {
    font-size: 1.1rem;
  }

  .c-x-button__arrow {
    width: 18px;
  }
}

/*------------------- PC 左サイドバー（.l-schedule）内での寸法調整
  従来 240px では 2 行構成のボタンに対して幅が足りないため広げる。
  サイドバーの内容領域は 1440px 表示時に約 376px あり収まる。
-------------------------------------------------------------------*/
@media (min-width: 1280px) {
  .l-schedule__more {
    max-width: 288px;
  }

  .l-schedule__more .c-x-button {
    min-height: 62px;
    padding-left: 10px;
    padding-right: 14px;
  }

  .l-schedule__more .c-x-button__icon {
    height: 30px;
    width: 30px;
  }

  .l-schedule__more .c-x-button__label {
    font-size: 1.4rem;
  }

  .l-schedule__more .c-x-button__note {
    font-size: 1.1rem;
  }

  .l-schedule__more .c-x-button__arrow {
    width: 18px;
  }
}

/*--------------------------------------------------- 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  .c-x-button,
  .c-x-button__arrow {
    -webkit-transition-duration: 0.001ms !important;
         -o-transition-duration: 0.001ms !important;
            transition-duration: 0.001ms !important;
  }
}
