
html, body {
  margin: 0 ;
  padding: 0 ;
  background: #fff;
  width: 100%;
  overflow-x: hidden;
  text-align: center;
  font-family:
    -apple-system,                 /* iOS / macOS のシステムゴシック */
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",   /* iOS・Mac の日本語ゴシック */
    "Yu Gothic",
    "YuGothic",
    "Meiryo",                      /* Windows */
    Arial,
    sans-serif;
  color: #5F4326;
}


/* 透明の全画面ロック層（JSで付け外し） */
#intro-scroll-lock {
  position: fixed;
  inset: 0;                 /* top:0; right:0; bottom:0; left:0; と同義 */
  z-index: 99999;           /* 何より前に出す：アニメは下で見える */
  background: transparent;  /* 透明 */
  touch-action: none;       /* タッチスクロール無効化（モバイル） */
}

/* 念のため：ブラウザのオーバースクロールも抑制 */
html, body { overscroll-behavior: none; }


/* 新：overflow だけで止める（iOSでも実用上十分） */
body.no-scroll {
  overflow: hidden;
}
/* 念のため：html側は通常通りスクロール管理 */
html { overflow-y: auto; }



h2 {
  background-color: #218f49; /* ← 今の文字色 = 背景色に */
  color: #fff;                    /* ← 文字は白に */
  display: block;          /* ← 横幅に合わせたバー */
  padding: .4em .8em;             /* ← 余白でバー感 */
  border-radius: 4px;             /* ← 角丸（不要なら削除） */
  line-height: 1.3;
  text-align: center;
  margin: 4em 0 2em; /* h2との間を広げる */
  letter-spacing: 0.1em; /* ← 文字間を広げる */

}

h3 {
  font-size: 2.3em;
  margin: 2em 0 0.5em; /* h2との間を広げる */
  letter-spacing: 0.1em; /* ← 文字間を広げる */
  text-align: center;

}

h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;               /* 見出しと同じ幅のライン */
  height: 2px;
  background-color: #5F4326;
  max-width: 1200px;
}

h5 {
  font-size: 1.2em;   /* 以前より少し大きめ（例: 元が2emなら+0.2） */
  color: #000000;     /* すでに指定している緑色 */
  text-align: center; /* 中央寄せ */
  margin: 2em 0 1em;
}

.container {
  position: relative;
  width: 100%;
  height: 100vh;
  z-index:900;
  margin: 0;
  padding: 0;
}

/* 共通ロゴスタイル */
.logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width:180px;
  height: auto;
  transform: translate(-50%, -50%);
  font-size: clamp(24px, 8vw, 60px);
  text-align: center;
  opacity: 0;
  white-space: nowrap;
  z-index:0;
}

@media (max-width: 600px) {
  .logo {
    width: 170px;  /* 共通より+30pxだけ大きく */
  }
}

.logo-first {
  color: #ccc;
  animation: logoFade 1s ease-in-out forwards;
}

.logo-second {
  color: #fff;
  animation: fadeIn 1s ease-in forwards;
  animation-delay: 2s;
}

@keyframes logoFade {
  0%   { opacity: 0; }
  20%  { opacity: 1; }
  60%  { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("images/topbg.jpg"); /* 背景写真 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.1); /* 少し大きめから始める */
  z-index: 0;
  animation: bgFadeZoom 2s ease-out forwards;
  animation-delay: 1s; /* ロゴアニメーション後に開始 */
}

@keyframes bgFadeZoom {
  0% {
    opacity: 0;
    transform: scale(1.1); /* 少し拡大した状態から */
  }
  100% {
    opacity: 1;
    transform: scale(1); /* 自然なサイズに収束 */
  }
}

/* 初期は隠す（revealは既存のアニメを使うので触らない） */
#concept h2,
 {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .1s ease, transform .1s ease;
}

/* 表示状態 */
#concept .show {
  opacity: 1;
  transform: translateY(0);
}

#concept .responsive-img-wrap {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 2s ease, transform 2s ease; /* ← ここで2～3sくらいが自然 */
}

#concept .responsive-img-wrap.show {
  opacity: 1;
  transform: translateY(0);
}



/* 説明文 */

p.reveal {
  max-width: 800px;       /* 横幅を制限して読みやすく */
  margin: 2em auto;       /* 要素全体を中央配置（左右autoでセンタリング） */
  text-align: left;       /* テキストは左寄せ */
  line-height: 2;       /* 行間を広げると読みやすい */
  padding: 0 5px;
}

/* 画像レスポンシブ */

.crop-img {
  width: 100%;      /* 幅いっぱい */
  height: auto;     /* PCでは通常の比率 */
  display: block;
}

/* スマホだけトリミング表示 */
@media (max-width: 600px) {
  .responsive-img-wrap {
    width: 100%;
    height: 300px;         /* 高さを固定（必要に応じて調整） */
    overflow: hidden;      /* はみ出した部分を隠す */
    position: relative;
  }

  .crop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;     /* はみ出しても縦横比を維持してカバー */
    object-position: center center; /* 中央部分を表示 */
  }
}


.crop-img2 {
  width: 50%; 
  margin:0 auto;     
  height: auto;     /* PCでは通常の比率 */
  display: block;
}

/* スマホだけトリミング表示 */
@media (max-width: 600px) {
  .responsive-img-wrap2 {
    width: 100%;
    height: 300px;         /* 高さを固定（必要に応じて調整） */
    overflow: hidden;      /* はみ出した部分を隠す */
    position: relative;
  }

  .crop-img2 {
    width: 100%;
    height: 100%;
    object-fit: cover;     /* はみ出しても縦横比を維持してカバー */
    object-position: center center; /* 中央部分を表示 */
  }
}

/* 22種類の豊富なパーツの画像 */


/* コラージュ全体：常に1つのキャンバスとして縮小 */
.works-collage{
  max-width: 1000px;     /* PCでの上限幅 */
  width: 100%;           /* 画面幅にフィット */
  margin: 40px auto;
  padding: 0 12px;       /* 端が窮屈なら調整 */
  display: grid;
  grid-template-columns: repeat(12, 1fr); /* 細かいレイアウト調整用 */
  grid-auto-rows: 1fr;
  gap: clamp(8px, 2vw, 24px);
  align-items: end;
}

.work{ margin: 0; }
.work img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;   /* 画像の比率を保持 */
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.15));
}

/* 配置（写真の見え方に合わせて調整済み） */
.dolphin{ grid-column: 1 / span 7; grid-row: 1; }
.dragon { grid-column: 8 / span 5; grid-row: 1; }
.castle { grid-column: 5 / span 4; grid-row: 2; }

/* すごく小さい画面での余白最適化（任意） */
@media (max-width: 480px){
  .works-collage{ padding: 0 8px; gap: 10px; }
}

/* === Scroll reveal for .work (作品画像) === */
/* 初期状態：見せない＆下に20pxずらす */
.work {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}

/* 画面に入ったら .show をJSが付与 → フェードアップ */
.work.show {
  opacity: 1;
  transform: translateY(0);
}

/* 順番に少し遅らせたい場合（任意） */
.dolphin.work { transition-delay: .0s; }
.dragon.work  { transition-delay: .12s; }
.castle.work  { transition-delay: .24s; }


/* お問い合わせ部分の調整 */

.contact-info{
  display: flex;
  flex-direction: column;
  align-items: center;              /* ブロック自体を中央配置 */
  gap: 6px;
  margin: 32px auto;
}

.contact-info p {
  font-size: 1.5rem;   /* 基本の大きさ */
  margin: 6px 0;
}

.contact-info a {
  color: inherit;
  text-decoration: none;
}

/* 受付時間だけ小さくする */
.contact-info .note {
  font-size: 0.9rem;   /* 少し小さめに */
}

/* お問い合わせフォームボタン */

.contact-btn {
  background-color: #4CAF50;  /* 緑色 */
  color: white;
  border: none;
  font-size: 16px;
  cursor: pointer;
  border-radius: 30px;        /* ← 角を丸くする */
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2); /* 影付き */

  width: 400px;
  height: 60px;
  line-height: 60px; /* 高さと同じにすると縦中央揃え */

  display: flex;              /* Flexboxで中身を中央寄せ */
  align-items: center;        /* 上下中央 */
  justify-content: center;    /* 左右中央 */

  margin: 20px auto;          /* ページ中央に配置 */
  text-align: center;         /* 複数行テキストも中央寄せ */
}

/* スマホ用 */
@media (max-width: 600px) {
  .contact-btn {
    width: 80%;       /* 画面幅の80% */
    max-width: 400px; /* 最大幅制限 */
    height: 60px;
    line-height: 60px; /* 高さと同じにすると縦中央揃え */
  }
}
.contact-btn:hover {
  background-color: #45a049; /* ホバー時の色 */
  transform: translateY(-2px); /* 少し浮くアニメーション */
}

.contact-form a {
  text-decoration: none;  /* 下線を消す */
  color: inherit;         /* テキスト色も継承（青くならない） */
}

.contact-form{
  text-align: center;
}

/* a に直接当たる下線も強制的に消す */
a .contact-btn,
a.contact-btn {
  text-decoration: none !important;
  color: #fff !important;
  display: inline-block; /* ブロック化してクリック範囲を確実に */
}


/* 4つの木 */
.wood-variations {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

/* 並び：PCは4列、スマホは2列 */
.wood-list {
  list-style: none;
  margin: 0;
  padding: 0;

  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: clamp(16px, 4vw, 56px);
  justify-items: center;
  align-items: start;
}

/* スマホ（～720px）は2列、超小さい幅は1列に */
@media (max-width: 720px) {
  .wood-list {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 24px;
  }
}


/* 画像＋ラベル */
.wood-list figure {
  margin: 0;
  text-align: center;
}

.wood-list img {
  display: block;
  max-width: 100%;
  width: min(220px, 80vw); /* 大きすぎないように制限 */
  height: auto;
  object-fit: contain;
}

/* スマホ専用（幅768px以下のとき） */
@media (max-width: 768px) {
  .wood-list img {
    max-width: 80%;   /* ← 画像を小さめにする */
    margin: 0 auto;   /* 中央揃え */
    display: block;
  }
}

/* ラベル（下の文字） */
.wood-list figcaption {
  margin-top: 14px;
  font-size: 16px;
  letter-spacing: .12em;
  color: #222;
}

/* 下からふわっと */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 初期状態：見せない */
.wood-list.stagger li {
  opacity: 0;
  transform: translateY(14px);
}

/* .active が付いたら、順にフェードイン */
.wood-list.stagger.active li {
  animation: fadeInUp .6s ease-out forwards;
}

/* 遅延（必要数だけ増やす） */
.wood-list.stagger.active li:nth-child(1) { animation-delay: 0.00s; }
.wood-list.stagger.active li:nth-child(2) { animation-delay: 0.12s; }
.wood-list.stagger.active li:nth-child(3) { animation-delay: 0.24s; }
.wood-list.stagger.active li:nth-child(4) { animation-delay: 0.36s; }

/* 動き抑制ユーザー配慮 */
@media (prefers-reduced-motion: reduce) {
  .wood-list.stagger li,
  .wood-list.stagger.active li {
    animation: none;
    opacity: 1;
    transform: none;
  }
}


/* Product */

.product-wrap {
  max-width: 1200px;   /* 全体の最大幅 */
  width: 100%;
  margin: 0 auto;      /* 画面中央に配置 */
  padding: 0 0px;     /* 左右に少し余白（お好みで） */
  text-align: left;    /* 中のテキストは左寄せ */
}

.heading-underline {
  position: relative;
  padding-bottom: .6em;   /* 文字と線の間の余白 */
  color: #5F4326;
  font-size: 1.5em;
  font-weight: bold;

}

.heading-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;            /* ← section-wrap の幅いっぱい */
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.product-variations {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.product-status{
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 10px;
  font-size: .85rem;
  border-radius: 999px;
  background: rgba(198, 40, 40, .9);
  color: #fff;
  min-height: 22px;    /* ← ★高さを固定しておく（重要） */
  display: inline-flex;
  align-items: center;
}

/* ステータスが無いときのプレースホルダ */
.product-status.placeholder {
  visibility: hidden;  /* 透明だが「場所」は残る */
}

/* 並び：PCは4列、スマホは2列 */
.product-list {
  list-style: none;
  margin: 0;
  padding: 0;

  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: clamp(16px, 1vw, 56px);
  justify-items: center;
  align-items: start;
}

/* スマホ（～720px）は2列、超小さい幅は1列に */
@media (max-width: 720px) {
  .product-list {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 24px;
  }
}


/* 画像＋ラベル */
.product-list figure {
  margin: 0;
  text-align: center;
}

.product-list img {
  display: block;
  max-width: 100%;
  width: min(220px, 80vw); /* 大きすぎないように制限 */
  height: auto;
  object-fit: contain;
}

/* スマホ専用（幅768px以下のとき） */
@media (max-width: 768px) {
  .product-list img {
    max-width: 80%;   /* ← 画像を小さめにする */
    margin: 0 auto;   /* 中央揃え */
    display: block;
  }
}

/* ラベル（下の文字） */
.product-list figcaption {
  margin-top: 14px;
  font-size: 16px;
  letter-spacing: .12em;
  color: #222;
}

/* 下からふわっと */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 初期状態：見せない */
.product-list.stagger li {
  opacity: 0;
  transform: translateY(14px);
}

/* .active が付いたら、順にフェードイン */
.product-list.stagger.active li {
  animation: fadeInUp .6s ease-out forwards;
}

/* 遅延（必要数だけ増やす） */
.product-list.stagger.active li:nth-child(1) { animation-delay: 0.00s; }
.product-list.stagger.active li:nth-child(2) { animation-delay: 0.12s; }
.product-list.stagger.active li:nth-child(3) { animation-delay: 0.24s; }
.product-list.stagger.active li:nth-child(4) { animation-delay: 0.36s; }

/* 動き抑制ユーザー配慮 */
@media (prefers-reduced-motion: reduce) {
  .product-list.stagger li,
  .product-list.stagger.active li {
    animation: none;
    opacity: 1;
    transform: none;
  }
}


/* ウッディプッディについて */
.logo-w {
  width:210px;
  height: auto;
  margin: 0 auto;
  display: block;
}

@media (max-width: 600px) {
  .logo-w {
    width: 210px;  /* 共通より+30pxだけ大きく */
  }
}

p.asobito {
  max-width: 800px;       /* 横幅を制限して読みやすく */
  margin: 0em auto;       /* 要素全体を中央配置（左右autoでセンタリング） */
  text-align: left;       /* テキストは左寄せ */
  line-height: 1.8;       /* 行間を広げると読みやすい */
  padding: 0 5;
}

/* SNS */

.sns-links {
  list-style: none;         /* マーカーを消す */
  padding: 0;
  margin: 0.5em auto;
  display: flex;            /* 横並び */
  justify-content: center;  /* 中央揃え */
  gap: 1.2em;               /* アイコンの間隔 */
}

.sns-links li a img {
  width: 40px;   /* PC用アイコンサイズ */
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.sns-links li a:hover img {
  transform: scale(1.1); /* ホバー時に少し拡大 */
}

/* スマホ用にサイズ調整 */
@media (max-width: 600px) {
  .sns-links li a img {
    width: 50px; /* スマホでは少し大きめ */
  }
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 0px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2em;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #5F4326;
}

.hamburger {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

/* スマホ用（ハンバーガーメニュー表示） */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background: #fff;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
    padding: 10px;
  }

  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}

/* 初期位置を画面上に隠す */
.intro {
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 1s ease, opacity 1s ease;
}

/* 表示用クラス */
.intro.show {
  transform: translateY(0);
  opacity: 1;
}

:root { --header-h: 64px; }

/* ヘッダー：最初は透明＆画面外。落ちる＋ゆっくりフェード */
.site-header{
  position: fixed; top: 0; left: 0; width: 100%;
  transform: translateY(-120%);
  opacity: 0;
  background: transparent;           /* ← 最初は完全透明 */
  border-bottom: 1px solid transparent; /* 高さが変わらないよう最初から入れておく */
  box-shadow: none;
  transition:
    transform 1.2s cubic-bezier(.22,.61,.36,1),
    opacity   2.2s ease-out .1s,
    border-color .6s ease .1s,
    background .6s ease .1s,
    box-shadow .6s ease .1s;
  z-index: 2100;                     /* ヒーローより前に */
}

/* 表示後：色を付けるだけ（高さは不変） */
.site-header.drop-in{
  transform: translateY(0);
  opacity: 1;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: rgba(0,0,0,.06);
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

/* ページ中身：最初はオフセットなし。ヘッダー出現後だけ下げる */
.page-wrap{
  transform: translateY(0);
  transition: transform 1.2s cubic-bezier(.22,.61,.36,1);
}
body.has-header .page-wrap{
  transform: translateY(var(--header-h)); /* ← 帯を作らず中身だけ下げる */
}

/* 念のため：ナビ内の背景が勝手に白くならないように */
.navbar, .logo-area, .nav-links{ background: transparent !important; }

/* ▼スマホではヘッダーを常に透明に（メニューは白のまま） */
@media (max-width: 768px) {
  .site-header,
  .site-header.drop-in {
    background: transparent !important;      /* 帯の白を無効化 */
    box-shadow: none !important;
    border-bottom-color: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  /* ナビ内の要素に背景が残っている可能性をつぶす */
  .navbar, .logo-area { background: transparent !important; }
  .nav-links::before,
  .nav-links::after { content: none !important; }

  /* メニューを開いたときは白背景（現状維持） */
  .nav-links.show {
    background: #fff !important;
  }
}

.site-footer {
  text-align: center;   /* 中央寄せ */
  padding: 20px;
  background: #f5f5f5;  /* 任意：背景を付けたいとき */
}

.site-footer .copyright {
  margin: 0;            /* デフォルトの余白をリセット */
  font-size: 0.9rem;    /* お好みでサイズ調整 */
  color: #555;          /* お好みで色を調整 */
}

.lang-switch {
  list-style: none;
  display: flex;
  gap: .6em;
  margin: 0;
  padding: 0;
  font-size: .85rem;
}

.lang-switch li {
  margin: 0;
  padding: 0;
}

.lang-switch a,
.lang-switch .active {
  text-decoration: none;
  color: #5F4326;
  opacity: .6;
}

.lang-switch .active {
  font-weight: 600;
  opacity: 1;
}

.lang-switch a:hover {
  opacity: 1;
}
