/* ==========================================================================
   KATO Patisserie La Fourmi - Complete Design System & Styles
   ========================================================================== */

:root {
  --bg-color: #edf6f4;
  --text-color: #333333;
  --text-muted: #515151;
  --white: #ffffff;
  --font-en: 'Jost', sans-serif;
  --font-ja: 'Zen Kaku Gothic New', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --container-max-width: 1280px;
}

/* --- Reset & Global --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-ja);
  font-weight: 400; /* Regular weight as requested */
  line-height: 1.8;
  letter-spacing: 1.6px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

.container {
  max-width: var(--container-max-width); /* 1280px */
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Typography --- */
.section-title {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 8.4px;
  line-height: 39.2px;
  text-align: center;
  margin-bottom: 50px;
  color: var(--text-color);
}

/* --- Header & Desktop Logo (Hidden on FV, visible after scroll, black logo) --- */
.site-header {
  position: fixed;
  top: 30px;
  left: 30px;
  z-index: 1000;
}

.header-logo {
  display: inline-block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.site-header.scrolled .header-logo {
  opacity: 1;
  visibility: visible;
}

.header-logo .logo-img {
  width: 130px;
  height: 50px;
  object-fit: contain;
  filter: none; /* Black logo */
}

/* --- Side Navigation (Desktop: Left-aligned to ONLINE SHOP button) --- */
.side-nav {
  position: fixed;
  top: 50px;
  right: 30px;
  z-index: 1000;
}

.nav-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Left-aligned to ONLINE SHOP button */
  width: 188px; /* Matches ONLINE SHOP button width */
  gap: 24px;
}

.btn-online-shop {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 188px;
  height: 64px;
  padding: 20px 30px;
  border: 1px solid var(--text-color);
  border-radius: 32px;
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1.6px;
  line-height: 22.4px;
  color: #424242;
  background: var(--white);
  transition: all 0.3s ease;
}

.btn-online-shop:hover {
  background: var(--text-color);
  color: var(--white);
}

.nav-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Left-aligned */
  gap: 20px;
  padding-left: 30px;
}

.nav-link {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1.6px;
  line-height: 22.4px;
  color: #0d0d0d;
  transition: opacity 0.3s ease;
}

.nav-link-baum .en {
  font-family: var(--font-en);
  font-size: 16px;
  letter-spacing: 1.6px;
}

.nav-link-baum .ja {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 1.6px;
}

.nav-link:hover {
  opacity: 0.6;
}

.sns-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding-left: 30px;
  margin-top: 5px;
}

.sns-icon {
  color: #000000;
  font-size: 28px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.sns-icon:hover {
  transform: translateY(-2px);
  opacity: 0.7;
}

/* --- Hero Section (FV) --- */
.hero-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.15);
}

.hero-content {
  position: relative;
  z-index: 10;
  color: var(--white);
  padding: 0 20px;
}

.hero-mark-box {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mark-img {
  width: 300px;
  max-width: 70vw;
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.container {
  max-width: var(--container-max-width); /* 1280px */
  margin: 0 auto;
  padding: 0 80px;
}

/* --- Section 2: Exterior & Vertical Text --- */
.concept-section {
  padding: 120px 0 100px;
  background-color: var(--bg-color);
}

.concept-container {
  max-width: var(--container-max-width); /* 1280px */
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.concept-image-box {
  width: 750px;
  max-width: 58vw;
  height: 500px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.concept-text-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* Vertical title is right-aligned to horizontal sub */
  justify-content: space-between;
  height: 500px;
}

.vertical-title {
  writing-mode: vertical-rl;
  font-family: var(--font-ja);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 10px;
  line-height: 28px;
  color: #333333;
  height: 420px;
}

.horizontal-sub {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 3px;
  line-height: 28px;
  color: #333333;
}

/* --- ABOUT Section --- */
.about-section {
  padding: 100px 0 120px;
  text-align: center;
}

.about-text-content {
  max-width: 100%;
  margin: 0 auto 100px;
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 400;
  line-height: 28.8px;
  letter-spacing: 1.6px;
  color: #333333;
}

.about-text-content p {
  margin-bottom: 2rem;
}

.about-text-content p:last-child {
  margin-bottom: 0;
}

.about-images-grid {
  display: flex;
  justify-content: space-between;
  max-width: var(--container-max-width); /* 1280px */
  margin: 0 auto;
  padding: 0;
  position: relative;
}

.about-img-box {
  width: 500px;
  max-width: 42vw;
  height: 333px;
  border-radius: 2px;
  overflow: hidden;
}

.about-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-box.img-right {
  margin-top: 220px;
}

/* --- KATOのバウム Section --- */
.baumkuchen-section {
  padding: 120px 0 120px;
}

.baum-hero-img-box {
  max-width: 1280px; /* 1280px max width */
  height: 725px;
  margin: 0 auto 100px;
  overflow: hidden;
}

.baum-hero-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.baum-main-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  max-width: 1280px;
  margin: 0 auto;
}

.baum-video-box {
  width: 409px;
  height: 727px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.baum-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.baum-content {
  flex: 1;
  text-align: center;
}

.baum-title {
  font-size: 28px;
  font-weight: 500;
  line-height: 39.2px;
  margin-bottom: 1.5rem;
  color: #333333;
}

.baum-title .en {
  font-family: var(--font-en);
  letter-spacing: 8.4px;
}

.baum-title .ja {
  font-family: var(--font-ja);
  font-weight: 400;
  letter-spacing: 5.6px;
}

.baum-subtitle {
  font-family: var(--font-ja);
  font-size: 18px;
  font-weight: 400;
  line-height: 25.2px;
  letter-spacing: 3.6px;
  margin-bottom: 2.5rem;
  color: #333333;
}

.baum-text {
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 400;
  line-height: 28.8px;
  letter-spacing: 1.6px;
  color: #333333;
  margin-bottom: 3rem;
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 64px;
  padding: 20px 30px;
  border: 1px solid #424242;
  border-radius: 32px;
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1.6px;
  color: #424242;
  background: var(--white);
  transition: all 0.3s ease;
}

.btn-read-more:hover {
  background: #424242;
  color: var(--white);
}

/* --- GOOGLE MEO WIDGET SECTION --- */
.gmb-section {
  padding: 60px 0 80px;
  background-color: var(--bg-color);
}

/* --- ACCESS Section --- */
.access-section {
  padding: 120px 0 100px;
  text-align: center;
}

.access-info {
  margin-bottom: 60px;
}

.access-address-block {
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 400;
  line-height: 2.2;
  letter-spacing: 1.8px;
  color: #333333;
}

.map-container {
  max-width: 1280px; /* 1280px max width */
  margin: 0 auto;
  border-radius: 4px;
  overflow: hidden;
}

/* --- CONTACT Section --- */
.contact-section {
  padding: 100px 0 140px;
  text-align: center;
}

.contact-desc {
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1.6px;
  line-height: 28.8px;
  margin-bottom: 2.5rem;
  color: #333333;
}

.phone-box {
  display: inline-block;
}

.phone-number {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ja);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 2.4px;
  line-height: 43.2px;
  color: #333333;
  transition: opacity 0.3s ease;
}

.phone-number:hover {
  opacity: 0.7;
}

.phone-icon {
  width: 24px;
  height: 24px;
}

/* --- FOOTER --- */
.site-footer {
  background-color: var(--white);
  padding: 35px 0;
  text-align: center;
}

.copyright {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 1.2px;
  line-height: 16.8px;
  color: #333333;
}

/* --- Overlay Backdrop for Mobile Menu --- */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.drawer-close-btn {
  display: none;
}

/* ==========================================================================
   Mobile & Tablet Responsiveness (Max Width: 840px)
   ========================================================================== */

@media screen and (max-width: 840px) {
  /* Body & Overall Mobile Font Scaling */
  html {
    font-size: 14px;
  }

  body {
    font-size: 14px;
    letter-spacing: 1.2px;
  }

  /* Header (ALWAYS transparent on mobile, no solid background on scroll) */
  .site-header {
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  /* Mobile Header Logo: Smaller matching original site */
  .header-logo .logo-img {
    width: 90px;
    height: 32px;
  }

  .hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1005;
  }

  .hamburger-line {
    width: 22px;
    height: 2px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
  }

  /* Exact Mobile Drawer Card (Flush right edge, width 220px, height 80%) */
  .side-nav {
    position: fixed;
    top: 10vh;
    right: -100%;
    width: 220px; /* Exact 220px width */
    height: 80vh;  /* Exact 80% height */
    background: var(--white);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: -4px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 50px 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .side-nav.active {
    right: 0; /* Flush against right edge with no gap */
  }

  .drawer-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1003;
  }

  .close-line {
    display: block;
    width: 18px;
    height: 2px;
    background-color: #333333;
    border-radius: 1px;
  }

  .nav-container {
    width: 100%;
    align-items: flex-start;
    gap: 28px;
  }

  .btn-online-shop {
    width: 100%;
    height: 48px;
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 24px;
  }

  .nav-links {
    align-items: flex-start;
    padding-left: 12px;
    gap: 20px;
  }

  .nav-link {
    font-size: 15px;
  }

  .sns-links {
    padding-left: 12px;
    gap: 20px;
  }

  .sns-icon {
    font-size: 24px;
  }

  .section-title {
    font-size: 22px;
    letter-spacing: 6px;
    margin-bottom: 35px;
  }

  /* Concept Section Mobile */
  .concept-container {
    flex-direction: column;
    padding: 0 24px;
    gap: 30px;
  }

  .concept-image-box {
    width: 100%;
    max-width: 100%;
    height: 240px;
  }

  .concept-text-box {
    height: auto;
    align-items: center;
    margin-right: 0;
  }

  .vertical-title {
    writing-mode: horizontal-tb;
    height: auto;
    font-size: 16px;
    letter-spacing: 4px;
    text-align: center;
    margin-bottom: 12px;
  }

  .horizontal-sub {
    font-size: 15px;
    letter-spacing: 2px;
    text-align: center;
  }

  /* About Section Mobile */
  .about-text-content {
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 60px;
  }

  .about-images-grid {
    flex-direction: column;
    padding: 0 24px;
    gap: 24px;
  }

  .about-img-box {
    width: 100%;
    max-width: 100%;
    height: 220px;
  }

  .about-img-box.img-right {
    margin-top: 0;
  }

  /* Baum Section Mobile (ORDER: Text FIRST, Video SECOND) */
  .baum-hero-img-box {
    height: 320px;
    margin-bottom: 60px;
  }

  .baum-main-grid {
    flex-direction: column-reverse; /* Text content FIRST, Video SECOND on mobile */
    gap: 40px;
  }

  .baum-video-box {
    width: 100%;
    max-width: 320px;
    height: 560px;
  }

  .baum-title {
    font-size: 22px;
  }

  .baum-subtitle {
    font-size: 15px;
  }

  .baum-text {
    font-size: 14px;
    line-height: 1.9;
  }

  /* Access & Contact Mobile */
  .access-address-block {
    font-size: 14px;
    line-height: 2.0;
  }

  .contact-desc {
    font-size: 14px;
  }

  .phone-number {
    font-size: 20px;
  }
}
