/* ============================================================
   LWT — Brand Stylesheet
   案G: ロゴオレンジ × アイボリーベージュ
   2026-05-09 — マニュアル新規約準拠 / docs/4_design_system.html
============================================================ */

/* ============================================================
   :root — Brand Variables
============================================================ */
:root {
  /* Primary (Logo Orange) */
  --c-orange:       #F07A35;
  --c-orange-dark:  #D86A28;
  --c-orange-pale:  #FDF0E8;

  /* Accent */
  --c-brown:        #8B5D3F;

  /* Neutral / Surface */
  --c-ivory:        #F5EEDC;
  --c-beige:        #F0E4D0;
  --c-bg:           #FCFAF6;
  --c-white:        #FFFFFF;

  /* Text & Border */
  --c-text:         #3A2E24;
  --c-muted:        #8E7A68;
  --c-border:       #E8DCCC;

  /* Warm Shadows */
  --sd-sm: 0 2px 6px rgba(139, 93, 63, 0.06);
  --sd-md: 0 6px 18px rgba(139, 93, 63, 0.10);
  --sd-lg: 0 14px 40px rgba(139, 93, 63, 0.14);

  /* Easing */
  --ease-breath: cubic-bezier(0.22, 0.8, 0.3, 1);
  --ease-soft:   cubic-bezier(0.34, 0.8, 0.42, 1);

  /* Layout */
  --container:    1120px;
  --container-sm: 720px;
  --gutter:       1.5rem;
}

/* ============================================================
   Reset & Base
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 0.9375rem;
  line-height: 1.9;
  font-feature-settings: "palt";
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; transition: color 0.25s var(--ease-soft); }
a:hover { color: var(--c-orange-dark); }
button { font: inherit; cursor: pointer; border: none; background: transparent; }
ul, ol { list-style: none; }

/* ============================================================
   Typography
============================================================ */
h1, h2, h3, h4 { line-height: 1.4; font-weight: 700; color: var(--c-text); }
.t-hero  { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.3; }
.t-h1    { font-family: 'Playfair Display', serif; font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 700; line-height: 1.3; }
.t-h2    { font-size: clamp(1.35rem, 3vw, 1.625rem); font-weight: 700; }
.t-h3    { font-size: 1.125rem; font-weight: 600; }
.t-body  { font-size: 0.9375rem; font-weight: 400; line-height: 1.9; }
.t-small { font-size: 0.8125rem; font-weight: 400; color: var(--c-muted); }
.t-label { font-size: 0.68rem; font-weight: 600; color: var(--c-orange-dark); letter-spacing: 0.15em; text-transform: uppercase; }

/* ============================================================
   Layout Utilities
============================================================ */
.container    { max-width: var(--container);    margin: 0 auto; padding: 0 var(--gutter); }
.container-sm { max-width: var(--container-sm); margin: 0 auto; padding: 0 var(--gutter); }

/* セクション背景（4色ローテーション） */
.sec          { padding: clamp(3rem, 8vw, 5rem) 0; }
.sec-bg       { background: var(--c-bg); }
.sec-ivory    { background: var(--c-ivory); }
.sec-beige    { background: var(--c-beige); }
.sec-orange   { background: var(--c-orange-pale); }

/* セクションタイトル（案3） */
.sec-title-block { text-align: center; margin-bottom: clamp(2rem, 5vw, 3rem); }
.sec-title-block .label {
  display: inline-block;
  font-size: 0.68rem; letter-spacing: 0.12em;
  color: var(--c-orange-dark); font-weight: 700;
  background: var(--c-orange-pale);
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}
.sec-title-block h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 1.85rem);
  font-weight: 700;
  color: var(--c-text);
}
.sec-title-block .sub {
  font-size: 0.9rem;
  color: var(--c-muted);
  margin-top: 0.5rem;
}

/* ============================================================
   Header (案1)
============================================================ */
.hd {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  padding: 1.25rem 0;
  transition: box-shadow 0.3s var(--ease-soft);
}
.hd.is-scrolled { box-shadow: var(--sd-sm); }
.hd-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.hd-logo { display: flex; align-items: center; }
.hd-logo img { height: 64px; width: auto; }
.hd-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem; font-weight: 700;
  color: var(--c-orange);
  letter-spacing: 0.05em;
}
.hd-nav { display: flex; gap: 1.75rem; }
.hd-nav a {
  font-size: 0.85rem; font-weight: 500;
  color: var(--c-text);
  position: relative; padding: 0.25rem 0;
}
.hd-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--c-orange);
  transition: width 0.3s var(--ease-breath);
}
.hd-nav a:hover::after, .hd-nav a.is-current::after { width: 100%; }
.hd-cta {
  display: inline-block;
  background: var(--c-orange);
  color: var(--c-white);
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-size: 0.8rem; font-weight: 600;
  box-shadow: 0 3px 10px rgba(240, 122, 53, 0.22);
  transition: all 0.3s var(--ease-breath);
}
.hd-cta:hover {
  background: var(--c-orange-dark);
  color: var(--c-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(240, 122, 53, 0.32);
}

.hd-burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
}
.hd-burger span {
  width: 22px; height: 2px;
  background: var(--c-text);
  transition: all 0.3s var(--ease-breath);
}
.hd-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hd-burger.is-open span:nth-child(2) { opacity: 0; }
.hd-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* デスクトップではモバイルメニューを非表示（@media 内で表示に切替） */
.hd-mobile { display: none; }

@media (max-width: 768px) {
  .hd-nav, .hd-inner > .hd-cta { display: none; }
  .hd-burger { display: flex; }
  .hd-mobile {
    display: block;
    position: fixed; top: 96px; left: 0; right: 0; bottom: 0;
    background: var(--c-white);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-breath);
    padding: 2rem var(--gutter);
    overflow-y: auto; z-index: 99;
  }
  .hd-mobile.is-open { transform: translateX(0); }
  .hd-mobile a {
    display: block;
    font-size: 1rem; font-weight: 500;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--c-border);
    color: var(--c-text);
  }
  .hd-mobile .hd-cta {
    display: block; text-align: center; margin-top: 1.5rem;
  }
}

/* ============================================================
   Hero (案1 + 写真スライドショー)
============================================================ */
.hero {
  position: relative;
  min-height: clamp(480px, 70vh, 640px);
  overflow: hidden;
  background: linear-gradient(135deg, #8B5D3F 0%, #F07A35 100%);
  color: var(--c-white);
  display: flex; align-items: center; justify-content: center;
}
.hero-slideshow { position: absolute; inset: 0; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  animation: heroSlideShow 28s infinite cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 7s; }
.hero-slide:nth-child(3) { animation-delay: 14s; }
.hero-slide:nth-child(4) { animation-delay: 21s; }

@keyframes heroSlideShow {
  0%   { opacity: 0; transform: scale(1.08) translate(0, 0); }
  5%   { opacity: 1; transform: scale(1.08) translate(0, 0); }
  25%  { opacity: 1; transform: scale(1.0)  translate(-1%, 1%); }
  30%  { opacity: 0; transform: scale(1.0)  translate(-1%, 1%); }
  100% { opacity: 0; }
}

.hero-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(72px); mix-blend-mode: screen;
}
.hero-orb-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #FFC68E 0%, transparent 70%);
  top: -8%; left: -6%; opacity: 0.55;
  animation: heroDrift1 18s ease-in-out infinite;
}
.hero-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #F07A35 0%, transparent 70%);
  top: 12%; right: -14%; opacity: 0.5;
  animation: heroDrift2 22s ease-in-out infinite;
}
.hero-orb-3 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, #F5EEDC 0%, transparent 70%);
  bottom: -14%; left: 30%; opacity: 0.45;
  animation: heroDrift3 16s ease-in-out infinite;
}
@keyframes heroDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.55; }
  50%      { transform: translate(70px, 50px) scale(1.2); opacity: 0.68; }
}
@keyframes heroDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.50; }
  50%      { transform: translate(-90px, 40px) scale(0.9); opacity: 0.62; }
}
@keyframes heroDrift3 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.45; }
  50%      { transform: translate(40px, -70px) scale(1.1); opacity: 0.58; }
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(58, 46, 36, 0.35) 0%,
    rgba(58, 46, 36, 0.18) 50%,
    rgba(58, 46, 36, 0.48) 100%);
}

.hero-content {
  position: relative; z-index: 10;
  text-align: center;
  padding: 2rem var(--gutter);
  max-width: 720px;
}
.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700; line-height: 1.35;
  margin-bottom: 0.85rem;
  text-shadow: 0 2px 16px rgba(58, 46, 36, 0.4);
  color: var(--c-white);
}
.hero-content p.lead {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  margin-bottom: 1.75rem;
  text-shadow: 0 1px 8px rgba(58, 46, 36, 0.35);
}

/* 下層用 subhero */
.subhero {
  background: linear-gradient(135deg, #8B5D3F 0%, #F07A35 100%);
  color: var(--c-white);
  padding: clamp(3rem, 8vw, 5rem) 0;
  text-align: center;
  position: relative; overflow: hidden;
}
.subhero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(255, 198, 142, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(245, 238, 220, 0.2) 0%, transparent 50%);
}
.subhero-inner { position: relative; z-index: 1; }
.subhero .label {
  display: inline-block;
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
  backdrop-filter: blur(4px);
}
.subhero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--c-white);
}
.subhero p {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  opacity: 0.9;
}

/* ページ別の背景写真 — グラデーションオーバーレイ + 写真 */
.subhero.subhero-about,
.subhero.subhero-services,
.subhero.subhero-contact,
.subhero.subhero-bousai {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.subhero.subhero-about {
  background-image:
    linear-gradient(135deg, rgba(139, 93, 63, 0.72) 0%, rgba(240, 122, 53, 0.6) 100%),
    url('/img/subhero-about.png');
}
.subhero.subhero-services {
  background-image:
    linear-gradient(135deg, rgba(139, 93, 63, 0.72) 0%, rgba(240, 122, 53, 0.6) 100%),
    url('/img/subhero-services.jpg');
}
.subhero.subhero-contact {
  background-image:
    linear-gradient(135deg, rgba(139, 93, 63, 0.72) 0%, rgba(240, 122, 53, 0.6) 100%),
    url('/img/subhero-contact.jpg');
}
.subhero.subhero-bousai {
  background-image:
    linear-gradient(135deg, rgba(139, 93, 63, 0.72) 0%, rgba(240, 122, 53, 0.6) 100%),
    url('/img/subhero-bousai.jpg');
}
.subhero.subhero-policy {
  background-image:
    linear-gradient(135deg, rgba(139, 93, 63, 0.72) 0%, rgba(240, 122, 53, 0.6) 100%),
    url('/img/subhero-policy.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 代表のサイン（Klee One ペン字風） */
.signature {
  font-family: 'Klee One', 'Noto Sans JP', cursive;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--c-brown);
  letter-spacing: 0.08em;
  margin-left: 0.4rem;
}

/* ============================================================
   Breadcrumb (案1)
============================================================ */
.bc {
  background: var(--c-orange-pale);
  padding: 0.75rem 0;
  font-size: 0.78rem;
}
.bc-inner { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.bc a { color: var(--c-muted); }
.bc a:hover { color: var(--c-orange-dark); }
.bc .sep { color: var(--c-border); font-size: 0.7rem; }
.bc .current { color: var(--c-text); font-weight: 600; }

/* ============================================================
   Buttons
============================================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-size: 0.9rem; font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-breath);
  border: none; text-align: center;
}
.btn-primary {
  background: var(--c-orange);
  color: var(--c-white);
  box-shadow: 0 3px 10px rgba(240, 122, 53, 0.22);
}
.btn-primary:hover {
  background: var(--c-orange-dark);
  color: var(--c-white);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 0 8px rgba(240, 122, 53, 0.15), 0 10px 28px rgba(240, 122, 53, 0.32);
}
.btn-outline {
  background: transparent;
  color: var(--c-orange-dark);
  border: 1.5px solid var(--c-orange);
}
.btn-outline:hover {
  background: var(--c-orange);
  color: var(--c-white);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--c-brown);
  padding: 0.5rem 0;
  border-bottom: 1.5px solid var(--c-brown);
  border-radius: 0;
}
.btn-ghost:hover {
  color: var(--c-orange-dark);
  border-bottom-color: var(--c-orange);
}

/* ============================================================
   Cards (案1)
============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--c-white);
  padding: clamp(1.5rem, 3vw, 2rem) 1.5rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--c-border);
  transition: all 0.4s var(--ease-breath);
  box-shadow: var(--sd-sm);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sd-lg);
}
.card .icon {
  width: 100%;
  height: 150px;
  background: var(--c-ivory);
  color: var(--c-orange-dark);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 0 1.25rem;
  overflow: hidden;
  transition: background 0.4s var(--ease-breath);
}
.card:hover .icon {
  background: var(--c-orange-pale);
}
.card .icon svg {
  width: 34px; height: 34px;
}
.card .icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s var(--ease-breath);
}
.card:hover .icon img {
  transform: scale(1.04);
}

.card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.card p { font-size: 0.85rem; color: var(--c-muted); line-height: 1.8; }

.step-card {
  background: var(--c-white);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid var(--c-orange);
  transition: all 0.3s var(--ease-soft);
  box-shadow: var(--sd-sm);
}
.step-card:hover {
  border-left-color: var(--c-orange-dark);
  transform: translateX(4px);
  box-shadow: var(--sd-md);
}
.step-card .num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700;
  color: var(--c-orange);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.step-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.step-card p { font-size: 0.85rem; color: var(--c-muted); }

/* ============================================================
   CTA Band (Brown)
============================================================ */
.cta-band {
  background: var(--c-orange-pale);
  color: var(--c-text);
  padding: clamp(2.5rem, 6vw, 3.5rem) 0;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(255, 198, 142, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 70%, rgba(240, 228, 208, 0.5) 0%, transparent 55%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--c-brown);
  margin-bottom: 0.85rem;
}
.cta-band p {
  font-size: 0.92rem;
  color: var(--c-muted);
  margin-bottom: 1.5rem;
}
.cta-band .btn-primary {
  background: var(--c-orange);
  color: var(--c-white);
}
.cta-band .btn-primary:hover {
  background: var(--c-orange-dark);
  color: var(--c-white);
}

/* ============================================================
   Footer (案1/A)
============================================================ */
.ft {
  background: var(--c-text);
  color: var(--c-ivory);
  padding: 3rem 0 1.5rem;
}
.ft-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
  align-items: start;
}
.ft-brand .logo {
  display: inline-block;
  margin-bottom: 0.85rem;
  background: var(--c-white);
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  line-height: 0;
  text-decoration: none;
}
.ft-brand .logo img {
  display: block;
  height: 52px; width: auto;
}
.ft-brand p {
  font-size: 0.82rem; color: rgba(245, 238, 220, 0.75);
  line-height: 1.9;
}
.ft h5 {
  font-size: 0.78rem; font-weight: 700;
  color: var(--c-orange);
  margin-bottom: 0.85rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.ft a {
  display: block;
  font-size: 0.82rem;
  color: rgba(245, 238, 220, 0.75);
  line-height: 2;
}
.ft a:hover { color: var(--c-orange); }
.ft-bottom {
  border-top: 1px solid rgba(245, 238, 220, 0.12);
  padding-top: 1.25rem;
  font-size: 0.72rem;
  color: rgba(245, 238, 220, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}
.ft-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.ft-legal a {
  color: rgba(245, 238, 220, 0.65);
  text-decoration: none;
  transition: color 0.2s var(--ease-breath);
}
.ft-legal a:hover { color: var(--c-orange); }
.ft-legal-sep { opacity: 0.4; }
.ft-credit { text-align: center; margin: 0; }

/* ============================================================
   Privacy / Personal Info page
============================================================ */
.privacy-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--sd-sm);
}
.privacy-intro {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--c-text);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed var(--c-border);
}
.privacy-block { margin-bottom: 1.85rem; }
.privacy-block-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 0.75rem;
}
.privacy-block-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: var(--c-orange);
  color: var(--c-white);
  border-radius: 50%;
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.privacy-block p {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--c-text);
  margin-bottom: 0.5rem;
}
.privacy-block ul {
  margin: 0.6rem 0;
  padding: 0;
  list-style: none;
}
.privacy-block li {
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--c-text);
  padding-left: 1.2rem;
  position: relative;
}
.privacy-block li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--c-orange);
  font-weight: 700;
}
.privacy-note {
  font-size: 0.82rem !important;
  color: var(--c-muted) !important;
  background: var(--c-ivory);
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  margin-top: 0.6rem;
}
.privacy-meta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-border);
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--c-text);
}
.privacy-meta-heading {
  font-weight: 700;
  margin-bottom: 0.4rem !important;
}
.privacy-meta a { color: var(--c-orange-dark); }
.privacy-updated {
  font-size: 0.78rem !important;
  color: var(--c-muted) !important;
  margin-top: 1.4rem !important;
}
.privacy-company {
  font-weight: 600 !important;
  color: var(--c-brown) !important;
}

@media (max-width: 768px) {
  .ft-row { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   Animations — Stagger (案C)
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--ease-breath), transform 0.9s var(--ease-breath);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--ease-breath), transform 0.9s var(--ease-breath);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.00s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.30s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.60s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.75s; opacity: 1; transform: translateY(0); }

/* ============================================================
   Loading Screen
============================================================ */
.loader {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}
.loader::before, .loader::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 50%;
  transform: scaleY(1);
  z-index: 1;
  pointer-events: auto;
}
.loader::before {
  top: 0;
  transform-origin: top;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(240, 122, 53, 0.18) 0%, transparent 70%),
    var(--c-ivory);
}
.loader::after {
  bottom: 0;
  transform-origin: bottom;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(139, 93, 63, 0.12) 0%, transparent 70%),
    var(--c-ivory);
}
.loader-content {
  position: relative; z-index: 5;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.loader-logo {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 700;
  color: var(--c-orange);
  letter-spacing: 0.04em; line-height: 1;
  opacity: 0; transform: scale(0.92); filter: blur(6px);
}
.loader-slogan {
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  color: var(--c-brown);
  font-weight: 600;
  margin-top: 1rem;
  opacity: 0; transform: translateY(8px); filter: blur(3px);
  text-indent: 0.42em;
}
.loader-line {
  width: 0; height: 1.5px;
  background: var(--c-orange);
  margin-top: 1rem; border-radius: 1px;
}

.loader.is-playing .loader-logo {
  animation: loaderFadeIn 1.0s var(--ease-breath) 0.2s forwards;
}
.loader.is-playing .loader-slogan {
  animation: loaderFadeIn 0.9s var(--ease-breath) 0.85s forwards;
}
.loader.is-playing .loader-line {
  animation: loaderDrawLine 0.9s var(--ease-breath) 1.5s forwards;
}
.loader.is-playing .loader-content {
  animation: loaderContentExit 0.7s var(--ease-breath) 2.5s forwards;
}
.loader.is-playing::before {
  animation: loaderCurtainTop 1.1s cubic-bezier(0.7, 0, 0.3, 1) 2.7s forwards;
}
.loader.is-playing::after {
  animation: loaderCurtainBottom 1.1s cubic-bezier(0.7, 0, 0.3, 1) 2.7s forwards;
}
.loader.is-done { display: none; }

@keyframes loaderFadeIn {
  0%   { opacity: 0; transform: scale(0.92) translateY(8px); filter: blur(6px); }
  100% { opacity: 1; transform: scale(1)    translateY(0);   filter: blur(0); }
}
@keyframes loaderDrawLine {
  0%   { width: 0; }
  100% { width: 90px; }
}
@keyframes loaderContentExit {
  0%   { opacity: 1; transform: translateY(0)    scale(1);   filter: blur(0); }
  100% { opacity: 0; transform: translateY(-10px) scale(1.02); filter: blur(3px); }
}
@keyframes loaderCurtainTop {
  0%   { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}
@keyframes loaderCurtainBottom {
  0%   { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}

/* ============================================================
   Form
============================================================ */
.form { max-width: 640px; margin: 0 auto; }
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.8rem; font-weight: 600;
  color: var(--c-text);
  margin-bottom: 0.4rem;
}
.form-label .req { color: var(--c-orange-dark); margin-left: 0.2rem; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--c-text);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--c-orange);
  box-shadow: 0 0 0 3px rgba(240, 122, 53, 0.15);
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-radio-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.form-radio-group label {
  padding: 0.4rem 1rem;
  border: 1.5px solid var(--c-border);
  border-radius: 999px;
  font-size: 0.82rem;
  cursor: pointer;
  background: var(--c-white);
  transition: all 0.25s var(--ease-soft);
}
.form-radio-group input[type="radio"] { display: none; }
.form-radio-group label:has(input:checked) {
  background: var(--c-orange-pale);
  border-color: var(--c-orange);
  color: var(--c-orange-dark);
  font-weight: 600;
}
.form-error {
  font-size: 0.75rem;
  color: #C84020;
  margin-top: 0.3rem;
}
.form-success {
  background: var(--c-orange-pale);
  border-left: 4px solid var(--c-orange);
  padding: 1.25rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.5rem;
}
.form-success h3 { color: var(--c-orange-dark); font-size: 1rem; margin-bottom: 0.4rem; }
.form-success p { font-size: 0.85rem; color: var(--c-text); }

/* ============================================================
   Definition Table (会社概要等)
============================================================ */
.dl-table {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  overflow: hidden;
}
.dl-table .row {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--c-border);
}
.dl-table .row:last-child { border-bottom: none; }
.dl-table dt {
  background: var(--c-ivory);
  padding: 1rem 1.25rem;
  font-size: 0.85rem; font-weight: 700;
  color: var(--c-brown);
}
.dl-table dd {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--c-text);
}
@media (max-width: 600px) {
  .dl-table .row { grid-template-columns: 1fr; }
  .dl-table dt { padding: 0.7rem 1rem; }
  .dl-table dd { padding: 0.7rem 1rem; }
}

/* ============================================================
   Accessibility — Reduced Motion
============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
  }
  .hero-slide:not(:first-child) { display: none; }
  .hero-slide:first-child { opacity: 1 !important; transform: none !important; }
  .hero-orb { animation: none !important; }
}
