/* ========================================
   株式会社フルラフ コーポレートサイト
   共通スタイル（デザイントークン + 共通部品）
   ======================================== */

/* --- リセット --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* ベース（クリーム / インク） */
  --cream-50: #FAF9F5;
  --cream-100: #F5F3EC;
  --oat-100: #F0EEE6;
  --oat-200: #E8E5DA;
  --line: #E3E0D5;
  --ink-900: #1F1E1D;
  --ink-700: #40403B;
  --ink-500: #6B6A63;
  --dark-900: #21201C;

  /* アクセント（テラコッタ） */
  --terracotta-400: #D97757;
  --terracotta-600: #B7552F;
  --terracotta-700: #9E4526;
  --terracotta-50: #F7EBE3;

  /* 事業カラー */
  --svc-green-600: #4A7C59;
  --svc-green-700: #3E6849;
  --svc-green-50: #EDF2EB;
  --svc-coral-600: #B44F35;
  --svc-coral-700: #9A422C;
  --svc-coral-50: #F8ECE6;
  --svc-blue-600: #4C6E91;
  --svc-blue-700: #3F5C7A;
  --svc-blue-50: #EBF0F5;
  --svc-slate-600: #5D5D57;
  --svc-slate-700: #4C4C47;
  --svc-slate-50: #EFEFEA;

  /* タイポグラフィ */
  --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Lora', 'Noto Serif JP', 'Hiragino Mincho ProN', serif;

  /* その他 */
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(31, 30, 29, 0.06);
  --shadow-md: 0 4px 16px rgba(31, 30, 29, 0.08);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--ink-700);
  line-height: 1.8;
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.sp-only {
  display: none;
}

/* --- ヘッダー --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header__logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo__main {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--ink-900);
}

.logo__sub {
  font-size: 11px;
  color: var(--ink-500);
  letter-spacing: 1px;
}

.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  z-index: 1001;
}

.header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink-900);
  transition: var(--transition);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-700);
  transition: var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--terracotta-400);
  transition: var(--transition);
}

.nav__link:hover {
  color: var(--ink-900);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--cta {
  background: var(--terracotta-600);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 600;
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  background: var(--terracotta-700);
}

/* --- ボタン --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  min-height: 44px;
}

.btn--primary {
  background: var(--terracotta-600);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--terracotta-700);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--ink-900);
  border: 1.5px solid var(--ink-700);
}

.btn--outline:hover {
  background: var(--ink-900);
  color: var(--cream-50);
}

.btn--green {
  background: var(--svc-green-600);
  color: var(--white);
}

.btn--green:hover {
  background: var(--svc-green-700);
  box-shadow: var(--shadow-md);
}

.btn--coral {
  background: var(--svc-coral-600);
  color: var(--white);
}

.btn--coral:hover {
  background: var(--svc-coral-700);
  box-shadow: var(--shadow-md);
}

.btn--teal {
  background: var(--svc-blue-600);
  color: var(--white);
}

.btn--teal:hover {
  background: var(--svc-blue-700);
  box-shadow: var(--shadow-md);
}

.btn--navy {
  background: var(--svc-slate-600);
  color: var(--white);
}

.btn--navy:hover {
  background: var(--svc-slate-700);
  box-shadow: var(--shadow-md);
}

/* --- セクション共通 --- */
.section {
  padding: 100px 0;
}

.section__header {
  text-align: center;
  margin-bottom: 60px;
}

.section__label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--terracotta-600);
  display: block;
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 600;
  color: var(--ink-900);
  position: relative;
  line-height: 1.5;
}

.section__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--terracotta-400);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* --- フッター --- */
.footer {
  background: var(--dark-900);
  color: rgba(245, 243, 236, 0.72);
  padding: 60px 0 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(245, 243, 236, 0.12);
}

.footer__brand .logo__main {
  color: var(--cream-50);
}

.footer__brand .logo__sub {
  color: rgba(245, 243, 236, 0.6);
}

.footer__address {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(245, 243, 236, 0.6);
}

.footer__links {
  display: flex;
  gap: 60px;
}

.footer__col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--cream-50);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.footer__col li {
  margin-bottom: 8px;
}

.footer__col a {
  font-size: 13px;
  color: rgba(245, 243, 236, 0.72);
  transition: var(--transition);
  display: inline-block;
  padding: 4px 0;
}

.footer__col a:hover {
  color: var(--cream-50);
}

.footer__bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(245, 243, 236, 0.55);
}

/* --- ページトップ --- */
.page-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--ink-900);
  color: var(--cream-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 999;
}

.page-top.visible {
  opacity: 1;
  visibility: visible;
}

.page-top:hover {
  background: var(--terracotta-600);
}

.page-top svg {
  width: 20px;
  height: 20px;
}

/* --- モバイル追従CTAバー --- */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  display: none;
  grid-template-columns: 1fr 1.4fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.mobile-cta.visible {
  transform: translateY(0);
}

.mobile-cta__tel,
.mobile-cta__form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  font-size: 14px;
  font-weight: 600;
}

.mobile-cta__tel {
  background: var(--cream-50);
  color: var(--ink-900);
}

.mobile-cta__form {
  background: var(--terracotta-600);
  color: var(--white);
}

.mobile-cta svg {
  flex-shrink: 0;
}

/* --- アニメーション --- */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-up,
  .scroll-fade {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

noscript ~ .scroll-fade,
html:not(.js-enabled) .scroll-fade {
  opacity: 1;
  transform: none;
}

/* --- レスポンシブ（共通部品） --- */
@media (max-width: 768px) {
  .sp-only {
    display: inline;
  }

  .header__toggle {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--cream-50);
    box-shadow: -4px 0 20px rgba(31, 30, 29, 0.12);
    transition: right 0.3s ease;
    padding: 80px 32px 32px;
    z-index: 1000;
  }

  .header__nav.open {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .nav__list > li {
    width: 100%;
  }

  .nav__link {
    font-size: 16px;
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .nav__link--cta {
    width: 100%;
    justify-content: center;
    text-align: center;
    margin-top: 8px;
  }

  .header__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .header__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .header__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .section {
    padding: 64px 0;
  }

  .section__header {
    margin-bottom: 40px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer__links {
    gap: 40px;
  }

  .footer {
    padding-bottom: 56px;
  }

  .mobile-cta {
    display: grid;
  }

  .page-top {
    bottom: 72px;
    right: 16px;
  }
}
