/* ==========================================================================
   開所ラボ — サービスサイト
   介護・障害福祉に特化した採用サイト制作／採用・運用の月額支援
   ========================================================================== */

:root {
  /* Color system */
  --navy:        #1E3A5F;
  --navy-dark:   #14283f;
  --navy-light:  #2f5480;
  --orange:      #E8843C;      /* 装飾用（アイコン・下線・ドット等） */
  --orange-dark: #b05a10;      /* 白背景上の小さめテキスト用（白地で約4.9:1） */
  --orange-btn:  #B85310;      /* ボタン・バッジ背景用（白文字で約4.9:1） */
  --orange-btn-hover: #9C4A0D;
  --ink:         #1c2430;
  --text:        #33404f;
  --muted:       #667486;
  --line:        #e2e7ee;
  --bg:          #ffffff;
  --bg-soft:     #f6f8fb;
  --bg-navy:     #1E3A5F;
  --white:       #ffffff;
  --shadow-sm:   0 1px 3px rgba(20, 40, 63, .08);
  --shadow-md:   0 6px 24px rgba(20, 40, 63, .10);
  --shadow-lg:   0 16px 48px rgba(20, 40, 63, .14);

  /* Type scale */
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
          "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --fs-base: 16px;

  /* Layout */
  --maxw: 1080px;
  --radius: 14px;
  --radius-lg: 22px;
  --gap: clamp(1.25rem, 3vw, 2rem);
}

/* Reset ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-light); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.35; letter-spacing: .01em; margin: 0; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

/* Layout helpers ---------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: clamp(3.25rem, 8vw, 6rem); }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 44rem; margin: 0 auto clamp(2rem, 5vw, 3rem); text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  color: var(--orange-dark); text-transform: uppercase; margin-bottom: .7rem;
}
.section__title { font-size: clamp(1.6rem, 4.2vw, 2.35rem); font-weight: 800; }
.section__lead { color: var(--muted); font-size: 1.02rem; margin-top: .85rem; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 700; font-size: 1rem; line-height: 1; text-align: center;
  padding: .95em 1.7em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--orange-btn); color: #fff; box-shadow: 0 6px 18px rgba(184,83,16,.35); }
.btn--primary:hover { background: var(--orange-btn-hover); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #eef2f8; }
.btn--block { width: 100%; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--navy); font-size: 1.18rem; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--text); font-size: .93rem; font-weight: 600; }
.nav a:hover { color: var(--navy); text-decoration: none; }
.nav .btn { padding: .6em 1.2em; font-size: .9rem; }
.nav-toggle { display: none; }

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 88% -8%, rgba(232,132,60,.14), transparent 60%),
    linear-gradient(180deg, #fbfcfe 0%, #f2f6fb 100%);
}
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero__tag {
  display: inline-flex; align-items: center; gap: .5em; font-size: .82rem; font-weight: 700;
  color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .45em 1em; box-shadow: var(--shadow-sm); margin-bottom: 1.3rem;
}
.hero__tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.hero h1 { font-size: clamp(1.85rem, 5vw, 3rem); font-weight: 800; letter-spacing: .005em; }
.hero h1 .accent { color: var(--navy); position: relative; }
.hero h1 .accent::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .32em; background: rgba(232,132,60,.28); z-index: -1; }
.hero__sub { font-size: clamp(1rem, 2.4vw, 1.15rem); color: var(--text); margin: 1.3rem 0 1.8rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__note { margin-top: 1.1rem; font-size: .85rem; color: var(--muted); }
.hero__art { align-self: center; }
.hero__art svg { width: 100%; filter: drop-shadow(var(--shadow-md)); }

/* Trust strip ------------------------------------------------------------- */
.trust { border-block: 1px solid var(--line); background: #fff; }
.trust__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-block: 1.5rem; text-align: center; }
.trust__item strong { display: block; color: var(--navy); font-size: clamp(1.1rem, 2.4vw, 1.35rem); font-weight: 800; }
.trust__item span { font-size: .85rem; color: var(--muted); }

/* Pain cards -------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon { width: 44px; height: 44px; margin-bottom: 1rem; color: var(--orange); }
.card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.card p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ROI section ------------------------------------------------------------- */
.roi { background: var(--bg-navy); color: #eaf0f8; }
.roi .section__title, .roi .eyebrow { color: #fff; }
.roi .eyebrow { color: #ffd8bb; }
.roi .section__lead { color: #b7c6da; }
.roi__chart { max-width: 760px; margin: 0 auto; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: clamp(1.4rem, 4vw, 2.4rem); }
.roi__note { max-width: 760px; margin: 1.3rem auto 0; font-size: .8rem; color: #93a6bf; line-height: 1.7; }
.roi__cta { text-align: center; margin-top: 2.2rem; }

/* Pricing ----------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 2rem 1.7rem; box-shadow: var(--shadow-sm); position: relative;
}
.plan--featured { border-color: var(--orange); box-shadow: var(--shadow-md); }
.plan__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--orange-btn); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  padding: .35em 1em; border-radius: 999px; white-space: nowrap;
}
.plan__name { font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.plan__desc { font-size: .88rem; color: var(--muted); margin: .4rem 0 1.2rem; min-height: 2.4em; }
.plan__price { font-size: clamp(1.6rem, 4vw, 2rem); font-weight: 800; color: var(--ink); line-height: 1.2; }
.plan__price small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.plan__unit { font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.plan__list { margin: 1.3rem 0 1.7rem; display: grid; gap: .7rem; }
.plan__list li { display: flex; gap: .6em; font-size: .9rem; color: var(--text); align-items: flex-start; }
.plan__list li::before { content: "✓"; color: var(--orange); font-weight: 800; flex: none; }
.plan .btn { margin-top: auto; }
.plans__disclaimer { max-width: 760px; margin: 1.6rem auto 0; font-size: .82rem; color: var(--muted); text-align: center; background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1rem 1.3rem; }

/* Work / cases ------------------------------------------------------------ */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.case {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.case__shot { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #eef3f9, #dbe6f2); overflow: hidden; }
.case__shot svg { width: 100%; height: 100%; }
.case__flag { position: absolute; top: 12px; left: 12px; background: rgba(28,36,48,.85); color: #fff; font-size: .72rem; font-weight: 700; padding: .35em .8em; border-radius: 6px; }
.case__body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.case__body h3 { font-size: 1.15rem; }
.case__meta { font-size: .82rem; color: var(--orange-dark); font-weight: 700; margin: .3rem 0 .8rem; }
.case__intent { font-size: .9rem; color: var(--muted); margin: 0 0 1.2rem; }
.case__body .btn { margin-top: auto; align-self: flex-start; }

/* Reasons ----------------------------------------------------------------- */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.reason { text-align: center; padding: 1.4rem; }
.reason__num { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: 1.3rem; margin-bottom: 1rem; }
.reason h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.reason p { font-size: .92rem; color: var(--muted); margin: 0; }

/* Flow -------------------------------------------------------------------- */
.flow { max-width: 900px; margin-inline: auto; }
.flow__steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; counter-reset: step; }
.flow__step { position: relative; text-align: center; padding: 1.2rem .6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.flow__step .n { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; margin-bottom: .7rem; }
.flow__step h3 { font-size: .95rem; margin-bottom: .3rem; }
.flow__step p { font-size: .78rem; color: var(--muted); margin: 0; }

/* FAQ --------------------------------------------------------------------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .8rem; overflow: hidden; }
.faq__q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font-family: inherit; font-size: 1rem; font-weight: 700; color: var(--ink); padding: 1.15rem 3rem 1.15rem 1.3rem; position: relative; }
.faq__q::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--orange); transition: transform .2s ease; }
.faq__item[open] .faq__q::after { content: "−"; }
.faq__a { padding: 0 1.3rem 1.25rem; color: var(--muted); font-size: .93rem; }
.faq__item summary { list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }

/* Contact ----------------------------------------------------------------- */
.contact { background: var(--bg-navy); color: #eaf0f8; }
.contact .section__title { color: #fff; }
.contact .eyebrow { color: #ffd8bb; }
.contact .section__lead { color: #b7c6da; }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; max-width: 940px; margin-inline: auto; }
.contact__aside h3 { color: #fff; font-size: 1.25rem; margin-bottom: .8rem; }
.contact__aside p { color: #b7c6da; font-size: .95rem; }
.contact__aside a { color: #ffd8bb; }
.contact__points { margin-top: 1.4rem; display: grid; gap: .8rem; }
.contact__points li { display: flex; gap: .6em; font-size: .92rem; color: #dbe6f2; }
.contact__points li::before { content: "✓"; color: var(--orange); font-weight: 800; }
.form { background: #fff; border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.2rem); box-shadow: var(--shadow-lg); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: .88rem; font-weight: 700; color: var(--ink); margin-bottom: .4rem; }
.field .req { color: var(--orange-dark); font-size: .78rem; margin-left: .3em; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: .8em .9em; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-light); outline: none; }
.field textarea { resize: vertical; min-height: 120px; }
.form__consent { font-size: .82rem; color: var(--muted); display: flex; gap: .5em; align-items: flex-start; margin-bottom: 1.2rem; }
.form__consent input { width: auto; margin-top: .25em; }
.form__consent label { cursor: pointer; }
.form__hp { position: absolute; left: -9999px; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--navy-dark); color: #b7c6da; padding-block: 2.8rem 2rem; font-size: .9rem; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; padding-bottom: 1.6rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer .brand { color: #fff; }
.site-footer__desc { max-width: 24rem; margin-top: .8rem; color: #93a6bf; font-size: .86rem; }
.site-footer__links { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.site-footer__links a { color: #cdd9e8; font-size: .88rem; }
.site-footer__bottom { padding-top: 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; font-size: .8rem; color: #7e93ad; }

/* Sub-page (legal) -------------------------------------------------------- */
.legal { max-width: 780px; margin-inline: auto; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin-bottom: .5rem; }
.legal__updated { color: var(--muted); font-size: .85rem; margin-bottom: 2.2rem; }
.legal h2 { font-size: 1.15rem; margin: 2.2rem 0 .7rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--navy); }
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal p, .legal li { color: var(--text); font-size: .95rem; }
.legal ul { padding-left: 1.2rem; margin-bottom: 1em; list-style: disc; }
.legal ul li { margin-bottom: .4em; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.6rem; font-size: .92rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: .8rem 1rem; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-soft); width: 34%; color: var(--navy); font-weight: 700; }
.legal .callout { background: var(--bg-soft); border-left: 4px solid var(--orange); padding: 1rem 1.2rem; border-radius: 0 8px 8px 0; font-size: .9rem; margin: 1rem 0; }
.back-link { display: inline-flex; align-items: center; gap: .4em; margin-top: 2.5rem; font-weight: 600; }

/* Sticky mobile CTA ------------------------------------------------------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
  padding: .7rem clamp(1rem, 4vw, 1.5rem); box-shadow: 0 -4px 16px rgba(20,40,63,.08);
  transform: translateY(120%); visibility: hidden;
  transition: transform .3s ease, visibility .3s ease;
}
.sticky-cta.is-visible { transform: translateY(0); visibility: visible; }
.sticky-cta .btn { width: 100%; }

/* Reveal animation -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 420px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .cases { grid-template-columns: 1fr; }
  .reasons { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .flow__steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav { position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 1rem clamp(1rem,4vw,2rem) 1.5rem;
    gap: .3rem; box-shadow: var(--shadow-md); display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: .7rem .2rem; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: .6rem; }
  .nav-toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 20px; height: 2px; background: var(--navy); position: relative; transition: .2s; }
  .nav-toggle span::before { position: absolute; top: -6px; } .nav-toggle span::after { position: absolute; top: 6px; }
  /* サブページの簡易ナビ（トグル無し）はモバイルでもそのまま表示 */
  .nav--simple { position: static; inset: auto; display: flex; flex-direction: row; align-items: center;
    gap: 1rem; background: transparent; border: 0; box-shadow: none; padding: 0; }
  .nav--simple a { padding: 0; border-bottom: 0; }
  .nav--simple .btn { margin-top: 0; padding: .6em 1.2em; }
  .trust__grid { grid-template-columns: 1fr; gap: .6rem; }
  .site-footer__top { flex-direction: column; }
}
@media (max-width: 460px) {
  .cards { grid-template-columns: 1fr; }
  .flow__steps { grid-template-columns: 1fr; }
}
