  /* ============================================================
     ご入居・ご利用の流れ — N・Kラボ 総合公式サイト
     2事業横断のため 緑＋オレンジ を中立に併用。
     ============================================================ */
  :root {
    --color-brown: #4A2B1A; --color-brown-soft: #6A4A38;
    --color-green: #8A914F; --color-green-deep: #6E7539;
    --color-orange: #E97832; --color-orange-deep: #C85F1F;
    --color-pink: #F6B8B8; --color-cream: #FFF9F0; --color-beige: #F7EBDD; --color-white: #FFFFFF;
    --font-round: 'Zen Maru Gothic', sans-serif; --font-body: 'Zen Kaku Gothic New', sans-serif;
    --shadow-soft: 0 14px 34px -18px rgba(74,43,26,0.28); --shadow-lift: 0 30px 56px -22px rgba(74,43,26,0.40);
    --motion-scale: 1; --radius-scale: 1;
  }
  * { box-sizing: border-box; }
  body { margin: 0; background: var(--color-cream); font-family: var(--font-body); color: var(--color-brown); }
  html { scroll-behavior: smooth; }
  a { color: var(--color-orange-deep); text-decoration: none; }
  a:hover { color: var(--color-brown); }
  .site { position: relative; overflow-x: hidden; background: var(--color-cream); }

  @keyframes floatSlow  { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-20px)} }
  @keyframes floatSlow2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(16px)} }
  @keyframes titleReveal{ from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
  @keyframes handUnderline { from{transform:scaleX(0)} to{transform:scaleX(1)} }
  @keyframes breathe { 0%,100%{box-shadow:0 12px 26px -12px rgba(233,120,50,.5)} 50%{box-shadow:0 18px 42px -10px rgba(233,120,50,.85)} }
  @keyframes heartPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.18)} }
  @keyframes introMark { 0%{opacity:0;transform:rotate(-7deg)} 22%{opacity:1;transform:rotate(-7deg)} 45%{transform:rotate(7deg)} 68%{transform:rotate(-4deg)} 88%{transform:rotate(3deg)} 100%{opacity:1;transform:rotate(0)} }
  @keyframes introOut { 0%{opacity:1} 99%{opacity:0;visibility:visible} 100%{opacity:0;visibility:hidden} }
  @keyframes blobFloat { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(0,-18px) scale(1.04)} }
  @keyframes softFlow { 0%{transform:translateX(0);opacity:0} 12%{opacity:.7} 88%{opacity:.7} 100%{transform:translateX(-112vw);opacity:0} }
  @keyframes bgDrift { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-3%,-2%)} }
  @keyframes sceneFade { 0%{opacity:0} 8%{opacity:1} 30%{opacity:1} 38%{opacity:0} 100%{opacity:0} }
  @keyframes kenBurns { 0%{transform:scale(1) translate(0,0)} 100%{transform:scale(1.12) translate(-2%,-1.5%)} }
  @keyframes dayFade { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }

  .reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,.61,.36,1); }
  .reveal.is-visible { opacity: 1; transform: none; }
  .reveal--d1 { transition-delay: .1s; } .reveal--d2 { transition-delay: .2s; }

  .intro { position: fixed; inset: 0; z-index: 300; background: var(--color-cream); display: flex; align-items: center; justify-content: center; animation: introOut .5s cubic-bezier(.4,0,.2,1) 1.3s forwards; }
  .intro-mark { width: min(40vw, 240px); height: auto; transform-origin: 50% 70%; animation: introMark 1.3s cubic-bezier(.22,.61,.36,1); }

  .site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,249,240,0.72); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: background .45s ease, box-shadow .45s ease, border-color .45s ease; }
  .site-header.is-scrolled { background: rgba(255,255,255,0.94); box-shadow: 0 6px 24px -18px rgba(74,43,26,.5); border-bottom-color: rgba(74,43,26,0.08); }
  .header-inner { max-width: 1440px; margin: 0 auto; padding: 14px 44px; display: flex; align-items: center; gap: 22px; }
  .brand { display: flex; align-items: center; gap: 12px; }
  .brand-mark { width: 62px; height: 44px; flex-shrink: 0; background: url(assets/logo-mark.png) center/contain no-repeat; animation: floatSlow2 7s ease-in-out infinite; }
  .brand-title { font-family: var(--font-round); font-weight: 700; font-size: 21px; color: var(--color-brown); letter-spacing: .02em; white-space: nowrap; line-height: 1.25; }
  .nav-links { margin-left: auto; display: flex; align-items: center; gap: 20px; font-family: var(--font-round); font-weight: 500; font-size: 14.5px; white-space: nowrap; }
  .nav-link { color: var(--color-brown); position: relative; padding: 4px 0; transition: color .25s ease; }
  .nav-link::after { content:''; position:absolute; left:0; right:0; bottom:-2px; height:2px; background: var(--color-green); border-radius:2px; transform: scaleX(0); transform-origin:left; transition: transform .3s ease; }
  .nav-link:hover { color: var(--color-green-deep); } .nav-link:hover::after { transform: scaleX(1); }
  .nav-link.is-current { color: var(--color-green-deep); } .nav-link.is-current::after { transform: scaleX(1); }
  .header-cta { margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; background: var(--color-orange); color: #fff; font-family: var(--font-round); font-weight: 700; font-size: 15px; padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow-soft); transition: transform .3s ease, box-shadow .3s ease; }
  .header-cta:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color:#fff; }
  .header-cta__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: heartPulse 3.2s ease-in-out infinite; }
  .menu-btn { display: none; align-items: center; justify-content: center; flex-direction: column; gap: 5px; width: 46px; height: 46px; border: none; background: #fff; border-radius: 14px; box-shadow: var(--shadow-soft); cursor: pointer; }
  .menu-line { width: 20px; height: 2.5px; background: var(--color-brown); border-radius: 2px; }

  main { position: relative; z-index: 1; }
  .page-decor { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
  .page-decor__wash { position: absolute; inset: -12%; background: radial-gradient(circle at 20% 22%, rgba(138,145,79,.11), transparent 46%), radial-gradient(circle at 84% 68%, rgba(233,120,50,.09), transparent 46%), radial-gradient(circle at 55% 92%, rgba(246,184,184,.10), transparent 42%); animation: bgDrift 26s ease-in-out infinite; }
  .pd-blob { position: absolute; border-radius: 50%; filter: blur(2px); }
  .pd-blob--1 { width: 220px; height: 220px; top: 14%; left: 5%; background: radial-gradient(circle at 40% 40%, #eef0e1, #dfe6c4); opacity: .34; animation: floatSlow 13s ease-in-out infinite; }
  .pd-blob--2 { width: 150px; height: 150px; top: 54%; left: 74%; background: radial-gradient(circle at 45% 40%, #f9e3d0, #f2cdb0); opacity: .32; animation: floatSlow2 16s ease-in-out infinite; }
  .pd-dot { position: absolute; left: 100%; border-radius: 50%; filter: blur(.5px); }
  .pd-dot--1 { top: 34%; width: 14px; height: 14px; background: rgba(138,145,79,.32); animation: softFlow 36s linear infinite; }
  .pd-dot--2 { top: 66%; width: 12px; height: 12px; background: rgba(233,120,50,.3); animation: softFlow 44s linear infinite; animation-delay: -16s; }

  .section { max-width: 1000px; margin: 0 auto; padding: 84px 24px; position: relative; }
  .section-head { text-align: center; margin-bottom: 40px; }
  .section-lead { margin: 16px auto 0; max-width: 40em; font-size: 16px; line-height: 2; color: var(--color-brown-soft); }

  /* ヒーロー */
  .hero { position: relative; min-height: 78vh; display: flex; align-items: center; padding: 150px 0 96px; overflow: hidden; text-align: center; }
  .hero-bottomfade { position: absolute; bottom: 0; left: 0; right: 0; height: 140px; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(255,249,240,0) 0%, var(--color-cream) 100%); }
  .hero-scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 7px; font-family: var(--font-round); font-size: 12px; color: var(--color-brown-soft); opacity: 0; animation: titleReveal .9s ease forwards 1.3s; }
  .hero-scroll__mouse { width: 24px; height: 38px; border: 2px solid var(--color-brown-soft); border-radius: 13px; position: relative; }
  .hero-scroll__mouse::after { content:''; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; border-radius: 3px; background: var(--color-orange); transform: translateX(-50%); animation: scrollDot 1.8s ease-in-out infinite; }
  @keyframes scrollDot { 0%{opacity:0; transform: translate(-50%,0)} 40%{opacity:1} 80%{opacity:0; transform: translate(-50%,10px)} 100%{opacity:0} }
  .hero-topfade { position: absolute; top: 0; left: 0; right: 0; height: 150px; z-index: 1; pointer-events: none; background: linear-gradient(180deg, #FFF9F0 0%, rgba(255,249,240,.7) 40%, rgba(255,249,240,0) 100%); }
  .hero-bg { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, #FFF9F0 0%, #F4F1E4 60%, #ECEEDB 100%); overflow: hidden; }
  .hero-scene { position: absolute; inset: 0; opacity: 0; animation: sceneFade 27s ease-in-out infinite; }
  .hero-scene__zoom { position: absolute; inset: -4%; animation: kenBurns 27s ease-in-out infinite alternate; }
  .hero-scene--1 { animation-delay: 0s; } .hero-scene--2 { animation-delay: -9s; } .hero-scene--3 { animation-delay: -18s; }
  .hero-scene--1 .hero-scene__zoom { background: radial-gradient(circle at 24% 30%, rgba(138,145,79,.18), transparent 46%), radial-gradient(circle at 82% 74%, rgba(233,120,50,.12), transparent 46%), linear-gradient(180deg, #FFF9F0 0%, #F2F3E6 55%, #E9EBD6 100%); }
  .hero-scene--2 .hero-scene__zoom { background: radial-gradient(circle at 78% 28%, rgba(233,120,50,.14), transparent 46%), radial-gradient(circle at 18% 80%, rgba(246,184,184,.16), transparent 48%), linear-gradient(160deg, #FFF6EC 0%, #F7EBDD 58%, #F0E5D2 100%); }
  .hero-scene--3 .hero-scene__zoom { background: repeating-linear-gradient(118deg, rgba(138,145,79,.06) 0 24px, transparent 24px 58px), radial-gradient(circle at 70% 68%, rgba(138,145,79,.16), transparent 46%), linear-gradient(180deg, #FBF6E7 0%, #EEF0DE 60%, #E4E8CC 100%); }
  .hero-blob { position: absolute; border-radius: 50%; filter: blur(1px); z-index: 0; }
  .hero-blob--1 { width: 220px; height: 220px; top: -30px; right: 8%; background: radial-gradient(circle at 40% 40%, #eef0e1, #dfe6c4); opacity:.5; animation: blobFloat 12s ease-in-out infinite; }
  .hero-blob--2 { width: 140px; height: 140px; bottom: 8%; left: 10%; background: radial-gradient(circle at 45% 40%, #f9e3d0, #f2cdb0); opacity:.5; animation: blobFloat 14s ease-in-out infinite; }
  .hero-inner { position: relative; z-index: 2; width: 100%; max-width: 900px; margin: 0 auto; padding: 0 24px; }
  .hero-label { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; font-family: var(--font-round); font-weight: 500; font-size: 14px; color: var(--color-green-deep); background: rgba(255,255,255,.85); padding: 9px 18px; border-radius: 999px; box-shadow: var(--shadow-soft); opacity:0; animation: titleReveal .8s ease forwards .1s; }
  .hero-label__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--color-green); animation: heartPulse 3.4s ease-in-out infinite; }
  .hero-title { font-family: var(--font-round); font-weight: 700; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.36; margin: 0 0 22px; color: var(--color-brown); }
  .hero-title .line { display: block; opacity: 0; animation: titleReveal .9s cubic-bezier(.22,.61,.36,1) forwards; animation-delay: var(--rd,.2s); }
  .accent-underline { position: relative; white-space: nowrap; }
  .accent-underline::after { content:''; position:absolute; left:-4px; right:-4px; bottom:.08em; height:.32em; background: rgba(138,145,79,.4); border-radius: 8px 10px 9px 12px; z-index:-1; transform: scaleX(0); transform-origin:left; rotate:-1.2deg; animation: handUnderline .8s cubic-bezier(.6,0,.2,1) forwards; animation-delay: calc(var(--rd,.2s) + 2.6s); }
  .accent-underline--orange::after { background: rgba(233,120,50,.38); }
  .hero-sub { font-size: clamp(14px,1.4vw,16px); line-height: 1.95; margin: 0 auto; max-width: 40em; color: var(--color-brown-soft); opacity:0; animation: titleReveal .9s ease forwards .95s; }

  /* 流れタブ */
  .flow-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
  .flow-tab { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-round); font-weight: 700; font-size: 15.5px; color: var(--color-brown-soft); background: #fff; border: 2px solid transparent; border-radius: 999px; padding: 14px 28px; cursor: pointer; box-shadow: var(--shadow-soft); transition: color .25s ease, background .25s ease, transform .25s ease; }
  .flow-tab:hover { transform: translateY(-2px); }
  .flow-tab__dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
  .flow-tab.is-active.is-green { color: #fff; background: var(--color-green-deep); }
  .flow-tab.is-active.is-orange { color: #fff; background: var(--color-orange); }
  .flow-panel { display: none; animation: dayFade .5s ease; }
  .flow-panel.is-active { display: block; }

  .flow-intro { text-align: center; margin: 0 auto 34px; max-width: 40em; }
  .flow-intro__badge { display: inline-block; font-family: var(--font-round); font-weight: 500; font-size: 12.5px; padding: 6px 16px; border-radius: 999px; margin-bottom: 14px; }
  .flow-intro__badge--green { background: #eef0e1; color: var(--color-green-deep); }
  .flow-intro__badge--orange { background: #fbe4d5; color: var(--color-orange-deep); }
  .flow-intro h2 { font-family: var(--font-round); font-weight: 700; font-size: clamp(22px, 2.8vw, 30px); margin: 0 0 10px; color: var(--color-brown); }
  .flow-intro p { margin: 0; font-size: 15px; line-height: 1.9; color: var(--color-brown-soft); }

  /* タイムライン */
  .timeline { max-width: 760px; margin: 0 auto; position: relative; }
  .timeline::before { content:''; position:absolute; left: 27px; top: 10px; bottom: 10px; width: 3px; background: repeating-linear-gradient(180deg, var(--tl-color, var(--color-green)) 0 8px, transparent 8px 16px); }
  .tl-item { display: flex; gap: 22px; align-items: flex-start; padding: 12px 0; position: relative; }
  .tl-no { position: relative; z-index:1; width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; background:#fff; border: 3px solid var(--tl-color, var(--color-green)); color: var(--tl-color, var(--color-green)); font-family: var(--font-round); font-weight: 700; font-size: 20px; display:flex; align-items:center; justify-content:center; box-shadow: var(--shadow-soft); }
  .tl-body { background:#fff; border-radius: 18px; padding: 18px 24px; box-shadow: var(--shadow-soft); flex: 1; transition: transform .35s ease; }
  .tl-item:hover .tl-body { transform: translateX(5px); }
  .tl-body h4 { font-family: var(--font-round); font-weight: 700; font-size: 17px; margin: 0 0 5px; color: var(--color-brown); }
  .tl-body p { margin: 0; font-size: 14.5px; line-height: 1.8; color: var(--color-brown-soft); }

  .flow-cta { text-align: center; margin-top: 40px; }
  .btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-round); font-weight: 700; font-size: 16px; border-radius: 999px; transition: transform .3s ease, box-shadow .3s ease; cursor: pointer; }
  .btn--green { background: var(--color-green-deep); color:#fff; padding: 16px 32px; box-shadow: var(--shadow-soft); }
  .btn--green:hover { transform: translateY(-4px); color:#fff; box-shadow: var(--shadow-lift); }
  .btn--orange { background: var(--color-orange); color:#fff; padding: 16px 32px; animation: breathe calc(4.6s / var(--motion-scale)) ease-in-out infinite; }
  .btn--orange:hover { transform: translateY(-4px); color:#fff; }
  .flow-cta__note { margin: 14px 0 0; font-size: 13px; color: var(--color-brown-soft); }

  .disclaimer { max-width: 820px; margin: 56px auto 0; text-align: center; font-size: 13px; line-height: 1.9; color: var(--color-brown-soft); background: rgba(255,255,255,.7); border-radius: 18px; padding: 22px 26px; box-shadow: var(--shadow-soft); }

  /* 追従CTA / セクションナビ */
  .float-cta { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-round); font-weight: 700; font-size: 15px; color: #fff; background: var(--color-orange); padding: 15px 24px; border-radius: 999px; box-shadow: 0 16px 34px -12px rgba(233,120,50,.7); cursor: pointer; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .4s ease, transform .4s ease, box-shadow .3s ease; }
  .float-cta.is-shown { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .float-cta:hover { color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-lift); }
  .float-cta__dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: heartPulse 3s ease-in-out infinite; }

  .site-footer { position: relative; z-index:1; background: var(--color-brown); color: rgba(255,249,240,.9); padding: 40px 24px; }
  .footer-inner { max-width: 1000px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
  .footer-brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-round); font-weight: 700; font-size: 16px; }
  .footer-mark { width: 40px; height: 28px; background: url(assets/logo-mark.png) center/contain no-repeat; }
  .footer-nav { display:flex; flex-wrap:wrap; gap: 8px 20px; font-family: var(--font-round); font-size: 13.5px; }
  .footer-nav a { color: rgba(255,249,240,.82); } .footer-nav a:hover { color: #fff; }
  .footer-copy { width: 100%; text-align: center; font-size: 12.5px; color: rgba(255,249,240,.6); border-top: 1px solid rgba(255,249,240,.14); padding-top: 20px; margin-top: 4px; }

  @media (max-width: 1040px) { .nav-links { display: none; } .menu-btn { display: inline-flex; } }
  @media (max-width: 600px) { .float-cta { right: 14px; bottom: 14px; padding: 14px 20px; font-size: 14px; } .section { padding: 60px 20px; } }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
    .hero-title .line, .hero-label, .hero-sub { opacity: 1 !important; transform: none !important; }
    .accent-underline::after { transform: scaleX(1) !important; }
    .hero-scene { opacity: 0 !important; } .hero-scene--1 { opacity: 1 !important; }
    .intro { opacity: 0 !important; visibility: hidden !important; }
  }

  /* ---------- モバイルメニュー（ハンバーガー開閉） ---------- */
  .menu-btn { position: relative; z-index: 210; }
  .menu-line { transition: transform .35s ease, opacity .25s ease; }
  .menu-btn.is-open .menu-line:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-btn.is-open .menu-line:nth-child(2) { opacity: 0; }
  .menu-btn.is-open .menu-line:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .mobile-nav { position: fixed; inset: 0; z-index: 200;
    background: rgba(255,249,240,.98); backdrop-filter: blur(6px);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .35s ease, transform .35s ease, visibility .35s ease; }
  .mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .mobile-nav a { font-family: var(--font-round); font-weight: 700; font-size: 20px;
    color: var(--color-brown); padding: 15px 26px; border-radius: 14px; }
  .mobile-nav a:hover, .mobile-nav a:focus,
  .mobile-nav a.is-current { color: var(--color-orange-deep); }
  body.menu-open { overflow: hidden; }
  @media (min-width: 1041px) { .mobile-nav { display: none; } }

  /* ---------- モバイル時のヘッダー最適化 ---------- */
  @media (max-width: 1040px) {
    .header-inner { padding: 12px 18px; gap: 14px; }
    .header-cta { display: none; }
    .menu-btn { margin-left: auto; }
    .brand-mark { width: 52px; height: 38px; }
    .brand-title { font-size: 17px; }
  }

  /* メニュー展開中はヘッダー（×ボタン）を前面に */
  body.menu-open .site-header { z-index: 220; }

.menu-btn { flex-shrink: 0; }

/* 日本語の折り返しを自然に（語の途中で切れにくく） */
p, li, dd, dt, .hero-sub, .section-lead, .concept-lead, .entry-body { line-break: strict; }
@supports (word-break: auto-phrase) {
  p, li, dd, .hero-sub, .section-lead, .concept-lead, .entry-body { word-break: auto-phrase; }
}
