/* ===== カスタムフォント ===== */
@font-face {
  font-family: "kazahana";
  src: url("../../shigoto3/kazahana.otf") format("opentype");
  font-display: swap;
  size-adjust: 140%;
}

/* ===== Brand tokens ===== */
:root {
  --brand: #A38F24;
  --ink: #000;
  --muted: #6b7280;
  --line: #ece7df;
  --bg: #fbf8f2;
  --radius: 22px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .08);
  --stage-overlay: .20;
}

/* ===== リセット・ベース ===== */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "kazahana", "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== コンテナ ===== */
.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

.container--editorial {
  width: min(1100px, 94%);
  margin-inline: auto;
  text-align: center;
  background-color: rgba(174, 135, 135, 0.3);
  padding: 56px 40px;
  border-radius: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .container--editorial {
    padding: 40px 24px;
  }
}

@media (max-width: 480px) {
  .container--editorial {
    padding: 32px 16px;
  }
}

/* ===== セクション共通 ===== */
.section {
  padding: 64px 0;
}

.sec-title {
  margin: 0 auto 16px;
  font-size: clamp(22px, 3.1vw, 30px);
  text-align: center;
}

.sec-lead {
  margin: 0 auto 22px;
  color: var(--muted);
  text-align: center;
}

.lead {
  margin: 0 auto 22px;
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--muted);
  max-width: 100%;
  line-height: 2;
  text-align: center;
  padding: 0;
}

/* ===== ピル型ボタン ===== */
.pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffffcc;
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brandmark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--brand);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  padding: 8px 12px;
  border-radius: 12px;
}

nav a:hover {
  background: #0000000d;
}

/* ===== ハンバーガーメニュー ===== */
#menuToggle {
  display: none;
}

@media (max-width: 768px) {
  #menuToggle {
    display: block !important;
  }
  
  #mainNav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  #mainNav.active {
    max-height: 300px;
  }
  
  #mainNav ul {
    flex-direction: column;
    padding: 12px 0;
    gap: 0;
  }
  
  #mainNav ul li {
    width: 100%;
  }
  
  #mainNav ul li a {
    display: block;
    padding: 14px 24px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }
  
  #mainNav ul li:last-child a {
    border-bottom: none;
  }
}

/* ===== Stage (スクロール同期:背景+スライド) ===== */
.stage {
  height: 300vh;
  position: relative;
  background: #000;
  margin-top: -70px;
}

.stage .sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  padding-top: 70px;
}

.stage .bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #000 center/cover no-repeat;
}

.stage .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--stage-overlay));
}

.stage .content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  place-items: center;
}

.swiper {
  width: 100vw;
  height: 100vh;
}

.swiper-slide {
  position: relative;
  color: #fff;
  display: grid;
  place-items: center;
  padding: 24px;
}

.slide-inner {
  width: min(1100px, 92%);
  display: grid;
  gap: 14px;
  grid-template-columns: 1.08fr .92fr;
  align-items: end;
}

/* ===== タイポグラフィ ===== */
.slide-title {
  margin: 0;
  line-height: 1.2;
  letter-spacing: .02em;
  font-size: clamp(20px, 3.0vw, 30px);
  text-shadow: 0 2px 22px rgba(0, 0, 0, .35);
}

.slide-lead {
  margin: 6px 0 0;
  font-size: clamp(14px, 1.6vw, 16px);
  opacity: .92;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}

/* ===== KV画像カード ===== */
.kv-img {
  aspect-ratio: 16/10;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(214, 200, 200);
  padding: 32px;
}

.kv-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 初期状態を透明にする */
.slide-title,
.slide-lead,
.kv-img {
  opacity: 0;
}

/* ===== こだわり（エディトリアル + グラデ背景） ===== */
.story {
  padding: 120px 0 96px;
  background: radial-gradient(1200px 600px at 20% -10%, #fff7c8, #ffffff 60%),
              linear-gradient(180deg, #fff 0%, #fbf8f2 100%);
  position: relative;
}

.story .lead {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--muted);
  margin: 0 auto 18px;
}

/* ===== Split layout (左右段組み) ===== */
.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  width: min(1100px, 94%);
  margin: 48px auto;
  opacity: 0;
  transform: translateY(22px);
}

.split.reverse {
  flex-direction: row-reverse;
}

.split .text {
  flex: 1 1 48%;
  min-width: 0;
}

.split .image {
  flex: 1 1 48%;
  min-width: 0;
}

.split .image img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .12);
}

.split .text h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: clamp(20px, 2.6vw, 28px);
}

.split .text p {
  line-height: 2;
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--muted);
  margin-bottom: 16px;
}

.split .text p:last-child {
  margin-bottom: 0;
}

/* ===== Features ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

/* ===== B2B ===== */
.b2b {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.b2b .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.note {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

/* ===== Products ===== */
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* 商品画像エリア - 見切れ防止 */
.product .img {
  aspect-ratio: 4/3;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.product .img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product .body {
  padding: 16px;
}

.product h3 {
  margin: .2em 0;
}

.product ul {
  margin: .3em 0 0 1.1em;
  color: var(--muted);
  font-size: 14px;
}

.price {
  font-weight: 900;
  margin-top: 8px;
}

/* 商品タイトルと特定セクションのh3を通常フォントに変更 */
.products,
.split .text {
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ===== Footer ===== */
footer {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  background: #fffaf1;
}

.foot {
  padding: 24px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

/* フッターナビゲーション */
.footer-nav {
  text-align: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}

.footer-nav a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  white-space: nowrap;
}

.footer-nav a:hover {
  color: var(--foreground);
  text-decoration: underline;
}

/* ===== 商品一覧画像のサイズ調整 ===== */
.kv-img.product-labels {
  aspect-ratio: 16/10;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(214, 200, 200, 0.3);
  padding: 16px;
}

.kv-img.product-labels img {
  width: 85%;
  max-width: 900px;
  height: auto;
  object-fit: contain;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .slide-inner {
    grid-template-columns: 1fr;
  }
  
  .split {
    flex-direction: column !important;
    gap: 32px;
  }
  
  .split .text,
  .split .image {
    flex: 1 1 100%;
    width: 100%;
  }
  
  .features {
    grid-template-columns: 1fr 1fr;
  }
  
  .products {
    grid-template-columns: 1fr;
  }
  
  .b2b .grid {
    grid-template-columns: 1fr;
  }
  
  .kv-img.product-labels {
    padding: 20px;
  }
  
  .kv-img.product-labels img {
    width: 80%;
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .product .img {
    padding: 16px;
  }
  
  .footer-nav {
    padding: 12px 8px;
    gap: 12px 16px;
  }
  
  .footer-nav a {
    font-size: 13px;
    padding: 6px 8px;
  }
  
  .kv-img.product-labels {
    padding: 16px;
    aspect-ratio: 16/11;
  }
  
  .kv-img.product-labels img {
    width: 85%;
    max-width: 500px;
  }
}

@media (max-width: 640px) {
  .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .product .img {
    aspect-ratio: 1/1;
    padding: 12px;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
  }
  
  .footer-nav a {
    display: block;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .footer-nav a:last-child {
    border-bottom: none;
  }
  
  .kv-img.product-labels {
    padding: 12px;
    aspect-ratio: 1/1;
  }
  
  .kv-img.product-labels img {
    width: 90%;
    max-width: 100%;
  }
}

@media (max-width: 360px) {
  .kv-img.product-labels {
    padding: 8px;
  }
  
  .kv-img.product-labels img {
    width: 95%;
  }
}