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

/* ==========================================================================
   !!! PC LAYOUT EMERGENCY FORCE RESET !!!
   ========================================================================== */
@media (min-width: 901px) {
  .mobile-header-bar,
  .mobile-fixed-logo,
  .mobile-menu-toggle,
  .mobile-menu-overlay,
  .floating-buttons-bottom,
  .mobile-only-msg-image,
  .header-nav,
  .floating-buttons,
  .menu-cta-container,
  .mobile-logo-texts {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

:root {
  --color-bg: #FEFBF6; /* Warm creamy white */
  --color-bg-alt: #F7F3E9; /* Soft Beige */
  --color-text: #5D5046; /* Warm Charcoal/Brown */
  --color-text-light: #8E7F71;
  --color-heading: #4A3E36;
  --color-accent: #ffa41f; /* Vibrant Orange (Requested) */
  --color-accent-dark: #e08c10; /* Darker orange for hovers */
  --color-accent-light: #ffebd1; /* Very light orange for pastel shades */
  --color-accent-yellow: #FFF4B0; /* Soft Yellow */
  --color-accent-pink: #F8D7DA; /* Soft Pink */
  --color-border: #E8E2D9;

  --font-serif: 'Noto Sans JP', sans-serif; /* Changed from Mincho to Thin Gothic per request */
  --font-sans: 'Zen Maru Gothic', sans-serif;
  --font-en: 'Work Sans', sans-serif;

  --shadow-subtle: 0 10px 40px rgba(74, 62, 54, 0.05); /* Warmer shadow */
  --transition: all 0.3s ease;
  
  --radius-xl: 60px;
  --radius-lg: 40px;
  --radius-md: 24px;
  --radius-sm: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 2.2;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 300;
  color: var(--color-heading);
  letter-spacing: 0.15em;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* ==========================================================================
   Layouts
   ========================================================================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-padding {
  padding: 140px 0;
}

.text-horizontal-spaced {
  letter-spacing: 0.25em;
}

.text-vertical {
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.4em;
  line-height: 2;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.floating-buttons {
  position: absolute;
  top: 40px;
  right: 40px;
  display: flex;
  gap: 12px;
  z-index: 100;
}

.btn-floating {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  padding: 14px 40px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(152, 209, 182, 0.2);
  transition: opacity 0.3s, transform 0.3s;
}

.btn-floating:hover {
  opacity: 0.85;
}

.contact-btn {
  background-color: var(--color-heading);
}

.recruit-btn {
  background-color: var(--color-accent);
}

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--color-heading);
  position: relative;
  padding-bottom: 8px;
}

.btn-line::before,
.btn-solid::before {
  content: '→';
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s, transform 0.3s;
  order: 2;
  margin-left: 8px;
}

.btn-line:hover::before,
.btn-solid:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.btn-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-accent);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.btn-line:hover::after {
  transform: scaleX(0);
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  padding: 16px 48px;
  background-color: var(--color-heading);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  border: 1px solid var(--color-heading);
}

.btn-solid:hover {
  background-color: #fff;
  color: var(--color-heading);
}

/* ==========================================================================
   Header Navbar (Minimal)
   ========================================================================== */
.header-nav {
  position: absolute;
  bottom: 80px;
  right: 40px;
  z-index: 10;
}

/* Hide duplicated desktop nav that was showing below header */
@media (min-width: 901px) {
  .header-nav {
    display: none !important;
  }
}

/* Wavy Separator */
.wavy-separator {
  width: 100%;
  height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5,73.84-4.36,147.54,16.88,218.2,35.26,69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113,14.29,1200,52.47V0Z' fill='%23F7F3E9'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}

/* ==========================================================================
   Sticky Top Header
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  /* Fixed at top */
  left: 0;
  width: 100%;
  background: rgba(254, 251, 246, 0.85); /* Slightly less translucent for readability */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999; /* Ensure high visibility over everything */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.main-header.visible {
  transform: translateY(0);
}

.sticky-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
}

.sticky-logo {
  display: flex;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-heading);
  letter-spacing: 0.15em;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

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

.btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  border-radius: 4px; /* Slightly rounded corners */
  color: #fff;
  transition: opacity 0.3s;
  gap: 6px;
}

.btn-header:hover {
  opacity: 0.8;
}

.btn-header.contact-btn {
  background-color: var(--color-heading);
}

.btn-header.recruit-btn {
  background-color: var(--color-accent);
}

.sticky-nav ul {
  display: flex;
  gap: 24px;
}

.sticky-nav a {
  font-size: 15px;
  color: var(--color-text-light);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sticky-nav a:hover,
.sticky-nav a.active {
  color: var(--color-accent);
}

.btn-square-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border: 1px solid var(--color-heading);
  border-radius: 4px;
  color: var(--color-heading);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  background-color: transparent;
  transition: all 0.3s ease;
  gap: 12px;
}

.btn-square-arrow:hover {
  background-color: var(--color-heading);
  color: #fff;
}

/* ==========================================================================
   Message Section grid updates
   ========================================================================== */

.message-image-grid, .mobile-message-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.message-image-grid img, .mobile-message-image-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px; /* Slightly rounded edges for photos */
}

.mobile-message-image-grid {
  display: none;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .message-image-grid { display: none; }
  .mobile-message-image-grid { display: grid; }
}

/* ==========================================================================
   Service Section
   ========================================================================== */
.hero-watercolor-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.deco-leaf {
  position: absolute;
  opacity: 0.15;
  filter: blur(1px);
}

.deco-1 {
  top: -5%;
  right: -5%;
  width: 40%;
  transform: rotate(15deg);
}

.bg-blob {
  position: absolute;
  opacity: 1;
  animation: blob-bounce 7.5s infinite ease-in-out alternate;
  z-index: 0;
}

.bg-blob-1 {
  top: 10%;
  left: 5%;
  width: 125px;
  height: 125px;
  background-color: var(--color-accent-light);
  animation-delay: 0s;
}

.bg-blob-2 {
  bottom: 15%;
  right: 15%;
  width: 175px;
  height: 175px;
  background-color: var(--color-accent-yellow);
  animation-delay: -1.5s;
}

.bg-blob-3 {
  top: 20%;
  right: 30%;
  width: 75px;
  height: 75px;
  background-color: var(--color-accent-pink);
  animation-delay: -3.5s;
}

.bg-blob-4 {
  bottom: 30%;
  left: 20%;
  width: 100px;
  height: 100px;
  background-color: var(--color-accent-light);
  animation-delay: -5.5s;
}

.bg-blob-5 {
  top: 40%;
  left: 2%;
  width: 60px;
  height: 60px;
  background-color: var(--color-accent-yellow);
  animation-delay: -2s;
}

.bg-blob-6 {
  bottom: 10%;
  left: 45%;
  width: 90px;
  height: 90px;
  background-color: var(--color-accent-pink);
  animation-delay: -4s;
}

.bg-blob-7 {
  top: 5%;
  right: 40%;
  width: 80px;
  height: 80px;
  background-color: var(--color-bg-alt);
  animation-delay: -6s;
}

.bg-blob-8 {
  bottom: 50%;
  right: 5%;
  width: 50px;
  height: 50px;
  background-color: var(--color-accent-light);
  animation-delay: -1s;
}

.hero {
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  overflow: visible !important;
  position: relative;
  display: flex;
  align-items: center; /* Vertical center text */
  padding: 0;
  background-color: var(--color-bg);
}

.hero-curves-bg,
.hero-curves-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-curves-bg {
  z-index: 0;
}

.hero-curves-overlay {
  z-index: 2;
  /* Clipping logic updated: 
     Left: Hero padding (80px) + Image margin (5vw)
     Right: Container (100%) - (Padding 80px + Margin 5vw + Width 45%) */
  clip-path: inset(80px calc(100% - (80px + 5vw + 45%)) 80px calc(80px + 5vw));
}

.hero-bg-line {
  position: absolute;
  left: 0;
  width: 200%;
  height: 50%;
}

.hero-bg-line path {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 0.5;
}

.hero-curves-overlay .hero-bg-line path {
  stroke: #fff;
  stroke-width: 0.8;
  /* slightly thicker for visibility over images */
}

.wave-1 {
  animation: scrollLeft 20s linear infinite;
  top: 15%;
  opacity: 0.6;
}

.wave-2 {
  animation: scrollRight 25s linear infinite;
  top: 35%;
  opacity: 0.4;
  stroke-width: 1px !important;
}

.wave-3 {
  animation: scrollLeft 30s linear infinite;
  top: 30%;
  /* Moved up from 55% (difference 25% approx 200px on 800px height) */
  opacity: 0.5;
  stroke-width: 0.5px !important;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes scrollRight {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

.hero-image-container {
  width: 81vw; /* Expanded by 1.5x */
  height: 81vw;
  max-width: 1080px;
  max-height: 1080px;
  position: absolute; /* Set absolute for overflow positioning */
  top: -10%; /* Protrude top */
  right: calc(-10% + 200px); /* Moved 200px to the left from current position */
  z-index: 1;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  animation: blob-bounce 7.5s infinite ease-in-out alternate;
}

@keyframes blob-bounce {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

/* Force image visibility and position for mobile */
.hero-slideshow .slide {
  z-index: 2 !important;
}

@media (max-width: 900px) {
  .hero-image-container {
    width: 90vw;
    height: 90vw;
    top: auto;
    bottom: 0;
    right: -10vw;
    transform: translateY(0); /* Remove transform that might affect height calculation */
    z-index: 1;
  }
}

.hero-slideshow .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  transform: scale(1.03);
  /* match the end of the animation to prevent snapping */
}

.hero-slideshow .slide.active,
.hero-slideshow .slide.exiting {
  opacity: 1;
  /* slowly scale down without showing edges */
  animation: slideShrink 10s forwards ease-out;
}

.hero-slideshow .slide.exiting {
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

@keyframes slideShrink {
  0% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1.03);
  }
}



.hero-info {
  margin-top: 60px;
  z-index: 2;
}

.hero-info-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  color: var(--color-heading);
  margin-bottom: 12px;
}

.hero-info-address {
  font-size: 0.85rem;
  color: var(--color-text);
  /* Matched to sub-catch color */
  letter-spacing: 0.15em;
  line-height: 1.8;
}

.hero-text-container {
  position: relative; /* Changed from absolute to flex flow well */
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin-left: 10%; /* Exactly 10% from left of the display area */
  margin-top: -40px; /* Moved up by 40px */
}

.hero-catch {
  font-family: var(--font-serif);
  font-size: 4.25rem; /* Increased (+4px approx) */
  color: var(--color-heading);
  line-height: 1.2;
}

.hero-subcatch {
  font-family: var(--font-serif);
  font-size: 26px; /* Increased (+2px) */
  letter-spacing: 0.15em;
  color: var(--color-text);
  margin-top: 30px;
}

.hero-marquee {
  position: absolute;
  bottom: -100px; /* Adjusted to -100px per request */
  left: 0;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10 !important; /* Ensure it's on top of everything */
}

.hero-marquee-inner {
  display: inline-block;
  padding-left: 0;
  animation: heroMarqueeSeamless 30s linear infinite;
}

.hero-en-catch {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 200px;
  letter-spacing: 0.05em;
  color: #ffa420;
  opacity: 1;
  text-transform: uppercase;
  margin: 0;
}

@keyframes heroMarqueeSeamless {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 900px) {
  .hero-en-catch {
    font-size: 80px; /* Adjusted scale for mobile */
  }
}

.en-title {
  display: block;
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 16px; /* Updated to 16px as requested */
  letter-spacing: 0.25em;
  color: var(--color-accent);
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* ==========================================================================
   Generic Asymmetric Grids
   ========================================================================== */
.asym-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

/* ==========================================================================
   Message Section ("心地よい生活を共につくる")
   ========================================================================== */
.message-section {
  background-color: var(--color-bg-alt);
  position: relative;
}

.message-section .asym-grid {
  gap: 80px; /* Added gap to ensure separation from images */
}



.message-content {
  position: relative;
  z-index: 2;
  margin-right: 0; /* Removed negative margin to prevent overlap */
}

.message-content h2 {
  font-size: 2.8rem;
  line-height: 1.5;
  margin-bottom: 16px;
  color: var(--color-heading);
}

.message-content p {
  font-size: 1rem; /* 16px */
  line-height: 2;
  color: var(--color-text-light);
  margin-bottom: 30px;
}

.philosophy-text {
  font-size: 1rem; /* 16px */
  line-height: 2;
  color: var(--color-text-light);
  margin-top: 30px;
}

.message-single-image {
  width: 100%;
  max-width: 750px; /* Increased by 1.5x from 500px */
  aspect-ratio: 1/1;
  object-fit: cover;
  transform: scaleX(-1); /* Flipped horizontally */
  animation: blob-bounce 10s infinite ease-in-out alternate;
  box-shadow: var(--shadow-subtle);
  display: block;
}

.message-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.msg-blob {
  position: absolute;
  background-color: var(--color-accent);
  opacity: 1;
  z-index: -1;
  animation: blob-bounce 10s infinite ease-in-out alternate;
}

.msg-blob-1 {
  width: 180px; /* Reduced to 60% of 300px */
  height: 180px;
  top: -40px;
  left: -40px;
}

.msg-blob-2 {
  width: 108px; /* Reduced to 60% of 180px */
  height: 108px;
  bottom: -20px;
  right: -20px;
  animation-delay: -4s;
}

.msg-blob-3 {
  width: 60px;
  height: 60px;
  top: 10%;
  right: -30px;
  animation-delay: -2s;
}

/* ==========================================================================
   Attitude Section ("目線、言葉 ケアへの姿勢") (Used for Case/Service Concept)
   ========================================================================== */
.attitude-section {
  position: relative;
}

/* Reversed Asymmetric Grid */
.attitude-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: center;
  gap: 80px;
}

.attitude-image-wrapper {
  position: relative;
}

.attitude-img-main {
  width: 80%;
}

.attitude-img-sub {
  position: absolute;
  bottom: -40px;
  right: 0;
  width: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 4px solid #fff;
}

.attitude-content h2 {
  font-size: 2.5rem;
  line-height: 1.5;
  margin-bottom: 50px;
}

.attitude-img-edge {
  position: absolute;
  top: -40px;
  right: -80px;
  width: 250px;
  opacity: 0.9;
  filter: sepia(10%) hue-rotate(180deg) saturate(60%);
}

/* ==========================================================================
   NEWS Section (Minimal Lines)
   ========================================================================== */
.news-section {
  max-width: 1200px;
  margin: 0 auto;
}

.news-container {
  display: flex;
  gap: 80px;
}

.news-left {
  width: 250px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-heading {
  display: flex;
  flex-direction: column;
}

.news-number {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: #ff3b30; /* Red from image */
  font-weight: 500;
  margin-bottom: 5px;
  letter-spacing: 0.1em;
}

.news-main-title {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 3.5rem;
  color: var(--color-heading);
  line-height: 1;
  margin-bottom: 20px;
}

.news-sub-desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-weight: 500;
}

.btn-news-all {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin-top: 60px;
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--color-heading);
  text-decoration: none;
  position: relative;
}

.btn-news-all::before {
  content: '';
  display: block;
  width: 38px;
  height: 38px;
  background-color: #ffa420; /* Brand Orange */
  /* Use radial-gradient for the dot to keep it perfectly centered and stable */
  background-image: radial-gradient(circle at center, #fff 3px, transparent 3px);
  background-repeat: no-repeat;
  border-radius: 50%;
  position: relative;
  transition: all 0.3s ease;
}

.btn-news-all:hover::before {
  /* Fade out the dot on hover */
  background-image: radial-gradient(circle at center, transparent 3px, transparent 3px);
}

.btn-news-all::after {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  left: 19px; /* Absolute center of the 38px before circle horizontally */
  top: 50%; /* Absolute center vertically regardless of button height */
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.btn-news-all:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.btn-news-all-text {
  border-bottom: 1px solid #e0e0e0; /* Default: Light Gray */
  padding-bottom: 2px;
  transition: border-color 0.3s ease;
}

.btn-news-all:hover .btn-news-all-text {
  border-bottom-color: #ffa420; /* Hover: Brand Orange */
}

.news-right {
  flex: 1;
}

.news-list {
  border-top: 1px solid #f0f0f0;
}

.news-list li {
  border-bottom: 1px solid #f0f0f0;
}

.news-list a {
  display: grid;
  grid-template-columns: 120px 100px 1fr 40px;
  gap: 20px;
  padding: 30px 0;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
}

.news-list a:hover {
  background-color: transparent;
  padding-left: 10px;
}

.news-date {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: #999;
  letter-spacing: 0.05em;
}

.news-tag {
  font-size: 0.8rem;
  padding: 6px 12px;
  background-color: #f0f0f0;
  color: #333;
  border-radius: 2px;
  text-align: center;
  min-width: 80px;
}

.news-title {
  font-size: 1rem;
  color: #333;
  letter-spacing: 0.02em;
}

.news-arrow-dot {
  width: 8px;
  height: 8px;
  background-color: #ffa420; /* Corrected to brand orange */
  border-radius: 50%;
  justify-self: end;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.news-list a:hover .news-arrow-dot {
  width: 30px;
  height: 30px;
}

.news-arrow-dot::after {
  content: '';
  width: 10px;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.news-list a:hover .news-arrow-dot::after {
  opacity: 1;
}

@media (max-width: 900px) {
  .news-container {
    flex-direction: column;
    gap: 40px;
  }
  .news-left {
    width: 100%;
  }
  .news-list a {
    grid-template-columns: 100px 80px 1fr;
    gap: 15px;
  }
  .news-left .btn-news-all,
  .service-panel-content .btn-news-all {
    align-self: flex-end;
  }
  .section-heading-minimal {
    margin-bottom: 60px !important;
  }
  .section-heading-minimal span:not(.en-title) {
    display: none !important;
  }
  .section-heading-minimal::before {
    display: none !important;
  }
  .filter-tabs {
    gap: 8px !important;
    justify-content: space-between;
    flex-wrap: nowrap !important;
  }
  .filter-tab {
    padding: 8px 10px !important;
    font-size: 0.8rem !important;
    white-space: nowrap !important;
    flex: 1;
    text-align: center;
  }
  .service-elegant-card {
    flex-direction: column;
    padding: 30px;
  }
  .service-elegant-card img.case-avatar {
    width: 100%;
    height: auto;
  }
}

/* ==========================================================================
   Services Grid (Minimal Elegance with Parallax)
   ========================================================================== */
.service-section-wrap {
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg);
}

.service-bg {
  position: absolute;
  top: -150px;
  bottom: -150px;
  left: -50px;
  right: -50px;
  background-color: var(--color-accent);
  opacity: 1;
  z-index: 0;
  will-change: transform;
  overflow: hidden;
}

/* Background Blobs */
.service-bg-blob {
  position: absolute;
  background-color: #fff;
  opacity: 0.1; /* Reduced to 10% transparency */
  border-radius: 50%;
  animation: blob-aggressive 12s infinite ease-in-out alternate;
  pointer-events: none;
}

@keyframes blob-aggressive {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: translate(0, 0) scale(1); }
  33% { border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%; transform: translate(10px, -20px) scale(1.1); }
  66% { border-radius: 40% 60% 30% 70% / 60% 30% 70% 40%; transform: translate(-15px, 15px) scale(0.9); }
  100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: translate(0, 0) scale(1); }
}

.sb-1 { width: 400px; height: 400px; top: -5%; left: -5%; animation-delay: -2s; }
.sb-2 { width: 300px; height: 300px; top: 15%; right: 10%; animation-delay: -5s; }
.sb-3 { width: 450px; height: 450px; top: 40%; left: 5%; animation-delay: -8s; }
.sb-4 { width: 250px; height: 250px; top: 25%; left: 35%; animation-delay: -1s; }
.sb-5 { width: 350px; height: 350px; bottom: 35%; right: 8%; animation-delay: -11s; }
.sb-6 { width: 200px; height: 200px; bottom: 15%; left: 25%; animation-delay: -4s; }
.sb-7 { width: 420px; height: 420px; top: 5%; left: 50%; animation-delay: -7s; }
.sb-8 { width: 280px; height: 280px; bottom: 5%; right: 40%; animation-delay: -9s; }
.sb-9 { width: 320px; height: 320px; top: 60%; right: 25%; animation-delay: -3s; }
.sb-10 { width: 380px; height: 380px; bottom: 50%; left: 45%; animation-delay: -6s; }


.service-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.3;
  /* Increased contrast as requested */
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Service Section Overrides for Visibility */
.service-section-wrap h2 {
  color: #fff;
}

.service-section-wrap .en-title {
  color: rgba(255, 255, 255, 0.7);
}

.service-section-wrap .btn-line {
  color: #fff;
}

.service-section-wrap .btn-line::after {
  background-color: #fff;
}

.service-elegant-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  margin: 80px 0 0 !important;
  gap: 40px !important;
  position: relative;
  z-index: 1;
  width: 100% !important;
  max-width: none !important;
}

.service-elegant-card {
  display: flex;
  flex-direction: column;
  background-color: transparent;
  padding: 0;
  border: none;
  border-radius: 0;
  position: relative;
  transition: var(--transition);
  overflow: visible;
}

.service-elegant-card img.case-avatar {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  border-radius: 8px; /* Rounded corners as seen in image */
  object-fit: cover;
  margin-bottom: 0;
  flex-shrink: 0;
}

.case-info-content {
  padding: 32px 20px 0; /* Horizontal padding added */
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center; /* Center text as seen in image */
}

.service-elegant-card h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 16px;
  display: inline-block; /* To center with underline width managed */
  width: 100%;
  font-family: var(--font-serif);
  color: var(--color-heading);
}

.service-elegant-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 20px;
  line-height: 2;
  font-weight: 300;
}

.service-panel-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 30px !important;
  position: relative;
  z-index: 1;
  width: 100%;
}

@media (max-width: 768px) {
  /* Common container width for sections */
  .service-container-fluid,
  .case-container-fluid,
  .voices-grid,
  .ig-section .container {
    padding: 0 !important;
    width: 80% !important;
    margin: 0 auto !important;
  }

  /* Service Section Grid */
  .service-panel-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  /* Case Studies (ご相談の歩み) Grid */
  .service-elegant-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    gap: 40px !important;
  }

  /* Customer Voices (お客様の声) Fix */
  .voice-card {
    flex-direction: column !important;
    align-items: center !important;
    padding: 40px 20px !important;
    gap: 30px !important;
    border-radius: 30px !important;
    width: 100% !important;
  }
  .voice-avatar {
    width: 120px !important;
    height: 120px !important;
  }
  .voice-content {
    text-align: center !important;
  }
  .voice-title, .voice-text, .voice-attr {
    text-align: center !important;
  }

  /* Instagram Gallery Grid */
  .ig-card-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    gap: 30px !important;
  }

  /* CTA Panels Stack */
  .cta-elegant-panels > div {
    flex-direction: column !important;
    gap: 20px !important;
  }
  .cta-box {
    min-height: 400px !important;
    padding: 30px !important;
  }
  .cta-content-panel {
    width: 90% !important;
  }
}





.service-panel {
  background-color: #fff;
  transition: var(--transition);
  border: none; /* Removed borders as requested */
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-panel:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.service-panel-img {
  width: 100%;
  height: 286px; /* Increased by 1.3x (original 220px) */
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-panel:hover .service-panel-img {
  transform: scale(1.05);
}

.service-panel-content {
  padding: 40px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-panel h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--color-heading);
  font-family: var(--font-serif);
}

.service-panel h3 svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

.service-panel p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-feature-list {
  margin-bottom: 15px; /* Reduced half of previous 30px */
  border-top: 1px solid #f0f0f0;
  padding-top: 20px;
}

.service-feature-list li {
  font-size: 0.85rem;
  color: var(--color-text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-feature-list li::before {
  content: '●';
  color: var(--color-accent);
  font-size: 8px;
}

.service-panel .btn-news-all {
  margin-top: auto;
  pointer-events: none; /* Disable direct hover action on the button itself */
}

.service-panel:hover .btn-news-all::before {
  background-image: radial-gradient(circle at center, transparent 3px, transparent 3px);
}

.service-panel:hover .btn-news-all::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.service-panel:hover .btn-news-all-text {
  border-bottom-color: #ffa420; /* Brand Orange */
}

.service-panel .btn-more::after {
  content: '→';
  transition: transform 0.3s ease;
}

/* Special button on orange background */
.btn-news-all.on-orange {
  color: #fff;
}

.btn-news-all.on-orange .btn-news-all-text {
  color: #fff;
}

.btn-news-all.on-orange::before {
  background-color: rgba(255, 255, 255, 0.4);
  background-image: radial-gradient(circle at center, #fff 3px, transparent 3px);
}

.btn-news-all.on-orange:hover::before {
  background-color: #fff;
  background-image: radial-gradient(circle at center, transparent 3px, transparent 3px);
}

.btn-news-all.on-orange:hover::after {
  /* Arrow inside big circle turns orange on hover */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23ffa420' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
}

.btn-news-all.on-orange:hover .btn-news-all-text {
  color: #fff; /* Keep white on hover as requested */
}

/* ==========================================================================
   Customer Voices Section
   ========================================================================== */
#voices {
  background-color: var(--color-bg-alt) !important;
  writing-mode: horizontal-tb !important;
  display: block !important;
  width: 100% !important;
}

.voices-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 40px !important;
  max-width: 1400px !important; /* Matched to header width */
  margin: 0 auto !important;
  width: 100% !important;
}

.voice-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 50px !important;
  background-color: #fff !important;
  padding: 60px !important;
  border-radius: 60px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03) !important;
  width: 100% !important;
  box-sizing: border-box !important;
  writing-mode: horizontal-tb !important;
}

.voice-avatar {
  width: 180px !important;
  height: 180px !important;
  border-radius: var(--radius-md) !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  display: block !important;
}

.voice-content {
  flex: 1 !important;
  display: block !important;
  width: auto !important;
  writing-mode: horizontal-tb !important;
}

.voice-title {
  font-family: var(--font-serif) !important;
  font-size: 1.4rem !important;
  color: var(--color-heading) !important;
  margin-bottom: 20px !important;
  line-height: 1.5 !important;
  text-align: left !important;
  writing-mode: horizontal-tb !important;
}

.voice-text {
  font-size: 1rem !important;
  line-height: 2 !important;
  color: var(--color-text-light) !important;
  margin-bottom: 30px !important;
  text-align: left !important;
  writing-mode: horizontal-tb !important;
}

.voice-attr {
  font-size: 0.95rem !important;
  color: var(--color-accent) !important;
  font-weight: 500 !important;
  text-align: left !important;
  display: block !important;
  writing-mode: horizontal-tb !important;
}

/* ==========================================================================
   Instagram Section (Cards)
   ========================================================================== */
.ig-section {
  background-color: #fff;
}

/* ==========================================================================
   RESTORE ORIGINAL LEFT-ALIGNED LAYOUT
   ========================================================================== */
.news-heading-box-standard-wrap {
  display: flex !important;
  flex-direction: row !important; /* Back to Horizontal */
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: left !important;
  gap: 140px !important; /* Original Gap */
  margin-bottom: 80px !important;
  max-width: 1400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.news-heading-box-standard {
  position: relative !important; /* CRITICAL: Enables blobs to show */
  display: inline-block !important;
  margin-bottom: 0 !important;
}

/* Standardized Blobs across all sections */
#company .news-title-blob, #company .news-title-blob-sub,
#news .news-title-blob, #news .news-title-blob-sub,
#cases .news-title-blob, #cases .news-title-blob-sub,
#voices .news-title-blob, #voices .news-title-blob-sub,
.ig-section .news-title-blob, .ig-section .news-title-blob-sub {
  display: block !important;
  width: 130px !important;
  height: 130px !important;
  background-color: #ffa420 !important;
  z-index: 1 !important;
  opacity: 0.4 !important;
  animation: blob-living-large 12s infinite ease-in-out alternate !important;
}

/* Service Section Specific: White @ 20% Opacity */
#service .news-title-blob,
#service .news-title-blob-sub {
  display: block !important;
  width: 130px !important;
  height: 130px !important;
  background-color: #ffffff !important; /* WHITE */
  z-index: 1 !important;
  opacity: 0.2 !important; /* 20% */
  animation: blob-living-large 12s infinite ease-in-out alternate !important;
}

#company .news-title-blob-sub, #news .news-title-blob-sub, 
#cases .news-title-blob-sub, #voices .news-title-blob-sub, 
.ig-section .news-title-blob-sub, #service .news-title-blob-sub {
  width: 80px !important;
  height: 80px !important;
  animation: blob-living-small 8s infinite ease-in-out alternate !important;
}

@keyframes blob-living-large {
  0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: translate(-100%, -60%) rotate(0deg) scale(1); }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; transform: translate(-95%, -55%) rotate(10deg) scale(1.1); }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: translate(-100%, -60%) rotate(0deg) scale(1); }
}

@keyframes blob-living-small {
  0% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; transform: translate(5%, -30%) rotate(0deg) scale(1); }
  50% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: translate(10%, -25%) rotate(-15deg) scale(0.9); }
  100% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; transform: translate(5%, -30%) rotate(0deg) scale(1); }
}

/* Ensure Title and English text are ALWAYS ABOVE the blobs across all sections */
.news-heading-box-standard h2, .news-heading-box-standard .en-title,
.news-heading-box-news h2, .news-heading-box-news .en-title,
.news-heading-box-standard-wrap h2, .news-heading-box-standard-wrap .en-title {
  position: relative !important;
  z-index: 2 !important;
}

/* Base Blob Styling Restoration */
.news-title-blob, .news-title-blob-sub {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  display: none;
}

.service-lead-text {
  font-size: 1.05rem !important;
  line-height: 2.4 !important;
  letter-spacing: 0.08em !important;
  font-weight: 300 !important;
  text-align: left !important;
  max-width: 880px !important;
  flex: 1 !important;
  margin-bottom: 0 !important;
}

/* Service Section needs white text due to dark background */
.service-section-wrap .service-lead-text {
  color: #fff !important;
}

/* Center & Stack only the requested sections */
#voices .news-heading-box-standard-wrap,
.ig-section .news-heading-box-standard-wrap {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 30px !important;
}

#voices .service-lead-text,
.ig-section .service-lead-text {
  text-align: center !important;
  margin: 0 auto !important;
  max-width: 900px !important;
}

/* Light background sections */
#cases .service-lead-text,
#voices .service-lead-text,
.ig-section .service-lead-text {
  color: var(--color-text-light) !important;
}

.ig-card-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 40px !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
}

.ig-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px; /* Sharper radius as in image */
  overflow: hidden;
  text-align: left;
  box-shadow: none; /* Removed shadow to match flat image style */
}

.ig-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}

.ig-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.ig-username {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--color-heading);
}

.ig-image img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.ig-caption {
  padding: 12px 16px;
  font-size: 0.8rem;
  color: var(--color-text);
  line-height: 1.5;
}

.news-title-blob {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 120px;
  height: 120px;
  background-color: var(--color-accent);
  opacity: 0.2; /* Default 20% */
  border-radius: 50%;
  animation: blob-news 10s infinite ease-in-out alternate;
  z-index: 0;
  pointer-events: none;
}

.news-title-blob.opacity-10 {
  opacity: 0.1;
}

.news-title-blob.center {
  left: 50%;
  transform: translateX(-50%);
  margin-left: -40px; /* Offset for artistic look */
}

@keyframes blob-news {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(0deg) scale(1); }
  50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; transform: rotate(180deg) scale(1.1); }
  100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(360deg) scale(1); }
}

.news-title-blob-sub {
  position: absolute;
  top: 65px;
  left: 85px;
  width: 24px;
  height: 24px;
  background-color: var(--color-accent);
  opacity: 0.2; /* Default 20% */
  border-radius: 50%;
  animation: blob-news 8s infinite ease-in-out alternate-reverse;
  z-index: 0;
  pointer-events: none;
}

.news-title-blob-sub.opacity-10 {
  opacity: 0.1;
}

.news-title-blob-sub.center {
  left: 50%;
  transform: translateX(-50%);
  margin-left: 60px;
  top: 55px;
}

/* ==========================================================================
   Floating Bottom Action Buttons
   ========================================================================== */
.floating-buttons-bottom {
  position: fixed;
  bottom: 40px;
  /* Fixed position */
  right: 40px;
  display: flex;
  flex-direction: row;
  gap: 12px;
  z-index: 100;
  opacity: 0;
  /* Fade initial */
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.floating-buttons-bottom.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.btn-floating-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  padding: 14px 40px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s, transform 0.3s;
}

.btn-floating-bottom:hover {
  opacity: 0.9;
}

/* ==========================================================================
   CTA Split
   ========================================================================== */
.cta-elegant {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 100px 0 0;
  border-top: 1px solid var(--color-border);
}

.cta-box {
  padding: 100px 60px;
  text-align: center;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--color-text);
}

.cta-box.recruit-area {
  background-color: var(--color-bg);
  border-right: 1px solid var(--color-border);
}

.cta-box.contact-area {
  background-color: var(--color-accent);
  color: #fff;
}

/* Hover Background Images */
.cta-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 1; /* Always visible */
  transition: opacity 0.6s ease;
  z-index: 0;
}

.cta-box.recruit-area::before {
  background-image: url('https://as2.ftcdn.net/v2/jpg/06/30/24/45/1000_F_630244505_HiYEfdc1D2Q9alyr80u6ztn5ZzLho8Qk.jpg');
}

.msg-blob-1 { width: 180px; }
.msg-blob-2 { width: 108px; }
.msg-blob-3 { width: 60px; position: absolute; top: 0; right: 0; }

.cta-box.contact-area::before {
  background-image: url('https://as1.ftcdn.net/v2/jpg/02/82/20/76/1000_F_282207630_SSclCRWj6gqd5y6qNsn9c2918imUEOPW.jpg');
}

/* Overlay visible by default with soft brand screen effect */
.cta-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(108, 155, 139, 0.4);
  /* Elegant transparent green screen */
  opacity: 0; /* Color layer removed */
  transition: opacity 0.6s ease;
  z-index: 1;
}

.cta-box:hover::before {
  opacity: 1;
}

.cta-box:hover::after {
  opacity: 0;
}

/* Custom button for CTA orange panels */
.cta-panel-btn {
  background-color: #fff !important;
  border: none !important;
  color: var(--color-accent) !important;
  transition: all 0.4s ease !important;
}

.cta-box:hover .cta-panel-btn {
  background-color: var(--color-accent) !important;
  box-shadow: inset 0 0 0 2px #fff !important; /* Inner border */
  color: #fff !important;
}

.cta-box:hover::before,
.cta-box:hover::after {
  opacity: 1; /* Or desired hover state for backgrounds */
}

/* Contact area noise texture (stays active alongside hover image) */
 .cta-box.contact-area .noise-overlay,
 .page-header.news-bg .noise-overlay {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
   opacity: 0.25;
   mix-blend-mode: overlay;
   pointer-events: none;
   z-index: 1;
 }

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-box:hover h3,
.cta-box:hover p {
  color: #fff;
}

.cta-box h3 {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 3rem;
  margin-bottom: 20px;
}

.cta-box p {
  margin-bottom: 40px;
  font-size: 0.9rem;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  background-color: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  transition: var(--transition);
}

.cta-box.contact-area .btn-cta {
  color: #fff;
  border-color: #fff;
}

/* Hover effect triggered by parent area */
.cta-box:hover .btn-cta {
  background-color: #fff;
  color: var(--color-accent);
  border-color: #fff;
}

/* ==========================================================================
   Footer Minimal
   ========================================================================== */
.footer-elegant {
  padding: 80px 0;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg-alt);
}

.footer-elegant .container {
  max-width: 1375px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-nav ul {
  display: flex;
  gap: 40px;
  justify-content: flex-end;
}

.footer-nav a {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
}

.footer-nav a:hover,
.footer-nav a.active {
  color: var(--color-accent) !important;
}

.footer-bottom {
  margin-top: 80px;
  text-align: right;
  font-size: 0.7rem;
  color: #ccc;
  letter-spacing: 0.1em;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

/* Bottom Floating Buttons */
.floating-buttons-bottom {
  position: fixed;
  bottom: 40px;
  right: 40px;
  display: flex;
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease;
  z-index: 1000;
}

.floating-buttons-bottom.is-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(20px) !important;
}

 .sub-page .floating-buttons-bottom {
   opacity: 1 !important;
   visibility: visible !important;
   transform: translateY(0) !important;
   pointer-events: auto !important;
 }

.news-page .floating-buttons-bottom {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.btn-floating-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  padding: 14px 40px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: opacity 0.3s, transform 0.3s;
}

.btn-floating-bottom:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* ==========================================================================
   Company Page Styles
   ========================================================================== */

/* Vision / Philosophy */
.company-vision-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 150px;
}

.vision-text h2 {
  font-size: 2.5rem;
  line-height: 1.4;
  margin-bottom: 40px;
  color: var(--color-accent);
}

.vision-list dt {
  color: var(--color-accent);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.vision-list dd {
  font-size: 0.95rem;
  margin-bottom: 24px;
  color: var(--color-text);
  line-height: 1.8;
}

.vision-list dd:last-child {
  margin-bottom: 0;
}

.vision-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

/* Representative Message */
.rep-message-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 150px;
}

.rep-message-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.rep-message-content {
  padding-left: 20px;
}

.rep-message-title {
  font-size: 1.8rem;
  line-height: 1.5;
  margin-bottom: 40px;
  font-family: var(--font-serif);
}

.rep-message-text {
  font-size: 0.95rem;
  line-height: 2.2;
  margin-bottom: 40px;
}

.rep-message-signature {
  text-align: right;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-accent);
}

/* Staff Selection */
.staff-section {
  margin-bottom: 150px;
}

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

.staff-card {
  display: block;
}

.staff-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  margin-bottom: 20px;
}

.staff-role {
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-bottom: 4px;
  display: block;
  letter-spacing: 0.1em;
}

.staff-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.staff-desc {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.staff-link {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 4px;
  transition: opacity 0.3s;
}

.staff-card:hover .staff-link {
  opacity: 0.7;
}

/* Company Profile Table */
.company-profile-section {
  margin-bottom: 150px;
}

.company-profile-table {
  width: 100%;
  border-collapse: collapse;
}

.company-profile-table th,
.company-profile-table td {
  padding: 30px 0;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  font-size: 0.95rem;
}

.company-profile-table th {
  width: 25%;
  text-align: left;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  text-transform: uppercase;
}

.company-profile-table tr:first-child th,
.company-profile-table tr:first-child td {
  padding-top: 0;
}

/* Access Map Section (Full Width 50/50 Reverted) */
.access-map-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background-color: var(--color-bg);
  margin-bottom: 150px;
  width: 100%;
}

.access-info {
  padding: 100px 5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.access-info-item {
  margin-bottom: 40px;
}

.access-info-item h4 {
  font-size: 0.85rem;
  color: var(--color-accent);
  margin-bottom: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.access-map {
  width: 100%;
  height: 100%;
  min-height: 550px;
}

.access-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 900px) {
  .access-map-section {
    grid-template-columns: 1fr;
  }
  .access-info {
    padding: 60px 20px;
  }
}

.access-info-item p {
  font-size: 1rem;
  line-height: 2;
}

.access-map {
  width: 100%;
  height: 100%;
  min-height: 550px;
}

.access-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  /* Filter removed for full color */
}

/* History List */
.history-section {
  margin-bottom: 150px;
}

.history-list {
  border-left: 1px solid var(--color-border);
  padding-left: 40px;
  margin-left: 10px;
}

.history-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  margin-bottom: 40px;
  position: relative;
}

.history-item::before {
  content: "";
  position: absolute;
  left: -44px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.history-year {
  font-family: var(--font-serif);
  color: var(--color-accent);
  font-size: 1.1rem;
}

.history-desc {
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Office Gallery (Infinite Loop Scroll) */
.office-gallery-section {
  margin-bottom: 150px;
  padding: 0 !important;
  max-width: 100% !important;
  overflow: hidden;
}

.office-gallery-scroll-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.office-gallery-track {
  display: flex;
  width: max-content;
  animation: infiniteGalleryScroll 60s linear infinite;
}

.gallery-item {
  width: auto; /* Changed from fixed width */
  flex-shrink: 0;
}

.gallery-item img {
  width: auto; /* Natural width based on aspect ratio */
  height: 375px; /* 300px * 1.25 = 375px */
  border-radius: 0;
  object-fit: contain; /* Ensure full image is visible */
  transition: transform 0.5s ease;
}

/* Removed Hover Scale action for gallery */


@keyframes infiniteGalleryScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Modal Parts */
.modal-role-badge {
  display: inline-block;
  padding: 4px 12px;
  background-color: rgba(108, 155, 139, 0.1);
  color: var(--color-accent);
  font-weight: 500;
  font-size: 0.75rem;
  border-radius: 40px;
  margin-top: 5px; /* Reduced from 10px since it's now paired with romaji */
}

.modal-text-content {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-light);
  white-space: pre-wrap;
}

/* Side-by-Side Layout for Representative Message */
.message-side-by-side {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 60px;
}

.message-side-by-side .message-image {
  flex: 0 0 35%; /* Reduced to about 80% of typical 50/50 */
  max-width: 35%;
}

.message-side-by-side .message-content {
  flex: 1;
  text-align: left !important;
}

@media (max-width: 900px) {
  .message-side-by-side {
    flex-direction: column !important;
  }
  .message-side-by-side .message-image {
    max-width: 100%;
    flex: none;
    margin-bottom: 30px;
  }
}

/* Signature in Message Section */
.message-signature {
  margin-top: 30px;
}

.message-signature p:first-child {
  margin-bottom: 0 !important; /* Minimized margin */
}

.message-signature p:nth-of-type(2) {
  font-family: var(--font-serif); /* Changed to Mincho */
  font-size: calc(1rem + 12px); 
  font-weight: 600;
  color: var(--color-accent); 
  margin-top: 0 !important;
  line-height: 1.1; /* Tighter line height to reduce visual gap */
}

/* Staff Card Interaction */
.staff-card {
  cursor: pointer;
  transition: box-shadow 0.4s ease;
}

.staff-card:hover {
  /* Removed hovering shadow */
}

/* Trigger btn-line state when card is hovered */
.staff-card:hover .btn-line::before {
  opacity: 1;
  transform: translateX(0);
}

.staff-card:hover .btn-line::after {
  transform: scaleX(0);
}

.staff-card:hover .btn-line {
  color: var(--color-accent);
}

/* Removed Pause on hover for gallery */

/* Responsive adjustments */
@media (max-width: 900px) {

  /* Company Page Mobile */
  .company-vision-section {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 80px;
  }

  .vision-text h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .rep-message-section {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 80px;
  }

  .rep-message-image {
    order: -1; /* Image first on mobile */
  }

  .rep-message-content {
    padding-left: 0;
  }

  .message-title {
    font-size: 1.8rem !important;
    margin-bottom: 25px;
    line-height: 1.4;
  }

  .message-signature-text {
    text-align: right;
    margin-bottom: 20px;
  }

  .message-signature-btn-wrap {
    text-align: center;
    width: 100%;
  }

  .staff-section {
    margin-bottom: 80px;
  }

  .staff-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .staff-card {
    width: 70%;
    margin: 0 auto;
  }

  /* Modal Adjustments on Mobile - Consolidated and Verified */
  .modal-content {
    width: 80% !important;
    padding: 50px 5% 40px !important; /* 5% side padding ensures 90% scrollable width inside 80% box */
    box-sizing: border-box !important;
  }

  .modal-inner {
    width: 100% !important;
    margin: 0 !important;
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .modal-close-btn:hover svg {
    stroke: #fff !important;
  }

  .company-profile-section {
    margin-bottom: 80px;
  }

  .company-profile-table, 
  .company-profile-table tbody, 
  .company-profile-table tr, 
  .company-profile-table th, 
  .company-profile-table td {
    display: block;
    width: 100%;
  }

  .company-profile-table th {
    padding: 24px 0 8px;
    border-bottom: none;
  }

  .company-profile-table td {
    padding: 0 0 24px;
  }

  .access-map-section {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 80px;
  }

  .access-info {
    padding: 40px 20px 0;
  }

  .access-map iframe {
    min-height: 300px;
  }

  .history-section {
    margin-bottom: 80px;
  }

  .history-item {
    gap: 20px;
    grid-template-columns: 80px 1fr;
  }

  .office-gallery-section {
    margin-bottom: 60px;
  }

  .office-gallery-grid {
    grid-template-columns: 1fr;
  }

  /* Hero Section Mobile */
  .hero {
    padding: 0 20px;
    /* Reset padding to sides only */
    flex-direction: column;
    justify-content: flex-start;
    /* Move contents to top */
    height: auto;
    /* Remove 100vh constraint for mobile */
    min-height: auto;
    /* Remove min-height constraint for mobile */
    gap: 80px;
    /* 40px (old) + 40px (new) = 80px */
  }

  /* Hide Top-Right floating buttons on mobile hero */
  .floating-buttons {
    display: none;
  }

  .hero-image-container {
    width: 96%;
    /* Matches 2% margins on each side */
    aspect-ratio: 1 / 1;
    /* 1:1 正方形 */
    height: auto;
    margin: 6% 2% 2%;
    /* 3x the previous 2% top margin */
    align-self: center;
    transform: translateY(-20px);
    /* Move whole image group up by 20px */
  }

  .hero-text-container {
    position: relative;
    right: 0;
    top: 0;
    margin-top: -60px !important;
    /* Previous -40px + move up by 20px = -60px */
    align-items: center;
    text-align: center;
    transform: translateY(-20px);
    /* Keep consistent move up with image */
  }

  .hero-catch {
    font-size: 2.2rem;
    align-items: center;
  }

  .hero-subcatch {
    margin-top: 10px;
    /* ReducedGap: Half of 20px */
    font-size: 0.95rem;
  }

  .hero-en-catch {
    margin-top: 6px;
    /* ReducedGap: Roughly half */
  }

  /* Gap between subcatch and logo info */
  .hero-info {
    margin-top: 25px;
    /* ReducedGap: Half */
    margin-bottom: 120px;
    /* 電話番号の下のスペースを3倍程度に拡大 */
  }

  .hero-info-address {
    font-size: 0.7rem;
    /* Smaller to prevent wrapping */
    white-space: nowrap;
    letter-spacing: 0;
  }

    /* Bottom Floating Buttons Mobile (Persistent Bar - Centered Group) */
    .floating-buttons-bottom {
      left: 0 !important;
      right: 0 !important;
      width: 100% !important;
      transform: translateY(20px) !important;
      bottom: 20px;
      gap: 12px;
      opacity: 0; 
      visibility: hidden;
      pointer-events: none !important;
      display: flex !important;
      justify-content: center !important;
      padding: 0 15px; /* Safely keep inside viewport */
      transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
    }

    .floating-buttons-bottom.visible {
      opacity: 1 !important;
      visibility: visible !important;
      transform: translateY(0) !important;
      pointer-events: auto !important;
    }

    body.menu-open .floating-buttons-bottom {
      opacity: 0 !important;
      visibility: hidden !important;
      transform: translateY(20px) !important;
      pointer-events: none !important;
    }

    /* Message Section Mobile: Hide desktop images (1st and 2nd images) */
    .message-section .message-image {
      display: none !important;
    }

    /* Message Section Mobile: Layout for mobile-only */
    #cases {
      background-color: #fff;
    }
    .mobile-only-msg-image {
      display: block !important;
      position: relative;
      width: 280px; /* Fixed width of the main image */
      margin: 50px auto 80px; /* Adjusted margins for middle position */
      padding-bottom: 0;
    }

    /* Main image: Mirror and fixed width */
    .mobile-only-msg-image img:first-child {
      width: 100% !important;
      height: auto !important;
      transform: scaleX(-1); /* Mirror as requested */
      box-shadow: var(--shadow-subtle);
      position: relative;
      z-index: 1;
    }

    /* Sub image: Mirror and align with bottom-right corner of the main photo */
    .mobile-only-msg-image img:nth-child(2) {
      width: 140px !important; /* 50% of 280px */
      height: 140px !important;
      object-fit: cover;
      transform: scaleX(-1); /* Mirror */
      position: absolute;
      bottom: 0; /* Aligned with bottom */
      right: 0;  /* Aligned with right */
      z-index: 2;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
      /* Border removed as requested */
    }

  .btn-floating-bottom {
    padding: 12px 24px;
    font-size: 0.8rem;
  }

  .header-nav,
  .sticky-header {
    display: none;
  }

  /* Hamburger Menu Toggle (Visible only on mobile) */
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px; /* Slightly tighter gap */
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 2000;
    cursor: pointer;
    background-color: var(--color-accent);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 0;
    transition: var(--transition);
  }

  .mobile-menu-toggle span {
    display: block;
    width: 20px; /* Reduced from 24px (approx 80%) */
    height: 1.5px; /* Thinner for elegance */
    background-color: #ffffff; /* White icon by default */
    transition: 0.3s;
    transform: scale(0.8); /* Specifically scaled by 80% as requested */
  }

  .mobile-menu-toggle.on-dark span {
    background-color: #ffffff !important;
  }

  .mobile-menu-toggle.active {
    background-color: #ffffff !important;
  }

  .mobile-menu-toggle.active span {
    background-color: var(--color-accent) !important;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg) scale(0.8);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg) scale(0.8);
  }

  /* Full-Screen Overlay Menu */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-accent);
    /* Green background */
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s ease;
    overflow: hidden;
  }

  /* Grainy texture for mobile menu */
  .mobile-menu-overlay::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.2;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: -1;
  }

  .mobile-menu-list a:hover {
    color: #fff;
    opacity: 0.8;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-overlay ul {
    list-style: none;
    text-align: center;
    position: relative;
    z-index: 1;
  }

  .mobile-menu-overlay ul li {
    margin: 20px 0;
  }

  .mobile-menu-overlay ul li a {
    font-size: 1.25rem;
    /* 2px smaller (was 1.375rem/22px -> 20px) */
    font-family: var(--font-sans);
    /* Gothic as requested */
    color: #fff;
    /* White text for visibility */
    text-decoration: none;
    letter-spacing: 0.1em;
  }

  /* Centering the message section button on mobile */

  .menu-cta-container {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* 10-12px vertical spacing */
    align-items: center;
    position: relative;
    z-index: 1;
  }

  .menu-cta-container .btn-floating {
    position: static;
    width: 210px;
    /* Slightly wider to prevent line break */
    justify-content: center;
    transform: none !important;
    opacity: 1 !important;
    border: none;
    /* Removed border */
  }

  /* Force ALL list links in mobile menu to default state */
  .mobile-menu-overlay .mobile-menu-list a,
  .mobile-menu-overlay .mobile-menu-list a.active {
    color: #fff !important;
    font-weight: normal !important;
    opacity: 1 !important;
  }

  /* Keep specific CTA button colors in the menu, NO active state changes allowed */
  .menu-cta-container .contact-btn {
    background-color: var(--color-heading) !important;
    color: #fff !important;
    opacity: 1 !important;
    font-weight: normal !important;
  }

  .menu-cta-container .recruit-btn {
    background-color: #fff !important;
    color: var(--color-accent) !important;
    opacity: 1 !important;
    font-weight: normal !important;
  }

  /* Reset any possible .active inheritance for these buttons */
  .menu-cta-container a.active {
    background-color: transparent !important; /* Will be overridden by above specific rules */
    color: inherit !important;
  }

  .mobile-menu-overlay a:hover {
    opacity: 0.8 !important;
  }



  /* Header Curves Mobile: Double thickness, 1.5x Speed, and Full Opacity */
  .hero-bg-line {
    opacity: 1 !important;
  }
  .hero-bg-line path {
    stroke-width: 1.0;
    opacity: 1 !important;
  }
  .hero-curves-overlay .hero-bg-line path {
    stroke-width: 1.6;
    opacity: 1 !important;
  }
  .wave-1 { animation-duration: 13.3s !important; opacity: 1 !important; }
  .wave-2 { animation-duration: 16.7s !important; opacity: 1 !important; }
  .wave-3 { animation-duration: 20s !important; opacity: 1 !important; }

  /* Message Section Mobile Layout Adjustment */
  .message-section .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 40px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .message-content {
    margin-right: 0 !important;
    margin-left: 0 !important;
    width: 100% !important;
  }

  /* Specific Left-alignment for Office Info Message Section */
  .message-side-by-side .message-content,
  .message-side-by-side .message-title,
  .message-side-by-side .message-text p,
  .message-side-by-side .en-title {
    text-align: left !important;
    align-items: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  /* Global Message Section (Index) overrides */
  .message-section:not(.message-side-by-side) .news-heading-box,
  .message-section:not(.message-side-by-side) .news-heading-box div,
  .message-section:not(.message-side-by-side) .message-content > p,
  .message-section:not(.message-side-by-side) .news-heading-box-standard {
    align-items: flex-start !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  /* Section spacing for Mobile to prevent cramp */
  .news-heading-box-standard {
    margin-bottom: 30px !important;
  }

  .service-lead-text {
    margin-bottom: 40px !important;
    display: block !important;
  }

  .message-content h2 {
    font-size: 1.4rem !important;
    white-space: nowrap;
    text-align: left !important;
    margin-bottom: 20px !important;
  }

  .message-section .message-content > p {
    display: block !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    align-items: flex-start !important;
    width: 100% !important;
    margin-bottom: 30px !important;
    color: var(--color-accent) !important;
  }

  .message-body-text {
    text-align: left !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .message-body-text p {
    text-align: left !important;
    width: 100% !important;
    margin-bottom: 20px !important;
  }

  .message-image-container {
    display: block !important;
    width: 100% !important;
    margin-top: 40px !important;
    position: relative !important;
  }

.message-btn-wrap {
  text-align: center;
  width: 100%;
}

  /* Service Section Mobile - Reduce padding to 2/3 */
  .service-section-wrap {
    padding-top: 66px !important;
    padding-bottom: 133px !important;
  }

  .service-section-wrap .news-heading-box-standard-wrap,
  #cases .news-heading-box-standard-wrap {
    flex-direction: column !important;
    gap: 20px !important;
    align-items: flex-start !important;
    padding: 0 !important;
    margin-bottom: 40px !important;
  }

  .service-section-wrap .service-lead-text,
  #cases .service-lead-text {
    text-align: left !important;
    margin-top: 0 !important;
    color: #ffffff !important;
  }

  #cases .service-lead-text {
    color: var(--color-text-light) !important;
  }

  .service-all-btn-wrap {
    text-align: center !important;
    margin-top: 60px !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  /* Disable panel hovers */
  .service-panel {
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
  }
  .service-panel:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  .service-panel:hover .service-panel-img {
    transform: none !important;
  }
  .service-panel:hover .btn-news-all-text {
    border-color: #e0e0e0 !important;
  }

  /* News Section Mobile */
  .section-heading-minimal {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  
  .section-heading-minimal .en-title {
    order: 1;
    margin-top: 0;
    line-height: 1;
  }
  
  .section-heading-minimal::before {
    order: 2;
    margin-top: 0;
  }
  
  .section-heading-minimal h2 {
    order: 3;
    margin-top: 0;
    line-height: 1;
  }
  
  .section-heading-minimal .title-divider {
    display: none !important;
  }

  .news-section {
    width: 80%;
    /* Browser width 80% */
    margin: 0 auto;
  }

  .news-heading-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    margin-bottom: 40px;
  }

  .news-heading-box div {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .news-heading-box a.btn-line {
    order: 2;
    margin: 10px auto 0;
    display: inline-flex;
    flex-direction: row;
    /* Ensure flex for order to work */
  }

  /* News button - Move arrow (::before) to the right - swapped */
  .news-heading-box a.btn-line::before {
    order: 2;
    /* Move to right of text */
    margin-left: 8px;
    margin-right: 0;
  }

  .news-list a {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
    transition: none !important;
  }

  .news-list a:hover {
    background: transparent !important;
    padding-left: 0 !important;
    transform: none !important;
  }

  .news-arrow-dot {
    display: none !important;
  }

  .news-list a::after {
    display: none !important;
  }

  .news-date {
    order: 1;
    font-size: 0.85rem;
    color: var(--color-text-light);
  }

  /* news-tag is used in HTML, news-category was a typo */
  .news-tag {
    order: 2;
    margin-left: 8px; /* Adjusted to 8px gap as requested */
    margin-bottom: 0 !important;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    background-color: var(--color-accent);
    color: #fff;
    min-width: unset;
    height: auto;
  }

  .news-title {
    order: 3;
    width: 100%;
    margin-top: 10px;
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Voices Section Mobile */
  .voice-card {
    flex-direction: column;
    text-align: left;
    align-items: flex-start !important;
    gap: 30px;
  }

  /* Case Studies (Elegant Cards) Mobile text and image width sync */
  .service-elegant-card {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .case-avatar {
    width: 100% !important;
    max-width: 100% !important;
  }
  .case-info-content {
    width: 100% !important;
    padding: 20px 0 !important;
  }

  /* Instagram Section Mobile Adjustments */
  .ig-section .news-heading-box-standard {
    position: relative !important; /* MUST BE RELATIVE FOR BLOBS TO SHOW */
    display: inline-block !important;
    flex-shrink: 0 !important;
    margin-bottom: 0 !important;
  }
  .ig-section .news-heading-box-standard-wrap {
    flex-direction: column !important;
    gap: 0 !important;
    margin-bottom: 0 !important;
  }
  .ig-section .news-heading-box-standard {
    margin-bottom: 20px !important;
  }
  .ig-section .service-lead-text {
    margin-bottom: 50px !important;
    text-align: left !important;
  }

  /* Footer/Contact section - HARD FORCE vertical layout and Visibility */
  .cta-elegant-panels .cta-panels-flex-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
    width: 100% !important;
  }

  .cta-elegant-panels .cta-box {
    width: 100% !important;
    min-height: 400px !important;
    padding: 0 !important;
    flex: none !important;
    overflow: hidden !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  /* NO HOVER for CTA */
  .cta-box:hover::before, .cta-box:hover::after {
    opacity: 1 !important;
  }
  .cta-box:hover h3, .cta-box:hover p {
    color: #fff !important;
  }
  .cta-box:hover .cta-panel-btn {
    background-color: #fff !important;
    color: var(--color-accent) !important;
    box-shadow: none !important;
  }

  .cta-content-panel {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 85% !important;
    max-width: 320px !important;
    height: auto !important;
    background-color: rgba(255, 164, 32, 0.8) !important; /* Matching PC opacity */
    border-radius: 24px !important;
    padding: 30px 20px !important;
    text-align: center !important;
    z-index: 10 !important;
    transition: none !important;
  }

  .cta-content-panel h3 {
    font-size: 1.4rem !important; /* 4px smaller approx */
    margin-bottom: 10px !important;
  }

  .cta-content-panel p {
    font-size: 0.85rem !important; /* 4px smaller approx */
    margin-bottom: 20px !important;
  }

  /* CTA Button Color: White BG, Orange Text */
  .cta-panel-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.8rem !important;
    padding: 12px 24px !important;
    background-color: #fff !important;
    border: none !important;
    color: var(--color-accent) !important;
    border-radius: 4px !important;
  }

  .cta-panel-btn svg {
    stroke: var(--color-accent) !important;
  }

  /* Restore text colors in CTA */
  .cta-content-panel h3, .cta-content-panel p {
    color: #fff !important;
  }

  /* Footer Alignment Fixes for Mobile - Centering Everything */
  .footer-inner {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .footer-logo-group {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .footer-logo-block {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-bottom: 15px !important;
  }

  .footer-logo-block svg {
    flex-shrink: 0 !important;
  }

  .footer-logo-block h2 {
    margin: 0 !important;
    font-size: 1.2rem !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }

  .footer-nav {
    margin-top: 40px !important;
    width: 100% !important;
  }

  .footer-nav ul {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
  }

  .footer-bottom {
    text-align: center !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin-top: 60px !important;
    border-top: 1px solid var(--color-border) !important;
    padding-top: 30px !important;
  }

  .footer-bottom-row {
    margin-top: 40px !important;
    border-top: 1px solid var(--color-border) !important;
    padding-top: 20px !important;
  }

  .footer-bottom p {
    margin: 0 auto !important;
    width: 100% !important;
    text-align: center !important;
  }

  /* Prevent Horizontal Scroll */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative !important;
  }

  .voice-avatar {
    width: 100% !important;
    /* Matches text width */
    max-width: 100%;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    align-self: center;
  }

  .voice-content {
    text-align: left;
    width: 100%;
  }

  /* Voices Section Mobile Header Left Align */
  #voices .news-heading-box-standard {
    text-align: left !important;
    align-items: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  #voices .news-heading-box-standard div {
    margin-left: 0 !important;
    margin-right: auto !important;
    align-items: flex-start !important;
  }

  #voices .service-lead-text {
    text-align: left !important;
    margin-left: 0 !important;
    max-width: 100% !important;
  }

  /* Instagram Section Mobile Header Left Align */
  .ig-section .news-heading-box-standard {
    text-align: left !important;
    align-items: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  .ig-section .news-heading-box-standard div {
    margin-left: 0 !important;
    margin-right: auto !important;
    align-items: flex-start !important;
  }

  .ig-section .service-lead-text {
    text-align: left !important;
    margin-left: 0 !important;
    max-width: 100% !important;
  }

  /* Footer/Contact section adjustments */
  .footer-contact .container,
  .cta-section .container {
    flex-direction: column !important;
    gap: 40px !important;
    text-align: left !important;
  }

  .attitude-img-sub {
    transform: none;
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    margin-top: 20px;
  }

  .attitude-img-edge {
    display: none;
  }

  .service-elegant-grid,
  .service-panel-grid {
    grid-template-columns: 1fr;
  }

  .ig-card-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ig-card {
    width: 70vw;
    /* 70% of viewport width */
    margin: 0 auto;
  }

  .cta-elegant {
    grid-template-columns: 1fr;
  }

  .cta-box:first-child {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  /* CTA - Fixed Hover State for Mobile */
  .cta-box::before,
  .cta-box::after {
    opacity: 1 !important;
    transition: none !important;
  }

  .cta-box h3,
  .cta-box p {
    color: #fff !important;
  }

  .cta-box .btn-cta {
    background-color: #fff !important;
    color: var(--color-accent) !important;
    border-color: #fff !important;
    transition: none !important;
  }

  /* Footer Mobile - Remove Nav */
  .footer-nav {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    gap: 40px;
    text-align: center;
    align-items: center;
  }

  /* Permanently show arrow and underline for .btn-line on mobile */
  .btn-line::before {
    opacity: 1 !important;
    transform: translateX(0) !important;
    transition: none !important;
  }

  .btn-line::after {
    transform: scaleX(1) !important;
    transition: none !important;
  }

  .btn-line:hover::after {
    transform: scaleX(1) !important;
  }
}

@media (min-width: 901px) {

  .mobile-menu-toggle,
  .mobile-menu-overlay,
  .mobile-only-msg-image {
    display: none;
  }
}

/* ==========================================================================
   Sub Page Styles
   ========================================================================== */
.sub-page .sticky-header {
  opacity: 1 !important;
  pointer-events: auto !important;
  background: rgba(255, 255, 255, 0.98);
}

/* Page Header for Subpages */
.page-header.news-bg {
  background-color: var(--color-accent) !important; /* Fixed orange background */
  padding: 120px 0 60px !important;
  text-align: left !important;
  position: relative;
  overflow: hidden;
}

.header-blobs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.header-blob {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  animation: header-blob-anim 12s infinite alternate ease-in-out;
}

.header-blob-1 { width: 550px; height: 500px; right: 5%; top: -150px; border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; animation-duration: 12s; }
.header-blob-2 { width: 250px; height: 250px; right: 25%; top: 40%; border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; animation-duration: 14s; animation-delay: -2s; }
.header-blob-3 { width: 100px; height: 120px; right: 45%; top: 10%; border-radius: 50% 50% 20% 80% / 30% 80% 20% 70%; animation-duration: 16s; animation-delay: -5s; }
.header-blob-4 { width: 350px; height: 320px; left: 30%; bottom: -60px; border-radius: 30% 70% 70% 30% / 50% 30% 70% 50%; opacity: 0.6; animation-duration: 18s; }
.header-blob-5 { width: 120px; height: 130px; left: 15%; top: 20%; border-radius: 80% 20% 50% 50% / 50% 50% 80% 20%; opacity: 0.8; animation-duration: 20s; animation-delay: -7s; }

@keyframes header-blob-anim {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  33% { transform: translate(50px, -80px) scale(1.2) rotate(45deg); border-radius: 80% 20% 50% 50% / 50% 80% 20% 50%; }
  66% { transform: translate(-40px, 60px) scale(0.8) rotate(-30deg); border-radius: 20% 80% 30% 70% / 70% 30% 80% 20%; }
  100% { transform: translate(0, 0) scale(1) rotate(0deg); border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.page-header.news-bg::before {
  display: none !important; /* Ensures the large NEWS text is gone */
}

/* Page Header Wave Overrides */
.page-header.news-bg .hero-bg-line path {
  stroke: rgba(255, 255, 255, 0.4);
}

.page-title {
  position: relative;
  z-index: 1;
}

.page-title h1 {
  font-family: var(--font-sans) !important;
  font-size: 2.8rem;
  margin-bottom: 10px;
  color: #ffffff !important;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.page-title .en {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #ffffff !important;
  margin-bottom: 8px;
  opacity: 0.9;
}

/* Breadcrumbs */
.breadcrumbs-container {
  margin-top: 20px;
  margin-bottom: 0;
  z-index: 2;
  position: relative;
}

.breadcrumbs {
  font-size: 0.9375rem; /* 15px */
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

.breadcrumbs a:hover {
  color: #fff;
}

.breadcrumbs span {
  display: flex;
  align-items: center;
}

.breadcrumbs > *:not(:first-child) {
  display: flex;
  align-items: center;
}

.breadcrumbs > *:not(:first-child)::before {
  content: "→"; /* Arrow icon as requested */
  margin-right: 12px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
  transition: none;
}


/* Sub Page Specific (Normalize fonts) */
 .sub-page * {
   font-weight: 400 !important;
 }
 
 /* Refined Section Heading (Global Horizontal Line Layout) */
 .section-heading-minimal {
   margin-bottom: 50px;
   position: relative;
   display: flex;
   align-items: center;
   gap: 15px;
   padding-left: 0;
   border-left: none;
 }

 .section-heading-minimal::before {
   content: "|";
   display: inline-block;
   width: auto;
   height: auto;
   background-color: transparent;
   color: var(--color-accent);
   font-size: 1.4rem;
   font-weight: 300;
   flex-shrink: 0;
 }
 
 .section-heading-minimal .en-title {
   display: inline-block;
   font-family: var(--font-sans);
   font-size: 0.75rem;
   letter-spacing: 0.2em;
   text-transform: uppercase;
   color: var(--color-accent);
   margin-bottom: 0;
   white-space: nowrap;
 }
 
 .section-heading-minimal .title-divider {
   display: inline-block;
   width: auto;
   height: auto;
   background-color: transparent;
   margin: 0;
   color: #ccc; /* Changed from var(--color-accent) to gray */
   font-size: 1.4rem;
   font-weight: 300;
   overflow: visible;
   flex-shrink: 0;
 }
 
 .section-heading-minimal h2 {
   font-size: 1.25rem;
   font-family: var(--font-serif);
   color: var(--color-heading);
   margin: 0;
   white-space: nowrap;
 }

 .section-heading-minimal.center {
   justify-content: center;
   text-align: center;
 }

.is-hidden {
  display: none !important;
}

.fade-in-down {
  animation: fadeInDown 0.6s ease forwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.centered-btn-area {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

.centered-btn-area.is-hidden {
  display: none !important;
}

.bg-alt {
  background-color: var(--color-bg-alt);
}

/* ==========================================================================
   Article Detail & Blog Styles
   ========================================================================== */
.article-detail {
  padding-top: 40px; /* Reduced from 140px (section-padding default) */
  padding-bottom: 150px;
}

.article-container {
  max-width: 800px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 40px;
  padding-top: 40px; /* Reduced margin to half */
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.article-date {
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-family: var(--font-sans);
  letter-spacing: 0.05em;
}

.article-badge {
  background-color: var(--color-accent); /* Site's signature green */
  color: #fff;
  padding: 2px 10px;
  font-size: 0.7rem;
  border-radius: 4px; /* Matching .news-tag design */
  letter-spacing: 0.05em;
  min-width: 60px;
  text-align: center;
}

.article-title {
  font-size: 2.2rem;
  line-height: 1.4;
  color: var(--color-heading);
  font-family: var(--font-serif);
  margin-bottom: 25px;
}

.article-lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 50px;
}

.article-main-image {
  width: 100%;
  margin-bottom: 60px;
}

.article-main-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-body {
  font-size: 1rem;
  line-height: 2.0;
  color: var(--color-text);
}

.article-body h3 {
  font-size: 1.25rem;
  font-family: var(--font-serif);
  color: var(--color-heading);
  margin: 60px 0 25px;
  padding-left: 15px;
  border-left: 3px solid var(--color-accent);
  display: flex;
  align-items: center;
}

.article-body p {
  margin-bottom: 30px;
}

.article-body ul {
  margin-bottom: 30px;
  padding-left: 20px;
}

.article-body ul li {
  position: relative;
  list-style: none;
  margin-bottom: 12px;
  padding-left: 20px;
}

.article-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 1px;
  background-color: var(--color-accent);
}

.article-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 80px 0;
}

/* Info Table White (Refined) */
.article-info-table {
  background-color: #fff;
  color: var(--color-text);
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--color-border);
}

.article-info-table tr {
  border-bottom: 1px solid var(--color-border);
}

.article-info-table th,
.article-info-table td {
  padding: 24px 30px;
  text-align: left;
  font-size: 0.9rem;
}

.article-info-table th {
  width: 30%;
  background-color: #f9f9f7;
  font-weight: 500;
  color: var(--color-heading);
}

.article-back-nav {
  margin-top: 100px;
  text-align: center;
}

/* Mobile adjustments */
@media (max-width: 900px) {
  .article-container {
    padding: 0 40px;
  }
  
  .article-title {
    font-size: 1.7rem;
  }
  
  .article-header {
    padding-top: 40px;
  }
  
  .article-info-table th,
  .article-info-table td {
    padding: 20px;
    font-size: 0.85rem;
  }
  
  .article-info-table th {
    width: 35%;
  }
}

/* Mobile Spacing and Line-height refinements */
@media (max-width: 900px) {
  .page-header .page-title .en {
    margin-bottom: 2px !important;
    font-size: 0.85rem !important; /* ~1px smaller than 0.9rem */
  }
  
  .page-header .page-title h1 {
    line-height: 1.0 !important;
    font-size: 1.9rem !important; /* ~1px larger than 1.8rem */
    margin-top: 0;
  }

  .breadcrumbs-container {
    display: none !important;
  }
}

/* Menu Active State */
.sticky-nav li a.active,
.header-nav ul li a.active {
  color: var(--color-accent) !important;
  font-weight: 500;
}

/* Mobile Menu Active State Removed as per request */

/* Career Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(5px);
}

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

.modal-content {
  background-color: #fff;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  position: relative;
  padding: 60px 40px 40px; /* Adjusted padding */
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  transform: translateY(30px);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.modal-inner {
  overflow-y: auto;
  flex: 1;
  padding-right: 10px; /* Space for scrollbar */
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 44px;
  height: 44px;
  background-color: var(--color-accent); /* Green background */
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 2200;
  transition: all 0.3s ease;
  color: #fff; /* White icon */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-close-btn:hover {
  background-color: var(--color-accent);
  color: #fff;
  transform: scale(1.1);
}

.modal-close-btn svg {
  width: 20px;
  height: 20px;
}

.modal-inner {
  display: block; /* 2カラムを1カラムに変更 */
}


.modal-rep-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  box-shadow: var(--shadow-subtle);
}

.modal-rep-name {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 20px;
}

.modal-rep-name h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 4px;
}

.modal-rep-name span {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  text-transform: uppercase;
}

.modal-history-section {
  margin-bottom: 40px;
}

.modal-history-section h4 {
  font-size: 0.9rem;
  color: var(--color-accent);
  margin-bottom: 15px;
  letter-spacing: 0.1em;
}

.modal-history-list {
  font-size: 0.9rem;
  line-height: 1.8;
}

.modal-history-list li {
  margin-bottom: 10px;
}


.rep-career-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 30px;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: all 0.3s;
  cursor: pointer;
  margin-top: 20px;
}

.rep-career-btn:hover {
  background-color: var(--color-accent);
  color: #fff;
}
/* ==========================================================================
   Service Page Implementation (Based on approved design)
   ========================================================================== */

/* 1. Problems Section */
.service-problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.problem-card {
  background-color: #fafaf8;
  padding: 40px 30px;
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.problem-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-deep);
}

.problem-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(108, 155, 139, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: 25px;
}

.problem-card p {
  font-size: 1rem; /* 16px */
  line-height: 1.8;
  color: var(--color-text-light);
}

/* 2. Solution Intro Block */
.service-intro-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.sib-text .en-title {
  margin-bottom: 20px;
}

.sib-text h2 {
  font-size: 2.8rem;
  margin-bottom: 40px;
  line-height: 1.3;
}

.sib-text p {
  font-size: 1rem; /* 16px */
  line-height: 2;
  color: var(--color-text-light);
}

.sib-image img {
  width: 100%;
  height: auto;
  box-shadow: var(--shadow-deep);
}

/* 3. Service Detail Items (Alternating) */
.service-detail-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
  margin-bottom: 150px;
}

.service-detail-item:last-child {
  margin-bottom: 0;
}

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

.sdi-content .sdi-num {
  font-family: var(--font-serif);
  font-size: 1.15rem; /* Increased size (+4px approximately) */
  color: var(--color-accent);
  display: block;
  margin-bottom: 20px;
  letter-spacing: 0.2em;
}

.sdi-title-icon {
  vertical-align: middle;
  margin-right: 15px;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.sdi-content h3 {
  font-family: var(--font-serif);
  font-size: 2.22rem;
  margin-bottom: 30px;
}

.sdi-content p {
  font-size: 1rem; /* 16px */
  line-height: 2;
  color: var(--color-text-light);
  margin-bottom: 40px;
}

.sdi-list {
  list-style: none;
  padding: 0;
}

.sdi-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--color-text);
}

.sdi-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 1px;
  background-color: var(--color-accent);
}

/* 4. Features Selection */
.service-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

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

.feature-icon {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
}

.fi-circle {
  width: 80px;
  height: 80px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-accent);
  transition: all 0.4s ease;
}

.feature-item:hover .fi-circle {
  background-color: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.feature-item h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-family: var(--font-serif);
}

.feature-item p {
  font-size: 1rem; /* 16px */
  line-height: 1.8;
  color: var(--color-text-light);
}

/* 5. Workflow */
.service-workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
}

/* Connecting line for workflow steps */
.service-workflow::before {
  content: "";
  position: absolute;
  top: 60px;
  left: 10%;
  right: 10%;
  height: 1px;
  background-color: var(--color-border);
  z-index: -1;
}

.workflow-step {
  text-align: center;
}

.step-num {
  width: fit-content;
  margin: 0 auto 30px;
  background-color: var(--color-bg);
  padding: 0 15px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  font-weight: 500;
}

.workflow-step h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  font-family: var(--font-serif);
}

.workflow-step p {
  font-size: 1rem; /* 16px */
  line-height: 1.7;
  color: var(--color-text-light);
}

/* Mobile Adjustments for Service Page */
@media (max-width: 900px) {
  .service-problems-grid,
  .service-features-grid,
  .service-workflow {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-workflow::before {
    display: none;
  }

  .service-intro-block,
  .service-detail-item {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: left;
  }

  .service-detail-item.reverse {
    direction: ltr; /* Reset to normal on mobile */
  }

  .sib-text h2 {
    font-size: 1.8rem;
  }

  /* Section Alignment Alignment */
  .service-intro-block.centered {
    text-align: left !important;
  }
  .service-intro-block.centered .sib-text {
    margin: 0 !important;
  }

  .sdi-content h3 {
    font-size: 1.8rem;
  }

  /* List Alignment */
  .sdi-list li {
    padding-left: 1.2em;
    font-size: 0.9rem;
  }
  .sdi-list li::before {
    width: 8px;
    top: 0.7em;
  }

  /* --- Cases/Contact New Refinements --- */
  
  /* Remove image overflow action on cases */
  .case-study-card:hover .case-card-image img {
    transform: none !important;
  }

  /* Contact Page Lead Left-align */
  .contact-intro-lead {
    text-align: left !important;
  }

  .contact-intro-lead p {
    text-align: left !important;
  }

  /* Form Labels to 16px */
  .form-label-light {
    font-size: 16px !important;
  }

  /* FAQ & CTA Title Sync */
  .message-style-title {
    text-align: left !important;
  }
}

/* Refinements for Service Page (Task-based) */

.problem-card {
  border-radius: 12px;
}

.problem-icon {
  background-color: var(--color-accent) !important;
  color: #fff !important;
}

.sdi-content .sdi-num {
  font-size: 30px !important;
}

.sdi-title-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--color-accent);
  color: #fff;
  border-radius: 6px;
  margin-right: 8px; /* 8px gap as requested */
  vertical-align: middle;
}

.sdi-title-icon-box svg {
  width: 20px;
  height: 20px;
}

.sdi-content h3 {
  display: flex;
  align-items: center;
  line-height: 1.2;
}

.sdi-list li {
  display: flex;
  align-items: center;
  color: var(--color-accent) !important;
}

.sdi-list li::before {
  position: static !important;
  margin-right: 12px;
  flex-shrink: 0;
}

.service-detail-item {
  border-top: 1px solid var(--color-border);
  padding: 100px 0;
  margin-bottom: 0 !important;
}

.service-detail-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.fi-circle {
  background-color: var(--color-accent) !important;
  color: #fff !important;
  border: none !important;
}

.service-workflow::before {
  display: none !important;
}

.workflow-step p {
  font-size: 16px !important;
}

.service-workflow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.workflow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.5rem;
  opacity: 0.5;
}

@media (max-width: 900px) {
  .service-workflow {
    flex-direction: column;
  }
  .workflow-arrow {
    transform: rotate(90deg);
    margin: 20px 0;
  }
}

/* ==========================================================================
   Cases Studies (Horizontal Header)
   ========================================================================== */
#cases {
  background-color: #fff;
}

/* ==========================================================================
   Case Studies Page (cases.html)
   ========================================================================== */
.cases-intro {
  margin: 0 auto 80px;
  text-align: center;
}

.cases-intro p {
  line-height: 2.2;
  color: var(--color-text-light);
  font-family: var(--font-serif);
  font-size: 1.225rem;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 80px 60px;
  margin-bottom: 120px;
}

.case-study-card {
  background-color: #fff;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.case-card-header {
  margin-bottom: 25px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 15px;
}

.case-card-header .num {
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-serif);
}

.case-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 35px;
}

.case-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.case-study-card:hover .case-card-image img {
  transform: scale(1.05);
}

.case-card-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  line-height: 1.5;
  margin-bottom: 30px;
  color: var(--color-heading);
}

.case-card-meta {
  margin-bottom: 35px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.case-meta-item svg {
  margin-top: 3px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.case-card-summary-box {
  background-color: #f9faf9; /* Very light accent bg */
  padding: 30px;
  margin-bottom: 35px;
  border-left: 2px solid var(--color-accent);
}

.summary-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 15px;
  font-weight: 600;
}

.summary-text {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--color-text);
}

.case-lawyer-box {
  margin-top: auto;
  padding-top: 30px;
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: 20px;
  align-items: center;
}

.lawyer-portrait {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.lawyer-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lawyer-info {
  flex-grow: 1;
}

.lawyer-quote {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.lawyer-name-role {
  font-size: 0.8rem;
  color: var(--color-accent);
}

/* Modal Lawyer Box Specific Styles */
.modal-lawyer-box {
  margin-top: 40px;
  background: var(--color-bg-alt);
  padding: 60px; /* Equal padding for PC */
  border: none;
}

@media (max-width: 900px) {
  .modal-lawyer-box {
    padding: 30px 20px !important;
  }
}

@media (max-width: 1024px) {
  .cases-grid {
    grid-template-columns: 1fr;
    gap: 100px;
  }
}

@media (max-width: 768px) {
  .cases-intro p {
    font-size: 1rem;
    text-align: left;
  }
  .case-card-title {
    font-size: 1.4rem;
  }
}

/* ==========================================================================
   Customer Voices Page (voices.html)
   ========================================================================== */
.voice-interview-section {
  padding-bottom: 120px;
}

.voice-interview-item {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-bottom: 160px;
}

.voice-interview-item:nth-child(even) {
  flex-direction: row-reverse;
}

.vii-image {
  flex: 1;
  max-width: 500px;
}

.vii-image img {
  width: 100%;
  aspect-ratio: 2 / 3; /* 4:6 ratio */
  object-fit: cover;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 20px 20px 0px rgba(var(--color-accent-rgb), 0.05);
}

.vii-content {
  flex: 1.2;
}

.vii-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--color-accent);
}

.vii-headline {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  line-height: 1.5;
  color: var(--color-heading);
  margin-bottom: 25px;
}

.vii-meta {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 40px;
  display: block;
}

.q-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.q-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: 20px;
  align-items: start;
}

.q-num {
  grid-column: 1;
  grid-row: 1;
  width: 24px;
  height: 24px;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  align-self: center; /* タイトル行に対して垂直中央揃え */
}

.q-text-group {
  display: contents; /* Gridの直接の子要素として扱うため */
}

.q-question {
  grid-column: 2;
  grid-row: 1;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-accent); /* 緑色に統一 */
  align-self: center; /* 丸数字に対して垂直中央揃え */
  line-height: 1.4;
}

.q-answer {
  grid-column: 2;
  grid-row: 2;
  font-size: 1rem; /* 16px */
  line-height: 1.8;
  color: var(--color-text);
  padding-top: 10px; /* タイトルとの間隔 */
}

.voices-footer-msg {
  text-align: center;
  padding: 100px 0;
  border-top: 1px solid var(--color-border);
  margin-top: 40px;
}

.vfm-title {
  font-family: var(--font-serif);
  font-size: 1.625rem;
  color: var(--color-accent);
  margin-bottom: 25px;
  letter-spacing: 0.1em;
}

.vfm-text {
  font-size: 1rem; /* 16px */
  line-height: 2;
  color: var(--color-text-light);
}

@media (max-width: 1024px) {
  .voice-interview-item,
  .voice-interview-item:nth-child(even) {
    flex-direction: column;
    gap: 40px;
    margin-bottom: 100px;
  }
  
  .vii-image {
    max-width: 100%;
  }

  .vii-headline {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   Recruit Page (recruit.html)
   ========================================================================== */
.recruit-lead-section {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-bottom: 120px;
}

.recruit-lead-text {
  flex: 1;
}

.recruit-lead-image {
  flex: 1;
  max-width: 500px;
}

.recruit-lead-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: 20px 20px 0px rgba(var(--color-accent-rgb), 0.05);
}

/* Ideal Candidates Grid */
.recruit-person-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 120px;
}

.person-card {
  background: #fff;
  padding: 40px;
  border: 1px solid var(--color-border);
  border-radius: 12px; /* Slightly rounded corners */
  transition: var(--transition);
}

.person-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-5px);
}

.person-icon {
  width: 48px;
  height: 48px;
  background-color: var(--color-bg-alt);
  color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 1.2rem;
  font-family: var(--font-en);
}

.person-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--color-heading);
}

.person-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--color-text-light);
}

/* Stats Section */
.recruit-stats-section {
  background-color: var(--color-heading); /* Dark bg */
  color: #fff;
  padding: 120px 0;
  margin-bottom: 120px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px 40px;
}

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

.stat-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 15px;
  font-family: var(--font-sans);
}

.stat-value {
  display: block;
  font-family: var(--font-en);
  font-size: 2.8rem;
  color: var(--color-accent);
  font-weight: 500;
}

.stat-unit {
  font-size: 1rem;
  margin-left: 4px;
}

/* Environment Grid */
.recruit-env-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 120px;
}

.env-card {
  display: flex;
  gap: 30px;
  padding: 40px;
  background-color: var(--color-bg-alt);
}

.env-icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  color: var(--color-accent);
}

.env-info h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--color-heading);
}

.env-info p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-light);
}

/* Job Listing */
.recruit-job-list {
  margin-bottom: 120px;
}

.job-item {
  border-bottom: 1px solid var(--color-border);
  padding: 35px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.job-item:hover {
  padding-left: 15px;
  border-color: var(--color-accent);
}

.job-title-group h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--color-heading);
}

.job-meta {
  font-size: 0.85rem;
  color: var(--color-accent);
  letter-spacing: 0.05em;
}

.job-link-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  transition: var(--transition);
}

.job-item:hover .job-link-icon {
  background-color: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

@media (max-width: 1024px) {
  .recruit-lead-section {
    flex-direction: column;
    gap: 40px;
  }
  .recruit-person-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .recruit-person-grid,
  .recruit-env-grid {
    grid-template-columns: 1fr;
  }
  .stat-value {
    font-size: 2rem;
  }
}

/* ==========================================================================
   Recruit Page Refinements
   ========================================================================== */

/* Title Styles */
.message-style-title {
  margin-bottom: 60px;
}

.message-style-title.center {
  text-align: center;
}

.message-style-title .en-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.message-style-title .vii-headline {
  font-size: 2.22rem;
  margin-bottom: 0;
  line-height: 1.4;
}

/* 16px Body Text for Recruit */
.recruit-body-text {
  font-size: 1rem; /* 16px */
  line-height: 2;
  color: var(--color-text-light);
}

/* 4:6 Aspect Ratio */
.v6h4-image {
  aspect-ratio: 2 / 3 !important;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* Person Section */
.person-card .person-icon {
  background-color: var(--color-accent);
  color: #fff;
}

.person-card .person-title {
  color: var(--color-accent);
}

/* Green Stats Section with Texture */
.recruit-stats-section.green-bg {
  background-color: var(--color-accent);
  position: relative;
  overflow: hidden;
}

.recruit-stats-section .stat-item {
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px; /* Slightly rounded corners */
  transition: var(--transition);
}

.recruit-stats-section .stat-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.recruit-stats-section .stat-label {
  color: rgba(255, 255, 255, 0.8);
}

.recruit-stats-section .stat-value {
  color: #fff;
}

/* Modal Window Styles */
.recruit-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

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

.recruit-modal-container {
  background: #fff;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 60px;
  transform: translateY(30px);
  transition: all 0.4s ease;
}

.recruit-modal-overlay.active .recruit-modal-container {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-text-light);
  line-height: 1;
}

.modal-content-area h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--color-heading);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--color-border);
}

.modal-job-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
}

.modal-job-table th {
  text-align: left;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
  width: 30%;
  color: var(--color-accent);
  font-size: 0.9rem;
}

.modal-job-table td {
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.modal-action {
  text-align: center;
}

.btn-entry {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color-accent);
  color: #fff;
  padding: 14px 40px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s, transform 0.3s;
}

.btn-entry:hover {
  opacity: 0.9;
}

/* ==========================================================================
   Contact Page Refinements (Light Theme)
   ========================================================================== */

/* 1. Lead Section Match Cases Page */
.contact-intro-lead {
  max-width: none; /* Matched the width to sections below */
  margin: 0 auto 60px;
  text-align: center;
}

.contact-intro-lead p {
  line-height: 2.2;
  color: var(--color-text-light);
  font-family: var(--font-serif);
  font-size: 1.225rem;
}

/* 2. FAQ Styles (Light) */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item-light {
  border: 1px solid var(--color-border);
  padding: 30px;
  background: var(--color-bg);
  border-radius: 12px; /* Slightly rounded corners */
  transition: var(--transition);
}

.faq-item-light:hover {
  border-color: var(--color-accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.faq-question {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  font-family: var(--font-serif);
  font-size: 1.125rem; /* Increased (+2px) to 18px */
  font-weight: 600;
  color: var(--color-accent); /* Updated to accent green */
}

.faq-question .q-mark {
  color: var(--color-accent);
}

.faq-answer {
  display: flex;
  gap: 20px;
  font-size: 1rem; /* 16px */
  line-height: 1.8;
  color: var(--color-text-light);
}

.faq-answer .a-mark {
  color: var(--color-accent);
  font-weight: 700;
}

/* 3. Contact Info Row (Light) */
.contact-info-row-light {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 80px;
  padding: 80px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.info-column {
  text-align: center;
}

.info-column .info-icon {
  color: var(--color-accent);
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.info-column h4 {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 15px;
  text-transform: uppercase;
}

.info-column p {
  font-size: 1.1rem;
  font-family: var(--font-serif);
  line-height: 1.6;
  color: var(--color-heading);
}

.info-column .info-sub {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 10px;
}

/* 4. Light Form Styles */
.contact-form-light {
  max-width: 800px;
  margin: 100px auto 0;
  background: #fff;
  padding: 80px;
  border: 1px solid var(--color-border);
  border-radius: 12px; /* Slightly rounded corners */
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.03);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.form-full {
  grid-column: span 2;
}

.form-label-light {
  display: block;
  font-size: 0.85rem;
  color: var(--color-heading);
  margin-bottom: 12px;
  font-weight: 500;
}

.form-label-light .required {
  color: #e74c3c;
  margin-left: 4px;
}

.input-light {
  width: 100%;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 18px;
  font-size: 0.95rem;
  transition: var(--transition);
}

.input-light:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #fff;
}

.textarea-light {
  min-height: 180px;
  resize: vertical;
}

/* Policy Box Light */
.policy-box-light {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  height: 160px;
  overflow-y: scroll;
  padding: 25px;
  font-size: 0.85rem;
  line-height: 2;
  color: var(--color-text-light);
  margin-bottom: 25px;
}

.policy-check {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.95rem;
  cursor: pointer;
}

.policy-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-accent);
}

/* Send Button Style (Matching Recruit Entry Button) */
.btn-send-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: var(--color-accent);
  color: #fff;
  padding: 16px 80px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(var(--color-accent-rgb), 0.3);
  transition: all 0.4s ease;
}

.btn-send-modern:hover {
  background-color: var(--color-heading);
}

@media (max-width: 768px) {
  .contact-info-row-light {
    grid-template-columns: 1fr;
    padding: 60px 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-full {
    grid-column: span 1;
  }
  .contact-form-light {
    padding: 40px 20px;
  }
  .contact-intro-lead p {
    font-size: 1.1rem;
  }
}

/* --- Force Authoritative Mobile Refinements (Service Page) --- */
@media (max-width: 900px) {
  /* Title Font Size & Alignment Consistency */
  .sib-title {
    font-size: 1.8rem !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }
  
  .service-intro-block.centered {
    text-align: left !important;
    align-items: flex-start !important;
  }
  
  .service-intro-block.centered .sib-text {
    margin-left: 0 !important;
    text-align: left !important;
  }

  /* List Indentation Abolition & Color Adjustment */
  .sdi-list {
    padding-left: 0 !important;
    margin-left: 0 !important;
  }

  .sdi-list li {
    padding-left: 0 !important;
    text-indent: 0 !important;
    color: var(--color-accent) !important; /* Green characters as requested */
    font-weight: 500;
  }

  .sdi-list li::before {
    display: none !important; /* Remove bullet to ensure perfect left-alignment with body text */
  }
}

/* --- Force Authoritative Mobile Refinements (Case Study Page) --- */
@media (max-width: 900px) {
  .case-lawyer-box {
    align-items: flex-start !important; /* Align image top with text top */
    gap: 15px !important;
  }
  
  .lawyer-portrait {
    margin-top: 4px !important; /* Micro-adjustment to align with first line of text */
  }
}

/* --- Force Authoritative Mobile Refinements (Recruit Page) --- */
@media (max-width: 900px) {
  /* 1. Office Data (Stats) Adjustment */
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  
  .stat-value {
    font-size: 2.22rem !important;
  }

  /* 2. Member Interview Fix (Reset row-reverse) */
  .voice-interview-item,
  .voice-interview-item:nth-child(even) {
    flex-direction: column !important;
    text-align: left !important;
  }

  /* 3. Work Environment (Vertical Layout) */
  .recruit-env-grid {
    grid-template-columns: 1fr !important;
  }

  .env-card {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 30px 20px !important;
  }

  /* 4. Recruitment Modal Close Button Hover */
  .modal-close-btn:hover {
    background-color: var(--color-accent) !important;
    color: #fff !important;
  }
  
  .modal-close-btn:hover::before,
  .modal-close-btn:hover::after {
    background-color: #fff !important;
  }

  /* 5. Recruitment List (Job Items) - Abolish Hover Action & Set Defaults */
  .recruit-job-list .job-item {
    padding-left: 0 !important;
    border-color: var(--color-accent) !important; /* Permanent accent color on mobile */
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  
  .recruit-job-list .job-item:hover {
    transform: none !important;
    padding-left: 0 !important;
  }

  /* Permanent Hover-like state for Arrow on Mobile */
  .recruit-job-list .job-link-icon {
    flex-shrink: 0 !important; /* Prevent deformation */
    min-width: 44px !important;
    min-height: 44px !important;
    background-color: var(--color-accent) !important;
    color: #fff !important;
    border-color: var(--color-accent) !important;
  }

  /* Ensure arrow SVG is white */
  .recruit-job-list .job-link-icon svg {
    stroke: #fff !important;
  }
}


/* --- Mobile Fixed Logo (Sub-pages only) --- */
.mobile-fixed-logo {
  display: none; /* Hidden on desktop */
}

@media (max-width: 900px) {
  .mobile-fixed-logo {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2001;
    text-decoration: none;
    transition: all 0.4s ease;
  }

  .mobile-logo-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    padding: 0 20px;
    height: 70px;
    transition: all 0.3s ease;
  }

  .mobile-logo-texts {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .company-name {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-heading);
    line-height: 1.1;
    white-space: nowrap;
    transition: color 0.3s ease;
  }

  .company-catch {
    font-size: 10px;
    color: var(--color-text-light);
    line-height: 1.1;
    margin-top: 1px;
    white-space: nowrap;
    transition: color 0.3s ease;
  }

  /* --- Dynamic Mobile Header Background --- */
  .mobile-header-bar {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: #fff;
    z-index: 2000;
    opacity: 1;
    visibility: visible;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: background-color 0.3s ease, opacity 0.3s ease;
  }

  /* Menu Toggle: Center vertically */
  .mobile-menu-toggle {
    top: 35px !important; /* Half of 70px */
    transform: translateY(-50%);
    margin-top: 0 !important;
    z-index: 2100 !important;
    transition: all 0.3s ease;
  }

  .mobile-fixed-logo svg {
    transition: stroke 0.3s ease;
  }

  /* --- Menu Open States --- */
  body.menu-open .mobile-header-bar {
    background-color: transparent !important;
    box-shadow: none !important;
  }

  body.menu-open .company-name,
  body.menu-open .company-catch {
    color: #fff !important;
  }

  body.menu-open .mobile-fixed-logo svg {
    stroke: #fff !important;
  }

  body.menu-open .mobile-menu-toggle span {
    background-color: var(--color-accent) !important;
  }
  
  .main-header {
    display: none;
  }

  /* Hero catchphrase position: 100px below header bar top */
  .hero-text-container {
    position: absolute !important;
    top: 100px !important;
    left: 20px !important;
    margin: 0 !important;
    text-align: left !important;
    align-items: flex-start !important;
  }

  .hero-catch {
    font-size: 2.5rem !important; /* Adjust size for mobile */
  }

  .hero-subcatch {
    font-size: 1.1rem !important;
    margin-top: 15px !important;
  }
}

/* ==========================================================================
   サービスパネル 3列×2行 確定レイアウト（最優先）
   ========================================================================== */
@media (min-width: 901px) {
  .service-panel-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    width: 100% !important;
  }

  .service-panel {
    display: flex !important;
    flex-direction: column !important;
    background-color: #fff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    height: 100% !important;
  }

  .service-panel-img {
    width: 100% !important;
    height: 260px !important;
    object-fit: cover !important;
    display: block !important;
    flex-shrink: 0 !important;
  }

  .service-panel-content {
    padding: 36px !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .service-container-fluid {
    padding: 0 60px !important;
  }
}

/* ==========================================================================
   スマートフォン向け最終調整（全セクションの縦並びと80%幅設定）
   ========================================================================== */
@media (max-width: 900px) {
  /* 共通：セクション全体のメインコンテナを画面幅の80%にして中央寄せ */
  #service .service-container-fluid,
  #cases .case-container-fluid,
  #voices .container,
  .ig-section .container {
    padding: 0 !important;
    width: 80% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: none !important;
  }

  /* 各グリッド・パネル：コンテナ（80%）に対して幅100%にする */
  .service-panel-grid,
  .service-elegant-grid,
  .voices-grid,
  .ig-card-grid {
    width: 100% !important;
    grid-template-columns: 1fr !important;
  }

  /* お客様の声：表示崩れ修正と縦並び */
  .voice-card {
    flex-direction: column !important;
    align-items: center !important;
    padding: 40px 20px !important;
    gap: 20px !important;
    border-radius: 30px !important;
    width: 100% !important;
  }
  .voice-avatar {
    width: 180px !important; /* 120pxの1.5倍 */
    height: 180px !important;
    margin-bottom: 20px !important;
  }
  .voice-content {
    text-align: center !important;
    width: 100% !important;
  }
  .voice-title, .voice-text, .voice-attr {
    text-align: center !important;
    width: 100% !important;
    display: block !important;
  }

  /* 事務所の風景（Instagram）：縦1列 */
  .ig-card-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    gap: 30px !important;
  }

  /* CTA（採用・お問い合わせ）：縦並び */
  .cta-elegant-panels > div {
    flex-direction: column !important;
    gap: 20px !important;
  }
  .cta-box {
    min-height: 400px !important;
    padding: 30px !important;
    width: 100% !important;
  }
  .cta-content-panel {
    width: 90% !important;
    max-width: 360px !important;
  }
}

/* ==========================================================================
   事務所情報ページの画像と余白の調整 (PC & SP)
   ========================================================================== */
.vision-image img,
.message-image img,
.staff-card img,
.gallery-item img {
  border-radius: 30px !important;
  overflow: hidden !important;
}

/* フィロソフィーセクションの写真下の余白を狭く調整 */
.company-vision-section {
  margin-bottom: 30px !important;
}

@media (max-width: 900px) {
  .company-vision-section {
    margin-bottom: 10px !important;
  }
  .message-title {
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    width: 100% !important;
    max-width: none !important;
  }
}

/* ==========================================================================
   サービス内容ページの調整 (PC & SP)
   ========================================================================== */

/* 画像の角丸加工 */
.sib-image img,
.sdi-image img {
  border-radius: 30px !important;
  overflow: hidden !important;
}

/* 解決事例数字のフォント変更 */
.case-card-header .num {
  font-family: var(--font-en) !important;
  font-weight: 500 !important;
}

/* 解決事例パネルのパディング設定 */
.case-study-card {
  padding: 50px !important;
}

@media (max-width: 900px) {
  .case-study-card {
    padding: 30px !important;
  }
}

/* サービス数字のフォント変更 (英文フォントに統一) */
.sdi-num {
  font-family: var(--font-en) !important;
  font-weight: 500 !important;
}

/* 解決の流れ：ステップ番号のボタン風（左右半円）デザイン */
.workflow-step .step-num {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid var(--color-accent) !important;
  padding: 0 20px !important;
  border-radius: 100px !important;
  font-family: var(--font-en) !important;
  font-size: 0.85rem !important;
  color: var(--color-accent) !important;
  margin-bottom: 20px !important;
  height: 34px !important;
  line-height: 1 !important;
  background-color: transparent !important;
}


/* スタッフ紹介のボタンを右寄せ (Mobile) */
@media (max-width: 900px) {
  .staff-card {
    display: flex !important;
    flex-direction: column !important;
  }
  .staff-card .btn-line {
    align-self: flex-end !important;
  }
}

/* オフィス風景の写真間のスペース確保 (PC & Mobile) */
.gallery-item {
  padding: 0 10px !important;
}

/* 解決事例：ホバーアクション削除と画像角丸 */
.case-card-image img,
.lawyer-portrait img {
  border-radius: 20px !important;
  overflow: hidden !important;
}

.case-study-card:hover .case-card-image img {
  transform: none !important;
}

/* 詳しくはこちらボタン（ヘッダー採用ボタン風） */
.case-card-footer {
  margin-top: 40px;
  display: flex;
}

/* PC: 中央寄せ / SP: 右寄せ */
@media (min-width: 901px) {
  .case-card-footer {
    justify-content: center;
  }
}
@media (max-width: 900px) {
  .case-card-footer {
    justify-content: flex-end;
  }
}

.btn-case-detail {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 14px 32px !important; /* Increased from 10px 24px */
  font-family: var(--font-sans) !important;
  font-size: 0.85rem !important;
  border-radius: 4px !important;
  color: #fff !important;
  background-color: var(--color-accent) !important;
  transition: opacity 0.3s !important;
  gap: 12px !important;
  border: none !important;
  cursor: pointer !important;
  line-height: 1.2 !important;
}

.btn-case-detail:hover {
  opacity: 0.8 !important;
  transform: none !important;
}

/* モーダルの表示調整 (PC) */
@media (min-width: 901px) {
  .modal-content {
    max-width: 850px !important;
    width: 95% !important;
    padding: 80px 60px 60px !important;
  }
  .modal-inner {
    display: block !important;
  }
}






