/* =====================================================
   INTERESTING INNOVATION - BRANDS DETAIL（店舗詳細）
   style.css → sub.css の後に読み込む
   基準幅: PC 1920 / TB 768 / SP 393（1rem = 基準幅で 10px）
   ===================================================== */

/* 共通の見出し帯（.page-head--tall 帯 647px）・パンくずは css/sub.css。ヘッダー・フッターはホームと同じ（style.css） */

/* ---------- 帯の中のタイトル（Our Brands 店舗一覧 / 店名 / 英字） ---------- */
.dhead { position: absolute; left: 12.4rem; top: 28.7rem; z-index: 2; }
/* 店舗ロゴ: 帯の中央（Figma のヘッダーロゴと同じくセンター）。CMS で差し替えても揃うよう 32×20rem の枠に収めて中央配置 */
.dhead__logo { position: absolute; left: calc(50% - 16rem); top: 21rem; z-index: 2; display: flex; align-items: center; justify-content: center; width: 32rem; height: 32rem; } /* .reveal が transform を上書きするので translateX は使わない */ /* Figma: 帯の中央、y 242〜566 あたり */
.dhead__logo img { max-width: calc(100% * var(--logo-s, 1)); max-height: calc(100% * var(--logo-s, 1)); width: auto; height: auto; object-fit: contain; } /* --logo-s で店舗ごとに見た目の大きさを微調整 */
.dhead__text { min-width: 0; }
.dhead__top { display: flex; align-items: flex-end; gap: 1.2rem; margin-left: .3rem; }
.dhead__en { font-size: 3.2rem; font-weight: 500; line-height: 1; letter-spacing: -.05em; color: var(--black); } /* Figma: baseStyle/#00 */
.dhead__list { padding-bottom: .6rem; font-size: 1.2rem; font-weight: 700; line-height: 1; }
.dhead__name { margin-top: 2.8rem; font-size: 4.8rem; font-weight: 700; line-height: 1; white-space: nowrap; }
.dhead__sub { margin: 1rem 0 0 .4rem; font-size: 1.4rem; font-weight: 500; line-height: 1; color: #fff; } /* Figma: baseStyle/#FF */

/* ---------- 帯に少しかかる写真 3 枚（中央揃え、左右は画面外にはみ出す） ---------- */
/* 冒頭の写真: 汎用スライダー（js/brands.js）。中央の 1 枚を基準に左右が見切れる（Figma 通り 2 枚目を中央に） */
.dhero { position: relative; z-index: 2; margin-top: -3.4rem; padding-bottom: 2rem; }
.dhero__track { display: flex; gap: 4.8rem; padding: 0 calc(50% - 36rem); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; }
.dhero__track::-webkit-scrollbar { display: none; }
.dhero__track.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.dhero__track.is-drag img { pointer-events: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 1200px) { .dhero__track, .dhero__track.is-drag { cursor: none; scroll-snap-type: none; } } /* PC: DRAG カーソル + 1 枚ずつのドラッグ */
.dhero__nav { position: relative; display: flex; justify-content: flex-end; align-items: center; gap: .8rem; padding: 2.4rem 20rem 0; }
/* インジケーターは画面中央、矢印は右端 */
.dhero__nav .slider-dots { position: absolute; left: 50%; top: 2.4rem; height: 4rem; transform: translateX(-50%); }
.dhero__arrow { display: flex; align-items: center; justify-content: center; width: 6.4rem; height: 4rem; background: var(--orange); border-radius: 10rem; color: #fff; transition: background-color .3s, opacity .3s; }
.dhero__arrow:hover { background: var(--black); }
.dhero__arrow.is-disabled { opacity: .3; pointer-events: none; }
.dhero__arrow svg { width: 2.4rem; height: .6rem; fill: none; stroke: currentColor; stroke-width: 1; overflow: visible; }
.dhero__photo { position: relative; width: 72rem; aspect-ratio: 3 / 2; flex: none; border-radius: .5rem; overflow: hidden; box-shadow: 0 .5rem 1rem rgba(0,0,0,.25); scroll-snap-align: center; }
.dhero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- 本文エリア ---------- */
.dmain { position: relative; padding: 10rem 20rem 0 42rem; } /* スライダー（矢印込み）から本文までの余白を詰める */
/* 縦書きの店名: セクション内をスクロールしている間、固定ヘッダーの下に追従（sticky）。セクションの終わりで止まる */
.dmain__vname-wrap { position: absolute; left: 20rem; top: 10.7rem; bottom: 0; }
.dmain__vname { position: sticky; top: calc(var(--anchor-offset) + 6rem); margin: 0; writing-mode: vertical-rl; font-size: 4.8rem; font-weight: 700; line-height: 1.05; white-space: nowrap; }
.dmain__intro { width: 85.9rem; }
.dmain__desc { font-size: 2.4rem; font-weight: 500; line-height: 1.8; }
.dmain__data { margin: 6.1rem 0 0; }
.dmain__row { display: flex; align-items: flex-start; }
.dmain__row + .dmain__row { margin-top: .8rem; }
.dmain__row dt { width: 10rem; flex: none; font-size: 1.6rem; font-weight: 400; line-height: 1.6; }
.dmain__row dd { margin: 0; font-size: 1.6rem; font-weight: 400; line-height: 1.6; }
/* 右のボタン（予約 / マップ / 電話）+ Instagram */
.dmain__side { position: absolute; right: 20rem; top: 10.9rem; display: flex; flex-direction: column; align-items: center; gap: .8rem; width: 36rem; }
.dbtn { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; background: #fff; border-radius: .5rem; font-size: 1.8rem; font-weight: 600; line-height: 1; transition: background-color .3s, color .3s; }
.dbtn:hover { background: var(--black); color: #fff; }
.dbtn--reserve { height: 6.6rem; background: var(--orange); color: #fff; } /* Figma: 文字は baseStyle/#FF */
.dbtn--tabelog { height: 7.2rem; }
.dbtn--tabelog:hover { background: #ebe4d6; } /* ロゴの黒文字が消えないよう黒地にしない */
.dbtn--tabelog img { width: auto; height: 2.6rem; }
.dbtn--map { height: 7.2rem; }
.dbtn--tel { height: 8rem; }
.dbtn__icon { position: absolute; left: 1.8rem; top: 50%; width: 3rem; height: 3rem; transform: translateY(-50%); transition: filter .3s; }
.dbtn:hover .dbtn__icon { filter: brightness(0) invert(1); } /* アイコンはオレンジ。hover（黒地）では白に */
.dmain__insta { display: block; width: 3.2rem; margin-top: 4.9rem; transition: opacity .3s; }
.dmain__insta:hover { opacity: .6; }
.dmain__insta img { width: 100%; }

/* ---------- セクション（こだわり / メニュー / スタッフ） ---------- */
.dsec { width: 129.9rem; margin-top: 11.2rem; }
.dsec + .dsec { margin-top: 10.4rem; }
.dsec__ttl { display: flex; align-items: center; gap: .8rem; font-size: 3.2rem; font-weight: 700; line-height: 1.25; }
.dsec__icon { width: 3.6rem; height: 3.6rem; flex: none; }
.dcards { display: grid; grid-template-columns: repeat(3, 41.7rem); gap: 2.4rem; margin: 4.8rem 0 0; padding: 0; list-style: none; }
.dcard__img { position: relative; aspect-ratio: 417 / 278; margin: 0; border-radius: .5rem; overflow: hidden; }
.dcard__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.dcard__ttl { margin-top: 2.4rem; font-size: 2.1rem; font-weight: 600; line-height: 1.5; } /* 2 行になっても詰まらない行間 */
.dcard__txt { margin-top: 1.6rem; font-size: 1.6rem; font-weight: 400; line-height: 1.6; }
/* カードは親（.dcards）が見えた時点でまとめて発火し、左から順に */
.dcards.reveal { opacity: 1; transform: none; filter: none; }
.dcards.reveal .dcard { opacity: 0; transform: translateY(4rem); filter: blur(.4rem); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1), filter .8s ease; transition-delay: var(--d, 0s); }
.dcards.reveal.is-visible .dcard { opacity: 1; transform: none; filter: none; }
/* スタッフ紹介（インタビュー詳細へのリンク） */
.dcard__link { display: block; }
.dcard__link:hover .dcard__img img { transform: scale(1.05); }
.dcard__img--sq { aspect-ratio: 1 / 1; }
.dcard__tag { position: absolute; right: 1.6rem; top: 2.2rem; padding: .8rem 1.6rem; background: var(--orange); color: #fff; border-radius: .3rem; font-size: 1.4rem; font-weight: 600; line-height: 1; }
.dcard__quote { margin-top: 2.4rem; font-size: 2.1rem; font-weight: 600; line-height: 1.5; transition: color .3s; }
.dcard__link:hover .dcard__quote { color: var(--orange); }
.dcard__who { display: flex; align-items: center; margin-top: .8rem; }
.dcard__name { font-size: 2.1rem; font-weight: 600; line-height: 1.7; }
.dcard__name::after { content: ""; display: inline-block; width: 1px; height: 2.4rem; margin: 0 2.4rem; background: var(--black); vertical-align: middle; }
.dcard__shop { font-size: 2rem; font-weight: 600; line-height: 1.7; }

/* ---------- Other Brands（ホームの .shop-list / .shop-card を流用） ---------- */
.obrands { position: relative; margin-top: 29.4rem; padding: 0 20rem 8rem 19.8rem; overflow-x: clip; overflow-y: visible; } /* 背景の英字は上にはみ出す（横だけクリップ）。下は波までの余白を広めに */
.obrands__bg { position: absolute; left: 0; top: -5.7rem; width: 100%; pointer-events: none; z-index: 0; } /* 白い INTERESTING INNOVATION（Figma: en）を無限スクロール */
.obrands__bg .marquee__track { animation-duration: 90s; }
.obrands__bg img { width: 332.3rem; max-width: none; height: auto; flex: none; margin-right: 12rem; }
.obrands__head { position: relative; z-index: 1; display: flex; align-items: center; gap: 2.4rem; }
.obrands__en { font-size: 4.8rem; font-weight: 700; line-height: 1; color: var(--orange); }
.obrands__ja { font-size: 2rem; font-weight: 600; line-height: 1; }
.obrands .shop-list { position: relative; z-index: 1; margin-top: 6.4rem; }
.obrands .shop-list__track { gap: 2.4rem; }
.obrands .shop-card__info { margin-top: 3.2rem; }
.obrands .shop-card__name { font-weight: 700; }
.obrands .shop-list__bar { position: relative; z-index: 1; }

/* =====================================================
   TB / SP 共通（〜1199px）
   ===================================================== */
@media (max-width: 1199px) {
  .pc-br { display: none; }
  .dhead { position: relative; left: auto; top: auto; }
  .page-head--tall { display: flex; flex-direction: column; } /* ロゴをテキストの下に並べ替える */
  .dhead__logo { position: relative; left: auto; top: auto; order: 1; width: 16rem; height: 14rem; margin: 2.4rem auto 0; }
  .page-head--tall .crumb { order: 2; }
  .dhead__top { gap: .8rem; margin-left: 0; }
  .dhead__en { font-size: 2.4rem; }
  .dhead__list { padding-bottom: .4rem; font-size: 1.1rem; }
  .dhead__name { margin-top: 1.6rem; font-size: 2.8rem; line-height: 1.2; white-space: normal; }
  .dhead__sub { margin: .8rem 0 0; font-size: 1.2rem; }

  /* 写真は横スクロール */
  .dhero { margin-top: 1.6rem; padding-bottom: 1.6rem; } /* 帯の下端（--band）に少しかかる。パンくずの下に置く */
  .dhero__track { gap: 1.2rem; padding: 0 calc(50% - 15rem); } /* 30rem 幅のカードを中央に（% 幅だと padding と噛み合わないので rem） */
  .dhero__photo { width: 30rem; box-shadow: 0 .3rem .8rem rgba(0,0,0,.2); }
  .dhero__nav { padding: 1.2rem var(--pad-x) 0; }
  .dhero__nav .slider-dots { top: 1.2rem; height: 3.6rem; }
  .dhero__arrow { width: 5.6rem; height: 3.6rem; }

  .dmain { padding: 3.2rem var(--pad-x) 0; }
  .dmain__vname-wrap { display: none; }
  .dmain__intro { width: auto; }
  .dmain__desc { font-size: 1.5rem; line-height: 1.9; }
  .dmain__data { margin-top: 2rem; }
  .dmain__row dt { width: 7.2rem; font-size: 1.3rem; }
  .dmain__row dd { font-size: 1.3rem; }
  .dmain__side { position: relative; right: auto; top: auto; width: 100%; max-width: 36rem; margin: 3.2rem auto 0; }
  .dbtn { font-size: 1.5rem; }
  .dbtn--reserve { height: 5.6rem; }
  .dbtn--tabelog, .dbtn--map { height: 5.6rem; }
  .dbtn--tabelog img { height: 2rem; }
  .dbtn--tel { height: 5.6rem; }
  .dbtn__icon { left: 1.6rem; width: 2.4rem; height: 2.4rem; }
  .dmain__insta { width: 2.8rem; margin-top: 2.4rem; }

  .dsec { width: auto; margin-top: 4.8rem; }
  .dsec + .dsec { margin-top: 4.8rem; }
  .dsec__ttl { gap: .6rem; font-size: 2.2rem; }
  .dsec__icon { width: 2.6rem; height: 2.6rem; }
  .dcards { grid-template-columns: 1fr; gap: 2.4rem; margin-top: 2rem; }
  .dsec--menu .dcards { grid-template-columns: repeat(2, 1fr); gap: 2.4rem 1.2rem; }
  .dcard__ttl { margin-top: 1.4rem; font-size: 1.6rem; line-height: 1.5; }
  .dcard__txt { margin-top: .8rem; font-size: 1.3rem; line-height: 1.6; }
  .dcards--staff { grid-template-columns: repeat(2, 1fr); gap: 2.4rem 1.2rem; } /* メニューと同じ 2 列 */
  .dcard__tag { right: 1.2rem; top: 1.2rem; padding: .6rem 1.2rem; font-size: 1.2rem; }
  .dcard__quote { margin-top: 1.6rem; font-size: 1.6rem; }
  .dcard__name { font-size: 1.8rem; }
  .dcard__name::after { height: 1.8rem; margin: 0 1.6rem; }
  .dcard__shop { font-size: 1.5rem; }

  .obrands { margin-top: 6.4rem; padding: 0 var(--pad-x) 8rem; overflow: visible; } /* 下は波までの余白 */
  .obrands__bg { display: none; }
  .obrands__head { gap: 1.6rem; }
  .obrands__en { font-size: 3.2rem; }
  .obrands__ja { font-size: 1.4rem; }
  .obrands .shop-list { margin-top: 2.4rem; }
  .obrands .shop-list__track { gap: 3.2rem 1.6rem; }
  .obrands .shop-card__info { margin-top: 1.6rem; }
}

/* =====================================================
   TB のみ（768〜1199px）
   ===================================================== */
@media (min-width: 768px) and (max-width: 1199px) {
  .dhead__logo { width: 22rem; height: 18rem; margin-top: 3.2rem; }
  .dhead__en { font-size: 3.2rem; }
  .dhead__list { font-size: 1.3rem; }
  .dhead__name { margin-top: 2.4rem; font-size: 4.4rem; }
  .dhead__sub { font-size: 1.4rem; }

  .dhero { margin-top: 2rem; }
  .dhero__track { gap: 1.6rem; padding: 0 calc(50% - 23rem); }
  .dhero__photo { width: 46rem; }

  .dmain { display: grid; grid-template-columns: 1fr 26rem; grid-template-areas: "intro side" "sec sec"; column-gap: 3.2rem; padding-top: 4.8rem; }
  .dmain__intro { grid-area: intro; }
  .dmain__desc { font-size: 1.9rem; line-height: 1.9; }
  .dmain__data { margin-top: 3.2rem; }
  .dmain__row dt { width: 9rem; font-size: 1.5rem; }
  .dmain__row dd { font-size: 1.5rem; }
  .dmain__side { grid-area: side; width: 100%; max-width: none; margin: 0; }
  .dbtn { font-size: 1.6rem; }
  .dsec { grid-column: 1 / -1; margin-top: 8rem; }
  .dsec + .dsec { margin-top: 8rem; }
  .dsec__ttl { font-size: 2.8rem; }
  .dsec__icon { width: 3.2rem; height: 3.2rem; }
  .dcards { grid-template-columns: repeat(3, 1fr); gap: 2.4rem; margin-top: 3.2rem; }
  .dsec--menu .dcards { grid-template-columns: repeat(3, 1fr); gap: 3.2rem 2.4rem; }
  .dcard__ttl { font-size: 1.8rem; }
  .dcard__txt { font-size: 1.35rem; }
  .dcard--staff { max-width: none; }
  .dcards--staff { grid-template-columns: repeat(2, 1fr); }
  .dcard__quote { font-size: 1.8rem; }

  .obrands { margin-top: 10rem; padding-bottom: 0; } /* TB はもともと波まで十分空いている */
  .obrands__en { font-size: 4rem; }
  .obrands__ja { font-size: 1.7rem; }
  .obrands .shop-list { margin-top: 3.2rem; }
}

/* TB/SP: オレンジの帯を写真スライダーの半分の高さまで伸ばす
   --hero-reach = スライダーの上マージン + 写真の高さ（幅 × 2/3）の半分。帯・筆ストロークは見出しの実際の高さ（100%）から伸ばす */
@media (max-width: 1199px) {
  .page-head--tall { --hero-reach: calc(1.6rem + 30rem / 3); }
  .page-head--tall::before { height: calc(100% + var(--hero-reach)); }
  .page-head--tall .page-head__brush { top: calc(100% + var(--hero-reach) - 20vw); }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .page-head--tall { --hero-reach: calc(2rem + 46rem / 3); }
  .page-head--tall .page-head__brush { top: calc(100% + var(--hero-reach) - 14vw); }
}
/* TB/SP: スタッフ紹介の氏名と店名は 2 行に分ける（本名だと横並びでは幅が足りない） */
@media (max-width: 1199px) {
  .dcard--staff .dcard__who { flex-wrap: wrap; }
  .dcard--staff .dcard__name { white-space: nowrap; }
  .dcard--staff .dcard__name::after { display: none; }
  .dcard--staff .dcard__shop { flex-basis: 100%; }
}
/* SP: スライダーの矢印は出さず、インジケーターだけ */
@media (max-width: 767px) {
  .dhero__arrow { display: none; }
  .dhero__nav { height: 4.8rem; }
  /* 住所などは項目名の下に内容を置く（縦並び。店舗一覧と同じ） */
  .dmain__row { flex-direction: column; gap: .2rem; }
  .dmain__row dt { width: auto; font-weight: 600; }
  .dmain__row + .dmain__row { margin-top: 1.2rem; }
  /* ボタンは横 2 列（予約・食べログ / マップ・電話）。3 つの店舗は先頭を 1 行ぶち抜き */
  .dmain__side { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; max-width: none; }
  .dmain__side:not(:has(.dbtn--reserve)) .dbtn--tabelog, .dmain__side:not(:has(.dbtn--tabelog)) .dbtn--reserve { grid-column: 1 / -1; } /* 予約か食べログの片方しかない店舗 */
  .dmain__insta { grid-column: 1 / -1; justify-self: center; margin-top: 2.4rem; }
  /* PANDA: 横長で小さく見えるので少し大きく、見た目の中心に合わせて少し左へ（.reveal が枠の transform を使うので img を動かす） */
  .dhead__logo--panda { width: 21rem; }
  .dhead__logo--panda img { transform: translateX(-1.2rem); }
  .dhead__logo--darubish { width: 20rem; } /* だるびっしゅも横長なので少し大きく */
  .dhead__logo--suisan { width: 22rem; } /* ちから水産はさらに横長で低く見えるので大きく */
  /* スタッフ紹介（2 列）: 半分の幅に収まる文字サイズ */
  .dcard--staff .dcard__tag { right: .8rem; top: .8rem; padding: .5rem .8rem; font-size: 1.1rem; }
  .dcard--staff .dcard__quote { margin-top: 1.2rem; font-size: 1.4rem; }
  .dcard--staff .dcard__quote br { display: none; }
  .dcard--staff .dcard__who { margin-top: .6rem; }
  .dcard--staff .dcard__name { font-size: 1.5rem; }
  .dcard--staff .dcard__shop { font-size: 1.2rem; }
  .dbtn { gap: .6rem; height: 4.4rem; font-size: 1.4rem; } /* 店舗一覧のボタンと同じ高さ・文字サイズ */
  .dbtn--tabelog img { height: 1.8rem; }
  .dbtn__icon { position: static; width: 2rem; height: 2rem; transform: none; }
}
@media (min-width: 768px) and (max-width: 1199px) { .dcards--staff { grid-template-columns: repeat(3, 1fr); } } /* TB: スタッフ紹介は 3 カラム（こだわり・メニューとそろえる） */
/* TB: 住所・営業時間などは項目名の下に内容を置く（縦並び） */
@media (min-width: 768px) and (max-width: 1199px) {
  .dmain__row { flex-direction: column; gap: .2rem; }
  .dmain__row dt { width: auto; font-weight: 600; }
  .dmain__row + .dmain__row { margin-top: 1.4rem; }
}
@media (min-width: 768px) and (max-width: 1199px) { .dmain { grid-template-columns: 1fr 22rem; } } /* TB: 右のボタン列を少し細く（26rem → 22rem） */
