/* hayamimi.shop: 藍 (#165E83) on washi white. Phone first. */
:root {
  --ai: #165e83;
  --ai-deep: #0f4562;
  --ai-soft: #e8f1f6;
  --ink: #1d2733;
  --ink-2: #4a5866;
  --ink-3: #5b6672;
  --paper: #fbfaf7;
  --card: #ffffff;
  --line: #e2e0d9;
  --line-2: #d3d0c6;
  --warn: #a2401f;
  --warn-soft: #fbefe9;
  --note: #7a5c12;
  --note-soft: #fbf5e4;
  --ok: #2c6a4c;
  --ok-soft: #eaf4ee;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 30, 40, 0.05), 0 6px 24px rgba(20, 30, 40, 0.06);
  --font: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  font-size: 16px;
  letter-spacing: 0.02em;
  font-feature-settings: "palt" 1;
}
a { color: var(--ai); }
a:hover { color: var(--ai-deep); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.45; letter-spacing: 0.03em; margin: 0 0 0.6em; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--ink-2); }
.small { font-size: 0.875rem; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid #6aa7c9; outline-offset: 2px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
  min-height: 48px; padding: 0.7em 1.4em; border-radius: 8px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  background: var(--ai); color: #fff; transition: background 0.15s ease;
}
.btn:hover { background: var(--ai-deep); color: #fff; }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn.ghost { background: transparent; color: var(--ai); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--ai-soft); color: var(--ai-deep); }
.btn.quiet { background: transparent; color: var(--ink-2); border-color: transparent; min-height: 44px; padding: 0.5em 0.8em; }
.btn.quiet:hover { color: var(--ink); background: #f0eee8; }
.btn.danger { background: transparent; color: var(--warn); border-color: #e7c7bb; }
.btn.danger:hover { background: var(--warn-soft); }
.btn.small { min-height: 44px; padding: 0.4em 0.9em; font-size: 0.9rem; }
.btn.wide { width: 100%; }

/* site nav */
.top { background: rgba(251, 250, 247, 0.94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: 0.04em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.top .links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.top a.link { color: var(--ink-2); text-decoration: none; padding: 0.6em 0.7em; font-size: 0.95rem; display: none; min-height: 44px; align-items: center; }
.top a.link:hover { color: var(--ai); }
.top a.link.show { display: inline-flex; }
.top .btn { min-height: 44px; padding: 0.5em 1em; font-size: 0.95rem; }
@media (min-width: 820px) { .top a.link { display: inline-flex; } }

/* landing */
.hero { padding: 32px 0 40px; }
.hero .grid { display: grid; gap: 32px; }
.eyebrow { display: inline-block; font-size: 0.85rem; color: var(--ai); background: var(--ai-soft); padding: 0.25em 0.8em; border-radius: 99px; margin-bottom: 1.1em; font-weight: 700; }
.hero h1 { font-size: clamp(1.9rem, 5.6vw, 2.6rem); line-height: 1.4; margin-bottom: 0.7em; }
.hero .sub { font-size: 1.05rem; color: var(--ink-2); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 1.6em; }
.cta .note { font-size: 0.9rem; color: var(--ink-2); }
@media (min-width: 960px) {
  .hero { padding: 72px 0 80px; }
  .hero .grid { grid-template-columns: 1fr 1.02fr; align-items: center; gap: 56px; }
}

/* the product preview */
.screen { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; font-size: 0.92rem; }
.screen .bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #f6f5f1; }
.screen .bar img { width: 22px; height: 22px; border-radius: 5px; }
.screen .bar b { font-size: 0.9rem; }
.screen .bar span { margin-left: auto; font-size: 0.78rem; color: var(--ink-3); }
.screen .sample { font-size: 0.72rem; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 6px; margin-left: 6px; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed .what { font-weight: 700; }
.feed .detail { grid-column: 2; color: var(--ink-2); font-size: 0.86rem; line-height: 1.6; }
.feed .detail .arrow { color: var(--ink-3); padding: 0 0.3em; }
.tag { display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; padding: 0.1em 0.6em; border-radius: 4px; white-space: nowrap; height: 1.7em; align-self: start; margin-top: 0.15em; }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.note { background: var(--note-soft); color: var(--note); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.info { background: var(--ai-soft); color: var(--ai); }
.tag.grey { background: #efede7; color: var(--ink-2); }
.screen .foot { padding: 12px 16px; background: #f6f5f1; font-size: 0.8rem; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

/* sections */
section.block { padding: 44px 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { section.block { padding: 64px 0; } }
.phone-hide { display: none; }
@media (min-width: 900px) { .phone-hide { display: block; } }
section.block.alt { background: #f4f2ec; }
.kicker { font-size: 0.85rem; font-weight: 700; color: var(--ai); letter-spacing: 0.12em; margin-bottom: 0.5em; }
section.block h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); margin-bottom: 0.5em; }
.lead { color: var(--ink-2); max-width: 40em; margin-bottom: 2em; }
.steps { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 16px; counter-reset: step; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 18px 64px; position: relative; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: 20px; width: 30px; height: 30px; border-radius: 50%; background: var(--ai); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 0.95rem; }
.steps b { display: block; margin-bottom: 0.2em; }
.steps p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* company card (landing + app) */
.ccard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 22px; }
.ccard .head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 4px; }
.ccard .head h3 { font-size: 1.25rem; margin: 0; }
.ccard .furi { font-size: 0.8rem; color: var(--ink-3); }
.ccard dl { display: grid; grid-template-columns: 7.5em 1fr; gap: 6px 12px; margin: 14px 0; font-size: 0.93rem; }
.ccard dt { color: var(--ink-3); }
.ccard dd { margin: 0; overflow-wrap: anywhere; }
.verdict { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 8px; font-size: 0.93rem; margin: 12px 0; }
.verdict.ok { background: var(--ok-soft); color: var(--ok); }
.verdict.warn { background: var(--warn-soft); color: var(--warn); }
.verdict.note { background: var(--note-soft); color: var(--note); }
.verdict svg { flex: none; margin-top: 0.25em; }
.timeline { list-style: none; margin: 16px 0 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 16px 18px; font-size: 0.92rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 0.55em; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2px solid var(--ai); }
.timeline li.admin::before { border-color: var(--line-2); }
.timeline time { font-weight: 700; margin-right: 0.6em; }
.timeline .d { color: var(--ink-2); font-size: 0.86rem; overflow-wrap: anywhere; }
.watching { display: flex; align-items: center; gap: 8px; color: var(--ai); font-weight: 700; font-size: 0.93rem; margin-top: 8px; }
.watching .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ai); box-shadow: 0 0 0 4px var(--ai-soft); }

/* features */
.features { display: grid; gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature h3 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.feature h3 svg { flex: none; color: var(--ai); }
.feature p { color: var(--ink-2); font-size: 0.96rem; }
.feature ul { padding-left: 1.2em; margin: 0 0 1em; color: var(--ink-2); font-size: 0.95rem; }
.feature li { margin-bottom: 0.3em; }
@media (min-width: 900px) { .features.two { grid-template-columns: 1fr 1fr; } }
.mail { border-left: 3px solid var(--ai); font-size: 0.9rem; margin-top: 8px; padding-left: 14px; }
.mail .mh { padding: 2px 0 8px; font-size: 0.82rem; color: var(--ink-2); }
.mail .mh b { color: var(--ink); display: block; font-size: 0.92rem; }
.mail .mb { line-height: 1.75; }
.mail .mb ol { margin: 0.5em 0 0; padding-left: 1.3em; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.facts li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: 0.92rem; line-height: 1.65; }
.facts li .d { grid-column: 2; color: var(--ink-2); font-size: 0.85rem; white-space: pre-line; overflow-wrap: anywhere; }
.seesnot { display: grid; gap: 16px; }
@media (min-width: 760px) { .seesnot { grid-template-columns: 1fr 1fr; } }
.seesnot ul { margin: 0; padding-left: 1.2em; }

/* price */
.price { display: grid; gap: 24px; align-items: start; }
.plan { background: var(--card); border: 2px solid var(--ai); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); }
.plan .amount { font-size: 2.6rem; font-weight: 700; line-height: 1.2; }
.plan .amount small { font-size: 1rem; font-weight: 400; color: var(--ink-2); margin-left: 4px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; }
.plan li { padding: 6px 0 6px 28px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 4px; top: 0.75em; width: 12px; height: 7px; border-left: 2px solid var(--ai); border-bottom: 2px solid var(--ai); transform: rotate(-45deg); }
.compare { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.compare th, .compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { background: #f6f5f1; font-weight: 700; font-size: 0.85rem; }
.compare tr:last-child td { border-bottom: 0; }
@media (min-width: 900px) { .price { grid-template-columns: 0.9fr 1.1fr; } }

/* faq */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; list-style: none; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--ai); font-size: 1.3rem; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--ink-2); }

.band { background: var(--ai); color: #fff; padding: 56px 0; text-align: center; }
.band h2 { font-size: clamp(1.3rem, 4vw, 1.8rem); }
.band p { color: #d9e8f1; }
.band .btn { background: #fff; color: var(--ai); }
.band .btn:hover { background: var(--ai-soft); color: var(--ai-deep); }

footer.site { padding: 40px 0 56px; font-size: 0.85rem; color: var(--ink-2); border-top: 1px solid var(--line); }
footer.site .row { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
footer.site .src { font-size: 0.8rem; color: var(--ink-3); line-height: 1.7; }
.syng-legal-links a { display: inline-block; padding: 10px 2px; }

/* forms */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); }
.auth { max-width: 460px; margin: 40px auto 64px; }
.auth h1 { font-size: 1.5rem; }
label { display: block; font-weight: 700; font-size: 0.92rem; margin: 16px 0 6px; }
label .opt { font-weight: 400; color: var(--ink-3); font-size: 0.82rem; margin-left: 4px; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], select, textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 0.7em 0.8em; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; color: var(--ink); min-height: 48px;
}
textarea { min-height: 140px; line-height: 1.6; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ai); outline: 3px solid rgba(22, 94, 131, 0.18); }
.hint { font-size: 0.82rem; color: var(--ink-3); margin-top: 4px; }
.row2 { display: grid; gap: 0 12px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1.4fr 1fr; } }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 0.85rem; margin: 18px 0 2px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.msg { border-radius: 8px; padding: 10px 14px; font-size: 0.92rem; margin: 14px 0 0; }
.msg:empty { display: none; }
.msg.err { background: var(--warn-soft); color: var(--warn); }
.msg.ok { background: var(--ok-soft); color: var(--ok); }
.msg.info { background: var(--ai-soft); color: var(--ai-deep); }
fieldset { border: 0; padding: 0; margin: 0; }

/* app */
.appnav { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--paper); }
.appnav a { padding: 12px 14px; text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: 0.93rem; border-bottom: 3px solid transparent; white-space: nowrap; min-height: 44px; }
.appnav a[aria-current=page] { color: var(--ai); border-bottom-color: var(--ai); }
main.app { padding-top: 24px; padding-bottom: 64px; }
main.app h1 { font-size: clamp(1.4rem, 4.5vw, 1.7rem); margin-bottom: 0.4em; }
.banner { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 10px; background: var(--ai-soft); color: var(--ai-deep); font-size: 0.93rem; margin-bottom: 20px; }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button { font: inherit; font-size: 0.92rem; font-weight: 700; padding: 0.5em 1em; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); cursor: pointer; min-height: 44px; }
.tabs button[aria-selected=true] { background: var(--ai); color: #fff; border-color: var(--ai); }
.list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.list > li { border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.list a.rowlink, .list .rowbox { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 16px; text-decoration: none; color: inherit; }
.list a.rowlink:hover { background: #f7f6f2; }
.list .nm { font-weight: 700; overflow-wrap: anywhere; }
.list .ad { color: var(--ink-2); font-size: 0.85rem; grid-column: 1; overflow-wrap: anywhere; }
.list .st { grid-row: 1 / span 2; grid-column: 2; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.cands { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; grid-column: 1 / -1; }
.cands button { width: 100%; text-align: left; font: inherit; font-size: 0.9rem; background: #fff; border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; cursor: pointer; min-height: 44px; }
.cands button:hover { border-color: var(--ai); background: var(--ai-soft); }
.cands small { display: block; color: var(--ink-3); }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin: 28px 0 12px; }
.head-row h2 { margin: 0; font-size: 1.2rem; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ai-soft); border-top-color: var(--ai); display: inline-block; animation: spin 0.9s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 3s; } }
.empty { text-align: center; padding: 32px 16px; color: var(--ink-2); }
.preview-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin: 10px 0; }
.preview-table th, .preview-table td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.dz { border: 2px dashed var(--line-2); border-radius: 10px; padding: 22px; text-align: center; color: var(--ink-2); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.grid2 { display: grid; gap: 20px; }
@media (min-width: 960px) { .grid2 { grid-template-columns: 1.1fr 0.9fr; align-items: start; } }
hr.soft { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
