/* 全体の設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #7f9070; /* セージグリーン */
  --accent-color: #5d6d4a; /* 深みのあるアクセント */
  --text-color: #4b4b4b;
  --bg-color: #fffdfb;
  --light-bg: #f8f5f0;
  --border-color: #ece8e2;
}

body {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; /* 情緒的な明朝体ベース */
  color: var(--text-color);
  background: var(--bg-color);
  line-height: 2.0;
  overflow-x: hidden;
}

/* アニメーション用クラス */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.container {
  width: min(1200px, calc(100% - 60px));
  margin: 0 auto;
}

.narrow { max-width: 800px; }

.section { padding: 140px 0; }

/* ヘッダー */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

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

.logo {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 60px;
  width: auto;
  display: block;
}
.logo-text {
  font-size: 20px;
  letter-spacing: 0.1em;
}

.hamburger {
  display: none;
}

.global-nav ul {
  display: flex;
  gap: 40px;
  align-items: center;
  list-style: none;
}

.global-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 15px;
  transition: 0.3s;
}

.nav-cta {
  background: var(--primary-color);
  color: white !important;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(127, 144, 112, 0.3);
}

.nav-cta:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

/* FV */
.fv {
  min-height: 95vh;
  display: flex;
  align-items: center;
  background: 
    linear-gradient(rgba(255,255,255,0.3), rgba(255,255,255,0.3)),
    url('images/fv-main.jpg') center/cover no-repeat;
}

.fv h1 {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.4;
  margin-bottom: 32px;
  color: #3f4b34;
}

.fv-text {
  font-size: 18px;
  margin-bottom: 48px;
  max-width: 720px;
}

/* 下層ページFV */
.page-kv {
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
}

.page-kv.fee-kv {
  background: 
    linear-gradient(rgba(255,255,255,0.3), rgba(255,255,255,0.9)),
    url('images/fee-fv.jpg') center/cover no-repeat;
}

.page-kv.work-kv {
  background: 
    linear-gradient(rgba(255,255,255,0.3), rgba(255,255,255,0.9)),
    url('images/work-fv.jpg') center/cover no-repeat;
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 20px 32px;
  text-decoration: none;
  border-radius: 100px;
  transition: 0.4s;
  font-weight: bold;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary.highlight {
  background: var(--accent-color);
  box-shadow: 0 8px 25px rgba(93, 109, 74, 0.4);
}

.btn-primary.highlight:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(93, 109, 74, 0.5);
}

.btn-outline {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

/* 共通パーツ */
.section-en {
  color: #9aa489;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-family: sans-serif;
  font-size: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 48px;
  color: #3f4b34;
}

/* 画像プレースホルダー */
.visual-placeholder { margin-top: -60px; margin-bottom: 80px; }
.image-box-gray {
  width: 100%;
  height: 450px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-style: italic;
  border: 1px dashed #ccc;
}

/* 強みセクション */
.strength {
  background: 
    linear-gradient(rgba(255,255,255,0.3), rgba(255,255,255,0.3)),
    url('images/concept-main.jpg') center/cover no-repeat;
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.strength-item h3 { margin: 20px 0; font-size: 22px; color: #3f4b34; }
.num { font-size: 40px; color: #dcd5cb; font-family: serif; border-bottom: 1px solid #dcd5cb; }

/* 制作実績 */
.works-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.work-case {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.work-visual {
  width: 100%;
  overflow: hidden;
}

.work-img-link {
  display: block;
}

.work-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.work-visual:hover .work-img {
  transform: scale(1.05);
}

.work-info {
  padding: 32px;
}

.work-cat {
  font-size: 12px;
  color: var(--primary-color);
  font-weight: bold;
  display: inline-block;
  margin-bottom: 8px;
}

.work-info h2 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #3f4b34;
}

.work-summary {
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.work-story {
  font-size: 13px;
  background: var(--light-bg);
  padding: 20px;
  border-radius: 4px;
}

.work-story h3 {
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--primary-color);
  border-bottom: 1px solid #dcd5cb;
  padding-bottom: 8px;
}

.work-story p {
  margin-bottom: 8px;
  line-height: 1.6;
}

.work-story p:last-child {
  margin-bottom: 0;
}

/* 顧客の声 */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.voice-item {
  background: white;
  padding: 48px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.voice-head { margin-bottom: 24px; }
.job { font-size: 13px; color: var(--primary-color); font-weight: bold; }
.client-name { font-weight: bold; margin-top: 4px; }
.voice-item h3 { font-size: 18px; margin-bottom: 16px; line-height: 1.5; color: #3f4b34; }

/* 料金表パッケージ */
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.package-card {
  background: white;
  padding: 60px 40px;
  border: 1px solid var(--border-color);
  text-align: center;
  position: relative;
}

.package-card.featured {
  border: 2px solid var(--primary-color);
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.price { font-size: 32px; color: var(--primary-color); font-weight: bold; margin: 24px 0; }
.package-card ul { text-align: left; margin-bottom: 32px; }
.package-card li { list-style: none; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.package-card li::before { content: "✿"; color: var(--primary-color); margin-right: 8px; }

/* 表 */
.price-table { width: 100%; border-collapse: collapse; margin-bottom: 80px; }
.price-table th, .price-table td { border-bottom: 1px solid var(--border-color); padding: 24px; text-align: left; }
.price-table th { background: var(--light-bg); font-weight: bold; width: 30%; }

/* お問い合わせ */
.contact { background: var(--light-bg); }
.contact-lead { margin-bottom: 40px; text-align: center; }
.contact-form { background: white; padding: 80px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 32px; }
.form-group label { display: block; margin-bottom: 12px; font-weight: bold; }
input, select, textarea { width: 100%; padding: 18px; border: 1px solid #dcd5cb; font-family: inherit; font-size: 16px; background: #fafafa; }
.recaptcha-wrapper { display: flex; justify-content: center; margin-bottom: 40px; }

/* フッター */
.site-footer { padding: 60px 0; text-align: center; background: #f1ece5; color: #888; font-size: 14px; }

/* レスポンシブ */
@media (max-width: 1024px) {
  .site-header {
    backdrop-filter: none;
    background: rgba(255, 255, 255, 0.98);
  }

  .strength-grid, .voice-grid, .package-grid, .works-detail-grid { grid-template-columns: 1fr; }
  .package-card.featured { transform: scale(1); }

  /* ハンバーガーアイコン */
  .hamburger {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1100;
  }
  .hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    position: absolute;
    left: 0;
    transition: all 0.3s;
  }
  .hamburger span:nth-child(1) { top: 0; }
  .hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
  .hamburger span:nth-child(3) { bottom: 0; }
  
  .hamburger.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { top: 50%; transform: translateY(-50%) rotate(-45deg); }

  /* モバイル用ナビゲーション */
  .global-nav {
    position: static;
  }
  .global-nav::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
  }
  .global-nav.active::before {
    opacity: 1;
    pointer-events: auto;
  }

  .global-nav ul {
    display: block;
  }

  /* ハンバーガーメニューの中身 */
  .global-nav ul li:not(:last-child) {
    position: fixed;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 1010;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .global-nav.active ul li:not(:last-child) {
    opacity: 1;
    pointer-events: auto;
  }
  .global-nav ul li:nth-child(1) { top: 35vh; }
  .global-nav ul li:nth-child(2) { top: 45vh; }
  
  .global-nav ul li:not(:last-child) a {
    font-size: 20px;
    font-weight: bold;
    display: inline-block;
    padding: 10px;
  }

  /* 制作依頼をするボタン（モバイル固定） */
  .global-nav ul li:last-child {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
  }
  .nav-cta {
    display: block;
    width: 100%;
    border-radius: 0;
    padding: 20px;
    font-size: 16px;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
    text-align: center;
  }
  .nav-cta:hover {
    transform: none;
  }

  /* footerが隠れないようにボディの下に余白を追加 */
  body {
    padding-bottom: 64px; 
  }
}