<meta charset="UTF-8">

/* 旧：
html, body {
  margin: 0;
  padding: 0;
  background: #fff;
  height: 100%;
  width: 100%;
  font-family: sans-serif;
  overflow-x: hidden;
  text-align: center;
  font-family: 'Zen Maru Gothic', sans-serif;
  color: #5F4326;
}
*/

/* 新：高さは指定しない（←二重スクロールの元） */
html, body {
  margin: 0;
  padding: 0;
  background: #fff;
  width: 100%;
  overflow-x: hidden;
  text-align: center;
  font-family: "Zen Maru Gothic", system-ui, -apple-system, "Segoe UI",
               "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
               "Yu Gothic UI", "Yu Gothic", Meiryo, 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; }

/* 旧：
body.no-scroll {
  overflow: hidden;
  height: 100vh;
  position: fixed;
  width: 100%;
}
*/

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

h2 {
  font-size: 1.8em;   /* 以前より少し大きめ（例: 元が2emなら+0.2） */
  color: #218f49;     /* すでに指定している緑色 */
  text-align: center; /* 中央寄せ */
  margin: 3em 0 1em 0;
  letter-spacing: 0.2em; /* ← 文字間を広げる */
}

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

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

/* 共通ロゴスタイル */
.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 3s ease-in-out forwards;
}

.logo-second {
  color: #fff;
  animation: fadeIn 2s ease-in forwards;
  animation-delay: 5.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 5s ease-out forwards;
  animation-delay: 3s; /* ロゴアニメーション後に開始 */
}

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

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

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

#concept .responsive-img-wrap {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 16s ease, transform 16s 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.5;       /* 行間を広げると読みやすい */
}

.reveal span {
  opacity: 0;
  display: inline-block;
  transform: translateY(20px);
}

.reveal.active span {
  animation: fadeInChar 0.5s forwards;
}
/* 文字ごとに遅延 */
.reveal span:nth-child(1)  { animation-delay: 0s; }
.reveal span:nth-child(2)  { animation-delay: 0.1s; }
.reveal span:nth-child(3)  { animation-delay: 0.2s; }
.reveal span:nth-child(4)  { animation-delay: 0.3s; }
/* …必要な分だけ続ける */

@keyframes fadeInChar {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.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; /* ブロック化してクリック範囲を確実に */
}

/* プロダクト */

.product-section {
  background-color: #E9E0D5; /* 背景色を設定 */
  padding: 60px 20px;       /* 上下左右に余白 */
}

.product-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.product-description {
  text-align: left;  /* ← 左揃え */
  max-width: 500px;  /* 横幅を制限（必要に応じて） */
  margin: 0 auto;    /* 全体を中央に置く場合 */
}

.product-description h2 {
  text-align: left;   /* 左寄せ */
  color: #5F4326;        
  margin:5px 0 10px; /* 下に余白を少し */
  letter-spacing: 0.2em; /* ← 文字間を広げる */
}

/* スマホでは縦並び */
@media (max-width: 960px) {
  .product-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.specs {
  list-style: none;   /* 点を消す */
  padding: 0;         /* 左の余白を消す */
  margin: 0;          /* 余計なマージンを消す */
  letter-spacing: 0.2em; /* ← 文字間を広げる */
}

.specs li {
  margin-bottom: 8px; /* 項目同士の間隔を調整（必要なら） */
}

.price{
 font-size:1.8em;
 letter-spacing: 0.2em; /* ← 文字間を広げる */
}
/* 枠：正方形にしたい場合（不要なら削除OK） */
.carousel{
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;  /* 正方形 */
  margin: 0 auto;
  overflow: hidden;
  background: none;     /* 背景の枠を消す指定を継続するなら none */
  border: none;
}

.carousel .track-wrapper{ width:100%; height:100%; overflow:hidden; }
.carousel .track{
  display:flex;
  height:100%;
  gap:0;
  transition: transform .5s ease;
  will-change: transform;
}
.carousel .slide{
  flex:0 0 100%;
  height:100%;
  display:grid;
  place-items:center;
}
.carousel .slide img{
  width:100%;
  height:100%;
  object-fit: contain; /* 「全部見える」仕様なら contain */
  display:block;
}

/* 矢印・ドット */
.carousel .nav, .carousel .dots{ position:absolute; z-index:2; }
.carousel .nav{
  top:50%; transform:translateY(-50%);
  width:42px; height:42px; border:0; border-radius:50%;
  background: rgba(0,0,0,.35); color:#fff; cursor:pointer;
  display:grid; place-items:center;
}
.carousel .prev{ left:12px; }
.carousel .next{ right:12px; }
.carousel .dots{
  left:50%; bottom:10px; transform:translateX(-50%);
  display:flex; gap:8px;
}
.carousel .dots button{
  width:10px; height:10px; border:0; border-radius:50%;
  background:#bbb; padding:0; flex:0 0 auto;
}
.carousel .dots button.active{ background:#333; }

/* 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;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.08)); /* ほんのり影 */
}

/* スマホ専用（幅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;
  }
}


/* ウッディプッディについて */
.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;       /* 行間を広げると読みやすい */
}

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

.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;          /* お好みで色を調整 */
}

/* ===== TIMBLO Products: responsive hotfix ===== */

/* 1) セクション全体：スマホでのはみ出し防止＆内側余白 */
.product-section {
  --gap: clamp(12px, 3vw, 24px);
  padding-inline: var(--gap);
  overflow: hidden; /* 子要素の絶対配置や画像はみ出し対策 */
}

/* 2) 横スクロールのレール（.product-list/.product-track のどちらかに合わせて使ってください） */
.product-section .product-list,
.product-section .product-track {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;                 /* スマホは横スクロール */
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;    /* 1枚ずつ気持ちよく止まる */
  padding-bottom: 8px;              /* スクロールバー分の逃げ */
}

/* 3) 各カードの幅定義：スマホは“1画面=1カード”基準、PCは複数列 */
.product-section .product-card {
  flex: 0 0 88%;
  max-width: 520px;                 /* 画像が巨大でも暴れない保険 */
  scroll-snap-align: start;
  min-width: 0;                     /* テキスト長で横にはみ出すのを抑制 */
  background: #fff;
  border-radius: 12px;
}

@media (min-width: 768px) {
  .product-section .product-list,
  .product-section .product-track {
    overflow: visible;              /* PCは通常の並び */
  }
  .product-section .product-card {
    flex: 1 1 calc((100% - 2*var(--gap))/3); /* 3列想定。枚数に応じて調整 */
    max-width: none;
  }
}

/* 4) 画像のはみ出し＆縦横比のブレを抑える */
.product-section .product-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3; /* 画像が縦長でもカード高さが暴れない */
}

/* 5) タイトルや価格の折返しによる崩れ対策 */
.product-section .product-card h3,
.product-section .product-card .price,
.product-section .product-card .meta {
  min-width: 0;         /* Flex子要素の省略幅を許可 */
  word-break: break-word;
}

/* 6) 前へ/次へ矢印の位置：スマホでコンテンツに重ならないように */
.product-section .product-nav {
  position: absolute;
  inset-block-start: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.product-section .product-nav.prev { inset-inline-start: 6px; }
.product-section .product-nav.next { inset-inline-end: 6px; }

@media (max-width: 767.98px) {
  .product-section .product-nav {
    inset-block-start: auto;
    inset-block-end: -4px;  /* 下に退避（指で触りやすい） */
    transform: none;
  }
}

/* 7) 余分な横スクロールの根本対策（親まで効かせる） */
.product-section,
.product-section * {
  box-sizing: border-box;
}
