/* ============================================================
   カイトル — シフト管理SaaS BtoB LP
   concept: 「店長の時間を、現場に返す。」
   keywords: 効率 / 信頼 / 明快
   palette: off-white × warm black × signal red
   ============================================================ */

:root {
  --bg: #f7f7f5;
  --white: #ffffff;
  --ink: #2d282a;
  --ink-2: #4a4447;
  --gray: #8b8688;
  --red: #d61138;
  --red-deep: #b00e2e;
  --navy: #1d222d;
  --line: #e6e3e0;
  --blue-gray: #646f77;

  --ff-sans: "Noto Sans JP", sans-serif;
  --ff-display: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --ff-en: "Roboto", "Noto Sans JP", sans-serif;

  --pad-x: clamp(20px, 5vw, 72px);
  --sec-y: clamp(80px, 11vw, 140px);
  --ease: cubic-bezier(0.075, 0.82, 0.165, 1);
  --shadow: 0 24px 60px -24px rgba(29, 34, 45, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 15.5px;
  line-height: 1.95;
  letter-spacing: 0.03em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--red); color: #fff; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--pad-x); }

/* ---------- heading ---------- */
.en-label {
  font-family: var(--ff-en);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.en-label::before { content: ""; width: 28px; height: 2px; background: var(--red); }
.sec-head { margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head .jp {
  font-family: var(--ff-display);
  font-size: clamp(24px, 3.6vw, 38px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
  margin-top: 14px;
}
.sec-head .lead { margin-top: 14px; color: var(--blue-gray); font-size: 15px; }
.sec-head--center { text-align: center; }
.sec-head--center .en-label { justify-content: center; }
.sec-head--center .lead { max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 38px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--red);
  color: #fff;
  border: 2px solid var(--red);
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, background 0.3s;
}
.btn::after {
  content: "";
  width: 18px; height: 8px;
  background: currentColor;
  clip-path: polygon(0 45%, 78% 45%, 78% 0, 100% 50%, 78% 100%, 78% 55%, 0 55%);
  transition: transform 0.3s var(--ease);
}
.btn:hover { background: var(--red-deep); border-color: var(--red-deep); transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(214, 17, 56, 0.55); }
.btn:hover::after { transform: translateX(5px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }

/* ---------- header ---------- */
.l-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 247, 245, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.l-header.is-scrolled { border-color: var(--line); }
.l-header__inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { font-family: var(--ff-display); font-weight: 700; font-size: 21px; letter-spacing: 0.06em; display: flex; align-items: center; gap: 9px; }
.logo .mark {
  width: 30px; height: 30px;
  background: var(--red);
  color: #fff;
  display: grid; place-items: center;
  font-size: 15px;
  border-radius: 8px;
  transform: rotate(-4deg);
}
.g-nav { display: flex; gap: 2px; }
.g-nav a { padding: 8px 14px; font-size: 13px; color: var(--ink-2); border-radius: 6px; transition: background 0.25s, color 0.25s; }
.g-nav a:hover { background: #eceae6; color: var(--ink); }
.l-header .btn { padding: 11px 24px; font-size: 13px; }

/* ---------- hero ---------- */
.hero {
  padding: calc(68px + clamp(48px, 8vw, 100px)) 0 clamp(64px, 9vw, 110px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -30%; right: -12%;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(214, 17, 56, 0.07), transparent 65%);
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(30px, 4.6vw, 50px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.03em;
}
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 0.32em;
  background: rgba(214, 17, 56, 0.18);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1) 0.6s;
}
.hero.is-loaded h1 .hl::after { transform: scaleX(1); }
.hero__sub { margin-top: 22px; color: var(--blue-gray); font-size: 15.5px; }
.hero__badges { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__badges li {
  font-size: 12px;
  letter-spacing: 0.06em;
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--ink-2);
}
.hero__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero__note { margin-top: 16px; font-size: 12px; color: var(--gray); }

.hero, .hero__grid > * { opacity: 1; }
.hero .fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s var(--ease); }
.hero.is-loaded .fade-in { opacity: 1; transform: none; }
.hero .fade-in:nth-child(2) { transition-delay: 0.1s; }

/* CSS dashboard mockup */
.mockup {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform 1s var(--ease);
}
.hero.is-loaded .mockup { transform: perspective(1200px) rotateY(0) rotateX(0); }
.mockup__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfbfa;
}
.mockup__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mockup__bar span:first-child { background: #f0b8c4; }
.mockup__body { display: grid; grid-template-columns: 150px 1fr; min-height: 320px; }
.mockup__side { border-right: 1px solid var(--line); padding: 16px 12px; background: #fbfbfa; }
.mockup__side li { height: 12px; border-radius: 6px; background: var(--line); margin-bottom: 14px; }
.mockup__side li.active { background: rgba(214, 17, 56, 0.25); }
.mockup__side li:nth-child(2) { width: 70%; }
.mockup__side li:nth-child(3) { width: 85%; }
.mockup__side li:nth-child(4) { width: 60%; }
.mockup__side li:nth-child(5) { width: 78%; }
.mockup__main { padding: 18px; }
.mockup__row { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; margin-bottom: 12px; }
.mockup__row .who { height: 26px; border-radius: 7px; background: #efedea; }
.mockup__row .lane { display: flex; gap: 6px; }
.mockup__row .shift {
  height: 26px;
  border-radius: 7px;
  background: rgba(214, 17, 56, 0.85);
  width: 0;
  transition: width 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.mockup__row .shift.alt { background: #1d222d; }
.mockup__row .shift.soft { background: #c9cdd6; }
.mockup.is-animated .mockup__row:nth-child(1) .shift { width: 62%; }
.mockup.is-animated .mockup__row:nth-child(2) .shift { width: 45%; }
.mockup.is-animated .mockup__row:nth-child(3) .shift { width: 70%; }
.mockup.is-animated .mockup__row:nth-child(4) .shift { width: 38%; }
.mockup.is-animated .mockup__row:nth-child(5) .shift { width: 56%; }
.mockup__row:nth-child(1) .shift { transition-delay: 0.3s; }
.mockup__row:nth-child(2) .shift { transition-delay: 0.45s; }
.mockup__row:nth-child(3) .shift { transition-delay: 0.6s; }
.mockup__row:nth-child(4) .shift { transition-delay: 0.75s; }
.mockup__row:nth-child(5) .shift { transition-delay: 0.9s; }

/* ---------- logo band ---------- */
.logo-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.logo-band .inner {
  max-width: 1160px; margin: 0 auto;
  padding: 30px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.logo-band p { font-size: 11.5px; letter-spacing: 0.2em; color: var(--gray); }
.logo-band .names { display: flex; flex-wrap: wrap; gap: 12px 36px; font-family: var(--ff-display); font-weight: 700; color: #b9b5b1; font-size: 17px; letter-spacing: 0.06em; }

/* ---------- pain cards ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pain {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px 28px;
  position: relative;
}
.pain .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(214, 17, 56, 0.08);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.pain .icon svg { width: 26px; height: 26px; stroke: var(--red); fill: none; stroke-width: 1.7; }
.pain h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 10px; letter-spacing: 0.04em; }
.pain p { font-size: 13.5px; color: var(--blue-gray); }

/* ---------- feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(64px, 9vw, 110px); }
.feature-row:nth-child(even) .txt { order: 2; }
.feature-row .no { font-family: var(--ff-en); font-weight: 700; font-size: 13px; letter-spacing: 0.26em; color: var(--red); }
.feature-row h3 { font-family: var(--ff-display); font-size: clamp(20px, 2.6vw, 27px); font-weight: 700; margin: 12px 0 14px; letter-spacing: 0.04em; line-height: 1.6; }
.feature-row p { color: var(--ink-2); font-size: 14.5px; }
.feature-row .imgbox { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.feature-row .imgbox img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

/* ---------- 比較表 ---------- */
.cmp-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.cmp-table th, .cmp-table td { padding: 18px 20px; text-align: center; font-size: 14px; border-bottom: 1px solid var(--line); }
.cmp-table thead th { padding: 20px; }
.cmp-table thead th:first-child { background: var(--navy); color: #fff; text-align: left; letter-spacing: 0.08em; font-weight: 500; }
.cmp-table thead th.ours { background: var(--red); color: #fff; font-family: var(--ff-display); }
.cmp-table thead th.others { background: #efedea; color: var(--ink-2); }
.cmp-table tbody th { text-align: left; font-weight: 500; color: var(--ink); letter-spacing: 0.04em; }
.cmp-table tbody td.ours { background: rgba(214, 17, 56, 0.05); font-weight: 700; color: var(--red); }
.cmp-table .mark-bad { color: var(--gray); }
.cmp-table .price-cell { font-family: var(--ff-en); font-size: 16px; }

/* ---------- flow ---------- */
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: fl; }
.flow-card {
  counter-increment: fl;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 24px;
  position: relative;
}
.flow-card::before {
  content: "STEP " counter(fl);
  font-family: var(--ff-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--red);
}
.flow-card h3 { font-size: 15.5px; font-weight: 700; margin: 14px 0 10px; }
.flow-card p { font-size: 13px; color: var(--blue-gray); }
.flow-card .days {
  display: inline-block;
  margin-top: 16px;
  font-size: 11.5px;
  background: var(--bg);
  border-radius: 999px;
  padding: 4px 12px;
  color: var(--ink-2);
}

/* ---------- pricing ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 30px;
  display: flex; flex-direction: column;
}
.plan--main { border: 2px solid var(--red); position: relative; }
.plan--main::before {
  content: "一番人気";
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 6px 18px;
  border-radius: 999px;
}
.plan h3 { font-family: var(--ff-display); font-size: 17px; letter-spacing: 0.06em; }
.plan .amount { font-family: var(--ff-en); font-size: 40px; font-weight: 700; margin: 16px 0 2px; }
.plan .amount small { font-size: 14px; font-family: var(--ff-sans); font-weight: 400; color: var(--gray); }
.plan .per { font-size: 12px; color: var(--gray); margin-bottom: 22px; }
.plan ul { font-size: 13.5px; flex: 1; }
.plan ul li { padding: 8px 0 8px 24px; position: relative; color: var(--ink-2); }
.plan ul li::before {
  content: "";
  position: absolute; left: 0; top: 15px;
  width: 12px; height: 6px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}
.plan .btn { margin-top: 26px; width: 100%; }

/* ---------- 事例 ---------- */
.case { display: grid; grid-template-columns: 320px 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.case img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
.case .body { padding: clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px) 0; }
.case .metrics { display: flex; gap: 36px; margin-top: 26px; }
.case .metrics .num { font-family: var(--ff-en); font-size: 36px; font-weight: 700; color: var(--red); line-height: 1.1; }
.case .metrics .lbl { font-size: 11.5px; color: var(--gray); margin-top: 6px; letter-spacing: 0.08em; }
.case blockquote { font-size: 15px; color: var(--ink-2); }
.case .who { margin-top: 16px; font-size: 12.5px; color: var(--gray); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  font-weight: 700;
  font-size: 15px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--ff-en); font-size: 22px; color: var(--red); transition: transform 0.35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 26px 24px; font-size: 14px; color: var(--blue-gray); }

/* ---------- 資料請求フォーム ---------- */
.form-sec { background: var(--navy); color: #fff; }
.form-sec .sec-head .jp { color: #fff; }
.form-sec .lead { color: rgba(255,255,255,0.65); }
.form-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.form-points li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.12); font-size: 14px; align-items: flex-start; }
.form-points svg { flex: 0 0 20px; width: 20px; height: 20px; stroke: var(--red); stroke-width: 2; fill: none; margin-top: 4px; }
.c-form { background: #fff; color: var(--ink); border-radius: 18px; padding: clamp(28px, 4vw, 48px); box-shadow: 0 40px 90px -30px rgba(0,0,0,0.45); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.f-field { margin-bottom: 22px; }
.f-field label { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13.5px; margin-bottom: 9px; }
.f-required, .f-optional { font-size: 10px; padding: 2px 9px; border-radius: 4px; letter-spacing: 0.08em; }
.f-required { background: var(--red); color: #fff; }
.f-optional { background: var(--bg); color: var(--gray); }
.f-field input, .f-field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font-family: inherit;
  font-size: 14.5px;
  appearance: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.f-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238b8688' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.f-field input:focus, .f-field select:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 3px rgba(214, 17, 56, 0.1); }
.f-field.is-error input, .f-field.is-error select { border-color: var(--red); background: #fdf3f5; }
.f-error-msg { display: none; margin-top: 7px; font-size: 12px; color: var(--red); }
.f-field.is-error .f-error-msg { display: block; }
.f-success { display: none; text-align: center; padding: 56px 20px; }
.f-success.is-visible { display: block; animation: fadeup 0.6s var(--ease) both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.f-success h3 { font-family: var(--ff-display); font-size: 22px; margin: 18px 0 10px; }
.f-success p { color: var(--blue-gray); font-size: 14px; }
.f-success svg { width: 56px; height: 56px; stroke: var(--red); fill: none; stroke-width: 2; }

/* ---------- fixed CTA / footer ---------- */
.fixed-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 80;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 12px var(--pad-x);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  transform: translateY(100%);
  transition: transform 0.45s var(--ease);
}
.fixed-cta.is-visible { transform: none; }
.fixed-cta p { font-size: 13px; color: var(--ink-2); }
.fixed-cta .btn { padding: 12px 30px; font-size: 13.5px; }

.l-footer { background: var(--navy); color: rgba(255,255,255,0.55); padding: 44px var(--pad-x) 100px; font-size: 12.5px; }
.l-footer .inner { max-width: 1160px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.l-footer .logo { color: #fff; }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.85s ease, transform 0.95s var(--ease); }
[data-reveal].is-inview { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.12s; }
[data-reveal-delay="2"] { transition-delay: 0.24s; }
[data-reveal-delay="3"] { transition-delay: 0.36s; }

.sec { padding: var(--sec-y) 0; }
.sec--white { background: #fff; }

@media (max-width: 960px) {
  .hero__grid, .feature-row, .form-grid, .case { grid-template-columns: 1fr; }
  .feature-row:nth-child(even) .txt { order: 0; }
  .pain-grid, .plan-grid { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: 1fr 1fr; }
  .case .body { padding: 0 26px 30px; }
  .g-nav { display: none; }
  .cmp-table { font-size: 12px; }
  .cmp-table th, .cmp-table td { padding: 12px 10px; }
}
@media (max-width: 560px) {
  .flow-grid, .f-row { grid-template-columns: 1fr; }
  .fixed-cta p { display: none; }
  .fixed-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
