:root {
  --primary-color: #0fb85d;
  --text-main: #333333;
  --text-light: #666666;
  --bg-white: #ffffff;
  --bg-white-section: #f4f2ef;
  --bg-beige: #ede9e1;
  --bg-green-light: #e8f4ef;
  --bg-blue-light: #f8f9fb;
  --border-color: #e5e5e5;
  --max-width: 1080px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 32px;
  --font-family: 'Noto Sans JP', 'Inter', sans-serif;
}

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: var(--bg-white);
}

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

/* Typography */
.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
  letter-spacing: 0.05em;
}
.section-subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--text-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
p.section-subtitle {
  color: var(--primary-color);
  font-weight: 500;
  letter-spacing: 0.15em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  transition: opacity 0.3s ease;
  text-decoration: none;
}
.btn:hover {
  opacity: 0.8;
}
.btn-primary {
  background-color: var(--primary-color);
  color: var(--bg-white);
}
.btn-outline {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

/* Utility */
.text-green {
  color: var(--primary-color);
}
.bg-beige-section {
  background-color: var(--bg-beige);
  padding: 80px 0;
}
.bg-white-section {
  background-color: var(--bg-white-section);
  padding: 80px 0;
}
.bg-green-light-section {
  background-color: var(--bg-green-light);
  padding: 80px 0;
}
.bg-blue-light-section {
  background-color: var(--bg-blue-light);
  padding: 80px 0;
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-white);
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.header-top-mobile {
  display: contents; /* In PC, act as if it's not there */
}
.hamburger {
  display: none; /* Hide in PC */
}
.header-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-placeholder {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.05em;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-list {
  display: flex;
  gap: 24px;
}
.nav-list a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  transition: color 0.3s ease;
}
.nav-list a:hover {
  color: var(--primary-color);
}
.btn-header {
  padding: 12px 24px;
  font-size: 14px;
  border-radius: 50px;
}
.header-logo-custom {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-icon-img {
  height: 32px;
  width: auto;
}
.header-logo-text {
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* --- Hero (FV) --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 0; /* Removing bottom padding to let image sit at bottom */
}
.hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  position: relative;
}
.hero-content {
  flex: 1;
  padding-bottom: 120px;
  display: flex;
  flex-direction: column;
}
.hero-content-inner {
  text-align: left;
}
.hero-logo-custom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.hero-logo-img {
  width: 320px;
  height: auto;
}
.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
}
.hero-text {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 32px;
  color: var(--text-main);
}
.hero-btn {
  padding: 24px 72px;
  font-size: 20px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(15, 184, 93, 0.3);
}
.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  align-self: flex-end;
}
.hero-image img {
  width: 100%;
  height: auto;
}

/* --- Features (3 Steps) --- */
.features-steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 60px;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.step-image {
  width: 100%;
  display: flex;
  justify-content: center;
}
.step-image img {
  width: 100%;
  max-width: 300px;
  height: auto;
}
.step-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.step-label {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}
.step-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.step-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-light);
}

@media (min-width: 769px) {
  .features-steps {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }
  .step-item {
    flex: 1;
  }
}

/* --- Coverage --- */
.coverage-tabs {
  display: flex;
  justify-content: center;
  width: fit-content;
  margin: 0 auto 40px;
  background-color: var(--bg-white);
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.tab {
  padding: 12px 32px;
  border-radius: 50px;
  color: var(--text-main);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.tab.active {
  background-color: var(--primary-color);
  color: white;
}
.coverage .container {
  max-width: 1200px;
}
.coverage-cards {
  display: flex;
  gap: 24px;
}
.coverage-card {
  flex: 1; /* Fallback for older browsers */
}
.coverage-card:first-child {
  flex: 5.5;
}
.coverage-card:last-child {
  flex: 4.5;
}
.coverage-card {
  background-color: var(--bg-white);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.coverage-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
}
.icon-保, .icon-自 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: white;
  font-size: 14px;
  font-weight: 700;
}
.icon-保 { background-color: #4CAF50; }
.icon-自 { background-color: #9E9E9E; }
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}
.tag {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 13px;
  background-color: var(--bg-white-section);
}
.tag-green { color: #2E7D32; background-color: #E8F5E9; }
.tag-gray { color: #616161; background-color: #F5F5F5; }

/* --- Reasons --- */
.reasons {
  overflow: hidden; /* Prevent horizontal scroll from bleeding */
}
.reasons-inner {
  display: flex;
  align-items: center;
  position: relative;
  min-height: 400px;
}
.reasons-image {
  position: absolute;
  left: -10%; /* Bleed off the left edge */
  top: 50%;
  transform: translateY(-50%);
  width: 60%;
  z-index: 1;
}
.reasons-image img {
  width: 100%;
  height: auto;
}
.reasons-content {
  width: 50%;
  margin-left: auto; /* Push to the right side */
  padding-left: 40px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.reason-item {
  position: relative;
  padding-left: 20px;
}
.reason-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 4px;
  background-color: var(--primary-color);
}
.reason-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 16px;
}
.reason-desc {
  font-size: 15px;
  line-height: 1.8;
}

/* --- Merits --- */
.merits-cards {
  display: flex;
  gap: 24px;
}
.merit-card {
  flex: 1;
}
.merit-img {
  position: relative;
  margin-bottom: 24px;
}
.merit-img img {
  width: 100%;
  border-radius: 12px;
}
.merit-num {
  position: absolute;
  bottom: -20px;
  left: 20px;
  font-size: 64px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  line-height: 1;
  text-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.merit-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}
.merit-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-light);
}

/* --- Equipment --- */
.equipment-cards {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}
.equipment-card {
  flex: 1;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
}
.eq-label {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
}
.eq-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.eq-desc {
  font-size: 14px;
  line-height: 1.6;
}
.equipment-banner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background-color: var(--bg-white);
  border-radius: 16px;
  padding: 32px;
}
.banner-label {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}
.banner-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.banner-desc {
  font-size: 14px;
  line-height: 1.8;
}

/* --- Flow --- */
.flow-steps {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 60px;
}
.flow-line-bg {
  position: absolute;
  top: 40px; /* Half of the 80px box height */
  left: 12.5%; /* Center of first step */
  right: 12.5%; /* Center of last step */
  height: 2px;
  background-color: #d9d5d0;
  z-index: 1;
}
.flow-step {
  flex: 1;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 2;
}
.flow-box {
  width: 80px;
  height: 80px;
  background-color: #d9d5d0;
  border-radius: 16px; /* Rounded square */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 auto 24px;
}
.flow-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}
.flow-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-light);
}

/* --- Contact --- */
.contact {
  position: relative;
  background-image: url('../public/images/contact-bg.jpg');
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  color: white;
  text-align: center;
}
.contact-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 184, 93, 0.85); /* Green overlay */
}
.contact-inner {
  position: relative;
  z-index: 1;
}
.contact-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
}
.contact-desc {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 40px;
}
.contact-btns {
  display: flex;
  justify-content: center;
  gap: 24px;
}
.contact-btn-line {
  background-color: #0fb85d;
  color: white;
  border: 1px solid white;
}
.contact-btn-mail {
  background-color: rgba(255,255,255,0.9);
  color: var(--primary-color);
  border: none;
}

/* --- Footer --- */
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-nav {
  display: flex;
  gap: 32px;
}
.footer-nav a {
  font-size: 14px;
  color: var(--text-main);
  transition: color 0.3s ease;
}
.footer-nav a:hover {
  color: var(--primary-color);
}

/* --- APPEND_MARKER --- */

.hero-logo-img {
  max-width: 300px;
  margin-bottom: 24px;
}

@media (min-width: 769px) {
  .hero {
    position: relative !important;
    padding: 0 !important;
    min-height: 600px;
    overflow: hidden !important;
  }
  .hero-inner {
    display: flex !important;
    align-items: center !important;
    position: static !important;
    padding-top: 105px !important;
    padding-bottom: 105px !important;
    z-index: 10 !important;
  }
  .hero-inner {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .hero-content {
    width: 50% !important;
    position: relative !important;
    z-index: 2 !important;
    flex: none !important;
    display: flex;
    justify-content: center;
  }

  .hero-content-inner {
    width: fit-content;
    max-width: 560px;
    margin: 0 auto;
  }

  .hero-image {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 50vw !important;
    height: 100% !important;
    margin-top: 0 !important;
  }
  .hero-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 40% center !important;
  }
}

/* --- SP Responsive Layout --- */
@media (max-width: 768px) {
  /* 1. Global & Typography */
  .container {
    padding: 0 20px;
  }
  .section-title {
    font-size: 24px;
    margin-bottom: 32px;
  }
  .hero-title {
    font-size: 32px;
  }
  
  /* 2. Header */
  .header-inner {
    flex-direction: column;
    padding: 16px 20px;
    height: auto;
  }
  .header-top-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
  }
  .hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
  }
  .hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg);
  }
  .hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg);
  }
  .header-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 16px;
    background-color: var(--white);
    padding: 16px 0;
  }
  .header-nav.active {
    display: flex;
  }
  .nav-list {
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
  }
  .nav-list a {
    font-size: 16px;
  }

  /* 3. Hero */
  .hero-inner {
    flex-direction: column;
    text-align: center;
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero-logo-custom {
    align-items: center;
  }
  .hero-logo-img {
    width: 220px;
  }
  .hero-title {
    font-size: 28px;
    margin-bottom: 16px;
  }
  .hero-title br {
    display: none;
  }
  .hero-text {
    font-size: 15px;
    margin-bottom: 24px;
    text-align: center;
  }
  .hero-text br {
    display: none;
  }
  .hero-btn {
    padding: 16px 32px;
    font-size: 16px;
    display: block;
    width: fit-content;
    margin: 0 auto;
  }
  .hero-content {
    width: 100% !important;
    padding-bottom: 40px;
  }
  .hero-content-inner {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
  }
  .hero {
    min-height: auto;
    height: auto;
  }
  .hero-image {
    position: relative !important;
    width: 100% !important;
    height: 300px !important;
  }
  .hero-image img {
    object-position: center !important;
  }

  /* 4. Coverage */
  .coverage-tabs {
    width: 100%;
    border-radius: 24px;
  }
  .tab {
    flex: 1;
    font-size: 11px;
    padding: 10px 4px;
    text-align: center;
    white-space: nowrap;
    border-radius: 24px;
  }
  .coverage-cards {
    flex-direction: column;
    gap: 24px;
  }
  .coverage-card:first-child,
  .coverage-card:last-child {
    flex: auto;
  }

  /* 5. Reasons */
  .reasons-inner {
    flex-direction: column;
    padding: 40px 0;
  }
  .reasons-image {
    position: relative;
    width: 100%;
    left: 0;
    top: 0;
    transform: none;
    margin-bottom: 32px;
  }
  .reasons-content {
    width: 100%;
    padding-left: 0;
    margin-left: 0;
  }

  /* 6. Merits */
  .merits-cards {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 16px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .merits-cards::-webkit-scrollbar {
    display: none;
  }
  .merit-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }

  /* 7. Equipment & Flow */
  .equipment-cards {
    flex-direction: column;
    gap: 20px;
  }
  .equipment-banner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
    gap: 16px;
  }
  .flow-steps {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 16px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .flow-steps::-webkit-scrollbar {
    display: none;
  }
  .flow-step {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }
  .flow-line-bg {
    display: block;
    left: 42.5%;
    right: auto;
    width: calc(255% + 48px);
  }

  /* 8. Contact & Footer */
  .contact-inner {
    padding: 40px 20px;
  }
  .contact-title {
    font-size: 24px;
  }
  .contact-desc {
    font-size: 14px;
  }
  .contact-desc br {
    display: none;
  }
  .contact-btns {
    flex-direction: column;
    gap: 16px;
  }
  .contact-btns .btn {
    width: 100%;
  }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .footer-left {
    text-align: center;
  }
  .footer-logo img {
    margin: 0 auto;
  }
  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}
