/* sinkin.jp v3 — 道具箱ミニマル（v2 にロングステイ管理を追加）
   色は :root の5色だけ。本文中の色はすべて変数で参照する。 */

:root {
  color-scheme: light;
  --bg: #f7f6f2;      /* 地 */
  --ink: #15161a;     /* 文字 */
  --sub: #5c5e66;     /* 補助文字 */
  --line: #e2e0d8;    /* 罫線 */
  --accent: #1d4e8f;  /* 藍（差し色はこの1色だけ） */

  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, "Noto Sans JP", monospace;

  --pad: 20px;
  --max: 1120px;
  --radius: 8px;
}

@media (min-width: 720px)  { :root { --pad: 32px; } }
@media (min-width: 1024px) { :root { --pad: 40px; } }

/* ---------- 土台 ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .02em;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: .24em;
}

::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-feature-settings: "palt";
  word-break: auto-phrase;
}

/* 段落の最終行に1〜2文字だけ残る折り返しを避ける（対応ブラウザのみ） */
.hero__body, .work__text, .how li, .contact__text { text-wrap: pretty; }

.wrap {
  width: min(100% - var(--pad) * 2, var(--max));
  margin-inline: auto;
}

/* ---------- ヘッダー ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent);
}

.brand__mark::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
}

.brand__name {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  letter-spacing: .01em;
}

.site-nav { display: none; }

@media (min-width: 720px) {
  .site-header { min-height: 76px; }

  .site-nav {
    display: flex;
    gap: 28px;
  }

  .site-nav a {
    padding-block: 6px;
    color: var(--sub);
    font-size: 14px;
    text-decoration: none;
  }

  .site-nav a:hover {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--accent);
  }
}

/* ---------- ボタン ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-width: 1px;
  border-style: solid;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.btn--primary:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover { border-color: var(--ink); }

/* ---------- ヒーロー ---------- */

.hero { padding-top: 12px; }

.hero__title {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .01em;
}

.hero__lead { margin-top: 14px; }

.hero__lead p { margin: 0; }

.hero__body {
  font-size: 15px;
  line-height: 1.85;
}

.hero__lead .hero__en {
  margin-top: 10px;
  color: var(--sub);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0;
}

.hero__lead .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

@media (min-width: 720px) {
  .hero { padding-top: 32px; }
  .hero__body { font-size: 16px; max-width: 34em; }
}

@media (min-width: 1024px) {
  .hero { padding-top: 48px; }

  .hero__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 64px;
    align-items: start;
  }

  .hero__lead { margin-top: 4px; }
}

/* ---------- 製品の帯（机に並べた道具） ---------- */

.desk {
  --phone-w: clamp(136px, 40vw, 200px);
  --gap: 14px;
  display: flex;
  margin: 28px calc(var(--pad) * -1) 0;
  padding: 0 var(--pad);
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  scrollbar-width: none;
}

.desk::-webkit-scrollbar { display: none; }

.desk__item {
  flex: none;
  scroll-snap-align: start;
}

.desk__item:not(:last-child) { padding-right: var(--gap); }

.device { margin: 0; }

/* 端末が立つ「机」の線。帯の端から端まで途切れずに通す */
.device__cap {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--sub);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0;
  white-space: nowrap;
}

.desk__item:not(:last-child) .device__cap {
  margin-right: calc(var(--gap) * -1);
  padding-right: var(--gap);
}

@media (min-width: 720px) {
  /* 4台を1列に。1台の幅は「列の幅 − 24px」、150〜232px の間 */
  .desk {
    --phone-w: clamp(150px, calc(min(100vw - var(--pad) * 2, var(--max)) / 4 - 24px), 232px);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 48px 0 0;
    padding: 0;
    overflow: visible;
  }

  .desk__item:not(:last-child) { padding-right: 0; }

  .device {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .device__cap,
  .desk__item:not(:last-child) .device__cap {
    align-self: stretch;
    margin-right: 0;
    padding: 12px 0 0;
    font-size: 12px;
    text-align: center;
  }
}

@media (min-width: 1024px) {
  .desk { margin-top: 56px; }
}

/* ---------- スマホ枠（CSS で描く） ---------- */

.phone {
  --w: var(--phone-w, 240px);
  container-type: inline-size;
  flex: none;
  width: var(--w);
  overflow: hidden;
  background: var(--bg);
  border: calc(var(--w) * .028) solid var(--ink);
  border-radius: calc(var(--w) * .14);
}

/* 画面上部のカメラ部分 */
.phone::before {
  content: "";
  display: block;
  width: 28%;
  height: calc(var(--w) * .058);
  margin: calc(var(--w) * .024) auto calc(var(--w) * .022);
  border-radius: 999px;
  background: var(--ink);
}

.phone > img {
  width: 100%;
  height: auto;
  aspect-ratio: 750 / 1624;
  object-fit: cover;
  object-position: top center;
}

/* ---------- 家計アプリの画面イメージ（実データは使わない） ----------
   土台（縦横比・余白・文字の基準）はロングステイ管理の画面イメージと共有する */

.kakei,
.stay {
  display: flex;
  flex-direction: column;
  aspect-ratio: 750 / 1624;
  min-height: 0;
  overflow: hidden;
  padding: 8cqw 7.5cqw 6cqw;
  color: var(--ink);
  font-size: 4.6cqw;
  line-height: 1.4;
  letter-spacing: 0;
}

:where(.kakei, .stay) :where(p, dl, dt, dd, ul, li) { margin: 0; padding: 0; }

.kakei__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 5.2cqw;
  font-weight: 700;
}

.kakei__month {
  padding: .2em .85em;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--sub);
  font-family: var(--mono);
  font-size: 4.4cqw;
  font-weight: 400;
}

.kakei__total {
  margin-top: 7cqw;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13cqw;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.kakei__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 9cqw;
  padding-block: 5cqw;
  border-block: 1px solid var(--line);
}

.kakei__split > div + div {
  padding-left: 5cqw;
  border-left: 1px solid var(--line);
}

.kakei__split dt {
  color: var(--sub);
  font-size: 4cqw;
}

.kakei__split dd {
  margin-top: 1cqw;
  font-family: var(--mono);
  font-size: 5.6cqw;
  font-weight: 700;
  letter-spacing: -.02em;
}

.kakei__bars {
  display: grid;
  gap: 8cqw;
  margin-top: 11cqw;
  list-style: none;
}

/* 1行目: 名前と割合 / 2行目: トラック（罫線色）の上に藍の棒を重ねる */
.kakei__bars li {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 2.4cqw;
  font-size: 4.6cqw;
}

.kakei__bars li::before,
.kakei__bars li::after {
  content: "";
  grid-row: 2;
  grid-column: 1 / -1;
  height: 3.2cqw;
  border-radius: 999px;
}

.kakei__bars li::before {
  z-index: 1;
  width: var(--v);
  background: var(--accent);
}

.kakei__bars li::after { background: var(--line); }

.kakei__pct {
  color: var(--sub);
  font-family: var(--mono);
  font-size: 4.2cqw;
}

.kakei__note,
.stay__note {
  margin-top: auto;
  padding-top: 5cqw;
  color: var(--sub);
  font-size: 3.8cqw;
  text-align: center;
}

/* ---------- ロングステイ管理の画面イメージ（実在の情報は使わない） ----------
   上: 滞在中のゲスト一覧（1行目を選択中） / 下: 選択中のゲストの特典の付与状況 */

.stay__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 3cqw;
  font-size: 5.2cqw;
  font-weight: 700;
}

.stay__todo {
  color: var(--sub);
  font-family: var(--mono);
  font-size: 3.8cqw;
  font-weight: 400;
  white-space: nowrap;
}

/* 行の背景は文字の列より少しだけ外へ出す（文字は見出しと左をそろえる） */
.stay__guests {
  display: grid;
  gap: 1.6cqw;
  margin: 9cqw -3cqw 0;
  list-style: none;
}

.stay__guests li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: 4.2cqw;
  row-gap: .8cqw;
  padding: 4.4cqw 3cqw;
  border-radius: 0 1.6cqw 1.6cqw 0;
}

/* 選択中の行: 罫線色の面＋左に藍の細い縦線 */
.stay__guests .stay__current {
  background: var(--line);
  box-shadow: inset 1cqw 0 0 var(--accent);
}

.stay__room {
  font-family: var(--mono);
  font-size: 5.2cqw;
  font-weight: 700;
  letter-spacing: -.01em;
}

.stay__name { font-size: 5.2cqw; }

.stay__meta {
  grid-column: 2;
  color: var(--sub);
  font-size: 3.8cqw;
}

.stay__sub {
  margin-top: 11cqw;
  padding-top: 8cqw;
  border-top: 1px solid var(--line);
  color: var(--sub);
  font-size: 4cqw;
  font-weight: 700;
}

.stay__perks {
  display: grid;
  margin-top: 3cqw;
  list-style: none;
}

.stay__perks li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3cqw;
  padding-block: 4.6cqw;
  font-size: 4.6cqw;
}

.stay__perks li + li { border-top: 1px solid var(--line); }

/* 状態のラベル: 完了＝藍の塗り / 提案済＝罫線の枠だけ / 未提案＝補助文字色の文字だけ。
   3つとも同じ余白にして、文字の右端をそろえる */
.stay__state {
  flex: none;
  padding: .12em .9em;
  border: 1px solid var(--bg);
  border-radius: 999px;
  color: var(--sub);
  font-size: 3.8cqw;
  line-height: 1.5;
}

.stay__perks .stay__state--done {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 700;
}

.stay__perks .stay__state--offered {
  border-color: var(--line);
  color: var(--ink);
}

/* ---------- セクション見出し（番号＋右に伸びる罫線） ---------- */

.section { padding-top: 80px; }

.section__title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 36px;
  font-size: 1.15rem;
  line-height: 1.4;
}

.section__num {
  color: var(--accent);
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.section__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

@media (min-width: 720px) {
  .section { padding-top: 112px; }
  .section__title { margin-bottom: 48px; font-size: 1.25rem; }
}

/* ---------- 01 作っているもの ----------
   ヒーローの帯と同じく、製品は細い線の上に「立てて置く」。
   スマホ: 線の上に製品、線の下に文章 / 720px〜: 左右交互、文章は線にそろえて下端に置く */

.work {
  display: grid;
  gap: 20px;
}

.work + .work { margin-top: 64px; }

.work__media {
  --phone-w: clamp(200px, 58vw, 260px);
  display: flex;
  justify-content: center;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

/* 流れ図は「物」ではなく図なので、線から少し浮かせる */
.work__media--flow { padding-bottom: 32px; }

.work__body { max-width: 34em; }

.work__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.5;
}

.work__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
}

.tag {
  display: inline-block;
  margin: 14px 0 0;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--sub);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0;
}

@media (min-width: 720px) {
  .work {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    column-gap: clamp(40px, 7vw, 96px);
    border-bottom: 1px solid var(--line);
  }

  .work + .work { margin-top: 96px; }

  .work__media {
    --phone-w: clamp(200px, 30vw, 260px);
    border-bottom: 0;
  }

  /* 画像と文章を左右交互に */
  .work:nth-of-type(even) .work__media { order: 2; }

  .work__body { padding-bottom: 32px; }

  .work__text { font-size: 16px; }
}

@media (min-width: 1024px) {
  .work + .work { margin-top: 112px; }
}

/* 店舗向け LP: ブラウザ枠風の薄い上辺 */
.browser {
  position: relative;
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.browser::before {
  content: "";
  display: block;
  height: 28px;
  border-bottom: 1px solid var(--line);
}

.browser::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  box-shadow: 13px 0 0 var(--line), 26px 0 0 var(--line);
}

/* AI による業務効率化: 小さな流れ図。スマホは縦に ↓、PC は横に → */
.flow {
  --arrow: 32px;
  display: grid;
  gap: var(--arrow);
  width: min(100%, 15em);
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow li {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 52px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  word-break: auto-phrase;
}

/* AI の下書きは「まだ確定していない」ので点線 */
.flow .flow__ai { border-style: dashed; }

.flow li:not(:last-child)::after {
  content: "↓";
  content: "↓" / "";
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  display: grid;
  place-items: center;
  width: 2em;
  height: var(--arrow);
  margin-left: -1em;
  color: var(--sub);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 400;
}

@media (min-width: 1024px) {
  .flow {
    --arrow: 28px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .flow li { min-height: 88px; }

  .flow li:not(:last-child)::after {
    content: "→";
    content: "→" / "";
    top: 50%;
    left: calc(100% + 1px);
    width: var(--arrow);
    height: 2em;
    margin: -1em 0 0;
    font-size: 18px;
  }
}

/* ---------- 02 やり方 ---------- */

.how {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: how;
}

.how li {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.85;
  counter-increment: how;
}

.how li::before {
  content: counter(how);
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.how strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.05rem;
  font-feature-settings: "palt";
}

@media (min-width: 720px) {
  .how {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }
}

/* ---------- 03 連絡先 ---------- */

.contact__text {
  margin: 0;
  font-size: 15px;
}

.contact__addr {
  margin-top: 20px;
  font-style: normal;
}

.contact__addr p { margin: 0; }

.contact__mail {
  font-family: var(--mono);
  font-size: clamp(1.3rem, 2.4vw, 1.55rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.contact__addr .contact__meta {
  margin-top: 10px;
  color: var(--sub);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .02em;
}

@media (min-width: 720px) {
  .contact__text { font-size: 16px; }
}

/* ---------- フッター ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  margin-top: 96px;
  padding: 20px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--sub);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0;
}

.site-footer p { margin: 0; }

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (min-width: 720px) {
  .site-footer { margin-top: 128px; }
}
