/* ============================================================
   ケアプランセンター カラフルプラス - stylesheet
   ============================================================ */

:root {
  --ink:        #16303f;
  --ink-soft:   #46606e;
  --navy:       #14425A;
  --bg:         #ffffff;
  --bg-alt:     #f4f7f8;
  --bg-tint:    #eef5f4;
  --line:       #d9e3e7;

  --c1: #E8615A;  /* coral  */
  --c2: #F2A93B;  /* amber  */
  --c3: #46B08A;  /* green  */
  --c4: #3D8BFD;  /* blue   */
  --c5: #9B72CF;  /* purple */

  --accent:      #12766A;
  --accent-dark: #0c5b52;

  --wrap: 1120px;
  --radius: 14px;
  --shadow: 0 2px 4px rgba(20,66,90,.05), 0 10px 28px rgba(20,66,90,.07);
  --header-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: .02em;
}

img, svg, iframe { max-width: 100%; }
a { color: var(--accent-dark); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  z-index: 999;
}
.skip:focus { left: 0; }

:where(a, button):focus-visible {
  outline: 3px solid var(--c4);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- rainbow rule ---------- */
.rainbow {
  height: 5px;
  background: linear-gradient(90deg,
    var(--c1) 0 20%, var(--c2) 20% 40%, var(--c3) 40% 60%,
    var(--c4) 60% 80%, var(--c5) 80% 100%);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 20px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
  margin-right: auto;
}
.brand-mark { display: flex; flex: 0 0 auto; }
.brand-mark img { display: block; width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.brand-text strong {
  font-size: 1.02rem;
  letter-spacing: .01em;
  white-space: nowrap;
}
.brand-pre { font-size: .82em; margin-right: .4em; color: var(--navy); }
.brand-name {
  background: linear-gradient(92deg, #E8615A 0%, #F2A93B 24%, #46B08A 48%, #3D8BFD 72%, #9B72CF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}
.brand-text small { font-size: .72rem; color: var(--ink-soft); font-weight: 500; white-space: nowrap; }

.global-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.global-nav a {
  display: block;
  padding: 9px 11px;
  font-size: .86rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  border-radius: 8px;
  white-space: nowrap;
}
.global-nav a:hover { background: var(--bg-tint); color: var(--accent-dark); }
.global-nav .nav-cta {
  background: var(--accent);
  color: #fff;
  margin-left: 6px;
  padding-inline: 16px;
}
.global-nav .nav-cta:hover { background: var(--accent-dark); color: #fff; }

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 13px;
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle .bars { display: grid; gap: 3px; }
.nav-toggle .bars i { display: block; width: 17px; height: 2px; background: var(--navy); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background:
    radial-gradient(1000px 420px at 12% -10%, #e7f3f1 0%, transparent 62%),
    radial-gradient(760px 380px at 96% 6%, #fdf1e2 0%, transparent 60%),
    var(--bg);
  padding: clamp(46px, 8vw, 84px) 0 clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
}
.hero-eyebrow {
  margin: 0 0 14px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--accent);
}
.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(1.8rem, 5.2vw, 3rem);
  line-height: 1.42;
  letter-spacing: .01em;
  color: var(--navy);
}
.hero-lead {
  max-width: 46em;
  margin: 0 0 28px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.hero-lead strong { color: var(--ink); }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}
.hero-badges li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 17px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
  box-shadow: 0 1px 2px rgba(20,66,90,.05);
}
.hero-badges span {
  display: inline-block;
  margin-right: 8px;
  font-size: .74rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.hero-badges li:nth-child(1) { border-left: 4px solid var(--c1); }
.hero-badges li:nth-child(2) { border-left: 4px solid var(--c2); }
.hero-badges li:nth-child(3) { border-left: 4px solid var(--c3); }
.hero-badges li:nth-child(4) { border-left: 4px solid var(--c4); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  padding: 14px 30px;
  font-weight: 700;
  line-height: 1.4;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(18,118,106,.28);
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-sub { font-size: .74rem; font-weight: 500; opacity: .92; }
.btn-main { font-size: 1.4rem; letter-spacing: .04em; }
.btn-ghost {
  justify-content: center;
  align-items: center;
  background: #fff;
  color: var(--navy);
  border: 2px solid var(--navy);
  font-size: .94rem;
  text-align: center;
}
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-ghost-main { font-size: 1.06em; }
.btn-ghost-note { margin-top: 2px; font-size: .86em; font-weight: 500; opacity: .82; }

/* ============================================================
   NOTICE BAR
   ============================================================ */
.noticebar {
  background: var(--navy);
  color: #fff;
  padding: 18px 0;
}
.noticebar p {
  margin: 0;
  font-size: .97rem;
  text-align: center;
}
.noticebar strong { color: #ffd88a; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(52px, 8vw, 88px) 0; }
.section-alt { background: var(--bg-alt); }
.section-pro { background: var(--bg-tint); }
.section-contact { background: var(--bg-alt); }

.sec-eyebrow {
  margin: 0 0 6px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c3);
}
.sec-title {
  position: relative;
  margin: 0 0 26px;
  padding-bottom: 14px;
  font-size: clamp(1.4rem, 3.6vw, 1.95rem);
  line-height: 1.5;
  color: var(--navy);
}
.sec-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 76px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3), var(--c4));
}
.sec-lead {
  max-width: 52em;
  margin: 0 0 34px;
  color: var(--ink-soft);
}

/* 見出しの補足（かっこ書き）。狭い画面では改行して語中で切れないようにする */
.title-note { font-size: .82em; }

/* 語句の途中で折り返させないためのまとまり。狭い画面での改行位置を整える */
.nw { white-space: nowrap; }
.sub-title {
  margin: 44px 0 20px;
  padding-left: 14px;
  border-left: 5px solid var(--c3);
  font-size: 1.16rem;
  line-height: 1.6;
  color: var(--navy);
}

/* ---------- greeting ---------- */
.greeting {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 36px);
  box-shadow: var(--shadow);
}
.greeting p { margin: 0 0 18px; }
.greeting p:last-child { margin-bottom: 0; }
.greeting .sign {
  text-align: right;
  font-weight: 700;
  color: var(--navy);
}
.sign-role { margin-right: .35em; }

/* ---------- cards ---------- */
.cards { display: grid; gap: 20px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--c3);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.card h4 {
  margin: 0 0 12px;
  font-size: 1.06rem;
  line-height: 1.55;
  color: var(--navy);
}
.card p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.card p strong { color: var(--ink); }
.card-num {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--c3);
  margin-bottom: 4px;
}
.card-c1 { border-top-color: var(--c1); }
.card-c1 .card-num { color: var(--c1); }
.card-c2 { border-top-color: var(--c2); }
.card-c2 .card-num { color: var(--c2); }
.card-c3 { border-top-color: var(--c4); }
.card-c3 .card-num { color: var(--c4); }

/* ---------- checklist ---------- */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.checklist-2col { grid-template-columns: repeat(2, 1fr); }
.checklist li {
  position: relative;
  padding: 12px 16px 12px 46px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: .95rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50%;
  width: 8px;
  height: 14px;
  margin-top: -9px;
  border-right: 3px solid var(--c3);
  border-bottom: 3px solid var(--c3);
  transform: rotate(42deg);
}

/* ---------- note ---------- */
.note {
  margin-top: 26px;
  background: #fffaf0;
  border: 1px solid #f0dcb4;
  border-left: 5px solid var(--c2);
  border-radius: 10px;
  padding: 18px 22px;
}
.note p { margin: 0; font-size: .93rem; }

/* ---------- flow ---------- */
.flow {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.flow li {
  counter-increment: step;
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px 24px 92px;
  box-shadow: var(--shadow);
}
.flow li::before {
  content: "STEP " counter(step);
  position: absolute;
  left: 22px;
  top: 24px;
  width: 52px;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--accent);
  text-align: center;
  padding-top: 34px;
}
.flow li::after {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 20px;
  width: 52px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 10px;
}
.flow li h4 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--navy);
}
.flow li p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.flow li p strong { color: var(--ink); }

/* ---------- fee ---------- */
.fee-hero {
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 38px);
  text-align: center;
  box-shadow: var(--shadow);
}
.fee-big {
  margin: 0 0 14px;
  font-size: clamp(1.3rem, 4.4vw, 1.9rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
}
.fee-big em {
  font-style: normal;
  font-size: 1.5em;
  color: var(--accent);
  letter-spacing: .02em;
}
.fee-hero p:last-child { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* ---------- professionals ---------- */
.pro-contact {
  margin-top: 36px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 34px);
}
.pro-contact-title {
  margin: 0 0 18px;
  font-size: 1.06rem;
  font-weight: 700;
}
.pro-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.pro-contact-grid > * {
  display: block;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  padding: 18px 20px;
  text-decoration: none;
  color: #fff;
}
.pro-contact-grid a:hover { background: rgba(255,255,255,.19); }
.pro-contact-grid span {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  opacity: .8;
}
.pro-contact-grid b {
  display: block;
  font-size: 1.42rem;
  letter-spacing: .04em;
  line-height: 1.6;
}
.pro-contact-grid small { display: block; font-size: .76rem; opacity: .85; line-height: 1.7; }
.pro-note { margin: 16px 0 0; font-size: .82rem; opacity: .88; }

/* ---------- outline ---------- */
.outline-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 26px;
  align-items: start;
}
.outline-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: .95rem;
}
.outline-table th,
.outline-table td {
  text-align: left;
  vertical-align: top;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}
.outline-table tr:last-child th,
.outline-table tr:last-child td { border-bottom: 0; }
.outline-table th {
  width: 11em;
  background: var(--bg-tint);
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.map-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-box iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}
.map-link {
  display: block;
  padding: 14px 18px;
  text-align: center;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--accent-dark);
  border-top: 1px solid var(--line);
}
.map-link:hover { background: var(--bg-tint); }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.contact-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--c3);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
}
.contact-tel { border-top-color: var(--accent); }
.contact-tel:hover { background: var(--bg-tint); }
.contact-label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: .08em;
}
.contact-value {
  display: block;
  margin: 8px 0 10px;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .04em;
}
.contact-sub { display: block; font-size: .84rem; color: var(--ink-soft); line-height: 1.75; }

.privacy {
  margin-top: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 34px);
}
.privacy h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--navy);
}
.privacy h3 + p { margin: 0 0 24px; font-size: .92rem; color: var(--ink-soft); }
.privacy p:last-child { margin-bottom: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: #fff;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  padding-block: 40px;
}
.footer-corp { margin: 0 0 4px; font-size: .88rem; font-weight: 500; opacity: .8; }
.footer-name { margin: 0 0 10px; font-size: 1.08rem; font-weight: 700; }
.footer-meta { margin: 0; font-size: .86rem; opacity: .85; line-height: 1.9; }
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 4px 28px;
  align-content: start;
}
.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: .88rem;
  opacity: .88;
}
.footer-nav a:hover { opacity: 1; text-decoration: underline; }
.copyright {
  margin: 0;
  padding: 16px 20px 20px;
  text-align: center;
  font-size: .78rem;
  opacity: .7;
}

/* ============================================================
   MOBILE CALL BAR
   ============================================================ */
.mobile-call {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 15px 12px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 -4px 18px rgba(20,66,90,.2);
}

/* ============================================================
   BRAND: 名前の由来 / 木 / 選ばれる理由 / こんなとき
   ============================================================ */

.mark-red { color: #E8615A; }

.hero h1 { font-weight: 700; }

/* ---------- 名前の由来 ---------- */
.section-origin {
  background:
    radial-gradient(680px 300px at 8% 0%, #fdf3e6 0%, transparent 60%),
    radial-gradient(620px 320px at 94% 90%, #eef7f2 0%, transparent 62%),
    var(--bg);
}

.origin-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow);
}

.tree-fig { margin: 0; display: flex; justify-content: center; }
.tree {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
}

.origin-copy p {
  margin: 0 0 16px;
  font-size: clamp(1rem, 2.1vw, 1.14rem);
  line-height: 2.05;
  color: var(--ink);
}
.origin-copy em { font-style: normal; font-weight: 700; }
.t-red    { color: #E8615A; }
.t-amber  { color: #E09420; }
.t-green  { color: #2E9273; }
.t-blue   { color: #2E72D8; }
.t-purple { color: #7F58B4; }

.origin-strong {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 6px;
  background: linear-gradient(transparent 62%, #ffe1b8 62%);
  color: #C9492F;
}
.origin-last {
  margin-top: 22px !important;
  margin-bottom: 0 !important;
  font-weight: 700;
  color: var(--navy);
}

.section-origin .greeting { margin-top: 26px; }

/* ---------- ICT活用 ---------- */
.card-c4 { border-top-color: var(--c4); }
.card-c5 { border-top-color: var(--c5); }

.ict-ico {
  display: block;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  padding: 8px;
  background: var(--bg-tint);
  border-radius: 14px;
}
.ict-ico svg { display: block; width: 100%; height: 100%; }

.ict-cards .card p { margin-bottom: 14px; }
.ict-cards .card h4 { margin-bottom: 10px; }

.ict-merit {
  margin-top: 30px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 34px);
}
.ict-merit-title {
  margin: 0 0 20px;
  font-size: 1.06rem;
  font-weight: 700;
}
.ict-merit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ict-merit-grid > div {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: .92rem;
  line-height: 1.85;
}
.ict-merit-grid strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.24rem;
  color: #ffd88a;
  letter-spacing: .06em;
}

.dots { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.dots li {
  position: relative;
  padding-left: 26px;
  font-size: .92rem;
  color: var(--ink-soft);
}
.dots li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--c3);
}
.dots li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: .84em;
  width: 4px;
  height: 7px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(42deg);
}

/* ---------- こんなときは ---------- */
.section-trigger { background: var(--bg); }

.triggers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.triggers li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  font-weight: 700;
  font-size: .97rem;
  line-height: 1.7;
  color: var(--navy);
  box-shadow: var(--shadow);
}
.tri-ico {
  display: block;
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  background: var(--bg-tint);
  border-radius: 50%;
  padding: 7px;
}
.tri-ico svg { display: block; width: 100%; height: 100%; }

.trigger-close {
  margin: 30px 0 0;
  text-align: center;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--navy);
}
.trigger-close strong { color: #C9492F; }

.contact-close {
  margin: 28px 0 0;
  text-align: center;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--navy);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .global-nav a { padding-inline: 8px; font-size: .8rem; }
}

/* ナビ項目が8つあるため、幅980px以下ではハンバーガーメニューに切り替える */
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .global-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(20,66,90,.12);
  }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px; }
  .global-nav a { padding: 15px 14px; font-size: .98rem; border-radius: 8px; }
  .global-nav .nav-cta { margin: 8px 0 4px; text-align: center; }
}

@media (max-width: 900px) {
  .cards-3 { grid-template-columns: 1fr; }
  .outline-grid { grid-template-columns: 1fr; }
  .triggers { grid-template-columns: repeat(2, 1fr); }
  .origin-grid { grid-template-columns: 1fr; gap: 18px; }
  .tree-fig { max-width: 300px; margin-inline: auto; }
  .ict-merit-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: inline-flex; }

  .global-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(20,66,90,.12);
  }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px; }
  .global-nav a { padding: 15px 14px; font-size: .98rem; border-radius: 8px; }
  .global-nav .nav-cta { margin: 8px 0 4px; text-align: center; }

  .brand-text strong { font-size: .84rem; }
  .brand-text small { font-size: .62rem; }
  .brand-mark img { width: 42px; height: 42px; }

  .triggers li { padding: 18px 12px; font-size: .88rem; }
  .tri-ico { width: 48px; height: 48px; }
  .origin-copy p { line-height: 1.95; }

  .cards-2 { grid-template-columns: 1fr; }
  .checklist-2col { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .pro-contact-grid { grid-template-columns: 1fr; }

  .btn { width: 100%; text-align: center; align-items: center; }

  .title-note {
    display: block;
    margin-top: 5px;
    font-size: .7em;
    color: var(--ink-soft);
  }

  .flow li { padding: 74px 22px 22px; }
  .flow li::before { top: 20px; left: 22px; }
  .flow li::after { top: 16px; left: 22px; }

  .outline-table th { width: 8.5em; padding-inline: 12px; }
  .outline-table td { padding-inline: 12px; }

  .footer-nav { grid-template-columns: 1fr; }

  .mobile-call { display: block; }
  body { padding-bottom: 62px; }
}

/* スマートフォン（幅560px以下）：事業所名を2段組みにして重なりを防ぐ */
@media (max-width: 560px) {
  .brand { gap: 9px; }
  .brand-text strong { display: flex; flex-direction: column; line-height: 1.25; }
  .brand-pre { font-size: .68rem; margin-right: 0; }
  .brand-name { font-size: 1rem; }
  .brand-text small { display: none; }
  .nav-toggle-label { display: none; }
  .nav-toggle { padding: 11px; }
  .brand-mark img { width: 40px; height: 40px; }

  .hero h1 { font-size: 1.62rem; }
  .btn-main { font-size: 1.28rem; }
  .hero-badges li { font-size: .84rem; padding-inline: 14px; }

  /* 署名は役職と氏名を改行して、中途半端な折り返しを防ぐ */
  .sign-role {
    display: block;
    margin-right: 0;
    font-size: .88em;
    font-weight: 500;
    color: var(--ink-soft);
  }
  .sign-name { display: block; margin-top: 2px; }

  /* 「0円」を独立した行にして読みやすくする。
     前半の一文が2行に割れないよう文字サイズを抑え、その分「0円」を大きくする */
  .fee-big { font-size: 1.2rem; }
  .fee-big em { display: block; margin-top: 4px; font-size: 1.8em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

@media print {
  .site-header, .mobile-call, .map-box iframe { display: none; }
  body { font-size: 12px; }
}
