/* ==========================================================================
   点心 丹波篠山 BASE テーマ — XDカンプ準拠
   モバイルファースト / PCは min-width: 1025px で拡張
   ========================================================================== */

:root {
  /* Color */
  --c-wine-pink: #B01951;        /* のれん・CTA・店舗情報背景。XDから確定HEX取得後差し替え */
  --c-gold: #C9A86A;             /* サブタイトル・アクセント */
  --c-text-dark: #2B1F1F;        /* 本文黒 */
  --c-text-white: #FFFFFF;       /* 白文字 */
  --c-footer-bg: #E5E5E5;        /* フッター背景グレー */
  --c-story-block: #E6E6E6;      /* storyセクション：メッセージ下地ブロック */
  --c-story-bottom: #2B2219;     /* storyセクション：一番下のレイヤー */

  /* Layout */
  --max-w: 1280px;
  --bp-pc: 1025px;

  /* Typography */
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* -------- リセット -------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--c-text-dark);
  background: var(--c-text-white);
  -webkit-font-smoothing: antialiased;
}

/* img 基底：alt表示を絶対値で統一。固有サイズ画像はクラス詳細度で上書き */
img {
  font-size: 20pt;
  color: rgba(255, 255, 255, 0.6);
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}
svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; padding: 0; }
h1, h2, h3, p, dl, dd, dt, figure { margin: 0; padding: 0; }
small { font-size: 0.8em; }
:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; }

/* ==========================================================================
   1. ヘッダー（のれん）
   高さ固定・自然幅の1枚絵。1920pxより広いブラウザでも中央意匠が見える設計。
   ブラウザ幅が狭いと左右端が画面外にはみ出る想定（のれんは背景的存在）
   ========================================================================== */
.noren {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 300px;
  background-image: url('./assets/noren-sp.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: auto 300px;
  overflow: hidden;
  pointer-events: none;
}
.noren__top,
.noren__center {
  pointer-events: auto;
}
.noren__top {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}
.noren__logo-nav img {
  width: auto;
  height: 32px;
}
.noren__icons {
  display: inline-flex;
  gap: 16px;
  align-items: center;
}
.noren__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}
.noren__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.noren__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.noren__logo-main {
  width: auto;
  height: 120px;
}
@media (min-width: 1025px) {
  .noren {
    height: 590px;
    background-image: url('./assets/noren.png');
    background-size: auto 590px;
  }
  .noren__top {
    top: 32px;
    left: 48px;
    right: 48px;
  }
  .noren__logo-nav img { height: 44px; }
  .noren__icon { width: 32px; height: 32px; }
  .noren__logo-main { height: 200px; }
}

/* ==========================================================================
   2. HERO
   画像は縦長(2880x3200)なので高さを明示 + object-fit: cover で切り抜く
   バナーは絶対配置で右下に常時固定
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 360px;
  max-height: 640px;
  overflow: hidden;
  background: var(--c-text-dark);
}
.hero__picture {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  /* パララックスで上方向に動かした際、HERO下端に下地が露出しないよう下方向に余裕を確保 */
  height: 150%;
}
.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  will-change: transform;
}
.hero__banner {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 200px;
  height: auto;
  z-index: 2;
}
@media (min-width: 1025px) {
  .hero {
    height: 100vh;
    max-height: 1200px;
  }
  .hero__banner {
    right: 20px;
    bottom: 20px;
    width: 320px;
  }
}

/* ==========================================================================
   3. コピー + コラージュ
   ========================================================================== */
/* 一番下のレイヤー（焦茶）、その上にメッセージ下地ブロック（明るいグレー）、
   さらにその上にコラージュ3枚（2レイヤーをまたぐ絶対配置）の3層構造 */
.story {
  background: var(--c-story-bottom);
  padding: 40px 0 80px;
}
.story__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.story__copy {
  background: var(--c-story-block);
  padding: 40px 24px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}
.story__text {
  font-size: 15px;
  line-height: 2.2;
  letter-spacing: 0.04em;
  color: var(--c-text-dark);
}
.story__collage {
  position: relative;
  height: 820px;
}
.story__img {
  position: absolute;
  margin: 0;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
}
.story__img img {
  width: 100%;
  height: auto;
  display: block;
}
/* SP：縦1カラム、左右に振って重なり感を出す */
.story__img--2 { top: 0;   left: 0;    width: 80%; z-index: 2; }
.story__img--1 { top: 25%; right: 0;   width: 80%; z-index: 3; }
.story__img--3 { top: 58%; left: 5%;   width: 60%; z-index: 4; }

@media (min-width: 1025px) {
  .story {
    padding: 0;
  }
  .story__inner {
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    grid-template-rows: auto;
    gap: 0;
    min-height: 900px;
    position: relative;
  }
  .story__copy {
    grid-column: 1;
    grid-row: 1;
    padding: 120px 80px;
    margin: 0;
    align-self: start;
    z-index: 1;
  }
  .story__text {
    font-size: 17px;
    line-height: 2.4;
    max-width: 600px;
  }
  /* コラージュ領域は grid 全幅を占有し、グレーブロックの右半分と焦茶レイヤーを自由にまたぐ */
  .story__collage {
    grid-column: 1 / -1;
    grid-row: 1;
    height: 100%;
    min-height: 900px;
    z-index: 2;
    pointer-events: none;
  }
  .story__img { pointer-events: auto; }
  /* 座標は全幅基準 */
  .story__img--1 { top: 14%;  left: 46%;             width: 35%; z-index: 4; }
  .story__img--2 { top: 48%;  left: 10%;  right: 0;  width: 32%; z-index: 3; }
  .story__img--3 { top: 66%;  left: 46%;             width: 22%; z-index: 5; }
}

/* ==========================================================================
   4. 2カラムCTA
   ========================================================================== */
.cta {
  background: var(--c-wine-pink);
  padding: 60px 20px;
}
.cta__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.cta-card {
  position: relative;
  text-align: center;
  padding: 60px 40px;
  background-color: rgba(0, 0, 0, 0.05);
  border: 0;
}

/* 中華装飾：4角に角飾りSVGを配置。左上を基準に残り3つは transform で反転 */
.corner {
  position: absolute;
  width: 56px;
  height: 56px;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}
.corner--tl { top: 0;    left: 0; }
.corner--tr { top: 0;    right: 0;  transform: scaleX(-1); }
.corner--bl { bottom: 0; left: 0;   transform: scaleY(-1); }
.corner--br { bottom: 0; right: 0;  transform: scale(-1, -1); }

.cta-card--shop .corner { background-image: url('./assets/shop-frame.svg'); }
.cta-card--home .corner { background-image: url('./assets/home-frame.svg'); }

@media (min-width: 1025px) {
  .corner { width: 72px; height: 72px; }
}
.cta-card__lead {
  font-size: 13px;
  color: var(--c-text-white);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.cta-card__heading {
  font-size: 24px;
  font-weight: 700;
  color: var(--c-text-white);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  font-family: var(--font-sans);
}
.cta-card__image {
  display: block;
  margin: 0 auto 28px;
  max-width: 100%;
}
.cta-card__image img {
  width: 100%;
  height: auto;
  display: block;
}
.cta-card__button {
  display: inline-block;
  padding: 0.9em 2.6em;
  background: var(--c-text-white);
  color: var(--c-wine-pink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-card__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
@media (min-width: 1025px) {
  .cta { padding: 100px 48px; }
  .cta__inner {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .cta-card { padding: 60px 48px; }
  .cta-card__heading { font-size: 32px; margin-bottom: 32px; }
  .cta-card__image { margin-bottom: 36px; }
}

/* ==========================================================================
   5. 店舗情報
   ========================================================================== */
.shop-info {
  background: var(--c-wine-pink);
  color: var(--c-text-white);
  padding: 60px 20px 80px;
  /* CTAとの境目を視覚的に分けるためのヘアライン */
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.shop-info__header {
  text-align: center;
  margin-bottom: 48px;
}
.shop-info__heading {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-text-white);
}
.shop-info__sub {
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--c-gold);
  margin-top: 8px;
}
.shop-info__body {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.shop-info__table {
  font-size: 14px;
}
.shop-info__row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  align-items: start;
}
.shop-info__row dt {
  font-weight: 700;
  letter-spacing: 0.08em;
}
.shop-info__row dd a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.shop-info__row dd small {
  display: inline-block;
  margin-top: 4px;
  opacity: 0.85;
}
.shop-info__map {
  width: 100%;
}
.shop-info__map iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 4px;
}
@media (min-width: 1025px) {
  .shop-info__map iframe { height: 450px; }
}
@media (min-width: 1025px) {
  .shop-info { padding: 100px 48px 120px; }
  .shop-info__heading { font-size: 36px; }
  .shop-info__body {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
  }
  .shop-info__row {
    grid-template-columns: 120px 1fr;
    padding: 20px 0;
  }
}

/* ==========================================================================
   6. フッター
   ========================================================================== */
.site-footer {
  background: var(--c-footer-bg);
  color: var(--c-text-dark);
  padding: 60px 20px 32px;
  text-align: center;
}
.site-footer__brand { margin-bottom: 24px; }
.site-footer__logo {
  width: auto;
  height: 80px;
  margin: 0 auto;
}
.site-footer__ins {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  color: var(--c-text-dark);
}
.site-footer__ins-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.site-footer__copy {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--c-text-dark);
  margin-bottom: 0;
  opacity: 0.7;
}
.site-footer__legal {
  margin-bottom: 24px;
}
.site-footer__legal ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.site-footer__legal a {
  color: var(--c-text-dark);
  opacity: 0.7;
  border-bottom: 1px solid rgba(43, 31, 31, 0.3);
  padding-bottom: 1px;
  transition: opacity 0.2s;
}
.site-footer__legal a:hover { opacity: 1; }
@media (min-width: 1025px) {
  .site-footer { padding: 80px 48px 40px; }
  .site-footer__logo { height: 100px; }
}

/* ==========================================================================
   reduced-motion 配慮
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .parallax-target { transform: none !important; }
}
