/* General Styles */
body {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: #333;
  background-color: #F6F1E7;
}

/* 基本のコンテナ設定 */
.container {
  width: 95%;
  max-width: 1400px;
  margin: 0 auto;
}

/* ヘッダー基本スタイル */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgb(255, 255, 255, 0.3);
}

.sticky-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 40px;
}

/* ロゴスタイル */
.logo {
  font-size: 1.5em;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

/* ナビゲーション */
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #000000;
  position: relative;
  padding: 5px 0;
}

/* ホバーエフェクト */
.nav-links a:hover {
  color: #eb5b07;  /* ホバー時のテキスト色を変更 */
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #000000;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease-in-out;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
  background: #eb5b07;  /* 下線の色を変更 */

}

/* 現在のページを示すアクティブ状態 */
.nav-links a.active::after {
  transform: scaleX(1);
}

/* タブレットサイズ */
@media (max-width: 1024px) and (min-width: 769px) {
  .sticky-header .container {
    padding: 1em 30px;
  }
}

/* モバイル対応 */
@media (max-width: 768px) {
  .container {
    width: 90%;
  }

  .sticky-header .container {
    padding: 1em 20px;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .logo {
    margin-bottom: 10px;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }
}

/*反転仕様*/
/* ベースとなる色の設定 */
.section3 {
  position: relative;
  z-index: 2;
  transition: background-color 3s ease, color 1.5s ease;  /* スムーズな切り替え */
}

/* section3のダークモード設定 */
.section3.dark-mode {
  background-color: #333;
  color: #F6F1E7;
}

.section3.dark-mode h2,
.section3.dark-mode h3,
.section3.dark-mode h5 {
  color: #F6F1E7;
}

.section3.dark-mode hr {
  border-color: #F6F1E7;
}

.section3.dark-mode .business-title {
  color: rgba(246, 241, 231, 0.7);
}

/* Header */
.sticky-header {
  position: sticky;
  top: 0;
  background-color: rgb(255, 255, 255,0.3);
  padding: 1em 0;
  border-bottom: none;
  z-index: 100;
}

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

.logo {
  font-size: 1.5em;
  font-weight: bold;
}

/*ハンバーガーメニュー*/
.navbar-toggler {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.navbar-toggler-icon {
  display: block;
  width: 30px;
  height: 2px;
  background-color: #333;
  position: relative;
  transition: background-color 0.3s;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #333;
  transition: transform 0.3s;
}

.navbar-toggler-icon::before {
  transform: translateY(-10px);
}

.navbar-toggler-icon::after {
  transform: translateY(10px);
}
/* ハンバーガーメニューのアクティブ状態 */
.navbar-toggler-icon.active {
  background-color: transparent;
}

.navbar-toggler-icon.active::before {
  transform: rotate(45deg);
}

.navbar-toggler-icon.active::after {
  transform: rotate(-45deg);
}

/* メニューの表示時のトランジション */
.nav-links {
  transition: all 0.3s ease-in-out;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-links.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  .navbar-toggler {
    display: block;
  }
}

/* Main Visual */
.main-visual {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  position: relative;
}

.image-container {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.img-frame {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin: 0 auto;
}

.img-01, .img-02, .img-03 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.img-01 {
  background-image: url('img/b_mehrfarbige-fischskulptur-leuchtet-in-hausgemachter-dekoration-die-von-ki-generiert-wird.jpg');
  animation: slide-animation-01 24s infinite;
}

.img-02 {
  background-image: url('img/alex-jones-Tq4YjCa2BSc-unsplash.jpg');
  animation: slide-animation-02 24s infinite;
}

.img-03 {
  background-image: url('img/1712.jpg');
  animation: slide-animation-03 24s infinite;
}

@keyframes slide-animation-01 {
  0% {opacity: 1; transform: scale(1.0);}
  30% {opacity: 1;}
  40% {opacity: 0; transform: scale(1.15);}
  90% {opacity: 0}
  100% {opacity: 1; transform: scale(1.0);}
}

@keyframes slide-animation-02 {
  0% {opacity: 0;}
  30% {opacity: 0; transform: scale(1.1);}
  40% {opacity: 1;}
  60% {opacity: 1;}
  70% {opacity: 0; transform: scale(1.0);}
  100% {opacity: 0;}
}

@keyframes slide-animation-03 {
  0% {opacity: 0;}
  60% {opacity: 0; transform: scale(1.0);}
  70% {opacity: 1;}
  90% {opacity: 1;}
  100% {opacity: 0; transform: scale(1.1);}
}


@media screen and (max-width: 767px){
  .img-frame {
    height: 70vh;
  }
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: clamp(0.8rem, 2vw, 1.5rem);
  text-align: center;
  width: 90%;
  line-height: 1.6;
  font-weight: 500;
}

.border-container {
  position: relative;
  display: inline-block;
  padding: 1.2rem 1.8rem;
  transition: all 0.5s ease;
  margin-bottom: 2rem; /* サブテキストのためのスペース確保 */
}

.border-container.inverted {
  background-color: rgba(255, 255, 255, 1);
}

.border-container.inverted .text-content {
  color: #2e2e2e;
}

.border-line {
  position: absolute;
  background: white;
  opacity: 0;
}

.border-top, .border-bottom {
  height: 2px;
  width: 0;
}

.border-right, .border-left {
  width: 2px;
  height: 0;
}

.border-top { top: 0; left: 0; }
.border-right { top: 0; right: 0; }
.border-bottom { bottom: 0; right: 0; }
.border-left { bottom: 0; left: 0; }

.show-border .border-line {
  opacity: 1;
}

.show-border .border-top {
  width: 100%;
  transition: width 0.2s ease;
}

.show-border .border-right {
  height: 100%;
  transition: height 0.2s ease 0.2s;
}

.show-border .border-bottom {
  width: 100%;
  transition: width 0.2s ease 0.4s;
}

.show-border .border-left {
  height: 100%;
  transition: height 0.2s ease 0.6s;
}

.txt-rotate {
  display: inline-block;
}

.txt-rotate > .wrap {
  border-right: 0.05em solid  rgba(255, 255, 255, 0.75);
}

.sub-text {
  display: block;
  font-size: 0.9em;
  margin-top: 4rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
  color: white;
  position: absolute;
  width: 100%;
  left: 0;
  bottom: -1rem;
}

.sub-text.show {
  opacity: 1;
  transform: translateY(0);
}

.main-text {
  display: block;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .overlay-text {
    font-size: clamp(1rem, 4vw, 1.5rem);
    width: 95%;
  }
  .border-container {
    padding: 0.9rem 1.2rem;
  }
  .sub-text {
    font-size: 0.6em;
    bottom: -2.5rem;
  }
}

.main-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
/* テキストアニメーション終了後に暗くする */
.main-visual.dark-overlay::before {
  opacity: 1;
}

/* About */
.section2 {
  padding: 0 20px;  /* コンテンツの左右に余白を追加 */
}

.section2 .container {
  max-width: 1400px;
  margin: 0 auto;
}

.section2 h2 {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 0px;
}

.section2 h5 {
  text-align: center;
  margin-bottom: 30px;
  margin-top: 0;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
}

.text-wrapper {
  width: 100%;
  max-width: 800px;  /* テキストの最大幅を設定 */
}

.about-image {
  max-width: 100%;
  height: auto;
  margin-top: 30px;
  margin-bottom: 30px;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;  /* 画像下部の余白を削除 */
}

.center-text {
  text-align: center;
  line-height: 1.8;  /* 行間を調整 */
  margin: 0.5em 0;  /* 段落間の余白を設定 */
}

/*マーカー*/
.marker {
  display: inline;
  background: linear-gradient(transparent 60%, transparent 60%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: 0 0;
  font-weight: bold;
  padding: 0 2px;
  position: relative;
  z-index: 0;
}

.marker::before {
  content: "";
  width: 0;
  height: 25px;
  display: block;
  background: linear-gradient(transparent 60%, rgb(222, 156, 138) 10%);
  position: absolute;
  top: -7px;
  left: 0;
  z-index: -1;
}
/* マーカーアニメーションは親要素がvisible時のみ実行 */
.fade-in-text.visible .marker::before {
  animation: underAnime 1s forwards ease-out;
}
/* fade-in-textがvisibleクラスを持つ時のmarkerのスタイル */
.fade-in-text.visible .marker {
  opacity: 1;
}
.fade-in-text.visible {
  opacity: 1;
  transform: translateX(0);
}

/* マーカー内のテキストは常に表示 */
.fade-in-text .marker {
  opacity: 1;
}
/* 追加：テキストのフェードイン用キーフレーム */
@keyframes underAnime {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.break-point {
  display: block;
  width: 100%;
  text-align: center;  /* center-textクラスと同様の中央揃えを維持 */
}

@media (max-width: 768px) {
  .break-point {
    display: inline;
    width: auto;
  }
}

.fade-in-text {
  opacity: 0;
  transform: translateX(0px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.fade-in-text.visible {
  opacity: 1;
  transform: translateX(0);
}
/* レスポンシブ対応 */
@media (max-width: 768px) {
  .section2 {
    padding: 0 15px;
  }
  .center-text {
    font-size: 0.9em;  /* モバイルでは文字サイズを少し小さく */
  }
  .about-image {
    margin: 5px 0;  /* モバイルでは余白を少し狭く */
  }
}
/* Learn more部分 */
.learn-more-button {
  display: block;
  width: fit-content;
  margin: 30px auto;
  text-decoration: none;
}
.button-content {
  position: relative;
  display: flex;
  align-items: center;
  width: auto; /* 追加：コンテンツの幅に合わせる */
}
.circle-icon {
  width: 80px;
  height: 80px;
}
.learn-text {
  position: absolute;
  left: 100px; /* 円の中心から開始するように調整 */
  color: #000;
  transition: all 0.3s;
  transform: translateX(-50%); /* 要素の幅の半分だけ左に戻す */
  white-space: nowrap; /* 追加：改行を防ぐ */
  font-size: 26px;  /* フォントサイズを追加 */
}
.circle {
  fill: transparent;
  stroke: #000;
  stroke-width: 0.3;
  transition: all 0.3s;
}
.section2 .learn-more-wrapper {    
    position: relative;
    bottom: 140px;
    margin: 0 auto; 
    width: fit-content; /* コンテンツの幅に合わせる */
    text-align: center; /* テキストを中央揃え */
    margin-top: 150px;
  }
/* ホバー時の効果 */
.learn-more-button:hover .circle {
  fill: #eb5b07;
  stroke: none;
  opacity: 0.2;
}
.learn-more-button:hover .learn-text {
  color: #eb5b07;
  text-decoration: underline;
  left: 120px;
}
/* Service */
.section3 {
  color: #F6F1E7;
  padding-top: 45px;
  padding-bottom: 120px;
  margin-bottom: 0;
}
.section3 .learn-more-wrapper2 {
  position: relative;
  bottom: 90px;
  width: auto;
  float: left;
  margin-left: 0; /* 8.33%から0に変更 */
}
.section3 .learn-more-button {
  display: block;
  width: fit-content;
  text-decoration: none;
}
.section3 .button-content {
  position: relative;
  display: flex;
  align-items: center;
  width: auto;
}
.section3 .circle-icon {
  width: 80px;
  height: 80px;
}
.section3 .learn-text {
  position: absolute;
  left: 100px;
  color: #F6F1E7;
  transition: all 0.3s;
  white-space: nowrap;
  font-size: 26px;
}
.section3 .circle {
  fill: transparent;
  stroke: #F6F1E7;
  stroke-width: 0.3;
  transition: all 0.3s;
}

/* Hover effects */
.section3 .learn-more-button:hover .learn-text {
  left: 120px
}
.section3 .learn-more-button:hover .circle {
  stroke-width: 1;
}

[以下の既存のコードはそのまま維持]
.section3 {
  padding-top: 45px;
  padding-bottom: 120px;
  margin-bottom: 0;
}

.section3 .container {
  max-width: 1400px;
  width: 90%;
  margin: 0 auto;
}

.section3 .row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 90px;
}

.section3 .row:last-child {
  margin-bottom: 0;
}

.section3 .col {
  width: 46%;
  overflow: hidden;
}

.section3 .col img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover; /* containからcoverに変更 */
  border-radius: 5px; /* 画像自体に角丸を適用 */
}

.section3 img {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: block; /* 追加：インライン要素の余白を除去 */
  width: 100%; /* 追加：親要素に合わせる */
  height: auto; /* 追加：アスペクト比を維持 */
}

.section3 h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-top: 50px;
  margin-bottom: 0px;
  line-height: 1.3;
}

.section3 h5 {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 60px;
}

.section3 hr {
  border: solid 2px #000000;
  margin-bottom: 40px;
  width: 60px;
  margin-left: 0;
}

.section3 .text {
  line-height: 1.3;
}

.section3 .text b {
  display: block;
  margin-top: 30px;
  margin-bottom: 15px;
}

/* リスト項目の調整 */
.section3 .text span:not(:first-child) {
  display: block;
  margin-bottom: 8px;
}

 @media (max-width: 768px) {
    .section3 .col img {
      max-height: 400px;
      width: 100%;
      margin-bottom: 20px;
    }
  .section3 .container {
    width: 95%;
  }
  .section3 .row {
    flex-direction: column;
    margin-bottom: 60px;
  }
  .section3 .col {
    width: 100%;
    margin-bottom: 30px;
  }
  .section3 .col:nth-child(2) {
    order: -1;
  }
  .section3 .col img {
    margin-bottom: 20px;
    max-height: 400px;
  }
  .section3 h2 {
    font-size: 24px;
  }
  .section3 h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
  }
  .section3 h5 {
    margin-bottom: 30px;
  }
  .section3 hr {
    margin: 20px 0;
  }
  .section3 .text {
    font-size: 0.9em;
    line-height: 1.5;
  }
  .section3 .text br {
    display: none;
  }
  .section3 .text b {
    margin-top: 25px;
    margin-bottom: 12px;
  }
  .section3 img {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15); /* モバイル向けにシャドウを少し軽く */
  }
    /* 必要な改行のみ維持 */
    .section3 .text br:not(.keep) {
      display: none;
    }
}

/* アニメーション関連のスタイルは維持 */
.fade-in-content {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in-content.visible {
  opacity: 1;
  transform: translateX(0);
}

.text-block {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.text-block.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Works */
.section4 {
  padding-top: 45px;
  margin-bottom: 60px;
}
.section4 .container {
  max-width: 1400px;
  width: 95%;
  margin: 0 auto;
}
.section4 h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-top: 50px;
  margin-bottom: 0px;
  line-height: 1.3;
}

.section4 h5 {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 60px;
}

.section4 .text {
  line-height: 1.3;
}

.section4 .text .fade-in-text {
  display: block;
  margin-bottom: 8px;
  opacity: 0;
  transform: translateX(0px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.section4 .text .fade-in-text.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-text {
  opacity: 0;
  transform: translateX(0px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in-text.visible {
  opacity: 1;
  transform: translateX(0);
}

.works-grid {
  max-width: 1400px;
  width: 95%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  justify-content: center;
}

.work-item {
  display: flex;
  flex-direction: column;
  margin: 10px;
  align-items: center;
}

.work-item .row {
  position: relative;
  width: 260px;
  height: 173px;
}

.work-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  transition: opacity 0.3s ease;
}

/* 2枚目の画像 */
.work-item .second-img {
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* 3枚目の画像 */
.work-item .third-img {
  opacity: 0;
  transition: opacity 0.3s ease 0.3s;
  z-index: 2;
}

.work-item .row:hover .first-img {
  opacity: 0;
}

.work-item .row:hover .second-img {
  opacity: 1;
}

.work-item .row:hover .third-img {
  opacity: 1;
}

/* タブレットサイズ */
@media (max-width: 1024px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* スマートフォンサイズ */
@media (max-width: 640px) {
  .works-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact */
.section5 .container {
  max-width: 1400px;
  width: 95%;
  margin: 0 auto;
}
.section5 h2 {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 5px; 
}

.section5 .contact-description {
  text-align: center;
  margin-bottom: 60px;  /* フォームとの間隔はそのまま */
  margin-top: 0;  /* 上部の余白を削除 */
}

/* フォーム全体を中央に配置 */
.section5 form {
  width: 80%; /* コンテナの80%の幅を使用 */
  max-width: 800px; /* 大きすぎる画面での最大幅を制限 */
  margin: 0 auto; /* 左右のマージンを自動で調整し、中央に配置 */
}

/* ラベルと入力要素のスタイリング */
.section5 form label {
  margin-bottom: 5px; 
}
.section5 form input,
.section5 form textarea {
  display: block; /* 各要素をブロック要素として扱い、改行させる */
  width: 100%; /* フォーム全体の幅に合わせる */
  margin-bottom: 10px; /* 各要素間の余白 */
  box-sizing: border-box; /* padding や border を width に含める */
}

/* 入力フィールドの余白調整 */
.section5 form input,
.section5 form textarea {
  padding: 10px; /* 入力フィールド内の余白 */
}

/* 送信ボタンのスタイリング */
.section5 form button {
  display: block;
  margin: 20px auto; /* 上下の余白を増やし、左右を自動で中央配置 */
  padding: 5px 60px; /* ボタン内の余白 */
  margin-top: 40px;
  margin-bottom: 40px;
  border: none;
}
button[type="submit"] {
  background-color: black; /* デフォルトの背景色を黒に設定 */
  color: rgb(255, 255, 255); /* 文字色を白に設定 */
  border: 1px solid #000;
}

button[type="submit"]:hover {
  background-color: rgb(255, 255, 255);
  transition-duration: 1s;
  color: #eb5b07;
  border: 0.5px solid #eb5b07;
}
/* モーダル用スタイル */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  margin: auto;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  max-width: 90%;
  width: 400px;
}

.modal.show .modal-content {
  transform: translateY(0);
}

.modal-icon {
  width: 60px;
  height: 60px;
  background: #4CAF50;
  border-radius: 50%;
  color: white;
  font-size: 2rem;
  line-height: 60px;
  margin: 0 auto 1rem;
}

.modal h3 {
  margin: 0 0 1rem;
  color: #333;
}

.modal p {
  margin: 0 0 1.5rem;
  color: #666;
  line-height: 1.6;
}

.modal-close {
  padding: 0.5rem 2rem;
  background: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-close:hover {
  background: #555;
}

/* 送信中のローディングアニメーション */
.loading-dots::after {
  content: '...';
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40%, 60% { content: '..'; }
  80%, 100% { content: '...'; }
}

/* Footer */

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-title {
  font-size: 36px;
  font-weight: 300;
  margin-bottom: 10px;
  text-align: left;
}

footer {
  background: #333;
  color: #fff;
  padding: 1em 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
}
.footer-mail {
  color: #fff;
  font-size: 1.2em; 
  margin: 8px 0; /* 上下の余白 */
  text-align: left;
}

footer .nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1em;
  margin: 1em 0;
  margin-bottom: 30px;
}

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

.footer-logo{
  color: #ffffff; 
  text-decoration: none; 
}

.site-footer {
  background-color: #333;
  color: #fff;
  padding: 60px 0;
  font-family: 'Cormorant Garamond', serif;
}

.footer-container {
  max-width: 1400px; 
  width: 95%;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-title {
  font-size: 36px;
  font-weight: 300;
  margin-bottom: 10px;
  text-align: left;
}

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

.footer-nav-links {
  display: flex;
  gap: 15px;
  align-items: center;
}

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

.separator {
  color: rgba(255, 255, 255, 0.3);
}

.footer-info {
  display: flex;
  align-items: center;
  gap: 30px;
}

.copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon img {
  width: 20px;
  height: 20px;
}

.social-icon img {
  width: 24px;
  height: 24px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.social-icon:hover img {
  opacity: 1;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 40px 0;  /* モバイル時はパディングを少し縮小 */
  }

  .footer-nav {
    flex-direction: column;
    gap: 30px;  /* 要素間の間隔を確保 */
  }

  .footer-nav-links {
    flex-direction: column;
    gap: 20px;
    width: 100%;
    text-align: center;
  }

  .separator {
    display: none;  /* モバイル時はセパレーターを非表示 */
  }

  .footer-info {
    flex-direction: column;
    width: 100%;
    text-align: center;
  }

  .footer-title {
    text-align: center;  /* モバイル時はタイトルを中央寄せ */
    font-size: 30px;    /* フォントサイズを少し小さく */
  }
  .footer-mail {
    text-align: center; /* モバイル表示時は中央揃え */
    width: 100%; /* 幅を100%に設定して確実に中央に配置 */
  }
}


/* タブレット対応が必要な場合 */
@media (max-width: 1024px) and (min-width: 769px) {
  .footer-container {
    width: 90%;
  }
}

/* 画像効果 */
.section3 img {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}

.logo {
  text-decoration: none; /* 下線を消す */
  color: #333; /* 文字の色を黒色に設定 */
}

/*ボタン仕様*/
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  cursor: pointer;
}

.popup-content {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
  max-width: 90%;
  max-height: 90vh;
}

.popup-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.close-button {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/*カーソル追従*/
.cursor-follower {
  width: 8px;
  height: 8px;
  background: #eb5b07;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  opacity: 0.7;
  top: 0;
  left: 0;
  z-index: 9999;
  will-change: transform;  /* パフォーマンス最適化 */
}

.cursor-follower::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  border: 1px solid #eb5b07;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.5;
  pointer-events: none;
}
.email-icon {
  width: 30px; /* 画像の幅 */
  height: 30px; /* 画像の高さ */
  margin-top: 0px;
}

.contact-info {
  margin-bottom: 60px;
  line-height: 1.8;
}
.contact-info p {
  margin: 5px 0;
  font-size: 14px;
}

/* 画像効果 */
.zoom-effect {
  display: block;
  width: 100%; /* 必要に応じて調整 */
  max-width: 500px; /* 必要に応じて調整 */
  transition: transform 0.5s ease; /* スムーズなアニメーション */
}

.zoom-effect:hover {
  transform: scale(1.); /* ズーム倍率（1.1倍） */
}

/* スプラッシュスクリーン基本設定 */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #F6F1E7;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* ローディングアニメーション */
.loading-wrapper {
  position: relative;
  width: 100px;  /* 幅を広げて中央配置を調整 */
  height: 50px;
  transition: opacity 0.5s ease-out;
  margin: 0 auto;  /* 水平方向の中央揃え */
}

.loading-dot {
  width: 50px;
  height: 50px;
  position: absolute;
  background: #eb5b07;
  border-radius: 50%;
  opacity: 0.2;
  animation: pulse 2.4s ease-out infinite;
}

.loading-dot:nth-child(1) {
  left: 0;  /* 左のドット */
  animation-delay: 0s;
}
.loading-dot:nth-child(2) {
  left: 25px;  /* 中央のドット */
  animation-delay: 0.4s;
}
.loading-dot:nth-child(3) {
  left: 50px;  /* 右のドット */
  animation-delay: 0.8s;
}
.loading-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;  /* 幅を指定 */
  max-width: 300px;  /* 最大幅を制限 */
}

/* ロゴアニメーション */
.splash-logo {
  color: rgb(0, 0, 0);
  font-size: 2.5rem;
  font-weight: bold;
  opacity: 0;
  display: flex;
  justify-content: center;
  transition: opacity 0.5s ease-out;
  position: relative; /* 位置調整のため追加 */
  width: 100%; /* 幅を確保 */
}

.splash-logo span {
  opacity: 0;
  transform: translateX(-20px);
}

.splash-logo.show {
  opacity: 1;
}

.splash-logo.show span {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.5s ease-out;
}

/* 各文字の遅延を設定 */
/* CSSファイル内のロゴアニメーション遅延時間を調整 */
.splash-logo.show span:nth-child(1) { transition-delay: 0.0s; }
.splash-logo.show span:nth-child(2) { transition-delay: 0.1s; }
.splash-logo.show span:nth-child(3) { transition-delay: 0.2s; }
.splash-logo.show span:nth-child(4) { transition-delay: 0.3s; }
.splash-logo.show span:nth-child(5) { transition-delay: 0.4s; }

/* メインコンテンツの表示制御 */
body > *:not(.splash-screen) {
  opacity: 0;
  transition: opacity 0.5s ease-in;
}

body.content-visible > *:not(.splash-screen) {
  opacity: 1;
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

@keyframes pulse {
  0% {
      transform: scale(0.1);
      opacity: 0;
  }
  50% {
      opacity: 1;
  }
  100% {
      transform: scale(1.2);
      opacity: 0;
  }
}