/* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 共通 */
html {
  scroll-padding-top: 80px;
  /* ヘッダーの高さ分だけスクロール位置をずらす */
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  color: #5c5c5c;
  background-color: #ffffff;
  line-height: 1.8;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 40px;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 24px;
  letter-spacing: 0.1em;
  color: #74635B;
}

.section-title p {
  font-size: 12px;
  margin-top: 8px;
}

/* ヘッダー */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: 100;
}

.header-inner {
  max-width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 48px;
  width: auto;
}

nav ul {
  display: flex;
  gap: 40px;
}
header nav {
  display: flex;
}

nav ul li a {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: #5c5c5c;
}

nav ul li a:hover {
  color: #74635B;
}

/* ヒーロー */
.hero {
  height: 100vh;
  background-image: url(../img/Hero.png);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  position: absolute;
  bottom: 15%;
  left: 8%;
  width: 500px;
}

.hero-logo {
  height: auto;
  width: 60%;
  margin-bottom: 32px;
  display: block;
}

.hero-text {
  padding-left: 20px;
  display: block;
}

.hero-text h1 {
  font-size: 32px;
  font-weight: normal;
  letter-spacing: 0.05em;
  color: #5c5c5c;
  margin-bottom: 16px;
}

.hero-text p {
  font-size: 15px;
  line-height: 2;
  color: #5c5c5c;
}

/* WORKS */
.works {
  padding: 80px 0;
  background-color: #fff;
  text-align: center;
}

.works h2 {
  font-size: 28px;
  letter-spacing: 0.1em;
  color: #5c5c5c;
}

.works-title p {
  font-size: 14px;
  margin-top: 8px;
  color: #8c8c8c;
  margin-bottom: 48px;
}

.works-list {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  width: 100%;
  padding: 20px 4%;
  margin: 0 auto;
  scrollbar-width: none;
}

.works-list::-webkit-scrollbar {
  display: none;
}

.works-item {
  flex: 0 0 600px;
  background-color: #FAF8F6;
  border-radius: 12px;
  padding: 20px;

  position: relative;
  overflow: hidden;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;

  /* クリックできることをユーザーに伝えるためカーソルを指マークにする */
  cursor: pointer;
}

.works-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(116, 99, 91, 0.15);
}

.works-img-box {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 8px;
}

.works-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 4. マスクの中の文字のデザイン */

.works-mask .mask-title {
  color: #74635B;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.works-mask .mask-text {
  color: #888;
  font-size: 13px;
}

.works-btn {
  margin-top: 48px;
}

.works-btn a {
  display: inline-block;
  padding: 16px 64px;
  border: 1px solid #5c5c5c;
  border-radius: 9999px;
  background-color: transparent;
  color: #5c5c5c;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-decoration: none;
}

/* SERVICE */
.service {
  background-color: #F7EFE7;
}

.service-list {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.service-item {
  padding: 40px 32px;
  width: calc(100% / 3 - 16px);
  text-align: center;
}

.service-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  /* アイコンを中央に配置し、下にスペースを空ける */
  stroke-width: 0.8;
}
.service-icon [data-lucide] {
  width: 28px;
  height: 28px;
  color: #74635B;
  stroke-width: 1.6;
}

.service-icon i {
  font-size: 28px;
  color: #74635B;
}

.service-item h3 {
  font-size: 16px;
  font-weight: normal;
  letter-spacing: 0.05em;
  color: #74635b;
  margin-bottom: 16px;
}

.service-item p {
  font-size: 13px;
  line-height: 2;
  color: #888888
}

/* FLOW */
.flow {
  background-color: #fff;
}

.flow-list {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}

.flow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 120px;
  position: relative;
}

.flow-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 24px;
  left: calc(50% + 28px);
  width: calc(100% - 16px);
  height: 1px;
  background-image: repeating-linear-gradient(to right,
      #C8B89A 0px,
      #C8B89A 4px,
      transparent 4px,
      transparent 8px);
}

.flow-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #F5EDE8;
  color: #74635B;
  font-size: 14px;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.flow-item p {
  font-size: 13px;
  color: #888;
}

.flow-number i {
  font-size: 20px;
}

.flow-label {
  font-size: 11px;
  color: #C8B89A;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* CONTACT */
.contact {
  background-color: #F7EFE7;
}

.contact .section-inner {
  display: flex;
  align-items: center;
  gap: 80px;
}

.contact-text {
  flex: 1;
}

.contact-text .section-title {
  text-align: left;
  margin-bottom: 24px;
}

.contact-text p {
  font-size: 14px;
  line-height: 2;
  color: #888;
  margin-bottom: 32px;
}

.contact-image {
  flex: 1;
}

.contact-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

.btn {
  display: inline-block;
  padding: 16px 48px;
  border: 1px solid #74635B;
  border-radius: 40px;
  color: #74635B;
  font-size: 13px;
  letter-spacing: 0.1em;
}

.btn:hover {
  background-color: #74635B;
  color: #fff;
}

/* フッター */
footer {
  background-color: #74635B;
  padding: 40px 60px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

footer nav ul {
  display: flex;
  gap: 32px;
  margin: 0 auto;
}

footer nav ul li a {
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.1em;
}

footer nav ul li a:hover {
  opacity: 0.7;
}

footer p {
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.footer-nav-row {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
}
.footer-nav-row nav {
  flex: 1;  /* ナビゲーションを左寄せにするために幅を取る */
  display: flex;
  justify-content: center;  /* ナビゲーションを中央揃えにする */

}

/* SNSアイコン */
.sns-icon {
  position: absolute;
  right: 0;
  color: #fff;
  font-size: 20px;
  transition: opacity 0.2s ease;
}
.sns-icon:hover {
  opacity: 0.7;
}

/* ------------------------------------------
   モーダルの背景（オーバーレイ）
   画面全体を薄暗く覆うレイヤー
   ------------------------------------------ */
.modal-overlay {
  /* 画面の左上を起点にして画面全体を覆う */
  position: fixed;
  /* スクロールしても動かない固定配置 */
  inset: 0;
  /* top/right/bottom/left を全部 0 に。画面全体を覆う省略記法 */

  /* 背景を半透明の黒にする */
  background-color: rgba(0, 0, 0, 0.75);

  /* 中身（画像・テキスト）を縦横中央に並べる */
  display: flex;
  align-items: center;
  justify-content: center;

  /* ヘッダー（z-index:100）より上に重ねる */
  z-index: 200;

  /* フェードインのアニメーション設定 */
  opacity: 0;
  /* 最初は透明（見えない） */
  visibility: hidden;
  /* 透明でもクリックできないように完全に隠す */
  transition: opacity 0.3s ease, visibility 0.3s ease;
  /* 0.3秒かけてふわっと表示 */

  /* 余白設定 */
  padding: 40px 20px;
}

/* "is-open" クラスが付いたとき（JavaScriptが付け外しします）→ 表示状態にする */
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* ------------------------------------------
   モーダルのコンテンツ本体（白いカード部分）
   ------------------------------------------ */
.modal-content {
  background-color: #FAF8F6;
  /* サイトの雰囲気に合わせたクリーム色 */
  border-radius: 12px;
  overflow: hidden;
  /* 角丸の外にはみ出ないようにする */

  /* 最大幅を設定。大きな画面でも広がりすぎない */
  max-width: 700px;
  width: 100%;

  /* 縦に長くなりすぎたらスクロールできるようにする */
  max-height: 90vh;
  /* vh = 画面の高さ。90vh = 画面の90%まで */
  overflow-y: auto;

  /* モーダルが開くときに少し上からスライドして出てくるアニメーション */
  transform: translateY(20px);
  /* 最初は20px下にずらした位置にある */
  transition: transform 0.3s ease;

  display: flex;
  flex-direction: column;
}

/* "is-open" のときはずれを0に戻す → スライドして正位置に来る */
.modal-overlay.is-open .modal-content {
  transform: translateY(0);
}

/* ------------------------------------------
   モーダル内の画像
   ------------------------------------------ */
.modal-img {
  width: 100%;
  display: block;
  max-height: 65vh;
  /* 画面の高さの65%まで */
  object-fit: contain;
  /* 画像のアスペクト比を保ちながら、可能な限り大きく表示 */
  background-color: #f0ebe7;
  /* 画像の背景色（白っぽいグレー） */
}

/* ------------------------------------------
   モーダル内のテキストエリア（タイトル・説明文）
   ------------------------------------------ */
.modal-text-area {
  padding: 24px 32px;
}

.modal-title {
  font-size: 18px;
  font-weight: bold;
  color: #74635B;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 13px;
  color: #888;
  line-height: 1.8;
}

/* ------------------------------------------
   × 閉じるボタン
   ------------------------------------------ */
.modal-close {
  /* 画面の右上に固定する */
  position: fixed;
  top: 20px;
  right: 24px;

  /* ボタンのデザイン */
  width: 40px;
  height: 40px;
  border-radius: 50%;
  /* 丸くする */
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  /* ブラウザのデフォルトの枠線を消す */
  font-size: 20px;
  color: #5c5c5c;

  /* ボタン内の × を中央揃えにする */
  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  /* 指マークに */
  z-index: 210;
  /* モーダルより手前に */

  transition: background-color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
  background-color: #74635B;
  color: #fff;
  transform: rotate(90deg);
  /* ホバーで少し回転するおしゃれなエフェクト */
}

/* ==========================================
   レスポンシブ対応
   画面幅が768px以下（スマホ・小さいタブレット）
   のときだけ以下のスタイルが適用される
   ========================================== */
@media (max-width: 768px) {

  /* 共通 */
  .section-inner {
    padding: 60px 20px;
    /* 余白を少し減らす */
  }

  /* ヘッダー */
  .header-inner {
    padding: 0 20px;
    /* ヘッダーの左右の余白を減らす */
  }

  nav ul {
    gap: 16px;
    /* ナビゲーションの間隔を狭くする */
  }

  nav ul li a {
    font-size: 11px;
    /* ナビゲーションの文字を小さくする */
  }

  /* ヒーロー */
  .hero {
    height: 100vh;
    /* ヒーローの高さを画面全体にする */
    height: 100svh;
    /* 100vhの代わりに100svhを使うと、モバイルブラウザのUIを考慮して正確に画面全体の高さを取れる */
    background-image: url(../img/Hero_sp.png);
    /* ヒーローの背景画像をスマホ用に切り替える　*/
    background-position: right center;
    /* ヒーローの背景画像の位置を右寄せにする（スマホで見切れないように） */
  }

  /* テキストエリアの後ろに白いグラデーションをかける */
  /* ::before は「この要素の前に透明なレイヤーを1枚追加して」という意味 */
  .hero-inner::before {
    content: "";
    /* 擬似要素を表示するための必須プロパティ */
    position: absolute;
    inset: -40px -60px;
    /* テキストエリアより少し大きめにして余白を覆う */
    background: linear-gradient(to right, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
    /* 左から右に向かって、完全な白から透明になるグラデーション */
    z-index: -1;
    /* テキストの後ろに配置するために負の値を指定 */
    border-radius: 8px;
  }

  .hero-inner {
    width: 90%;
    /* ヒーローのテキストエリアを画面幅に合わせて広げる */
    left: 2%;
    bottom: 7%;
  }

  .hero-text h1 {
    font-size: 22px;
    /* ヒーローのタイトルを小さくする */
  }

  .hero-text p {
    font-size: 13px;
    /* ヒーローの説明文を小さくする */
  }

  /* WORKS */
  .works-item {
    flex: 0 0 85vw;
    /* スマホでは横幅を画面の85%にする */
  }

  /* SERVICE */
  .service-list {
    flex-direction: column;
    /* サービスの項目を縦に並べる */
    gap: 24px;
    /* 項目間のスペースを保つ */
  }

  .service-item {
    background-color: #FAF8F6;
    border-radius: 12px;
    padding: 40px 32px;
    width: 100%;
    text-align: center;
  }

  .service-item h3 {
    font-size: 16px;
    font-weight: normal;
    letter-spacing: 0.05em;
    color: #74635b;
    margin-bottom: 16px;
  }

  .service-item p {
    font-size: 13px;
    line-height: 1.8;
    color: #888888;
  }

  /* FLOW */
  .flow-list {
    flex-direction: column;
    /* フローの項目を縦に並べる */
    align-items: center;
    /* 項目を中央揃えにする */
    gap: 23px;
    /* 項目間のスペースを保つ */
  }

  .flow-item:not(:last-child)::after {
    display: none;
    /* 縦並びのときは矢印線を消す */
  }

  /* CONTACT */
  .contact .section-inner {
    flex-direction: column;
    /* テキストと画像を縦に並べる */
    gap: 40px;
    /* テキストと画像の間にスペースを保つ */
  }

  .contact-text .section-title {
    text-align: center;
    /* タイトルを中央揃えにする */
  }

  .contact-image img {
    height: 240px;
  }

  /* フッター */
  footer {
    padding: 40px 20px;
    /* フッターの余白を減らす */
  }

  footer nav ul {
    flex-wrap: wrap;
    /* ナビゲーションを複数行にする */
    gap: 16px;
    /* ナビゲーションの間隔を狭くする */
    justify-content: center;
    /* ナビゲーションを中央揃えにする */
  }
}

.works-btn {
  display: none;
}

/* ハンバーガーメニュー(PCでは隠す) */
.hamburger{
  display: none; /* PCでは非表示 */
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110; /* ヘッダーより前に表示 */
}
/* ハンバーガーメニューの線 */
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: #5c5c5c;
  transition: transform 0.3s ease, opacity 0.3s ease; /* アニメーションの設定 */
}
/* is-openのとき、三本線を×に変える */
.hamburger.is-open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
/* 1本目：下にずらして右斜めに */
.hamburger.is-open span:nth-child(2) {
  opacity: 0; /* 2本目：消す */
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}
/* スマホの時だけ表示、ナビを隠す */
@media (max-width: 768px) {
  .hamburger {
    display: flex; /* スマホで表示 */
  }
/* スマホのナビメニュー */
header nav {
  position: fixed; /* 画面全体に固定 */
  top: 0; /* 上から0 */
  right: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.95);
  display: none; /* 最初は非表示 */
  align-items: center; /* ナビを中央に配置 */
  justify-content: center;
  z-index: 105; /* ハンバーガーより前に表示 */
}
/* is-openクラスが付いたら表示 */
header nav.is-open {
  display: flex;
}
header nav ul {
  flex-direction: column; /* ナビの項目を縦に並べる */
  gap: 40px; /* 項目間のスペース */
  text-align: center; /* テキストを中央揃え */
}
header nav ul li a {
  font-size: 18px; /* ナビの文字を大きくする */
  letter-spacing: 0.2em;
}
}