/* ================================================================
   Faro LP v6 — 完全画像LP (Header/Footer/フォームのみコード)
   ================================================================ */
:root {
  --color-brand: #1a5d3d;
  --color-brand-dark: #0d3a26;
  --color-gold: #c9a44e;
  --color-gold-light: #e8c878;
  --color-gold-dark: #b8923c;
  --surface-light: #ffffff;
  --surface-light-alt: #e8f0ec;
  --surface-dark: #1a5d3d;
  --text-on-light: #1f2d24;
  --text-on-light-muted: #475569;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #c8d4cd;
  --text-on-gold: #0d1f17;
  --border-light: #e8e6df;
  --border-dark: rgba(255, 255, 255, 0.18);
  --border-gold: rgba(201, 164, 78, 0.45);
  --focus-ring: #ffd86b;

  --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px;
  --space-6: 24px; --space-8: 32px; --space-10: 40px; --space-12: 48px;
  --space-16: 64px; --space-20: 80px; --space-24: 96px;

  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 20px; --radius-pill: 100px;

  --container: 1200px;
  --header-h: 72px;
  --section-py: clamp(64px, 8vw, 112px);

  --font: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  --font-en: 'Inter', 'Noto Sans JP', system-ui, sans-serif;

  --shadow-sm: 0 1px 3px rgba(12, 58, 46, 0.08);
  --shadow-md: 0 8px 24px rgba(12, 58, 46, 0.12);
  --shadow-lg: 0 20px 48px rgba(12, 58, 46, 0.20);
  --shadow-gold: 0 8px 24px rgba(201, 164, 78, 0.35);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-on-light);
  background: var(--surface-light);
  -webkit-font-smoothing: antialiased;
}
img, svg, picture { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.15s ease, opacity 0.15s ease; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }
[id] { scroll-margin-top: var(--header-h); }

/* ============ a11y ============ */
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus, .skip-link:focus-visible {
  left: 12px; top: 12px;
  background: var(--surface-dark); color: #fff;
  padding: 8px 16px; z-index: 9999;
  border-radius: var(--radius-sm);
  outline: 3px solid var(--focus-ring);
}
*:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: var(--radius-sm); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
main:focus { outline: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: clamp(20px, 4vw, 40px); }

/* ============ Header ============ */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  position: sticky; top: 0; z-index: 100;
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-6); height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__icon { height: 40px; width: 40px; object-fit: contain; border-radius: 6px; }
.brand__text { font-family: var(--font-en); font-size: 22px; font-weight: 800; color: var(--surface-dark); letter-spacing: -0.01em; line-height: 1; }
.brand--inverse .brand__text { color: #fff; }

.global-nav { display: none; }
.global-nav ul { display: flex; gap: var(--space-6); }
.global-nav a { font-size: 13px; font-weight: 700; color: var(--text-on-light); }
.global-nav a:hover { color: var(--color-brand); }

.header-cta { display: none; }

.nav-toggle {
  width: 44px; height: 44px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: var(--surface-dark);
  border-radius: var(--radius-sm);
}
.nav-toggle__bar { width: 18px; height: 2px; background: #fff; transition: transform 0.2s, opacity 0.15s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sp-nav {
  position: fixed; top: var(--header-h); left: 0; right: 0;
  background: var(--surface-light);
  padding: var(--space-6) clamp(20px, 4vw, 40px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  z-index: 99;
}
.sp-nav[hidden] { display: none; }
.sp-nav ul { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-6); }
.sp-nav a { display: block; padding: var(--space-3) var(--space-4); font-weight: 700; border-radius: var(--radius-sm); }
.sp-nav a:hover { background: var(--surface-light-alt); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2); font-weight: 700; font-family: var(--font);
  border-radius: var(--radius-pill); white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.2s, background-color 0.2s;
  text-align: center;
}
.btn::after { content: "→"; transition: transform 0.2s; }
.btn:hover::after { transform: translateX(3px); }
.btn--gold {
  background: linear-gradient(180deg, var(--color-gold-light) 0%, var(--color-gold) 50%, var(--color-gold-dark) 100%);
  color: var(--text-on-gold);
  box-shadow: var(--shadow-gold);
  border: 1px solid var(--color-gold-dark);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(201, 164, 78, 0.45); }
.btn--sm { padding: 10px 18px; font-size: 13px; min-height: 40px; }
.btn--lg { padding: 18px 32px; font-size: 15px; min-height: 56px; min-width: 240px; }
.btn--xl { padding: 22px 40px; font-size: 16px; min-height: 60px; min-width: 280px; }
.btn--full { width: 100%; }

/* ============ Section 画像LP本体 ============ */
.sec {
  position: relative;
  width: 100%;
  display: block;
  overflow: hidden;
}
.sec picture, .sec img {
  width: 100%; height: auto; display: block;
  margin: 0;
}

/* CTA Overlay (画像上の透明クリック領域)
   各セクション画像のCTAボタン位置に重ねる */
.sec__cta-overlay {
  position: absolute;
  display: block;
  background: transparent;
  border-radius: var(--radius-md);
  z-index: 2;
  transition: box-shadow 0.2s ease;
  min-width: 200px;
  min-height: 56px;
}
.sec__cta-overlay:hover {
  box-shadow: 0 0 0 4px rgba(255, 216, 107, 0.4), 0 12px 32px rgba(201, 164, 78, 0.35);
}
.sec__cta-overlay:focus-visible {
  outline: 4px solid var(--focus-ring) !important;
  outline-offset: 2px;
}
/* Hero CTA は画像下部中央付近 */
.sec__cta-overlay--hero {
  left: 50%; transform: translateX(-50%);
  bottom: 18%;
  width: min(56%, 380px);
  height: 12%;
  min-height: 56px;
}
/* Service CTA は画像下部中央 */
.sec__cta-overlay--service {
  left: 50%; transform: translateX(-50%);
  bottom: 8%;
  width: min(60%, 400px);
  height: 12%;
  min-height: 56px;
}
/* Final CTA は画像下部中央 */
.sec__cta-overlay--final {
  left: 50%; transform: translateX(-50%);
  bottom: 22%;
  width: min(62%, 420px);
  height: 12%;
  min-height: 56px;
}

/* ============ Contact Form (Section 9 のみコード) ============ */
.contact {
  padding-block: var(--section-py);
  background: var(--surface-light-alt);
}
.contact__inner { max-width: 800px; margin: 0 auto; }
.section__head { text-align: center; margin-bottom: var(--space-10); }
.section__title {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--surface-dark);
}
.section__lead {
  margin-top: var(--space-3);
  font-size: 15px;
  color: var(--text-on-light-muted);
}
.contact-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}
.form-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-5); margin-bottom: var(--space-8); }
.form-row { display: flex; flex-direction: column; gap: var(--space-2); }
.form-label {
  font-size: 14px; font-weight: 700; color: var(--text-on-light);
  display: flex; align-items: center; gap: var(--space-2);
}
.required { color: #d94545; font-weight: 700; }
.optional {
  font-size: 11px; font-weight: 600; color: var(--text-on-light-muted);
  background: var(--surface-light-alt);
  padding: 2px 8px; border-radius: var(--radius-pill);
}
.form-input {
  width: 100%; padding: 14px 16px;
  font-size: 15px; color: var(--text-on-light);
  background: #fff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input::placeholder { color: var(--text-on-light-muted); }
.form-input:hover { border-color: var(--text-on-light-muted); }
.form-input:focus { outline: none; border-color: var(--color-brand); box-shadow: 0 0 0 4px rgba(26, 93, 61, 0.15); }
.form-input.is-invalid { border-color: #d94545; box-shadow: 0 0 0 3px rgba(217, 69, 69, 0.15); }
select.form-input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-on-light-muted) 50%), linear-gradient(135deg, var(--text-on-light-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 12px) center;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.form-status { margin-top: var(--space-4); text-align: center; font-size: 14px; font-weight: 600; min-height: 24px; }
.form-status:empty { display: none; }

/* ============ Footer ============ */
.site-footer {
  background: var(--surface-dark);
  color: var(--text-on-dark);
  padding-block: var(--space-12);
}
.footer__inner {
  display: grid; grid-template-columns: 1fr; gap: var(--space-6); align-items: center;
}
.footer__brand { display: flex; align-items: center; gap: var(--space-5); }
.footer__brand .brand__icon { height: 32px; width: 32px; }
.footer__org { font-size: 13px; line-height: 1.7; color: var(--text-on-dark-muted); }
.footer__org small { font-size: 11px; color: var(--text-on-dark-muted); }
.footer__nav ul { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.footer__nav a { font-size: 13px; color: var(--text-on-dark-muted); }
.footer__nav a:hover { color: #fff; }
.footer__nav__pending { font-size: 13px; color: var(--text-on-dark-muted); opacity: 0.55; cursor: not-allowed; }

/* ============ Responsive ============ */
@media (min-width: 768px) {
  .global-nav { display: flex; }
  .header-cta { display: flex; }
  .nav-toggle { display: none; }
  .sp-nav { display: none !important; }
  .form-grid { grid-template-columns: 1fr 1fr; gap: var(--space-5) var(--space-6); }
  .footer__inner { grid-template-columns: 1fr auto; gap: var(--space-10); }
  .footer__nav ul { justify-content: flex-end; }
}

/* ============ PC: 画像本来の比率で全体表示 (見切れ・重なりゼロ) ============ */
@media (min-width: 1024px) {
  .sec {
    width: 100%;
    margin: 0;
    background: var(--surface-dark);
    display: block;
    padding: 0;
    overflow: hidden;
    position: relative;
  }
  .sec picture {
    display: block;
    width: 100%;
    line-height: 0;  /* picture下の余白消去 */
  }
  .sec picture img {
    width: 100%;
    height: auto;        /* 画像本来の比率を維持 = 見切れない */
    display: block;
    margin: 0;
    object-fit: unset;
  }
  main { background: var(--surface-light); padding-block: 0; }
  .sec + .sec { margin-top: 0; }

  .contact, .site-footer { height: auto; min-height: auto; }
}

/* CTA Overlay の最小サイズ保証 */
@media (min-width: 1024px) {
  .sec__cta-overlay {
    min-height: 48px;
    min-width: 220px;
  }
}
@media (max-width: 479px) {
  .btn--lg, .btn--xl { min-width: 0; width: 100%; }
  .contact-form { padding: var(--space-6) var(--space-5); }
}
