* //* ------------------------------

0. Reset CSS ------------------------------ */ *,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  padding: 0;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* リストのリセット */
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* リンクのリセット */
a {
  text-decoration: none;
  color: inherit;
}

/* ボタンのリセット */
button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
}

/* 入力フィールドのリセット */
input,
textarea,
select {
  font: inherit;
  border: none;
  outline: none;
}

/* 画像のリセット */
figure,
img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

/* テーブルのリセット */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* フォーム要素のリセット */
fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

/* 見出しのリセット */
h1,
h2,
h3,
h4,
h5,
h6,
p,
span {
  font-weight: normal;
  font-size: inherit;
  margin: 0;
  padding: 0;
}

/* 自動リンクの装飾を無効化 */
a[href^="tel"],
a[href^="mailto"],
a[href^="sms"],
a[href^="geo"],
a[href^="maps"] {
  text-decoration: none !important;
  color: inherit;
  border: none !important;
}

/* Androidなどの自動リンク化対策 */
address,
html,
body {
  -webkit-touch-callout: none;
  -webkit-user-select: text;
}

/* iOS Safariの自動検出を無効化 */
meta[name="format-detection"] {
  content: "telephone=no";
}

/* ------------------------------
  1. 基本設定
------------------------------ */
:root {
  /* フォント */
  --font-jp: "Noto Sans JP", sans-serif;
  --font-en: "Roboto", sans-serif;

  /* カラー */
  --color-black: #2f2f2f;
  --color-green: #18863b;
  --color-bg: #f5f4ee;

  /* マージン */
  --mb-24: 24px;
  --mb-40: 40px;
  --mb-80: 80px;
}

body {
  font-family: var(--font-jp), var(--font-en), sans-serif;
  font-size: 16px;
  color: var(--color-black);
  line-height: 1.6;
}

span:not([class]) {
  display: inline-block;
}

html {
  scroll-behavior: smooth;
}

/* ------------------------------
  2. ユーティリティクラス
------------------------------ */

/* マージン（共通） */
.u-mb24 {
  padding-bottom: var(--mb-24) !important;
}

.u-mb40 {
  padding-bottom: var(--mb-40) !important;
}

/* テキスト */
.u-text-center {
  text-align: center !important;
}

.u-text-green {
  color: var(--color-green) !important;
}

.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.u-border-none {
  text-decoration: none !important;
  border: none !important;
}

/* ヘッダー */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
}

.logo {
  z-index: 10010;
}

.logo img {
  max-width: 200px;
  width: 100%;
  transition: all 0.2s ease;
}

.logo.active img {
  transition: all 0.2s ease;
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

@media (min-width: 600px) {
  .logo img {
    max-width: 375px;
  }
}

/* ナビゲーション */
.nav {
  position: relative;
}

/* ハンバーガーメニュー（モバイル用） */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10000;
  background-color: var(--color-green);
  width: 54px;
  height: 54px;
  transition: all 0.2s ease;
  position: fixed;
  /* fixedに変更 */
  top: 16px;
  /* 位置を指定 */
  right: 16px;
  /* 位置を指定 */
}

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

.hamburger.active span {
  background-color: var(--color-green);
}

.hamburger span {
  width: 30px;
  height: 2px;
  background: #fff;
  margin: 3px 0;
  transition: all 0.2s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.nav-menu {
  position: fixed;
  top: 0;
  right: -100vw;
  width: 100%;
  height: 100vh;
  background: var(--color-green);
  transition: all 0.2s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.nav-menu.active {
  right: 0;
}

.nav-menu li {
  width: 100%;
  max-width: 200px;
  text-align: left;
}

.nav-menu li a {
  color: #fff;
  font-size: 24px;
  font-weight: bold;
}

.nav-menu li:not(:last-child) {
  margin-bottom: 24px;
}

.nav-menu li a::before {
  content: "・";
}

@media screen and (min-width: 600px) {
  .nav-menu li a::before {
    display: none;
  }
}

/*TOPへ戻るボタン*/
.top-button {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 60px;
  height: 60px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100px);
  z-index: 1001;
  transition: all 0.5s ease;
}

.top-button.show {
  opacity: 0.8;
  visibility: visible;
  transform: translateY(0);
}

.top-button a {
  background-color: var(--color-green);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
  width: 60px;
  height: 60px;
  line-height: 74px;
  font-size: 14px;
  text-align: center;
  transition: all 0.2s ease;
  display: inline-block;
}

.top-button a::before {
  content: "";
  position: absolute;
  top: 34%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 14px;
  background-image: url(image/TOP_button.svg);
  background-size: contain;
  background-repeat: no-repeat;
  transition: all 0.2s ease;
}

/* PC用メニュー（1024px以上） */
@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }

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

  .header-inner {
    box-shadow: none;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
  }

  .logo {
    position: fixed;
    top: 16px;
    left: 16px;
    max-width: 375px;
    width: 100%;
    z-index: 10002;
  }

  /* PCではロゴの色変更を無効化 */
  .nav-menu.active~.header-inner .logo img,
  .nav-menu.active~header .header-inner .logo img {
    filter: none;
  }

  .nav {
    max-width: 1440px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
  }

  .nav-menu {
    position: fixed;
    top: 50vh;
    right: 16px;
    background: none;
    box-shadow: none;
    width: 140px;
    height: auto;
    display: inline-block;
  }

  .nav-menu li:not(:last-child) {
    padding: 0;
    border-bottom: none;
    margin-bottom: 16px;
  }

  .nav-menu li a {
    display: inline-block;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--color-green);
    color: #fff;
    transition: all 0.2s ease;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid var(--color-green);
  }

  .nav-menu li a::before {
    display: none;
  }

  .nav-menu a:hover {
    background-color: #fff;
    color: var(--color-green);
    transition: all 0.2s ease;
  }

  .top-button.show {
    opacity: 1;
  }

  .top-button a:hover {
    background-color: #fff;
    color: var(--color-green);
    transition: all 0.2s ease;
  }

  .top-button a:hover::before {
    transition: all 0.2s ease;
    filter: brightness(0) saturate(100%) invert(30%) sepia(100%) saturate(10000%) hue-rotate(120deg) brightness(100%) contrast(100%);
    transform: translate(-50%, -50%) translateY(-2px);
  }
}

@media (min-width: 1456px) {
  .logo {
    left: calc((100vw - 1440px) / 2);
  }

  .nav-menu {
    left: calc((100vw - 1440px) / 2 + 1440px);
    transform: translateX(-100%);
  }

  .top-button a {
    left: calc((100vw - 1440px) / 2 + 1440px);
    transform: translateX(-100%);
  }
}

/* オーバーレイ（モバイル用のみ） */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 9998;
  /* nav-menuより下のz-index */
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 1024px) {
  .overlay {
    display: none;
    /* PCではオーバーレイを非表示 */
  }
}

/*heroセクション*/
.hero {
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 1;
}

.hero-img {
  width: 100%;
  height: calc(100vh - 52px);
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

.hero-title-container {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.hero-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--color-green);
  writing-mode: vertical-rl;
  text-orientation: upright;
  padding-top: 14vh;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-img {
    height: 100vh;
  }
}

@media (min-width: 768px) {
  .hero-title {
    margin: 0 auto 0 0;
  }
}

@media (min-width: 1024px) {
  .hero-img img {
    object-position: center;
  }

  .hero-title {
    font-size: 48px;
  }
}

/*共通セクション*/
.campaign,
.area,
.case,
.contact,
.company {
  position: relative;
  z-index: 10;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px;
  background-color: var(--color-bg);
  box-sizing: border-box;
  background-image: linear-gradient(0deg,
      transparent calc(100% - 1px),
      #f0f0f0 calc(100% - 1px)),
    linear-gradient(90deg,
      transparent calc(100% - 1px),
      #f0f0f0 calc(100% - 1px));
  background-size: 8px 8px;
  background-repeat: repeat;
  background-position: center center;
}

.inner {
  background-color: #fff;
  border-radius: 20px;
  padding: 24px;
}

.section-title {
  font-size: 32px;
  font-weight: bold;
  line-height: 1.2;
  padding-top: 40px;
  font-family: var(--font-en);
}

.title-ja {
  font-size: 16px;
  font-weight: bold;
  display: block;
  color: var(--color-black);
  margin-bottom: 24px;
  font-family: var(--font-jp);
}

@media (min-width: 600px) {
  .container {
    max-width: 600px;
    padding: 0 40px;
  }
}

/*キャンペーン*/
.campaign .container {
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.campaign-item__title {
  color: var(--color-green);
  font-weight: bold;
  margin-top: 20px;
  background-color: var(--color-bg);
  border-radius: 10px;
  padding: 6px;
  text-align: center;
  transition: all 0.2s ease;
}

.campaign-item:hover .campaign-item__title {
  background-color: var(--color-green);
  color: #fff;
  transition: all 0.2s ease;
}

.campaign p {
  color: var(--color-green);
  padding: 24px 0;
}

@media (min-width: 600px) {
  .campaign .container {
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
  }
}

/*施工エリア*/
.aria-item:nth-child(1) {
  max-width: 254px;
  width: 100%;
  height: 100%;
  margin: 0 auto 24px;
}

.area-text__title {
  position: relative;
  font-weight: 900;
  margin-bottom: 12px;
  width: 100%;
}

.area-text__title::before,
.area-text__title::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38%;
  height: 1px;
  background-color: var(--color-green);
}

.area-text__title::before {
  left: 0;
}

.area-text__title::after {
  right: 0;
}

.area-text {
  text-align: center;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: flex-end;
}

.area-text__list {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.area-text__list li {
  background-color: var(--color-bg);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--color-green);
  font-weight: 900;
  letter-spacing: 0;
  font-size: 14px;
}

@media (min-width: 600px) {
  .area-content {
    display: flex;
    justify-content: space-between;
    position: relative;
  }

  .aria-item:nth-child(1) {
    max-width: 234px;
  }

  .aria-item {
    width: 50%;
  }

  .area-text {
    transform: translateX(-10px);
  }

  .area-text__list {
    gap: 8px;
  }
}

/*施工事例*/
.case-arrow {
  width: 13px;
  height: 24px;
  margin: 8px auto;
}

.case-item {
  display: flex;
  flex-direction: column;
}

.case-item__body {
  order: 1;
}

.case-item__images {
  order: 2;
}

.case-item__desc-sp {
  order: 3;
}

.case-item:not(:last-child) {
  border-bottom: 1px solid var(--color-green);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.case-item__title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 24px;
  line-height: 1.4;
  word-break: auto-phrase;
}

.case-item__no {
  display: block;
  font-size: 12px;
  color: var(--color-green);
  font-weight: bold;
  margin-bottom: 8px;
  font-family: var(--font-en);
}

.case-item__desc-sp {
  display: block;
  font-weight: 500;
  margin-top: 24px;
  text-align: justify;
}

.case-item__desc-pc {
  display: none;
}

.case-photo {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 80%;
  overflow: hidden;
  border-radius: 20px;
}

.case-photo img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.case-photo figcaption {
  position: absolute;
  top: 26px;
  left: 0;
  padding: 2px 0;
  width: 110px;
  text-align: center;
  background-color: var(--color-green);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  border-radius: 0 50px 50px 0;
}

.case-item__images figure:nth-of-type(2) figcaption {
  background-color: #fff;
  color: var(--color-green);
}

@media (min-width: 600px) {
  .case-item:nth-child(even) {
    flex-direction: row-reverse;
  }

  .case-item {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 32px;
  }

  .case-item__images,
  .case-item__body {
    width: calc(50% - 16px);
    box-sizing: border-box;
  }

  .case-item__desc-sp {
    display: none;
  }

  .case-item__desc-pc {
    display: block;
    font-weight: 500;
  }

  .case-item:not(:last-child) {
    padding-bottom: 40px;
    margin-bottom: 40px;
  }

  .case-photo figcaption {
    position: absolute;
    top: 16px;
    padding: 2px 22px;
    width: auto;
    font-size: 11px;
  }
}

/*お問い合わせ*/
.contact .inner {
  background-color: transparent;
  border-radius: 0;
  padding: 0;
}

.contact-form .form-label {
  display: block;
  margin-bottom: 8px;
  padding-left: 8px;
  border-left: 4px solid var(--color-green);
  font-weight: bold;
}

.contact-form .form-item:not(:last-child) {
  margin-bottom: 24px;
}

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form textarea {
  width: calc(100% - 20px);
  padding: 10px;
  border-radius: 10px;
}

.contact-form input[type="submit"] {
  background: var(--color-green);
  color: #fff;
  padding: 12px 32px;
  border-radius: 0px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: bold;
}

.contact-form input[type="submit"]:hover {
  background: #145c29;
  transition: all 0.2s ease;
}

.form-submit p {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-form .agree-checkbox {
  text-align: center;
  margin-top: 10px;
}

/*チェックボックス*/
.form-item.checkbox-list .wpcf7-list-item {
  margin: 0 1em 0 0;
}

/*リキャプチャ非表示*/
.grecaptcha-badge { visibility: hidden; }

/*プライバシーポリシー*/
.policy-container .policy-box {
  max-height: 120px;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  background: #FFF;
}

.contact-form .form-label.policy-label {
  border-left: none;
  padding-left: 0;
}

.policy-container .wpcf7-list-item {
  margin: 0 auto;
}

.policy-container h3 {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
}

.policy-container h4 {
  font-weight: bold;
  margin-bottom: 4px;
}

.policy-container section {
  margin-top: 8px;
}

/*前に連番をつける*/
.policy-container ol {
  counter-reset: item;
}

.policy-container ol>li::before {
  content: counter(item) ".";
  counter-increment: item;
  margin-right: 4px;
}

.policy-container li p {
  display: inline;
}

.policy-container ul>li {
  margin-left: 1em;
}

.policy-container ul>li::before {
  content: "・";
  margin-right: 4px;
}

@media screen and (min-width: 600px) {
  .contact .inner {
    padding: 24px;
  }
}

/*会社概要*/
.company .inner {
  background-color: transparent;
  border-radius: 0;
  padding: 0;
}

.button-container {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.button-container a {
  position: relative;
  background-color: #fff;
  color: var(--color-green);
  width: calc(50% - 8px);
  text-align: center;
  padding: 18px 0;
  transition: all 0.2s ease;
}

.button-container a::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  background-image: linear-gradient(-135deg,
      var(--color-green) 10px,
      transparent 0);
  background-repeat: no-repeat;
  z-index: 1;
}

.button-container span {
  font-weight: 900;
}

.button-container a:hover {
  background-color: var(--color-green);
  color: #fff;
  transition: all 0.2s ease;
}

.button-container a:hover::after {
  background-image: linear-gradient(-135deg, #fff 10px, transparent 0);
  transition: all 0.2s ease;
}

table {
  width: 100%;
}

/*最後のtr以外を指定*/
tr:not(:last-child) {
  border-bottom: 1px solid var(--color-green);
}

th {
  width: 140px;
  text-align: left;
  color: var(--color-green);
  vertical-align: top;
  padding: 16px 0;
}

td {
  padding: 16px 0;
  font-weight: 500;
}

td span {
  font-weight: 500;
}

tr:first-child th,
tr:first-child td {
  padding-top: 0;
}

tr:last-child th,
tr:last-child td {
  padding-bottom: 0;
}

.business-list li {
  margin-bottom: 4px;
}

@media (min-width: 600px) {
  .company .inner {
    padding: 24px;
  }

  .business-list {
    list-style: none;
    text-align: justify;
  }

  .business-list li {
    display: inline;
    margin-bottom: 0;
  }

  .business-list li::after {
    content: "・";
    margin: 0 0 0 4px;
  }

  .business-list li:last-child::after {
    content: "";
  }
}

/*フッター*/
footer {
  position: relative;
  z-index: 2;
  color: #fff;
}

.container.footer-container {
  padding: 0;
  background-color: var(--color-green);
}

.inner.footer-inner {
  border-radius: 0;
  background-color: var(--color-green);
  padding: 40px 16px 24px;
}

.footer-logo {
  border-bottom: 1px solid #fff;
  padding-bottom: 40px;
  margin-bottom: 36px;
}

.footer-logo img {
  max-width: 130px;
  display: block;
  margin: 0 auto;
}

.footer-info h3 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 24px;
}

.footer-info .title-ja {
  color: #fff;
}

.footer-info address {
  font-style: normal;
  margin-bottom: 24px;
}

.footer-info address p {
  font-weight: 500;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 18px;
  font-weight: bold;
  font-family: var(--font-en);
}

.contact-list li:nth-child(1) {
  margin-right: 10px;
  display: inline-flex;
  align-items: baseline;
}

.contact-list li:nth-child(2) {
  display: inline-flex;
  align-items: baseline;
}

.contact-list li:nth-child(3) {
  display: flex;
  justify-content: center;
  align-items: baseline;
  margin-top: 4px;
}

.contact-list span {
  font-weight: bold;
}

.tel-icon {
  background-image: url(image/W-tel.svg);
  background-size: contain;
  background-repeat: no-repeat;
  width: 16px;
  height: 16px;
}

.fax-icon {
  background-image: url(image/W-fax.svg);
  background-size: contain;
  background-repeat: no-repeat;
  width: 18px;
  height: 15px;
}

.mail-icon {
  background-image: url(image/W-mail.svg);
  background-size: contain;
  background-repeat: no-repeat;
  width: 18px;
  height: 15px;
}

small {
  font-size: 12px;
  font-weight: 500;
}

@media (min-width: 600px) {
  .inner.footer-inner {
    padding: 40px 74px 24px;
  }

  .footer-info h3 {
    font-size: 24px;
  }

  .contact-item {
    font-size: 24px;
    gap: 8px;
  }

  .contact-list li:nth-child(1) {
    margin-right: 16px;
  }

  .contact-list li:nth-child(3) {
    margin-top: 0px;
  }

  .tel-icon {
    width: 18px;
    height: 18px;
  }

  .fax-icon {
    width: 20px;
    height: 17px;
  }

  .mail-icon {
    width: 20px;
    height: 16px;
  }
}

/* ------------------------------
  ローディング画面
------------------------------ */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease-in-out;
}

.loading.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-logo {
  width: 300px;
  height: auto;
  animation: slideIn 1s ease-out;
}

.loading-logo img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes slideIn {
  0% {
    clip-path: inset(0 100% 0 0);
  }

  100% {
    clip-path: inset(0 0 0 0);
  }
}

/* ------------------------------
  404ページ
------------------------------ */
.error404 main>.container {
  padding: 150px 0;
}

.error404 .error-actions {
  margin-top: 40px;
}

.error404 .error-actions a {
  background-color: var(--color-green);
  color: #fff;
  padding: 16px 32px;
  border: 1px solid var(--color-green);
  transition: all 0.2s ease;
}

.error404 .error-actions a:hover {
  background-color: #fff;
  color: var(--color-green);
  transition: all 0.2s ease;
}