/* =========================================================
   価格調査サービス
   配色: 水色（メイン）・マゼンタ（強調）・オレンジ（ボタン・下限）
   ========================================================= */
:root {
  --bg: #f3f8fa;
  --card: #ffffff;
  --text: #23323f;
  --muted: #687886;
  --line: #dce7ec;
  --accent: #2fa7cf;        /* 水色 */
  --accent-dark: #1e86ab;
  --accent-light: #e8f6fb;
  --pink: #e4007f;          /* 強調 */
  --pink-light: #fde8f3;
  --orange: #f7931e;        /* ボタン・下限 */
  --orange-dark: #ea7a0c;
  --navy: #23415a;
  --green: #1e8a55;
  --red: #d0362a;
  --amber: #b26800;
  --shadow: 0 2px 10px rgba(35, 65, 90, .06);
  --radius: 14px;
}
* { box-sizing: border-box; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  line-height: 1.75;
}
a { color: var(--accent-dark); }
a:hover { color: var(--pink); }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- ヘッダー・フッター ---------- */
.site-header { background: #fff; border-top: 4px solid var(--accent); box-shadow: 0 1px 0 var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: .03em; line-height: 1.2; }
.logo:hover { color: var(--navy); }
.logo-sub { display: block; font-size: .68rem; font-weight: 600; color: var(--accent-dark); letter-spacing: .02em; }
nav { display: flex; align-items: center; gap: 6px; font-size: .92rem; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--navy); padding: 6px 12px; border-radius: 999px; font-weight: 600; }
nav a:hover { background: var(--accent-light); color: var(--accent-dark); }
nav a.on { background: var(--accent); color: #fff; }
.who { color: var(--muted); margin-right: 6px; font-size: .85rem; }
button.logout { color: var(--muted); font-size: .85rem; margin-left: 4px; }
.site-footer { background: var(--navy); color: #c9d6df; font-size: .82rem; padding: 22px 0; margin-top: 20px; }
.site-footer .wrap { display: flex; align-items: center; gap: 8px; }
.site-footer img { vertical-align: middle; }
.footer-links { margin-left: auto; }
.site-footer a { color: #fff; }
main.wrap { padding-top: 28px; padding-bottom: 48px; }

/* ---------- 文字 ---------- */
h1 { font-size: 1.6rem; margin: 0 0 20px; color: var(--navy); }
h2 { font-size: 1.2rem; margin: 0 0 16px; color: var(--navy); display: flex; align-items: center; gap: 10px; }
h3 { font-size: 1.02rem; margin: 0 0 8px; color: var(--navy); }
.page-h1 { display: flex; align-items: center; gap: 12px; }
.eyebrow { display: inline-block; margin: 0 0 6px; padding: 2px 12px; border-radius: 999px; background: var(--pink); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; margin-top: -6px; }
code { background: #eef4f7; padding: 1px 6px; border-radius: 4px; font-size: .88em; }

/* ---------- アイコン ---------- */
.ico-h1 { width: 40px; height: 40px; }
.ico-h { width: 34px; height: 34px; flex: none; }
.ico-lg { width: 56px; height: 56px; }
.ico-xl { width: 72px; height: 72px; flex: none; }
.ico-sm { width: 20px; height: 20px; vertical-align: -5px; margin-right: 4px; }
.ico-btn { width: 22px; height: 22px; vertical-align: -6px; margin-right: 6px; background: #fff; border-radius: 50%; }

/* ---------- カード・レイアウト ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 22px; box-shadow: var(--shadow); }
.card.narrow { max-width: 440px; margin: 40px auto; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; }
.grid3 .card { margin-bottom: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* バナー（マイページ・ヘルプ） */
.banner {
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 20px;
  background: linear-gradient(120deg, #ffffff 0%, #ffffff 45%, var(--accent-light) 100%);
  border: 1px solid var(--line); border-radius: 18px; padding: 26px 32px; margin-bottom: 22px; box-shadow: var(--shadow); overflow: hidden;
}
.banner h1 { margin: 4px 0 6px; font-size: 1.7rem; }
.banner p { margin: 0 0 8px; }
.banner-img { width: 100%; max-height: 230px; object-fit: contain; }
.banner-next { color: var(--navy); }
.banner .actions { margin-top: 14px; }

/* 数字のカード */
.stat { position: relative; padding-right: 86px; }
.stat-ico { position: absolute; right: 20px; top: 20px; width: 56px; height: 56px; }
.stat .label { color: var(--muted); font-size: .87rem; font-weight: 600; }
.stat .value { font-size: 1.7rem; font-weight: 800; line-height: 1.3; margin: 4px 0; color: var(--navy); }
.stat .value small, .big small { font-size: .85rem; font-weight: 400; margin-left: 4px; color: var(--muted); }
.stat .sub { color: var(--muted); font-size: .85rem; }

/* モールごとの結果 */
.mall { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: #fbfdfe; }
.mall h3 { display: flex; align-items: center; gap: 8px; }
.mall-tag { display: inline-block; padding: 0 10px; border-radius: 6px; color: #fff; font-size: .78rem; font-weight: 700; }
.mall-tag.rakuten { background: #bf0000; }
.mall-tag.yahoo { background: #ff0033; }
.big { font-size: 2rem; font-weight: 800; margin: 6px 0 12px; line-height: 1.2; color: var(--pink); }
.big small { color: var(--muted); }

/* ---------- フォーム・ボタン ---------- */
label { display: block; margin-bottom: 14px; font-size: .93rem; font-weight: 600; color: var(--navy); }
input[type=email], input[type=password], input[type=text], input[type=number], input[type=tel], select {
  display: block; width: 100%; margin-top: 5px; padding: 11px 13px; font-size: 1rem; font-weight: 400; font-family: inherit;
  border: 1px solid #c6d5dc; border-radius: 8px; background: #fff; color: var(--text);
}
input:focus, select:focus { outline: 3px solid rgba(47, 167, 207, .35); border-color: var(--accent); }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; padding: 10px 22px; font-size: .95rem; font-weight: 700; border-radius: 8px; cursor: pointer;
  border: 2px solid var(--accent); background: #fff; color: var(--accent-dark); text-decoration: none; font-family: inherit; line-height: 1.4;
  transition: background .15s, transform .1s, box-shadow .15s;
}
button:hover, .button:hover { background: var(--accent-light); color: var(--accent-dark); }
button.primary, .button.primary {
  background: linear-gradient(180deg, #ffa53d 0%, var(--orange) 55%, var(--orange-dark) 100%);
  border-color: var(--orange-dark); color: #fff; box-shadow: 0 3px 0 #c9650a;
}
button.primary:hover, .button.primary:hover { transform: translateY(1px); box-shadow: 0 2px 0 #c9650a; color: #fff; }
.button.ghost { border-color: var(--accent); }
button.block { width: 100%; padding: 13px; font-size: 1.05rem; }
.button.disabled { color: var(--muted); background: #f0f3f5; border-color: #d8e0e5; cursor: default; font-weight: 400; }
button.link { border: 0; background: none; color: var(--accent-dark); padding: 0; font-size: inherit; font-weight: 400; box-shadow: none; }
button.link:hover { color: var(--pink); background: none; }
form.inline { display: inline; margin: 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* アップロード */
.dropzone { display: flex; gap: 22px; align-items: center; border: 2px dashed #9fd2e4; background: var(--accent-light); border-radius: 14px; padding: 22px 24px; margin: 16px 0; }
.dropzone-title { font-weight: 800; color: var(--navy); margin: 0; font-size: 1.05rem; }
.dropzone-body p { margin: 0 0 8px; }
.dropzone .muted { font-size: .85rem; }
.upload-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.upload-row input[type=file] { background: #fff; border: 1px solid #c6d5dc; border-radius: 8px; padding: 7px; font-family: inherit; }
.small-links { margin-top: 10px !important; font-size: .88rem; }
details { margin-top: 8px; }
summary { cursor: pointer; color: var(--accent-dark); font-weight: 600; }

/* ---------- お知らせ・バッジ ---------- */
.flash { padding: 12px 16px 12px 44px; border-radius: 10px; margin-bottom: 16px; border: 1px solid; position: relative; }
.flash::before { position: absolute; left: 14px; top: 11px; width: 20px; height: 20px; border-radius: 50%; color: #fff; font-weight: 800; font-size: .8rem; text-align: center; line-height: 20px; }
.flash.success { background: #eef8f2; border-color: #b8e0c8; color: var(--green); }
.flash.success::before { content: "✓"; background: var(--green); }
.flash.error { background: #fdf0ee; border-color: #f0c2bb; color: var(--red); }
.flash.error::before { content: "!"; background: var(--red); }
.flash.warning { background: #fff7e8; border-color: #f0d6a3; color: var(--amber); }
.flash.warning::before { content: "!"; background: var(--orange); }
.badge { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.badge.gray { background: #eceff2; color: var(--muted); }
.badge.blue { background: var(--accent-light); color: var(--accent-dark); }
.badge.green { background: #e6f4ec; color: var(--green); }
.badge.red { background: #fbe9e6; color: var(--red); }
.progress { height: 8px; background: #e3edf1; border-radius: 4px; overflow: hidden; margin: 8px 0; }
.progress div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--pink)); }

/* ---------- 表 ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead th { color: var(--navy); font-weight: 700; font-size: .85rem; background: var(--accent-light); border-bottom: 2px solid var(--accent); }
tbody tr:hover { background: #f7fbfd; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- ログイン ---------- */
.login-hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: center; margin-bottom: 26px; }
.catch { font-size: 2.1rem; line-height: 1.4; margin: 6px 0 14px; }
.catch em { font-style: normal; color: var(--pink); }
.checks { list-style: none; padding: 0; margin: 0 0 12px; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 8px; font-size: 1.05rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 24px; height: 24px; border-radius: 6px; background: var(--accent); }
.checks li::after { content: ""; position: absolute; left: 8px; top: 7px; width: 7px; height: 12px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.checks strong { color: var(--pink); }
.hero-img { width: 100%; max-width: 460px; display: block; }
.login-card { border-top: 5px solid var(--accent); padding: 30px 30px 22px; }
.small-center { font-size: .8rem; text-align: center; margin: 14px 0 0; }
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow); }
.feature h3 { margin: 8px 0 4px; }
.feature p { margin: 0; font-size: .88rem; color: var(--muted); }

/* ---------- 設定画面 ---------- */
.settings { max-width: 460px; margin-top: 12px; }
label.check { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin-bottom: 6px; font-weight: 400; }
label.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.small-note { font-size: .85rem; margin: 0 0 14px 26px; }
.test-mail { margin-top: 12px; font-size: .9rem; }
.flash form.inline { margin-left: 8px; }
form.ftp { max-width: 580px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 20px; }
form.ftp h3 { margin: 0 0 8px; }
form.ftp .small-note { margin-left: 0; }
.ftp-status { margin: 12px 0 0; font-size: .85rem; }

/* 利用区分 */
#account-type .settings { max-width: 680px; }
.type-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.type-card { position: relative; margin: 0; cursor: pointer; font-weight: 400; }
.type-card input { position: absolute; opacity: 0; }
.type-body { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; height: 100%;
  border: 2px solid var(--line); border-radius: 12px; padding: 16px 14px; background: #fff; transition: border-color .15s, background .15s; }
.type-body strong { font-size: 1.1rem; color: var(--navy); margin-top: 4px; }
.type-body span { font-size: .88rem; }
.type-body small { color: var(--muted); font-size: .78rem; }
.type-card input:checked + .type-body { border-color: var(--accent); background: var(--accent-light); box-shadow: 0 0 0 3px rgba(47, 167, 207, .2); }
.type-card input:focus-visible + .type-body { outline: 3px solid rgba(47, 167, 207, .5); }
fieldset.shop-codes { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px 0; margin: 12px 0 16px; }
fieldset.shop-codes legend { font-size: .85rem; color: var(--muted); padding: 0 4px; }
fieldset.shop-codes .small-note { margin-left: 0; }

/* ---------- ヘルプ ---------- */
.help-banner { margin-bottom: 18px; }
.help-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.help-tabs a { padding: 9px 22px; border: 2px solid var(--accent); border-radius: 999px; background: #fff; text-decoration: none; font-size: .95rem; font-weight: 700; color: var(--accent-dark); }
.help-tabs a:hover { background: var(--accent-light); }
.help-tabs a.current { background: var(--accent); color: #fff; }
.help { scroll-margin-top: 84px; }
.help h3 { margin-top: 26px; padding-left: 12px; border-left: 4px solid var(--accent); line-height: 1.4; }
.help-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.help-head h2 { margin: 2px 0 0; font-size: 1.35rem; }
.help-for { display: inline-block; margin: 0; padding: 1px 12px; border-radius: 999px; background: var(--pink); color: #fff; font-size: .8rem; font-weight: 700; }
.rule { border: 2px solid var(--accent); background: var(--accent-light); border-radius: 12px; padding: 16px 20px; margin: 18px 0 10px; text-align: center; }
.rule-line { font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.rule-line.sub { font-size: .95rem; font-weight: 400; margin-top: 2px; }
.rule-line.sub strong { color: var(--pink); }
.figure { margin: 14px 0 6px; text-align: center; }
.figure img { width: 100%; max-width: 760px; }
.narrow-fig img { max-width: 420px; }
.help-table td.wrap-text { white-space: normal; min-width: 240px; }
.help .small-note { margin-left: 0; margin-top: 8px; }
.help ul li { margin-bottom: 6px; }

/* 流れ（アイコン付きのカードを矢印でつなぐ） */
.steps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px; counter-reset: step; }
.steps > li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 34px 16px 16px; font-size: .88rem; counter-increment: step; box-shadow: var(--shadow); }
.steps > li::before { content: "STEP " counter(step); position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: .75rem; font-weight: 800; padding: 2px 12px; border-radius: 999px; letter-spacing: .05em; }
.steps > li:not(:last-child)::after { content: ""; position: absolute; right: -20px; top: 50%; width: 12px; height: 12px; border: solid var(--accent); border-width: 4px 4px 0 0; transform: translateY(-50%) rotate(45deg); }
.steps > li > .ico-lg { display: block; margin: 0 auto 8px; }
.steps > li > strong:first-of-type { display: block; text-align: center; font-size: 1rem; color: var(--navy); margin-bottom: 4px; }
.steps ul { margin: 6px 0 0; padding-left: 1.1em; }
.help-files { margin: 8px 0 4px; }
.help-files h3 { margin-top: 0; padding-left: 0; border-left: 0; display: flex; align-items: center; gap: 8px; }
.help-files ul { padding-left: 1.2em; margin: 0; }
.note { border-left: 5px solid var(--orange); background: #fff7ec; padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 22px 0 4px; font-size: .92rem; }
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 0; margin: 0 0 10px; background: #fff; overflow: hidden; }
.faq summary { list-style: none; color: var(--navy); font-weight: 700; padding: 13px 44px 13px 52px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 14px; top: 11px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; text-align: center; line-height: 26px; font-size: .85rem; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 9px; font-size: 1.4rem; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { background: var(--accent-light); }
.faq details > p, .faq details > ul { margin: 0; padding: 12px 20px 4px 52px; }
.faq details > ul { padding-left: 72px; }
.faq details > :last-child { padding-bottom: 16px; }
.faq details > .faq-table { margin: 4px 20px 8px 52px; width: auto; }
.faq-table table { width: auto; }
@media (max-width: 820px) {
  .faq details > .faq-table { margin: 4px 12px 8px 16px; }
  .faq-table th, .faq-table td { padding: 8px; white-space: normal; }
}

/* ---------- スマートフォン ---------- */
@media (max-width: 820px) {
  .grid3, .grid2, .feature-row, .type-choice { grid-template-columns: 1fr; }
  .banner, .login-hero { grid-template-columns: 1fr; }
  .banner-img { max-height: 180px; }
  .steps > li:not(:last-child)::after { right: 50%; top: auto; bottom: -20px; transform: translateX(50%) rotate(135deg); }
  .site-header .wrap { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .who { display: none; }
  .catch { font-size: 1.6rem; }
  .dropzone { flex-direction: column; text-align: center; }
  .upload-row { justify-content: center; }
}
/* メーカーを選んでいるときは、販売店用の入力欄を薄くする */
#account-type form:has(input[value=maker]:checked) fieldset.shop-codes { opacity: .45; }

/* ---------- 紹介・料金 ---------- */
.section-head { text-align: center; margin: 46px 0 22px; }
.section-head h2 { justify-content: center; font-size: 1.5rem; margin: 6px 0 6px; }
.center { text-align: center; }
.hero-cta { display: flex; align-items: center; gap: 18px; margin: 18px 0 8px; }
.trial-badge {
  flex: none; width: 104px; height: 104px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--pink); color: #fff; text-align: center; font-size: .82rem; font-weight: 700; line-height: 1.25;
  box-shadow: 0 0 0 5px var(--pink-light); transform: rotate(-8deg);
}
.trial-badge strong { font-size: 1.45rem; display: block; }
.hero-price { margin: 0 0 8px; font-weight: 700; color: var(--navy); }
.hero-price strong { font-size: 1.8rem; color: var(--pink); margin: 0 2px; }
.recommend-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); }
.recommend-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.recommend-head h3 { margin: 0; font-size: 1.2rem; }
.small-checks li { font-size: .95rem; }
.small-checks strong { color: var(--pink); }
.recommend-answer { background: var(--accent-light); border-radius: 10px; padding: 12px 14px; margin: 12px 0 0; font-size: .92rem; }
.recommend-answer strong { color: var(--pink); }
.trial-ribbon {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(90deg, var(--pink), #ff4fa8); color: #fff; border-radius: 12px; padding: 12px 20px; margin: 0 0 22px; text-align: center;
}
.trial-big { font-size: 1.15rem; font-weight: 800; }
.trial-big strong { font-size: 1.5rem; margin: 0 2px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan-card { position: relative; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 30px 24px 24px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan-card:hover { border-color: var(--accent); }
.plan-card h3 { font-size: 1.15rem; margin: 0 0 4px; }
.plan-trial { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--pink); color: #fff; font-size: .78rem; font-weight: 800; padding: 3px 14px; border-radius: 999px; white-space: nowrap; }
.plan-count { margin: 0; color: var(--muted); }
.plan-count strong { color: var(--accent-dark); font-size: 1.2rem; }
.plan-price { margin: 10px 0 0; color: var(--navy); line-height: 1.1; }
.plan-price strong { font-size: 2.4rem; font-weight: 800; margin: 0 4px; letter-spacing: -.01em; }
.plan-price small { font-size: .9rem; font-weight: 700; }
.plan-unit { font-size: .8rem; color: var(--muted); margin: 6px 0 14px; }
.plan-features { list-style: none; padding: 14px 0 0; margin: 0 0 18px; border-top: 1px dashed var(--line); text-align: left; font-size: .86rem; flex: 1; }
.plan-features li { position: relative; padding-left: 22px; margin-bottom: 6px; }
.plan-features li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 6px; height: 10px; border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.button.block { width: 100%; }
.cta-band {
  display: flex; align-items: center; gap: 22px; margin: 46px 0 10px; padding: 26px 32px; border-radius: 18px;
  background: linear-gradient(120deg, var(--accent) 0%, #52bfe0 100%); color: #fff; box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; margin: 0 0 4px; font-size: 1.35rem; }
.cta-band p { margin: 0; }
.cta-band .button { margin-left: auto; flex: none; }
.pricing-card .section-head { margin-top: 0; }
@media (max-width: 820px) {
  .plan-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
  .cta-band .button { margin-left: 0; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
}
nav a.nav-trial { background: var(--pink); color: #fff; }
nav a.nav-trial:hover { background: #c4006d; color: #fff; }
.pricing .plan-card h3 { border-left: 0; padding-left: 0; margin-top: 0; }

/* ---------- トップページ（紹介） ---------- */
.lp-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; margin: 6px 0 30px; }
.lp-hero-img { width: 100%; max-width: 520px; justify-self: center; }
.small-note-center { font-size: .82rem; margin-top: 14px; }
.lp-steps .steps { grid-template-columns: repeat(3, 1fr); }

/* ---------- ログインページ ---------- */
.login-page { display: grid; grid-template-columns: 440px 1fr; gap: 28px; align-items: center; max-width: 860px; margin: 30px auto 10px; }
.login-card h1 { text-align: center; margin: 6px 0 2px; font-size: 1.5rem; }
.login-logo { display: block; margin: 0 auto; }
.login-side { background: #fff; border: 2px dashed #9fd2e4; border-radius: var(--radius); padding: 24px; }
.login-side-title { margin: 0 0 6px; font-weight: 800; color: var(--pink); }

/* ---------- 請求・利用期限 ---------- */
.billing-alert { display: flex; align-items: center; gap: 18px; border-radius: 14px; padding: 16px 22px; margin-bottom: 22px; border: 2px solid; background: #fff; }
.billing-alert p { margin: 2px 0 0; font-size: .9rem; }
.billing-alert .button { margin-left: auto; flex: none; }
.billing-alert.expired { border-color: #f0b4ad; background: #fdf0ee; color: var(--red); }
.billing-alert.expired p { color: var(--text); }
.billing-alert.trial { border-color: #f6b5d6; background: var(--pink-light); }
.billing-alert.trial strong { color: var(--pink); }
.billing-alert.soon { border-color: #f0d6a3; background: #fff7e8; }
.trial-badge.small { width: 72px; height: 72px; font-size: .7rem; box-shadow: 0 0 0 4px #fff; }
.trial-badge.small strong { font-size: 1rem; }
.status-pill { display: inline-block; font-size: 1.05rem; padding: 2px 14px; border-radius: 999px; }
.status-pill.trial { background: var(--pink-light); color: var(--pink); }
.status-pill.paid, .status-pill.none { background: #e6f4ec; color: var(--green); }
.status-pill.expired { background: #fbe9e6; color: var(--red); }
.pay-box { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: #fbfdfe; }
.pay-box p { margin: 0 0 8px; }
.card-brands { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.card-brands span { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 2px 10px; font-size: .78rem; font-weight: 800; color: var(--navy); letter-spacing: .03em; }
.billing-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.billing-rules > div { background: var(--accent-light); border-radius: 12px; padding: 14px 16px; }
.billing-rules strong { color: var(--navy); }
.billing-rules p { margin: 4px 0 0; font-size: .88rem; }
.dropzone.locked { border-color: #f0b4ad; background: #fdf0ee; }
.billing-timeline { display: flex; align-items: stretch; justify-content: center; gap: 10px; margin: 18px 0 6px; flex-wrap: wrap; }
.tl-item { background: #fff; border: 2px solid var(--accent); border-radius: 14px; padding: 16px 18px; text-align: center; min-width: 190px; box-shadow: var(--shadow); }
.tl-item.free { border-color: var(--pink); }
.tl-item p { margin: 4px 0 0; font-size: .86rem; color: var(--muted); }
.tl-date { display: inline-block; background: var(--accent); color: #fff; font-weight: 800; border-radius: 999px; padding: 1px 14px; font-size: .9rem; margin-bottom: 6px; }
.tl-item.free .tl-date { background: var(--pink); }
.tl-item strong { display: block; color: var(--navy); }
.tl-arrow { align-self: center; width: 16px; height: 16px; border: solid var(--accent); border-width: 4px 4px 0 0; transform: rotate(45deg); }
@media (max-width: 820px) {
  .lp-hero, .login-page, .billing-rules, .lp-steps .steps { grid-template-columns: 1fr; }
  .billing-alert { flex-direction: column; text-align: center; }
  .billing-alert .button { margin-left: 0; }
  .tl-arrow { transform: rotate(135deg); }
}
.billing-alert .trial-badge strong { color: #fff; }

/* ---------- 無料トライアルの申し込み ---------- */
.big-cta { font-size: 1.08rem; padding: 13px 28px; }
.signup-head { display: flex; align-items: center; gap: 24px; margin: 4px 0 22px; }
.signup-head h1 { margin: 4px 0 6px; }
.signup-head p { margin: 0; }
.signup-form { max-width: 860px; margin: 0 auto 22px; }
.signup-form h2 { margin-top: 18px; }
.signup-form h2:first-of-type { margin-top: 0; }
.plan-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 8px; }
.choice-price { font-weight: 800; color: var(--pink); font-size: 1rem !important; }
.grid2.tight { gap: 0 18px; }
.req, .opt { display: inline-block; font-size: .7rem; padding: 0 6px; border-radius: 4px; margin-left: 4px; vertical-align: 1px; }
.req { background: var(--pink); color: #fff; }
.opt { background: #e3eaee; color: var(--muted); }
.field-error { display: block; color: var(--red); font-size: .82rem; font-weight: 600; margin-top: 4px; }
.agree-box { background: #fff7ec; border: 1px solid #f3d7ae; border-radius: 12px; padding: 14px 18px; margin: 18px 0; }
.agree-box p { margin: 0 0 4px; }
.agree-box ul { margin: 0 0 10px; padding-left: 1.2em; font-size: .9rem; }
.agree-box label.check { font-weight: 700; }
.card.narrow.center { text-align: center; max-width: 560px; }
.center-actions { justify-content: center; margin-top: 12px; }
.waiting { text-align: center; padding: 34px 28px; }
.waiting-img { max-width: 320px; display: block; margin: 0 auto 10px; }
.waiting h2 { justify-content: center; font-size: 1.4rem; }
@media (max-width: 820px) {
  .plan-choice { grid-template-columns: 1fr; }
  .signup-head { flex-direction: column; text-align: center; }
}

/* ---------- 解約・お問い合わせ・規約 ---------- */
textarea { display: block; width: 100%; margin-top: 5px; padding: 11px 13px; font-size: 1rem; font-family: inherit; font-weight: 400; border: 1px solid #c6d5dc; border-radius: 8px; resize: vertical; color: var(--text); }
textarea:focus { outline: 3px solid rgba(47, 167, 207, .35); border-color: var(--accent); }
button.danger { background: #fff; border-color: var(--red); color: var(--red); }
button.danger:hover { background: #fdf0ee; color: var(--red); }
.cancel-points li { margin-bottom: 8px; }
.reason-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 18px; margin-bottom: 8px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.login-page.single { grid-template-columns: 440px; justify-content: center; }
.legal { max-width: 860px; margin: 0 auto 22px; padding: 34px 40px; }
.legal h1 { text-align: center; margin-bottom: 18px; }
.legal h2 { font-size: 1.05rem; margin: 26px 0 8px; padding-left: 10px; border-left: 4px solid var(--accent); display: block; }
.legal p, .legal li { font-size: .93rem; }
.legal ol, .legal ul { padding-left: 1.4em; }
.legal li { margin-bottom: 4px; }
.legal-date { text-align: right; color: var(--muted); font-size: .85rem !important; margin: 4px 0 0; }
.footer-links a { white-space: nowrap; }
@media (max-width: 820px) {
  .reason-list { grid-template-columns: 1fr; }
  .login-page.single { grid-template-columns: 1fr; }
  .legal { padding: 22px 18px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .footer-links { margin-left: 0; }
}

/* ---------- FTP自動更新のアピール ---------- */
.pink { font-style: normal; color: var(--pink); }
.feature-hot { border: 2px solid var(--pink); position: relative; }
.feature-hot::before { content: "販売店様におすすめ"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--pink); color: #fff; font-size: .72rem; font-weight: 800; padding: 1px 12px; border-radius: 999px; white-space: nowrap; }
.lp-auto { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 6px 30px 30px; margin-top: 40px; box-shadow: var(--shadow); }
.lp-auto .section-head { margin-top: 30px; }
.auto-figure img { max-width: 980px; }
.compare { display: grid; grid-template-columns: 1fr 40px 1fr; gap: 14px; align-items: stretch; margin: 22px 0; }
.compare-col { border-radius: 14px; padding: 18px 22px; }
.compare-col ol { margin: 0; padding-left: 1.3em; }
.compare-col li { margin-bottom: 4px; }
.compare-col.before { background: #f1f3f5; color: #55606a; }
.compare-col.after { background: var(--accent-light); border: 2px solid var(--accent); }
.compare-title { font-weight: 800; margin: 0 0 8px; color: var(--navy); }
.compare-time { margin: 10px 0 0; font-weight: 800; text-align: right; }
.compare-col.after .compare-time strong { color: var(--pink); font-size: 1.6rem; }
.compare-arrow { align-self: center; justify-self: center; width: 18px; height: 18px; border: solid var(--pink); border-width: 5px 5px 0 0; transform: rotate(45deg); }
.ftp-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 8px 0 14px; }
.ftp-point { background: #fbfdfe; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.ftp-point strong { display: block; color: var(--navy); margin: 6px 0 4px; font-size: .95rem; }
.ftp-point p { margin: 0; font-size: .84rem; color: var(--muted); }
.plan-features li.hot { color: var(--pink); font-weight: 700; }
.ftp-promo { display: grid; grid-template-columns: 1fr 1.1fr; gap: 22px; align-items: center; background: #fff; border: 2px solid var(--pink); border-radius: 16px; padding: 20px 24px; margin-bottom: 22px; box-shadow: var(--shadow); }
.ftp-promo h2 { margin: 4px 0 6px; font-size: 1.15rem; }
.ftp-promo p { margin: 0 0 10px; font-size: .9rem; }
.ftp-promo-img { width: 100%; }
.help-auto { border: 2px solid var(--pink); background: #fff; border-radius: 14px; padding: 14px 18px; margin: 18px 0; }
.help-auto strong { color: var(--pink); font-size: 1.05rem; }
.help-auto p { margin: 4px 0 6px; font-size: .92rem; }
.help-auto img { width: 100%; max-width: 820px; display: block; margin: 0 auto; }
@media (max-width: 820px) {
  .compare, .ftp-points, .ftp-promo { grid-template-columns: 1fr; }
  .compare-arrow { transform: rotate(135deg); }
  .lp-auto { padding: 6px 16px 22px; }
}

/* ---------- まもるくん（ロボット） ---------- */
.logo em { font-style: normal; color: var(--pink); }
.logo img { width: 46px; height: 40px; }
.robo-say { display: flex; align-items: flex-end; gap: 14px; margin: 16px 0; }
.robo-say .robo-img { width: 78px; flex: none; }
.robo-say .bubble { position: relative; background: #fff; border: 2px solid var(--accent); border-radius: 16px; padding: 12px 18px; font-size: .95rem; margin-bottom: 18px; box-shadow: var(--shadow); }
.robo-say .bubble::before { content: ""; position: absolute; left: -11px; bottom: 18px; width: 18px; height: 18px; background: #fff; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); }
.bubble-name { display: inline-block; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; border-radius: 999px; padding: 0 10px; margin-right: 8px; vertical-align: 1px; }
.robo-say.robo-big .robo-img { width: 120px; }
.robo-say.robo-big .bubble { font-size: 1.05rem; padding: 18px 24px; border-width: 3px; }
.robo-say.center-say { justify-content: center; }
.lp-intro { max-width: 900px; margin: 34px auto 0; }
/* 水色の帯の上でも見えるように白い縁と影をつける（2026-11-04） */
.cta-robo {
  width: 96px; flex: none;
  filter:
    drop-shadow(2.5px 0 0 #fff) drop-shadow(-2.5px 0 0 #fff)
    drop-shadow(0 2.5px 0 #fff) drop-shadow(0 -2.5px 0 #fff)
    drop-shadow(0 4px 6px rgba(15, 70, 95, .35));
}
.alert-robo { width: 64px; flex: none; }
.side-robo { width: 90px; display: block; margin: 0 auto 6px; }
.signup-robo { width: 90px; flex: none; }
.waiting-img.robo { max-width: 170px; }
.robo-line { color: var(--accent-dark); font-weight: 700; }
.done-robo { width: 120px; display: block; margin: 0 auto 6px; }
.help-banner .banner-img, .banner .banner-img[src*="robo-"] { max-height: 220px; }
@media (max-width: 820px) {
  .robo-say { align-items: flex-start; }
  .robo-say .robo-img, .robo-say.robo-big .robo-img { width: 64px; }
  .signup-robo { display: none; }
}
.eta { font-size: .88rem; margin: 2px 0 10px; color: var(--navy); }
.eta strong { color: var(--accent-dark); }
.small-inline { font-size: .8rem; margin-left: 6px; }
.legal-table { width: 100%; border-collapse: collapse; }
.legal-table th, .legal-table td { white-space: normal; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: .93rem; }
.legal-table th { width: 26%; background: var(--accent-light); color: var(--navy); font-weight: 700; }
.legal-table ul.plain { list-style: none; padding: 0; margin: 0 0 6px; }
@media (max-width: 820px) { .legal-table th, .legal-table td { display: block; width: 100%; } }

/* ---------- 受け入れ枠（残り○社） ---------- */
.seats { display: inline-block; background: var(--accent-light); color: var(--accent-dark); font-weight: 800; font-size: .8rem; padding: 1px 10px; border-radius: 999px; margin-right: 6px; }
.seats.few { background: var(--pink); color: #fff; animation: seats-pulse 1.6s ease-in-out infinite; }
.seats.full { background: #e3e7ea; color: var(--muted); }
@keyframes seats-pulse { 50% { box-shadow: 0 0 0 4px rgba(228, 0, 127, .18); } }
.plan-seats { margin: 0 0 6px; font-size: .8rem; }
.seats-note { text-align: center; font-size: .88rem; color: var(--navy); margin: 0 0 14px; }
.hero-seats { margin: 0 0 8px; font-size: .92rem; color: var(--navy); }
.hero-seats strong { color: var(--pink); }
.type-card.full { cursor: not-allowed; opacity: .6; }
.type-card .seats { margin: 0 0 4px; }
form.waitlist { border: 2px dashed #f6b5d6; }
.waitlist-steps { margin: 4px 0 14px; padding-left: 1.4em; font-size: .9rem; color: var(--navy); }
.waitlist-steps li { margin: 2px 0; }
.invite-note { line-height: 1.7; }
input[readonly] { background: #f3f6f8; color: #5c6d77; }
.waitlist-box { max-width: 640px; margin: 0 auto; }
.waitlist-box .kv { margin: 10px auto; border-collapse: collapse; }
.waitlist-box .kv th, .waitlist-box .kv td { padding: 4px 12px; border-bottom: 1px solid #e3ebef; text-align: left; }
button[disabled] { opacity: .5; cursor: not-allowed; }

/* ---- 2要素認証 ---- */
.otp-input { font-size: 1.4rem; letter-spacing: .3em; text-align: center; font-family: ui-monospace, Menlo, Consolas, monospace; }
.twofa-links { margin-top: 14px; font-size: .9rem; display: grid; gap: 8px; justify-items: center; text-align: center; }
.twofa-links details { text-align: left; max-width: 380px; }
.twofa-links summary { cursor: pointer; color: var(--accent-dark); }
.twofa-setup { border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin-top: 12px; background: #f9fcfd; }
.twofa-setup h3 { margin-top: 0; }
.twofa-steps { padding-left: 1.4em; margin: 0 0 12px; }
.twofa-steps li { margin-bottom: 4px; }
.qr-wrap { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 8px; }
.qr { width: 200px; height: 200px; background: #fff; border: 1px solid var(--line); border-radius: 8px; flex: none; }
.qr svg { width: 100%; height: 100%; display: block; }
.qr-wrap > div:last-child { flex: 1; min-width: 220px; }
.secret-key { font-size: 1rem; letter-spacing: .08em; word-break: break-all; }
.recovery-box { border: 2px dashed var(--pink); border-radius: 10px; padding: 14px 20px; margin: 12px 0; background: #fff6fb; }
.recovery-codes { list-style: none; padding: 0; margin: 8px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px 14px; }
.recovery-codes code { font-size: 1.05rem; letter-spacing: .06em; }
.twofa-manage { margin-top: 10px; }
.twofa-manage summary { cursor: pointer; color: var(--accent-dark); }
.twofa-manage h3 { font-size: 1rem; margin: 14px 0 4px; }
@media print {
  .site-header, .site-footer, .page-h1, main > .flash, .card:not(#twofa), #twofa > :not(.recovery-box), .recovery-box button { display: none !important; }
}

/* FTP自動アップロードの注意書き（設定画面） */
.ftp-caution { border: 2px solid var(--orange); border-left-width: 8px; background: #fff8ec; border-radius: 10px; padding: 14px 20px 10px; margin: 14px 0 18px; }
.ftp-caution-title { margin: 0 0 6px; font-weight: 800; color: var(--amber); font-size: 1.05rem; }
.ftp-caution-title::before { content: "!"; display: inline-block; width: 22px; height: 22px; line-height: 22px; margin-right: 8px; border-radius: 50%; background: var(--orange); color: #fff; text-align: center; font-size: .85rem; vertical-align: 1px; }
.ftp-caution p { margin: 0 0 8px; }
.ftp-caution ul { margin: 0 0 8px; padding-left: 1.3em; }
.ftp-caution li { margin-bottom: 4px; }
.ftp-caution strong { color: var(--red); }

/* APIのクレジット表示（楽天・Yahoo!の規約で必須。HTMLは改変しない） */
/*   Yahoo!はCSSで色を変えること・極端に小さくすることを禁止しているため、リンクの色はブラウザ標準に戻し、明るい帯の上に置く */
.api-credits { display: block !important; margin-top: 14px; padding: 10px 16px; background: #f4f8fa; border-radius: 8px; font-size: .85rem; color: #4a5d6b; line-height: 1.8; }
.site-footer .api-credits a { color: revert; }

/* ヘルプのCSVの見本 */
.csv-sample { background: #f4f8fa; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9rem; overflow-x: auto; line-height: 1.7; }

/* マイページの終了予想 */
.eta-detail { font-size: .8rem; margin: -6px 0 10px 22px; }
.eta.stalled { color: var(--amber); }

/* ---- プランの変更（ご契約） ---- */
.plan-change-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 12px; }
.plan-change { border: 1px solid #d8e6ee; border-radius: 12px; padding: 14px 16px; background: #fff; display: flex; flex-direction: column; gap: 4px; }
.plan-change h3 { margin: 0; }
.plan-change p { margin: 2px 0; }
.plan-change.full { background: #fafbfc; }
.plan-change form { margin-top: auto; padding-top: 8px; }
.pc-dir { display: inline-block; align-self: flex-start; font-size: .75rem; font-weight: 700; padding: 1px 10px; border-radius: 10px; color: #fff; background: var(--accent); }
.pc-dir.down { background: #7a8a93; }
.pc-when { font-size: .92rem; }
.pc-warn { font-size: .85rem; color: var(--amber); background: #fff7e8; border-radius: 8px; padding: 6px 10px; }
.pc-invite { font-size: .85rem; color: var(--pink); font-weight: 700; }
.plan-sched .inline-form { display: inline-block; margin-left: 8px; }
button.small-btn { padding: 4px 12px; font-size: .85rem; }
label.check.small { font-size: .85rem; }
.mypage-over { margin-bottom: 16px; }

/* ご契約画面のクレジットカード（2026-11-07） */
.flash[hidden] { display: none; }
.test-mode { display: inline-block; background: #fff3d6; color: #8a5a00; border: 1px dashed #e0b44a; border-radius: 8px; padding: 4px 10px; font-size: .85rem; font-weight: 700; }
.card-now { font-size: 1.05rem; }
/* カード名義・カード番号の入力欄: 薄い水色の背景と太めの枠で、入力する場所をわかりやすく */
#card-form .card-field-label { display: block; margin: 0 0 16px; padding: 12px 14px 14px; border-radius: 12px; background: #f3fafd; border: 1px solid #d3eaf3; }
#card-form .card-field-label .req { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 4px; background: var(--pink); color: #fff; font-size: .72rem; vertical-align: 1px; }
#card-form .card-field-label .hint { display: block; margin-top: 2px; font-size: .8rem; font-weight: 400; color: var(--muted); }
#card-form input#card-name, .payjp-card {
  margin-top: 8px; padding: 13px 14px; border: 2px solid #9fd3e6; border-radius: 10px; background: #fffef2;
  font-size: 1.05rem; letter-spacing: .04em; box-shadow: inset 0 1px 3px rgba(31, 58, 77, .08); transition: border-color .15s, box-shadow .15s, background .15s;
}
#card-form input#card-name::placeholder { color: #a9b8bf; letter-spacing: .02em; }
#card-form input#card-name:hover, .payjp-card:hover { border-color: var(--accent); }
#card-form input#card-name:focus, .payjp-card:focus-within, .payjp-card.PayjpElement--focus {
  outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(47, 167, 207, .22);
}
.payjp-card { font-weight: 400; min-height: 24px; }
.payjp-card.PayjpElement--invalid { border-color: var(--red); background: #fff6f5; }
.card-form-wrap form, .card-delete form { margin-top: 12px; max-width: 520px; }
.card-form-wrap label.check { align-items: flex-start; }
.card-note { margin-top: 10px; }
.card-try { margin: 4px 0; }
.card-try.failed { color: var(--red); }
.pay-now { margin-top: 10px; }
.billing-alert.card-needed { border: 2px solid var(--orange); }
/* カード番号・有効期限・セキュリティコードを別々の欄に（有効期限とセキュリティコードは横並び、スマホは縦並び） */
#card-form .card-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { #card-form .card-field-row { grid-template-columns: 1fr; } }
/* ご契約画面「プランの変更」: ルールの3つの枠と注意書きの間をあける（2026-11-07） */
#plan .billing-rules { margin-bottom: 22px; }
.plan-note { margin: 0 0 22px; padding: 12px 16px 12px 34px; background: #f6f8f9; border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; font-size: .88rem; color: var(--muted); line-height: 1.8; }
.plan-note li { margin: 0; }
/* 調査の履歴: マイページの「もっと見る」と、調査結果のページ（/history.php、2026-11-07） */
h2 .h-note { margin-left: 10px; font-size: .78rem; font-weight: 400; color: var(--muted); }
.more-link { margin: 14px 0 0; text-align: right; }
.back-link { margin: 0 0 12px; font-size: .9rem; }
.history-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 12px; }
.history-filter a { padding: 4px 14px; border: 1px solid #c6d5dc; border-radius: 999px; text-decoration: none; color: inherit; font-size: .88rem; background: #fff; }
.history-filter a.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.history-filter .muted { margin-left: auto; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 0 0; flex-wrap: wrap; }
.pager-nums { display: flex; flex-wrap: wrap; gap: 4px; }
.pager-nums a, .pager-nums strong { display: inline-block; min-width: 32px; padding: 3px 8px; text-align: center; border-radius: 6px; border: 1px solid #c6d5dc; text-decoration: none; }
.pager-nums strong { background: var(--accent); border-color: var(--accent); color: #fff; }
/* 調査結果ページ: モールの切り替え（タブ）と件数（2026-11-07） */
.history-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  margin: 18px 0 14px; padding: 10px 12px; background: #f3fafd; border: 1px solid #d3eaf3; border-radius: 14px; }
.mall-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: #fff; border-radius: 999px; box-shadow: inset 0 0 0 1px #d3eaf3; }
.mall-tab { --mall: var(--accent); display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
  color: var(--navy); font-size: .92rem; font-weight: 700; text-decoration: none; transition: background .15s, color .15s, box-shadow .15s; }
.mall-tab.rakuten { --mall: #bf0000; }
.mall-tab.yahoo { --mall: #ff0033; }
.mall-tab:hover { background: #eef7fb; }
.mall-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mall); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mall) 18%, transparent); }
.mall-tab.all .mall-dot { background: conic-gradient(#bf0000 0 50%, #ff0033 0 75%, var(--accent) 0); }
.mall-count { min-width: 26px; padding: 1px 8px; border-radius: 999px; background: #eef3f6; color: var(--muted); font-size: .78rem; text-align: center; font-variant-numeric: tabular-nums; }
.mall-tab.on { background: var(--mall); color: #fff; box-shadow: 0 3px 10px color-mix(in srgb, var(--mall) 35%, transparent); }
.mall-tab.on .mall-dot { background: #fff; box-shadow: none; }
.mall-tab.on .mall-count { background: rgba(255, 255, 255, .25); color: #fff; }
.history-total { display: flex; align-items: baseline; gap: 4px; color: var(--navy); }
.history-total .total-num { font-size: 1.6rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.history-total .total-unit { font-size: .9rem; font-weight: 700; }
.history-total .total-page { margin-left: 10px; padding: 2px 10px; border-radius: 999px; background: #fff; border: 1px solid #d3eaf3; font-size: .8rem; color: var(--muted); }
@media (max-width: 560px) {
  .history-toolbar { flex-direction: column; align-items: stretch; }
  .mall-tabs { border-radius: 14px; }
  .mall-tab { flex: 1 1 auto; justify-content: center; padding: 7px 10px; }
  .history-total { justify-content: flex-end; }
}
/* ヘルプ「クレジットカード情報の取り扱い」（2026-11-07） */
.safe-box { margin: 10px 0 26px; padding: 20px 22px; border: 2px solid #bfe3ef; border-radius: 16px; background: linear-gradient(180deg, #f3fafd 0%, #fff 70%); }
.safe-lead { display: flex; align-items: center; gap: 14px; }
.safe-lead p { margin: 0; line-height: 1.8; }
.safe-lead .ico-lg { flex: none; }
.safe-flow { counter-reset: safe; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; padding: 0; }
.safe-flow li { counter-increment: safe; position: relative; padding: 30px 14px 14px; background: #fff; border: 1px solid #d3eaf3; border-radius: 12px; font-size: .86rem; line-height: 1.7; }
.safe-flow li::before { content: counter(safe); position: absolute; top: -12px; left: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; }
.safe-flow strong { display: block; margin-bottom: 4px; color: var(--navy); font-size: .95rem; }
.safe-flow li img { display: block; width: 96px; height: 64px; margin: 0 auto 8px; }
.safe-figure { margin: 18px 0 4px; padding: 12px; background: #fff; border: 1px solid #d3eaf3; border-radius: 12px; }
.safe-figure img { max-width: 920px; }
@media (max-width: 600px) { .safe-figure { padding: 8px; } .safe-figure img { max-width: 420px; } }
.safe-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.safe-points > div { padding: 12px 14px; border-radius: 12px; background: var(--accent-light); font-size: .86rem; }
.safe-points > div:first-child { background: #fff1f6; }
.safe-points strong { color: var(--navy); }
.safe-points p { margin: 4px 0 0; }
@media (max-width: 760px) { .safe-flow { grid-template-columns: 1fr 1fr; } .safe-points { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .safe-flow { grid-template-columns: 1fr; } .safe-lead { align-items: flex-start; } }
/* 「画面の有効期限が切れました」のページ（2026-11-07） */
.expired-page { max-width: 820px; margin: 30px auto; padding: 32px 36px; }
.expired-hero { display: flex; align-items: center; gap: 28px; padding-bottom: 18px; border-bottom: 2px dashed #d3eaf3; }
.expired-robo { flex: none; width: 170px; height: auto; animation: expired-bob 3.2s ease-in-out infinite; filter: drop-shadow(0 10px 14px rgba(47, 167, 207, .25)); }
.expired-text .eyebrow { display: inline-block; margin: 0 0 6px; padding: 2px 12px; border-radius: 999px; background: #fff1f6; color: var(--pink); font-weight: 800; font-size: .82rem; letter-spacing: .08em; }
.expired-text h1 { margin: 0 0 10px; font-size: 1.7rem; color: var(--navy); }
.expired-text p { margin: 0; color: var(--muted); line-height: 1.8; }
.expired-say { position: relative; margin: 22px 0 6px 40px; padding: 14px 18px; background: #fff; border: 2px solid var(--accent); border-radius: 16px; line-height: 1.8; box-shadow: var(--shadow); }
.expired-say::before { content: ""; position: absolute; left: 50px; top: -11px; width: 18px; height: 18px; background: #fff; border-left: 2px solid var(--accent); border-top: 2px solid var(--accent); transform: rotate(45deg); }
.expired-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 22px 0 10px; }
.expired-actions .button { min-width: 200px; text-align: center; }
.expired-help { margin-top: 18px; padding: 10px 16px; border-radius: 12px; background: #f6f8f9; font-size: .88rem; }
.expired-help summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.expired-help ul { margin: 8px 0 4px; padding-left: 20px; line-height: 1.8; }
@keyframes expired-bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .expired-robo { animation: none; } }
@media (max-width: 600px) {
  .expired-page { padding: 22px 18px; }
  .expired-hero { flex-direction: column; text-align: center; gap: 12px; }
  .expired-robo { width: 130px; }
  .expired-text h1 { font-size: 1.35rem; }
  .expired-actions .button { width: 100%; }
  .expired-say { margin-left: 0; }
  .expired-say::before { left: 50%; }
}
/* ヘルプ「認証アプリの設定方法」（2026-11-07） */
.auth-examples { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
.auth-example { padding: 14px 16px; border: 1px solid #d3eaf3; border-radius: 12px; background: #fff; }
.auth-example h4 { margin: 0 0 6px; font-size: 1rem; color: var(--navy); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.auth-example ol { margin: 8px 0; padding-left: 22px; line-height: 1.8; font-size: .9rem; }
.auth-example ol li { margin: 4px 0; }
.auth-tag { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; color: #fff; }
.auth-tag.iphone { background: #1f2937; }
.auth-tag.google { background: #1a73e8; }
.auth-tips { padding: 12px 16px; border-radius: 12px; background: #fff8e6; border: 1px solid #f3dca2; font-size: .9rem; }
.auth-tips p { margin: 0 0 4px; }
.auth-tips ul { margin: 0; padding-left: 20px; line-height: 1.8; }
@media (max-width: 760px) { .auth-examples { grid-template-columns: 1fr; } }
/* ヘルプ「認証アプリの設定方法」の画面の見本（2026-11-07） */
.auth-flow { list-style: none; counter-reset: flow; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.6fr; gap: 10px; align-items: end; margin: 16px 0 6px; padding: 0; }
.auth-flow li { counter-increment: flow; position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.auth-flow li::before { content: counter(flow); position: absolute; top: -4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--pink); color: #fff; font-weight: 800; font-size: .8rem; display: grid; place-items: center; z-index: 1; }
.auth-flow li:not(:last-child)::after { content: "→"; position: absolute; right: -10px; top: 40%; color: var(--accent); font-weight: 800; }
.auth-flow img { width: 100%; max-height: 190px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(31, 58, 77, .15)); }
.auth-flow span { font-size: .8rem; line-height: 1.5; color: var(--navy); }
.auth-flow span b { display: block; font-size: .72rem; color: var(--accent); }
@media (max-width: 760px) {
  .auth-flow { grid-template-columns: 1fr 1fr 1fr; gap: 16px 6px; }
  .auth-flow span { font-size: .72rem; }
  .auth-flow li:first-child, .auth-flow li:last-child { grid-column: 1 / -1; }
  .auth-flow li:first-child img, .auth-flow li:last-child img { max-width: 300px; }
  .auth-flow li::after { display: none; }
}
