/* ============================================
   デザイン変数
   ============================================ */
:root {
  --yellow: #f5c800;
  --yellow-light: #fffdf0;
  --gray-bg: #f8f9fa;
  --text: #333333;
  --sub: #666666;
  --radius: 12px;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

/* ============================================
   リセット
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ============================================
   ユーティリティ
   ============================================ */
.poppins { font-family: 'Poppins', sans-serif; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
.section { padding: 80px 0; }
.section.bg-gray { background: var(--gray-bg); }
.section.bg-yellow-light { background: var(--yellow-light); }
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* グリッドレイアウト */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* セクションラベル・タイトル */
.section-label {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
  display: block;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-desc {
  font-size: 16px;
  color: var(--sub);
  line-height: 1.9;
  max-width: 640px;
}

/* ============================================
   ボタン
   ============================================ */
.btn-primary {
  display: inline-block;
  background: var(--yellow);
  color: #333;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #333;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid #ddd;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.btn-secondary:hover { border-color: #aaa; transform: translateY(-1px); }

/* ============================================
   ヘッダー
   ============================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
#site-header.scrolled {
  border-bottom-color: #eee;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
/* .container と組み合わせた場合の padding 上書き */
.header-inner.container { padding: 0 32px; }

.header-logo img {
  height: 42px;
  width: auto;
  display: block;
}

.header-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header-nav li {
  list-style: none;
}
.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: #444;
  white-space: nowrap;
  transition: color var(--transition);
}
.header-nav a:hover { color: var(--yellow); }

.header-cta {
  background: var(--yellow);
  color: #333;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.header-cta:hover { opacity: 0.88; }

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .2s;
}

/* モバイルメニュー */
.mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  padding: 16px 20px 24px;
}
.mobile-menu.open { display: block; }
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-menu li {
  list-style: none;
}
.mobile-menu li a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: #444;
  border-bottom: 1px solid #f5f5f5;
  text-decoration: none;
}
.mobile-menu li a:hover { color: var(--yellow); }
.mobile-menu .btn-primary {
  display: block;
  margin-top: 16px;
  text-align: center;
}

/* ============================================
   フッター（4カラムグリッド）
   ============================================ */
.site-footer {
  background: #1a1a1a;
  padding: 60px 32px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto 40px;
}
.footer-brand-logo {
  background: #fff;
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.footer-brand-logo img {
  height: 32px;
  width: auto;
  display: block;
}
.footer-brand-desc {
  color: #888;
  font-size: 13px;
  line-height: 1.9;
}
.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 12px;
  display: block;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: #888;
  margin-bottom: 8px;
  text-decoration: none;
  transition: color .2s;
}
.footer-col a:hover { color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-bottom p { font-size: 12px; color: #555; }

/* ============================================
   CTAバナー（黄色背景）
   ============================================ */
.cta-banner {
  background: var(--yellow);
  padding: 80px 32px;
  text-align: center;
}
.cta-banner .section-label { color: rgba(0,0,0,0.35); }
.cta-banner h2 {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
}
.cta-banner p {
  color: #555;
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 32px;
}

/* ============================================
   トップページ FV
   ============================================ */
.fv {
  padding-top: 68px;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: #fff;
}

/* Stats（黄色帯）*/
.stat-item { text-align: center; }
.stat-num {
  font-size: 44px;
  font-weight: 700;
  color: #333;
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 6px;
}
.stat-unit { font-size: 16px; font-weight: 700; color: #555; }
.stat-label { font-size: 13px; color: #555; font-weight: 400; }

/* ============================================
   Works カード
   ============================================ */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.works-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.works-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  background: #fff;
  transition: box-shadow .3s, transform .3s;
  display: block;
  text-decoration: none;
}
.works-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.10);
  transform: translateY(-4px);
}
.works-card-img {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.works-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.works-card-body { padding: 24px; }
.works-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--yellow-light);
  color: #8a6f00;
  letter-spacing: 0.02em;
}
.works-card-title { font-size: 17px; font-weight: 700; color: #1a1a1a; line-height: 1.5; margin-bottom: 10px; }
.works-card-summary { font-size: 13px; color: #666; line-height: 1.8; margin-bottom: 16px; }
.works-card-meta { display: flex; align-items: center; justify-content: space-between; }
.works-card-meta span:first-child { font-size: 12px; color: #999; }
.works-card-meta span:last-child {
  font-size: 12px; font-weight: 600; color: var(--yellow);
  letter-spacing: 0.05em; font-family: 'Poppins', sans-serif;
}

/* フィルターボタン */
.filter-btn {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 24px;
  border: 2px solid #e0e0e0;
  background: #fff;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Noto Sans JP', sans-serif;
}
.filter-btn.active,
.filter-btn:hover {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #333;
  font-weight: 700;
}

/* ============================================
   Works 詳細ページ
   ============================================ */
.works-detail-inner { max-width: 1200px; margin: 0 auto; }
.works-content { font-size: 15px; color: #555; line-height: 2.0; }
.works-content p { margin-bottom: 16px; }
.works-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.works-gallery > div:first-child {
  grid-column: span 2;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
}
.works-gallery > div {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
}

/* ============================================
   FAQ アコーディオン
   ============================================ */
.faq-item {
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 8px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: box-shadow .2s;
}
.faq-item.open { box-shadow: 0 4px 20px rgba(0,0,0,0.07); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  background: #fff;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Noto Sans JP', sans-serif;
}
.faq-q-badge {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  color: #333;
}
.faq-q-text { flex: 1; font-size: 15px; font-weight: 700; color: #222; line-height: 1.5; }
.faq-toggle { flex-shrink: 0; font-size: 18px; color: #ccc; transition: transform .25s; }
.faq-item.open .faq-toggle { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  padding: 0 22px 0 68px;
  font-size: 14px;
  color: #555;
  line-height: 1.9;
}
.faq-item.open .faq-answer {
  max-height: 1000px;
  padding: 0 22px 20px 68px;
  border-top: 1px solid #f5f5f5;
}

/* ============================================
   コンタクトフォーム
   ============================================ */
.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper input[type="tel"],
.contact-form-wrapper select,
.contact-form-wrapper textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1.5px solid #e0e0e0;
  font-size: 15px;
  color: #333;
  font-family: 'Noto Sans JP', sans-serif;
  outline: none;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form-wrapper input:focus,
.contact-form-wrapper select:focus,
.contact-form-wrapper textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(245,200,0,0.13);
}
.contact-form-wrapper textarea { resize: vertical; line-height: 1.8; }
.contact-form-wrapper input[type="submit"] {
  width: 100%;
  background: var(--yellow);
  color: #333;
  padding: 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: opacity .2s;
}
.contact-form-wrapper input[type="submit"]:hover { opacity: 0.88; }
.wpcf7-form-control-wrap { display: block; margin-bottom: 16px; }

/* ============================================
   スクロールバー
   ============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

/* ============================================
   レスポンシブ（768px以下）
   ============================================ */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .header-inner,
  .header-inner.container { padding: 0 20px; height: 60px; }
  .header-nav { display: none; }
  .header-cta { display: none; }
  .hamburger { display: flex; }
  .section { padding: 60px 0; }
  .section-title { font-size: 28px; }

  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; gap: 24px; }

  .works-grid { grid-template-columns: 1fr; gap: 20px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .site-footer { padding: 48px 20px 28px; }

  .works-gallery { grid-template-columns: 1fr; }
  .works-gallery > div:first-child { grid-column: 1; aspect-ratio: 4/3; }

  .faq-question { padding: 14px 16px; }
  .faq-answer { padding: 0 16px 0 16px; }
  .faq-item.open .faq-answer { padding: 0 16px 16px; }

  .cta-banner { padding: 60px 20px; }
  .cta-banner h2 { font-size: 22px; }
}
