/* ===================================
   みらい工務店 - 詳細スタイルシート
   =================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors from design screenshot */
  --color-main-dark: #333333;
  --color-green: #7BAA6D;        /* 指定色: グリーン */
  --color-green-light: #94C185;
  --color-beige: #C7A36E;        /* 指定色: ベージュ */
  --color-bg-gray: #F9F9F9;
  --color-text: #333333;         /* 指定色に合わせる */
  --color-white: #FFFFFF;

  /* Typography */
  --font-sans: 'Noto Sans JP', sans-serif;
  --font-serif: 'Noto Serif JP', serif;

  /* Spacing */
  --header-height: 90px;
  --container-width: 1000px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: 1.6;
  background-color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.8;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* ---------- Global Components ---------- */
.section-title-box {
  background-color: var(--color-green);
  color: #fff;
  text-align: center;
  padding: 15px 0;
  margin-bottom: 40px;
}

.section-title-box__text {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.section-title-box--small {
  padding: 10px 0;
}

.section-title-box--small .section-title-box__text {
  font-size: 1.25rem;
}

.section-title-box--beige {
  background-color: var(--color-beige);
}

.section-lead {
  text-align: center;
  margin-bottom: 50px;
  font-size: 0.9375rem;
}

.section-btn {
  text-align: center;
  margin-top: 50px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  font-weight: 500;
  border-radius: 4px;
  font-size: 0.875rem;
  transition: all 0.3s;
}

.btn--header {
  background-color: var(--color-green);
  color: #fff;
  padding: 8px 15px;
  font-size: 0.8125rem;
}

.btn--outline {
  border: 1px solid var(--color-green);
  color: var(--color-green);
  background-color: #fff;
}

.btn--outline:hover {
  background-color: var(--color-green);
  color: #fff;
  opacity: 1;
}

.btn-more {
  display: inline-block;
  font-size: 0.75rem;
  color: #888;
  margin-top: 10px;
  position: relative;
  padding-right: 15px;
}

.btn-more::after {
  content: '>';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* ==============================
   Header
   ============================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: #fff;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header__inner {
  max-width: var(--container-width);
  width: 95%;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo-img {
  height: 40px;
}

.header__nav-list {
  display: flex;
  gap: 25px;
}

.header__nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
}

.header__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.header__hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #333;
}

/* ==============================
   Hero
   ============================== */
.hero {
  height: 400px;
  position: relative;
  margin-top: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__title {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 2.5rem;
  font-family: var(--font-serif);
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* ==============================
   Feature Section
   ============================== */
.features {
  padding: 80px 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.features__card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 20px;
  background-color: #eee;
}

.features__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.features__card-title {
  font-size: 1rem;
  margin-bottom: 10px;
}

.features__card-text {
  font-size: 0.8125rem;
  color: #666;
  text-align: justify;
}

.features__card-btn {
  text-align: right;
}

/* ==============================
   Works Section
   ============================== */
.works {
  padding-bottom: 80px;
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.works__img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 10px;
  background-color: #eee;
}

.works__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.works__title {
  font-size: 0.75rem;
  color: #555;
}

.works__nav {
  display: none; /* Hidden on desktop */
}

.works__track-container {
  overflow: hidden;
  width: 100%;
}

.works__track {
  transition: transform 0.3s ease;
  will-change: transform;
}

.works__nav-btn {
  width: 40px;
  height: 40px;
  background-color: #fff;
  border: 1px solid var(--color-green);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
}

.works__nav-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--color-green);
  border-right: 2px solid var(--color-green);
}

.works__nav-btn--prev::after {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.works__nav-btn--next::after {
  transform: translate(-70%, -50%) rotate(45deg);
}

.works__dots {
  display: flex;
  gap: 10px;
}

.works__dot {
  width: 8px;
  height: 8px;
  background-color: #ddd;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.works__dot.is-active {
  background-color: var(--color-green);
  transform: scale(1.2);
}

/* ==============================
   Staff Intro Section
   ============================== */
.staff-intro {
  padding-bottom: 80px;
}

.staff-intro__content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.staff-intro__img {
  flex: 0 0 320px;
  background-color: #eee;
}

.staff-intro__text-box {
  flex: 1;
}

.staff-intro__lead {
  font-size: 0.75rem;
  color: #999;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

.staff-intro__description {
  font-size: 0.875rem;
  color: #555;
  margin-bottom: 15px;
  text-align: justify;
}

/* ==============================
   News & Blog
   ============================== */
/* News & Blog Tabs Header for Mobile */
.posts__tabs {
  display: none; /* Hidden on desktop */
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.posts__tab-btn {
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  background-color: #eee;
  color: #888;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s;
  flex: 1;
}

.posts__tab-btn[data-tab="news"].is-active {
  background-color: var(--color-green);
  color: #fff;
}

.posts__tab-btn[data-tab="blog"].is-active {
  background-color: var(--color-beige);
  color: #fff;
}

.posts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.posts__list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.posts__item {
  display: flex;
  gap: 15px;
}

.posts__item-img {
  flex: 0 0 100px;
  height: 70px;
  background-color: #eee;
}

.posts__item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.posts__item-content {
  flex: 1;
}

.posts__item-date {
  font-size: 0.6875rem;
  color: #999;
}

.posts__item-title {
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 3px;
}

/* ---------- Banners ---------- */
.banners__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.banners__item {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  transition: opacity 0.3s;
}

.banners__item:hover {
  opacity: 0.8;
}

.banners__item img {
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* ---------- Contact Area ---------- */
.contact-area {
  padding: 80px 0;
  background-color: #fff;
}

.contact-area__banners {
  margin-bottom: 128px;
}

@media (max-width: 900px) {
  .contact-area__banners {
    margin-bottom: 60px;
  }
}

.contact-area__lead {
  text-align: left;
  margin-bottom: 40px;
  line-height: 1.8;
  color: #333;
}

.contact-area__title-border {
  height: 1px;
  background-color: #ccc;
  width: 100%;
  margin-top: 12px;
  margin-bottom: 32px;
}

.contact-area__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-area__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
  text-decoration: none;
  transition: opacity 0.3s;
  padding: 12px 20px;
  text-align: center;
  gap: 10px;
}

.contact-area__item:hover {
  opacity: 0.8;
}

.contact-area__item--line {
  background-color: #fff;
  border-color: var(--color-green);
}

.contact-area__item--line .contact-area__text {
  color: var(--color-green);
  font-weight: bold;
}

.contact-area__item--mail-box {
  background-color: var(--color-green);
  border-color: var(--color-green);
  color: #fff;
}

.contact-area__item--mail-box .contact-area__text {
  font-weight: bold;
}

.contact-area__item--tel-box {
  background-color: #fff;
  border-color: var(--color-green);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.contact-area__icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.contact-area__icon img {
  height: 20px;
  width: auto;
  display: block;
}

.contact-area__tel-label {
  font-size: 0.85rem;
  color: var(--color-green);
  font-weight: bold;
}

.contact-area__tel-number {
  font-size: 1.2rem;
  color: var(--color-green);
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-area__tel-time {
  font-size: 0.75rem;
  color: #888;
}

/* ---------- Footer ---------- */
.footer {
  background-color: #333333;
  color: #fff;
  padding: 80px 0 0; /* Remove bottom padding here */
}

.footer__main {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
}

.footer__left {
  width: 30%;
}

.footer__logo {
  margin-bottom: 30px;
}

.footer__logo-img {
  height: 40px;
}

.footer__sns {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.footer__sns img {
  width: 40px;
  height: 40px;
}

.footer__info {
  font-size: 0.8rem;
  line-height: 1.6;
}

.footer__company-name {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.footer__right {
  width: 65%;
}

.footer__row {
  display: flex;
  justify-content: space-between;
}

.footer__col {
  width: 30%;
}

.footer__nav-title {
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #fff;
}

.footer__nav-title a {
  text-decoration: none;
  color: #fff;
}

.footer__sub-nav {
  margin-top: 30px;
}

.footer__sub-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.footer__sub-title {
  width: 30%; /* same as .footer__col */
  font-size: 0.9rem;
  font-weight: bold;
}

.footer__sub-title a {
  text-decoration: none;
  color: #fff;
}

.footer__nav {
  list-style: none;
  padding: 0;
}

.footer__nav li {
  margin-bottom: 12px;
}

.footer__nav li a {
  text-decoration: none;
  color: #ccc;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  line-height: 1.5;
  transition: color 0.3s;
}

.footer__nav li a::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-top: 1px solid #ccc;
  border-right: 1px solid #ccc;
  transform: rotate(45deg);
  margin-left: auto;
}

.footer__nav li a:hover {
  color: #fff;
}

.footer__nav li a:hover::after {
  border-color: #fff;
}

.footer__bottom {
  background-color: #2A2A2A;
  padding: 20px 0;
  text-align: center;
}

.footer__copy {
  font-size: 0.8rem;
  color: #888;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .contact-area__grid {
    grid-template-columns: 1fr;
  }
  
  .footer__main {
    flex-direction: column;
  }
  
  .footer__left, .footer__right {
    width: 100%;
  }
  
  .footer__left {
    margin-bottom: 50px;
  }
  
  .footer__row {
    flex-direction: column;
  }
  
  .footer__col {
    width: 100%;
    margin-bottom: 30px;
  }

  .footer__sub-row {
    flex-direction: column;
    margin-bottom: 0;
  }

  .footer__sub-title {
    width: 100%;
    margin-bottom: 12px;
  }
}

/* ===================================
   Mobile Styles (Tablet and Mobile)
   =================================== */
@media screen and (max-width: 767px) {
  :root {
    --header-height: 60px;
  }

  .container {
    width: 90%;
  }

  /* ---------- Global ---------- */
  .section-title-box {
    margin-bottom: 30px;
  }

  .section-title-box__text {
    font-size: 1.25rem;
  }

  .section-lead {
    margin-bottom: 30px;
    font-size: 0.875rem;
    padding: 0 10px;
  }

  /* ---------- Header & Nav ---------- */
  .header {
    height: var(--header-height);
  }

  .header__inner {
    width: 100%;
    padding: 0 5%;
  }

  .header__logo-img {
    height: 30px;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--color-white);
    transition: right 0.4s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    padding: 100px 30px 40px;
  }

  .header__nav.is-open {
    right: 0;
  }

  .header__nav-list {
    flex-direction: column;
    gap: 30px;
  }

  .header__nav-link {
    font-size: 1.1rem;
    font-weight: 700;
  }

  .header__cta {
    display: none; /* Hide original PC CTA */
  }

  /* We will use a real link in the nav if we were to modify HTML, 
     but since we are strictly CSS for now, let's just make sure 
     the existing header is clean and the drawer is functional. */

  .header__hamburger {
    display: flex;
    z-index: 1002;
  }

  .header__hamburger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .header__hamburger.is-active span:nth-child(2) {
    opacity: 0;
  }
  .header__hamburger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Overlay */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
  }

  .nav-overlay.is-visible {
    opacity: 1;
    visibility: visible;
  }

  /* ---------- Top Page ---------- */
  .hero {
    height: 300px;
  }

  .hero__title {
    font-size: 1.75rem;
    text-align: center;
    line-height: 1.4;
  }

  .features {
    padding: 60px 0;
  }

  .features__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .works {
    padding-bottom: 60px;
  }

  .works__grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .staff-intro__content {
    flex-direction: column;
    gap: 20px;
  }

  .staff-intro__img {
    width: 100%;
    flex: 0 0 auto;
  }

  /* Carousel Implementation */
  .works__carousel {
    position: relative;
    padding: 0; /* Align with container edges */
  }

  .works__track-container {
    overflow: hidden; /* Hide overflow for 100% width display */
  }

  .works__track {
    display: flex !important;
    gap: 0;
  }

  .works__item {
    flex: 0 0 100%;
    max-width: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .works__nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
  }

  /* Banner Stacking */
  .banners__grid {
    grid-template-columns: 1fr;
  }

  /* News & Blog Tabs */
  .posts__tabs {
    display: flex;
  }

  /* Hide one column by default on mobile if JS is active */
  .posts__column {
    display: none;
  }

  .posts__column.is-active {
    display: block;
  }

  .posts__grid {
    grid-template-columns: 1fr;
    gap: 20px; /* Reduced gap since only one is shown */
  }

  /* ---------- Subpages ---------- */
  .sub-hero {
    height: 180px;
  }

  .sub-hero__title {
    font-size: 1.5rem;
  }

  .anchor-links__list {
    flex-direction: column;
    gap: 10px;
  }

  /* Features Details */
  .feature-detail {
    padding: 60px 0;
  }

  .feature-detail__flex {
    flex-direction: column !important; /* Stack regardless of order */
    gap: 30px;
  }

  .feature-detail__img {
    width: 100%;
  }

  /* About Page - Staff Grid */
  .staff__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Modal */
  .modal {
    width: 95%;
    padding: 20px;
  }

  .modal__flex {
    flex-direction: column;
    gap: 20px;
  }

  .modal__img {
    width: 100%;
  }

  /* Contact Area */
  .contact-area {
    padding: 60px 0;
  }

  .contact-area__banners {
    margin-bottom: 60px;
  }

  .contact-area__grid {
    grid-template-columns: 1fr;
  }

  .contact-area__item {
    height: auto;
    padding: 30px;
  }
}

/* ===================================
   Subpage Styles
   =================================== */

/* ---------- Sub-Hero ---------- */
.sub-hero {
  height: 256px;
  position: relative;
  margin-top: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #333;
}

.sub-hero__bg {
  position: absolute;
  inset: 0;
}

.sub-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.sub-hero__content {
  position: relative;
  z-index: 1;
}

.sub-hero__title {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding: 20px 0;
  background-color: #fff;
}

.breadcrumbs__list {
  display: flex;
  gap: 15px;
  font-size: 0.75rem;
  color: #333;
}

.breadcrumbs__item a {
  color: #333;
}

.breadcrumbs__item a:hover {
  text-decoration: underline;
}

.breadcrumbs__item:not(:last-child)::after {
  content: '>';
  margin-left: 15px;
}

/* ---------- Anchor Links ---------- */
.anchor-links {
  padding: 40px 0;
  background-color: #fff;
}

.anchor-links__list {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.anchor-links__list li {
  flex: 1;
}

.btn--anchor {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-green);
  color: var(--color-text);
  background-color: #fff;
  font-weight: 700;
  border-radius: 6px;
  box-shadow: 0 2px 2px rgba(0,0,0,0.1);
}

.btn--anchor::after {
  content: '▼';
  font-size: 0.6rem;
  color: var(--color-green);
}

/* ---------- Features Detail Detail ---------- */
.features-detail {
  padding: 80px 0;
}

.features-detail--bg {
  background-color: var(--color-bg-gray);
}

.section-title-box--full {
  margin-bottom: 60px;
}

.features-detail__intro {
  margin-bottom: 60px;
}

.features-detail__main-copy {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.features-detail__intro-text {
  font-size: 0.875rem;
  line-height: 1.8;
  color: #333;
}

.features-detail__item {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 80px;
}

.features-detail__item--reverse {
  flex-direction: row-reverse;
}

.features-detail__content {
  flex: 1;
}

.features-detail__item-title {
  font-size: 1.5rem;
  font-weight: 700;
  border-bottom: 2px solid var(--color-green);
  padding-bottom: 10px;
  margin-bottom: 24px;
}

.features-detail__sub-copy {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.features-detail__text {
  font-size: 0.875rem;
  line-height: 1.8;
}

.features-detail__img {
  flex: 0 0 460px;
  background-color: #eee;
}

.features-detail__img img {
  width: 100%;
  height: auto;
}

/* ---------- Support Grid ---------- */
.support__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.support__card {
  display: flex;
  flex-direction: column;
}

.support__card-img {
  aspect-ratio: 16 / 10;
  background-color: #eee;
  margin-bottom: 16px;
}

.support__card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.support__card-text {
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ---------- Flow Grid ---------- */
.flow {
  padding: 80px 0;
}

.flow__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

.flow__item {
  border: 1px solid var(--color-green);
  border-radius: 6px;
  padding: 16px 16px 24px;
  position: relative; /* For arrow positioning */
}

.flow__item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -32px;
  transform: translateY(-50%);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid var(--color-green);
  z-index: 1;
}

.flow__item-header {
  margin-bottom: 16px;
}

.flow__step-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-green);
  margin-right: 4px; /* Space between "Step" and number */
  text-transform: capitalize;
}

.flow__step-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-green);
}

.flow__item-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 5px;
}

.flow__item-img {
  aspect-ratio: 1.3;
  background-color: #eee;
  margin-bottom: 16px;
  border-radius: 6px;
  overflow: hidden;
}

.flow__item-text {
  font-size: 1rem;
  line-height: 1.5;
}

.works--subpage {
  padding-top: 80px;
}

.header__nav-link.active {
  color: var(--color-green);
  border-bottom: 2px solid var(--color-green);
  padding-bottom: 5px;
}

/* ---------- Staff Grid ---------- */
.staff {
  padding: 80px 0 120px;
}

.staff__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px 32px;
}

.staff-card {
  cursor: pointer;
  transition: transform 0.3s;
}

.staff-card:hover {
  transform: translateY(-5px);
}

.staff-card__img-box {
  position: relative;
  aspect-ratio: 1.5;
  background-color: #eee;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}

.staff-card__img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-card__zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  background-color: var(--color-green);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: background-color 0.3s;
}

.staff-card__zoom img {
  width: 20px;
  height: 20px;
}

.staff-card__zoom:hover {
  background-color: var(--color-green-light);
}

.staff-card__role {
  font-size: 0.875rem;
  color: var(--color-text);
  margin-bottom: 4px;
}

.staff-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(51, 51, 51, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: 90%;
  max-width: 1280px;
  max-height: 90vh;
  background-color: #fff;
  border: 1px solid var(--color-green);
  border-radius: 80px;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s;
}

.modal-overlay.is-open .modal {
  transform: scale(1);
}

.modal__inner {
  padding: 80px;
}

.modal__flex {
  display: flex;
  gap: 40px;
}

.modal__img {
  flex: 0 0 463px;
  aspect-ratio: 1.5;
  background-color: #eee;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--color-green);
}

.modal__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal__info {
  flex: 1;
}

.modal__title-box {
  margin-bottom: 40px;
}

.modal__name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal__title-line {
  height: 2px;
  background-color: var(--color-green);
  width: 100%;
}

.modal__text-area {
  margin-bottom: 40px;
}

.modal__text-area p {
  font-size: 0.875rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.modal__detail-item {
  margin-bottom: 24px;
}

.modal__detail-label {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal__detail-text {
  font-size: 0.875rem;
  line-height: 1.8;
}

.modal__close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 40px auto 0;
  background-color: var(--color-green);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 16px 80px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: opacity 0.3s;
}

.modal__close-btn:hover {
  opacity: 0.8;
}

.icon-close {
  display: inline-block;
  width: 12px;
  height: 12px;
  position: relative;
}

.icon-close::before, .icon-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #fff;
}

.icon-close::before { transform: rotate(45deg); }
.icon-close::after { transform: rotate(-45deg); }

@media (max-width: 900px) {
  .sub-hero__title {
    font-size: 1.75rem;
  }

  .breadcrumbs {
    padding: 15px 0;
  }

  .anchor-links {
    padding: 20px 0;
  }

  .anchor-links__list {
    flex-direction: column;
    gap: 10px;
  }

  .staff__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .staff-card__img-box {
    aspect-ratio: 16 / 9; /* Wider on mobile */
  }

  .modal__inner {
    padding: 40px 20px;
  }

  .modal__flex {
    flex-direction: column;
  }

  .modal__img {
    flex: 0 0 auto;
    width: 100%;
  }

  .flow__grid {
    grid-template-columns: 1fr;
    gap: 60px; /* Increased gap to accommodate arrows */
  }

  .flow__item {
    margin-bottom: 20px;
  }

  .flow__item:not(:last-child)::after {
    top: auto;
    bottom: -45px;
    right: 50%;
    transform: translateX(50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid var(--color-green);
  }

  .features-detail__item {
    flex-direction: column;
    gap: 20px;
  }

  .features-detail__item--reverse {
    flex-direction: column;
  }

  .features-detail__img {
    flex: 0 0 auto;
    width: 100%;
  }

  .support__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
