/* Zindies デザイントークンの写し（zindies-tokens.css の oklch を sRGB に落とした値）。
   店の面に置く成果物なので neo-brutalism は弱め（zds-muted 相当）。 */
:root {
  --cream: #FFF8F0;
  --black: #1A1A1A;
  --gray: #6E6A66;
  --gray-light: #B0AAA4;
  --mint: #62D4A0;
  --palemint: #E9F8F1;
  --red: #E6443D;
  --red-soft: #E4796B;
  --blue: #62A8E5;
  --royalblue: #3D5588;
  --purple-deep: #4B3B7A;
  --border-soft: #D0D6E2;
  --shadow-soft: rgba(61, 85, 136, 0.12);
  --font-heading: 'Zen Kaku Gothic New', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-body: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
}
a { color: var(--royalblue); }
h1, h2, .month-label { font-family: var(--font-heading); font-weight: 700; }
h1 { font-size: 1.6rem; margin: 0 0 .4rem; }
h2 { font-size: 1.05rem; margin: 0 0 .25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.site { display: flex; align-items: center; padding: 14px 20px; }
.brand img { display: block; height: 27px; width: auto; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 8px 20px 48px; }
.intro { max-width: 640px; margin-bottom: 20px; }
.lead { margin: 0; color: var(--gray); }

.columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 860px) { .columns { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } }

.card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  box-shadow: 2px 2px 0 var(--shadow-soft);
  padding: 18px;
}

.month-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.month-label { font-size: 1.15rem; }

.btn {
  font: inherit;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}
.btn:disabled { opacity: .45; cursor: default; }
.btn-quiet { background: #F1EEEA; color: var(--black); }
.btn-quiet:hover:not(:disabled) { background: #E9E5E0; }
.btn-xs { padding: 5px 9px; font-size: .8rem; }
.btn-primary { background: var(--purple-deep); color: #fff; font-weight: 500; }
.btn-primary:hover:not(:disabled) { filter: brightness(1.12); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .78rem; color: var(--gray); }
.legend .is-dim { opacity: .4; }
.sym { display: inline-block; width: 1em; text-align: center; color: var(--black); font-weight: 700; }
.sym-red { color: var(--red); }
.muted { color: var(--gray-light); }
.bulk { display: flex; gap: 6px; }

.weekdays, .grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.weekdays { margin-bottom: 4px; }
.wd {
  font: inherit; font-size: .72rem; font-weight: 700;
  background: none; border: 0; border-radius: 6px; padding: 4px 0;
  color: var(--gray); cursor: pointer;
}
.wd:hover { background: #F1EEEA; }
.wd-0 { color: var(--red); }
.wd-6 { color: var(--blue); }

.cell {
  font: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 52px; padding: 6px 0;
  border: 2px solid #E5E2DE; border-radius: 6px; background: #fff;
  cursor: pointer; user-select: none; color: var(--black);
  transition: background-color .12s, border-color .12s;
}
.cell .num { font-size: .8rem; font-weight: 700; line-height: 1; }
.cell .num.is-sun { color: var(--red); }
.cell .num.is-sat { color: var(--blue); }
.cell .mark { font-size: .9rem; font-weight: 700; line-height: 1; height: 1em; margin-top: 3px; }
.cell .holiday { font-size: 8px; line-height: 1.2; color: var(--red-soft); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.cell.is-unset { color: var(--gray-light); }
.cell.is-open { background: var(--palemint); border-color: var(--mint); }
.cell.is-open2 { background: #fff; border-color: var(--mint); }
.cell.is-closed { background: #FEF2F2; border-color: rgba(230, 68, 61, .4); color: var(--red); }
.cell.is-closed .num { color: var(--red); }
.cell-adjacent { display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; color: #D0CAC4; min-height: 52px; }

.hint { font-size: .8rem; color: var(--gray); margin: 8px 0 0; }
.status:empty { display: none; }
.fields { display: grid; gap: 14px; margin-top: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 4px; }
.field input[type="text"] {
  width: 100%; font: inherit; padding: 8px 10px;
  border: 1px solid #B8B3AD; border-radius: 6px; background: #fff;
}
.field input:focus { outline: 2px solid var(--purple-deep); outline-offset: 1px; }
.icon-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.icon-preview { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(26, 26, 26, .7); background: #fff; }
.icon-row input[type="file"] { font-size: .85rem; }
.times { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.times input[type="time"] { font: inherit; padding: 6px 8px; border: 1px solid #B8B3AD; border-radius: 6px; background: #fff; }

.preview-card canvas {
  display: block; width: 100%; height: auto; max-width: 420px; margin: 12px auto 0;
  border: 1px solid var(--border-soft); border-radius: 8px; box-shadow: 2px 2px 0 var(--shadow-soft);
  background: #fff;
}
.actions { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }

.handoff {
  margin: 0 0 20px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--mint);
  border-radius: 12px;
  box-shadow: 2px 2px 0 rgba(98, 212, 160, .25);
}
.handoff-lead { margin: 0 0 8px; font-size: .9rem; }
.handoff-places { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.handoff-places a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 8px; text-decoration: none;
  background: var(--palemint); color: var(--black); border: 1px solid var(--mint); font-weight: 500;
}
.handoff-places a:hover { filter: brightness(.97); }
.handoff-places img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(26, 26, 26, .5); background: #fff; }

.step { margin-top: 32px; padding: 18px 20px; border-top: 1px solid var(--border-soft); max-width: 640px; }
.step h2 { font-size: 1rem; }
.step p { margin: 0; color: var(--gray); }

/* ページのシェア（導入文の下）。本体の share_button と同じ 4 択メニュー */
.btn-outline { background: #fff; color: var(--black); border-color: var(--royalblue); box-shadow: 2px 2px 0 var(--shadow-soft); }
.btn-outline:hover { background: var(--palemint); }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.page-share { position: relative; margin-top: 14px; }
.share-menu {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 20;
  width: 224px; padding: 4px 0; background: #fff;
  border: 2px solid var(--royalblue); border-radius: 12px; box-shadow: 4px 4px 0 var(--royalblue);
}
.share-menu button {
  font: inherit; font-size: .85rem; width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; border: 0; background: none; color: var(--black); text-align: left; cursor: pointer;
}
.share-menu button:hover { background: var(--cream); }
.share-menu-sep { border-top: 1px solid rgba(61, 85, 136, .15); margin: 4px 0; }
.share-toast { margin: 6px 0 0; font-size: .8rem; color: var(--royalblue); }

/* フッタ（本家 layouts/_footer の中間形） */
.site-footer { margin-top: 8px; background: var(--black); color: rgba(255, 255, 255, .7); font-size: .8rem; padding: 24px 20px 28px; }
.footer-inner { max-width: 1040px; margin: 0 auto; display: grid; gap: 14px; text-align: center; }
.footer-mission { margin: 0; line-height: 1.7; }
.footer-mission a, .footer-links a, .footer-copy a { color: inherit; }
.footer-mission a:hover, .footer-links a:hover { color: #fff; }
.footer-sns { display: flex; justify-content: center; gap: 18px; }
.footer-sns a { color: inherit; display: inline-flex; }
.footer-sns a:hover { color: #fff; }
.sns-note { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .7rem; border: 1px solid currentColor; border-radius: 3px; }
/* 狭い幅では折り返すので区切り線を出さず余白だけ、広い幅では本家と同じ縦線区切り */
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.footer-links a { text-decoration: none; }
@media (min-width: 520px) {
  .footer-links { gap: 4px 0; }
  .footer-links a { padding: 0 12px; border-left: 1px solid rgba(255, 255, 255, .3); }
  .footer-links a:first-child { border-left: 0; }
}
.footer-links a:hover { text-decoration: underline; }
.footer-copy { display: flex; align-items: center; justify-content: center; gap: 6px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .2); }
.footer-copy img { display: block; height: 20px; width: auto; transition: transform .15s; }
.footer-copy a:hover img { transform: scale(1.15) rotate(-5deg); }
