html { scroll-behavior: smooth; }

:root{
  --bg:#ffffff;--ink:#111;--ink-2:#444;--muted:#8b8b8b;--shade:#f5f5f5;--wrap:1160px;--pad:clamp(16px,2vw,24px);
  --radius:16px;--radius-sm:10px;--e:cubic-bezier(.2,.9,.2,1);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--ink);font-family:"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",system-ui,-apple-system,Segoe UI,Roboto,Arial,Meiryo,sans-serif;line-height:1.75}
img,video{display:block;max-width:100%;height:auto}
a{color:inherit}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 var(--pad)}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Header */
header{position:fixed;top:0;left:0;right:0;z-index:50;backdrop-filter:saturate(140%) blur(10px);border-bottom:1px solid rgba(255,255,255,.2)}
header .bar{height:58px;display:flex;align-items:center;gap:16px;padding:0 var(--pad)}
header .bar{color:#fff}
header.is-solid{background:rgba(255,255,255,.9);border-bottom-color:#eaeaea}
header.is-solid .bar{color:#111}
.brand{font-weight:700;letter-spacing:.08em}
.brand small{font-weight:400;color:currentColor;opacity:.7;margin-left:.25em}

/* ===== Fullscreen HERO ===== */
.hero{position:relative;width:100%;min-height:100vh;overflow:hidden}
.hero video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,rgba(0,0,0,.45),rgba(0,0,0,.2) 40%,rgba(0,0,0,.45));}
.hero-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#fff;padding:calc(58px + 4vh) var(--pad) 6vh;z-index:2}
.hero-logo{width:min(56vw,300px);height:auto;margin:0 auto 18px;filter:drop-shadow(0 6px 24px rgba(0,0,0,.35))}
.hero-kicker{font-size:12px;letter-spacing:.25em;opacity:.9;text-transform:uppercase}
.hero-title{font-size:clamp(32px,6.2vw,64px);line-height:1.15;margin:.35em 0 .2em;text-shadow:0 6px 24px rgba(0,0,0,.35)}
.hero-sub{opacity:.9}
.hero-scroll{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);color:#fff;font-size:12px;letter-spacing:.2em;opacity:.8}

/* Day Tabs */
.daytabs{position:sticky;top:58px;z-index:30;background:#fff;border-bottom:1px solid #eee}
.daytabs .wrap{position:relative;overflow:hidden}
.daytabs .tabs-track{display:flex;gap:10px;will-change:transform}
.daytabs .tabs-track{
  touch-action: pan-y pinch-zoom;   /* 縦スクロールは生かして横はドラッグ */
  cursor: grab;
  user-select: none; -webkit-user-select: none;
}
.daytabs .tabs-track.is-dragging{ cursor: grabbing; }
.daytab{flex:0 0 auto;border:1px solid #ddd;border-radius:999px;padding:0;display:flex;align-items:center;justify-content:center;background:#fff;transition:.2s;width:140px;height:56px}
.daytab:hover{background:#111;border-color:#111}
.daytab.is-active{background:#000;border-color:#000}
.daytab .logo{height:38px;width:auto;display:block}
.daytab .logo-white{display:none}
.daytab:hover .logo-black{display:none}
.daytab:hover .logo-white{display:block}
.daytab.is-active .logo-black{display:none}
.daytab.is-active .logo-white{display:block}

/* Sections */
section{padding:60px 0;border-bottom:1px solid #eee}
.sec-head{display:grid;gap:8px;margin-bottom:22px}
.sec-kicker{font-size:12px;letter-spacing:.25em;color:var(--muted)}
.sec-title{font-size:clamp(22px,3vw,32px);line-height:1.35}
.lead{color:var(--ink-2)}

/* gallery */
.gallery{display:grid;gap:12px;grid-template-columns:repeat(12,1fr)}
.ph{background:#ddd;aspect-ratio:3/4;border-radius:12px;position:relative;overflow:hidden}
.ph::after{content:"";position:absolute;inset:0;opacity:0;transition:.3s var(--e);box-shadow:inset 0 0 0 2px rgba(0,0,0,.05)}
.ph:hover::after{opacity:1}
.gallery .wide{grid-column:span 12}
.gallery .half{grid-column:span 6}
.gallery .third{grid-column:span 4}
.gallery img{width:100%;height:100%;object-fit:cover}

/* Carousel */
.carousel{position:relative;border-radius:var(--radius);overflow:hidden;background:#eee}
.carousel-track{display:flex;touch-action:pan-y pinch-zoom;transition:transform .45s var(--e)}
.carousel-slide{min-width:100%;aspect-ratio:4/5;display:grid;place-items:center}
.car-nav{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;padding:0 6px;pointer-events:none}
.car-btn{pointer-events:auto;border:none;background:rgba(0,0,0,.55);color:#fff;border-radius:999px;width:38px;height:38px;display:grid;place-items:center;cursor:pointer}
.car-dots{position:absolute;left:0;right:0;bottom:8px;display:flex;gap:6px;justify-content:center}
.car-dot{width:8px;height:8px;border-radius:999px;background:#bbb;opacity:.6}
.car-dot.is-active{opacity:1;background:#111}

/* TODAY */
.today{display:grid;gap:28px;margin-top:28px}
.today h3{font-size:18px;letter-spacing:.1em}
.look-grid{display:block;gap:24px;grid-template-columns:repeat(12,1fr)}
.look{grid-column:span 6;display:grid;gap:14px}
.look .ph,.look .carousel{border-radius:12px}
.items{display:grid;gap:10px}
.item{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:10px 12px;border:1px solid #eee;border-radius:10px}
.item .name{font-weight:600}
.item .price{color:#666}
.item .cta{font-size:12px;padding:6px 10px;border-radius:999px;border:1px solid #111;text-decoration:none}

/* Selected */
.selected{display:grid;gap:16px;grid-template-columns:repeat(12,1fr);margin-top:20px}
.sel{grid-column:span 6;border:1px solid #eee;border-radius:12px;overflow:hidden;display:grid}
.sel .ph{aspect-ratio:1/1}
.sel .meta{padding:12px}
.sel .meta .name{font-weight:700}

/* CTA */
.cta-area{display:grid;place-items:center;padding:40px;background:var(--shade);border-radius:16px}
.btn{display:inline-block;padding:14px 22px;border-radius:999px;background:#111;color:#fff;text-decoration:none;font-weight:700;letter-spacing:.05em}

/* Lightbox */
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.85);display:none;align-items:center;justify-content:center;z-index:60}
.lightbox.is-open{display:flex}
.lightbox img{max-width:min(92vw,1200px);max-height:88vh;border-radius:12px}
.lightbox .close{position:absolute;top:16px;right:16px;width:40px;height:40px;border-radius:999px;background:#fff;border:none;font-size:20px;cursor:pointer}

/* Floating back-to-top */
.to-top{position:fixed;right:16px;bottom:16px;width:44px;height:44px;border:none;border-radius:999px;background:#111;color:#fff;display:none;z-index:50}
.to-top.is-show{display:block}

/* Anim in */
.reveal{opacity:0;transform:translateY(12px);transition:opacity .6s var(--e),transform .6s var(--e)}
.reveal.is-in{opacity:1;transform:none}

footer{padding:40px 0;color:#777}
footer .credits{font-size:13px;line-height:1.8}

/* ===== Gallery Callout (brand badge) ===== */
.brand-callout{position:absolute;right:12px;bottom:12px;display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.75);backdrop-filter:saturate(140%) blur(8px);-webkit-backdrop-filter:blur(8px);color:#111;border:1px solid rgba(0,0,0,.08);box-shadow:0 10px 30px rgba(0,0,0,.12);max-width:min(78%,560px)}
.brand-callout .logo{width:64px;height:auto;flex:0 0 auto;filter:drop-shadow(0 2px 8px rgba(0,0,0,.08))}
.brand-callout .text{font-size:14px;line-height:1.6;text-align:left}

/* Responsive */
@media (max-width: 960px){
  .look{grid-column:span 12}
  .gallery .half{grid-column:span 12}
  .gallery .third{grid-column:span 6}
  .daytab{width:112px;height:48px}
  .daytab .logo{height:35px}
}
@media (max-width: 640px){
  .gallery{gap:8px}
  .selected{grid-template-columns:1fr}
  .sel{grid-column:1/-1}
  .daytab{width:96px;height:44px}
  .daytab .logo{height:33px}
  .brand-callout{right:8px;bottom:8px;padding:10px 12px;gap:10px;border-radius:12px;max-width:92%}
  .brand-callout .logo{width:52px}
  .brand-callout .text{font-size:12px}
}
/* ===== Selected: Carousel variant ===== */
.selected.selected-carousel{display:block; margin-top:20px; position:relative; overflow:hidden}
.selected.selected-carousel .sel-track{
  display:flex; flex-wrap:nowrap; gap:16px;
  will-change:transform; transition:transform .45s var(--e);
}
.selected.selected-carousel .sel{
  display:grid; grid-template-rows:auto 1fr;
  border:1px solid #eee; border-radius:12px; overflow:hidden;
  text-decoration:none; color:inherit;
  /* PC: 2列 / SP: 1列（gapを考慮して幅計算） */
  flex:0 0 calc((100% - 16px)/2);
}
@media (max-width: 640px){
  .selected.selected-carousel .sel{ flex-basis:100% }
}

/* ちょい浮き上がり（好みで） */
.selected.selected-carousel .sel:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 20px rgba(0,0,0,.06);
  transition:transform .2s var(--e), box-shadow .2s var(--e);
}

/* ナビボタン（任意） */
.selected.selected-carousel .sel-nav{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:space-between;
  padding:0 6px; pointer-events:none;
}
.selected.selected-carousel .sel-btn{
  pointer-events:auto; border:none; cursor:pointer;
  width:38px; height:38px; border-radius:999px;
  background:rgba(0,0,0,.55); color:#fff; display:grid; place-items:center;
}

/* ========== Hover の振る舞い調整 ========== */

/* 1) PC：ホバー反転は「無効化」して、見た目をデフォに戻す */
@media (hover: hover) and (pointer: fine){
  .daytab:hover{
    background:#fff;             /* ← デフォ背景 */
    border-color:#ddd;           /* ← デフォ枠線 */
  }
  .daytab:hover .logo-black{ display:block; }
  .daytab:hover .logo-white{ display:none; }
}

/* 2) スマホ：タップ中（押している瞬間）だけ反転させる。未選択タブのみ */
@media (hover: none) and (pointer: coarse){
  .daytab:active:not(.is-active){
    background:#111;
    border-color:#111;
  }
  .daytab:active:not(.is-active) .logo-black{ display:none; }
  .daytab:active:not(.is-active) .logo-white{ display:block; }
}

/* 3) 選択状態（変移後の強調）は従来どおり残す */
.daytab.is-active{
  background:#000; border-color:#000;
}
.daytab.is-active .logo-black{ display:none; }
.daytab.is-active .logo-white{ display:block; }

/* 追記（styles.css） */
.carousel-track{ position:relative; z-index:1; }
.car-nav{ position:absolute; inset:0; display:flex; align-items:center; justify-content:space-between; padding:0 6px; pointer-events:none; z-index:2; }
.car-btn{ pointer-events:auto; }

/* カルーセルの重なり順を明示して、ボタンを確実にクリック可能に */
.carousel-track{ position:relative; z-index:1; }
.car-nav{ position:absolute; inset:0; display:flex; align-items:center; justify-content:space-between; padding:0 6px; z-index:2; pointer-events:none; }
.car-btn{ pointer-events:auto; } /* 親は none でも子のボタンは受ける */

/* どこでもOK（carouselの近く） */
.carousel-track{ will-change: transform; backface-visibility:hidden; }

/* スワイプの安定化（両トラック共通） */
.carousel-track,
.sel-track{
  touch-action: pan-y;             /* 横スワイプを有効化（縦スクロールは維持） */
  user-select: none;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
  backface-visibility: hidden;
  cursor: grab;
}
.is-dragging .carousel-track,
.is-dragging .sel-track{ cursor: grabbing; }

/* SELECTED スライダーの基本 */
.sel-slider{ overflow:hidden; position:relative; }        /* ラッパー */
.sel-track{ display:flex; gap:12px; transition:transform .45s var(--e); }
.sel{ flex:0 0 calc(50% - 6px); }                         /* PC: 2枚並び */
@media (max-width:960px){
  .sel{ flex:0 0 100%; }                                  /* SP: 1枚 */
}

/* スワイプ安定化（両方のトラックに） */
.carousel-track, .sel-track{
  touch-action: pan-y;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
  backface-visibility: hidden;
  cursor: grab;
}
.is-dragging .carousel-track,
.is-dragging .sel-track{ cursor: grabbing; }

/* iOSの画像ドラッグ抑止（保険） */
.sel-track img, .carousel-track img{ -webkit-user-drag: none; user-drag: none; }

/* トラックのトランジションに opacity を追加 */
.carousel .carousel-track{
  transition: transform .45s var(--e), opacity .45s var(--e);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* スライドしている間だけ ふわっと（薄く） */
.carousel.is-sliding .carousel-track{
  opacity: .97;   /* お好みで .90〜.97 に調整可 */
}

/* 任意：動きを減らす設定のユーザーにはフェード無効化 */
@media (prefers-reduced-motion: reduce){
  .carousel .carousel-track{ transition: transform .01ms linear; }
  .carousel.is-sliding .carousel-track{ opacity: 1; }
}
