:root {
  --water: #FFFFFF;
  --band: #F3F7F8;
  --mist: #DCE6E9;
  --ink: #1D2B31;
  --muted: #4A626A;
  --teal: #028090;
  --on-teal: #FFFFFF;
  --lure: #E5A23A;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "BIZ UDPMincho", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans JP", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--water);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.9;
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: break-word;
}
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.wrap { width: min(100% - 2.5rem, 62rem); margin-inline: auto; }

/* ヘッダー */
.site-header { padding: 1.5rem 0 0; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
}
.brand img { width: 2.6rem; height: auto; flex: none; }

/* ヒーロー */
.hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0 4.5rem;
}
.hero h1 {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: min(3rem, calc((100vw - 2.5rem) / 13.8));
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.hero h1 span { display: inline-block; }
.lead { max-width: 34rem; margin: 0 0 2rem; color: var(--muted); }
.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: 0.4rem;
  background: var(--teal);
  color: var(--on-teal);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.1); }

.pond { width: 100%; max-width: 30rem; justify-self: center; }
.pond svg { display: block; width: 100%; height: auto; overflow: visible; }
.ring {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.5;
  opacity: var(--end);
  transform-box: fill-box;
  transform-origin: center;
  animation: ripple 2.8s cubic-bezier(0.2, 0.6, 0.3, 1) both;
  animation-delay: calc(0.75s + var(--i) * 0.5s);
}
.lure {
  fill: var(--lure);
  animation: drop 0.75s cubic-bezier(0.5, 0, 0.9, 0.6) both;
}
@keyframes ripple {
  0%   { opacity: 0; transform: scale(0.15); }
  25%  { opacity: 0.9; }
  100% { opacity: var(--end); transform: scale(1); }
}
@keyframes drop {
  0%   { opacity: 0; transform: translateY(-90px); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .ring, .lure { animation: none; }
  html { scroll-behavior: auto; }
}

/* セクション */
.section { padding: 4.5rem 0; }
.section--band { background: var(--band); }
.section h2 {
  margin: 0 0 2rem;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
}
.section p { margin: 0 0 1rem; }
.section p:last-child { margin-bottom: 0; }
.measure p { max-width: 40rem; }
.demo { margin: 2.5rem 0 0; }
.demo__window {
  background: #FFFFFF;
  border: 1px solid var(--mist);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(29, 43, 49, 0.06), 0 8px 24px rgba(29, 43, 49, 0.08);
  overflow: hidden;
}
.demo__titlebar {
  position: relative;
  padding: 0.45rem 1rem;
  background: var(--band);
  border-bottom: 1px solid var(--mist);
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}
.demo__dots, .demo__dots::before, .demo__dots::after {
  position: absolute;
  top: 50%;
  width: 10px; height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: #DDE4E7;
}
.demo__dots { left: 14px; }
.demo__dots::before, .demo__dots::after { content: ""; }
.demo__dots::before { left: 16px; margin-top: -5px; top: 50%; }
.demo__dots::after { left: 32px; }
.demo__badge {
  margin-left: 0.6rem;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: var(--lure);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
}
.demo__step { padding: 1.25rem 1.25rem 0.25rem; }
.demo__step h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.4rem;
  font-size: 1rem;
}
.demo__num {
  display: grid;
  place-items: center;
  width: 1.6rem; height: 1.6rem;
  border-radius: 50%;
  background: var(--teal);
  color: var(--on-teal);
  font-size: 0.85rem;
}
.demo__run {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 1.25rem 0;
  padding: 1.25rem 0 1.4rem;
  border-top: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
  position: relative;
}
.demo__run::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 50%;
  width: 16px; height: 16px;
  margin-left: -8px;
  background: #FFFFFF;
  border-right: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
  transform: rotate(45deg);
}
.demo-btn--big { padding: 0.75rem 2.6rem; font-size: 1rem; }
.demo__status {
  flex: 1 0 100%;
  max-width: none !important;
  margin: 0 !important;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted);
}
.demo-btn {
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--teal);
  border-radius: 0.35rem;
  background: #FFFFFF;
  color: var(--teal);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}
.demo-btn--primary { background: var(--teal); color: var(--on-teal); }
.demo-btn:hover { filter: brightness(1.08); }
.demo-btn:focus-visible, .demo__cell:focus-visible { outline: 3px solid var(--lure); outline-offset: 1px; }
.demo__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.demo__toolbar .demo__hint { flex: 1 1 20rem; margin: 0 !important; }
.demo-btn--small { padding: 0.3rem 0.85rem; font-size: 0.8rem; }
.demo-btn:disabled { opacity: 0.4; cursor: default; filter: none; }
.demo__pairs {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--mist);
  border-radius: 8px;
  font-size: 0.85rem;
}
.demo__pairs h4 { margin: 0 0 0.5rem; font-size: 0.85rem; }
.demo__pairs-list { margin: 0 0 0.6rem; padding: 0; list-style: none; }
.demo__pairs-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0;
}
.demo__pairs-list select {
  padding: 0.2rem 0.4rem;
  border: 1px solid var(--mist);
  border-radius: 4px;
  background: #FFFFFF;
  color: var(--ink);
  font: inherit;
}
.demo__pairs-list select:focus-visible { outline: 3px solid var(--lure); outline-offset: 1px; }
.demo__pairs-empty { color: var(--muted); }
.demo__pairs-warn { color: #B5482F; font-size: 0.8rem; font-weight: 700; }
.demo__pairs-del {
  margin-left: auto;
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--mist);
  border-radius: 4px;
  background: #FFFFFF;
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}
.demo__pairs-del:hover { border-color: #D0482A; color: #B5482F; }
.demo__hint {
  margin: 0 0 0.75rem !important;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted);
}
.demo__placeholder {
  margin: 0 !important;
  padding: 2.5rem 1rem;
  border: 1px dashed var(--mist);
  border-radius: 8px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.demo__result.is-empty .demo__legend { display: none; }
.demo__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 13.5rem;
  gap: 1.25rem;
  margin-top: 0.75rem;
}
.demo__table-wrap { overflow-x: auto; }
.demo__table { width: 100%; border-collapse: collapse; font-size: 0.8rem; line-height: 1.2; }
.demo__table th, .demo__table td { padding: 2px; text-align: center; }
.demo__table thead th {
  min-width: 2.35rem;
  padding: 0.35rem 2px;
  background: var(--band);
  font-weight: 700;
}
.demo__table thead small { display: block; font-size: 0.65rem; font-weight: 400; }
.demo__table thead .is-sat { color: #2C6FA8; }
.demo__table thead .is-sun { color: #B5482F; }
.demo__table .demo__tally { min-width: 2.6rem; font-weight: 700; color: var(--ink); }
.demo__table .demo__tally.is-first { border-left: 2px solid var(--mist); }
.demo__table thead .demo__tally { color: var(--muted); }
.demo__table .demo__corner { font-size: 0.7rem; font-weight: 400; color: var(--muted); }
.demo__table tbody th, .demo__table tfoot th {
  padding-right: 0.6rem;
  text-align: left;
  white-space: nowrap;
  font-weight: 400;
}
.demo__table tbody tr { border-bottom: 1px solid var(--mist); }
.demo__table tfoot th, .demo__table tfoot td { background: var(--band); font-size: 0.75rem; color: var(--muted); padding: 0.4rem 2px; }
.demo__table tfoot tr:first-child th, .demo__table tfoot tr:first-child td { border-top: 6px solid #FFFFFF; }
.demo__table tfoot th { padding-left: 0.5rem; }
.demo__table tfoot td.is-bad { background: #FBE3DE; color: #B5482F; font-weight: 700; }
.demo__cell {
  position: relative;
  display: block;
  width: 100%;
  min-width: 2.2rem;
  height: 1.8rem;
  padding: 0;
  border: 1px dashed var(--mist);
  border-radius: 4px;
  background: #FFFFFF;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.demo__cell:hover { border-color: var(--teal); }
.s-day { border-style: solid; border-color: transparent; }
.s-night { border-style: solid; border-color: transparent; background: var(--ink); color: #FFFFFF; }
.s-after { border-style: solid; border-color: transparent; background: #E9EEF0; color: var(--muted); }
.s-off { border-style: solid; border-color: transparent; background: #FBEBD0; color: #8A5A12; }
.demo__cell.is-wish::after, .demo__wishdot {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lure);
}
.demo__cell.is-wish::after { position: absolute; top: 3px; right: 3px; }
.demo__cell.is-bad { border: 2px solid #D0482A; box-shadow: 0 0 0 2px #FBE3DE; }
.demo__panel {
  align-self: start;
  padding: 1rem;
  border: 1px solid var(--mist);
  border-radius: 8px;
  font-size: 0.8rem;
}
.demo__panel h4 { margin: 0 0 0.75rem; font-size: 0.9rem; }
.demo__empty { margin: 0 !important; color: var(--muted); line-height: 1.7; }
.demo__summary {
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  border-radius: 6px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
}
.demo__summary.is-ok { background: #E3F2F3; color: var(--teal); }
.demo__summary.is-bad { background: #FBE3DE; color: #B5482F; }
.demo__panel ul { margin: 0; padding: 0; list-style: none; }
.demo__panel li { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0; line-height: 1.4; }
.demo__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.05rem; height: 1.05rem;
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
}
.demo__panel li.is-ok .demo__mark { background: var(--teal); }
.demo__panel li.is-ok .demo__mark::before { content: "✓"; }
.demo__panel li.is-bad .demo__mark { background: #D0482A; }
.demo__panel li.is-bad .demo__mark::before { content: "!"; }
.demo__panel li.is-bad { color: #B5482F; font-weight: 700; }
.demo__count { margin-left: auto; font-size: 0.75rem; }
.demo__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin: 0;
  padding: 0.9rem 0 1rem;
  list-style: none;
  font-size: 0.75rem;
  color: var(--muted);
}
.demo__legend li { display: flex; align-items: center; gap: 0.4rem; }
.demo__chip {
  display: grid;
  place-items: center;
  width: 1.3rem; height: 1.3rem;
  border: 1px solid var(--mist);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
}
.demo figcaption { margin-top: 0.9rem; font-size: 0.9rem; color: var(--muted); }
.demo:not(.is-ready) .demo__window { display: none; }
.demo__fallback { display: block; width: 100%; height: auto; border-radius: 10px; }
.w-off { border-style: solid; border-color: #E8C88F; background: #FFF7EA; color: #8A5A12; }
.w-night { border-style: solid; border-color: var(--ink); background: #FFFFFF; color: var(--ink); }
.w-day { border-style: solid; border-color: var(--teal); background: #FFFFFF; color: var(--teal); }
@media (max-width: 52rem) {
  .demo__body { grid-template-columns: 1fr; }
  .demo__panel { margin-bottom: 0.25rem; }
}

.rows { margin: 0; padding: 0; list-style: none; }
.rows > li, .rows > div {
  display: grid;
  gap: 0.35rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--mist);
}
.rows > li:last-child, .rows > div:last-child { border-bottom: 1px solid var(--mist); }
.rows dt, .rows .title { font-weight: 700; font-size: 1.08rem; line-height: 1.6; }
.rows dd { margin: 0; color: var(--muted); }
.rows p { margin: 0; color: var(--muted); }
.status { display: block; font-size: 0.88rem; font-weight: 400; color: var(--muted); }
.status.is-done { color: var(--teal); font-weight: 700; }
@media (min-width: 48rem) {
  .rows > li, .rows > div { grid-template-columns: 20rem 1fr; gap: 2rem; }
}

/* 導入の流れ(順番のある内容なので番号を付ける) */
.flow { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.flow li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem 1fr;
  padding: 1.2rem 0;
  border-top: 1px solid var(--mist);
}
.flow li:last-child { border-bottom: 1px solid var(--mist); }
.flow li::before {
  content: counter(step);
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1.3;
  color: var(--teal);
}
.flow strong { display: block; }
.free {
  display: inline-block;
  margin-left: 0.6rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: #FBEBD0;
  color: #8A5A12;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  vertical-align: 0.12em;
}
.flow p { margin: 0; color: var(--muted); }
.section .flow-note { margin-top: 1.25rem; color: var(--muted); }

/* 連絡先 */
.mail {
  display: inline-block;
  margin: 0.25rem 0 1.25rem;
  color: var(--teal);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1rem + 1.6vw, 1.9rem);
  text-decoration: underline;
  text-underline-offset: 0.3em;
  word-break: break-all;
}

/* フッター */
.site-footer { padding: 2.5rem 0 3.5rem; color: var(--muted); font-size: 0.9rem; line-height: 1.8; }
.site-footer p { margin: 0; }

/* ヒーロー 2カラム */
@media (min-width: 52rem) {
  .hero { grid-template-columns: 1.25fr 0.75fr; padding: 5rem 0 6.5rem; }
  .hero h1 { font-size: min(2.6rem, calc((100vw - 5rem) * 0.625 / 13.5)); }
}

/* 下層ページ(体験版ページなど) */
.page-head { padding: 3rem 0 3.5rem; }
.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.15rem 0.75rem;
  border-radius: 999px;
  background: #FBEBD0;
  color: #8A5A12;
  font-size: 0.85rem;
  font-weight: 700;
}
.page-head h1 {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.5rem);
  line-height: 1.45;
}
.page-head h1 span { display: inline-block; }
.page-head .lead { margin-bottom: 0; }
.steps { margin: 0 0 0.5rem; padding-left: 1.4rem; }
.steps li { margin: 0.2rem 0; }
.page-demo .demo { margin-top: 1.5rem; }
.bullets { margin: 0; padding-left: 1.3rem; }
.bullets li { margin: 0.4rem 0; }
.more-link { margin-top: 1.25rem !important; }
.more-link a { color: var(--teal); font-weight: 700; text-underline-offset: 0.25em; }

.demo__panel h5 { margin: 1rem 0 0.4rem; padding-top: 0.75rem; border-top: 1px solid var(--mist); font-size: 0.8rem; }
.demo__panel .demo__together li { display: block; padding: 0.25rem 0; }
.demo__panel .demo__together strong { display: block; font-weight: 700; }
.demo__panel .demo__together span { color: var(--muted); font-size: 0.75rem; }
