/* ===================================
   日匠建設株式会社 - スタイルシート
   カラー: 白 + 緑ベース
   =================================== */

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

/* ---------- CSS Variables ---------- */
:root {
  /* Core Colors */
  --green-dark: #0D3B1F;
  --green-primary: #1B7340;
  --green-mid: #2E8B57;
  --green-light: #3DA96E;
  --green-pale: #E8F5E9;
  --green-accent: #4CAF50;

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --gray-light: #F5F5F5;
  --gray: #E0E0E0;
  --gray-mid: #9E9E9E;
  --gray-dark: #555555;
  --text-primary: #2C2C2C;
  --text-secondary: #555555;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;

  /* Typography */
  --font-sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  --font-serif: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

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

/* ---------- Scroll Animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--gray);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
}

.header-logo img {
  height: 28px;
  width: auto;
}

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

.header-tel {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.header-tel .tel-number {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-primary);
  letter-spacing: 0.5px;
}

.header-tel .tel-icon {
  width: 16px;
  height: 16px;
  fill: var(--green-primary);
}

.header-nav {
  display: flex;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0px;
}

.nav-list a {
  display: block;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: 6px;
  position: relative;
  letter-spacing: 0.3px;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--green-primary);
  border-radius: 1px;
  transition: var(--transition);
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 60%;
}

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 1000px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Diagonal white overlay (top-left triangle) */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  clip-path: polygon(0 0, 55% 0, 30% 100%, 0 100%);
  z-index: 2;
}

/* Green accent line along diagonal */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-light) 100%);
  clip-path: polygon(54.5% 0, 55.5% 0, 30.5% 100%, 29.5% 100%);
  z-index: 3;
}

.hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* Dark overlay on image for text readability */
.hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(0, 0, 0, 0.02) 0%,
      rgba(0, 0, 0, 0.1) 60%,
      rgba(13, 59, 31, 0.15) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero-text-area {
  max-width: 440px;
  margin-left: 0;
}

.hero-text-area .hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green-primary);
  margin-bottom: 20px;
}

.hero-text-area .hero-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--green-primary);
}

.hero-text-area h1 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 2;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.hero-text-area p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--green-primary);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  letter-spacing: 1px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(27, 115, 64, 0.3);
}

.hero-cta:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 115, 64, 0.4);
}

.hero-cta svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: var(--transition);
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

/* Company name on right side */
.hero-company-badge {
  position: absolute;
  bottom: 60px;
  right: 60px;
  z-index: 5;
  text-align: right;
}

.hero-company-badge .company-name-en {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.hero-company-badge .company-name-ja {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 3px;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--green-primary);
}

.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

.hero-scroll .scroll-line {
  width: 1px;
  height: 40px;
  background: var(--green-primary);
  position: relative;
  overflow: hidden;
}

.hero-scroll .scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--green-dark);
  animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
  0% {
    top: -100%;
  }

  50% {
    top: 100%;
  }

  100% {
    top: 100%;
  }
}

/* ---------- Section Common ---------- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--green-primary);
  margin-bottom: 12px;
}

.section-header .section-label::before,
.section-header .section-label::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--green-primary);
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.9;
}

/* ---------- About Section ---------- */
.about {
  padding: var(--section-padding);
  background: var(--white);
}

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

.about-text h3 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  line-height: 1.8;
  letter-spacing: 1px;
}

.about-text p {
  font-size: 1rem;
  line-height: 2;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 0;
  box-shadow: var(--shadow-lg);
}

.about-image::before {
  content: '';
  position: absolute;
  bottom: -12px;
  left: -12px;
  width: 60%;
  height: 60%;
  border-left: 4px solid var(--green-primary);
  border-bottom: 4px solid var(--green-primary);
  z-index: -1;
}

/* ---------- Services Section (Total Support) ---------- */
.services {
  padding: var(--section-padding);
  background: var(--gray-light);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-primary), var(--green-light), var(--green-primary));
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 48px 36px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-primary), var(--green-light));
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  background: var(--green-pale);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--green-primary);
}

.service-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--green-primary);
  transition: var(--transition);
}

.service-card:hover .service-icon svg {
  fill: var(--white);
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* Total Support Badge */
.total-support-badge {
  text-align: center;
  margin-bottom: 56px;
}

.total-support-badge .badge-inner {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 48px;
  background: var(--green-primary);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(27, 115, 64, 0.25);
}

.total-support-badge .badge-logo {
  height: 28px;
  filter: brightness(0) invert(1);
}

.total-support-badge .badge-text {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 6px;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
}

/* ---------- News Section ---------- */
.news {
  padding: var(--section-padding);
  background: var(--white);
}

.news-list {
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray);
  transition: var(--transition);
}

.news-item:first-child {
  border-top: 1px solid var(--gray);
}

.news-item:hover {
  padding-left: 12px;
}

.news-date {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-mid);
  white-space: nowrap;
  min-width: 100px;
}

.news-title {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.7;
}

.news-title a:hover {
  color: var(--green-primary);
}

/* ---------- Access Section ---------- */
.access {
  padding: var(--section-padding);
  background: var(--gray-light);
}

.access-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.access-info {
  padding-top: 16px;
}

.access-info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.access-info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--green-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.access-info-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--green-primary);
}

.access-info-text h4 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green-primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.access-info-text p {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.7;
}

.access-info-text .tel-link {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-primary);
}

.access-info-text small {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-mid);
  margin-top: 4px;
}

.access-map {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
}

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

/* ---------- CTA Section ---------- */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 50%, var(--green-mid) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  animation: ctaPulse 8s ease-in-out infinite;
}

@keyframes ctaPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.cta-section h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 2px;
  position: relative;
}

.cta-section p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
  position: relative;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: var(--white);
  color: var(--green-primary);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 50px;
  letter-spacing: 1px;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.cta-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--green-dark) url('images/footer.jpg') center / cover no-repeat;
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 30, 18, 0.8);
  z-index: 0;
}

.footer>* {
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  height: 30px;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.8rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.footer-brand .footer-address {
  font-size: 0.8rem;
  line-height: 1.8;
}

.footer-nav h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}

.footer-nav ul li {
  margin-bottom: 10px;
}

.footer-nav ul li a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-nav ul li a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-contact h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}

.footer-contact .footer-tel {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.footer-contact .footer-hours {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

.footer-contact .footer-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--white);
  transition: var(--transition);
}

.footer-contact .footer-contact-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.footer-contact .footer-contact-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--green-primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--green-dark);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ---------- Mobile Overlay ---------- */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }

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

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

@media (max-width: 768px) {
  :root {
    --section-padding: 72px 0;
  }

  .header-inner {
    height: 64px;
  }

  .header-logo img {
    height: 28px;
  }

  .header-tel {
    display: none;
  }

  .header-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 32px 32px;
    transition: right 0.3s ease;
    z-index: 1060;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  }

  .header-nav.active {
    right: 0;
  }

  .mobile-overlay.active {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-list a {
    padding: 14px 8px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--gray);
    border-radius: 0;
    width: 100%;
  }

  .nav-list a::after {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero Mobile */
  .hero {
    min-height: 500px;
    max-height: none;
    height: auto;
    padding: 0;
  }

  .hero::before {
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 50%);
  }

  .hero::after {
    clip-path: polygon(0 49%, 100% 34%, 100% 36%, 0 51%);
  }

  .hero-content {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero-text-area {
    max-width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.35) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 28px 24px 28px 28px;
    border-radius: 0;
    border-left: 4px solid var(--green-primary);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  }

  .hero-text-area h1 {
    font-size: 1.25rem;
    line-height: 1.9;
  }

  .hero-company-badge {
    display: none;
  }

  .hero-scroll {
    display: none;
  }

  /* Services Mobile */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 36px 28px;
  }

  .section-header h2 {
    font-size: 1.4rem;
  }

  /* Footer Mobile */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* CTA Mobile */
  .cta-section h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .hero-text-area h1 {
    font-size: 1.1rem;
  }

  .section-header h2 {
    font-size: 1.2rem;
  }

  .service-card {
    padding: 28px 20px;
  }
}

/* ---------- Page Header (Sub Pages) ---------- */
.page-header {
  position: relative;
  height: 40vh;
  min-height: 350px;
  max-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: 64px;
  /* Header height offset */
}

.page-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 59, 31, 0.6);
  /* --green-dark with opacity */
  z-index: 2;
}

.page-header-content {
  position: relative;
  z-index: 3;
  color: var(--white);
  padding: 0 24px;
}

.page-header-content h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 12px;
}

.page-header-content p {
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Company Profile Section ---------- */
.company-profile {
  padding: var(--section-padding);
  background: var(--white);
}

.company-content {
  max-width: 900px;
  margin: 0 auto;
}

.table-container {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--gray);
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.company-table th,
.company-table td {
  padding: 24px 32px;
  border-bottom: 1px solid var(--gray);
  vertical-align: middle;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}

/* Handle rowspan specific border removals */
.company-table td.border-bottom-none {
  border-bottom: none;
}

.company-table th {
  width: 25%;
  background-color: var(--green-pale);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  border-right: 1px solid var(--gray);
}

.company-table td {
  width: 75%;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.8;
}

.map-cell {
  padding: 16px !important;
}

.map-wrapper {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray);
}

.map-wrapper iframe {
  width: 100%;
  height: 350px;
  border: 0;
  display: block;
}

/* Company Table Mobile Adjustments */
@media (max-width: 768px) {

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

  .company-table th {
    border-right: none;
    padding: 16px 20px;
    background-color: var(--green-pale);
  }

  .company-table td {
    padding: 16px 20px 24px;
    border-bottom: 2px solid var(--gray-light);
    /* Stronger separator when stacked */
  }

  .company-table th[rowspan] {
    border-bottom: none;
  }
}


/* ---------- Results Gallery Section ---------- */
.results-gallery {
  padding: var(--section-padding);
  background: var(--gray-light);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.result-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.result-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.result-image {
  position: relative;
  width: 100%;
  padding-top: 70%;
  /* Aspect ratio 10:7 approx */
  overflow: hidden;
  background: var(--gray);
}

.result-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.result-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(27, 115, 64, 0.6);
  /* --green-primary with opacity */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.result-card:hover .result-overlay {
  opacity: 1;
}

.view-text {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50px;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.result-card:hover .view-text {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.1);
}

.result-info {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--gray-light);
}

.result-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
}

/* Results Gallery Responsive */
@media (max-width: 992px) {
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 576px) {
  .results-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---------- Load More Button ---------- */
.load-more-container {
  text-align: center;
  margin-top: 60px;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 40px;
  background-color: var(--white);
  color: var(--green-primary);
  border: 2px solid var(--green-primary);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.load-more-btn:hover {
  background-color: var(--green-primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.load-more-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: var(--transition);
}

.load-more-btn:hover svg {
  transform: translateY(3px);
}

/* Default hidden state for items loaded later */
.result-card.hidden {
  display: none !important;
}

/* ---------- Maintenance Section & Custom Table ---------- */
.maintenance-content {
  padding: var(--section-padding);
  background: var(--white);
}

.table-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -24px;
  padding: 0 24px;
}

.maintenance-table {
  width: 100%;
  min-width: 900px;
  /* Force minimum width to prevent squishing on small screens */
  border-collapse: separate;
  border-spacing: 2px;
  background-color: var(--white);
  margin-bottom: 2rem;
}

.maintenance-table th,
.maintenance-table td {
  padding: 20px;
  vertical-align: middle;
  text-align: left;
  line-height: 1.6;
}

/* Headers */
.maintenance-table thead .header-main th {
  background-color: #6C8E75;
  /* A softer green matching the original image aesthetic */
  color: var(--white);
  text-align: center;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 16px;
}

.maintenance-table thead .header-sub th {
  background-color: #5D8066;
  color: var(--white);
  text-align: center;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 12px;
}

/* Phase Column (Leftmost bold green text) */
.phase-col {
  background-color: var(--white);
  color: #1A5431;
  /* Deep green */
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center !important;
  letter-spacing: 6px;
  border: 1px solid #D8CEAA;
  /* Sand color border fitting the image */
  width: 15%;
}

.phase-kikaku {
  line-height: 2.5;
}

/* Body Cells */
.maintenance-table tbody td:not(.phase-col) {
  background-color: #EFE0A2;
  /* Replicating the warm beige/sand color */
  border: 1px solid var(--white);
  font-size: 0.95rem;
}

.maintenance-table tbody td.content-blank {
  background-color: #EFE0A2;
}

.maintenance-table tbody td.merged-content {
  text-align: center;
}

/* Maintenance Details Block */
.maintenance-details {
  background-color: #EFE0A2 !important;
}

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

.maintenance-terms {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1.1rem;
}

.term-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.term-label {
  min-width: 60px;
}

.term-label.hidden {
  visibility: hidden;
}

.term-month {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.maintenance-note {
  font-size: 0.85rem;
  text-align: right;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* Responsive Table Adjustments */
@media (max-width: 992px) {
  .table-scroll-wrapper {
    /* Enables touch scrolling on mobile while keeping the layout intact */
    box-shadow: inset -10px 0 10px -10px rgba(0, 0, 0, 0.1), inset 10px 0 10px -10px rgba(0, 0, 0, 0.1);
  }
}

/* ---------- Sales Section & Custom Table ---------- */
.sales-content {
  padding: var(--section-padding);
  background: var(--white);
}

.sales-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  background-color: var(--white);
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

.sales-table thead th {
  background-color: var(--green-primary);
  color: var(--white);
  padding: 18px 20px;
  text-align: left;
  font-weight: 600;
  letter-spacing: 1px;
}

.sales-table tbody tr {
  border-bottom: 1px solid var(--gray-light);
  transition: var(--transition);
}

.sales-table tbody tr:last-child {
  border-bottom: none;
}

.sales-table tbody tr:hover {
  background-color: var(--off-white);
}

.sales-table td {
  padding: 20px;
  vertical-align: middle;
  color: var(--text-primary);
  line-height: 1.6;
}

.prop-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--green-dark);
}

.prop-price {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
}

.table-center {
  text-align: center;
}

/* Property Type Badges */
.prop-type {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  background-color: #f0f7f2;
  color: var(--green-primary);
  border: 1px solid rgba(27, 115, 64, 0.2);
}

.prop-house {
  background-color: #f8f4e6;
  color: #a48111;
  border-color: rgba(164, 129, 17, 0.2);
}

.prop-apartment {
  background-color: #eff5fc;
  color: #2b5c96;
  border-color: rgba(43, 92, 150, 0.2);
}

/* Sold Badges & Status List */
.status-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-left: 8px;
}

.badge-sold {
  background-color: #ffeaea;
  color: #d32f2f;
  border: 1px solid rgba(211, 47, 47, 0.2);
}

/* Drawing Document Button */
.btn-drawing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: var(--white);
  color: var(--text-primary);
  border: 1px solid var(--gray);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.btn-drawing svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.btn-drawing:hover {
  background-color: var(--green-primary);
  color: var(--white);
  border-color: var(--green-primary);
}

/* Remarks Highlights */
.prop-remark {
  font-size: 0.9rem;
}

.highlight-sold {
  color: var(--text-secondary);
  font-style: italic;
}

.highlight-upcoming {
  color: var(--green-primary);
  font-weight: 600;
}

/* ---------- Contact Form Section ---------- */
.contact-section {
  padding: 80px 0;
  background-color: var(--off-white);
  position: relative;
  overflow: hidden;
}

.contact-grid {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* Contact Info (Centered Version) */
.contact-info-col {
  padding-top: 20px;
  max-width: 800px;
  width: 100%;
  background-color: var(--white);
  padding: 48px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-heading {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--green-dark);
  margin-bottom: 32px;
  text-align: center;
}

.contact-desc {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
  font-size: 1.05rem;
  text-align: center;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 400px;
  margin: 0 auto;
}

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

.cd-icon {
  width: 48px;
  height: 48px;
  background-color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  color: var(--green-primary);
}

.cd-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.cd-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cd-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.cd-value {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.4;
}

.cd-value a {
  color: var(--green-primary);
  text-decoration: none;
  transition: var(--transition);
}

.cd-value a:hover {
  text-decoration: underline;
}

.cd-highlight {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--green-primary);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .contact-info-col {
    padding: 32px 24px;
  }
}

\n

/* ========== Maintenance Table (Kensetu) ========== */
.maintenance-table-wrapper {
  overflow-x: auto;
  margin: 3rem 0;
}

.kensetu-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  border: 1px solid #6B8E70;
  font-size: 0.95rem;
  background-color: #F1E5C1;
  color: #333;
}

.kensetu-table th,
.kensetu-table td {
  border: 1px solid #fff;
  padding: 1.25rem 1rem;
  vertical-align: middle;
}

.kensetu-table thead th {
  background-color: #6B8E70;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
}

.kensetu-table .th-empty {
  background-color: #6B8E70;
}

/* 企画・設計・監理 column */
.kensetu-table td.phase-cell {
  background-color: #F1E5C1;
  width: 15%;
  padding: 0.5rem;
}

.kensetu-table .phase-box {
  background-color: #fff;
  color: #1b4b27;
  font-size: 1.8rem;
  font-weight: 500;
  font-family: var(--font-serif);
  padding: 2.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  letter-spacing: 0.1em;
  line-height: 2.5;
  box-shadow: inset 0 0 0 1px #e0e0e0;
}

.kensetu-table ul.no-bullet {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.kensetu-table ul.no-bullet>li {
  min-height: 1.5rem;
  line-height: 1.6;
}

.kensetu-table .mt-1 {
  margin-top: 1rem;
}

.kensetu-table .mt-2 {
  margin-top: 2rem;
}

.kensetu-table .mt-3 {
  margin-top: 3rem;
}

.kensetu-table .mt-4 {
  margin-top: 4rem;
}

.kensetu-table .text-center {
  text-align: center;
}

.kensetu-table .maint-col1 {
  text-align: left;
  padding-left: 20%;
  font-size: 1.1rem;
  line-height: 1.8;
  vertical-align: middle;
}

.kensetu-table .maint-col2 {
  text-align: left;
  padding-left: 10%;
  vertical-align: middle;
  font-size: 0.85rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .maintenance-table-wrapper {
    margin: 2rem -20px;
    padding: 0 20px;
  }
}