/* ==========================================
   共通設定（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 {
  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{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
    margin-top:0;
    padding:0 5%;
}

.service-item{
    background:#fff;
    border-radius:16px;
    padding:32px;
    min-height:180px;
    transition:.3s;
}

.service-item:hover{
    transform:translateY(-6px);
    box-shadow:0 15px 30px rgba(0,0,0,.12);
}

.service-item h3{
    color:#333;
    font-size:28px;
    font-weight:500;
    margin-bottom:24px;
    position:relative;
    padding-bottom:12px;
}
.service-item h3::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:50px;
    height:2px;
    background:#8c7b75;
}

.service-item p{
    line-height:2;
    color:#555;
}

/* ==========================================
   WORKS
========================================== */
.works-list {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;

  max-width: 1000px;
  margin: 40px auto 0;
  padding: 0 5%;
}

.work-item{
    aspect-ratio:1/1;
    overflow:hidden;
    border-radius:16px;
}

.work-item p {
  margin-top: 10px;

  font-size: 18px;
}

.large{
    grid-row: span 2;
    aspect-ratio: auto;
}

.work-item img {
  width: 100%;
  height: 100%;

  aspect-ratio: 1 / 1;

  object-fit: cover;

  display: block;
}

/* ==========================================
    WORKS-view moreボタン
========================================== */
/*view moreボタン*/
.view-more {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;

  background-color: #bc8a57;
  border-radius: 0 0 50px 0;

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

  color: white;
  text-decoration: none;
  letter-spacing: 2px;

  transition: 0.4s ease;
}

.view-more a {
  position: relative;
  z-index: 1;
  color: white;
  text-decoration: none;
  letter-spacing: 2px;
  transition: 0.4s ease;
}

.view-more:hover {
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
  transform: scale(1.05);
}

.view-more:hover::before {
  left: 120%;
}

.view-more:hover a {
  letter-spacing: 3px;
  transform: translateY(-2px);
}

.view-more:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.view-more::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;

  background: rgba(255,255,255,0.18);
  transform: skewX(-20deg);

  transition: 0.4s ease;
}

.work-item.show,
.view-more.show {
  opacity: 1;

  transform: translateY(0);
}

/* ==========================================
    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;
}


/* ==========================================
    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;
}

/* ==========================================
   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-text p {
    font-size: 16px;
    letter-spacing: 5px;
  }

  .logo-image {
    width: 120px;
  }

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

  .service-item {
    height: auto;
  }

  /* Works */
  .works-list {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }

  .large {
    grid-row: auto;
  }

 /* 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;
  }

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

}