/* ============================================
   Decaf Hour - Common Stylesheet v1.0
   Brand Visual System (2026-05-20 confirmed)
   P1 Palette: Cream + Dark Brown + Burnt Brown
   ============================================ */

/* --- P1 Color Variables (DO NOT alter) --- */
:root {
  --color-cream: #FAF7F2;        /* BASE 60% */
  --color-dark: #2C1810;         /* PRIMARY 30% */
  --color-accent: #6B4423;       /* ACCENT 10% */
  --color-ink: #1A130C;          /* DARK BG */
  --color-beige: #B8956A;        /* DARK ACCENT */
  --color-mid: #8B6F47;          /* SUB TEXT */
  --color-line: #E4D9C2;         /* DIVIDER LINE */
  --color-bg-soft: #F3EDE2;      /* Soft bg shade */
}

/* --- Reset / Base --- */
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  color: var(--color-dark);
  background: var(--color-cream);
  line-height: 2;
  letter-spacing: 0.05em;
}

/* --- Font Utility Classes --- */
.font-logo { font-family: 'Playfair Display', serif; font-weight: 700; letter-spacing: 0.06em; }
.font-serif { font-family: 'Noto Serif JP', serif; font-weight: 400; }
.font-serif-bold { font-family: 'Noto Serif JP', serif; font-weight: 500; }
.font-display { font-family: 'Cormorant Garamond', 'Noto Serif JP', serif; font-weight: 300; letter-spacing: 0.08em; }

/* ============================================
   Header (Desktop + Mobile)
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid rgba(228, 217, 194, 0.5);
}

.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
}

.site-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.site-header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.site-header-logo svg { display: block; }

.site-header-sns {
  display: flex;
  gap: 16px;
  align-items: center;
}
.site-header-sns a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--color-accent);
  transition: all 0.3s ease;
  text-decoration: none;
}
.site-header-sns a:hover {
  color: var(--color-dark);
  transform: translateY(-2px);
}

/* Nav lists (desktop) */
.site-nav-main,
.site-nav-sub {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav-main {
  padding-top: 14px;
  flex-wrap: wrap;
}
.site-nav-sub {
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid var(--color-line);
  gap: 22px;
}
.site-nav-main a,
.site-nav-sub a {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  text-decoration: none;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.site-nav-main a {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-dark);
}
.site-nav-main a:hover,
.site-nav-main a.is-active {
  color: var(--color-accent);
}
.site-nav-sub a {
  font-size: 11px;
  font-weight: 400;
  color: var(--color-mid);
}
.site-nav-sub a:hover {
  color: var(--color-accent);
}

/* Hamburger button (mobile only) */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-dark);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav panel */
.mobile-nav {
  display: none;
  background: var(--color-cream);
  border-top: 1px solid var(--color-line);
  padding: 16px 24px 24px;
}
.mobile-nav.open { display: block; }
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-nav li { border-bottom: 1px solid var(--color-line); }
.mobile-nav li:last-child { border-bottom: none; }
.mobile-nav a {
  display: block;
  padding: 14px 4px;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-dark);
  text-decoration: none;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.mobile-nav .sub a {
  font-weight: 400;
  font-size: 12px;
  color: var(--color-mid);
}
.mobile-nav .sns-row {
  display: flex;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--color-line);
  margin-top: 8px;
}
.mobile-nav .sns-row a {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .burger { display: flex; }
  .site-nav-main,
  .site-nav-sub,
  .site-header-sns { display: none; }
  .site-header-inner { padding: 10px 16px; }
}

/* Spacer to offset fixed header */
.header-spacer { height: 130px; }
@media (max-width: 768px) { .header-spacer { height: 62px; } }

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--color-ink);
  color: rgba(250, 247, 242, 0.75);
  padding: 80px 24px 36px;
}
.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.site-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.site-footer .brand-block .tagline {
  font-family: 'Noto Serif JP', serif;
  font-size: 13px;
  color: var(--color-beige);
  margin: 14px 0 18px;
  letter-spacing: 0.1em;
}
.site-footer .brand-block .descr {
  font-size: 12px;
  color: rgba(250, 247, 242, 0.55);
  line-height: 1.8;
}
.site-footer h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  color: var(--color-beige);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 500;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a {
  font-size: 12px;
  color: rgba(250, 247, 242, 0.65);
  text-decoration: none;
  transition: color 0.3s ease;
}
.site-footer ul a:hover { color: #fff; }
.site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
  color: rgba(250, 247, 242, 0.4);
}
.site-footer-bottom .legal { line-height: 1.7; }
.site-footer-bottom .legal p { margin: 2px 0; }
.site-footer-bottom .copy {
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.2em;
  font-weight: 700;
}

@media (max-width: 768px) {
  .site-footer { padding: 56px 24px 24px; }
  .site-footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
  }
  .site-footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================
   Hero (Top: large, Sub-pages: small)
   ============================================ */

.hero-top {
  background: var(--color-cream);
  min-height: calc(100vh - 130px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  position: relative;
}
.hero-top .hero-inner { max-width: 720px; }
.hero-top .hero-logo {
  margin: 0 auto 36px;
  max-width: 480px;
}
.hero-top .hero-tagline {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(28px, 5vw, 52px);
  color: var(--color-dark);
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.5;
  margin: 0 0 28px;
}
.hero-top .hero-since {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  color: var(--color-accent);
  letter-spacing: 0.4em;
  text-transform: uppercase;
}
.hero-top .hero-since::before,
.hero-top .hero-since::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.6;
}
.hero-top .hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  color: var(--color-mid);
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

.hero-line {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.hero-line-1 { animation-delay: 0.3s; }
.hero-line-2 { animation-delay: 1.0s; }
.hero-line-3 { animation-delay: 1.8s; }
.hero-line-4 { animation-delay: 2.4s; }
@keyframes heroFadeIn { to { opacity: 1; transform: translateY(0); } }

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-accent);
  animation: scrollBounce 2.5s infinite ease-in-out;
}
@keyframes scrollBounce {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
  50% { transform: translate(-50%, 10px); opacity: 1; }
}

/* Sub-page hero */
.hero-sub-page {
  background: var(--color-cream);
  padding: 80px 24px 60px;
  text-align: center;
}
.hero-sub-page .hero-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  color: var(--color-accent);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-sub-page h1 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  font-size: clamp(24px, 4vw, 40px);
  color: var(--color-dark);
  letter-spacing: 0.1em;
  line-height: 1.5;
  margin: 0;
}

/* ============================================
   Section / Divider / Quote
   ============================================ */

.section {
  padding: 88px 24px;
}
@media (max-width: 768px) { .section { padding: 56px 20px; } }

.section-light { background: var(--color-cream); }
.section-soft { background: var(--color-bg-soft); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  color: var(--color-accent);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  font-size: clamp(22px, 3.5vw, 36px);
  color: var(--color-dark);
  letter-spacing: 0.08em;
  line-height: 1.6;
  margin: 0;
}
.section-title .em { color: var(--color-accent); }

.divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-line), transparent);
  margin: 28px auto;
}

.quote-block {
  position: relative;
  text-align: center;
  padding: 20px 0;
  margin: 16px 0;
}
.quote-block::before,
.quote-block::after {
  content: "";
  display: block;
  width: 1px;
  height: 22px;
  background: var(--color-line);
  margin: 12px auto;
}

/* ============================================
   Cards / Symptoms / Approach Numbers
   ============================================ */

.card {
  background: #fff;
  padding: 36px 28px;
  text-align: center;
  border-radius: 4px;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  border: 1px solid var(--color-line);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(44, 24, 16, 0.08);
}
.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  transition: background 0.4s ease;
  color: var(--color-accent);
}
.card:hover .icon-circle { background: #EAD9B8; }
.card h3 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  font-size: 17px;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  margin: 0 0 14px;
}
.card p {
  font-size: 13px;
  color: var(--color-mid);
  line-height: 1.9;
  margin: 0;
}

.approach-num {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 4rem;
  line-height: 1;
  color: var(--color-beige);
  letter-spacing: 0;
  margin-bottom: 22px;
}
@media (max-width: 768px) { .approach-num { font-size: 3rem; } }

/* Page link card (Top page: link to sub-pages) */
.page-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  padding: 36px 32px;
  text-align: left;
  text-decoration: none;
  color: var(--color-dark);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.page-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(44, 24, 16, 0.08);
  border-color: var(--color-beige);
}
.page-card .label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  color: var(--color-accent);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.page-card h3 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--color-dark);
  margin: 0 0 14px;
  letter-spacing: 0.08em;
  line-height: 1.6;
}
.page-card p {
  font-size: 13px;
  color: var(--color-mid);
  line-height: 1.8;
  margin: 0 0 24px;
}
.page-card .arrow {
  margin-top: auto;
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  color: var(--color-accent);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.page-card .arrow::after { content: " →"; }

/* ============================================
   fade-up (scroll animation)
   ============================================ */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1.2s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up-delay-1 { transition-delay: 0.15s; }
.fade-up-delay-2 { transition-delay: 0.30s; }
.fade-up-delay-3 { transition-delay: 0.45s; }

/* ============================================
   Image utility
   ============================================ */

.img-zoom {
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--color-bg-soft) 0%, #E8DCC4 100%);
}
.img-zoom img {
  transition: transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-zoom:hover img { transform: scale(1.05); }

.aspect-4-5 { aspect-ratio: 4/5; }
.aspect-square { aspect-ratio: 1/1; }
.aspect-16-9 { aspect-ratio: 16/9; }
.aspect-16-6 { aspect-ratio: 16/6; }

/* ============================================
   SNS Links (on Contact page)
   ============================================ */

.sns-grid {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}
.sns-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.sns-link-card .sns-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--color-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  transition: all 0.4s ease;
}
.sns-link-card:hover .sns-circle {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  transform: translateY(-3px);
}
.sns-link-card .sns-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  color: var(--color-mid);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.sns-link-card .sns-handle {
  font-size: 12px;
  color: var(--color-accent);
}

/* ============================================
   Placeholder (準備中) for News / FAQ / Legal
   ============================================ */

.placeholder-page {
  background: var(--color-cream);
  min-height: calc(100vh - 130px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}
.placeholder-page .inner { max-width: 480px; }
.placeholder-page .label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  color: var(--color-accent);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.placeholder-page h1 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  font-size: clamp(22px, 3.5vw, 32px);
  color: var(--color-dark);
  letter-spacing: 0.1em;
  margin: 0 0 28px;
}
.placeholder-page p {
  font-size: 14px;
  color: var(--color-mid);
  line-height: 2;
  margin: 0 0 40px;
}
.placeholder-page .back-link {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  color: var(--color-accent);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 28px;
  border: 1px solid var(--color-accent);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.placeholder-page .back-link:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ============================================
   Page-link row (bottom of sub pages)
   ============================================ */

.related-pages {
  background: var(--color-bg-soft);
  padding: 64px 24px;
  text-align: center;
}
.related-pages .label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  color: var(--color-accent);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.related-pages-grid {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.related-pages-grid .page-card { padding: 24px; }
@media (max-width: 640px) {
  .related-pages-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Responsive helpers
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-text {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 64px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
