/* =============================================================
   RE... ECサイト style.css v1
   作成: 2026-05-01 / 椿 ありさ
   方針: すずv2指示書 + Lycka型 + slowonline分析
   ============================================================= */

/* ----------- Google Fonts ----------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500&family=Noto+Serif+JP:wght@400;500&family=Noto+Sans+JP:wght@300;400;500&family=Inter:wght@300;400;500&display=swap');

/* ----------- CSS Variables ----------- */
:root {
  /* Color */
  --bg-main: #FBF8F3;       /* クリームホワイト */
  --bg-sub: #F5EFE6;        /* グレージュ */
  --bg-light-beige: #E8DDC8;
  --bg-pure: #FFFFFF;
  --text-main: #3D362E;     /* ダークブラウン */
  --text-sub: #8C8478;      /* ウォームグレー */
  --accent: #A88B5C;        /* ブロンズゴールド */
  --color-warning: #A0522D;
  --overlay-dark: rgba(61, 54, 46, 0.20);

  /* Font */
  --font-head-ja: "Noto Serif JP", "游明朝", serif;
  --font-head-en: "Cormorant Garamond", "Times New Roman", serif;
  --font-body-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-body-en: "Inter", system-ui, sans-serif;

  /* Spacing & Type */
  --letter-head: 0.08em;
  --letter-body: 0.04em;
  --line-head: 1.4;
  --line-body: 1.95;

  /* Layout */
  --section-gap-pc: 120px;
  --section-gap-sp: 80px;
  --container-max: 1280px;
  --container-pad-pc: 64px;
  --container-pad-sp: 24px;
  --image-radius: 0;
  --grid-gap-h: 16px;
  --grid-gap-v: 40px;

  /* Hero */
  --hero-ratio-pc: 16 / 7;     /* 25%カット (旧16/9 → 16/(9*0.75)≒16/7) */
  --hero-ratio-sp: 4 / 5;
  --hero-fade-duration: 1s;
  --hero-slide-interval: 6s;
}

/* ----------- Reset ----------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body-ja);
  font-size: 15px;
  font-weight: 400;
  line-height: var(--line-body);
  letter-spacing: var(--letter-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity 0.3s ease; }
a:hover { opacity: 0.7; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* ----------- Typography Defaults ----------- */
h1, h2, h3, h4 {
  font-family: var(--font-head-ja);
  font-weight: 500;
  line-height: var(--line-head);
  letter-spacing: var(--letter-head);
}
.eyebrow {  /* 英文小タイトル */
  font-family: var(--font-head-en);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--text-sub);
  text-transform: uppercase;
}

/* ----------- Container ----------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad-pc);
}

/* ============================================================
   Header (slowonline型: 透明→Hero通過後に半透明クリーム)
   ============================================================ */
.site-header {
  position: absolute;     /* 初期: heroの上に被せる */
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
/* 明るいヒーロー画像でもロゴ・ナビが視認できるよう、上部に薄いグラデーションを敷く */
.site-header:not(.is-scrolled)::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: -1;
}
.site-header.is-scrolled {
  position: fixed;
  background: rgba(251, 248, 243, 0.95);
  backdrop-filter: blur(8px);
  border-bottom-color: rgba(61, 54, 46, 0.06);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--container-pad-pc);
  max-width: var(--container-max);
  margin: 0 auto;
}

/* ロゴ: 白版/ダーク版を切替表示 */
.site-logo { display: inline-flex; align-items: center; }
.site-logo img {
  height: 72px;       /* 40 → 72px (1.8倍) */
  width: auto;
  display: block;
  transition: filter 0.3s ease;
}
.site-logo .logo-dark { display: none; }
.site-header.is-scrolled .site-logo .logo-white { display: none; }
.site-header.is-scrolled .site-logo .logo-dark { display: block; }

/* 透明時の視認性確保 (白ロゴ + ナビ) */
.site-header:not(.is-scrolled) .site-logo img,
.site-header:not(.is-scrolled) .global-nav a,
.site-header:not(.is-scrolled) .header-icons a {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}
.site-header:not(.is-scrolled) .global-nav a,
.site-header:not(.is-scrolled) .header-icons a {
  color: #fff;
}

.global-nav { display: flex; gap: 36px; }
.global-nav a {
  font-family: var(--font-head-en);
  font-size: 17px;          /* 14 → 17px */
  letter-spacing: 0.1em;
  color: var(--text-main);
  transition: color 0.3s ease;
}
.header-icons { display: flex; gap: 22px; align-items: center; }
.header-icons a { font-size: 22px; transition: color 0.3s ease; }

/* ============================================================
   Hero Carousel - 4枚自動スライド (CSS only)
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: var(--hero-ratio-pc);
  overflow: hidden;
  background: var(--bg-sub);
}
.hero__slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: hero-fade calc(var(--hero-slide-interval) * 4) infinite;
}
.hero__slide:nth-child(1) { animation-delay: 0s; }
.hero__slide:nth-child(2) { animation-delay: var(--hero-slide-interval); }
.hero__slide:nth-child(3) { animation-delay: calc(var(--hero-slide-interval) * 2); }
.hero__slide:nth-child(4) { animation-delay: calc(var(--hero-slide-interval) * 3); }

@keyframes hero-fade {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  25%  { opacity: 1; }
  29%  { opacity: 0; }
  100% { opacity: 0; }
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(61, 54, 46, 0.05) 0%,
    rgba(61, 54, 46, 0.10) 50%,
    rgba(61, 54, 46, 0.30) 100%
  );
  pointer-events: none;
}

/* Hero text overlay */
.hero__caption {
  position: absolute;
  left: var(--container-pad-pc);
  bottom: 80px;
  z-index: 2;
  color: var(--bg-pure);
  max-width: 600px;
}
.hero__caption .eyebrow {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}
.hero__caption h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--bg-pure);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hero__indicators {
  position: absolute;
  bottom: 28px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 3;
}
.hero__indicators span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.3s ease;
}
.hero__indicators span.active {
  background: var(--accent);
}

/* ============================================================
   Section Common
   ============================================================ */
.section {
  padding: var(--section-gap-pc) 0;
}
.section--sub-bg {
  background: var(--bg-sub);
}
.section__head {
  text-align: center;
  margin-bottom: 64px;
}
.section__head .eyebrow { display: block; margin-bottom: 16px; }
.section__head h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
}

/* ============================================================
   Concept Section
   ============================================================ */
.concept__body {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.concept__body p {
  font-family: var(--font-body-ja);
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: 0.06em;
  color: var(--text-main);
  margin-bottom: 40px;
  white-space: pre-line;
}
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head-en);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}
.btn-arrow::after {
  content: '→';
  transition: transform 0.3s ease;
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ============================================================
   Specialty Section (看板商品)
   ============================================================ */
.specialty__list { display: flex; flex-direction: column; gap: 72px; }  /* 96→72 (約25%減) */
.specialty__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.specialty__item:nth-child(even) {
  direction: rtl;
}
.specialty__item:nth-child(even) > * { direction: ltr; }
.specialty__image {
  aspect-ratio: 1 / 1;          /* 4/5→1/1 で20%縦カット */
  overflow: hidden;
  background: var(--bg-sub);
}
.specialty__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.specialty__content {
  padding: 0 32px;
}
.specialty__content .eyebrow { margin-bottom: 16px; }
.specialty__content h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  margin-bottom: 24px;
  font-weight: 500;
}
.specialty__content p {
  font-size: 14.5px;
  line-height: 2.0;
  margin-bottom: 28px;
  color: var(--text-main);
}

/* ============================================================
   Seasonal Section (季節のお菓子)
   ============================================================ */
.seasonal__lead {
  text-align: center;
  font-size: 16px;
  line-height: 2.1;
  letter-spacing: 0.06em;
  margin-bottom: 56px;
  white-space: pre-line;
  color: var(--text-main);
}
.seasonal__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px var(--grid-gap-h);
  max-width: 960px;
  margin: 0 auto;
}
.seasonal__grid--single {
  display: flex;
  justify-content: center;
  max-width: none;
}
.seasonal__grid--single .seasonal__item {
  width: 100%;
  max-width: 460px;
}
.seasonal__item img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  margin-bottom: 16px;
}
.seasonal__item h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}
.seasonal__item p {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.8;
}

/* ============================================================
   Item List (全商品グリッド)
   ============================================================ */
.items__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap-v) var(--grid-gap-h);
}
.item-card { text-align: left; }
.item-card__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-sub);
  margin-bottom: 12px;
}
.item-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.item-card:hover .item-card__image img { transform: scale(1.04); }
.item-card__name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}
.item-card__price {
  font-family: var(--font-body-en);
  font-size: 13px;
  color: var(--text-sub);
  letter-spacing: 0.04em;
}

/* ============================================================
   News Section
   ============================================================ */
.news__list {
  max-width: 720px;
  margin: 0 auto;
  border-top: 1px solid rgba(61, 54, 46, 0.08);
}
.news__item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(61, 54, 46, 0.08);
  font-size: 14px;
  line-height: 1.8;
}
.news__date {
  font-family: var(--font-body-en);
  color: var(--text-sub);
  letter-spacing: 0.04em;
}

/* ============================================================
   About Page
   ============================================================ */
.about-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--bg-sub);
}
.about-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(61, 54, 46, 0.30) 0%,
    rgba(61, 54, 46, 0.20) 50%,
    rgba(61, 54, 46, 0.45) 100%
  );
  pointer-events: none;
}
.about-hero__caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--bg-pure);
  z-index: 2;
  text-align: center;
}
.about-hero__caption .eyebrow {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
  font-size: 16px;
  letter-spacing: 0.18em;
}
.about-hero__caption h1 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.about-story {
  padding: var(--section-gap-pc) 0;
}
.about-story__container {
  max-width: 640px !important;
  padding-left: var(--container-pad-pc);
  padding-right: var(--container-pad-pc);
}
.about-story__chapter {
  font-family: var(--font-head-ja);    /* 本文も明朝で手紙感 */
  font-size: 16px;
  font-weight: 400;
  line-height: 2.4;                    /* じっくり読ませるためゆったり */
  letter-spacing: 0.06em;
  color: var(--text-main);
  text-align: center;
}
.about-story__chapter p {
  margin-bottom: 1.6em;
}
.about-story__chapter p:last-child { margin-bottom: 0; }

.about-story__chapter--lead p:first-child {
  font-size: 19px;
  letter-spacing: 0.1em;
  margin-bottom: 1.8em;
}

.about-story__chapter--end {
  margin-top: 8px;
}
.about-story__sign {
  font-family: var(--font-head-en);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--text-sub);
  margin-top: 2.4em !important;
}

.about-story__divider {
  border: 0;
  text-align: center;
  margin: 64px auto;
  width: 40px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.about-story__back {
  text-align: center;
  margin-top: 96px;
}

/* SP About */
@media (max-width: 768px) {
  .about-hero { aspect-ratio: 4 / 5; }
  .about-hero__caption h1 { font-size: 26px; }
  .about-story__chapter {
    font-size: 15px;
    line-height: 2.2;
  }
  .about-story__chapter--lead p:first-child { font-size: 17px; }
  .about-story__divider { margin: 48px auto; }
  .about-story__back { margin-top: 72px; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--bg-sub);
  padding: 80px var(--container-pad-pc) 32px;
  margin-top: var(--section-gap-pc);
}
.footer__message {
  max-width: 480px;
  margin: 0 auto 56px;
  text-align: center;
  font-family: var(--font-head-ja);   /* Noto Serif JP */
  font-size: 15px;
  font-weight: 400;
  line-height: 2.1;
  letter-spacing: 0.06em;
  color: var(--text-main);
  white-space: pre-line;
}
.footer__logo {
  display: block;
  margin: 0 auto 32px;
  height: 68px;     /* 40 → 68px */
  width: auto;
}
.footer__nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.footer__nav a {
  font-size: 13px;
  color: var(--text-sub);
  letter-spacing: 0.06em;
}
.footer__copy {
  text-align: center;
  font-family: var(--font-body-en);
  font-size: 11px;
  color: var(--text-sub);
  letter-spacing: 0.1em;
}

/* ============================================================
   Responsive (SP: ≤768px)
   ============================================================ */
@media (max-width: 768px) {
  body { font-size: 14px; }
  .container,
  .site-header__inner,
  .site-footer { padding-left: var(--container-pad-sp); padding-right: var(--container-pad-sp); }
  .global-nav { display: none; } /* SPはハンバーガー想定（後で実装） */
  .section { padding: var(--section-gap-sp) 0; }
  .hero { aspect-ratio: var(--hero-ratio-sp); }
  .hero__caption {
    left: var(--container-pad-sp);
    right: var(--container-pad-sp);
    bottom: 60px;
  }
  .hero__caption h2 { font-size: 22px; line-height: 1.55; }
  .specialty__list { gap: 64px; }
  .specialty__item {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .specialty__item:nth-child(even) { direction: ltr; }
  .specialty__content { padding: 0; }
  .seasonal__grid { grid-template-columns: 1fr; gap: 32px; }
  .items__grid { grid-template-columns: repeat(2, 1fr); }
  .news__item { grid-template-columns: 1fr; gap: 4px; }
  .footer__nav { gap: 16px 24px; }
}
