/* ==========================================================
   酔り満ち responsive.css（レスポンシブ対応）
   画面幅（＋タッチ端末）で切り替える指定をまとめています
   style.css のあとに読み込んでください
   ========================================================== */

/* ----------------------------------------------------------
   マウスのない端末（スマホ・タブレット）
   ---------------------------------------------------------- */
@media screen and (hover: none) {
  .marquee {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 10vw;
  }

  .marquee__item {
    scroll-snap-align: start;
  }
}

/* ----------------------------------------------------------
   タブレット横（1100px以下）
   ---------------------------------------------------------- */
@media screen and (max-width: 1100px) {
  .jw-step:not(:last-child)::after {
    display: none;
  }
}

/* ----------------------------------------------------------
   タブレット縦〜大きめのスマホ（700px以下）
   ---------------------------------------------------------- */
@media screen and (max-width: 700px) {
  .marquee__list {
    gap: 16px;
    padding-right: 16px;
  }

  .marquee__item {
    width: 72vw;
  }

  .marquee {
    padding-left: 16px;
    clip-path: inset(0 0 0 16px);
    scroll-padding-left: 16px;
  }
}

/* ----------------------------------------------------------
   スマホ（600px以下）
   ---------------------------------------------------------- */
@media screen and (max-width: 600px) {
  /* --- ローディングのグラス --- */
  .loader__glass {
    width: 76px;
  }

  /* --- メインビジュアル：縦長にして要素を縦に積む --- */
  .hero {
    aspect-ratio: 3 / 5;
    padding: 0;
    background-size: cover;
    background-position: center top;
  }

  /* 両サイドの装飾（花・ランプ）はスマホでは表示しない */
  .hero__deco {
    display: none;
  }

  .hero__copy {
    top: 5%;
    left: 7%;
    height: 24%;
  }

  .hero__center {
    padding-bottom: 84%;
  }

  .hero__glass-wrap {
    width: 34%;
  }

  .hero__figure {
    right: -12%;
    bottom: 18%;
    width: 84%;
  }

  /* 人物の左側に添える花 */
  .hero__sp-flower {
    position: absolute;
    left: -11%;
    bottom: 25%;
    display: block;
    width: 46%;
    height: auto;
    pointer-events: none;
  }

  /* --- 共通：セクションの余白を詰める --- */
  .whisky,
  .jw,
  .lineup,
  .rec,
  .shop {
    padding-bottom: 96px;
  }

  /* --- 国産ウイスキーをこゝろゆくまで。 --- */
  .whisky__text {
    font-size: 14px;
    line-height: 2;
  }

  /* --- ジャパニーズウイスキーとは --- */
  .jw__head {
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    gap: 20px;
    text-align: center;
  }

  /* 見出しまわりを縦に並べ、FROM GRAIN TO GLASS を見出しの上へ */
  .jw__inner {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
  }

  .jw__body {
    display: contents;
  }

  .jw__label {
    order: -1;
    align-self: center;
    margin-bottom: 16px;
  }

  .jw__steps {
    align-self: stretch;
    margin-top: 48px;
  }

  .jw__note {
    margin-top: 40px;
  }

  /* リード文の改行をなくす */
  .jw__lead br {
    display: none;
  }

  /* 見出しを横書きに切り替え */
  .jw__title-img--v {
    display: none;
  }

  .jw__title-img--h {
    display: block;
    width: 300px;
    max-width: 100%;
    height: auto;
  }

  .jw__lead {
    height: auto;
    padding-top: 0;
    font-size: 14px;
    line-height: 2;
    writing-mode: horizontal-tb;
  }

  .jw__deco {
    display: none;
  }

  /* 工程：1列に縦に並べ、各工程は「左：アイコン＋番号／右：タイトル＋説明」の横型 */
  .jw__steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .jw-step {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "icon name"
      "icon text"
      "num text";
    align-items: start;
    column-gap: 20px;
    row-gap: 4px;
    padding: 18px 0;
    text-align: left;
  }

  /* アイコンどうしを縦の破線でつなぐ（番号の下から次のアイコンまで） */
  .jw-step:not(:last-child)::after {
    display: block;
    top: 124px;
    bottom: -6px;
    left: 36px;
    width: 0;
    border-top: 0;
    border-left: 1px dashed rgba(4, 24, 65, 0.3);
  }

  .jw-step__icon {
    grid-area: icon;
    justify-self: center;
    width: 64px;
    height: 64px;
  }

  .jw-step__num {
    grid-area: num;
    justify-self: center;
    margin-top: 6px;
  }

  .jw-step__name {
    grid-area: name;
    margin-top: 10px;
    font-size: 17px;
    line-height: 1.4;
  }

  .jw-step__text {
    grid-area: text;
  }

  /* --- 取り扱い銘柄：2列 --- */
  .lineup__groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
  }

  .lineup__name {
    font-size: 16px;
  }

  .lineup__title-img {
    width: 170px;
  }

  .rec__title-img {
    width: 197px;
  }

  .lineup__bg {
    right: -60px;
    width: 340px;
    max-width: none;
  }

  /* --- 今日のおすすめ：横にスワイプするカード --- */
  .rec__list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    grid-template-columns: none;
    gap: 14px;
    margin: 0 -24px;
    padding: 0 24px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 24px;
  }

  .rec-card {
    scroll-snap-align: start;
  }

  .rec-card__visual {
    height: 220px;
  }

  /* --- 店舗情報 --- */
  .shop__row {
    grid-template-columns: 5.5em minmax(0, 1fr);
    gap: 8px;
  }

  .shop__holiday {
    display: block;
    margin-left: 0;
  }

  .shop__map {
    min-height: 240px;
  }

  /* --- フッター --- */
  .footer__body {
    gap: 32px;
  }

  .footer__partners {
    gap: 14px 24px;
  }

  .footer__partner {
    height: 20px;
  }

  .footer__partner--taisho {
    height: 30px;
  }

  /* --- 右端のSNSボタン --- */
  .sns-float {
    bottom: 16px;
    width: 46px;
    height: 54px;
  }

  .sns-float__icon {
    width: 22px;
    height: 22px;
  }
}
