/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue: #313D5A;
  --blue-light: #33B5FF;
  --orange:       #E07B1A;
  --orange-light: #F0A040;
  --orange-pale:  rgba(246, 139, 31, 0.2);
  --teal:         #3A9BAF;
  --dark:         #444444;
  --gray:         #555555;
  --gray-light:   rgba(238, 238, 238, 1);
  --bg-gray:      #F0F0EE;
  --white:        #FFFFFF;
  --font-ja: 'Noto Sans JP', sans-serif;
  --font-en: 'Montserrat', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ja);
  color: var(--dark);
  background: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
.white{ color: var(--white)!important; }
.text-center{ text-align: center;}
.text{ font-size: 20px; font-weight: 400; line-height: 150%; letter-spacing: 10%; padding-bottom: 10px;}
ul{ padding: 2% 0; }
li{ list-style: none; }
h2{ padding: 5% 0; }
/* ============================================================
   HEADER
   ============================================================ */
.header {
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  margin-top: 20px;
}

.header__inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width : 1000px) {
  .header .header__inner{
    flex-direction: column;
  }
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  width:300px;
}

.header__logo-icon { width: 36px; height: 36px; flex-shrink: 0; }

.header__logo-text {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--dark);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

@media (max-width : 1000px) {
  .header__nav {
    gap: 14px;
  }
}

.header__nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  transition: color 0.2s;
}

.header__nav a:hover { color: var(--orange); }

/* ============================================================
   title
   ============================================================ */
   .page-title{
    height: 200px;
    display: flex;
    justify-content: center; /* 横中央 */
    align-items: center; 
    border-bottom: solid 1px #000;
   }

/* ============================================================
   COMMON
============================================================ */
.service-main { background: #fff; }
.serviceContainer { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }
.serviceSection { padding: 84px 0; }
.serviceSection--gray { background: var(--bg-gray); }
.sectionHeading { margin-bottom: 38px; text-align: center; }
.sectionHeading p {
  margin: 0 0 10px;
  color: var(--teal);
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .18em;
}
.sectionHeading h2 {
  margin: 0 auto;
  max-width: 900px;
  color: var(--blue);
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.45;
  font-weight: 800;
}

/* ============================================================
   HERO
   ============================================================ */
.serviceHero {
  position: relative;
  padding: 112px 20px 104px;
  color: #fff;
  background: #F3F3F1;
  overflow: hidden;
}
.serviceHero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 18%, rgba(255,255,255,.15), transparent 28%), radial-gradient(circle at 12% 86%, rgba(255,255,255,.10), transparent 26%);
  pointer-events: none;
}
.serviceHero::after {
  content: "";
  position: absolute;
  right: -130px;
  bottom: -130px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(224,123,26,0.025);
}
.serviceHero__inner {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}
.serviceHero__label {
  margin: 0 0 20px;
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .18em;
  color: #E07B1A;
}
.serviceHero h1 {
  margin: 0 0 28px;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: .03em;
  color:#444;
}
.serviceHero__lead {
  max-width: 820px;
  margin: 0 0 36px;
  font-size: 18px;
  line-height: 2;
  color:#555;
}
.serviceHero__buttons { display: flex; flex-wrap: wrap; gap: 16px; }
.serviceBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  transition: .2s ease;
}
.serviceBtn--primary { background: #fff; color: var(--blue); }
.serviceBtn--outline { border: 1px solid #BBBBBB; color: #666666; background:#FFFFFF;}
.serviceBtn:hover { transform: translateY(-2px); opacity: .92; }

/* ============================================================
   PAGE NAV
============================================================ */
.serviceNav { background: #fff; box-shadow: 0 8px 28px rgba(0,0,0,.08); padding: 0;}
.serviceNav__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.serviceNav__grid a {
  display: block;
  padding: 16px 14px;
  text-align: center;
  color: var(--blue);
  font-weight: 700;
  border-right: 1px solid #ddd;
}
.serviceNav__grid a:first-child { border-left: 1px solid var(--line); }
.serviceNav__grid a:hover { background: #F0F8FB; color: var(--teal); }

/* ============================================================
   INTRO / FIELDS
============================================================ */
.introPanel {
  max-width: 920px;
  margin: 0 auto;
  padding: 46px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(0,56,92,.08);
}
.introPanel p { margin: 0 0 20px; line-height: 2; font-size: 16px; }
.introPanel p:last-child { margin-bottom: 0; }
.introPanel__strong {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--teal);
  font-size: 19px !important;
  font-weight: 700;
}
.fieldGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.fieldCard {
  display: block;
  padding: 30px 26px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0,56,92,.08);
  transition: .2s ease;
}
.fieldCard:hover { transform: translateY(-3px); }
.fieldCard span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--teal);
  font-family: var(--font-en);
  font-size: 26px;
  font-weight: 800;
}
.fieldCard h3 { margin: 0 0 14px; color: var(--blue); font-size: 20px; line-height: 1.5; }
.fieldCard p { margin: 0; line-height: 1.85; font-size: 15px; }

/* ============================================================
   DETAILS
============================================================ */
.serviceDetail { padding: 88px 0; }
.serviceDetail--gray { background: var(--bg-gray); }
.detailHeader { margin-bottom: 34px; }
.detailHeader p {
  margin: 0 0 8px;
  color: var(--teal);
  font-family: var(--font-en);
  font-weight: 800;
  letter-spacing: .14em;
}
.detailHeader h2 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.4;
}
.detailLayout {
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
  gap: 38px;
  align-items: stretch;
}
.detailLayout--reverse .detailMainImage { order: 2; }
.detailLayout--reverse .detailBody { order: 1; }
.detailMainImage {
  min-height: 360px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0,56,92,.10);
}
.detailMainImage img { width: 100%; height: 100%; object-fit: cover; }
.detailBody {
  padding: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0,56,92,.07);
}
.detailBody p { margin: 0 0 18px; line-height: 2; }
.detailBody strong { color: var(--blue); font-weight: 800; }
.taskBox {
  margin-top: 26px;
  padding: 26px;
  background: linear-gradient(135deg, #F6FBFD, #fff);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.taskBox h3 {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 18px;
}
.taskBox ul { margin: 0; padding-left: 1.2em; }
.taskBox li { margin-bottom: 8px; line-height: 1.7; }
.imageGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.imageGrid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0,56,92,.08);
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
section { 
  position: relative;
  padding: 5% 0;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.headding{
  font-size: 30px;
  font-weight: 400;
}

/* ============================================================
   ヒーロー画像
   ============================================================ */
   .about__hero img{
    width: auto;
    margin-inline: auto;
   }

/* ============================================================
   地域インフラを支える、確かな技術力
   ============================================================ */
/* ============================================================
   地域インフラを支える、確かな技術力
   ============================================================ */
   .box{
    background:#D9D9D9;
   }
   .about__lists ul{
    display: flex;
    flex-wrap: wrap;
    gap:20px;
    width: 100%;
    justify-content: center;
   }
   .about__lists li{
    list-style: none;
    width: 40%;
    text-align: center;
    align-items: center;
   }
   .about__lists li a {
    transition: .3s;
    display: block;
    background: #FAC090;
    padding: 5px;
    border-radius: 5px;
   }
   .about__lists li a:hover {
    opacity: .8;
   }
/* ============================================================
   橋梁点検・維持管理 / 港湾・漁港施設の調査・設計 / 港湾・漁港施設の調査・設計 / インフラ維持管理・技術支援

   ============================================================ */
   .about__wrap{
    display: flex;
    justify-content: center;
    gap: 20px;
   }
   .about__wrap img{
    width: 50%;
   }
   .about__tasks{
    display: flex;
    justify-content: center;
    gap: 40px;
   }
   .about__task{
    width: 50%;
    padding: 5% 0;
   }
   .about__task p{
    text-align: center;
    background: #D9D9D9;
    padding: 5%;
    border-radius: 20px;
   }
   .about__images{
    display: flex;
    justify-content: space-between;
    gap:20px;
   }
   .about__images img{
    width: 30%;
   }


/* ============================================================
   CTA / FOOTER
============================================================ */
.serviceCta {
  padding: 82px 20px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, var(--blue), var(--teal));
}
.serviceCta__inner { width: min(900px, 100%); margin: 0 auto; }
.serviceCta p:first-child { margin: 0 0 10px; font-family: var(--font-en); font-weight: 800; letter-spacing: .16em; }
.serviceCta h2 { margin: 0 0 18px; font-size: clamp(26px, 4vw, 40px); }
.serviceCta p { line-height: 1.9; margin-bottom: 26px; }
.footer__brand { background: var(--white); padding: 36px 0 28px; border-top: 1px solid #ddd; }
.footer__brand-inner { max-width: 1100px; margin: 0 auto; padding: 0 60px; display: flex; align-items: center; justify-content: center; gap: 18px; }
.footer__brand-inner img { width: 155px; height: auto; }
.footer__name { font-size: 17px; font-weight: 700; line-height: 1.5; color: var(--dark); }
.footer__address { font-size: 11px; color: var(--dark); line-height: 1.9; margin-top: 3px; }
.footer__bottom { background: var(--blue); padding: 16px 0 10px; }
.footer__nav { max-width: 1100px; margin: 0 auto; padding: 0 60px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }
.footer__nav a { font-size: 11px; color: rgba(255,255,255,.92); padding: 0 12px; border-right: 1px solid rgba(255,255,255,.35); line-height: 1.2; }
.footer__nav a:last-child { border-right: none; }
.footer__copy { max-width: 1100px; text-align: center; margin: 8px auto 0; padding: 0 60px; font-size: 10px; color: rgba(255,255,255,.65); }


/* ============================================================
   FOOTER
   ============================================================ */
.footer__brand {
  background: var(--white);
  padding: 36px 0 28px;
  border-top: 1px solid #ddd;
}

.footer__brand-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.footer__logo-icon { width: 52px; height: 52px; }

.footer__name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--dark);
}

.footer__address {
  font-size: 11px;
  color: var(--dark);
  line-height: 1.9;
  margin-top: 3px;
}

.footer__bottom {
  background: var(--orange);
  padding: 16px 0 10px;
}

.footer__nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 0;
}

.footer__nav a {
  font-size: 11px;
  color: rgba(255,255,255,0.92);
  padding: 0 12px;
  border-right: 1px solid rgba(255,255,255,0.35);
  line-height: 1.2;
  transition: opacity 0.2s;
}

.footer__nav a:first-child { padding-left: 0; }
.footer__nav a:last-child { border-right: none; }
.footer__nav a:hover { opacity: 0.7; }

.footer__copy {
  max-width: 1100px;
  text-align: center;
  margin: 8px auto 0;
  padding: 0 60px;
  font-size: 10px;
  color: rgba(255,255,255,0.65);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {

  /* =========================
     共通
  ========================= */
  .container {
    padding: 0 20px;
  }
  section{
    padding: 5% 20px!important;
  }
 /* =========================
     header
  ========================= */
  .header__nav a {
    font-size: 12px;
}
  .header__logo img{
    width: 50%;
  }
  /* =========================
     ヒーロー
  ========================= */
  .company__hero img {
    width: 100%;
    height: auto;
  }

  .about__hero img{
    width: auto;
   }

/* ============================================================
   地域インフラを支える、確かな技術力
   ============================================================ */
   .about__lists ul{
    flex-direction: column;
   }
   .about__lists li{
    width: 100%;
   }
/* ============================================================
   橋梁点検・維持管理 / 港湾・漁港施設の調査・設計 / 港湾・漁港施設の調査・設計 / インフラ維持管理・技術支援

   ============================================================ */
   .about__wrap{
    flex-direction: column;
   }
   .about__wrap img{
    width: 100%;
   }
   .about__tasks{
    flex-direction: column;
   }
   .about__task{
    width: 100%;
    padding: 5% 0;
   }
   .about__images{
    flex-direction: column;
   }
   .about__images img{
    width: 100%;
   }
  /* =========================
     フッター
  ========================= */
  .footer__brand-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__nav {
    flex-direction: column;
    gap: 8px;
  }

  .footer__nav a {
    border-right: none;
  }
}