/* ============================
   ЯПОНИЯ — main.css
   Homepage styles
   ============================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg:          #F5F1EB;
  --white:       #FFFFFF;
  --navy:        #1C3D5A;
  --red:         #C0392B;
  --red-dark:    #A12F24;
  --text:        #1A1A1A;
  --muted:       #6B6B6B;
  --border:      #DDD8CF;
  --section-alt: #EDE9E2;
  --font:        'Noto Sans JP', sans-serif;
  --max-w:       1160px;
  --radius:      4px;
}

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

html {
  background: var(--bg);
  scroll-behavior: auto;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

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

/* ---- Typography helpers ---- */
.section-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 20px;
}

.section-text {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 600px;
}

/* ---- Photo Placeholder ---- */
.photo-placeholder {
  background: var(--section-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  font-weight: 400;
  border-radius: var(--radius);
  width: 100%;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 13px 32px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-primary:hover {
  background: #162d44;
  border-color: #162d44;
}

.btn-accent {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-accent:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

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

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* ---- Divider ---- */
.divider {
  width: 48px;
  height: 3px;
  background: var(--red);
  margin-bottom: 24px;
  border: none;
}

/* ==============================
   HEADER
   ============================== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: relative;
  z-index: 10;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

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

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.header-tagline {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ==============================
   SECTION 1 — HERO
   ============================== */
.hero {
  background: var(--navy);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: rgba(255,255,255,0.02);
  border-left: 1px solid rgba(255,255,255,0.05);
}

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

.hero-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 24px;
}

.hero-title span {
  color: var(--red);
}

.hero-text {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

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

.hero-photo {
  width: 100%;
  height: 420px;
  border-radius: var(--radius);
  object-fit: cover;
  display: block;
}

/* ==============================
   SECTION 2 — ABOUT INTRO
   ============================== */
.about-intro {
  padding: 90px 0;
  background: var(--white);
}

.about-intro-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-photo {
  height: 360px;
  border-radius: var(--radius);
}

.about-intro-text .section-text {
  margin-bottom: 24px;
}

/* ==============================
   SECTION 3 — PHILOSOPHY PILLARS
   ============================== */
.philosophy {
  padding: 90px 0;
  background: var(--section-alt);
}

.philosophy-header {
  text-align: center;
  margin-bottom: 56px;
}

.philosophy-header .section-text {
  margin: 0 auto;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  position: relative;
}

.pillar-card::before {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: var(--red);
  margin-bottom: 20px;
}

.pillar-kanji {
  font-size: 44px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}

.pillar-ruby {
  display: block;
  font-size: 12px;
  color: var(--red);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.pillar-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.pillar-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ==============================
   SECTION 4 — STATISTICS
   ============================== */
.stats {
  padding: 90px 0;
  background: var(--navy);
}

.stats-header {
  text-align: center;
  margin-bottom: 56px;
}

.stats-header .section-title {
  color: var(--white);
}

.stats-header .section-label {
  color: rgba(192, 57, 43, 0.9);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-item {
  background: var(--navy);
  padding: 48px 32px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-unit {
  font-size: 20px;
}

.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

/* ==============================
   SECTION 5 — SERVICES
   ============================== */
.services {
  padding: 90px 0;
  background: var(--white);
}

.services-header {
  margin-bottom: 56px;
}

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

.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.service-photo {
  height: 220px;
}

.service-body {
  padding: 28px;
}

.service-number {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.service-body h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.service-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ==============================
   SECTION 6 — PRODUCTS
   ============================== */
.products {
  padding: 90px 0;
  background: var(--section-alt);
}

.products-header {
  margin-bottom: 56px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-img {
  height: 200px;
}

.product-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.product-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 10px;
}

.product-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.product-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 18px;
}

.product-price span {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}

.product-body .btn {
  text-align: center;
  width: 100%;
}

/* ==============================
   SECTION 7 — PROCESS / METHOD
   ============================== */
.process {
  padding: 90px 0;
  background: var(--white);
}

.process-header {
  text-align: center;
  margin-bottom: 64px;
}

.process-header .section-text {
  margin: 0 auto;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 38px;
  left: calc(16.66% + 20px);
  right: calc(16.66% + 20px);
  height: 1px;
  background: var(--border);
}

.step {
  padding: 0 24px;
  text-align: center;
}

.step-num {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 auto 24px;
  background: var(--white);
  position: relative;
  z-index: 1;
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}

.step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ==============================
   SECTION 8 — FEATURES / WHY
   ============================== */
.features {
  padding: 90px 0;
  background: var(--section-alt);
}

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

.features-photo {
  height: 480px;
  border-radius: var(--radius);
  position: sticky;
  top: 40px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

.feature-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.feature-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ==============================
   SECTION 9 — TESTIMONIALS
   ============================== */
.testimonials {
  padding: 90px 0;
  background: var(--navy);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 56px;
}

.testimonials-header .section-title {
  color: var(--white);
}

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

.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 36px 28px;
}

.testimonial-quote {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-divider {
  width: 32px;
  height: 2px;
  background: var(--red);
  margin-bottom: 20px;
  border: none;
}

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

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}

.author-info .name {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.author-info .role {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

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

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

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

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

.contact-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--navy);
}

.contact-details label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}

.contact-details a,
.contact-details span {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

.contact-details a:hover {
  color: var(--red);
}

.contacts-map {
  height: 380px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ==============================
   FOOTER
   ============================== */
.site-footer {
  background: #111B24;
  padding: 60px 0 32px;
  color: rgba(255,255,255,0.65);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}

.footer-brand .brand-name {
  color: var(--white);
  font-size: 20px;
}

.footer-brand .brand-logo {
  filter: brightness(0) invert(1);
}

.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  margin-top: 14px;
  color: rgba(255,255,255,0.5);
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer-links a:hover {
  color: rgba(255,255,255,0.75);
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    height: 280px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .about-intro-inner,
  .features-inner,
  .contacts-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pillars-grid,
  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .process-steps::before {
    display: none;
  }

  .step {
    padding: 0;
    text-align: left;
    display: flex;
    gap: 20px;
    align-items: flex-start;
  }

  .step-num {
    margin: 0;
    width: 56px;
    height: 56px;
    font-size: 18px;
    flex-shrink: 0;
  }

  .step-content {
    flex: 1;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .features-photo {
    position: static;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 32px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    padding: 32px 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .container {
    padding: 0 16px;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner-actions {
    width: 100%;
    flex-direction: column;
  }

  .cookie-banner-actions button {
    flex: 1;
  }
}

/* ==============================
   CENTER ALIGNMENT FOR BLOCKS
   ============================== */
.about-intro .about-intro-text,
.philosophy-header,
.stats-header,
.services-header,
.process-header,
.testimonials-header {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.about-intro-text .btn {
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: fit-content;
}

.philosophy-header,
.stats-header,
.services-header,
.process-header,
.testimonials-header {
  max-width: 700px;
}

.pillars-grid,
.stats-grid,
.services-grid,
.process-steps,
.testimonials-grid {
  margin-top: 40px;
}

.pillar-card,
.stat-item,
.service-card,
.testimonial-card {
  margin-left: auto;
  margin-right: auto;
}

.about-intro-photo,
.features-photo {
  margin-left: auto;
  margin-right: auto;
}

/* ==============================
   IMAGE SIZING & OPTIMIZATION
   ============================== */
.hero-photo,
.about-photo,
.service-photo,
.product-img,
.features-photo,
.contacts-map {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-photo {
  min-height: 420px;
}

.about-photo,
.service-photo {
  min-height: 360px;
}

.product-img {
  min-height: 320px;
}

.features-photo,
.contacts-map {
  min-height: 380px;
}

@media (max-width: 768px) {
  .hero-photo {
    min-height: 300px;
  }

  .about-photo,
  .service-photo {
    min-height: 280px;
  }

  .product-img {
    min-height: 240px;
  }

  .features-photo,
  .contacts-map {
    min-height: 280px;
  }
}
