/* アルパプラグイン 配布サイト。色は alpa-colors.css（正本はカラーパレット v1）から。白基調・ダークモードは作らない */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body {
  margin: 0; background: var(--alpa-white); color: var(--alpa-navy);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 16px; line-height: 1.85; letter-spacing: .02em;
}
img { max-width: 100%; height: auto; }
a { color: var(--alpa-blue-deep); text-underline-offset: 3px; }
a:hover { color: var(--alpa-blue-deeper); }
:focus-visible { outline: 3px solid var(--alpa-blue); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.45; letter-spacing: .03em; }
h1 { font-size: clamp(26px, 4.2vw, 38px); margin: 0 0 .5em; }
h2 { font-size: clamp(21px, 2.8vw, 26px); margin: 2.2em 0 .7em; padding-bottom: .35em; border-bottom: 2px solid var(--alpa-line); }
h3 { font-size: 18px; margin: 1.8em 0 .5em; }
p, ul, ol, table { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: .35em; }
code { font-family: Consolas, "Courier New", monospace; font-size: .9em; background: var(--alpa-surface); border: 1px solid var(--alpa-line); border-radius: 4px; padding: .05em .35em; word-break: break-all; }
small, .sub { color: var(--alpa-text-sub); font-size: 14px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: #fff; padding: 6px 12px; }

/* 上の帯 */
.site-header { border-bottom: 1px solid var(--alpa-line); background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--alpa-navy); }
.logo img { width: 40px; height: 40px; }
.logo-text { font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif; font-weight: 700; font-size: 22px; letter-spacing: .04em; }
.logo-accent { color: var(--alpa-blue); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a { color: var(--alpa-navy); text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0; display: inline-block; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--alpa-blue); color: var(--alpa-navy); }

main { display: block; padding-bottom: 72px; }
.page-head { background: var(--alpa-surface); border-bottom: 1px solid var(--alpa-line); padding: 36px 0 26px; margin-bottom: 8px; }
.page-head p { margin: 0; }
.crumbs { font-size: 14px; color: var(--alpa-text-sub); margin-bottom: 8px; }
.crumbs a { color: var(--alpa-text-sub); }

/* ボタン */
.btn { display: inline-block; padding: 12px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--alpa-blue-deep); line-height: 1.4; }
.btn-primary { background: var(--alpa-blue-deep); color: #fff; }
.btn-primary:hover { background: var(--alpa-blue-deeper); border-color: var(--alpa-blue-deeper); color: #fff; }
.btn-line { background: #fff; color: var(--alpa-blue-deep); }
.btn-line:hover { background: var(--alpa-surface); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }

/* トップ */
.hero { padding: 48px 0 40px; }
.hero-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); }
.hero .lead { font-size: 18px; }
.hero-img { justify-self: center; max-width: 320px; }
.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; padding: 0; margin: 8px 0 0; }
.points li { background: var(--alpa-surface); border: 1px solid var(--alpa-line); border-radius: 14px; padding: 16px 18px; margin: 0; }
.points strong { display: block; font-size: 16px; margin-bottom: 4px; }
.points span { font-size: 14px; color: var(--alpa-text-sub); line-height: 1.7; display: block; }

/* プラグインのカード */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.card { border: 1px solid var(--alpa-line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; background: #fff; margin: 0; }
.card-top { padding: 20px; display: flex; gap: 14px; align-items: center; }
.card-top img { width: 72px; height: 72px; flex: none; }
.card-top h3 { margin: 0; font-size: 18px; }
.card-body { padding: 0 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body p { font-size: 15px; }
.card-body .more { margin-top: auto; font-weight: 700; }
.bg-sky { background: var(--alpa-sky); }
.bg-peach { background: var(--alpa-peach); }
.bg-mint { background: var(--alpa-mint); }
.bg-cream { background: var(--alpa-cream); }
.badge { display: inline-block; font-size: 13px; font-weight: 700; line-height: 1.5; padding: 2px 10px; border-radius: 999px; border: 1.5px solid var(--alpa-navy); color: var(--alpa-navy); background: #fff; white-space: nowrap; }
.badge-soon { border-style: dashed; }
.meta { font-size: 14px; color: var(--alpa-text-sub); margin: 0 0 10px; }

/* 帯・枠 */
.band { background: var(--alpa-surface); border-top: 1px solid var(--alpa-line); border-bottom: 1px solid var(--alpa-line); padding: 8px 0 40px; margin-top: 56px; }
.box { border: 1px solid var(--alpa-line); border-radius: 14px; padding: 18px 22px; margin: 0 0 1.4em; background: #fff; }
.box > :last-child { margin-bottom: 0; }
.box-note { background: var(--alpa-cream); border-color: #eadf9f; }
.box-info { background: var(--alpa-sky); border-color: #b9d8ef; }
.box h3:first-child, .box h2:first-child { margin-top: 0; }
.box-note a, .box-info a { color: var(--alpa-navy); font-weight: 700; }

/* 表 */
.table-wrap { overflow-x: auto; margin-bottom: 1.2em; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { border: 1px solid var(--alpa-line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--alpa-surface); font-weight: 700; white-space: nowrap; }
.dl-table td code { font-size: 13px; }

/* 手順 */
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 0 46px; margin-bottom: 14px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--alpa-blue-deep); color: #fff; font-weight: 700; text-align: center; line-height: 32px; font-size: 15px; }

/* よくある質問（印刷でも答えが出るよう、畳まない） */
.faq .qa { border: 1px solid var(--alpa-line); border-radius: 12px; margin-bottom: 12px; background: #fff; break-inside: avoid; }
.faq .q { font-size: 16px; margin: 0; padding: 14px 18px 12px 44px; position: relative; border-bottom: 1px solid var(--alpa-line); line-height: 1.6; }
.faq .q::before { content: "Q"; position: absolute; left: 16px; color: var(--alpa-blue-deep); }
.faq .a { padding: 12px 18px 2px 44px; position: relative; }
.faq .a::before { content: "A"; position: absolute; left: 16px; top: 12px; font-weight: 700; color: var(--alpa-navy); }

/* 下の帯 */
.site-footer { border-top: 1px solid var(--alpa-line); background: var(--alpa-surface); font-size: 14px; padding: 36px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif; font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.footer-org p { margin-bottom: 8px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 2px 28px; }
.footer-links a { color: var(--alpa-navy); }
.footer-legal { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--alpa-line); color: var(--alpa-text-sub); }
.footer-legal p { margin-bottom: 6px; }

/* 404 */
.notfound { text-align: center; padding-top: 48px; }
.notfound img { width: 180px; }

/* スマホ幅 */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img { max-width: 200px; grid-row: 1; }
  .points { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .header-inner { padding-top: 10px; padding-bottom: 8px; }
  .nav { gap: 0 16px; }
  .nav a { font-size: 14px; }
  .points { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  th { white-space: nowrap; padding: 10px 8px; }
  td { padding: 10px 8px; }
}

/* 社内説明用の資料（印刷すると A4 縦1枚に収める） */
.sheet { border: 1px solid var(--alpa-line); border-radius: 8px; padding: 28px 32px; background: #fff; }
.sheet h2 { font-size: 18px; margin: 1.2em 0 .4em; }
.sheet table { font-size: 14px; }
@media print {
  /* どのページも：上の帯のメニューは出さない。下の帯（提供元・商標）は残す */
  .nav, .skip { display: none !important; }
  a { color: var(--alpa-navy); }
  .table-wrap { overflow: visible; }
  /* 社内説明用の資料だけ：A4 縦1枚に収める（body に print-sheet） */
  .print-sheet .sheet { page: sheet; }
  .print-sheet .site-header, .print-sheet .site-footer, .print-sheet .page-head, .print-sheet .no-print { display: none !important; }
  .print-sheet main { padding: 0; }
  .print-sheet { font-size: 11.5pt; line-height: 1.6; }
  .print-sheet .sheet { border: none; padding: 0; }
  .print-sheet .sheet h1 { font-size: 18pt; }
  .print-sheet .sheet h2 { font-size: 13pt; margin: .8em 0 .3em; }
  .print-sheet .sheet table { font-size: 10pt; }
  .print-sheet .sheet th, .print-sheet .sheet td { padding: 4px 8px; }
  .print-sheet a { text-decoration: none; }
}
@page sheet { size: A4 portrait; margin: 12mm; }

/* 小さな補助 */
.mt-l { margin-top: 2.4em; }
.m0 { margin: 0; }
.btns-center { justify-content: center; }
.series { display: block; font-size: 13px; font-weight: 700; color: var(--alpa-navy); letter-spacing: .08em; line-height: 1.3; }
.card-top h3 { margin-bottom: 4px; }
.points { grid-template-columns: repeat(2, 1fr); }
.points a { white-space: nowrap; }
@media (max-width: 560px) {
  .nav { flex-wrap: nowrap; overflow-x: auto; gap: 0 14px; width: 100%; }
  .nav a { font-size: 13.5px; white-space: nowrap; }
  .points { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-header nav { width: 100%; min-width: 0; }
}
@media (max-width: 560px) {
  .nav { gap: 0 10px; }
  .nav a { font-size: 13px; letter-spacing: 0; }
}
table.wide { min-width: 620px; }
table.wide th { white-space: normal; }
.nowrap { white-space: nowrap; }

/* 画面の例（プラグインのページ） */
.shots { display: grid; gap: 22px; margin: 0 0 0.8em; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--alpa-line); border-radius: 10px; background: #fff; }
.shot figcaption { font-size: 14px; color: var(--alpa-text-sub); margin-top: 8px; }
@media print { .shot { break-inside: avoid; } }
