/* =========================================
   EXA Service Page Content Styles
   extracted from inline <style>
========================================= */

:root {
      --primary: #0a2d55;
      --accent: #1976d2;
      --text-main: #1a1a1a;
    }

    body {
      margin: 0; padding: 0;
      font-family: 'Noto Sans JP', sans-serif;
      color: var(--text-main);
      line-height: 1.8;
      overflow-x: hidden;
    }

    .page-title-area {
      position: relative;
      padding: 140px 0 80px;
      width: 100%;
    }

    .title-bg-en {
      position: absolute;
      top: 50%;
      left: 0;
      transform: translateY(-50%);
      font-family: 'Inter', sans-serif;
      font-size: clamp(5rem, 12vw, 9rem);
      font-weight: 800;
      color: transparent;
      -webkit-text-stroke: 1px #eef0f2;
      text-stroke: 1px #eef0f2;
      z-index: -1;
      white-space: nowrap;
      letter-spacing: 0.03em;
    }

    .title-content-wrapper {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 50px;
      position: relative;
    }

    .title-flex-container {
      display: flex;
      align-items: flex-end;
      gap: 30px;
    }

    .title-text-group .sub-en {
      color: var(--accent);
      font-family: 'Inter';
      font-weight: 700;
      font-size: 0.85rem;
      letter-spacing: 0.4em;
      margin-bottom: 8px;
    }

    .title-text-group h1 {
      font-size: 3.2rem;
      color: var(--primary);
      margin: 0;
      line-height: 1.1;
      font-weight: 700;
    }

    .title-line {
      flex-grow: 1;
      height: 1px;
      background: var(--primary);
      margin-bottom: 12px;
      position: relative;
      margin-right: 0;
      padding-right: 0;
      min-width: 0;
      box-shadow: 100vw 0 0 0 var(--primary);
    }

    .main-content {
      max-width: 1100px;
      margin: 0 auto;
      padding: 0 20px 100px;
    }

    .feature-section { margin-bottom: 100px; }

    .layout-b { display: flex; gap: 50px; margin-bottom: 30px; }
    .b-text-area { flex: 1; }
    .b-image-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .b-image-grid img { width: 100%; height: 180px; object-fit: cover; border-radius: 2px; }
    .b-img-tall { grid-row: span 2; }
    .b-img-tall img { height: 372px !important; }

      .layout-a { 
  display: grid;
  grid-template-columns: 1.6fr 1.15fr;
  gap: 12px;
  margin-bottom: 30px;
  align-items: start;
}

.layout-a .img-span {
  grid-row: span 2;
  height: 100%;
  overflow: hidden;
}

.layout-a > div:not(.img-span) {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.layout-a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

    .feature-info { display: flex; justify-content: space-between; margin-top: 25px; }
    .info-left { flex: 1; }
    .info-right { flex: 1; text-align: right; color: #666; font-size: 0.95rem; }

    .category-tag { color: var(--accent); font-weight: 700; font-size: 0.85rem; margin-bottom: 10px; display: block; }
    .main-copy { font-size: 2.2rem; color: var(--primary); margin: 0 0 20px; font-weight: 700; line-height: 1.4; }

    .btn-detail {
      display: flex; align-items: center; gap: 15px; cursor: pointer;
      color: #333; font-weight: 700; padding: 25px 0;
      border-top: 1px solid #eee; border-bottom: 1px solid #eee;
    }
    .accordion-icon { position: relative; width: 16px; height: 16px; }
    .accordion-icon::before, .accordion-icon::after {
      content: ""; position: absolute; background: #333; top: 50%; left: 50%; transform: translate(-50%, -50%);
    }
    .accordion-icon::before { width: 16px; height: 2px; }
    .accordion-icon::after { width: 2px; height: 16px; transition: 0.3s; }
    .active .accordion-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

    .accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
    .accordion-inner { padding: 30px; background: #fafafa; font-size: 0.95rem; color: #444; }

    @media (max-width: 768px) {
      .page-title-area { padding: 100px 0 40px; }
      .title-content-wrapper { padding: 0 20px; }
      .title-text-group h1 { font-size: 2rem; }
      .title-bg-en { font-size: 4rem; top: 45%; }

      .title-line { display: block; margin-bottom: 8px; }

      .feature-section { margin-bottom: 60px; }
      
      .layout-b { flex-direction: column; gap: 20px; }
      .b-image-grid img { height: 120px; }
      .b-img-tall img { height: 252px !important; }

      .layout-a {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
      }
      .layout-a .img-span {
        grid-column: 1 / -1;
        height: 220px;
      }
      .layout-a > div:not(.img-span) {
        display: block;
        width: 100%;
        height: 130px;
      }
      .layout-a img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
        
      .feature-info { flex-direction: column; gap: 10px; }
      .info-right { text-align: left; }
      .main-copy { font-size: 1.6rem; }
    }

@media (max-width: 767px) {

  .page-wraper {
    --sp-survey-title-top: 20px;        /* ヘッダー下〜測量タイトルまで */
    --sp-survey-title-bottom: 20px;     /* 測量タイトル〜上のfeature-sectionまで */
    --sp-first-section-bottom: 36px;    /* 上のfeature-section下の内側余白 */
    --sp-civil-title-top: 34px;         /* 上のfeature-section〜設計タイトルまで */
    --sp-civil-title-bottom: 20px;      /* 設計タイトル〜下のfeature-sectionまで */
    --sp-last-section-bottom: 40px;     /* 下のfeature-section内の下余白 */
    --sp-footer-gap: 24px;              /* 下のfeature-section〜footerまでの外側余白 */
  }

  .page-wraper,
  .page-title-area,
  .main-content,
  .feature-section {
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-wraper {
    overflow-x: hidden;
  }

  .page-title-area {
    overflow: hidden;
  }

  .page-title-area .title-bg-en {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    font-size: clamp(42px, 13vw, 76px) !important;
    line-height: 1 !important;
  }

  .page-title-area .title-content-wrapper,
  .page-title-area .title-flex-container {
    max-width: 100%;
    box-sizing: border-box;
  }

  #survey.page-title-area {
    margin-top: var(--sp-survey-title-top) !important;
    margin-bottom: var(--sp-survey-title-bottom) !important;
  }

  #survey + .main-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  #survey + .main-content > .feature-section:first-of-type {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: var(--sp-first-section-bottom) !important;
  }

  #civil.page-title-area {
    margin-top: var(--sp-civil-title-top) !important;
    margin-bottom: var(--sp-civil-title-bottom) !important;
  }

  #civil + .feature-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: var(--sp-last-section-bottom) !important;
    margin-bottom: var(--sp-footer-gap) !important;
  }

  .main-content > .feature-section:last-of-type {
    padding-bottom: var(--sp-last-section-bottom) !important;
    margin-bottom: var(--sp-footer-gap) !important;
  }

  .main-content .layout-a > .img-span {
    height: clamp(280px, 76vw, 360px) !important;
    min-height: 280px !important;
  }

  .main-content .layout-a > .img-span img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
}

#survey.page-title-area,
#civil.page-title-area {
  margin-top: 100px;
}

#survey.page-title-area .title-text-group h1,
#civil.page-title-area .title-text-group h1 {
  margin-top: 15px !important;
  margin-bottom: 0 !important;
}

.exa-service-note-title {
  font-weight: 500 !important;
}

.exa-service-credit-frame {
  position: relative;
  overflow: hidden;
}

.exa-service-photo-credit {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: inline-block;
  padding: 3px 7px;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  border-radius: 2px;
}

@media (max-width: 767px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden !important;
  }

  .page-wraper,
  .page-title-area,
  .main-content,
  .feature-section,
  .layout-a,
  .title-content-wrapper,
  .title-flex-container {
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-title-area .title-line {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
  }

  .page-title-area .title-content-wrapper,
  .page-title-area .title-flex-container {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .page-title-area .title-bg-en {
    max-width: 100% !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    font-size: clamp(38px, 12vw, 68px) !important;
    line-height: 1 !important;
  }

  #survey.page-title-area {
    margin-top: var(--sp-survey-title-top, 20px) !important;
    margin-bottom: var(--sp-survey-title-bottom, 20px) !important;
  }

  #survey + .main-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  #survey + .main-content > .feature-section:first-of-type {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: var(--sp-first-section-bottom, 36px) !important;
  }

  #civil.page-title-area {
    margin-top: var(--sp-civil-title-top, 34px) !important;
    margin-bottom: var(--sp-civil-title-bottom, 20px) !important;
  }

  #civil + .feature-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: var(--sp-last-section-bottom, 40px) !important;
    margin-bottom: var(--sp-footer-gap, 24px) !important;
  }

  .main-content > .feature-section:last-of-type {
    padding-bottom: var(--sp-last-section-bottom, 40px) !important;
    margin-bottom: var(--sp-footer-gap, 24px) !important;
  }

  .main-content .layout-a > .img-span {
    height: clamp(280px, 76vw, 360px) !important;
    min-height: 280px !important;
  }

  .main-content .layout-a > .img-span img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
}


html,
body {
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

.page-title-area .title-line {
  margin-right: 0 !important;
  padding-right: 0 !important;
  min-width: 0 !important;
  box-shadow: 100vw 0 0 0 var(--primary) !important;
}

.page-title-area,
.page-title-area .title-content-wrapper,
.page-title-area .title-flex-container {
  overflow: visible !important;
}

@media (max-width: 767px) {
  .page-title-area .title-line {
    margin-right: 0 !important;
    padding-right: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-shadow: 100vw 0 0 0 var(--primary) !important;
  }

  .page-title-area,
  .page-title-area .title-content-wrapper,
  .page-title-area .title-flex-container {
    overflow: visible !important;
  }
}
