@import 'header.css';

:root {
  /* Colors - Universal Warmth Palette */
  /* WCAG AAA Target: Contrast 7:1 for normal text, 4.5:1 for large text */
  --color-bg-body: #FAF9F6;
  /* Soft warm white */
  --color-bg-card: #FFFFFF;
  --color-text-main: #2D3436;
  /* Dark slate - High contrast */
  --color-text-muted: #636e72;

  --color-primary: #C0392B;
  /* Deep Warm Radish/Orange - Adjusted for better contrast on white */
  --color-primary-light: #FFE0B2;
  /* Soft Orange for backgrounds */
  --color-secondary: #218c74;
  /* Deep Green - Nature friendly */

  --color-accent: #e67e22;
  /* Pure Orange for accents/icons */

  --color-popi-orange: #f39c12;
  /* Warm vibrant orange for Popi */

  /* Typography */
  --font-family-base: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  /* Clean, readable */
  --font-size-base: 18px;
  /* Larger base size for accessibility */
  --line-height-base: 1.6;

  /* Spacing */
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 32px;
  --spacing-xl: 64px;
  --spacing-xxl: 120px;

  /* Borders */
  --border-radius-card: 24px;
  /* Soft rounded */
  --border-radius-btn: 50px;

  /* Imported Fonts */
  --font-family-english: 'Cormorant Garamond', serif;
}

.font-english {
  font-family: var(--font-family-english);
  font-style: italic;
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.floating-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  font-size: 0.8rem;
  font-weight: bold;
}

.floating-cta-btn:hover {
  transform: scale(1.1);
}

.floating-cta-line {
  background-color: #06c755;
}

.floating-cta-tel {
  background-color: var(--color-primary);
}

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

html, body {
  overflow-x: hidden;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text-main);
  background-color: var(--color-bg-body);
  /* Smooth scrolling */
  scroll-behavior: smooth;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-text-main);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

h2 {
  font-size: 2.25rem;
  margin-bottom: var(--spacing-lg);
  letter-spacing: 0.05em;
}

h3 {
  font-size: 1.5rem;
  color: var(--color-secondary);
}

p {
  margin-bottom: var(--spacing-md);
}

/* Layout Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

section {
  padding: var(--spacing-xxl) 0;
}

/* Components: Card */
.card {
  background: var(--color-bg-card);
  border-radius: var(--border-radius-card);
  padding: var(--spacing-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  /* Premium soft shadow */
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

/* Components: Buttons */
.btn {
  display: inline-block;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--border-radius-btn);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1.1rem;
}

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

.btn-primary:hover {
  background-color: #a93226;
  transform: scale(1.05);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: white;
}

/* Header */
header {
  padding: 10px 0;
  /* Reduced padding for sticky */
  background-color: rgba(255, 255, 255, 0.95);
  /* Sticky background */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  /* Sticky shadow */
  position: fixed;
  /* Sticky positioning */
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-text-main);
  text-decoration: none;
  display: flex;
  /* Fix for image alignment */
  align-items: center;
}

.logo img {
  height: 90px !important;
  /* Larger logo */
  width: auto;
  transition: height 0.3s ease;
}

/* Add padding to body for fixed header */
body {
  padding-top: 110px;
}

.logo span {
  color: var(--color-primary);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 15px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--color-text-main);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
  display: block;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--color-primary);
}

.btn-contact-circle {
  display: flex !important;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #C0392B;
  /* Deep Red/Orange */
  color: white !important;
  font-size: 0.8rem !important;
  font-weight: 700;
  padding: 0 !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s;
}

.btn-contact-circle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(192, 57, 43, 0.3);
  background-color: #E74C3C;
}

/* Hero Section */
.hero {
  min-height: 90vh;
  /* Full screen feel */
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #FFF8F0 0%, #E8F6F3 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 650px;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.85);
  /* Readability over image */
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-card);
  backdrop-filter: blur(5px);
  text-align: center;
  /* Center align all text inside hero content */
  margin: 0 auto;
  /* Center the hero content block itself if screen is wide */
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.85;
  /* Soften the image slightly so text pops out more */
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-lg);
  color: var(--color-text-main);
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-lg);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  /* Center the buttons */
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card h3 {
  font-size: 1.8rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-secondary);
}

.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius-card) var(--border-radius-card) 0 0;
  margin: calc(-1 * var(--spacing-lg)) calc(-1 * var(--spacing-lg)) var(--spacing-lg) calc(-1 * var(--spacing-lg));
  /* Negative margin to pull image to the very edges of the padding-heavy card */
  /* Added specific width constraint to avoid horizontal scroll */
  max-width: calc(100% + calc(2 * var(--spacing-lg)));
}

.service-card p {
  flex-grow: 1;
}

/* About Section */
.about {
  background-color: white;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

@media (min-width: 768px) {
  .about-content {
    flex-direction: row;
    align-items: center;
  }

  .about-text {
    flex: 1;
  }

  .about-image {
    flex: 1;
    height: 400px;
    border-radius: var(--border-radius-card);
    overflow: hidden;
    /* For smooth image edges */
  }

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

  /* Placeholder */
}

/* Footer */
footer {
  background-color: var(--color-text-main);
  color: white;
  padding: var(--spacing-xl) 0;
  text-align: center;
}

footer p {
  color: #b2bec3;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .hero {
    text-align: center;
    justify-content: center;
  }

  nav ul {
    display: none;
  }

  /* Mobile menu simplified for MVP */
}

/* =========================================
   Mobile Responsiveness (Added)
   ========================================= */

@media (max-width: 900px) {

  /* Typography Adjustments */
  :root {
    --font-size-base: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 40px;
    --spacing-xxl: 60px;
  }

  h1 {
    font-size: 1.6rem;
    /* Tested size to securely fit "地域に、安心できる" and "「受け皿」をつくる。" on most mobile screens */
    line-height: 1.4;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  /* Layout Adjustments */
  .container {
    width: 95%;
    /* Make slightly wider on mobile to maximize space */
    padding: 0 12px;
  }

  section {
    padding: 60px 0;
    /* Increase padding a bit to let sections breathe */
  }

  /* Hero Section */
  .hero {
    min-height: auto;
    padding-top: 100px;
    /* Account for fixed header */
    padding-bottom: 60px;
    text-align: center;
  }

  .hero-content {
    width: 100%;
    padding: var(--spacing-md);
    /* Reduce padding on mobile to give text more horizontal space */
  }

  /* Fix background shape obstructing content on mobile */
  .hero>div[style*="position: absolute"] {
    display: none;
  }

  /* Stacking grids */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* About Section */
  .about-content {
    flex-direction: column;
  }

  .about-image {
    height: 300px;
    /* Slight increase for better mobile view of people in image */
    width: 100%;
  }

  .about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-card);
  }

  /* SVG Icons for Strengths */
  .strength-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--spacing-md);
  }

  /* Card Adjustments */
  .card {
    padding: 20px;
  }

  /* CTA Buttons in Hero */
  .hero .btn {
    width: 100%;
    margin-bottom: 10px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  /* Fix Header Padding for Body */
  body {
    padding-top: 70px;
    /* Reduced specific to mobile header height */
  }

  /* Stacking for Rates Page Grids */
  .mr-container>div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }

  .mr-cta-btn {
    width: 100%;
    display: block;
    margin-bottom: 10px;
  }

  section[style*="display: flex"] {
    flex-direction: column;
  }

  .service-card-img {
    width: calc(100% + 40px);
    margin: -20px -20px 20px -20px;
    max-width: calc(100% + 40px);
  }
}

/* Adjustments for Table Handling */
@media (max-width: 600px) {

  .area-table,
  .mr-rates-table,
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  .area-table th,
  .area-table td,
  .mr-rates-table th,
  .mr-rates-table td,
  table th,
  table td {
    white-space: normal;
    min-width: 120px;
  }

  /* Ensure Company Info table headers don't get too squeezed */
  th {
    white-space: nowrap;
    min-width: 100px;
  }
}

/* =========================================
   Utility Classes for Responsive Line Breaks
   ========================================= */
.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

.text-nowrap {
  display: inline-block;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }

  /* Improve text readability on mobile */
  p {
    line-height: 1.8;
    word-break: normal;
    overflow-wrap: break-word;
  }
}

/* ME RIGHT Button Style */
.btn-meright {
  background: linear-gradient(135deg, #2AF598 0%, #009EFD 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 158, 253, 0.3);
}

.btn-meright:hover {
  background: linear-gradient(135deg, #2AF598 20%, #009EFD 120%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 158, 253, 0.4);
  color: white;
}

/* Popi Button Style */
.btn-popi {
  background-color: var(--color-popi-orange);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-popi:hover {
  background-color: #e67e22;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
  color: white;
}

/* Terrasta (Corporate) Button Style */
.btn-terrasta {
  background: linear-gradient(135deg, #C0392B 0%, #E74C3C 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
}

.btn-terrasta:hover {
  background: linear-gradient(135deg, #C0392B 20%, #E74C3C 120%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.4);
  color: white;
}

/* Terrasta Hero Accent Text (controlled single-stage gradient, index.html) */
.tr-hero-accent {
  background: linear-gradient(135deg, #C0392B 0%, #E67E22 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* =========================================
   Terrasta TOP: connected-care visual story
   ========================================= */
.hero--concept {
  min-height: auto;
  padding: clamp(72px, 7vw, 108px) 0;
  background:
    radial-gradient(circle at 87% 14%, rgba(33, 140, 116, 0.14), transparent 34%),
    radial-gradient(circle at 8% 90%, rgba(230, 126, 34, 0.14), transparent 32%),
    #fffaf5;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(380px, 0.86fr) minmax(520px, 1.14fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}

.hero--concept .hero-content {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  backdrop-filter: none;
  text-align: left;
}

.hero--concept .hero-eyebrow {
  margin-bottom: 12px;
  color: var(--color-primary);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero--concept h1 {
  margin-bottom: 24px;
  font-size: clamp(2.45rem, 4.2vw, 4rem);
  line-height: 1.32;
  letter-spacing: -0.045em;
}

.hero--concept .hero-lead {
  margin-bottom: 32px;
  color: #4e5a5d;
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  line-height: 2;
}

.hero--concept .hero-buttons {
  justify-content: flex-start;
  gap: 12px;
}

.hero--concept .hero-buttons .btn {
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 0.98rem;
}

.hero-scroll-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-visual {
  position: relative;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(45, 52, 54, 0.08);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 28px 70px rgba(58, 44, 32, 0.16);
}

.hero-visual::before {
  position: absolute;
  inset: -16px -16px auto auto;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(192, 57, 43, 0.18);
  border-radius: 50%;
  content: '';
  z-index: -1;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 22px;
}

.hero-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  height: 400px;
  overflow: hidden;
  border-radius: 22px;
  background: #ebe7e1;
}

.hero-story {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.hero-story--nursing {
  grid-row: 1 / 3;
}

.hero-story-grid .hero-story img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.65, 0.3, 1);
}

.hero-visual--real:hover .hero-story img {
  transform: scale(1.025);
}

.hero-story--nursing img {
  object-position: 50% 62%;
}

.hero-story--rehab img {
  object-position: 54% 50%;
}

.hero-story--meright img {
  object-position: 50% 62%;
}

.hero-story::after {
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(to bottom, transparent, rgba(24, 31, 32, 0.8));
  content: '';
  pointer-events: none;
}

.hero-story-step {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: rgba(29, 38, 39, 0.54);
  color: white;
  font-family: var(--font-family-english);
  font-size: 0.67rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.hero-story-copy {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 1;
  color: white;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.32);
}

.hero-story-copy strong,
.hero-story-copy small {
  display: block;
}

.hero-story-copy strong {
  margin-bottom: 2px;
  font-size: 0.94rem;
  letter-spacing: 0.04em;
}

.hero-story-copy small {
  font-size: 0.69rem;
  font-weight: 700;
  opacity: 0.9;
}

.hero-visual figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 8px 3px;
  color: #465053;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-visual-arrow {
  color: var(--color-primary);
  font-size: 1.15rem;
}

.about-image--continuum {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 12px;
  height: 470px !important;
  padding: 12px;
  overflow: visible !important;
  border: 1px solid rgba(45, 52, 54, 0.08);
  border-radius: 30px;
  background: linear-gradient(145deg, #fff8ef, #eef8f5);
  box-shadow: 0 24px 58px rgba(45, 52, 54, 0.1);
}

.mission-photo {
  position: relative;
  min-width: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
}

.about-image--continuum .mission-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mission-photo--popi img {
  object-position: 52% center;
}

.mission-photo--meright img {
  object-position: 50% 38%;
}

.mission-photo::after {
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(to bottom, transparent, rgba(25, 29, 30, 0.78));
  content: '';
}

.mission-photo figcaption {
  position: absolute;
  right: 12px;
  bottom: 14px;
  left: 12px;
  z-index: 1;
  color: white;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.5;
}

.mission-bridge {
  position: absolute;
  bottom: 42px;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(45, 52, 54, 0.2);
  color: #5f696b;
  font-size: 0.67rem;
  transform: translateX(-50%);
  white-space: nowrap;
}

.mission-bridge strong {
  color: var(--color-primary);
  font-family: var(--font-family-english);
  font-size: 0.92rem;
}

.service-card {
  overflow: hidden;
}

.service-card-media {
  position: relative;
  height: 280px;
  margin: calc(-1 * var(--spacing-lg)) calc(-1 * var(--spacing-lg)) var(--spacing-lg);
  overflow: hidden;
}

.service-card-media .service-card-img {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.65, 0.3, 1);
}

.service-card-media--split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4px;
  background: #eee9e2;
}

.service-card-scene {
  position: relative;
  min-width: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.service-card-scene::after {
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(to bottom, transparent, rgba(25, 31, 32, 0.75));
  content: '';
  pointer-events: none;
}

.service-card-scene figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 1;
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.service-card-scene--nursing img {
  object-position: 50% 62%;
}

.service-card-scene--rehab img {
  object-position: 55% 50%;
}

.service-card:hover .service-card-img {
  transform: scale(1.035);
}

.service-card-img--popi {
  object-position: 50% 46%;
}

.service-card-img--meright {
  object-position: 50% 62%;
}

.service-card-kicker {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  box-shadow: 0 8px 22px rgba(45, 52, 54, 0.2);
}

.service-card-kicker--popi {
  background: rgba(211, 84, 0, 0.9);
}

.service-card-kicker--meright {
  background: rgba(20, 112, 99, 0.92);
}

.strengths {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 22%),
    var(--color-bg-body);
}

.section-heading--center {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-heading--center > .font-english {
  margin-bottom: 6px;
  color: var(--color-primary);
  font-size: 1.55rem;
  font-weight: 700;
}

.section-heading--center h2 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  letter-spacing: 0.02em;
}

.section-heading--center > p:last-child {
  margin-bottom: 0;
  color: var(--color-text-muted);
  line-height: 1.9;
}

.strengths-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.strengths-grid::before {
  position: absolute;
  top: 70px;
  right: 14%;
  left: 14%;
  height: 1px;
  background: linear-gradient(90deg, #e67e22, #c0392b, #218c74);
  content: '';
  opacity: 0.28;
}

.strength-card {
  position: relative;
  z-index: 1;
  padding: 36px 28px 30px;
  text-align: center;
  border: 1px solid rgba(45, 52, 54, 0.07);
}

.strength-step {
  position: absolute;
  top: 18px;
  right: 20px;
  color: rgba(45, 52, 54, 0.32);
  font-family: var(--font-family-english);
  font-size: 1.05rem;
  font-weight: 700;
}

.strength-icon-wrap {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  background: #fff5e8;
  box-shadow: 0 0 0 10px var(--color-bg-body);
}

.strength-icon {
  width: 34px;
  height: 34px;
  margin: 0;
  stroke: #d35400;
}

.strength-card:nth-child(2) .strength-icon-wrap {
  background: #fff0ed;
}

.strength-card:nth-child(2) .strength-icon {
  stroke: #b53d30;
}

.strength-card:nth-child(3) .strength-icon-wrap {
  background: #e9f7f3;
}

.strength-card:nth-child(3) .strength-icon {
  stroke: #147063;
}

.strength-card-label {
  margin-bottom: 6px;
  color: var(--color-primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.strength-card h3 {
  margin-bottom: 14px;
  color: var(--color-text-main);
  font-size: 1.08rem;
  line-height: 1.7;
}

.strength-card > p:last-child {
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.9;
}

@media (max-width: 1100px) {
  .hero-layout {
    grid-template-columns: minmax(330px, 0.9fr) minmax(460px, 1.1fr);
    gap: 32px;
  }

  .hero--concept h1 {
    font-size: clamp(2.35rem, 4.3vw, 3.25rem);
  }
}

@media (max-width: 900px) {
  .hero--concept {
    padding: 48px 0 64px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero--concept .hero-content {
    width: 100%;
    padding: 0;
    text-align: center;
  }

  .hero--concept h1 {
    font-size: clamp(2.15rem, 9.5vw, 3.15rem);
  }

  .hero--concept .hero-buttons {
    justify-content: center;
  }

  .hero--concept .hero-buttons .btn {
    width: 100%;
    margin: 0;
  }

  .hero-visual {
    max-width: 720px;
    margin: 6px auto 0;
  }

  .hero-story-grid {
    height: 380px;
  }

  .about-image--continuum {
    height: 400px !important;
  }

  .service-card-media {
    height: 240px;
    margin: -20px -20px 20px;
  }

  .strengths-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin: 0 auto;
  }

  .strengths-grid::before {
    display: none;
  }

  .strength-card {
    padding: 30px 24px 26px;
  }
}

@media (max-width: 560px) {
  .hero--concept .hero-eyebrow {
    font-size: 1.45rem;
  }

  .hero--concept h1 {
    font-size: clamp(2rem, 10.4vw, 2.65rem);
    letter-spacing: -0.055em;
  }

  .hero--concept .hero-lead {
    font-size: 0.94rem;
    line-height: 1.9;
  }

  .hero-visual {
    padding: 7px;
    border-radius: 22px;
  }

  .hero-visual img {
    border-radius: 16px;
  }

  .hero-story-grid {
    height: 300px;
    gap: 5px;
    border-radius: 16px;
  }

  .hero-story-step {
    top: 8px;
    left: 8px;
    width: 26px;
    height: 26px;
    font-size: 0.58rem;
  }

  .hero-story-copy {
    right: 9px;
    bottom: 9px;
    left: 9px;
  }

  .hero-story-copy strong {
    font-size: 0.72rem;
    letter-spacing: 0;
  }

  .hero-story-copy small {
    font-size: 0.56rem;
    line-height: 1.35;
  }

  .hero-visual figcaption {
    gap: 7px;
    font-size: 0.64rem;
    letter-spacing: 0;
  }

  .about-image--continuum {
    grid-template-columns: 1.12fr 0.88fr;
    height: 330px !important;
    padding: 7px;
    gap: 7px;
    border-radius: 22px;
  }

  .mission-photo {
    border-radius: 15px;
  }

  .mission-photo figcaption {
    right: 8px;
    bottom: 10px;
    left: 8px;
    font-size: 0.59rem;
  }

  .mission-bridge {
    bottom: 48px;
    gap: 6px;
    padding: 7px 9px;
    font-size: 0.55rem;
  }

  .mission-bridge strong {
    font-size: 0.76rem;
  }

  .service-card-media {
    height: 215px;
  }

  .service-card-media--split {
    grid-template-columns: 1fr 1fr;
  }

  .service-card-scene figcaption {
    right: 8px;
    bottom: 9px;
    left: 8px;
    font-size: 0.63rem;
  }

  .section-heading--center {
    margin-bottom: 36px;
  }

  .section-heading--center h2 {
    font-size: 1.65rem;
  }
}

/* Terrasta Common Mobile Fixed CTA Bar (index.html / company.html) */
.tr-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  padding: 8px 10px;
  gap: 6px;
}

.tr-mobile-cta a {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 0.85rem;
  text-decoration: none;
  color: white;
}

/* Fix: 固定モバイルCTAバーがPC幅でも表示されてしまうバグの修正
   (.pp-mobile-cta / .mobile-fixed-cta は display:flex がカスケード順で
   .mobile-only の display:none より後に評価されるため、デスクトップでも
   表示されてしまっていた。実機確認済み) */
@media (min-width: 993px) {
  .pp-mobile-cta,
  .mobile-fixed-cta,
  .tr-mobile-cta {
    display: none !important;
  }
}

/* =========================================
   Scroll Animations
   ========================================= */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* 句単位の折り返し保護（泣き別れ防止） */
.nwp { white-space: nowrap; }
