/* ==========================================================
   東京ゆかた株式会社 — 共通スタイル
   Figma「東京ゆかた 改修（デザイン修正依頼）」top-PC 準拠
   ========================================================== */

:root {
  --navy: #002a4e;
  --cream: #fbf8f3;
  --beige: #eae5dd;
  --dark: #0b0f16;
  --text: #1a1a1a;
  --font-mincho: 'Shippori Mincho', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

html { background: #f4f1ea; }

body {
  font-family: var(--font-mincho);
  color: var(--text);
  background: #fff;
  line-height: 2;
  -webkit-font-smoothing: antialiased;
  /* デスクトップはFigmaデザインと同じ1400px幅で中央寄せ */
  max-width: 1400px;
  margin: 0 auto;
  box-shadow: 0 0 24px rgba(0, 0, 0, .05);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.pc-only { display: inline; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 159px;
  height: 44px;
  padding: 0 20px;
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  transition: opacity .25s;
}
.btn:hover { opacity: .75; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border: 1px solid var(--navy); }
.btn-light { background: #f5f2ec; color: var(--dark); }
.btn-outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }
.btn .arrow, .btn .ext { font-size: 14px; }

.btn-small {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-size: 12px;
  transition: background .25s, color .25s;
}
.btn-small:hover { background: var(--navy); color: #fff; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid #eee;
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { line-height: 1.4; }
.logo-ja { display: block; font-size: 17px; font-weight: 700; letter-spacing: .06em; }
.logo-en { display: block; font-size: 9px; letter-spacing: .22em; color: #777; }

.global-nav { display: flex; align-items: center; gap: 28px; }
.global-nav ul { display: flex; gap: 28px; }
.global-nav ul a {
  font-size: 14px;
  letter-spacing: .08em;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.global-nav ul a:hover { border-color: var(--navy); }
.header-buttons { display: flex; gap: 10px; padding-left: 20px; border-left: 1px solid #ddd; }

.menu-toggle { display: none; }

/* ---------- ヒーロー ---------- */
.hero {
  display: flex;
  min-height: 533px;
}
.hero-left {
  position: relative;
  width: 48.5%;
  background: #fff;
  display: flex;
  align-items: center;
}
.hero-texture {
  position: absolute;
  inset: 0;
  background: url('../images/hero-texture.png') center / cover no-repeat;
  opacity: .6;
}
.hero-content {
  position: relative;
  padding: 70px 40px 70px 12.5%;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(40px, 4.6vw, 64px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: .05em;
  margin-bottom: 28px;
}
.hero-lead { font-size: 14px; margin-bottom: 40px; }
.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; }
.hero-right { width: 51.5%; overflow: hidden; }
.hero-image { width: 100%; height: 100%; object-fit: cover; }

/* ---------- セクション共通 ---------- */
.section {
  max-width: 1076px;
  margin: 0 auto;
  padding: 90px 40px;
}
.waso { background: transparent; }
body { background: #fff; }
.waso, .food, .about { background: transparent; }

/* 和装事業〜カテゴリはクリーム背景 */
.waso { background: var(--cream); max-width: none; }
.waso > * { max-width: 1076px; margin-left: auto; margin-right: auto; }

.section-heading { text-align: center; margin-bottom: 36px; }
.section-eyebrow {
  font-size: 11px;
  letter-spacing: .3em;
  color: #8a8a8a;
  text-transform: uppercase;
}
.section-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .1em;
  margin-top: 2px;
}
.heading-line {
  display: block;
  width: 34px;
  height: 1px;
  background: #b9b2a6;
  margin: 14px auto 0;
}
.section-lead { text-align: center; font-size: 14px; margin-bottom: 56px; }

.section-more { text-align: center; margin-top: 48px; }
.section-more.left { text-align: left; margin-top: 32px; }
.section-more a {
  font-size: 14px;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 3px;
}
.section-more a:hover { opacity: .7; }

.section-divider {
  border: none;
  border-top: 1px solid #e5e0d8;
  margin: 0 auto;
  max-width: 1210px;
}

/* ---------- お祭天国パネル ---------- */
.omatsuri-panel {
  display: flex;
  position: relative;
  background: var(--beige);
  margin-bottom: 90px;
  overflow: hidden;
}
/* 和柄（麻の葉・青海波）をパネル全体にうっすら敷く */
.omatsuri-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    url('../images/omatsuri-pattern.png') right bottom / 62% no-repeat,
    url('../images/omatsuri-bg.png') right -40px top -30px / 58% no-repeat;
  opacity: .45;
  pointer-events: none;
}
/* 4人のモデルが重なり合うコラージュ（PC）
   各 .omatsuri-fig は Figma の切り抜き枠、内側の img は Figma のズーム・位置指定を%で忠実に再現 */
.omatsuri-images {
  position: relative;
  width: 64.5%;
  min-height: 316px;
  z-index: 1;
}
.omatsuri-fig {
  position: absolute;
  top: 0;
  height: 100%;
  overflow: hidden;
}
.omatsuri-fig img {
  position: absolute;
  max-width: none;
}
.omatsuri-fig1 { left: 0;     width: 30.8%; z-index: 3; }
.omatsuri-fig1 img { width: 174.14%; height: 197.84%; left: -62.45%; top: -44.17%; }
.omatsuri-fig2 { left: 20.3%; width: 35.2%; z-index: 1; }
.omatsuri-fig2 img { width: 118.15%; height: 193.74%; left: 0.1%; top: -35.25%; }
.omatsuri-fig3 { left: 44%;   width: 37.3%; z-index: 4; }
.omatsuri-fig3 img { width: 76.38%; height: 220.41%; left: 12.1%; top: -45%; }
.omatsuri-fig4 { left: 65%;   width: 35%;   z-index: 2; }
.omatsuri-fig4 img { width: 98.18%; height: 207.3%; left: -7.28%; top: -31.13%; }
.omatsuri-text {
  width: 35.5%;
  padding: 36px 40px 36px 0;
  position: relative;
  z-index: 1;
}
.omatsuri-eyebrow { font-size: 11px; letter-spacing: .05em; }
.omatsuri-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .09em;
  margin: 2px 0 10px;
}
.omatsuri-desc { font-size: 13px; margin-bottom: 24px; }
.omatsuri-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 商品カテゴリー ---------- */
.category-block { padding-top: 10px; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  max-width: 810px;
  margin: 0 auto 56px;
}
.category-item { text-align: center; }
.category-thumb {
  width: 158px;
  height: 158px;
  margin: 0 auto;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-thumb-double { gap: 4px; padding: 8px; background: #fff; }
.category-thumb-double img { width: 48%; height: 100%; object-fit: contain; }
.category-name {
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
  letter-spacing: .05em;
}
.category-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* カルーセル関連（PCでは非表示） */
.category-carousel-wrap { position: relative; }
.category-arrow, .category-dots { display: none; }

/* ---------- 法人向けボックス ---------- */
.corporate-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
  border: 1px solid #e2ddd4;
  padding: 28px 36px;
  margin-top: 80px;
}
.corporate-eyebrow { font-size: 10px; letter-spacing: .3em; color: #8a8a8a; }
.corporate-title { font-size: 16px; font-weight: 700; letter-spacing: .06em; }
.corporate-desc { font-size: 13px; color: #444; }

/* ---------- 飲食事業 ---------- */
.food-inner {
  display: flex;
  gap: 56px;
  align-items: flex-start;
}
.food-image { width: 44%; flex-shrink: 0; }
.food-image img { width: 100%; height: auto; }
.food-text { flex: 1; }
.food-title {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .08em;
  margin: 6px 0 18px;
}
.food-desc { font-size: 13px; margin-bottom: 28px; }

.shop-list { border-top: 1px solid #ddd6ca; }
.shop-list li { border-bottom: 1px solid #ddd6ca; }
.shop-list a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 4px;
  transition: opacity .25s;
}
.shop-list a:hover { opacity: .65; }
.shop-name { font-size: 16px; font-weight: 600; color: var(--navy); }
.shop-place { font-size: 12px; color: #777; }
.shop-list .ext { margin-left: auto; color: #999; font-size: 13px; }

/* ---------- 会社について ---------- */
.about-inner {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}
.about-text { flex: 1; font-size: 14px; }
.about-text p { margin-bottom: 24px; }
.company-table { width: 46%; flex-shrink: 0; }
.company-row {
  display: flex;
  border-bottom: 1px solid #ddd6ca;
  padding: 14px 4px;
  font-size: 13px;
}
.company-row:first-child { border-top: 1px solid #ddd6ca; }
.company-row dt { width: 96px; color: #8a8474; flex-shrink: 0; }

/* ---------- お問い合わせCTA ---------- */
.contact-cta {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 72px 24px;
}
.cta-eyebrow { font-size: 11px; letter-spacing: .3em; color: #8b95a5; }
.cta-title { font-size: 26px; font-weight: 500; letter-spacing: .12em; margin: 8px 0 10px; }
.cta-desc { font-size: 13px; color: #cfd4dc; margin-bottom: 36px; }
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- フッター ---------- */
.site-footer { background: var(--cream); }
.footer-inner {
  max-width: 1210px;
  margin: 0 auto;
  padding: 64px 40px 48px;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-company address { font-style: normal; font-size: 13px; margin-top: 20px; }
.footer-company a:hover { text-decoration: underline; }
.footer-note { font-size: 12px; color: #777; margin-top: 18px; }

.footer-nav { display: flex; gap: 96px; }
.footer-col-title { font-size: 12px; letter-spacing: .25em; color: #8a8474; margin-bottom: 14px; }
.footer-col li { margin-bottom: 10px; font-size: 13px; }
.footer-col a:hover { text-decoration: underline; }
.footer-col .ext { font-size: 11px; color: #999; margin-left: 4px; }

.footer-bottom {
  border-top: 1px solid #e2ddd4;
  text-align: center;
  padding: 20px 16px;
  font-size: 11px;
  color: #666;
}
.footer-bottom a { text-decoration: underline; }

/* ==========================================================
   レスポンシブ（スマホ）
   ========================================================== */
@media (max-width: 900px) {
  .pc-only { display: none; }

  /* ヘッダー：ハンバーガーメニュー */
  .header-inner { padding: 10px 20px; }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
  }
  .menu-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--navy);
    margin: 0 auto;
    transition: transform .3s, opacity .3s;
  }
  .menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .global-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
  }
  .global-nav.open { display: flex; }
  .global-nav ul { flex-direction: column; gap: 0; }
  .global-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid #f0ede7; }
  .header-buttons { border-left: none; padding: 16px 0 0; }

  /* ヒーロー：写真が上、テキストが下。写真の下端はグラデーションで背景に溶け込む */
  .hero { flex-direction: column-reverse; }
  .hero-left, .hero-right { width: 100%; }
  .hero-left { background: #efebe7; }
  .hero-content { padding: 8px 24px 56px; }
  .hero-right {
    position: relative;
    height: 320px;
  }
  .hero-right::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 55%;
    background: linear-gradient(to bottom, rgba(239, 235, 231, 0), #efebe7);
    pointer-events: none;
  }

  /* セクション */
  .section { padding: 64px 24px; }

  /* お祭天国：3人のモデルが左に重なり、右にテキスト（Figma SP版準拠） */
  .omatsuri-panel {
    display: block;
    position: relative;
    min-height: 509px;
    margin-bottom: 64px;
    padding: 36px 20px 40px;
  }
  .omatsuri-images {
    position: static;
    width: auto;
    min-height: 0;
    z-index: auto;
  }
  /* Figma SP版：3人の切り抜き枠を絶対配置（パネル基準）、枠内ズームもFigma値 */
  .omatsuri-fig { height: auto; }
  .omatsuri-fig1 { left: 0;   top: 0;     width: 42.7%; aspect-ratio: 160 / 365; z-index: 1; }
  .omatsuri-fig1 img { width: 144.06%; height: 108.2%; left: -51.66%; top: -6.36%; }
  .omatsuri-fig3 { left: 17%; top: 84px;  width: 38.7%; aspect-ratio: 145 / 408; z-index: 2; }
  .omatsuri-fig3 img { width: 76.38%; height: 102.58%; left: 12.1%; top: -2.53%; }
  .omatsuri-fig2 { left: 0;   top: 254px; width: 51.2%; aspect-ratio: 192 / 255; z-index: 3; }
  .omatsuri-fig2 img { width: 86.89%; height: 141.33%; left: 4.09%; top: 0.07%; }
  .omatsuri-fig4 { display: none; }
  .omatsuri-text {
    width: 45%;
    margin-left: 55%;
    padding: 0;
  }
  .omatsuri-buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-top: 8px;
  }

  /* カテゴリー：1枚ずつの横スワイプカルーセル */
  .category-carousel-wrap { padding: 0 8px; }
  .category-grid {
    display: flex;
    grid-template-columns: none;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    margin: 0;
    /* スクロールバーを隠す */
    scrollbar-width: none;
  }
  .category-grid::-webkit-scrollbar { display: none; }
  .category-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
  }
  .category-thumb {
    width: 100%;
    max-width: 260px;
    height: auto;
    aspect-ratio: 1;
  }
  .category-name { font-size: 15px; margin-top: 16px; }

  .category-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 40%;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #333;
    cursor: pointer;
    z-index: 2;
  }
  .category-arrow-prev { left: -4px; }
  .category-arrow-next { right: -4px; }

  .category-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0 40px;
  }
  .category-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d8d2c6;
  }
  .category-dots .dot.active { background: var(--navy); }

  /* 法人 */
  .corporate-box { flex-direction: column; align-items: flex-start; margin-top: 56px; }

  /* 飲食・会社 */
  .food-inner, .about-inner { flex-direction: column; gap: 32px; }
  .food-image, .company-table { width: 100%; }

  /* フッター */
  .footer-inner { flex-direction: column; padding: 48px 24px 32px; }
  .footer-nav { gap: 48px; flex-wrap: wrap; }
}
