/* Cheloop の販売サイト。色はアイコンの 5 色（#102638 #2384D1 #299DDE #41C5D6 #F4F8FC）を基にする。外部のフォント・ライブラリは使わない */
:root {
  --navy: #102638;
  --blue: #2384D1;
  --sky: #299DDE;
  --cyan: #41C5D6;
  --pale: #F4F8FC;
  --text: #102638;
  --muted: #4a5d6e;
  --line: #d5e2ee;
  --bg: #ffffff;
  --card: #F4F8FC;
  --link: #1b6fb2;
  --danger: #b3261e;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { color: var(--navy); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--pale); padding: 0 0.25em; border-radius: 3px; }
h1, h2, h3 { line-height: 1.4; color: var(--navy); }
h1 { font-size: 1.9rem; margin: 0 0 0.5em; }
h2 { font-size: 1.4rem; margin: 2.2em 0 0.7em; padding-bottom: 0.3em; border-bottom: 2px solid var(--cyan); }
h3 { font-size: 1.12rem; margin: 1.6em 0 0.5em; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
li { margin: 0.25em 0; }
blockquote { margin: 1em 0; padding: 0.6em 1em; background: var(--pale); border-left: 4px solid var(--sky); }
blockquote p:last-child { margin-bottom: 0; }

/* 表。狭い幅では表の中だけ横に動かし、ページははみ出さない */
table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; font-size: 0.95rem; }
th, td { border: 1px solid var(--line); padding: 0.5em 0.7em; text-align: left; vertical-align: top; }
thead th { background: var(--pale); }
tbody th { background: var(--pale); font-weight: 600; width: 34%; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
.table-wrap table { margin: 0; }

/* 頭と足 */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header > a, .site-header .brand { font-weight: 700; color: var(--navy); text-decoration: none; }
.site-header > a { display: block; max-width: 880px; margin: 0 auto; padding: 0.8em 16px; }
.header-inner { max-width: 880px; margin: 0 auto; padding: 0.6em 16px; display: flex; align-items: center; justify-content: space-between; gap: 0.5em 1em; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.5em; font-size: 1.15rem; }
.brand img { width: 32px; height: 32px; border-radius: 7px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.2em 1.1em; font-size: 0.95rem; }
.site-nav a { color: var(--navy); text-decoration: none; }
.site-nav a:hover { color: var(--blue); text-decoration: underline; }

main { display: block; max-width: 880px; margin: 0 auto; padding: 1.5em 16px 3em; }
main.legal { max-width: 820px; }
main.legal h1 { font-size: 1.6rem; }
main.legal h2 { font-size: 1.25rem; }
main.legal table { display: block; overflow-x: auto; }

.site-footer { border-top: 1px solid var(--line); background: var(--pale); color: var(--muted); font-size: 0.9rem; }
.site-footer > * { max-width: 880px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.3em 1.2em; padding-top: 1.4em; }
.site-footer p { margin: 0.5em auto; }
.site-footer p:last-child { padding-bottom: 1.4em; }

/* トップ */
.hero { padding: 1.5em 0 1em; display: flex; gap: 1.5em; align-items: center; }
.hero img { width: 112px; height: 112px; border-radius: 24px; flex: none; }
.hero h1 { font-size: 2.2rem; margin: 0; }
.reading { font-size: 0.95rem; color: var(--muted); letter-spacing: 0.15em; margin: 0; }
.tagline { font-size: 1.15rem; font-weight: 600; color: var(--blue); margin: 0.2em 0 0.6em; }
.lead { font-size: 1.05rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7em; margin: 1.2em 0; }
.button {
  display: inline-block; padding: 0.7em 1.3em; border-radius: 8px; border: 2px solid var(--blue);
  background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; font-size: 1rem; line-height: 1.4;
  cursor: pointer; font-family: inherit; text-align: center;
}
.button:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.button.secondary { background: #fff; color: var(--blue); }
.button.secondary:hover { background: var(--pale); color: var(--navy); }
.button[disabled] { opacity: 0.6; cursor: progress; }

.loop { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7em; counter-reset: step; }
.loop li { margin: 0; background: var(--card); border-top: 4px solid var(--cyan); border-radius: 6px; padding: 0.8em; counter-increment: step; }
.loop li::before { content: counter(step); display: inline-block; width: 1.7em; height: 1.7em; line-height: 1.7em; text-align: center; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-right: 0.4em; font-size: 0.85rem; }
.loop strong { color: var(--navy); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2em; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 0.4em 1.1em 0.6em; }
.panel h3 { margin-top: 0.8em; }
.panel.not { border-left: 4px solid var(--navy); }
.panel.do { border-left: 4px solid var(--cyan); }

.note { color: var(--muted); font-size: 0.93rem; }
.caveat { background: var(--pale); border-left: 4px solid var(--navy); padding: 0.7em 1em; }

/* 価格 */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; margin: 1em 0 1.4em; }
.plan { border: 1px solid var(--line); border-top: 4px solid var(--sky); border-radius: 8px; padding: 1em; background: #fff; display: flex; flex-direction: column; }
.plan h3 { margin: 0 0 0.3em; }
.plan .price { font-size: 1.5rem; font-weight: 700; color: var(--navy); margin: 0; }
.plan .per { font-size: 0.9rem; color: var(--muted); }
.plan p { margin: 0.3em 0; }
.plan .button { margin-top: auto; }
.plan .spacer { flex: 1; }

/* FAQ */
.faq dt { font-weight: 700; color: var(--navy); margin-top: 1.1em; }
.faq dt::before { content: "Q. "; color: var(--blue); }
.faq dd { margin: 0.3em 0 0; }

/* フォーム */
form { margin: 1em 0; }
.field { margin: 0 0 1em; }
.field label { display: block; font-weight: 600; margin-bottom: 0.3em; }
input[type="email"], input[type="text"] {
  width: 100%; max-width: 420px; font: inherit; padding: 0.55em 0.7em; border: 1px solid #9fb4c7; border-radius: 6px; background: #fff; color: var(--text);
}
input:focus-visible, .button:focus-visible, a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.check { display: flex; gap: 0.6em; align-items: flex-start; margin: 0 0 1em; padding: 0.7em 0.9em; border: 1px solid var(--line); border-radius: 6px; background: var(--pale); }
.check input { margin-top: 0.45em; flex: none; width: 1.1em; height: 1.1em; }
.check label { font-weight: normal; }
.error { color: var(--danger); font-size: 0.93rem; margin: 0.3em 0 0; }
.message { padding: 0.8em 1em; border-radius: 6px; background: var(--pale); border-left: 4px solid var(--cyan); }
.message.bad { border-left-color: var(--danger); }
.closed { padding: 0.8em 1em; border-radius: 6px; background: var(--pale); border-left: 4px solid var(--navy); font-weight: 600; }

.license-box { display: block; width: 100%; padding: 0.8em; border: 1px solid var(--line); border-radius: 6px; background: var(--pale); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; word-break: break-all; overflow-wrap: anywhere; white-space: pre-wrap; user-select: all; }

.updated { color: var(--muted); font-size: 0.9rem; }
.sha { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; word-break: break-all; }

[hidden] { display: none !important; }

@media (max-width: 720px) {
  h1 { font-size: 1.6rem; }
  .hero { flex-direction: column; align-items: flex-start; gap: 0.8em; }
  .hero img { width: 80px; height: 80px; border-radius: 18px; }
  .hero h1 { font-size: 1.9rem; }
  .loop { grid-template-columns: 1fr 1fr; }
  .two-col, .plans { grid-template-columns: 1fr; }
  tbody th { width: auto; }
  .responsive-table, .responsive-table tbody, .responsive-table tr, .responsive-table th, .responsive-table td { display: block; width: auto; }
  .responsive-table th { border-bottom: none; }
  .responsive-table tr + tr th { border-top: none; }
}
@media (max-width: 420px) {
  .loop { grid-template-columns: 1fr; }
  .button { width: 100%; }
}
