@charset "UTF-8";
/* =========================================================
   F-LABO.Ⅱ 公式サイト スタイルシート
   赤×白基調・1ページスクロール型
   ========================================================= */

/* ---------- カラー・変数 ---------- */
:root {
  --red:        #c8102e;   /* メインレッド */
  --red-dark:   #8b0a1d;   /* 濃い赤（グラデ・ホバー） */
  --red-deep:   #6e0816;   /* さらに濃い赤 */
  --ink:        #1a1a1a;   /* 黒（ロゴ・本文見出し） */
  --text:       #333537;   /* 本文テキスト */
  --text-light: #6b6f72;   /* 補足テキスト */
  --gray-bg:    #f6f4f2;   /* セクション背景 */
  --line:       #e6e2df;   /* 罫線 */
  --white:      #ffffff;
  --radius:     16px;
  --shadow:     0 10px 30px rgba(0,0,0,.08);
  --shadow-lg:  0 20px 50px rgba(200,16,46,.16);
  --maxw:       1120px;
  --ease:       cubic-bezier(.22,.61,.36,1);
}

/* ---------- リセット ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Noto Sans JP", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  font-size: 16px;
  letter-spacing: .02em;
  overflow-x: hidden;
}
img, svg, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
strong { color: var(--ink); font-weight: 700; }

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.pc-only { display: inline; }
.sp-only { display: none; }

/* ---------- 共通ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 32px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; letter-spacing: .04em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap; cursor: pointer; border: 2px solid transparent;
}
.btn--primary { background: var(--white); color: var(--red); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(0,0,0,.26); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-3px); }
.btn--white { background: var(--white); color: var(--red); box-shadow: var(--shadow); }
.btn--white:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* =========================================================
   ヘッダー
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  transition: box-shadow .3s, padding .3s;
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.07); }
.header__inner {
  width: min(100% - 40px, var(--maxw)); margin-inline: auto;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
}

.brand { display: flex; align-items: center; }
.brand__logo { height: 46px; width: auto; transition: height .3s; }
.header.is-scrolled .brand__logo { height: 42px; }

/* ナビ */
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__list a {
  display: block; padding: 10px 14px; font-size: .92rem; font-weight: 500;
  color: var(--ink); border-radius: 8px; position: relative; transition: color .2s;
}
.nav__list a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__list a:not(.nav__cta):hover { color: var(--red); }
.nav__list a:not(.nav__cta):hover::after { transform: scaleX(1); }
.nav__cta {
  background: var(--red); color: var(--white) !important;
  padding: 11px 22px !important; border-radius: 999px; font-weight: 700;
  margin-left: 8px; transition: background .2s, transform .2s;
}
.nav__cta:hover { background: var(--red-dark); transform: translateY(-2px); }

/* ハンバーガー */
.hamburger {
  display: none; width: 44px; height: 44px; position: relative;
  background: none; border: none; cursor: pointer; z-index: 110;
}
.hamburger span {
  position: absolute; left: 10px; right: 10px; height: 2.5px; background: var(--ink);
  border-radius: 2px; transition: transform .3s var(--ease), opacity .2s;
}
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 27px; }
.hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   ヒーロー
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: var(--white); overflow: hidden; padding: 100px 0 80px;
  background-color: var(--red-deep);
  background-image: url("../assets/hero-bg.jpg");
  background-repeat: no-repeat;
  background-size: auto 120%;        /* 右のキャラを少しズーム */
  background-position: 53% 40%;      /* 右スペースの中央にキャラを配置 */
}
/* 文字可読性のためのスクリム（左を暗く、上下も少し締める） */
.hero__bg {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(120,6,20,.9) 0%, rgba(120,6,20,.6) 32%, rgba(120,6,20,.12) 55%, rgba(120,6,20,0) 72%),
    linear-gradient(180deg, rgba(120,6,20,.45) 0%, transparent 22%, transparent 68%, rgba(120,6,20,.5) 100%);
}

.hero__inner {
  position: relative; z-index: 2;
  width: min(100% - 40px, var(--maxw)); margin-inline: auto; text-align: left;
}
.hero__copy { max-width: 12em; }
.hero__lead { max-width: 540px; }
.hero__actions { justify-content: flex-start; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4);
  padding: 9px 22px; border-radius: 999px; font-weight: 700; font-size: .92rem;
  backdrop-filter: blur(4px); margin-bottom: 30px;
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #fff; position: relative; }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #fff;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3); opacity: 0; } }

.hero__copy {
  font-size: clamp(2.1rem, 6vw, 4rem); font-weight: 900; line-height: 1.3;
  letter-spacing: .02em; margin-bottom: 26px; text-shadow: 0 4px 24px rgba(0,0,0,.18);
}
.hero__copy-accent { position: relative; display: inline-block; }
.hero__copy-accent::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .08em; height: .18em;
  background: rgba(255,255,255,.85); border-radius: 4px; z-index: -1;
  transform: scaleX(0); transform-origin: left; animation: underline 1s var(--ease) .6s forwards;
}
@keyframes underline { to { transform: scaleX(1); } }

.hero__lead { font-size: clamp(.95rem, 2.4vw, 1.15rem); line-height: 2; margin-bottom: 40px; font-weight: 500; }
.hero__lead strong { color: #fff; }

.hero__actions { display: flex; gap: 16px; justify-content: flex-start; flex-wrap: wrap; }
.hero__hours { margin-top: 24px; font-size: .85rem; opacity: .9; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 2; font-family: "Montserrat", sans-serif; font-size: .68rem; letter-spacing: .25em;
  color: rgba(255,255,255,.85); writing-mode: vertical-rl; padding-bottom: 56px;
}
.hero__scroll::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 44px;
  background: rgba(255,255,255,.7); transform: translateX(-50%);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100% { transform: translateX(-50%) scaleY(.3); transform-origin: bottom; opacity: .4; } 50% { transform: translateX(-50%) scaleY(1); opacity: 1; } }

/* =========================================================
   セクション共通
   ========================================================= */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--gray { background: var(--gray-bg); }

.section__head { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }
.section__en {
  font-family: "Montserrat", sans-serif; font-weight: 800; font-size: .85rem;
  letter-spacing: .25em; color: var(--red); margin-bottom: 8px;
}
.section__en--light { color: rgba(255,255,255,.85); }
.section__title {
  font-size: clamp(1.7rem, 4.5vw, 2.5rem); font-weight: 900; color: var(--ink);
  line-height: 1.4; position: relative; display: inline-block; padding-bottom: 18px;
}
.section__title::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 56px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--red), var(--red-dark));
}
.section__title--light { color: var(--white); }
.section__title--light::after { background: var(--white); }
.section__desc { margin-top: 22px; color: var(--text-light); font-size: 1rem; line-height: 1.9; }
.section__desc--light { color: rgba(255,255,255,.9); }

/* =========================================================
   事業所について
   ========================================================= */
.about__lead { text-align: center; font-size: clamp(1.15rem, 3vw, 1.6rem); font-weight: 700; color: var(--ink); line-height: 1.8; margin-bottom: 48px; }
.about__lead strong { color: var(--red); }
.about__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.about__card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.about__card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--red); }
.about__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.about__card-tag {
  display: inline-block; background: var(--red); color: #fff; font-weight: 700;
  font-size: .95rem; padding: 6px 18px; border-radius: 999px; margin-bottom: 18px;
}
.about__card p { margin-bottom: 10px; }
.about__card-note { color: var(--text-light); font-size: .95rem; }
.about__card-note strong { color: var(--red); }

/* =========================================================
   サービス
   ========================================================= */
.service { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.service__card {
  background: var(--white); border-radius: var(--radius); padding: 40px 36px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.service__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service__card--accent { background: linear-gradient(160deg, var(--red), var(--red-dark)); color: var(--white); border: none; }
.service__card--accent .service__num { color: rgba(255,255,255,.35); }
.service__card--accent h3, .service__card--accent .service__card-lead { color: var(--white); }
.service__card--accent .service__list li { border-color: rgba(255,255,255,.25); }
.service__card--accent .service__list strong { color: var(--white); }
.service__card--accent .service__list span { color: rgba(255,255,255,.85); }
.service__card--accent .service__list strong::before { background: var(--white); }
.service__card--accent .service__period { background: rgba(255,255,255,.16); color: var(--white); }

.service__card-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.service__num { font-family: "Montserrat", sans-serif; font-weight: 900; font-size: 2.6rem; color: rgba(200,16,46,.18); line-height: 1; }
.service__card-head h3 { font-size: 1.5rem; font-weight: 900; color: var(--ink); line-height: 1.3; }
.service__card-head h3 small { display: block; font-size: .9rem; font-weight: 700; color: var(--red); }
.service__card--accent .service__card-head h3 small { color: rgba(255,255,255,.9); }
.service__card-lead { color: var(--text); margin-bottom: 24px; font-weight: 500; }

.service__list { display: flex; flex-direction: column; gap: 16px; }
.service__list li { padding-bottom: 16px; border-bottom: 1px dashed var(--line); }
.service__list li:last-child { border-bottom: none; padding-bottom: 0; }
.service__list strong { display: block; position: relative; padding-left: 20px; margin-bottom: 3px; color: var(--ink); }
.service__list strong::before { content: ""; position: absolute; left: 0; top: .65em; width: 9px; height: 9px; border-radius: 2px; background: var(--red); }
.service__list span { display: block; padding-left: 20px; font-size: .92rem; color: var(--text-light); line-height: 1.7; }
.service__period {
  margin-top: 26px; display: inline-block; background: rgba(200,16,46,.08); color: var(--red);
  font-weight: 700; padding: 8px 20px; border-radius: 8px; font-size: .95rem;
}

/* =========================================================
   作業内容
   ========================================================= */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.work__item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 28px; text-align: center; box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.work__item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.work__icon {
  width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center; color: var(--white);
  background: linear-gradient(150deg, var(--red), var(--red-dark));
  box-shadow: 0 10px 22px rgba(200,16,46,.3);
}
.work__icon svg { width: 38px; height: 38px; }
.work__item h3 { font-size: 1.25rem; font-weight: 900; color: var(--ink); margin-bottom: 12px; }
.work__item p { font-size: .95rem; color: var(--text-light); line-height: 1.85; }

/* =========================================================
   対象者
   ========================================================= */
.target { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.target__col { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 34px; box-shadow: var(--shadow); }
.target__col--accent { border-top: 5px solid var(--red); }
.target__title {
  font-size: 1.35rem; font-weight: 900; color: var(--ink); margin-bottom: 16px;
  padding-bottom: 14px; border-bottom: 2px solid var(--line); position: relative;
}
.target__title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 70px; height: 2px; background: var(--red); }
/* 日本語の文節で自然に折り返す（対応ブラウザ）＋年齢は途中で切らない */
.target__intro { color: var(--text); margin-bottom: 22px; font-weight: 500; word-break: auto-phrase; line-break: strict; }
.target__intro strong { color: var(--red); white-space: nowrap; }
.target__list { display: flex; flex-direction: column; gap: 16px; }
.target__list li { position: relative; padding-left: 38px; color: var(--text); line-height: 1.85; }
.target__no {
  position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 700; font-size: .9rem;
  display: grid; place-items: center;
}
.target__list--check li { padding-left: 34px; }
.target__list--check li::before {
  content: ""; position: absolute; left: 4px; top: .35em; width: 18px; height: 10px;
  border-left: 3px solid var(--red); border-bottom: 3px solid var(--red);
  transform: rotate(-45deg);
}

/* =========================================================
   利用の流れ
   ========================================================= */
.flow { max-width: 760px; margin-inline: auto; position: relative; }
.flow::before { content: ""; position: absolute; left: 39px; top: 30px; bottom: 30px; width: 3px; background: linear-gradient(var(--red), var(--red-dark)); border-radius: 3px; }
.flow__step { position: relative; display: flex; align-items: center; gap: 24px; padding: 12px 0; }
.flow__num {
  flex: none; width: 80px; height: 80px; border-radius: 50%;
  display: grid; place-items: center; font-family: "Montserrat", sans-serif; font-weight: 800;
  font-size: 1.5rem; color: var(--white); background: linear-gradient(150deg, var(--red), var(--red-dark));
  box-shadow: 0 8px 20px rgba(200,16,46,.3); z-index: 1; position: relative;
}
.flow__step--option .flow__num,
.flow__step--goal .flow__num { font-size: .95rem; }
.flow__step--option .flow__num { background: var(--ink); }
.flow__step--goal .flow__num { background: linear-gradient(150deg, #e0142f, var(--red-deep)); box-shadow: 0 8px 26px rgba(200,16,46,.5); }
.flow__body {
  flex: 1; background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 26px; box-shadow: var(--shadow); transition: transform .25s var(--ease);
}
.flow__step:hover .flow__body { transform: translateX(6px); }
.flow__body h3 { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.flow__body p { font-size: .9rem; color: var(--text-light); margin-top: 2px; }
.flow__step--option .flow__body { background: #fbfafa; }
.flow__step--goal .flow__body { border-color: var(--red); background: linear-gradient(120deg, #fff, #fff5f6); }
.flow__step--goal .flow__body h3 { color: var(--red); }

/* =========================================================
   アクセス
   ========================================================= */
.access { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.access__info { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 30px; box-shadow: var(--shadow); }
.access__table { width: 100%; border-collapse: collapse; }
.access__table th, .access__table td { text-align: left; padding: 18px 4px; vertical-align: top; border-bottom: 1px dashed var(--line); }
.access__table tr:last-child th, .access__table tr:last-child td { border-bottom: none; }
.access__table th { width: 92px; color: var(--red); font-weight: 700; font-size: .92rem; white-space: nowrap; }
.access__table td { color: var(--text); line-height: 1.7; }
.access__table small { color: var(--text-light); font-size: .82rem; }
.access__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; display: flex; flex-direction: column; }
.access__map iframe { width: 100%; flex: 1; min-height: 340px; border: 0; }
.access__map-link { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 13px; background: var(--red); color: #fff; font-weight: 700; font-size: .92rem; letter-spacing: .02em; transition: background .2s; }
.access__map-link:hover { background: var(--red-dark); }

/* =========================================================
   お問い合わせ
   ========================================================= */
.contact { background: linear-gradient(140deg, var(--red) 0%, var(--red-dark) 60%, var(--red-deep) 100%); position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0; opacity: .22; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='1' stroke-opacity='0.55' d='M28 0L56 16v33L28 66 0 49V16zM28 66l28 16v18M28 66L0 82v18'/%3E%3C/svg%3E");
  background-size: 56px 100px;
}
.contact .container { position: relative; z-index: 1; }
.contact__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.contact__card {
  background: var(--white); border-radius: var(--radius); padding: 32px 22px; text-align: center;
  display: flex; flex-direction: column; align-items: center; box-shadow: 0 14px 34px rgba(0,0,0,.18);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.contact__card:hover { transform: translateY(-8px); box-shadow: 0 22px 44px rgba(0,0,0,.28); }
.contact__icon {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--red), var(--red-dark)); color: #fff; margin-bottom: 16px;
}
.contact__icon svg { width: 30px; height: 30px; }
/* LINEカードはLINEグリーンで強調 */
.contact__icon--line { background: linear-gradient(150deg, #06C755, #04a548); }
.contact__card--line { outline: 2px solid #06C755; outline-offset: -2px; }
.contact__label { font-size: .85rem; color: var(--text-light); font-weight: 700; letter-spacing: .08em; line-height: 1.4; }
.contact__value { font-size: 1.12rem; font-weight: 900; color: var(--ink); margin: 5px 0 6px; white-space: nowrap; }
.contact__value--mail { font-size: .92rem; }
.contact__note { font-size: .8rem; color: var(--text-light); white-space: nowrap; }

/* LINE QRブロック */
.contact__qr {
  margin-top: 28px; background: var(--white); border-radius: var(--radius);
  padding: 22px 28px; display: flex; align-items: center; gap: 24px;
  max-width: 560px; margin-inline: auto; box-shadow: 0 14px 34px rgba(0,0,0,.18);
}
.contact__qr img { width: 116px; height: 116px; flex: none; border-radius: 8px; }
.contact__qr-title { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 900; color: var(--ink); margin-bottom: 8px; }
.contact__qr-badge { background: #06C755; color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 5px; letter-spacing: .04em; }
.contact__qr-note { font-size: .85rem; color: var(--text-light); line-height: 1.7; }

.contact__cta { text-align: center; margin-top: 36px; color: #fff; }
.contact__cta p { font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: 800; line-height: 1.7; margin-bottom: 24px; }

/* =========================================================
   フッター
   ========================================================= */
.footer { background: var(--ink); color: rgba(255,255,255,.8); padding: 56px 0 24px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand { max-width: 460px; }
.footer__logo { height: 52px; width: auto; }
.footer__addr { font-size: .85rem; line-height: 2; margin-top: 16px; color: rgba(255,255,255,.65); }
.footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 30px; align-content: start; }
.footer__nav a { font-size: .9rem; color: rgba(255,255,255,.8); transition: color .2s; position: relative; padding-left: 14px; }
.footer__nav a::before { content: "›"; position: absolute; left: 0; color: var(--red); }
.footer__nav a:hover { color: #fff; }
.footer__copy { text-align: center; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; color: rgba(255,255,255,.5); }

/* =========================================================
   追従ボタン（PC・スマホ共通：LINE＋電話）
   ========================================================= */
.float-actions {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: flex; flex-direction: column; gap: 12px;
}
.float-btn {
  position: relative; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.float-btn svg { width: 28px; height: 28px; }
.float-btn__label {
  position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  background: rgba(26,26,26,.9); color: #fff; font-size: .72rem; font-weight: 700;
  padding: 5px 10px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.float-btn:hover { transform: scale(1.08); }
.float-btn:hover .float-btn__label { opacity: 1; }
.float-btn--tel { background: var(--red); box-shadow: 0 8px 22px rgba(200,16,46,.5); animation: floatPulse 2.4s ease-in-out infinite; }
.float-btn--line { background: #06C755; box-shadow: 0 8px 22px rgba(6,199,85,.5); }
@keyframes floatPulse { 0%,100% { box-shadow: 0 8px 22px rgba(200,16,46,.5); } 50% { box-shadow: 0 8px 30px rgba(200,16,46,.85); } }

/* =========================================================
   スクロールリビール
   ========================================================= */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 1024px) {
  html { scroll-padding-top: 64px; }
  .header__inner { height: 64px; }
  .brand__logo,
  .header.is-scrolled .brand__logo { height: 40px; }

  /* モバイルナビ */
  .hamburger { display: block; }
  .nav {
    position: fixed; inset: 64px 0 auto 0; background: var(--white);
    box-shadow: 0 14px 30px rgba(0,0,0,.12); transform: translateY(-130%);
    transition: transform .4s var(--ease); max-height: calc(100svh - 64px); overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 24px; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__list a:not(.nav__cta) { padding: 16px 8px; font-size: 1rem; }
  .nav__list a:not(.nav__cta)::after { display: none; }
  .nav__cta { margin: 16px 8px 0; text-align: center; }
  .nav__list li:last-child { border-bottom: none; }

  /* グリッド → 1カラム */
  .about__cards, .service, .work, .target, .access { grid-template-columns: 1fr; }
  .contact__cards { grid-template-columns: repeat(2, 1fr); }   /* お問い合わせは2列 */
  .service__card, .target__col { padding: 32px 24px; }

  .pc-only { display: none; }
  .sp-only { display: inline; }

  .hero__actions .btn { width: 100%; max-width: 340px; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 32px, var(--maxw)); }
  .hero { padding: 92px 0 90px; }
  .hero__badge { font-size: .82rem; padding: 8px 18px; }
  .section { padding: 60px 0; }
  .flow::before { left: 31px; }
  .flow__num { width: 64px; height: 64px; font-size: 1.2rem; }
  .flow__step { gap: 16px; }
  .flow__body { padding: 14px 18px; }
  .flow__body h3 { font-size: 1.05rem; }
  .access__table th { width: 76px; font-size: .85rem; }
  .btn { padding: 15px 26px; font-size: .95rem; }
}

/* =========================================================
   追加コンポーネント（B型特化リニューアル）
   ========================================================= */

/* ---------- F-LABO.Ⅱとは（写真＋本文） ---------- */
.about2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about2__photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.about2__photo::after {
  content: ""; position: absolute; left: 14px; top: 14px; right: -14px; bottom: -14px;
  border: 3px solid var(--red); border-radius: var(--radius); z-index: -1;
}
.about2__photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .6s var(--ease); }
.about2__photo:hover img { transform: scale(1.05); }
.about2__title { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 900; color: var(--ink); line-height: 1.5; margin-bottom: 22px; }
.about2__body p { margin-bottom: 16px; line-height: 1.95; }
.about2__body strong { color: var(--red); }
.about2__points { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.about2__points li { position: relative; padding-left: 34px; font-weight: 700; color: var(--ink); }
.about2__points li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%; background: var(--red);
}
.about2__points li::after {
  content: ""; position: absolute; left: 7px; top: 50%; width: 8px; height: 4px;
  border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff;
  transform: translateY(-70%) rotate(-45deg);
}
.about2__note {
  margin-top: 40px; text-align: center; background: #fff; border: 1px dashed var(--line);
  border-radius: 12px; padding: 18px 24px; font-size: .92rem; color: var(--text-light);
}
.about2__note a { color: var(--red); font-weight: 700; white-space: nowrap; }
.about2__note a:hover { text-decoration: underline; }

/* ---------- 特徴 ---------- */
.feature { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature__item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 24px; text-align: center; box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.feature__item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature__icon {
  width: 70px; height: 70px; margin: 0 auto 20px; border-radius: 20px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, var(--red), var(--red-dark));
  box-shadow: 0 10px 22px rgba(200,16,46,.3);
}
.feature__icon svg { width: 36px; height: 36px; }
.feature__item h3 { font-size: 1.18rem; font-weight: 900; color: var(--ink); margin-bottom: 10px; }
.feature__item p { font-size: .9rem; color: var(--text-light); line-height: 1.8; }

/* ---------- 作業内容（交互レイアウト） ---------- */
.works { display: flex; flex-direction: column; gap: 36px; }
.works__item {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s;
}
.works__item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.works__photo { overflow: hidden; min-height: 280px; }
.works__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.works__item:hover .works__photo img { transform: scale(1.06); }
.works__body { padding: 40px clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.works__no {
  font-family: "Montserrat", sans-serif; font-weight: 900; font-size: 1rem; color: #fff;
  background: var(--red); width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 16px;
}
.works__body h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 900; color: var(--ink); margin-bottom: 14px; }
.works__body p { color: var(--text); line-height: 1.95; }
/* 偶数行は写真を右に */
.works__item--rev .works__photo { order: 2; }

/* ---------- ギャラリー ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; grid-auto-flow: dense; }
.gallery__item { position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1/1; margin: 0; }
.gallery__item--wide { grid-column: span 2; aspect-ratio: 2/1; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 16px 12px;
  color: #fff; font-weight: 700; font-size: .92rem; text-align: center;
  background: linear-gradient(transparent, rgba(0,0,0,.65)); letter-spacing: .04em;
}

/* ---------- 対象者（単一カラム中央） ---------- */
.target--single { display: block; max-width: 760px; margin-inline: auto; }
.target--single .target__col { padding: 44px clamp(28px, 5vw, 56px); }

/* ---------- アクセス：建物写真バナー ---------- */
.access__photo {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  margin-bottom: 32px;
}
/* 事業所は1F。1F〜2Fが見えるよう建物下部寄りに表示 */
.access__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 80%; aspect-ratio: 16/9; transition: transform .6s var(--ease); }
.access__photo:hover img { transform: scale(1.04); }

/* ---------- 追加コンポーネントのレスポンシブ ---------- */
@media (max-width: 1024px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--wide { grid-column: span 2; aspect-ratio: 2/1; }
}

@media (max-width: 860px) {
  .about2 { grid-template-columns: 1fr; gap: 40px; }
  .about2__photo::after { right: 0; bottom: -10px; left: 10px; top: 10px; }
  .works__item, .works__item--rev { grid-template-columns: 1fr; }
  .works__photo { order: 0 !important; min-height: 0; aspect-ratio: 16/9; }
  .works__item--rev .works__photo { order: 0; }
  .about2__note a { white-space: normal; display: inline-block; margin-top: 6px; }

  /* ヒーロー：スマホは縦長キャラ画像。顔の上の背景をカットし、胸元から文字開始 */
  .hero { background-image: url("../assets/hero-bg-mobile.jpg"); background-size: auto 136%; background-position: center 66%; align-items: flex-end; padding: 76px 0 24px; }
  .hero__bg { background:
    linear-gradient(180deg, rgba(120,6,20,.05) 0%, rgba(120,6,20,0) 22%, rgba(120,6,20,.5) 44%, rgba(120,6,20,.95) 100%); }
  .hero__inner { text-align: center; }
  .hero__copy { max-width: none; }
  .hero__lead { display: none; }   /* スマホでは長いリード文を省略し、顔のスペースを確保 */
  .hero__actions { justify-content: center; }
  .hero__hours { font-size: .72rem; margin-top: 16px; }  /* 受付時間が端／追従ボタンにかからないように */
  .hero__scroll { display: none; }  /* スマホではSCROLL表示を消す（電話番号との重なり防止） */
}

@media (max-width: 560px) {
  .feature { grid-template-columns: 1fr; gap: 16px; }
  .feature__item { display: flex; align-items: center; text-align: left; gap: 18px; padding: 20px; }
  .feature__icon { margin: 0; flex: none; width: 56px; height: 56px; border-radius: 16px; }
  .feature__icon svg { width: 28px; height: 28px; }
  .feature__body { flex: 1; min-width: 0; }   /* 見出し＋説明文をまとめて折り返し崩れを防ぐ */
  .feature__body h3 { margin-bottom: 4px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery__item--wide { grid-column: span 2; }
  .works__body { padding: 28px 22px; }
  .access__photo img { aspect-ratio: 4/3; }
  .contact__cards { grid-template-columns: 1fr; }   /* スマホは1列にして文字を折り返さない */
  .contact__label br { display: none; }   /* スマホでは「自立訓練をお探しの方」を1行に */
  .contact__qr { flex-direction: column; text-align: center; gap: 16px; padding: 24px 20px; }
  .contact__qr-title { justify-content: center; }
  .float-btn { width: 52px; height: 52px; }
  .float-btn svg { width: 25px; height: 25px; }
  /* 対象者の説明文：スマホで幅を確保＆各行が1行に収まるサイズに */
  .target--single .target__col { padding: 30px 16px; }
  .target__intro { font-size: .8rem; line-height: 1.95; word-break: normal; }
  .target__intro br { display: inline; }
}
