:root {
  --main-blue: #075cab;
  --deep-blue: #003f7c;
  --accent-blue: #0874d8;
  --light-blue: #edf7ff;
  --text-color: #222;
  --sub-text-color: #5d6570;
  --border-color: #dce3e9;
  --white: #fff;
  --footer-color: #202020;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text-color);
  background-color: var(--white);
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul,
ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  font: inherit;
}

.section-container {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.sp-only {
  display: none;
}


/* 上へ戻るボタン */

.scrollToTopBtn {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 999;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;

  color: #fff;
  background-color: var(--main-blue);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 67, 130, 0.25);

  opacity: 0;
  visibility: hidden;
  cursor: pointer;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease;
}

.scrollToTopBtn.show {
  opacity: 1;
  visibility: visible;
}

.scrollToTopBtn:hover {
  transform: translateY(-4px);
}


/* ヘッダー */

header {
  position: relative;
  z-index: 1000;
}

.navigation {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  min-height: 88px;
  padding: 12px 5%;

  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.logo-link {
  color: #111;
  font-family: "Shippori Mincho B1", serif;
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.menu {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 72px);
}

.menu-item {
  position: relative;
}

.menu-link {
  position: relative;
  display: inline-block;
  padding: 10px 0;

  color: #111;
  font-family: "Shippori Mincho B1", serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.menu-link::after {
  content: "";

  position: absolute;
  bottom: 4px;
  left: 0;

  width: 0;
  height: 2px;

  background-color: #e59800;
  transition: width 0.3s ease;
}

.menu-link:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 38px;
  cursor: pointer;
}

.hamburger {
  display: block;
  width: 30px;
  height: 3px;
  margin: 6px auto;

  background-color: #111;
  border-radius: 10px;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}


/* メインビジュアル */

.civil-hero {
  position: relative;

  min-height: 620px;
  padding-top: 88px;

  background-image:
    linear-gradient(
      90deg,
      rgba(0, 64, 125, 0.95) 0%,
      rgba(0, 91, 170, 0.72) 42%,
      rgba(0, 73, 136, 0.18) 100%
    ),
    url("../../img/business-2.jpg");

  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.civil-hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.03),
      rgba(0, 48, 94, 0.12)
    );
}

.civil-hero-inner {
  position: relative;
  z-index: 2;

  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 50px;
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;

  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 500;
}

.breadcrumb i {
  font-size: 9px;
}

.breadcrumb a {
  transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
  opacity: 0.7;
}

.civil-hero-content {
  padding-top: 85px;
  color: #fff;
}

.civil-hero-en {
  margin-bottom: 8px;

  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.civil-hero-content h1 {
  font-family: "Shippori Mincho B1", serif;
  font-size: clamp(52px, 6vw, 82px);
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.25;
}

.civil-hero-line {
  display: block;

  width: 52px;
  height: 2px;
  margin: 25px 0 30px;

  background-color: #fff;
}

.civil-hero-message {
  font-family: "Shippori Mincho B1", serif;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.9;
  letter-spacing: 0.08em;
}


/* 土木工事について */

.civil-introduction {
  padding: 100px 0;
  background-color: #fff;
}

.introduction-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(50px, 7vw, 100px);
}

.section-label {
  margin-bottom: 12px;

  color: var(--main-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.introduction-content h2,
.section-heading h2 {
  font-family: "Shippori Mincho B1", serif;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.introduction-content h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.65;
}

.heading-line {
  display: block;

  width: 46px;
  height: 3px;
  margin: 22px 0 30px;

  background-color: var(--accent-blue);
}

.introduction-content p:not(.section-label) {
  margin-top: 18px;

  color: #3d4650;
  font-size: 15px;
  line-height: 2.1;
}

.introduction-image {
  position: relative;
}

.introduction-image::before {
  content: "";

  position: absolute;
  top: -22px;
  right: -22px;
  z-index: 0;

  width: 65%;
  height: 80%;

  background-color: var(--light-blue);
}

.introduction-image img {
  position: relative;
  z-index: 1;

  min-height: 430px;
  object-fit: cover;
  box-shadow: 0 18px 45px rgba(0, 54, 106, 0.14);
}


/* 共通見出し */

.section-heading {
  margin-bottom: 55px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(30px, 3.6vw, 44px);
}

.section-heading .heading-line {
  margin: 20px auto 25px;
}

.section-description {
  color: var(--sub-text-color);
  font-size: 15px;
}


/* 施工内容 */

.service-section {
  padding: 100px 0 110px;

  background:
    linear-gradient(
      180deg,
      #f7fbfe 0%,
      #fff 100%
    );
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.service-card {
  overflow: hidden;

  background-color: #fff;
  border: 1px solid var(--border-color);
  box-shadow: 0 7px 24px rgba(0, 46, 89, 0.06);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 57, 111, 0.14);
}

.service-card-image {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.service-card-image::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      transparent 50%,
      rgba(0, 54, 105, 0.16) 100%
    );
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: transform 0.55s ease;
}

.service-card:hover .service-card-image img {
  transform: scale(1.06);
}

.service-card-content {
  min-height: 190px;
  padding: 25px 25px 30px;
}

.service-card-title {
  display: flex;
  align-items: center;
  gap: 16px;

  margin-bottom: 16px;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;
  flex-shrink: 0;

  color: var(--accent-blue);
  font-size: 27px;
}

.service-card h3 {
  font-family: "Shippori Mincho B1", serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.service-card p {
  color: var(--sub-text-color);
  font-size: 14px;
  line-height: 1.9;
}


/* 安全・品質 */

.commitment-section {
  position: relative;

  padding: 95px 0 105px;

  background-image:
    linear-gradient(
      rgba(235, 247, 255, 0.94),
      rgba(242, 249, 255, 0.92)
    ),
    url("../../img/company-2.png");

  background-position: center;
  background-size: cover;
}

.commitment-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.34),
      rgba(225, 242, 255, 0.25)
    );
}

.commitment-inner {
  position: relative;
  z-index: 2;
}

.commitment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.commitment-item {
  position: relative;
  padding: 10px 45px;

  text-align: center;
}

.commitment-item:not(:last-child)::after {
  content: "";

  position: absolute;
  top: 15%;
  right: 0;

  width: 1px;
  height: 70%;

  background-color: rgba(0, 77, 149, 0.18);
}

.commitment-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 76px;
  height: 76px;
  margin: 0 auto 20px;

  color: #fff;
  background:
    linear-gradient(
      135deg,
      var(--accent-blue),
      var(--deep-blue)
    );

  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(0, 90, 178, 0.22);
  font-size: 32px;
}

.commitment-item h3 {
  margin-bottom: 16px;

  color: var(--main-blue);
  font-family: "Shippori Mincho B1", serif;
  font-size: 23px;
  font-weight: 600;
}

.commitment-item p {
  color: #4c5965;
  font-size: 14px;
  line-height: 2;
}


/* お問い合わせ */

.contact-cta {
  padding: 85px 0;
  background-color: #fff;
}

.contact-cta-inner {
  text-align: center;
}

.contact-cta-label {
  margin-bottom: 10px;

  color: var(--accent-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.contact-cta h2 {
  font-family: "Shippori Mincho B1", serif;
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.contact-cta p:not(.contact-cta-label) {
  margin-top: 18px;

  color: var(--sub-text-color);
  font-size: 14px;
}

.contact-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;

  min-width: 330px;
  margin-top: 35px;
  padding: 17px 30px;

  color: #fff;
  background:
    linear-gradient(
      90deg,
      var(--deep-blue),
      var(--accent-blue)
    );

  border: 1px solid var(--accent-blue);
  box-shadow: 0 12px 26px rgba(0, 83, 161, 0.2);

  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;

  transition:
    color 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease;
}

.contact-cta-button:hover {
  color: var(--main-blue);
  background: #fff;
  transform: translateY(-3px);
}


/*フッターーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー*/


.footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    margin-top: 30px;
    text-align: center;
  }
  
  .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }
  
  .footer p {
    flex: 1 0 100%;
    margin-top: 30px;
  }
  
  .footer-links {
    flex: 1 0 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
  }
  
  .footer-links li {
    margin: 0 10px;
  }
  
  .footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
  }
  
  .footer-links a:hover {
    color: #aaa;
  }
/* タブレット */

@media screen and (max-width: 1024px) {
  .navigation {
    padding: 12px 28px;
  }

  .logo-link {
    font-size: 26px;
  }

  .menu {
    gap: 28px;
  }

  .menu-link {
    font-size: 14px;
  }

  .civil-hero {
    min-height: 560px;
  }

  .civil-hero-content {
    padding-top: 80px;
  }

  .introduction-grid {
    gap: 45px;
  }

  .introduction-image img {
    min-height: 360px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commitment-item {
    padding: 10px 25px;
  }
}


/* スマートフォン */

@media screen and (max-width: 768px) {
  .section-container {
    width: min(100% - 36px, 620px);
  }

  .sp-only {
    display: block;
  }

  .scrollToTopBtn {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }

  .navigation {
    min-height: 74px;
    padding: 10px 18px;
  }

  .logo {
    gap: 8px;
  }

  .logo img {
    width: 44px;
    height: 44px;
  }

  .logo-link {
    font-size: 21px;
  }

  .menu-toggle {
    position: relative;
    z-index: 1002;
    display: block;
  }

  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 1001;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;

    width: min(82%, 360px);
    height: 100vh;
    padding: 100px 30px 50px;

    background-color: rgba(20, 33, 45, 0.98);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);

    transition: right 0.35s ease;
  }

  .menu.active {
    right: 0;
  }

  .menu-link {
    padding: 15px 20px;
    color: #fff;
    font-size: 18px;
  }

  .menu-toggle.active .hamburger {
    background-color: #fff;
  }

  .menu-toggle.active .hamburger:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

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

  .menu-toggle.active .hamburger:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .civil-hero {
    min-height: 530px;
    padding-top: 74px;
    background-position: 62% center;
  }

  .civil-hero-inner {
    width: min(100% - 36px, 620px);
    padding-top: 35px;
  }

  .breadcrumb ol {
    gap: 8px;
    font-size: 11px;
  }

  .civil-hero-content {
    padding-top: 85px;
  }

  .civil-hero-content h1 {
    font-size: 48px;
  }

  .civil-hero-message {
    font-size: 20px;
  }

  .civil-introduction {
    padding: 75px 0;
  }

  .introduction-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .introduction-content h2 {
    font-size: 30px;
  }

  .introduction-image {
    order: -1;
  }

  .introduction-image::before {
    top: -12px;
    right: -12px;
  }

  .introduction-image img {
    min-height: 260px;
  }

  .service-section {
    padding: 75px 0 80px;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .section-heading h2 {
    font-size: 30px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .service-card-image {
    height: 215px;
  }

  .service-card-content {
    min-height: auto;
  }

  .commitment-section {
    padding: 75px 0;
  }

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

  .commitment-item {
    padding: 0 10px 40px;
  }

  .commitment-item:not(:last-child)::after {
    top: auto;
    right: 15%;
    bottom: 0;

    width: 70%;
    height: 1px;
  }

  .contact-cta {
    padding: 70px 0;
  }

  .contact-cta-button {
    width: 100%;
    min-width: 0;
  }

  .footer {
    padding: 45px 22px;
  }

  .footer-content {
    align-items: center;
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .footer-right {
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 24px;
  }
}


/* 小さいスマートフォン */

@media screen and (max-width: 420px) {
  .logo-link {
    font-size: 18px;
  }

  .civil-hero-content h1 {
    font-size: 42px;
  }

  .civil-hero-message {
    font-size: 18px;
  }

  .introduction-content h2,
  .section-heading h2 {
    font-size: 27px;
  }

  .service-card-image {
    height: 195px;
  }

  .contact-cta h2 {
    font-size: 24px;
  }
}