﻿
@charset "UTF-8";

/* ========================================
   01. 共通設定
======================================== */

:root {
  --color-main: #285844;
  --color-main-dark: #1f4736;
  --color-text: #333333;
  --color-white: #ffffff;
  --color-contact: #f2f4dc;
  --color-border: #d5ddd7;

  --container-width: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background-color: var(--color-white);
  font-family: sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 見出し・本文の共通設定 */

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h3,
h4 {
  color: var(--color-main);
  font-weight: 700;
  line-height: 1.6;
}

h3 {
  margin-bottom: 20px;
  font-size: 24px;
}

h4 {
  margin-bottom: 15px;
  font-size: 18px;
}

p {
  margin-bottom: 25px;
}

.link-none {
   pointer-events: none;
}

/* レイアウト共通 */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 15px;
}

.section-title {
  margin: 0 0 45px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--color-main);
  color: var(--color-main);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.5;
}

main > section:not(.mv):not(.introduction) {
  padding-block: 65px;
}


/* ========================================
   02. ヘッダー
======================================== */

.site-header {
  width: 100%;
  background-color: var(--color-white);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 110px;
  gap: 40px;
}

.site-logo {
  display: block;
  flex-shrink: 0;
}

.site-logo img {
  width: 300px;
  height: auto;
}

.global-nav ul {
  display: flex;
  align-items: center;
  gap: 45px;
}

.global-nav a {
  display: block;
  padding-block: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.global-nav a:hover {
  color: var(--color-main);
}


/* ========================================
   03. メインビジュアル
======================================== */

.mv {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
}

.mv2 {
  position: relative;
  width: 100%;
  height: 270px;
  overflow: hidden;
}

.mv-image {
  position: absolute;
  inset: 0;
}

.mv-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mv::after, .mv2::after  {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
}

.mv-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding-inline: 15px;
  text-align: center;
}

.mv-content h1 {
  margin: 0;
  color: var(--color-white);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
}


/* ========================================
   04. 会社紹介
======================================== */

.introduction {
  padding-block: 75px;
  text-align: center;
}

.introduction p {
  margin-bottom: 0;
  color: var(--color-main);
  font-size: 18px;
  font-weight: 500;
  line-height: 2.2;
}


/* ========================================
   05. 私たちが大切にしていること
======================================== */

.values-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 60px;
  row-gap: 45px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.value-icon {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.value-text {
  flex: 1;
  min-width: 0;
}

.value-text h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.value-text p {
  margin-bottom: 0;
}


/* ========================================
   06. 事業内容
======================================== */

.services-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
  gap: 50px;
}

.services-text h4 {
  margin-top: 30px;
}

.services-text ul {
  margin-bottom: 25px;
}

.services-text li,
.work-item li,
.qualification-list li {
  position: relative;
  padding-left: 20px;
  line-height: 1.8;
}

.services-text li::before,
.work-item li::before,
.qualification-list li::before {
  content: "・";
  position: absolute;
  left: 0;
}

.services-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}


/* ========================================
   07. 施工実績
======================================== */

.works > .container > p {
  margin-bottom: 35px;
}

.works-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.work-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.work-item h4 {
  margin: 15px 0 10px;
}

.work-item li {
  font-size: 15px;
}


/* ========================================
   08. 施工体制
======================================== */

.construction-system > .container > p {
  margin-bottom: 35px;
  line-height: 2;
}

.qualification-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 30px;
  row-gap: 10px;
}

.qualification-list li {
  font-size: 14px;
}


/* ========================================
   09. 会社概要・お問い合わせ
======================================== */

.company-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
  gap: 40px;
}

/* 会社概要 */

.company-profile dl {
  margin: 0;
}

.company-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 15px;
  padding-block: 12px;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
}

.company-row:first-child {
  border-top: 1px solid var(--color-border);
}

.company-row dt {
  color: var(--color-main);
  font-weight: 700;
}

.company-row dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.company-row a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* お問い合わせ・QRコードの親要素 */

.contact-area {
  min-width: 0;
}

/* お問い合わせ */

.contact-box {
  padding: 35px 30px;
  background-color: var(--color-contact);
}

.contact-box h3 {
  margin-bottom: 20px;
  font-size: 26px;
  text-align: center;
}

.contact-box p {
  margin-bottom: 15px;
  font-size: 15px;
}

.contact-tel {
  margin: 25px 0 10px;
  color: var(--color-main);
  font-size: 28px !important;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  text-decoration: underline;
}

.contact-hours {
  margin-bottom: 0 !important;
  font-size: 13px !important;
  text-align: center;
}

/* QRコード案内 */

.qr-area {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 10px;
}

.qr-area p {
  margin: 0;
  font-size: 13px;
}

.qr-area img {
  width: 90px;
  height: 90px;
  object-fit: contain;
}


/* ========================================
   10. フッター
======================================== */

.site-footer {
  min-height: 70px;
  background-color: var(--color-main);
}


/* ========================================
   11. PC幅の補助調整
   ※スマホ版は別工程
======================================== */

@media (max-width: 1100px) {

  .header-inner {
    gap: 20px;
  }

  .global-nav ul {
    gap: 20px;
  }

  .values-list {
    column-gap: 30px;
  }

  .services-inner,
  .company-inner {
    gap: 25px;
  }

  .qualification-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ========================================
   12. スマホ版（767px以下）
======================================== */

@media (max-width: 767px) {

  /* 基本設定 */

  body {
    font-size: 15px;
  }

  h3 {
    font-size: 20px;
  }

  h4 {
    font-size: 17px;
  }

  .section-title {
    margin-bottom: 30px;
    padding-bottom: 10px;
    font-size: 24px;
  }

  main > section:not(.mv):not(.introduction) {
    padding-block: 45px;
  }

  /* ヘッダー */

  .header-inner {
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding-block: 15px;
  }

  .site-logo img {
    width: 220px;
  }

  .global-nav {
    width: 100%;
  }

  .global-nav ul {
    justify-content: center;
    gap: 20px;
  }

  .global-nav a {
    padding-block: 10px;
    font-size: 13px;
    white-space: nowrap;
  }

  /* メインビジュアル */

  .mv {
    height: 300px;
  }

  .mv-content h1 {
    font-size: 28px;
    letter-spacing: 0.02em;
  }

  /* 会社紹介 */

  .introduction {
    padding-block: 45px;
    text-align: left;
  }

  .introduction p {
    font-size: 16px;
    line-height: 2;
  }

  /* 私たちが大切にしていること */

  .values-list {
    grid-template-columns: 1fr;
    row-gap: 35px;
  }

  .value-item {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .value-icon {
    width: 65px;
    height: 65px;
  }

  .value-text {
    width: 100%;
  }

  .value-text h3 {
    font-size: 18px;
    text-align: center;
  }

  /* 事業内容 */

  .services-inner {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .services-text h4 {
    margin-top: 25px;
  }

  .services-image img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  /* 施工実績 */

  .works > .container > p {
    margin-bottom: 25px;
  }

  .works-list {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  /* 事業内容・施工実績の写真 */

  .services-image img,
  .work-item img {
    width: 80%;
    margin-inline: auto;
  }

  /* 施工体制 */

  .construction-system > .container > p {
    margin-bottom: 25px;
  }

  .qualification-list {
    grid-template-columns: 1fr;
  }

  /* 会社概要・お問い合わせ */

  .company-inner {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .company-row {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 10px;
    font-size: 14px;
  }

  .contact-box {
    padding: 30px 20px;
  }

  .contact-box h3 {
    font-size: 23px;
  }

  .contact-tel {
    font-size: 23px !important;
  }

  .qr-area {
    gap: 15px;
  }

  .qr-area p {
    font-size: 12px;
  }

  .qr-area img {
    width: 75px;
    height: 75px;
    flex-shrink: 0;
  }

  /* フッター */

  .site-footer {
    min-height: 50px;
  }
}

/* ========================================
   13. 小さいスマホ向け（375px以下）
======================================== */

@media (max-width: 375px) {

  .global-nav ul {
    gap: 10px;
  }

  .global-nav a {
    font-size: 12px;
  }

  .mv-content h1 {
    font-size: 25px;
  }

  .company-row {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .contact-tel {
    font-size: 20px !important;
  }
}


/* ========================================
   ハンバーガーメニュー
======================================== */

/* PC版では非表示 */

.menu-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.menu-button {
  display: none;
}


/* スマホ版のみ */

@media (max-width: 767px) {

  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
  }

  /* メニューボタン */

  .menu-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    cursor: pointer;
  }

  .menu-button span {
    display: block;
    width: 28px;
    height: 2px;
    margin-inline: auto;
    background-color: var(--color-main);
    transition: transform 0.2s, opacity 0.2s;
  }

  /* 閉じている状態 */

  .global-nav {
    display: none;
    width: 100%;
  }

  /* 開いている状態 */

  .menu-toggle:checked ~ .global-nav {
    display: block;
  }

  .global-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .global-nav li {
    border-bottom: 1px solid var(--color-border);
  }

  .global-nav a {
    padding: 12px 10px;
    font-size: 15px;
  }

  /* 開いたとき三本線を×にする */

  .menu-toggle:checked + .menu-button span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle:checked + .menu-button span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked + .menu-button span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

}


/*PC版でのみ有効*/

/*電話発信のダイアログをスマホのときだけ有効にする*/
@media(min-width: 767px){
  a[href^="tel:"]{
    pointer-events: none;
  }
}