/* ==========================================
   共通設定（Global）
========================================== */
body {
  margin: 0;
  padding: 0;

  background-color: #504946;
  color: white;

  font-family: "fot-tsukuaoldmin-pr6n", sans-serif;
  font-weight: 400;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
}

h1 {
  font-size: 25px;
  letter-spacing: 2px;

  font-weight: 300;
  font-style: normal;
}

h2 {
  display: inline-block;

  color: white;

  border-bottom: 1px solid white;

  line-height: 1;

  font-size: 35px;

  margin: 50px 0 13px 50px;

/* 初期状態（見えてない） */

  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s ease;
}

/* 表示されたとき */
h2.is-active {
  opacity: 1;
  transform: translateX(0);
}

section{
    scroll-margin-top: 90px;
}

/* ==========================================
   ヘッダーロゴ logo-area
========================================== */
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;

  margin: 0;


  opacity: 0;
  transform: translateX(-20px);

  animation: logoFadeIn 1.5s ease forwards;
  animation-delay: 0.2s;
}

.logo-area img {
  width: 28px;
  height: 28px;
  object-fit: contain;

  filter: brightness(0) invert(1);
}

.logo-area,
.logo-area:visited {
  filter: brightness(0) invert(1);
  text-decoration: none;
}

/* ==========================================
   ヘッダー（Header）
========================================== */
header {
  position: fixed; 
  top: 0;
  left: 0;
  width: 100%;
  height: 60px; 
  z-index: 1000;

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

  padding: 10px 30px;
  
}

header.hide {
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
}

/*スクロール*/

header.scrolled {
  position: fixed;

  padding: 10px 30px;

  background: rgba(80, 73, 70, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}

/* ==========================================
    ヘッダーメニュー
========================================== */
ul {
  display: flex;
  gap: 40px;
  flex-direction: row;
  margin: 0;
  padding: 0;

  list-style: none;
}
.header-menu {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 10px 30px;

  opacity: 0;

  flex-wrap: nowrap;

  animation: slideInLeft 2s ease-out forwards;

  animation-delay: 0.6s;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

/*コンタクトボタン*/
.contact-btn {
  display: inline-block;

  padding: 8px 20px;

  border: 1px solid white;

  border-radius: 30px;

  color: white;

  text-decoration: none;

  transition: 0.4s;
}

.contact-btn:hover {
  background: white;
  color: #504946;
  opacity: 1; 
  transform: translateY(-2px) scale(1.05);
}

.contact-btn::after {
  display: none;
}

/* ==========================================
   ファーストビュー（Hero）
========================================== */
.hero {
  position: relative;
  height: 100svh;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  animation: fadeIn 3s ease forwards;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../images/main.jpg") center center / cover no-repeat;
  filter: brightness(60%);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  color: white;

  opacity: 0;

  animation: fadeInText 3s ease forwards;

  animation-delay: 0.3s;

   text-align: center;
   display: flex;
   flex-direction: column;
   align-items: center;

     text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

  .hero-text p {
    margin: 0;
  font-size: 20px;
  letter-spacing: 2px;

    letter-spacing: 10px;

  font-family: "fot-tsukuaoldmin-pr6n", sans-serif;
  font-weight: 300;
  font-style: normal;
}

/* ==========================================
   メインビジュアル ロゴ=logo-image
========================================== */
.logo-image {
  width: 180px;
  height: auto;
  filter: brightness(0) invert(1);
}

/* ==========================================
    ナビ
========================================== */
/* ナビリンク基本 */
.header-menu a,
.header-menu a:visited,
.header-menu li {
  position: relative;
  cursor: pointer;
  text-decoration: none;
  transition: 0.4s ease;
}

nav a {
  color: #fff;
  text-decoration: none;
}

/* 下線アニメーション */
.header-menu li::after,
.header-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 1px;
  background: currentColor;
  transition: 0.3s ease;
}

/* ふわっと少し浮く */
.header-menu a:hover {
  transform: translateY(-2px);
  opacity: .7;
}

.header-menu li:hover::after,
.header-menu a:hover::after {
  width: 100%;
}

/* ==========================================
    ハンバーガーメニュー
========================================== */
.hamburger {
  width: 30px;

  margin-right: 30px;

  display: flex;
  flex-direction: column;

  gap: 6px;

  cursor: pointer;

  transition: 0.4s ease;
}

.hamburger span {
  display: block;

  height: 2px;

  background: white;

  transition: 0.4s ease;
  transform-origin: center;
}

.hamburger:hover {
  transform: scale(1.1);
}

.hamburger:hover span {
  opacity: 0.6;
}

.full-menu {
  flex-direction:column;

  position: fixed;
  top: 0;
  right: 0;

  width: 40vw;
  max-width: 450px;
  height: 100vh;

  background: #bc8a57e6;
  backdrop-filter: blur(8px);

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

  opacity: 0;
  transform: translateX(100%);

  transition: transform 0.4s ease, opacity 0.4s ease;

  pointer-events: none;
  z-index: 999;

  padding-top: 60px;
  padding-right: 20px;
}

.full-menu.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.full-menu ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.full-menu li {
  margin: 25px 0;
}

.full-menu a {
  color: #504946;
  font-size: 24px;
  text-decoration: none;
  letter-spacing: 2px;
  transition: 0.4s ease;
}

.full-menu a:hover {
  transform: translateX(6px);
  opacity: 0.7;
}

/*ハンバーガーメニュー開くとハンバーガーメニューが閉じるボタンに変わる*/
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


/* ==========================================
    SERVICE
========================================== */

.services h2{
    margin-bottom:40px;
}

.service-list{
    max-width:1200px;
    margin:40px auto 0;
    padding:0 5%;

    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}


.service-item{
    position:relative;

    aspect-ratio:1 / 1;

    overflow:hidden;

    display:flex;
    flex-direction:column;
    justify-content:flex-end;

    padding:30px;

    background:rgba(255,255,255,.08);

    border:1px solid rgba(255,255,255,.15);

    transition:.3s;
}


/* 写真をカード全面 */
.service-gallery{
    position:absolute;

    inset:0;

    z-index:0;
}


.service-gallery img{
    width:100%;
    height:100%;

    object-fit:cover;

    transition:.5s;
}


/* 写真の上に暗い膜 */
.service-item::before{
    content:"";

    position:absolute;

    inset:0;

    background:rgba(0,0,0,.35);

    z-index:1;
}


/* 文字を写真の上へ */
.service-text{
    position:relative;

    z-index:2;
}


/* 見出し */
.service-item h3{
    position:relative;
    z-index:2;

    margin:0 0 15px;

    color:white;

    font-size:28px;
    font-weight:400;

    border-bottom:1px solid rgba(255,255,255,.5);

    padding-bottom:12px;
}


.service-text p{
    color:white;

    line-height:1.8;

    margin:0;
}


/* hover */
.service-item:hover img{
    transform:scale(1.08);
}


.service-item:hover{
    transform:translateY(-5px);
}

/*施工事例ページに飛ぶ*/
.other-item{
    padding-bottom:30px;
  }


.works-btn {
  grid-column: 1 / -1;
  justify-self: end;

  margin-top: 15px;

  color: white;
  text-decoration: none;

  font-size: 20px;

  transition: 0.3s ease;
}


.works-btn:hover {
  opacity: 0.7;
  transform: translateX(5px);
}

/* ==========================================
    代表者挨拶
========================================== */

.greeting-content{
    max-width:1200px;
    margin:40px auto 0;
    padding:0 5%;
}


.greeting-text{

    padding:40px;

    background:rgba(255,255,255,.08);

    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);

    border:1px solid rgba(255,255,255,.15);
}


.greeting-text p{

    margin:0 0 28px;

    color:rgba(255,255,255,.9);

    line-height:2;

    font-size:18px;

}


.greeting-name{

    margin-top:50px !important;

    text-align:right;

    line-height:1.8 !important;

}

/* ==========================================
    ABOUT
========================================== */
.about-list {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 5%;
  font-size: 20px;
}

.about-row {
  display: flex;
  padding: 25px 0;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

.about-row p:first-child {
  flex:0 0 180px;
  width: 150px;
  margin: 0;
  color: white;
}

.about-row p:last-child {
  margin: 0;
}

/* ==========================================
    CONTACT
========================================== */
.tel-area {
  margin-top: 0;

  margin-left: 80px;
}
.tel-area p {
  margin: 0;

  font-size: 20px;
}

.contact-area {
  margin-top: 30px;

  margin-left: 80px;
}

.contact-area p {
  margin: 0;

  font-size: 20px;
}

/* ==========================================
    スクロールでふわっと出てくる
========================================== */
.fade-section {
  opacity: 0;
  transform: translateY(60px);

  transition: all 0.8s ease;
}

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

.fade-title {
  opacity: 0;
  transform: translateX(-80px);
}

.fade-content {
  opacity: 0;
  transform: translateY(40px);
}

/* ==========================================
    CONTACT
========================================== */
/*フォームボタン*/
.form-btn {
  display: inline-block;

  margin-top: 15px;

  padding: 12px 30px;

  border: 1px solid white;

  border-radius: 30px;

  color: white;

  text-decoration: none;

  transition: 0.4s;
}

.form-btn:hover {
  background: white;
  color: #504946;
  opacity: 1; 
transform: translateY(-2px) scale(1.05);
}

.form-btn::after {
  display: none;
}

/*telボタン*/
.tel-btn {
  display: inline-block;

  margin-top: 15px;

  padding: 12px 30px;

  border: 1px solid white;

  border-radius: 30px;

  color: white;

  text-decoration: none;

  transition: 0.4s;
}

.tel-btn:hover {
  background: white;
  color: #504946;
}

.tel-area a {
  color: white;
  text-decoration: none;
}

.sp-only {
  display: none;
}

/* ==========================================
    footer
========================================== */
footer {
  padding: 30px 120px;
  margin-top: 120px;
  position: relative;
  border-top: none;

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

footer::before {
  content: "";

  position: absolute;
  top: 0;
  left: 50%;

  transform: translateX(-50%);

  width: 85%;   /* 好きな長さ */

  height: 1px;

  background: rgba(255,255,255,0.2);
}

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

  margin: 0;

  font-size: 20px;

  letter-spacing: 2px;
}

.footer-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;

  filter: brightness(0) invert(1);
}

.copyright {
  margin: 0;
  font-size: 14px;
  opacity: 0.7;
}

/* Instagramリンク */

.instagram-link {
  display:flex;
  align-items:center;
  gap:8px;

  color:white;

  text-decoration:none;

  transition:.3s;
}

.instagram-link img {
  width:28px;
  height:28px;

  filter:brightness(0) invert(1);
}

.instagram-link:hover {
  opacity:.7;
  transform:translateY(-2px);
}

.menu-instagram {
  margin-top:30px;

  color:#504946;

  font-size:20px;
}

/*ハンバーガーメニューのInstagram*/
.menu-instagram a::after {
  display:none;
}

.menu-instagram img {
  width:35px;
  height:35px;

  filter:brightness(0) invert(1);

  transition:.3s;
}

.menu-instagram img:hover {
  opacity:.7;
  transform:translateY(-3px);
}


/* お問合せ側Instagram */

.contact-instagram {
  margin-top:25px;

  width:max-content;

  font-size:22px;
}

.contact-instagram img {
  width:40px;
  height:40px;
}

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

  /* ヘッダー */
  header {
    padding: 10px 20px;
  }

  .header-menu nav,
  .contact-btn {
    display: none;
  }

  /* h2 */
  h2 {
    font-size: 28px;
    margin: 40px 20px 20px;
  }

  /* Hero */
  .hero-bg {
    background-size: auto 130%;
  }

  .hero-text p {
    font-size: 16px;
    letter-spacing: 5px;
  }

  .logo-image {
    width: 120px;
  }

  /*ハンバーガーメニュー*/
  .full-menu {
    width:100%;
    max-width:none;

    left:0;
    right:auto;

    transform:translateY(-100%);
  }

  .full-menu.active {
    transform:translateY(0);
  }

  /* Services */
.service-list{
    grid-template-columns:1fr;
}

.service-item{
    aspect-ratio:1 / 1;
}

.service-bottom{
    grid-template-columns:1fr;
}

.service-gallery{
    margin-top:16px;
}

.service-item h3{
    font-size:24px;
}

.other-item{
    padding-bottom:24px;
  }

.works-btn {
  grid-column: 1 / -1;
  justify-self: end;

  margin-top: 15px;

  color: white;
  text-decoration: none;

  font-size: 20px;

  transition: 0.3s ease;
}

.works-btn:hover {
  opacity: 0.7;
  transform: translateX(5px);
}


/*代表者挨拶*/

.greeting-content{
    padding:0 20px;
}


.greeting-text{
    padding:25px;
}


.greeting-text p{
    font-size:16px;
    line-height:1.9;
}


 /* About */
.about-list {
  padding: 0 20px;
  font-size: 16px;
}

.about-row {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.2);
}

.about-row p:first-child {
  margin-bottom: 6px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  letter-spacing: 1px;
}

.about-row p:last-child {
  font-size: 17px;
  font-weight: 500;
}

  /* Contact */
  .tel-area,
  .contact-area {
    margin-left: 20px;
    margin-right: 20px;
  }

  .tel-area p,
  .contact-area p {
    font-size: 16px;
  }

   .tel-area a {
    color: white;
    text-decoration: none;
  }

  .sp-only {
    display: block;
  }

  /* Footer */
  footer {
    padding: 30px 20px;
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

}