/* Mレジ 商品サイト（m-regi.jp） */
:root {
  --brand: #26adff;
  --brand-deep: #0a84d6;
  --ink: #0b2545;
  --ink-soft: #51627a;
  --line: #dfe6ee;
  --bg: #f4f7fb;
  --tint: #eaf6ff;
  --ok: #1e9e5a;
  --radius: 16px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Noto Sans JP', system-ui, -apple-system, 'Hiragino Sans', 'Yu Gothic UI', sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.8;
  font-feature-settings: 'palt';
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-deep); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ヘッダー（白地。紺の塗りつぶしは使わない） */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 1.4rem; letter-spacing: 0.02em; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 1.1rem; font-weight: 900;
}
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 8px 12px; border-radius: 8px; }
.site-nav a:hover { background: var(--bg); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgb(38 173 255 / 0.35); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: #fff; }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 0.9rem; box-shadow: none; }
.menu-toggle { display: none; }

/* ヒーロー */
.hero { background: linear-gradient(180deg, var(--tint), #fff 85%); padding: 72px 0 56px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-weight: 700; color: var(--brand-deep); background: #fff; border: 1px solid #bfe6ff; border-radius: 999px; padding: 4px 14px; font-size: 0.85rem; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.3; margin: 18px 0 16px; letter-spacing: 0.01em; }
.hero h1 em { font-style: normal; color: var(--brand-deep); }
.hero p.lead { font-size: 1.1rem; color: var(--ink-soft); margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 0.9rem; font-weight: 700; }
.hero-badges li::before { content: '✓'; color: var(--ok); margin-right: 6px; }
.device {
  background: #1b2433; border-radius: 26px; padding: 14px; box-shadow: 0 30px 60px rgb(11 37 69 / 0.25);
  transform: rotate(-1.5deg);
}
.device img { border-radius: 14px; }

/* セクション */
section { padding: 88px 0; }
section.alt { background: var(--bg); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head .kicker { color: var(--brand-deep); font-weight: 900; letter-spacing: 0.12em; font-size: 0.85rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.4; margin: 6px 0 12px; }
.section-head p { color: var(--ink-soft); margin: 0; }

.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.point { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.point-no { font-weight: 900; color: var(--brand); font-size: 2rem; line-height: 1; }
.point h3 { font-size: 1.25rem; margin: 12px 0 8px; line-height: 1.5; }
.point p { margin: 0; color: var(--ink-soft); }

.showcase { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; margin-bottom: 72px; }
.showcase:last-child { margin-bottom: 0; }
.showcase.reverse { grid-template-columns: 1fr 1.3fr; }
.showcase.reverse .showcase-media { order: 2; }
.showcase-media img { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 18px 40px rgb(11 37 69 / 0.12); }
.showcase h3 { font-size: 1.6rem; line-height: 1.45; margin: 0 0 12px; }
.showcase p { color: var(--ink-soft); }
.check { list-style: none; padding: 0; margin: 16px 0 0; }
.check li { padding-left: 28px; position: relative; margin: 6px 0; font-weight: 500; }
.check li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 16px; height: 16px; border-radius: 50%; background: var(--brand); box-shadow: inset 0 0 0 4px #d7efff; }
.phone-pair { display: grid; grid-template-columns: 1fr 180px; gap: 20px; align-items: end; }
.phone { background: #1b2433; border-radius: 28px; padding: 8px; }
.phone img { border-radius: 22px; border: none; box-shadow: none; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 20px 18px; }
.feature h3 { font-size: 1.05rem; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.feature p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.tag { font-size: 0.72rem; font-weight: 700; border-radius: 999px; padding: 1px 10px; background: #e3f6ea; color: var(--ok); }
.tag.soon { background: #fff4dd; color: #a86b00; }

.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.industry { border-radius: var(--radius); padding: 28px 24px; background: #fff; border: 1px solid var(--line); }
.industry h3 { margin: 0 0 6px; font-size: 1.2rem; }
.industry p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.note-box { margin-top: 24px; background: var(--tint); border-radius: 14px; padding: 18px 22px; font-weight: 700; text-align: center; }

.devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.device-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.device-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.device-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); box-shadow: 0 16px 36px rgb(38 173 255 / 0.18); }
.plan h3 { margin: 0; font-size: 1.15rem; }
.price { font-size: 2.6rem; font-weight: 900; line-height: 1.2; margin: 10px 0 2px; }
.price small { font-size: 1rem; font-weight: 700; color: var(--ink-soft); }
.plan .sub { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 16px; }
.plan .check { margin-top: 4px; }
.plan .check li { font-size: 0.95rem; }
.small-note { text-align: center; color: var(--ink-soft); font-size: 0.88rem; margin-top: 20px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; counter-increment: step; }
.steps li::before { content: 'STEP ' counter(step); display: block; font-weight: 900; color: var(--brand-deep); font-size: 0.85rem; letter-spacing: 0.1em; }
.steps h3 { margin: 6px 0; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 28px 18px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: 'Q'; color: var(--brand); font-weight: 900; margin-right: 10px; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--ink-soft); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); }

.cta { background: var(--brand); color: #fff; text-align: center; padding: 72px 0; }
.cta h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: 0 0 10px; line-height: 1.4; }
.cta p { margin: 0 0 28px; opacity: 0.95; }
.cta .btn { background: #fff; color: var(--brand-deep); }

/* フッター */
.site-footer { background: var(--bg); padding: 48px 0 32px; font-size: 0.9rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.copyright { width: 100%; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; }

/* 下層ページ（規約など） */
.page { padding: 56px 0 88px; }
.page .wrap { max-width: 860px; }
.page h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: 0 0 8px; line-height: 1.4; }
.page .updated { color: var(--ink-soft); margin: 0 0 32px; }
.page h2 { font-size: 1.25rem; margin: 40px 0 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.page ol, .page ul { padding-left: 1.4em; }
.page li { margin: 4px 0; }
.law-table { width: 100%; border-collapse: collapse; }
.law-table th, .law-table td { text-align: left; vertical-align: top; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.law-table th { width: 30%; background: var(--bg); font-weight: 700; }

/* お問い合わせ */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 6px; }
.form label, .form .label { font-weight: 700; }
.req { font-size: 0.72rem; background: #ffe5e5; color: #c62828; border-radius: 6px; padding: 1px 8px; margin-left: 8px; vertical-align: 2px; }
.form input[type='text'], .form input[type='email'], .form input[type='tel'], .form select, .form textarea {
  width: 100%; min-height: 50px; padding: 10px 14px; border: 1px solid #c9d4e0; border-radius: 10px;
  font: inherit; color: inherit; background: #fff;
}
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgb(38 173 255 / 0.35); border-color: var(--brand); }
.radio-group { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-group label { font-weight: 500; border: 1px solid #c9d4e0; border-radius: 999px; padding: 8px 16px; display: flex; gap: 6px; align-items: center; cursor: pointer; }
.radio-group label:has(input:checked) { border-color: var(--brand); background: var(--tint); font-weight: 700; }
.agree { display: flex; gap: 10px; align-items: center; font-weight: 500 !important; }
.agree input { width: 20px; height: 20px; }
.form-error { color: #c62828; font-size: 0.9rem; margin: 0; }
.form-message { padding: 16px 20px; border-radius: 12px; font-weight: 700; }
.form-message.ok { background: #e3f6ea; color: var(--ok); }
.form-message.ng { background: #ffe5e5; color: #c62828; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* スマホ・タブレット */
@media (max-width: 900px) {
  .hero .wrap, .showcase, .showcase.reverse { grid-template-columns: 1fr; }
  .showcase.reverse .showcase-media { order: 0; }
  .points, .industries, .devices, .plans { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
  .hero { padding: 40px 0 48px; }
}
@media (max-width: 760px) {
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .menu-toggle { display: inline-flex; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; min-height: 40px; padding: 0 12px; font: inherit; font-weight: 700; color: var(--ink); }
  .site-header .btn-small { display: none; }
  .wrap { padding: 0 16px; }
  .steps { grid-template-columns: 1fr; }
  .phone-pair { grid-template-columns: 1fr; }
  .phone { max-width: 220px; margin: 0 auto; }
  .law-table th, .law-table td { display: block; width: 100%; }
  .law-table th { border-bottom: none; padding-bottom: 6px; }
}
