/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'メイリオ', Meiryo, 'Hiragino Kaku Gothic Pro', sans-serif;
  font-size: 15px;
  color: #311105;
  background: #fff;
  line-height: 1.8;
}
.section-title,
.fv h1,
.sec-cta h2,
.reason-card h3,
.parallax-inner {
  text-wrap: pretty;
}
img { max-width: 100%; height: auto; vertical-align: top; }
a { color: #0B3F21; text-decoration: none; }

/* ===== Variables ===== */
:root {
  --font-sans: 'メイリオ', Meiryo, 'Hiragino Kaku Gothic Pro', sans-serif;
  --green:  #0B3F21;
  --green-deep: #06200F;
  --gold:   #c8a063;
  --gold-d: #946F31;
  --text:   #311105;
  --bg-gray:#f9f9f9;
  --white:  #fff;
  --font-serif: 'Shippori Mincho', '游明朝', 'Yu Mincho', 'ヒラギノ明朝 ProN', 'Hiragino Mincho ProN', serif;
}

/* ===== Utility ===== */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 30px;
}
.section { padding: 70px 0; }
.section-title {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--green);
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.4;
}
.section-title .section-eyebrow {
  font-family: var(--font-sans);
  display: block;
  font-size: 13px;
  color: var(--gold-d);
  font-weight: normal;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.divider {
  width: 50px;
  border: none;
  border-top: 3px solid var(--gold);
  margin: 16px auto 40px;
}
.btn-cta {
  display: inline-block;
  background: var(--gold-d);
  color: #fff;
  font-size: 17px;
  font-weight: bold;
  padding: 18px 48px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn-cta:hover { background: #7a5620; transform: translateY(-2px); color: #fff; }
.btn-cta::after {
  content: '→';
  display: inline-block;
  margin-left: 0.6em;
  transition: transform .2s ease;
}
.btn-cta:hover::after { transform: translateX(4px); }
.btn-cta-wrap { text-align: center; margin-top: 36px; }
.nobr { display: inline-block; }
.pc-only { display: inline; }

/* ===== FV ===== */
.fv {
  background-color: #1a5c35;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 90px 30px 90px;
  text-align: center;
  color: #fff;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fv::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.35) 40%,
    rgba(0,0,0,0.60) 100%
  );
}
.fv::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(0,0,0,0.9) 1px, transparent 1.2px),
    radial-gradient(rgba(0,0,0,0.9) 1px, transparent 1.2px);
  background-size: 5px 5px;
  background-position: 0 0, 2.5px 2.5px;
  opacity: 0.18;
  mix-blend-mode: multiply;
}
.fv-inner { position: relative; z-index: 3; max-width: 820px; margin: 0 auto; }
.fv-label {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.15em;
  padding: 4px 16px;
  border-radius: 2px;
  margin-bottom: 20px;
}
.fv h1 {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  margin-bottom: 18px;
  text-shadow: 1px 2px 6px rgba(0,0,0,0.4);
}
.sp-only { display: none; }
.fv-tagline {
  margin-bottom: 34px;
}
.fv-tagline-text {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 4px;
  text-align: center;
}
.fv-tagline img {
  width: 240px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.45));
}
.fv-sub {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 36px;
  opacity: 0.93;
}
.fv .btn-cta {
  font-size: 18px;
  padding: 20px 52px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.fv-note {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 12px;
}

/* ===== FV ケンバーンズスライダー ===== */
.fv-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.fv-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
  will-change: transform, opacity;
}
.fv-slide.is-active { opacity: 1; }

.fv-slide:nth-child(1) {
  background-image: url('img/bg2.jpg');
  transform-origin: center;
  animation: fvKen1 18s ease-in-out infinite alternate;
}
.fv-slide:nth-child(2) {
  background-image: url('img/bg3.jpg');
  transform-origin: 30% 40%;
  animation: fvKen2 18s ease-in-out infinite alternate;
}
.fv-slide:nth-child(3) {
  background-image: url('img/bg4.jpg');
  transform-origin: 70% 60%;
  animation: fvKen3 18s ease-in-out infinite alternate;
}

@keyframes fvKen1 {
  from { transform: scale(1.0); }
  to   { transform: scale(1.15); }
}
@keyframes fvKen2 {
  from { transform: scale(1.12) translate(-2%, 1%); }
  to   { transform: scale(1.18) translate(2%, -1%); }
}
@keyframes fvKen3 {
  from { transform: scale(1.2); }
  to   { transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .fv-slide { animation: none !important; }
}

/* ===== 課題共感 ===== */
.sec-problem { background: var(--bg-gray); }
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 10px;
}
.problem-card {
  background: #fff;
  border-left: 4px solid var(--gold);
  padding: 20px 24px;
  border-radius: 2px;
  font-size: 15px;
  line-height: 1.7;
}

/* ===== 選ばれる理由 ===== */
.sec-reason {
  background-color: var(--green);
  color: #fff;
}
.sec-reason .section-title { color: #fff; }
.sec-reason .section-title .section-eyebrow { color: var(--gold); }
.sec-reason hr.divider { border-top-color: var(--gold); }
.reason-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 10px;
}
.reason-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(200,160,99,0.4);
  border-radius: 4px;
  padding: 32px 24px;
  text-align: center;
}
.reason-num {
  display: block;
  font-size: 40px;
  font-weight: bold;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
  font-style: italic;
}
.reason-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.4;
  color: #fff;
}
.reason-card p { font-size: 13px; line-height: 1.8; opacity: 0.9; color: rgba(255,255,255,0.9); text-align: left; }

/* ===== 活躍できる業種 ===== */
.sec-career { background: #fff; }
.career-table-wrap { overflow-x: auto; }
.career-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 10px;
}
.career-table th {
  background: var(--green);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: bold;
  letter-spacing: 0.03em;
}
.career-table td {
  padding: 12px 16px;
  border-bottom: 1px dashed var(--gold);
  vertical-align: top;
  line-height: 1.7;
}
.career-table tr:nth-child(even) td { background: var(--bg-gray); }
.career-table td:first-child { font-weight: bold; color: var(--green); white-space: nowrap; }
.career-note {
  margin-top: 24px;
  padding: 18px 24px;
  background: #fffbea;
  border-left: 4px solid var(--gold);
  font-size: 14px;
  line-height: 1.8;
}

/* ===== パララックス箸休めセクション ===== */
.parallax-band {
  position: relative;
  overflow: hidden;
  height: clamp(280px, 42vh, 420px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.parallax-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: -15%;
  height: 130%;
  background-image: url('img/bg1.jpg');
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.parallax-band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(11, 63, 33, 0.55);
}
.parallax-inner {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(17px, 4.4vw, 26px);
  font-weight: bold;
  line-height: 1.8;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

/* ===== サービスの流れ ===== */
.sec-flow { background: var(--bg-gray); }
.flow-list {
  display: flex;
  gap: 0;
  margin-top: 10px;
  position: relative;
}
.flow-list::before {
  content: '';
  position: absolute;
  top: 38px;
  left: calc(33.3% / 2);
  right: calc(33.3% / 2);
  height: 3px;
  background: var(--gold);
  z-index: 0;
}
.flow-step {
  flex: 1;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}
.flow-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  background: var(--green);
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  border-radius: 50%;
  margin: 0 auto 20px;
  border: 4px solid var(--gold);
  font-style: italic;
}
.flow-step h3 {
  font-size: 16px;
  font-weight: bold;
  color: var(--green);
  margin-bottom: 10px;
}
.flow-step p { font-size: 13px; line-height: 1.7; }

/* ===== お客様の声 ===== */
.sec-voice {
  background-color: #f5f0e8;
}
.voice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 10px;
}
.voice-card {
  background: #fff;
  border-radius: 4px;
  padding: 28px 22px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  position: relative;
}
.voice-card::before {
  content: '\201C';
  font-size: 60px;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: -10px;
  opacity: 0.6;
}
.voice-card p { font-size: 14px; line-height: 1.8; color: #444; }
.voice-meta {
  margin-top: 14px;
  font-size: 12px;
  color: var(--gold-d);
  border-top: 1px dashed var(--gold);
  padding-top: 10px;
}

/* ===== CTA クロージング ===== */
.sec-cta {
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 80px 30px;
}
.sec-cta h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: bold;
  line-height: 1.5;
  margin-bottom: 20px;
}
.sec-cta p {
  font-size: 15px;
  line-height: 1.9;
  opacity: 0.93;
  max-width: 660px;
  margin: 0 auto 36px;
}
.sec-cta .btn-cta { background: var(--gold-d); }
.sec-cta .btn-cta:hover { background: #7a5620; }
.cta-tel {
  margin-top: 22px;
  font-size: 14px;
  opacity: 0.8;
}
.cta-tel strong { font-size: 22px; display: block; color: var(--gold); }

/* ===== Footer ===== */
.site-footer {
  background: var(--green-deep);
  color: rgba(255,255,255,0.75);
  padding: 40px 30px 24px;
  font-size: 13px;
}
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.site-footer img {
  width: 180px;
  height: auto;
  margin: 0 auto 18px;
  display: block;
}
.footer-brand { color: rgba(255,255,255,0.75); line-height: 1.8; }
.footer-brand a {
  color: var(--gold);
  text-decoration: none;
}
.footer-brand a:hover { text-decoration: underline; }
.footer-copy {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  margin-top: 30px;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

/* ===== スクロールフェードイン ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* 悩みカードのみ stagger（120msずつ順に表示） */
.problem-card.reveal:nth-child(1) { transition-delay: 0ms; }
.problem-card.reveal:nth-child(2) { transition-delay: 120ms; }
.problem-card.reveal:nth-child(3) { transition-delay: 240ms; }
.problem-card.reveal:nth-child(4) { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-cta::after { transition: none; }
}

/* ===== モバイル固定CTAバー ===== */
.mobile-cta-bar { display: none; }

/* ===== Responsive (max-width: 639px) ===== */
@media (max-width: 639px) {
  .container { padding: 0 18px; }
  .section { padding: 50px 0; }
  .section-title { font-size: 22px; letter-spacing: 0.02em; }
  .pc-only { display: none; }

  /* FV */
  .fv { padding: 70px 20px 60px; }
  .fv h1 { font-size: 25px; }
  .sp-only { display: inline; }
  .fv-tagline img { width: 60%; max-width: 200px; height: auto; }
  .fv-sub { font-size: 14px; }
  .fv .btn-cta { font-size: 15px; padding: 16px 28px; }
  .fv::before { background-size: 4px 4px; background-position: 0 0, 2px 2px; opacity: 0.12; }

  /* FV ケンバーンズ（モバイルは振れ幅を半分程度に） */
  @keyframes fvKen1 {
    from { transform: scale(1.0); }
    to   { transform: scale(1.075); }
  }
  @keyframes fvKen2 {
    from { transform: scale(1.06) translate(-1%, 0.5%); }
    to   { transform: scale(1.09) translate(1%, -0.5%); }
  }
  @keyframes fvKen3 {
    from { transform: scale(1.16); }
    to   { transform: scale(1.08); }
  }

  /* モバイル固定CTAバー */
  .mobile-cta-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: rgba(255,255,255,0.95);
    border-top: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    padding: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    transform: translateY(110%);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
  }
  .mobile-cta-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
  }
  .mobile-cta-bar .btn-cta {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 15px;
    padding: 16px 28px;
  }

  /* Problem */
  .problem-grid { grid-template-columns: 1fr; }

  /* Reason */
  .reason-list { grid-template-columns: 1fr; }

  /* Career table：カード型に縦積み */
  .career-table { font-size: 12px; }
  .career-table,
  .career-table tbody,
  .career-table tr,
  .career-table th,
  .career-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .career-table thead { display: none; } /* ヘッダー行は<thead>内にあるため一発で隠せる */
  .career-table tr {
    margin-bottom: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
  }
  /* 実マークアップは各行とも<td>2つ構成（業界名がth化されていない）ため、
     td:first-child を業界名の帯として扱う。PC用の nth-child(even) ストライプと
     td:first-child(nowrap/緑文字)はここで明示的に打ち消す */
  .career-table td {
    padding: 12px 14px;
    border-bottom: none;
  }
  .career-table td:first-child,
  .career-table tr:nth-child(even) td:first-child {
    background: var(--green);
    color: #fff;
    font-weight: bold;
    white-space: normal;
  }
  .career-table td:last-child,
  .career-table tr:nth-child(even) td:last-child {
    background: #fff;
    color: var(--text);
    font-weight: normal;
  }

  /* Flow */
  .flow-list { flex-direction: column; gap: 20px; }
  .flow-list::before { display: none; }
  .flow-step { display: flex; align-items: flex-start; gap: 18px; text-align: left; }
  .flow-num { flex-shrink: 0; width: 54px; height: 54px; font-size: 20px; margin: 0; }

  /* Voice */
  .voice-grid { grid-template-columns: 1fr; }

  /* CTA */
  .sec-cta h2 { font-size: 20px; }
  .sec-cta p { text-align: left; }
  .sec-cta .btn-cta { font-size: 14px; padding: 16px 20px; letter-spacing: 0.02em; }
  .sec-cta .btn-cta::after { margin-left: 0.4em; }

  /* Footer */
  .site-footer { padding-bottom: 100px; }
  .site-footer img { width: 55%; max-width: 160px; height: auto; }
}

/* 375px前後の狭い画面のみ、クロージングCTAボタンをさらに縮小して1行に収める */
@media (max-width: 379px) {
  .sec-cta .btn-cta { font-size: 13px; padding: 16px 16px; }
  .sec-cta .btn-cta::after { margin-left: 0.3em; }
}

/* ===== お問い合わせフォーム（CF7 / .lp-form） ===== */

/* CF7の入力欄は wpcf7-form-control-wrap という inline span で包まれて出力される。
   このspanが幅を持たないと中のinputへのwidth指定が一切効かないため必須。 */
.lp-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.lp-form { display: flex; flex-direction: column; gap: 26px; }
.lp-form p { margin: 0; } /* CF7がpタグを自動挿入するための余白リセット */
.form-row { display: flex; flex-direction: column; gap: 8px; }

.lp-form label {
  font-size: 14px;
  font-weight: bold;
  color: var(--green);
  font-family: var(--font-sans);
}

.required {
  display: inline-block;
  font-size: 11px;
  font-weight: normal;
  color: var(--gold-d);
  border: 1px solid var(--gold);
  padding: 2px 8px;
  border-radius: 2px;
  margin-left: 8px;
  letter-spacing: 0.08em;
}

/* ---- 入力欄 ---- */
.lp-form .form-input {
  width: 100%;
  font-size: 16px; /* iOS Safariの自動ズーム防止のため下げないこと */
  font-family: var(--font-sans);
  padding: 14px 16px;
  border: 1px solid #d8d8d8;
  border-radius: 3px;
  background: #fff;
  color: var(--text);
  appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.lp-form .form-input::placeholder { color: #aaa; }
.lp-form .form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,160,99,0.18);
  outline: none;
}

.lp-form textarea.form-input {
  min-height: 140px;
  resize: vertical;
}

/* appearanceを消した分、矢印をCSSグラデーションで自作する */
.lp-form select.form-input {
  padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold-d) 50%),
    linear-gradient(135deg, var(--gold-d) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) center,
    calc(100% - 15px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* 生年月日など：iOS Safariで高さが揃わない対策 */
.lp-form input[type="date"].form-input {
  min-height: 52px;
  -webkit-appearance: none;
}

/* ---- ラジオボタン（相談方法など） ---- */
.wpcf7-radio { display: flex; gap: 12px; }
.wpcf7-list-item { margin: 0; flex: 1; }
.wpcf7-list-item label {
  display: block;
  text-align: center;
  padding: 14px;
  border: 1px solid #d8d8d8;
  border-radius: 3px;
  cursor: pointer;
  transition: all .2s;
  position: relative;
}
.wpcf7-list-item input[type="radio"] {
  opacity: 0;
  position: absolute;
}
.wpcf7-list-item-label { position: relative; z-index: 1; }

/* 優先：:has() 対応環境ではラベル本体の枠・背景を直接切り替える */
.wpcf7-list-item label:has(input[type="radio"]:checked) {
  border-color: var(--gold-d);
  background: var(--gold-d);
  color: #fff;
}

/* フォールバック：:has() 非対応環境では、input直後のspanを
   ラベルいっぱいに広げて背景を塗ることで同じ見た目を再現する */
@supports not selector(:has(a)) {
  .wpcf7-list-item input[type="radio"]:checked + .wpcf7-list-item-label {
    display: block;
    margin: -14px;
    padding: 14px;
    background: var(--gold-d);
    color: #fff;
    border-radius: 3px;
  }
}

/* ---- プライバシーポリシー枠 ---- */
.form-privacy {
  height: 180px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  padding: 20px;
  background: var(--bg-gray);
  font-size: 13px;
  line-height: 1.9;
}
.form-privacy h3 { font-size: 14px; color: var(--green); margin-bottom: 12px; }
.form-privacy p { margin-bottom: 12px; }

/* ---- 同意チェックボックス ---- */
.form-confirm {
  background: #fffbea;
  border-left: 4px solid var(--gold);
  padding: 18px 20px;
}
.form-confirm label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.7;
}
.form-confirm input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--gold-d);
}

/* ---- 送信ボタン ---- */
/* .btn-cta の基本スタイルが既に当たっている。input要素には::afterが付かないため矢印は出ないが仕様として許容する */
.lp-form input[type="submit"] {
  width: 100%;
  max-width: 400px;
  display: block;
  margin: 10px auto 0;
}

/* ---- CF7のエラー・完了メッセージ ---- */
.wpcf7-not-valid-tip { color: #c0392b; font-size: 13px; margin-top: 6px; }
.wpcf7-not-valid { border-color: #c0392b; }
.wpcf7-response-output {
  margin: 24px 0 0;
  padding: 16px 20px;
  border-radius: 3px;
  font-size: 14px;
  border-width: 1px;
}
.wpcf7-form.sent .wpcf7-response-output { border-color: var(--gold); background: #fffbea; }
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output { border-color: #c0392b; background: #fdf3f2; }
.wpcf7-spinner { display: block; margin: 12px auto 0; }

@media (max-width: 639px) {
  .lp-form { gap: 22px; }
  .lp-form .form-input { padding: 13px 14px; } /* font-sizeは16px維持（iOSズーム対策のため下げない） */
  .form-privacy { height: 150px; }
}
