/*
Theme Name: Design Reform
Description: 地域密着型リノベーション会社のHP
Author: tsuboi
*/

@charset "utf-8";

body {
  /* max-width: 1440px; */
  font-family: "lato", "Futura", "Noto Sans JP", "M PLUS Rounded 1c",  "Yu Gothic Pr6N R", "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
  letter-spacing: .1rem;
}

/*-----------------------------------------
style
------------------------------------------*/

a {
  color: #262d35;
  text-decoration: none;
}

li {
  list-style: none;
}

img {
  width: 100%;
}

h2 {
  font-weight: 300;
}

h3 {
  font-weight: 400;
}

/*-----------------------------------------
common
------------------------------------------*/

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

.container02 {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2%;
}

.section-title {
  text-align: center;
  align-items: baseline;
  justify-content: center;
  display: flex;
  gap: 24px;
}

.section-title h2 {
  font-family: Futura;
  font-size: 2.5rem;
  font-weight: 200;
  color: #676767;
  letter-spacing: 0.2rem;
  opacity: 0.8;
}

.section-title p {
  font-family: "M PLUS Rounded 1c";
  color: #262d35;
  letter-spacing: 0.2rem;
}

.btn {
  text-align: center;
  padding: 64px 0;
}

.btn a {
  background: #619827;
  padding: 16px 48px;
  border-radius: 48px;
  font-size: 16px;
  color: #f0f0f0;
  transition: transform 0.3s ease-in-out;
  display: inline-block;
}

.btn a:hover {
  transform: scale(1.1);
}

@media (max-width: 1024px) {
  .section-title {
    flex-direction: column;
    display: block;
    text-align: center;
  }

  .section-title h2 {
    font-size: 3rem;
    margin-bottom: 24px;
  }
}

@media (max-width: 768px) {

  .container {
    padding: 0 5%;
  }

  .section-title h2 {
    font-size: 2.5rem;
  }

  .section-title p {
    font-size: 1rem;
  }
}

.pagetop {
  width: 50px;
  height: 50px;
  position: fixed;
  right: 30px;
  bottom: 30px;
  background: #fff;
  border: solid 2px #676767;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.pagetop.visible {
  opacity: 1;
  visibility: visible;
}

.pagetop-arrow {
  height: 10px;
  width: 10px;
  border-top: 3px solid #676767;
  border-right: 3px solid #676767;
  transform: translateY(20%) rotate(-45deg);
}

/* パンくずリスト */

.breadcrumb-001 {
  display: flex;
  gap: 0 22px;
  padding: 24px 36px;
  font-size: 1rem;
}

.breadcrumb-001 li {
  display: flex;
  align-items: center;
}

.breadcrumb-001 li:not(:last-child)::after {
  display: inline-block;
  transform: rotate(45deg);
  width: .4em;
  height: .4em;
  margin-left: 12px;
  border-top: 1px solid #262d35;
  border-right: 1px solid #262d35;
  content: '';
}

.breadcrumb-001 a {
  color: #262d35;
  text-decoration: none;
}

.border {
  width: 90%;
  border: 0.5px solid #d6d6d6;
  margin: 0 auto;
}

/* ページネーション全体のスタイル */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 48px 0 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 10px 15px;
  margin: 0 5px;
  text-decoration: none;
  color: black; /* 通常のテキストカラー */
  background-color: transparent; /* 背景色なし */
  border: none; /* ボーダーなし */
  font-size: 16px;
  cursor: pointer;
  transition: color 0.3s, background-color 0.3s; /* 色変更時のスムーズな遷移 */
}

/* カレントページのスタイル */
.pagination .current {
  color: #f0f0f0; /* カレントページのテキストカラー */
  background-color: #619827; /* カレントページの背景色 */
  border-radius: 5px; /* 丸みのある角 */
}

/* ホバー時のスタイル */
.pagination a:hover {
  color: #f0f0f0;
  background-color: #619827; /* ホバー時に背景色を黒に */
  border-radius: 5px; /* 丸みのある角 */
}

/* ページネーションリンクの非表示スタイル（disabled） */
.pagination .disabled {
  color: grey;
  pointer-events: none;
}

/* 改善されたレスポンシブデザイン（モバイル対応） */
@media (max-width: 768px) {
  .pagination a,
  .pagination span {
    padding: 8px 12px;
    font-size: 14px;
  }
}

.fade {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}


/*-----------------------------------------
header
------------------------------------------*/

#header {
  position: fixed;
  top: 0;
  z-index: 10;
  width: 100%;
  transition: background-color 0.3s ease;
}

#header.scrolled {
  background-color: #fff;
}

.header {
  width: 100%;
  padding: 0 24px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.header-logo {
  width: 200px;
  height: auto;
}

.button-area {
  display: flex;
  gap: 48px;
}

.button-area li {
  padding: 10px 24px;
  background-color: #619827;
  color: #f0f0f0;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.5s ease-out, color 0.5s ease-out;
}

.button-area a {
  color: #f0f0f0;
}

.button-area li:hover {
  background-color: #4e7e19;
}


.header-bottom {
  align-items: center;
  padding: 12px 0 24px;
}

.header-menu {
  display: flex;
  gap: 48px;
  justify-content: center;
}

.header-menu a {
  position: relative;
  padding-bottom: 5px;
  display: block;
}

.header-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #676767;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.header-menu a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* header-sp */

.header-sp {
  padding: 16px 24px;
  justify-content: space-between;
  display: none;
  position: relative;
}

.menu-sp {
  width: 15%;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.header-logo-sp {
  z-index: 30;
  width: 200px;
}

.header-logo-sp img {
  width: 200px;
}

.menu-button {
  width: 25px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.menu-button span {
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: #000;
  transition: .5s;
}

.menu-button span:first-of-type {
  top: 0;
}

.menu-button span:nth-of-type(2) {
  top: 50%
}

.menu-button span:last-of-type {
  top: 100%;
}

.nav-list-sp {
  /* background-color: #fff; */
  background-image: url(img/sp-menu-bgi.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  transform: translateX(100%);
  transition: transform 1s ease;
  align-items: center;
}

.nav-list-sp li {
  font-size: 20px;
  color: #222;
  margin-bottom: 32px;
  text-align: center;
  position: relative;
}

.nav-list-sp li a {
  text-decoration: none;
  color: #222;
  position: relative;
  display: inline-block;
}

.nav-list-sp li:first-child {
  margin-top: 90px;
}

.menu-button.active span:first-of-type {
  top: 50%;
  transform: rotate(45deg);
}

.menu-button.active span:nth-of-type(2) {
  opacity: 0;
}

.menu-button.active span:last-of-type {
  top: 50%;
  transform: rotate(-45deg);
}

.nav-list-sp.active {
  transform: translateX(0);
  background-color: #fff;
}

@media (max-width: 768px) {

  .header {
    display: none;
  }

  /* header-sp */

  .header-sp {
    display: flex;
    align-items: center;
  }

  .menu-button {
    display: block;
    z-index: 300;
  }

  .nav-list-sp {
    top: 0;
    width: 100%;
    height: 100%;
  }
}

/*-----------------------------------------
first-view
------------------------------------------*/

.first-view {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.main-visual {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

.fv-text {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -40%);
  text-align: center; /* テキストを中央揃え */
}

.fv-title01 {
  font-size: 2rem;
  font-weight: 400;
  color: #262d35;
  text-shadow: 5px 5px 10px #f0f0f0;
  margin-left: 12px;
}

.fv-title02 {
  font-size: 5rem;
  font-family: "lato";
  font-weight: 400;
  color: #262d35;
  text-shadow: 5px 5px 10px #f0f0f0;
  padding-top: 12px;
}

@media (max-width:768px) {

  .fv-text {
    width: 100%;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -30%);
  }

  .fv-title01 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #262d35;
  }

  .fv-title02 {
    font-size: 3rem;
    font-family: "lato";
    font-weight: 400;
    color: #262d35;
    text-shadow: 5px 5px 10px #f0f0f0;
    padding-top: 12px;
  }

}

/*-----------------------------------------
about
------------------------------------------*/
#top-about {
  padding: 180px 0 90px 0;
  background-image: linear-gradient(90deg, rgba(233, 233, 233, 1), rgba(255, 255, 255, 0));
}

.about-wrapper {
  gap: 64px;
  padding-top: 96px;
}

.about-img {
  width: 100%;
}

.about-text {
  width: 100%;
  margin: 80px auto;
  text-align: center;
}

.about-text p {
  line-height: 4rem;
  letter-spacing: 0.3rem;
}

@media (max-width: 1024px) {

  .about-wrapper {
    flex-direction: column;
    gap: 12px;
  }

  .about-img {
    width: 100%;
  }

  .about-text {
    width: 100%;
  }
}

@media (max-width: 768px) {
  #top-about {
    padding-top: 120 0 48px 0px;
  }
}

/*-----------------------------------------
service
------------------------------------------*/

#top-service {
  padding-top: 180px;
}

.service-wrapper {
  margin: 96px auto 0 auto;
  width: 100%;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 24px;
  margin-top: 24px;
}

.service-item {
  position: relative;
  overflow: hidden;
}

.service-item::before {
  position: absolute;
  content: "RENOVATION";
  font-size: 1.5rem;
  top: 5%;
  left: 5%;
  z-index: 1;
}

.service-item02 {
  position: relative;
}

.item02::before {
  position: absolute;
  content: "SOLUTION";
  font-size: 1.5rem;
  top: 5%;
  left: 5%;
  z-index: 1;
}

.item03::before {
  position: absolute;
  content: "ECO-FRIENDLY";
  font-size: 1.5rem;
  top: 5%;
  left: 5%;
  z-index: 1;
}

.item04::before {
  position: absolute;
  content: "AFTER CARE";
  font-size: 1.5rem;
  top: 5%;
  left: 5%;
  z-index: 1;
}

.service-item img {
  object-fit: cover;
}

.service-item02 img {
  height: 300px;
  object-fit: cover;
}

.service-item h2,
.service-item02 h2 {
  font-family: Futura;
  font-size: 2rem;
  text-align: center;
  color: #676767;
  margin-top: 16px;
  font-weight: 300;
}

.service-text {
  margin: 96px auto 0 auto;
  width: 90%;
}

.service-text p {
  line-height: 4rem;
  padding-bottom: 48px;
}

@media (max-width: 1024px) {

  .service-item02 img {
    height: 300px;
    object-fit: cover;
  }

  .service-item h2,
  .service-item02 h2 {
    font-size: 32px;
  }

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

@media (max-width: 768px) {

  #top-service {
    padding-top: 120px;
  }

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

  .service-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 48px 24px;
  }

  .service-item img {
    height: auto;
  }

  .service-item02 img {
    height: auto;
  }
}

/*-----------------------------------------
works
------------------------------------------*/

#top-works {
  padding-top: 180px;
  background-image: linear-gradient(90deg, rgba(233, 233, 233, 1), rgba(255, 255, 255, 0));
}

.swiper-container {
  margin-top: 96px;
  position: relative;
}

.swiper {
  margin: 48px auto;
}

.swiper-slide {
  position: relative;
  overflow: hidden;
  height: auto;
}

.slide-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1s ease-in-out;
}

.swiper-slide h2 {
  position: absolute;
  bottom: 20px;
  right: 20px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: normal;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.swiper-slide-active .slide-content h2 {
  opacity: 1;
}

.swiper-button-next {
  right: 30px;
}

.swiper-button-prev {
  left: 30px;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  color: #676767;
  border: 1px solid #000;
  padding: 25px 30px;
  background-color: #f0f0f0;
  border-radius: 50%;
  font-size: 1.5rem;
  opacity: 0.8;
}

.swiper-pagination {
  bottom: -40px !important;
}

.swiper-pagination-bullet {
  width: 36px;
  height: 2px;
  border-radius: 0%;
  background-color: #f5695f;
}

.works-text {
  margin: 0 auto;
  width: 90%;
  padding: 64px 0;
}

.works-text p {
  line-height: 4rem;
}

@media (max-width: 768px) {

  #top-works {
    padding-top: 120px;
  }

  .swiper-slide h2 {
    font-size: 1rem;
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    padding: 8px 10px;
    font-size: 0.55rem;
  }

  .swiper-button-next {
    position: absolute;
    right: 10px; /* 右側に配置 */
    top: 50%; /* 縦方向で中央 */
    transform: translateY(-50%); /* 完全に中央揃え */
    z-index: 10; /* 他の要素より上に表示 */
  }

  /* 前のボタン */
  .swiper-button-prev {
    position: absolute;
    left: 10px; /* 左側に配置 */
    top: 50%; /* 縦方向で中央 */
    transform: translateY(-50%); /* 完全に中央揃え */
    z-index: 10; /* 他の要素より上に表示 */
  }

}

/*-----------------------------------------
official blog
------------------------------------------*/

#top-blog {
  padding-top: 180px;
}

.blog-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 96px;
  margin-bottom: 48px;
}

.blog-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-img {
  flex: 1;
  overflow: hidden;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.date {
  display: block;
  margin-top: 24px;
}

@media (max-width: 768px) {

  #top-blog {
    padding-top: 120px;
  }

  .blog-wrapper {
    grid-template-columns: repeat(1, 1fr);
    gap: 48px;
  }
}

/*-----------------------------------------
NEWS
------------------------------------------*/

#top-information {
  padding-top: 180px;
}

.information-wrapper {
  width: 100%;
  margin: 48px auto 0;
}

.information-date {
  width: 20%;
  display: block;
}

.information-text {
  width: 100%;
}

.information-text h3 {
  font-size: 1rem;
  margin-bottom: 16px;
}

.information-text p {
  line-height: 2rem;
}

@media (max-width: 1024px) {

  .information-wrapper {
    width: 100%;
  }

  .information-img {
    width: 40%;
  }

  .information-text p {
    margin-top: 12px;
    line-height: 2rem;
  }
}

@media (max-width: 768px) {

  #top-information {
    padding-top: 120px;
  }

  .information-wrapper {
    width: 100%;
  }

  .information-item {
    flex-direction: column;
  }

  .information-img {
    width: 100%;
  }

  .information-date {
    width: 100%;
  }
}

/*-----------------------------------------
cta area
------------------------------------------*/

#cta {
  margin: 120px auto;
  width: 100%;
}

.cta {
  position: relative;
  margin-bottom: 12px;
  transition: transform 0.3s ease-in-out;
}

.cta:hover {
  transform: scale(1.05);
}

.cta-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  filter: brightness(50%);
}

.cta-contents {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  transform: translateX(-50%) translateY(-50%);
  text-align: center;
  color: #f0f0f0;
  z-index: 2;
}

.cta-contents h3 {
  padding-bottom: 32px;
  font-size: 32px;
  letter-spacing: 0.3rem;
}

.cta-contents p {
  font-size: 20px;
  padding-bottom: 12px;
  letter-spacing: 0.2rem;
  display: block;
  margin: 0 auto;
  width: 100%;
}

.cta-btn {
  padding: 36px 0 0;
  position: relative;
}

.cta-btn a {
  color: #f0f0f0;
  position: relative;
  letter-spacing: 0.2rem;
}

.cta-btn a::before {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #f0f0f0;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.cta-btn a:hover::before {
  transform: scaleX(1);
  transform-origin: bottom left;
}

@media (max-width: 768px) {

  .cta-img {
    height: 350px;
  }


  .cta-contents {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #f0f0f0;
    z-index: 2;
  }

  .cta-contents h3 {
    padding-bottom: 32px;
    font-size: 32px;
    letter-spacing: 0.3rem;
  }

  .cta-contents p {
    font-size: 16px;
    padding-bottom: 12px;
    letter-spacing: 0.2rem;
  }
}

/*-----------------------------------------
footer
------------------------------------------*/

#footer {
  margin-top: 120px;
  background-image: linear-gradient(90deg, rgba(233, 233, 233, 1), rgba(255, 255, 255, 0));
}

.footer {
  padding: 5%;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  width: 40%;
}

.sns-area {
  gap: 48px;
}

.sns-area img {
  width: 48px;
  margin-left: 32px;
}

.footer-middle {
  margin: 64px auto;
}

.footer-menu {
  display: flex;
  gap: 48px;
}

.footer-menu li {
  font-size: 16px;
}

.footer-menu a {
  font-size: 16px;
}

small {
  display: block;
  text-align: center;
  padding-top: 24px;
}


iframe {
  width: 100%;
}

@media (max-width: 1024px) {
  .footer-menu {
    flex-wrap: wrap;
    gap: 36px;
  }
}

@media (max-width: 768px) {

  .footer-top {
    flex-direction: column;
    /* justify-content: center; */
    /* align-items: center; */
  }

  .footer-logo {
    width: 50%;
    padding: 24px 0;
  }

  .sns-area {
    margin-top: 48px;
    display: flex;
    /* justify-content: center; */
  }

  .footer-menu {
    flex-direction: column;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-item {
    width: 100%;
  }

  .sns-area img {
    margin-left: 0;
  }
}

.border {
  width: 90%;
  border: 0.5px solid #d6d6d6;
  margin: 0 auto;
}
/*-----------------------------------------
サービス紹介ページ
------------------------------------------*/

.sub-page-fv {
  position: relative;
  width: 100%;
  height: 75vh;
  overflow: hidden;
}

.sub-page-fv-img {
  width: 100%;
  height: 100%;
}

.sub-page-fv-img img {
  height: 100%;
  object-fit: cover;
}

.sub-title {
  position: absolute;
  bottom: 5%;
  left: 5%;
  color: #222;
  letter-spacing: 0.1rem;
}

.sub-title h2 {
  font-size: 2.5rem;
  font-weight: 400;
}

.sub-title h3 {
  font-weight: 300;
  margin-top: 12px;
}

.service-area {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.service-title02 {
  width: 45%;
}

.service-title02 h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  letter-spacing: 0.15rem;
  display: inline-block;
  position: relative;
}

.service-title02 h2 .line {
  display: inline-block;
  width: 100px;
  height: 1px;
  background-color: #676767;
  margin-left: 24px;
  vertical-align: middle;
}

.service-title02 p {
  margin-bottom: 16px;
  line-height: 2.5rem;
}

.service-img {
  width: 50%;
}

.service-img img {
  height: 100%;
  object-fit: cover;
}

.service-content {
  padding-top: 32px;
}

.service-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 5%;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s ease;
}

.service-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.reverse {
  flex-direction: row-reverse;
}

.background {
  background-image: linear-gradient(90deg, rgba(233, 233, 233, 1), rgba(255, 255, 255, 0));
}

@media (max-width: 768px) {

  .sub-title {
    position: absolute;
    bottom: 5%;
    left: 5%;
    color: #222;
    letter-spacing: 0.1rem;
  }

  .sub-title h2 {
    font-size: 2rem;
    font-weight: 400;
  }

  .sub-title h3 {
    font-size: 1rem;
    font-weight: 300;
  }

  .service-container {
    padding: 80px 5%;
  }

  .service-area {
    flex-direction: column;
    width: 100%;
  }

  .service-title02 {
    width: 100%;
  }

  .service-title02 h2 {
    font-size: 2rem;
    margin-bottom: 0;
  }

  .service-title02 p {
    margin-bottom: 16px;
    line-height: 2.5rem;
    font-size: 0.8rem;
  }

  .service-img {
    width: 100%;
  }

  .service-img img {
    height: 100%;
    object-fit: cover;
  }

  .service-container {
    padding: 96px 5%;
  }

  .reverse {
    flex-direction: column;
  }

  .service-title02 h2 .line {
    width: 30px;
  }
}

/*-----------------------------------------
企業紹介ページ
------------------------------------------*/

.section-text {
  font-size: 1rem;
  letter-spacing: 0.2rem;
  line-height: 4rem;
  padding: 64px 5%;
}

.company-img {
  padding: 32px 5%;
}

.company {
  width: 100%;
  margin: 96px auto;
  padding: 0 5%;

}

.company-name {
  padding-bottom: 64px;
}

.company-name h2 {
  margin-bottom: 24px;
  text-align: center;
  font-size: 2rem;
}

.company-name h3 {
  font-size: 1.2rem;
  font-weight: 400;
  text-align: center;
}

.company-detail {
  display: flex;
}

table {
  width: 50%;
  text-align: left;
  padding: 0 32px;
}

th,
td {
  padding-bottom: 40px;
  font-size: 1rem;
  font-weight: 300;
}

th {
  width: 160px;
}

td {
  padding-left: 64px;
}

.map {
  padding-top: 64px;
}

@media (max-width: 1024px) {

  .company {
    width: 90%;
  }

  .company-detail {
    flex-direction: column;
  }

  table {
    width: 100%;
    text-align: left;
    padding: 0;
  }

}

@media (max-width: 768px) {

  .company {
    width: 100%;
    margin: 48px auto;
  }

  .company-name {
    padding-bottom: 48px;
  }

  table {
    text-align: left;
  }

  th {
    width: 160px;
  }

  td {
    padding-left: 32px;
  }

  .map {
    padding-top: 64px;
  }
}

/*-----------------------------------------
施工事例ページ
------------------------------------------*/

.works-container {
  padding: 96px 2%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 120px 64px;
}

.works-item {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s ease;
}

.works-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.works-img {
  width: 100%;
  height: 400px;
}

.works-item img {
  height: 400px;
  object-fit: cover;
  border-radius: 1%;
}

.works-content {
  margin-top: 32px;
}

.works-content h2 {
  font-size: 2rem;
  font-weight: 400;
  color: #676767;
}

.works-content p {
  letter-spacing: 0.3rem;
  line-height: 2.5rem;
  margin-top: 24px;
}

@media (max-width: 768px) {

  .works-container {
    grid-template-columns: repeat(1, 1fr);
  }

}

/*-----------------------------------------
ブログ一覧ページ
------------------------------------------*/

.blog-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px 32px;
  padding-top: 80px;
}

.blog-item {
  position: relative;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  overflow: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.blog-item:hover {
  transform: scale(1.05);
  opacity: 0.95;
}

.blog-rink {
  display: block;
}

.blog-img img {
  width: 100%;
  display: block;
}

.blog-content {
  padding: 24px 5%;
}

.blog-content time {
  font-size: 0.9em;
  color: #777;
}

.blog-content h3 {
  margin: 10px 0;
  font-weight: 400;
  font-size: 1.2rem;
  color: #333;
}

.blog-content p {
  margin-top: 24px;
  letter-spacing: .1rem;
  line-height: 3rem;
}

.blog-btn {
  display: flex;
  margin: 32px auto;
}

.arrow {
  position: relative;
  width: 24px;
  margin: 20px;
}

.line01 {
  height: 1px;
  background-color: #f0f0f0;
}

.line02 {
  position: absolute;
  top: 0;
  right: 0;
  transform-origin: right bottom;
  width: 10px;
  height: 1px;
  background-color: #000;
  transform: rotate(45deg);
}

@media (max-width: 768px) {

  .blog-container {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 430px) {

  .blog-container {
    grid-template-columns: repeat(1, 1fr);
  }
}

/*-----------------------------------------
ブログ詳細ページ
------------------------------------------*/

.detail-container {
  padding-top: 80px;
}

.detail-img {
  display: flex;
  gap: 24px;
  height: 400px;
}

.detail-img01,
.detail-img02 {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.detail-img01 {
  flex-basis: 30%;
}

.detail-img02 {
  flex-basis: 70%;
}

.detail-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 2%;
}

.blog-detail-btn {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 64px;
}

.blog-detail-btn li {
  display: inline-block;
}

.blog-detail-btn li a {
  position: relative;
  padding-left: 30px;
  padding-right: 30px;
}

.blog-detail-btn li.prev a::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-right: 12px solid #000;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.blog-detail-btn li.next a::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.blog-detail-btn li.list a::before,
.blog-detail-btn li.list a::after {
  content: none;
}

@media (max-width: 768px) {
  #blog-detail {
    margin-top: 120px;
  }

  .detail-img {
    flex-direction: column;
    height: auto;
  }


  .detail-img01 {
    flex-basis: 100%;
  }

  .detail-img02 {
    flex-basis: 100%;
  }

  .blog-detail-btn {
    display: flex;
    gap: 0;
    justify-content: center;
    margin-top: 64px;
  }
}

/*-----------------------------------------
お知らせページ
------------------------------------------*/


.info-item {
  width: 100%;
  display: flex;
  gap: 16px;
  padding: 24px 0 0 ;
  align-items: baseline;
  border-bottom: 1px solid #ebebeb;
}

.info-item02 {
  width: 100%;
  display: flex;
  gap: 32px;
  padding: 24px 0;
  align-items: baseline;
  border-bottom: 1px solid #bababa;
}

.info-content {
  position: relative;
  width: 100%;
}

.category-name {
  display: block;
  padding: 0 24px;
  width: fit-content;
  color: #619827;
}

.post-time {
  display: block;
  /* margin-top: 16px; */
  padding: 0 24px;
}

.info-title {
  padding: 12px 24px;
  font-size: 1.5rem;
}

.info-text {
  padding: 0 24px;
  margin-top: 24px;
  line-height: 2rem;
}

.info-btn {
  display: flex;
  margin: 24px auto;
}

@media (max-width: 1024px) {

  .info-box {
    display: flex;
  }

  .info-img {
    width: 50%;
  }

  .info-content {
    width: 50%;
  }

}

@media (max-width: 768px) {

  .info-category h3 {
    padding: 24px 0;
  }

  .info-category ul {
    flex-direction: column;
    gap: 16px;
  }

  .info-item {
    flex-direction: column;
  }

  .info-img {
    width: 100%;
  }

  .info-content {
    width: 100%;
  }

  .info-title {
    font-size: 1.2rem;
  }
}

/*-----------------------------------------
ローディング画面
------------------------------------------*/

.loading {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-image: url(img/blog.jpg);;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 30;
  opacity: 1;
  visibility: visible;
  transition: opacity 1s ease-out, visibility 0s 1s;
}

.loading.loaded {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-out, visibility 0s 1s;
}

.loading-text {
  color: #222;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  top: -100px;
}

.spinner {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 4px solid #fff;
  border-left-color: #619827;
  animation: spinner-rotation 1s linear infinite;
  position: relative;
  top: -100px;
}

@keyframes spinner-rotation {
  0% {
    transform: rotate(0);
  } 100% {
    transform: rotate(360deg);
  }
}

/*-----------------------------------------
プライバシーポリシー
------------------------------------------*/

.policy-top {
  padding-top: 48px;
}

.policy-container {
  margin-bottom: 64px;
  font-size: 1rem;
}

.policy-container h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 24px;
}

.policy-title {
  font-size: 24px;
  margin-bottom: 16px;
}

.policy-text {
  margin: 16px 0;
}

/*-----------------------------------------
予約・お問い合わせ
------------------------------------------*/

.contact-container {
  margin-bottom: 64px;
  font-size: 20px;
}

.contact-text {
  padding: 24px 0;
  text-align: center;
}

.contact-text p {
  margin-top: 24px;
  letter-spacing: 0.2rem;
  line-height: 3rem;
}

.contact-form {
  margin-top: 64px;
}

.contact-form h2 {
  text-align: center;
  font-weight: 400;
}

form {
  width: 100%;
  margin-top: 32px;
}

input {
  border: 1px solid #676767;
}

label {
  margin-bottom: 16px;
}

.form-item {
  width: 60%;
  margin: 0 auto 32px auto;
}

.form-item02 {
  width: 60%;
  margin: 0 auto 32px auto;
}

.form-item02 label input {
  transform: scale(1.5);
  margin-right: 12px;
}

span {
  margin: 0 24px;
  font-size: 12px;
  color: #f5695f;
}

.send-btn {
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  padding: 20px;
  box-sizing: border-box;
}

form {
  width: 100%;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

label {
  display: block;
  margin-bottom: 8px;
}

input[type="text"], input[type="mail"], textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
  height: 150px;
}

input[type="submit"] {
  background-color: #619827;
  color: #fff;
  padding: 12px 64px;
  font-size: 18px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
  background-color: #4e7e19;
}

input::placeholder, textarea::placeholder {
  color: #aaa;
  font-size: 16px;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  appearance: none; /* デフォルトのスタイルを削除 */
  border: 2px solid #619827; /* 枠線の色 */
  border-radius: 4px; /* 角を丸める */
  background-color: #fff; /* 初期状態の背景色 */
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
}

/* チェックされた時のスタイル */
input[type="checkbox"]:checked {
  background-color: #619827; /* チェック時の背景色 */
  border-color: #4e7e19; /* チェック時の枠線色 */
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  appearance: none; /* デフォルトのスタイルを削除 */
  border: 1px solid #676767; /* 枠線の色 */
  border-radius: 4px; /* 角を丸める */
  background-color: #fff; /* 初期状態の背景色 */
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
}

/* チェックされた時のスタイル */
input[type="checkbox"]:checked {
  background-color: #619827; /* チェック時の背景色 */
  border-color: #4e7e19; /* チェック時の枠線色 */
}

/* チェックされたときのチェックマークを表示 */
input[type="checkbox"]:checked::after {
  content: "✔"; /* チェックマークを表示 */
  color: #fff; /* チェックマークの色 */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* チェックマークを中央に配置 */
  font-size: 12px;
}

@media (max-width: 768px) {

  .form-item {
    width: 100%;
  }

  .form-item02 {
    width: 100%;
  }

  .contact-form {
    padding: 20px 10px;
  }

}

#transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  transform: translateX(100%); /* 初期状態は右側に隠れている */
  transition: transform 1s ease-in-out; /* スライドアニメーション */
  z-index: 9999; /* オーバーレイを最前面に表示 */
}

.hide-all {
  visibility: hidden; /* コンテンツを隠す */
  opacity: 0; /* 背景を透明にする */
  pointer-events: none; /* クリックイベントを無効化 */
  overflow: hidden; /* スクロールを無効化 */
}

/* コンテンツが見えるようにするクラス */
.show-all {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.1s ease-in-out;
  pointer-events: auto; /* クリックイベントを有効化 */
}
