/* =========================================
   湯の花本舗 ブランドサイト（リッチ演出版・ラフ）
   トーン：くすみ・やわらか・淡い・穏やかな暖色
========================================= */

:root {
  --color-bg: #fbf6f0;
  --color-bg-alt: #f5ece3;
  --color-text: #3f3733;
  --color-text-soft: #7a6f68;

  --color-tennen: #b23b3f;
  --color-tennen-soft: #e9d9c8;

  --color-foryou: #c98462;
  --color-foryou-soft: #f3e3d8;

  --font-serif: "Shippori Mincho", "Yu Mincho", serif;
  --font-sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;

  --radius: 16px;
  --max-width: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 24px;
}

.section-eyebrow {
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--color-foryou);
  font-weight: 600;
  margin: 0 0 16px;
}

.section-eyebrow.light { color: #f3d9c4; }
.section-eyebrow.center { text-align: center; }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 56px;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.section-title.center { text-align: center; }
.section-title.light { color: #fff; }

/* ===== Scroll progress bar ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-tennen), var(--color-foryou));
  z-index: 300;
  transition: width 0.1s linear;
}

/* ===== Loader ===== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}

.loader-logo {
  width: 220px;
  height: auto;
  opacity: 0;
  animation: loaderFade 1.4s ease forwards;
}

@keyframes loaderFade {
  0% { opacity: 0; transform: scale(0.94); }
  100% { opacity: 1; transform: scale(1); }
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ===== Reveal animation ===== */
/* JS未実行時のフォールバック：デフォルトで表示状態にしておき、JSがあれば初期状態を上書きする */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(32px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-ready .reveal-left { transform: translateX(-40px); }
.reveal-left.is-visible { transform: translateX(0); }
.js-ready .reveal-right { transform: translateX(40px); }
.reveal-right.is-visible { transform: translateX(0); }

.reveal-delay-1.is-visible { transition-delay: 0.1s; }
.reveal-delay-2.is-visible { transition-delay: 0.2s; }
.reveal-delay-3.is-visible { transition-delay: 0.3s; }
.reveal-delay-4.is-visible { transition-delay: 0.4s; }

/* ヒーローのみゆっくりとしたフェードイン（約2秒） */
.hero .reveal {
  transition: opacity 2s var(--ease), transform 2s var(--ease);
}

.hero .reveal-delay-1.is-visible { transition-delay: 0.3s; }
.hero .reveal-delay-2.is-visible { transition-delay: 0.6s; }
.hero .reveal-delay-3.is-visible { transition-delay: 0.9s; }
.hero .reveal-delay-4.is-visible { transition-delay: 1.2s; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 8px 0;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(251, 246, 240, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(63, 55, 51, 0.06);
  padding: 0;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}

.site-nav { display: flex; align-items: center; }

.nav-list {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.nav-list a {
  white-space: nowrap;
  position: relative;
  padding-bottom: 4px;
}

.nav-list a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}

.nav-list a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  background: var(--color-tennen);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(178, 59, 63, 0.35);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  display: block;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(63,45,38,0.35) 0%, rgba(50,32,26,0.55) 60%, rgba(40,26,22,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  padding: 0 24px;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.3em;
  margin-bottom: 24px;
  color: #f3e3d8;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 7vw, 68px);
  margin: 0 0 28px;
  letter-spacing: 0.06em;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.hero-title span { display: block; }

.hero-lead {
  font-size: 16px;
  color: #f3ece5;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #f3ece5;
}

.hero-scroll-cue span {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.6);
  position: relative;
  overflow: hidden;
}

.hero-scroll-cue span::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  animation: scrollCue 1.8s ease-in-out infinite;
}

@keyframes scrollCue {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

.hero-scroll-cue p {
  font-size: 10px;
  letter-spacing: 0.2em;
  margin: 0;
}

.btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn:hover { transform: translateY(-3px); }

.btn-primary {
  background: var(--color-tennen);
  color: #fff;
  box-shadow: 0 10px 30px rgba(178, 59, 63, 0.3);
}

.btn-primary:hover { box-shadow: 0 14px 36px rgba(178, 59, 63, 0.4); }

.btn-ghost-light {
  border: 1px solid rgba(255,255,255,0.7);
  color: #fff;
}

.btn-ghost-light:hover { background: rgba(255,255,255,0.12); }

.btn-large { padding: 20px 52px; font-size: 15px; }

/* ===== Stats ===== */
.stats {
  background: #2f2622;
  color: #f3ece5;
  padding: 72px 24px;
}

.stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 52px);
  color: var(--color-foryou);
  font-weight: 700;
}

.stat-suffix {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--color-foryou);
  margin-left: 4px;
}

.stat-label {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #cbb9ae;
  margin-top: 8px;
}

/* ===== Brand Split ===== */
.brand-split {
  background: #fff;
  padding: 120px 24px;
}

.brand-split-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.brand-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-alt);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.brand-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(63,55,51,0.14);
}

.brand-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.brand-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.brand-card:hover .brand-card-media img {
  transform: scale(1.08);
}

.brand-card-body {
  padding: 40px;
  text-align: center;
}

.brand-card--tennen .brand-card-body { background: var(--color-tennen-soft); }
.brand-card--foryou .brand-card-body { background: var(--color-foryou-soft); }

.brand-card-logo {
  height: 44px;
  width: auto;
  margin: 0 auto 24px;
}

.brand-card-logo--foryou {
  height: 90px;
  max-width: 220px;
  background: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  object-fit: contain;
}

.brand-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  margin: 0 0 16px;
}

.brand-card p {
  color: var(--color-text-soft);
  font-size: 14px;
  margin: 0 0 28px;
}

.brand-card-link {
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.brand-card-link .arrow { transition: transform 0.3s var(--ease); }
.brand-card-link:hover .arrow { transform: translateX(6px); }

.brand-card--tennen .brand-card-link { color: var(--color-tennen); }
.brand-card--foryou .brand-card-link { color: var(--color-foryou); }

/* ===== About ===== */
.about { background: var(--color-bg); }

.about-simple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.about-simple-item {
  background: #fff;
  padding: 36px 28px;
  border-radius: var(--radius);
  border: 1px solid #eee0d4;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.about-simple-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(63,55,51,0.08);
}

.about-simple-index {
  display: block;
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--color-foryou);
  margin-bottom: 16px;
}

.about-simple-label {
  font-size: 12px;
  color: var(--color-text-soft);
  margin: 0 0 8px;
}

.about-simple-value {
  font-family: var(--font-serif);
  font-size: 18px;
  margin: 0;
}

.about-simple-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-tennen);
  margin-bottom: 88px;
}

.about-simple-link .arrow { transition: transform 0.3s var(--ease); }
.about-simple-link:hover .arrow { transform: translateX(6px); }

.about-place {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.about-place-media { overflow: hidden; }

.about-place-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.about-place-text {
  background: var(--color-bg-alt);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-place-text h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--color-tennen);
  margin: 0 0 20px;
}

.about-place-text p {
  font-size: 14px;
  color: var(--color-text-soft);
  margin: 0;
}

/* ===== Products ===== */
.products { background: #fff; }

.product-group { margin-bottom: 80px; }
.product-group:last-child { margin-bottom: 0; }

.product-group-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding: 24px 28px;
  border-radius: var(--radius);
}

.product-group-header--tennen { background: var(--color-tennen-soft); }
.product-group-header--foryou { background: var(--color-foryou-soft); }

.product-group-logo { height: 32px; width: auto; }

.product-group-logo--foryou {
  height: 64px;
  max-width: 180px;
  background: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  object-fit: contain;
}

.product-group-header p {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-soft);
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  border: 1px solid #eee0d4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(63,55,51,0.12);
}

.product-card-media { overflow: hidden; aspect-ratio: 4 / 3; }

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.product-card:hover .product-card-media img { transform: scale(1.1); }

.product-card h4 { font-size: 15px; margin: 20px 20px 6px; }
.product-card p { font-size: 13px; color: var(--color-text-soft); margin: 0 20px 20px; }

.product-card--foryou { border-color: #ecd6c8; }

/* ===== Reading ===== */
.reading { background: var(--color-bg-alt); }

.reading-note {
  font-size: 13px;
  color: var(--color-text-soft);
  margin: -32px 0 40px;
}

.reading-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.reading-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.reading-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(63,55,51,0.1);
}

.reading-card-media { aspect-ratio: 4 / 3; overflow: hidden; }

.reading-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.reading-card:hover .reading-card-media img { transform: scale(1.1); }

.reading-card > .reading-tag,
.reading-card > h4,
.reading-card > p {
  margin-left: 24px;
  margin-right: 24px;
}

.reading-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--color-foryou);
  background: var(--color-foryou-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-top: 24px;
  margin-bottom: 16px;
}

.reading-card h4 { font-size: 16px; margin-bottom: 12px; }
.reading-card p { font-size: 13px; color: var(--color-text-soft); margin-bottom: 24px; }

/* ===== Contact ===== */
.contact {
  position: relative;
  overflow: hidden;
  color: #fff;
}

.contact-bg { position: absolute; inset: -10% 0; }

.contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background: rgba(40, 26, 22, 0.72);
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  text-align: center;
  margin: 0 auto;
}

.contact-lead {
  color: #f3ece5;
  font-size: 14px;
  margin-bottom: 36px;
}

.contact-note {
  font-size: 12px;
  color: #cbb9ae;
  margin-top: 20px;
}

/* ===== Footer ===== */
.site-footer {
  background: #2f2622;
  color: #d8cabf;
  text-align: center;
  padding: 56px 24px;
}

.footer-logo {
  height: 32px;
  margin: 0 auto 20px;
  filter: brightness(0) invert(1) opacity(0.85);
}

.footer-inner p { margin: 4px 0; font-size: 13px; }

.footer-copy {
  margin-top: 20px !important;
  color: #9c8d82;
  font-size: 12px;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .about-place { grid-template-columns: 1fr; }
  .about-place-media { min-height: 220px; }
  .brand-split-inner { grid-template-columns: 1fr; }
  .product-cards, .reading-cards { grid-template-columns: 1fr 1fr; }
  .pmvv-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .timeline { flex-wrap: wrap; }
  .timeline::before { display: none; }
  .timeline-item { flex: 0 0 40%; padding-top: 0; }
  .timeline-item::before { display: none; }
  .pc-only { display: none; }
}

@media (max-width: 640px) {
  .section-inner { padding: 80px 24px; }
  .nav-toggle { display: flex; }

  .nav-list {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 18px;
    display: none;
    border-bottom: 1px solid #eadfd2;
  }

  .nav-list.open { display: flex; }

  .product-cards, .reading-cards { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-bg img, .philosophy-bg img, .contact-bg img {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
