/* ===== デザイントークン ===== */
:root {
  --paper: #f4f2ec;
  --paper-deep: #ede9e0;
  --ink: #3a3a38;
  --ink-soft: #6b6a66;
  --ink-faint: #a3a19a;
  --sage: #8a9a7b;
  --serif: "Shippori Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--serif);
  color: var(--ink);
  background-color: var(--paper);
  line-height: 2;
  font-feature-settings: "palt";
  letter-spacing: 0.08em;
  overflow-x: hidden;
}

/* 紙の質感(feTurbulenceノイズ)を全体にうっすら敷く */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.44 0 0 0 0 0.41 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, footer {
  position: relative;
  z-index: 1;
}

/* ===== 固定ヘッダー ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 clamp(24px, 8vw, 120px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink-faint) 30%, transparent);
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.7em;
  text-decoration: none;
  color: var(--ink);
}

.site-header__logo {
  width: 28px;
  height: auto;
  flex-shrink: 0;
}

.site-header__name {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
}

.site-header__nav {
  display: flex;
  gap: clamp(1.4em, 4vw, 2.6em);
}

.site-header__nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  padding: 0.3em 0;
}

.site-header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--sage);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.site-header__nav a:hover::after {
  opacity: 0.8;
}

/* アンカー先が固定ヘッダーに隠れないように */
#business,
#about,
#company {
  scroll-margin-top: 80px;
}

/* ===== ヒーロー ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* AI生成背景画像が届いたらここに差し替え:
     background: url("../assets/bg-hero.jpg") center / cover no-repeat; */
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    url("../assets/bg-hero.jpg") right center / cover no-repeat,
    linear-gradient(160deg, var(--paper) 0%, var(--paper-deep) 100%);
}

/* 背景画像と地色をなじませるごく薄いウォッシュ */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  opacity: 0.12;
}

/* 舞い落ちる葉のオーバーレイ */
.hero__leaves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.9;
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding: 0 clamp(24px, 8vw, 120px);
  max-width: 720px;
}

.hero__name {
  font-size: clamp(1.6rem, 4.2vw, 2.6rem);
  font-weight: 500;
  letter-spacing: 0.32em;
  white-space: nowrap;
}

.hero__copy {
  margin-top: 2.2rem;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  letter-spacing: 0.18em;
  color: var(--ink);
}

.hero__lead {
  margin-top: 2rem;
  font-size: clamp(0.85rem, 1.6vw, 0.95rem);
  color: var(--ink-soft);
  max-width: 34em;
}

.hero__scroll {
  position: absolute;
  left: clamp(28px, 8.4vw, 124px);
  bottom: 28px;
  z-index: 2;
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  color: var(--ink-faint);
  writing-mode: vertical-rl;
}

.hero__scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 42px;
  margin: 10px auto 0;
  background: linear-gradient(to bottom, var(--ink-faint), transparent);
}

/* ===== セクション共通 ===== */
.section {
  padding: clamp(80px, 14vh, 140px) clamp(24px, 8vw, 120px);
  max-width: 980px;
  margin: 0 auto;
}

.section__title {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  margin-bottom: 3.2rem;
  display: flex;
  align-items: center;
  gap: 1.4em;
}

.section__title::after {
  content: "";
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: color-mix(in srgb, var(--sage) 55%, var(--paper));
}

/* ===== 事業内容 ===== */
.business__item + .business__item {
  margin-top: 4rem;
}

.business__item h3 {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  margin-bottom: 1.1rem;
  color: var(--ink);
}

.business__item h3::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.9em;
  border-radius: 50%;
  background: color-mix(in srgb, var(--sage) 70%, var(--paper));
  vertical-align: 0.15em;
}

.business__item p,
.about__body p {
  font-size: clamp(0.88rem, 1.6vw, 0.95rem);
  color: var(--ink-soft);
  max-width: 40em;
}

.business__item p + p,
.about__body p + p {
  margin-top: 1em;
}

.business__photo {
  margin-top: 2rem;
  max-width: 40em;
}

.company__photo {
  margin-top: 3.2rem;
}

.business__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  filter: saturate(0.82) contrast(0.96);
}

/* 店舗写真は色数が多いため、より強めに落ち着かせる */
.company__photo img {
  filter: saturate(0.6) contrast(0.8) brightness(1.08) sepia(0.08);
}

/* 将来: 中国茶オンラインサイトへのリンクをここに追加
.business__link { ... } */

/* ===== 会社情報 ===== */
.company__list {
  display: grid;
  grid-template-columns: max-content 1fr;
  row-gap: 1.3rem;
  column-gap: clamp(2rem, 6vw, 4.5rem);
  font-size: clamp(0.88rem, 1.6vw, 0.95rem);
}

.company__list dt {
  color: var(--ink-faint);
  letter-spacing: 0.2em;
  font-weight: 400;
}

.company__list dd {
  color: var(--ink);
}

/* ===== フッター ===== */
footer {
  padding: 56px 24px 40px;
  text-align: center;
}

/* 将来: SNSリンクをここに追加
.footer__sns { ... } */

.footer__copyright {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--ink-faint);
}

/* ===== 導入演出オーバーレイ ===== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--paper);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro__content {
  text-align: center;
}

.intro__logo {
  width: clamp(110px, 16vw, 150px);
  height: auto;
  color: var(--ink);
}

.intro__name {
  margin-top: 1.8rem;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  letter-spacing: 0.32em;
  text-indent: 0.32em; /* 字間ぶんの中央ずれ補正 */
  color: var(--ink);
  opacity: 0;
}

/* JS無効時・reduced-motion時はオーバーレイを消し、通常表示にする */
.no-js .intro,
.motion-off .intro {
  display: none;
}

.motion-off #leaf-canvas {
  display: none;
}

/* ===== モバイル ===== */
@media (max-width: 768px) {
  .hero {
    align-items: flex-start;
  }

  .hero__inner {
    padding-top: 18vh;
  }

  .hero__name {
    letter-spacing: 0.22em;
  }

  .hero__scroll {
    display: none;
  }

  .site-header__name {
    display: none;
  }

  .company__list {
    grid-template-columns: 1fr;
    row-gap: 0.2rem;
  }

  .company__list dt {
    margin-top: 1.2rem;
  }
}

/* ===== reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
