/* Body */
html,
body {
  overflow-x: hidden;
  width: 100%;
  background-color: #ffffff;
}

/* ========================================
   HERO SECTION - Main Carousel
   ======================================== */

.hero-section {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 500px;
  max-height: 100vh;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Large screens (1920px+) */
@media only screen and (min-width: 1920px) {
  .hero-section {
    max-width: 1920px;
    margin: 0 auto;
  }

  .hero-content {
    max-width: 1200px;
  }

  .cta-button img {
    /* Large desktop: 120px - 140px */
    max-width: clamp(120px, 8vw, 140px);
    width: clamp(120px, 8vw, 140px);
  }
}

/* Landscape orientation on mobile */
@media only screen and (max-width: 900px) and (orientation: landscape) {
  .hero-section {
    aspect-ratio: 16 / 9;
    min-height: 400px;
    max-height: 100vh;
  }

  .hero-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }

  .hero-cta {
    bottom: clamp(30px, 8vh, 60px);
  }

  .cta-button img {
    /* Landscape mobile: slightly larger */
    max-width: clamp(100px, 20vw, 140px);
    width: clamp(100px, 20vw, 140px);
  }
}

.hero-carousel {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Slides Container - Using semantic <ul> */
.hero-slides {
  width: 100%;
  height: 100%;
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Individual Slide - Using semantic <li> */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* Ensure image always fills container */
  position: absolute;
  top: 0;
  left: 0;
  /* Prevent image from being smaller than container */
  object-fit: cover;
  /* Ensure no gaps */
  vertical-align: top;
}

/* Hero Content Overlay */
.hero-content {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: min(1200px, 100vw);
  height: 100%;
  z-index: 5;
  padding: 0 clamp(20px, 4vw, 40px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  pointer-events: none;
}

.hero-content > * {
  pointer-events: auto;
}

.hero-text {
  text-align: left;
  color: #fff;
  margin: 0 0 2rem 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  margin: 0;
  line-height: 1.6;
  white-space: nowrap;
  font-family: "Hina Mincho", serif;
  letter-spacing: 0.074em;
  font-weight: 400;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* Allow line breaks on mobile */
@media only screen and (max-width: 600px) {
  .hero-title {
    white-space: normal;
  }
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  margin: 0.5rem 0 0 0;
  opacity: 0.95;
  white-space: nowrap;
}

/* CTA Button Container */
.hero-cta {
  position: absolute;
  bottom: clamp(60px, 12vh, 140px);
  right: clamp(15px, 3vw, 40px);
  z-index: 6;
}

/* CTA Button */
.cta-button {
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
  text-decoration: none;
  outline: none;
  border: none;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.cta-button:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.cta-button:active {
  transform: scale(1.02);
}

.cta-button:focus {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
  border-radius: 2px;
}

.cta-button:focus:not(:focus-visible) {
  outline: none;
}

.cta-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
  border-radius: 2px;
}

.cta-button img {
  display: block;
  width: auto;
  height: auto;
  /* Fluid sizing: scales from 60px (mobile) to 120px (desktop) */
  max-width: clamp(60px, 8vw, 120px);
  width: clamp(60px, 8vw, 120px);
  height: auto;
  transition: transform 0.3s ease;
  object-fit: contain;
}

/* Navigation Indicators */
.hero-indicators {
  position: absolute;
  bottom: clamp(20px, 4vh, 30px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-indicators .indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  padding: 0;
  margin: 0;
  background-clip: padding-box;
  /* Reset button styles */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  flex-shrink: 0;
  /* Touch-friendly sizing */
  min-width: 12px;
  min-height: 12px;
  touch-action: manipulation;
}

.hero-indicators .indicator:hover {
  background-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

.hero-indicators .indicator:active {
  transform: scale(1.1);
}

.hero-indicators .indicator:focus {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.hero-indicators .indicator:focus:not(:focus-visible) {
  outline: none;
}

.hero-indicators .indicator:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.hero-indicators .indicator.active {
  background-color: #fff;
  width: 14px;
  height: 14px;
}

/* Tablet Responsive */
@media only screen and (max-width: 1024px) and (min-width: 601px) {
  .hero-section {
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 450px;
    max-height: 85vh;
  }

  .hero-content {
    padding: 0 clamp(20px, 3vw, 30px);
  }

  .hero-title {
    font-size: clamp(2.5rem, 4vw, 3rem);
    line-height: 1.6;
    letter-spacing: 0.055em;
    white-space: normal;
  }

  .hero-text {
    margin-bottom: 1.5rem;
  }

  .hero-cta {
    bottom: clamp(80px, 10vh, 120px);
    right: clamp(15px, 3vw, 30px);
  }

  .cta-button img {
    /* Tablet: 140px - 180px */
    max-width: clamp(140px, 15vw, 180px);
    width: clamp(140px, 15vw, 180px);
    height: auto;
  }

  .hero-indicators {
    bottom: clamp(20px, 3vh, 30px);
    gap: 10px;
  }
}

  .frame-3 .x1 {
    flex-direction: column !important;
    padding: 50px 20px !important;
    gap: 40px !important;
  }

  .frame-3 .x1-b_11_tn1096_005-1 {
    width: 100% !important;
    height: auto !important;
  }

  .frame-3 .x1 .vertical-text {
    width: 100% !important;
    padding: 40px 20px !important;
  }
}

/* Mobile Responsive */
@media only screen and (max-width: 600px) {
  .hero-section {
    margin-top: 0;
    aspect-ratio: 3 / 4;
    height: auto;
    min-height: 400px;
    max-height: 65vh;
    position: relative;
  }

  .frame-3 .x1 {
    flex-direction: column !important;
    padding: 40px 15px !important;
    gap: 30px !important;
    margin-top: 0 !important;
  }

  .frame-3 .x1-b_11_tn1096_005-1 {
    width: 100% !important;
    height: auto !important;
  }

  .frame-3 .x1 .vertical-text {
    width: 100% !important;
    padding: 30px 15px !important;
    gap: 15px !important;
    flex-direction: column !important;
  }

  .frame-3 .x1 .column-1,
  .frame-3 .x1 .column {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    flex-direction: row !important;
  }

  .hero-content {
    padding: 0 15px;
    max-width: 100%;
  }

  .hero-text {
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    line-height: 1.5;
    letter-spacing: 0.04em;
    white-space: normal;
    word-break: keep-all;
  }

  .hero-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    white-space: normal;
  }

  .hero-cta {
    bottom: clamp(50px, 8vh, 60px);
    right: 15px;
    left: auto;
  }

  .cta-button {
    display: inline-block;
  }

  .cta-button img {
    /* Mobile: 120px - 150px */
    max-width: clamp(120px, 25vw, 150px);
    width: clamp(120px, 25vw, 150px);
    height: auto;
  }

  .hero-indicators {
    bottom: 20px;
    gap: 10px;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-indicators .indicator {
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
    flex-shrink: 0;
    /* Larger touch target on mobile */
    padding: 4px;
    margin: -4px;
  }

  .hero-indicators .indicator.active {
    width: 12px;
    height: 12px;
  }
}

/* Small Mobile Responsive */
@media only screen and (max-width: 480px) {
  /* Prevent horizontal overflow */
  html,
  body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-section {
    aspect-ratio: 3 / 4;
    height: auto;
    min-height: 350px;
    max-height: 60vh;
  }

  .hero-content {
    padding: 0 12px;
    max-width: 100%;
  }

  .hero-text {
    margin-bottom: 1.25rem;
    width: 100%;
  }

  .hero-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.5;
    letter-spacing: 0.03em;
    word-break: keep-all;
  }

  .hero-cta {
    bottom: clamp(40px, 6vh, 50px);
    right: 12px;
    left: auto;
  }

  .cta-button img {
    /* Small mobile: 70px - 100px */
    max-width: clamp(70px, 20vw, 100px);
    width: clamp(70px, 20vw, 100px);
    height: auto;
  }

  .hero-indicators {
    bottom: 15px;
    gap: 8px;
    padding: 0 12px;
  }

  .hero-indicators .indicator {
    width: 9px;
    height: 9px;
    min-width: 9px;
    min-height: 9px;
    padding: 4px;
    margin: -4px;
  }

  .hero-indicators .indicator.active {
    width: 11px;
    height: 11px;
  }

  /* Fix frame-3 container overflow */
  .frame-3 {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* Fix fixed-width elements */
  .frame-3 .x1 {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    padding: 30px 10px !important;
    gap: 20px !important;
    box-sizing: border-box !important;
  }

  .frame-3 .x1-b_11_tn1096_005-1 {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .frame-3 .x1 .vertical-text {
    padding: 20px 10px !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .frame-3 .x2 {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    box-sizing: border-box !important;
  }

  .frame-3 .x2-1 {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    box-sizing: border-box !important;
  }

  /* Fix absolute positioned elements that extend beyond viewport */
  .frame-3 .heading-2-3-d,
  .frame-3 .x3-d-virtual-modelhouse,
  .frame-3 .x3-d {
    left: 50% !important;
    transform: translateX(-50%) !important;
    max-width: calc(100% - 20px) !important;
    box-sizing: border-box !important;
  }

  .frame-3 .heading-2,
  .frame-3 .model-house {
    left: 10px !important;
    max-width: calc(100% - 20px) !important;
  }

  /* Fix container-5 and other containers */
  .frame-3 .container-5,
  .frame-3 .container-6,
  .frame-3 .container-7,
  .frame-3 .container-8,
  .frame-3 .container-9,
  .frame-3 .container-10,
  .frame-3 .container-11,
  .frame-3 .container-12,
  .frame-3 .container-13 {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    box-sizing: border-box !important;
  }

  /* Fix elements with large left values that push content off-screen */
  .frame-3 [style*="left"] {
    max-width: 100% !important;
  }

  /* General fix for all absolutely positioned elements */
  .frame-3 > * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Fix specific elements with large left values */
  .frame-3 .image-1,
  .frame-3 .image-2,
  .frame-3 .x3-d-1,
  .frame-3 .x3-d-2,
  .frame-3 .view,
  .frame-3 .view-1 {
    max-width: 100% !important;
    left: auto !important;
    right: auto !important;
  }

  /* Ensure body and html don't force min-width */
  body.frame-3,
  html {
    overflow-x: hidden !important;
  }
}

/* Responsive for 375px */
@media only screen and (max-width: 375px) {
  .hero-section {
    aspect-ratio: 3 / 4;
    height: auto;
    min-height: 320px;
    max-height: 55vh;
  }

  .hero-title {
    font-size: clamp(1.25rem, 3.5vw, 1.75rem);
    line-height: 1.5;
    letter-spacing: 0.025em;
  }

  .hero-content {
    padding: 0 12px;
    max-width: 100%;
  }

  .hero-text {
    margin-bottom: 1.25rem;
    width: 100%;
  }

  .hero-title {
    font-size: clamp(1.25rem, 3.5vw, 1.75rem);
    line-height: 1.5;
    letter-spacing: 0.025em;
  }

  .hero-cta {
    bottom: clamp(35px, 5vh, 45px);
    right: 12px;
    left: auto;
  }

  .cta-button img {
    /* 375px: 60px - 80px */
    max-width: clamp(60px, 18vw, 80px);
    width: clamp(60px, 18vw, 80px);
    height: auto;
  }

  .hero-indicators {
    bottom: 15px;
    gap: 8px;
    padding: 0 12px;
  }

  .hero-indicators .indicator {
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
    padding: 4px;
    margin: -4px;
  }

  .hero-indicators .indicator.active {
    width: 10px;
    height: 10px;
  }

  .frame-3 .x1 {
    padding: 25px 8px !important;
    gap: 15px !important;
  }

  .frame-3 .x1 .vertical-text {
    padding: 15px 8px !important;
    gap: 8px !important;
    font-size: 32px !important;
  }

  /* FAQ Section Responsive */
  .frame-3 .faq-accordion {
    margin-left: 0 !important;
    margin-right: 15px !important;
    margin-top: 22px !important;
  }

  .frame-3 .faq-question {
    padding: 30px 20px 30px 20px !important;
    min-height: auto !important;
  }

  .frame-3 .faq-q-icon {
    width: 28px !important;
    height: 26px !important;
    font-size: 17px !important;
    margin-right: 7px !important;
  }

  .frame-3 .faq-question-text {
    font-size: 17px !important;
    padding: 0 15px !important;
    line-height: 1.5 !important;
  }

  .frame-3 .faq-toggle-icon {
    width: 17px !important;
    height: 17px !important;
    font-size: 22px !important;
  }

  .frame-3 .faq-answer {
    padding: 0 20px !important;
  }

  .frame-3 .faq-item.active .faq-answer {
    padding: 18px 20px 25px !important;
  }

  .frame-3 .faq-answer p {
    font-size: 14px !important;
    line-height: 1.7 !important;
  }

  /* Area Info Table Responsive */
  .frame-3 .area-info-table {
    font-size: 13px !important;
  }

  .frame-3 .area-info-table td {
    padding: 18px 30px !important;
  }

  .frame-3 .area-info-table .city-name {
    width: 150px !important;
    font-size: 15px !important;
    padding: 18px 15px !important;
  }

  .frame-3 .area-info-table .city-description {
    font-size: 13px !important;
    line-height: 1.6 !important;
  }
}

/* Responsive for 325px */
@media only screen and (max-width: 325px) {
  .hero-section {
    aspect-ratio: 3 / 4;
    height: auto;
    min-height: 280px;
    max-height: 50vh;
  }

  .hero-title {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    line-height: 1.5;
    letter-spacing: 0.02em;
  }

  .hero-content {
    padding: 0 10px;
    max-width: 100%;
  }

  .hero-text {
    margin-bottom: 1rem;
    width: 100%;
  }

  .hero-title {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    line-height: 1.5;
    letter-spacing: 0.02em;
  }

  .hero-cta {
    bottom: clamp(30px, 4vh, 40px);
    right: 10px;
    left: auto;
  }

  .cta-button img {
    /* 325px: 50px - 65px */
    max-width: clamp(50px, 16vw, 65px);
    width: clamp(50px, 16vw, 65px);
    height: auto;
  }

  .hero-indicators {
    bottom: 12px;
    gap: 6px;
    padding: 0 10px;
  }

  .hero-indicators .indicator {
    width: 7px;
    height: 7px;
    min-width: 7px;
    min-height: 7px;
    padding: 4px;
    margin: -4px;
  }

  .hero-indicators .indicator.active {
    width: 9px;
    height: 9px;
  }

  .frame-3 .x1 {
    padding: 20px 6px !important;
    gap: 12px !important;
  }

  .frame-3 .x1 .vertical-text {
    padding: 12px 6px !important;
    gap: 6px !important;
    font-size: 28px !important;
  }

  /* FAQ Section Responsive */
  .frame-3 .faq-accordion {
    margin-left: 0 !important;
    margin-right: 10px !important;
    margin-top: 20px !important;
  }

  .frame-3 .faq-question {
    padding: 25px 15px 25px 15px !important;
    min-height: auto !important;
  }

  .frame-3 .faq-q-icon {
    width: 26px !important;
    height: 24px !important;
    font-size: 16px !important;
    margin-right: 6px !important;
  }

  .frame-3 .faq-question-text {
    font-size: 16px !important;
    padding: 0 12px !important;
    line-height: 1.4 !important;
  }

  .frame-3 .faq-toggle-icon {
    width: 16px !important;
    height: 16px !important;
    font-size: 20px !important;
  }

  .frame-3 .faq-answer {
    padding: 0 15px !important;
  }

  .frame-3 .faq-item.active .faq-answer {
    padding: 15px 15px 20px !important;
  }

  .frame-3 .faq-answer p {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  /* Area Info Table Responsive */
  .frame-3 .area-info-table {
    font-size: 12px !important;
  }

  .frame-3 .area-info-table td {
    padding: 15px 20px !important;
  }

  .frame-3 .area-info-table .city-name {
    width: 120px !important;
    font-size: 14px !important;
    padding: 15px 10px !important;
  }

  .frame-3 .area-info-table .city-description {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }
}

/* x1 Section - Intro with image and vertical text */
.frame-3 .x1 {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 40px !important;
  padding: 60px 20px !important;
  box-sizing: border-box !important;
  background-color: #ffffff;
  margin: 0;
}

.frame-3 .x1-b_11_tn1096_005-1 {
  width: 50% !important;
  height: auto !important;
  max-width: 100% !important;
  margin-top: 0 !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
}

.frame-3 .x1 .vertical-text {
  width: 50% !important;
  height: auto !important;
  margin-top: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 20px !important;
  padding: 40px 20px !important;
  box-sizing: border-box !important;
}

/* ========================================
   INTRO SECTION - Image with Vertical Text
   ======================================== */

.intro-section {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: clamp(40px, 6vh, 80px) 0 clamp(40px, 6vh, 80px) 0;
  box-sizing: border-box;
  background-color: #ffffff;
  overflow: hidden;
}

.intro-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: clamp(20px, 4vw, 60px);
  justify-content: flex-start;
}

.intro-image {
  flex: 0 0 auto;
  width: 60%;
  max-width: 60%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.intro-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.intro-text-vertical {
  flex: 1 1 40%;
  max-width: 40%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(12px, 2vw, 20px);
  padding: clamp(20px, 4vh, 40px) clamp(15px, 3vw, 30px);
  box-sizing: border-box;
}

.vertical-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
}

.vertical-char {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  color: #000000;
  line-height: 1.2;
  letter-spacing: 0;
  display: block;
  text-align: center;
}

/* Mobile: Horizontal text layout */
@media only screen and (max-width: 600px) {
  .intro-text-vertical {
    flex-direction: column;
    gap: 8px;
  }

  .vertical-column {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    flex-direction: row;
    gap: 0;
    justify-content: center;
  }

  .vertical-char {
    display: inline;
    margin: 0 2px;
  }
}

.vertical-char {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  color: #000000;
  line-height: 1.2;
  letter-spacing: 0;
  display: block;
  text-align: center;
}

/* Tablet Responsive */
@media only screen and (max-width: 1024px) and (min-width: 601px) {
  .intro-section {
    padding: clamp(30px, 5vh, 60px) 0;
  }

  .intro-container {
    flex-direction: row;
    gap: clamp(20px, 3vw, 40px);
  }

  .intro-image {
    width: 60%;
    max-width: 60%;
  }

  .intro-text-vertical {
    flex: 1 1 40%;
    max-width: 40%;
    gap: clamp(10px, 1.5vw, 16px);
    padding: clamp(20px, 3vh, 30px) clamp(15px, 2vw, 20px);
  }

  .vertical-column {
    writing-mode: vertical-rl;
    text-orientation: upright;
  }

  .vertical-char {
    font-size: clamp(24px, 2.5vw, 36px);
  }
}

/* Mobile Responsive */
@media only screen and (max-width: 600px) {
  .intro-section {
    padding: clamp(30px, 4vh, 50px) 0;
  }

  .intro-container {
    flex-direction: column;
    gap: clamp(20px, 3vh, 30px);
  }

  .intro-image {
    width: 100%;
    max-width: 100%;
  }

  .intro-text-vertical {
    flex: 1 1 100%;
    max-width: 100%;
    flex-direction: row;
    gap: clamp(8px, 2vw, 12px);
    padding: clamp(20px, 3vh, 30px) clamp(15px, 2vw, 20px);
    justify-content: center;
  }

  .vertical-column {
    writing-mode: vertical-rl;
    text-orientation: upright;
    flex-direction: column;
    gap: 4px;
    justify-content: flex-start;
  }

  .vertical-char {
    font-size: clamp(20px, 3.5vw, 28px);
    display: block;
    margin: 0;
  }
}

/* Small Mobile Responsive */
@media only screen and (max-width: 480px) {
  .intro-section {
    padding: clamp(25px, 3vh, 40px) clamp(12px, 2vw, 15px);
  }

  .intro-container {
    gap: clamp(15px, 2vh, 25px);
  }

  .intro-text-vertical {
    gap: clamp(10px, 1.5vw, 12px);
    padding: clamp(15px, 2vh, 25px) clamp(12px, 1.5vw, 15px);
  }

  .vertical-char {
    font-size: clamp(20px, 3.5vw, 28px);
  }
}

/* Extra Small Mobile */
@media only screen and (max-width: 375px) {
  .intro-section {
    padding: clamp(20px, 2.5vh, 30px) 10px;
  }

  .intro-container {
    gap: clamp(12px, 1.5vh, 20px);
  }

  .intro-text-vertical {
    gap: 8px;
    padding: clamp(12px, 1.5vh, 20px) 10px;
  }

  .vertical-char {
    font-size: clamp(18px, 3vw, 24px);
  }
}

/* Tiny Screens */
@media only screen and (max-width: 325px) {
  .intro-section {
    padding: 15px 8px;
  }

  .intro-container {
    gap: 12px;
  }

  .intro-text-vertical {
    gap: 6px;
    padding: 12px 8px;
  }

  .vertical-char {
    font-size: clamp(16px, 2.5vw, 22px);
  }
}

/* Landscape Mobile */
@media only screen and (max-width: 900px) and (orientation: landscape) {
  .intro-container {
    flex-direction: row;
  }

  .intro-image {
    flex: 1 1 60%;
    max-width: 60%;
  }

  .intro-text-vertical {
    flex: 1 1 40%;
    max-width: 40%;
  }
}

/* Legacy support - keep old classes working */
.frame-3 .x1 {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 40px !important;
  padding: 60px 20px !important;
  box-sizing: border-box !important;
  background-color: #ffffff;
  margin: 0;
}

.frame-3 .x1-b_11_tn1096_005-1 {
  width: 50% !important;
  height: auto !important;
  max-width: 100% !important;
  margin-top: 0 !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
}

.frame-3 .x1 .vertical-text {
  width: 50% !important;
  height: auto !important;
  margin-top: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 20px !important;
  padding: 40px 20px !important;
  box-sizing: border-box !important;
}
  background-color: #ffffff;
  display: flex;
  align-items: stretch;
  position: relative;
  padding-top: 120px;
  padding-bottom: 120px;
}

.intro-image {
  width: 50%;
  flex-shrink: 0;
}

.intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.intro-wrapper {
  width: 50%;
  max-width: 1200px;
  margin-left: 0;
  padding-left: 150px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}

.intro-text {
  background-color: #ffffff;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
  box-sizing: border-box;
  height: 100%;
}

.intro-text-pc {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.intro-text-sp {
  display: none;
}

.intro-line-1,
.intro-line-2,
.intro-line-3 {
  margin: 0;
  font-family: "Hina Mincho", serif;
  margin-left: 5px;
  line-height: 1.3;
  color: #333;
  font-size: 3rem;
  letter-spacing: 0.25em;
  writing-mode: vertical-rl;
  text-orientation: upright;
}
/* Intro Section Responsive */
@media only screen and (max-width: 1024px) {
  .intro-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .intro-wrapper {
    padding-left: 40px;
  }

  .intro-text {
    padding: 40px 0;
  }

  .intro-line-1,
  .intro-line-2,
  .intro-line-3 {
    font-size: 1.8rem;
    margin-left: 15px;
  }
}

@media only screen and (max-width: 768px) {
  .intro-section {
    flex-direction: column;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .intro-image {
    width: 100%;
  }

  .intro-wrapper {
    width: 100%;
    max-width: 100%;
    padding-left: 20px;
  }

  .intro-text {
    padding: 40px 0;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-direction: column;
  }

  .intro-text-pc {
    display: none;
  }

  .intro-text-sp {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .intro-line-1,
  .intro-line-2,
  .intro-line-3 {
    font-size: 1.5rem;
    margin: 0;
    margin-bottom: 10px;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    margin-left: 0;
  }
}

@media only screen and (max-width: 480px) {
  .intro-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .intro-wrapper {
    padding-left: 15px;
  }

  .intro-text {
    padding: 30px 0;
    flex-direction: column;
  }

  .intro-text-pc {
    display: none;
  }

  .intro-text-sp {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .intro-line-1,
  .intro-line-2,
  .intro-line-3 {
    font-size: 1.3rem;
    margin: 0;
    margin-bottom: 8px;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    margin-left: 0;
  }
}

/* Three Content Section */
.three-content-section {
  width: 100%;
  background-color: #ffffff;
  padding: 120px 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

.section-tilte {
  text-align: center;
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 10px;
  letter-spacing: 0.1em;
  font-family: serif;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 80px;
  letter-spacing: 0.1em;
  color: #666;
}

.section-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  box-sizing: border-box;
}

/* Content 1 - Full Width */
.content-1 {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  grid-column: 1 / 3;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background-color: #ffffff;
  margin-bottom: 40px;
  position: relative;
}

.content-1-left {
  width: 508px;
  padding: 40px 30px;
  padding-left: max(40px, calc((100vw - 1200px) / 2 + 20px));
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
}

.content-1-t {
  font-size: 1.8rem;
  font-weight: 400;
  margin: 0 0 20px 0;
  letter-spacing: 0.1em;
  color: #333;
}

.content-1 .content-2-text {
  font-size: 1.4rem;
  line-height: 1.8;
  margin: 0;
  letter-spacing: 0.05em;
  color: #333;
}

.content-1-right {
  width: 50%;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  flex: 1;
}

.content-1-image {
  width: 1108px;
  height: 475px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

/* Content 2 - Full Width (Image Left, Text Right) */
.content-2 {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  grid-column: 1 / 3;
  width: 100%;
  background-color: #ffffff;
  margin-bottom: 40px;
  position: relative;
  transform: translateX(calc(max(40px, calc((100vw - 1200px) / 2 + 20px)) - 20px));
}

.content-2-left {
  width: 508px;
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
}

.content-2-image {
  width: 508px;
  height: 508px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.content-2-right {
  width: 50%;
  padding: 40px 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content-2-title {
  font-size: 1.8rem;
  font-weight: 400;
  margin: 0 0 20px 0;
  letter-spacing: 0.1em;
  color: #333;
}

.content-2-text {
  font-size: 1.4rem;
  line-height: 1.8;
  margin: 0;
  letter-spacing: 0.05em;
  color: #333;
}

/* Content 3 - Full Width (Text Left, Image Right) */
.content-3 {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  grid-column: 1 / 3;
  width: 100%;
  background-color: #ffffff;
}

.content-3-left {
  width: 50%;
  padding: 40px 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content-3-title {
  font-size: 1.8rem;
  font-weight: 400;
  margin: 0 0 20px 0;
  letter-spacing: 0.1em;
  color: #333;
}

.content-3-text {
  font-size: 1.4rem;
  line-height: 1.8;
  margin: 0;
  letter-spacing: 0.05em;
  color: #333;
}

.content-3-right {
  width: 50%;
  display: flex;
  align-items: stretch;
}

.content-3-image {
  width: 697px;
  height: 508px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

/* Responsive */
@media only screen and (max-width: 1024px) {
  .three-content-section {
    padding: 80px 0;
  }

  .section-tilte {
    font-size: 2.5rem;
  }

  .section-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .content-1 {
    grid-column: 1;
    width: 100%;
    margin-left: 0;
    margin-bottom: 30px;
  }

  .content-1-left {
    max-width: none;
    padding-left: 20px;
  }

  .content-2 {
    grid-column: 1;
    width: 100%;
    margin-bottom: 30px;
    transform: none;
  }

  .content-2-left {
    width: 50%;
  }

  .content-3 {
    grid-column: 1;
    width: 100%;
  }
}

@media only screen and (max-width: 768px) {
  .three-content-section {
    padding: 60px 0;
  }

  .section-tilte {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 40px;
  }

  .content-1 {
    margin-left: 0;
  }

  .content-1-left {
    width: 50%;
    max-width: none;
    padding: 25px 20px;
  }

  .content-2 {
    transform: none;
  }

  .content-2-left {
    width: 50%;
  }

  .content-2-right,
  .content-3-left {
    padding: 25px 20px;
  }

  .content-1-t,
  .content-2-title,
  .content-3-title {
    font-size: 1.5rem;
  }

  .content-1 .content-2-text,
  .content-2-text,
  .content-3-text {
    font-size: 1.2rem;
  }

  .content-1-image {
    width: 100%;
    height: auto;
    max-width: 1108px;
    aspect-ratio: 1108 / 475;
  }

  .content-2-image {
    width: 100%;
    height: auto;
    max-width: 508px;
    aspect-ratio: 1 / 1;
  }

  .content-3-image {
    width: 100%;
    height: auto;
    max-width: 697px;
    aspect-ratio: 697 / 508;
  }
}

@media only screen and (max-width: 480px) {
  .three-content-section {
    padding: 40px 0;
  }

  .section-tilte {
    font-size: 1.8rem;
  }

  .content-1 {
    margin-left: 0;
  }

  .content-1-left {
    max-width: none;
    padding: 20px 15px;
  }

  .content-2-right,
  .content-3-left {
    padding: 20px 15px;
  }

  .content-1-t,
  .content-2-title,
  .content-3-title {
    font-size: 1.3rem;
  }

  .content-1 .content-2-text,
  .content-2-text,
  .content-3-text {
    font-size: 1.1rem;
  }

  .content-1-image {
    width: 100%;
    height: auto;
    max-width: 1108px;
    aspect-ratio: 1108 / 475;
  }

  .content-2-image {
    width: 100%;
    height: auto;
    max-width: 508px;
    aspect-ratio: 1 / 1;
  }

  .content-3-image {
    width: 100%;
    height: auto;
    max-width: 697px;
    aspect-ratio: 697 / 508;
  }
}

