/* =============================================
   TidyNihon — Main Stylesheet
   Color palette:
   --cream:   #F5EFE6   (background / light)
   --charcoal:#2D2D2D   (text / dark)
   --rust:    #B85C38   (brand accent)
   --sand:    #E8DDD0   (section alt bg)
   --taupe:   #8C7B6E   (muted text)
   ============================================= */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:   #F5EFE6;
  --charcoal:#2D2D2D;
  --rust:    #B85C38;
  --sand:    #E8DDD0;
  --taupe:   #8C7B6E;
  --white:   #FFFFFF;
  --radius:  4px;
  --max-w:   1160px;
  --font-head: 'Noto Serif JP', serif;
  --font-body: 'Noto Sans JP', sans-serif;
}

html { scroll-behavior: smooth; background: var(--cream); }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--charcoal);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1rem; }

p { color: var(--taupe); line-height: 1.8; }

/* ---- Layout Helpers ---- */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rust);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 12px;
}

.divider {
  width: 40px;
  height: 3px;
  background: var(--rust);
  margin: 16px 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--rust);
  color: var(--cream);
  border-color: var(--rust);
}

.btn-primary:hover { background: #9e4d2e; border-color: #9e4d2e; }

.btn-outline {
  background: transparent;
  color: var(--rust);
  border-color: var(--rust);
}

.btn-outline:hover { background: var(--rust); color: var(--cream); }

/* ---- SVG Icons ---- */
.icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--sand);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo { width: 44px; height: 44px; flex-shrink: 0; }

.brand-name {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--taupe);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-top: 1px;
}

.header-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.header-tel {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   SECTION 1 — HERO
   ============================================================ */
.section-hero {
  background: var(--charcoal);
  color: var(--cream);
  padding: 80px 0;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text { flex: 1; }

.hero-text .section-tag { color: #e8a882; }

.hero-text h1 { color: var(--cream); margin-bottom: 20px; }

.hero-text p { color: #c0b8b0; font-size: 1.05rem; margin-bottom: 32px; }

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

.hero-image {
  flex: 1;
  max-width: 480px;
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-image .placeholder-img {
  width: 100%;
  height: 420px;
  background: #3f3f3f;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
}

/* ============================================================
   SECTION 2 — BENEFITS / USP
   ============================================================ */
.section-benefits {
  background: var(--cream);
  padding: 80px 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 48px;
}

.benefit-item { text-align: center; }

.benefit-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  color: var(--rust);
}

.benefit-item h3 { margin-bottom: 8px; font-size: 1rem; }
.benefit-item p { font-size: 0.9rem; }

/* ============================================================
   SECTION 3 — ABOUT / PHILOSOPHY
   ============================================================ */
.section-philosophy {
  background: var(--sand);
  padding: 80px 0;
}

.philosophy-inner {
  display: flex;
  gap: 60px;
  align-items: center;
}

.philosophy-image {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
}

.philosophy-image .placeholder-img {
  width: 100%;
  height: 380px;
  background: #d4cac0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9e9287;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
}

.philosophy-text { flex: 1; }

.philosophy-text h2 { margin-bottom: 16px; }
.philosophy-text p { margin-bottom: 16px; }

/* ============================================================
   SECTION 4 — HOW IT WORKS
   ============================================================ */
.section-steps {
  background: var(--cream);
  padding: 80px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.step-card,
.step-item {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 36px 28px;
}

.step-number {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--sand);
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}

.step-card h3, .step-item h3 { margin-bottom: 10px; }
.step-card p, .step-item p { font-size: 0.9rem; }

/* ============================================================
   SECTION 5 — PRODUCTS
   ============================================================ */
.section-products {
  background: var(--sand);
  padding: 80px 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.product-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: none;
  box-shadow: 0 2px 8px rgba(45, 45, 45, 0.08);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: 0 8px 20px rgba(45, 45, 45, 0.12);
  transform: translateY(-2px);
}

.product-image {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, #E8DDD0 0%, #f0e9e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  padding: 24px 24px 0;
  color: var(--charcoal);
}

.product-card p {
  font-size: 0.9rem;
  padding: 0 24px;
  margin-bottom: 16px;
  color: var(--taupe);
}

.product-price {
  display: block;
  padding: 0 24px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--rust);
  margin-bottom: 20px;
  font-family: var(--font-head);
}

.product-card .btn {
  margin: 0 24px 24px;
  width: calc(100% - 48px);
}

/* ============================================================
   SECTION 6 — GALLERY / INSPIRATION
   ============================================================ */
.section-gallery {
  background: var(--cream);
  padding: 80px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 16px;
  margin-top: 48px;
}

.gallery-item { border-radius: var(--radius); overflow: hidden; }
.gallery-item:nth-child(1) { grid-column: span 7; }
.gallery-item:nth-child(2) { grid-column: span 5; }
.gallery-item:nth-child(3) { grid-column: span 4; }
.gallery-item:nth-child(4) { grid-column: span 4; }
.gallery-item:nth-child(5) { grid-column: span 4; }

.gallery-placeholder {
  width: 100%;
  height: 240px;
  background: #ddd5ca;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a89f96;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

@media (min-width: 901px) {
  .gallery-item:nth-child(1) img,
  .gallery-item:nth-child(2) img {
    height: 300px;
  }
}

/* ============================================================
   SECTION 7 — SERVICES
   ============================================================ */
.section-services {
  background: var(--charcoal);
  padding: 80px 0;
  color: var(--cream);
}

.section-services .section-tag { color: #e8a882; }
.section-services h2 { color: var(--cream); }
.section-services p { color: #c0b8b0; }

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.service-item {
  border-top: 2px solid var(--rust);
  padding-top: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-item h3 { color: var(--cream); margin-bottom: 10px; font-size: 1.05rem; }
.service-item p { font-size: 0.9rem; }

.service-icon {
  width: 64px;
  height: 64px;
  color: var(--rust);
  margin-bottom: 16px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

/* ============================================================
   SECTION 8 — TESTIMONIALS
   ============================================================ */
.section-testimonials {
  background: var(--cream);
  padding: 80px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 32px;
}

.testimonial-quote {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--rust);
  line-height: 1;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--charcoal);
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sand);
  flex-shrink: 0;
}

.author-name { font-weight: 700; font-size: 0.9rem; color: var(--charcoal); }
.author-city { font-size: 0.8rem; color: var(--taupe); }

/* ============================================================
   SECTION 9 — FAQ
   ============================================================ */
.section-faq {
  background: var(--charcoal);
  padding: 80px 0;
  color: var(--cream);
}

.section-faq .section-tag {
  color: #e8a882;
}

.section-faq h2 {
  color: var(--cream);
}

.faq-list {
  margin-top: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 24px;
  transition: background 0.2s, border-color 0.2s;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(232, 168, 130, 0.3);
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  user-select: none;
}

.faq-item summary::marker {
  color: #e8a882;
  font-size: 1.4rem;
}

.faq-item p {
  margin-top: 16px;
  color: #c0b8b0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================================
   SECTION 10 — CONTACTS
   ============================================================ */
.section-contacts {
  background: var(--cream);
  padding: 80px 0;
}

.contacts-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--rust);
}

.contact-icon svg { width: 20px; height: 20px; }

.contact-detail strong {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--taupe);
  margin-bottom: 4px;
  font-weight: 600;
}

.contact-detail a,
.contact-detail span {
  color: var(--charcoal);
  font-size: 1rem;
  font-weight: 500;
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
}

.map-placeholder {
  width: 100%;
  height: 320px;
  background: #ddd5ca;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #a89f96;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  font-family: var(--font-body);
  border: 1px solid #d0c5ba;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--charcoal);
  color: #c0b8b0;
  padding: 56px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid #444;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.footer-brand img {
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-brand-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cream);
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cream);
  font-weight: 600;
  margin-bottom: 14px;
  margin-top: 0;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: #a09890;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--cream);
}

.footer-bottom {
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: #6e6560;
  margin: 0;
}

/* ============================================================
   CONTACTS SECTION
   ============================================================ */
.section-contacts {
  background: var(--cream);
  padding: 80px 0;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.contact-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--rust);
}

.contact-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
}

.contact-item h3 {
  font-size: 1.1rem;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.contact-item p {
  font-size: 0.95rem;
  color: var(--taupe);
  margin: 0;
  line-height: 1.6;
}

.contact-item a {
  color: var(--rust);
  text-decoration: none;
  font-weight: 600;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* ============================================================
   HERO SECTION RESPONSIVE
   ============================================================ */
.section-hero {
  padding: 80px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  max-width: 540px;
}

.hero-image {
  width: 100%;
  height: auto;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ============================================================
   CENTER ALIGNMENT FOR MAIN SECTIONS
   ============================================================ */
.section-benefits .container {
  text-align: center;
}

.section-philosophy .container {
  text-align: center;
}

.section-steps .container {
  text-align: center;
}

.section-products .container {
  text-align: center;
}

.section-gallery .container {
  text-align: center;
}

.section-services .container {
  text-align: center;
}

.section-testimonials .container {
  text-align: center;
}

.section-faq .container {
  text-align: center;
}

/* Restore left alignment for specific nested elements where needed */
.benefits-grid { text-align: center; }
.services-list { text-align: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .gallery-item:nth-child(1) { grid-column: span 12; }
  .gallery-item:nth-child(2) { grid-column: span 12; }
  .gallery-item:nth-child(3) { grid-column: span 12; }
  .gallery-item:nth-child(4) { grid-column: span 6; }
  .gallery-item:nth-child(5) { grid-column: span 6; }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-nav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .contacts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contacts-grid .contact-item:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 50%;
  }
}

@media (max-width: 600px) {
  .header-cta .btn { display: none; }
  
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-text {
    max-width: 100%;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
  
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5) { grid-column: span 12; }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-nav-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer-bottom { text-align: center; }
  
  .contacts-grid {
    grid-template-columns: 1fr;
  }
}
