:root {
  --ink: #232323;
  --muted: #6c7078;
  --green: #174da0;
  --green-dark: #0d3b88;
  --lime: #e8f0fc;
  --paper: #f5f6f8;
  --white: #ffffff;
  --line: #dfe2e7;
  --danger: #9d3327;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Meiryo, "メイリオ", "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.7;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  margin: 0;
  padding: 24px max(32px, calc((100vw - 1116px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  background: var(--green-dark);
  border-bottom: 4px solid #12336f;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--white);
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--green-dark);
  background: var(--white);
  border-radius: 5px;
  font-size: 24px;
  line-height: 1;
}

.prototype-label {
  color: #c8d6ea;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
}

.header-actions { display: flex; align-items: center; gap: 18px; }
.diagnosis-nav { color: var(--white); font-size: 13px; font-weight: 800; text-underline-offset: 4px; }

main { overflow: hidden; }

.hero {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 32px 82px;
}

.hero::after {
  content: "+";
  position: absolute;
  z-index: -1;
  top: 24px;
  right: 16px;
  color: #edf2fa;
  font: 700 360px/1 Arial, sans-serif;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 84px);
  letter-spacing: -.055em;
  line-height: 1.14;
}

h1 span { color: var(--green); }

.lead {
  max-width: 590px;
  margin: 28px 0 40px;
  color: var(--muted);
  font-size: 16px;
}

.search-form {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(13, 59, 136, .08);
}

.search-form label, .section-label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.search-row { display: flex; gap: 10px; }

.search-row input {
  min-width: 0;
  flex: 1;
  padding: 16px 18px;
  color: var(--ink);
  background: #fafbf9;
  border: 2px solid var(--line);
  border-radius: 10px;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  outline: none;
}

.search-row input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23, 77, 160, .13); }

.search-row button {
  padding: 0 24px;
  color: var(--white);
  background: var(--green-dark);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.search-row button:hover { background: var(--green); }
.search-row button:focus-visible, .sample-buttons button:focus-visible, a:focus-visible { outline: 3px solid #8db2e8; outline-offset: 3px; }

.input-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; }

.sample-area { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.sample-area > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.sample-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.sample-buttons button {
  padding: 7px 13px;
  color: var(--green-dark);
  background: transparent;
  border: 1px solid #b9c8bf;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.sample-buttons button:hover { background: var(--white); border-color: var(--green); }

.status { max-width: 1116px; margin: 0 auto 28px; padding: 0 32px; }
.status:not(:empty) { padding-top: 18px; padding-bottom: 18px; color: var(--danger); background: #fff1ee; border-left: 4px solid var(--danger); }

.result {
  max-width: 1116px;
  margin: 0 auto 100px;
  padding: 44px;
  background: var(--green-dark);
  border-radius: 10px;
  color: var(--white);
}

.result-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 30px; }
.result .eyebrow { color: #c8d9f3; }
.result h2, .guide h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.035em; }
.match-badge { padding: 6px 12px; color: var(--green-dark); background: var(--white); border-radius: 999px; font-size: 12px; font-weight: 800; }

.model-card {
  padding: 32px;
  color: var(--ink);
  background: var(--white);
  border-radius: 16px;
}

.model-name > span { color: var(--muted); font-size: 12px; }
.model-name strong { display: block; margin: 3px 0 4px; color: var(--green-dark); font-size: clamp(40px, 6vw, 64px); line-height: 1.2; }
.model-name p { margin: 0; color: var(--muted); font-size: 13px; }
.compatibility-conclusion {
  margin-top: 20px;
  padding: 20px 24px;
  color: var(--ink);
  background: #f2f7ff;
  border-left: 5px solid #ff9900;
  border-radius: 10px;
}
.compatibility-conclusion h3 { margin: 0 0 8px; color: var(--green-dark); font-size: clamp(17px, 2.4vw, 21px); line-height: 1.45; }
.compatibility-conclusion p { margin: 0; color: var(--green-dark); font-size: clamp(19px, 3vw, 27px); font-weight: 800; line-height: 1.55; overflow-wrap: anywhere; }
.same-size-note { margin: -3px 0 12px; color: var(--green-dark); font-size: 13px; font-weight: 700; }
.dimensions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dimensions div { padding: 18px 16px; background: var(--paper); border-radius: 10px; text-align: center; }
.dimensions span { display: block; color: var(--muted); font-size: 12px; }
.dimensions strong { margin-right: 3px; font-size: clamp(26px, 4vw, 38px); line-height: 1.35; }
.dimensions small { color: var(--muted); }

.compatible-section { padding-top: 34px; }
.result .section-label { color: #b9c8bf; }
.compatible-heading { margin: 0 0 20px; color: var(--white); font-size: clamp(22px, 3vw, 30px); line-height: 1.4; }
.compatible-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.candidate-group { min-width: 0; }
.candidate-group--others { grid-column: 1 / -1; }
.candidate-group h4 { margin: 0 0 9px; color: #dce7f7; font-size: 13px; }
.candidate-cards { display: grid; gap: 10px; }
.candidate-group--others .candidate-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.candidate-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 14px;
  min-width: 0;
  min-height: 158px;
  padding: 20px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.candidate-card:hover { border-color: #ff9900; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); transform: translateY(-2px); }
.candidate-card:focus-visible { outline: 3px solid #ffb84d; outline-offset: 3px; }
.candidate-card--recommended { background: #fff8e8; border-color: #ff9900; }
.candidate-card-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; }
.candidate-category { color: var(--green-dark); font-size: 12px; font-weight: 800; }
.recommend-badge { padding: 3px 9px; color: #131921; background: #ff9900; border-radius: 999px; font-size: 11px; font-weight: 800; }
.candidate-model { min-width: 0; color: var(--green-dark); font-size: clamp(26px, 4vw, 36px); line-height: 1.25; overflow-wrap: anywhere; }
.candidate-description { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.amazon-price-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: end;
  grid-column: 1 / -1;
  min-height: 46px;
  margin-top: 10px;
  padding: 10px 16px;
  color: #131921;
  background: #ff9900;
  border: 1px solid #e68a00;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
}
.candidate-card:hover .amazon-price-cta { background: #e68a00; border-color: #cc7a00; }
.caution { margin: 20px 0 0; padding: 13px 16px; color: #26334a; background: #eef3fa; border-radius: 8px; font-size: 12px; line-height: 1.75; }

.article-link-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding: 22px 24px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #d5e0ef;
  border-radius: 12px;
}

.article-link-box div { display: grid; }
.article-link-box div span { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.article-link-box div strong { font-size: 16px; }
.article-link-box a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.article-link-box a:hover { color: var(--green); }

.pochipp-section {
  margin-top: 28px;
  padding: 26px 24px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 12px;
}
.pochipp-section .eyebrow { margin-bottom: 4px; }
.pochipp-section h3 { margin: 0 0 18px; color: var(--green-dark); font-size: 20px; }
.pochipp-product-group { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.pochipp-product-group[hidden] { display: none !important; }
.pochipp-product-slot { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.pochipp-product-slot > h4 {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 15px;
  line-height: 1.6;
}

.spec-section {
  margin-top: 28px;
  padding: 26px 24px;
  color: var(--ink);
  background: var(--white);
  border-radius: 12px;
}
.spec-section .section-label { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.spec-section h3 { margin: 4px 0 12px; color: var(--green-dark); font-size: 20px; }
.spec-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.spec-details div { min-width: 0; padding: 15px 16px; background: var(--paper); border-radius: 10px; }
.spec-details span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.spec-details strong { display: block; color: var(--ink); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.caution-section { margin-top: 28px; }
.caution-section h3 { margin: 0 0 9px; color: var(--white); font-size: 18px; }
.caution-section .caution { margin: 0; }

.battery-tool-cta {
  margin: 28px 0;
  padding: 28px;
  color: var(--ink);
  background: linear-gradient(135deg, #edf4ff 0%, #fff 72%);
  border: 2px solid var(--green-dark);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(13, 59, 136, .10);
  font-family: "メイリオ", Meiryo, sans-serif;
}
.battery-tool-cta__label { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.battery-tool-cta h3 { margin: 9px 0 9px; color: var(--green-dark); font-size: clamp(20px, 3vw, 26px); line-height: 1.45; }
.battery-tool-cta p { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.battery-tool-cta p strong { color: var(--green-dark); font-weight: 800; }
.battery-tool-cta a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  color: #191400;
  background: #ffca28;
  border: 1px solid #e5a900;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  box-sizing: border-box;
}
.battery-tool-cta a > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.battery-tool-cta a:hover { color: #191400; background: #ffd85a; }
.battery-tool-cta a:focus-visible { outline: 3px solid #ff8f00; outline-offset: 3px; }
.battery-tool-cta .battery-tool-cta__note { margin: 9px 0 0; color: #52627a; font-size: 12px; font-weight: 700; line-height: 1.6; text-align: center; }
.battery-tool-guide-cta { background: linear-gradient(135deg, #f5f8ff 0%, #fff 72%); }
.battery-tool-comparison-cta { background: linear-gradient(135deg, #eef5ff 0%, #fff9e9 100%); }

.guide { max-width: 1116px; margin: 0 auto; padding: 0 32px 110px; }
.guide-title { margin: 5px 0 0; color: var(--ink); font-size: 24px; font-weight: 800; line-height: 1.5; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 32px; }
.guide article { padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 4px 14px rgba(13, 59, 136, .04); }
.guide-number { color: var(--green); font-size: 12px; font-weight: 800; }
.guide h3 { margin: 8px 0; font-size: 21px; }
.guide article p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.guide a { color: var(--green-dark); font-size: 13px; font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 4px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px max(32px, calc((100vw - 1116px) / 2));
  color: #aebcb5;
  background: var(--green-dark);
  font-size: 11px;
}
footer p { margin: 0; }

@media (max-width: 680px) {
  .site-header { padding: 18px 20px; }
  .prototype-label { display: none; }
  .hero { padding: 32px 20px 62px; }
  .hero::after { top: 80px; right: -80px; font-size: 250px; }
  h1 { font-size: 45px; }
  .lead { margin: 20px 0 28px; }
  .search-form { padding: 18px; border-radius: 14px; }
  .search-row { display: grid; }
  .search-row button { min-height: 54px; }
  .sample-area { align-items: flex-start; flex-direction: column; gap: 8px; }
  .status { margin: 0 20px 20px; padding-left: 14px; padding-right: 14px; }
  .result { margin: 0 12px 70px; padding: 28px 20px; border-radius: 18px; }
  .model-card { padding: 22px 18px; }
  .compatibility-conclusion { padding: 18px; }
  .dimensions { gap: 6px; }
  .dimensions div { padding: 13px 5px; }
  .dimensions strong { font-size: 26px; }
  .compatible-list { grid-template-columns: 1fr; }
  .candidate-group--others { grid-column: auto; }
  .candidate-group--others .candidate-cards { grid-template-columns: 1fr; }
  .candidate-card { min-height: 0; padding: 18px; }
  .candidate-model { font-size: 30px; }
  .amazon-price-cta { width: 100%; min-height: 48px; }
  .article-link-box { align-items: flex-start; flex-direction: column; gap: 14px; padding: 19px; }
  .pochipp-section { margin-left: -8px; margin-right: -8px; padding: 16px 0; background: transparent; }
  .pochipp-section > .eyebrow,
  .pochipp-section > h3 { margin-left: 4px; margin-right: 4px; }
  .pochipp-section > h3 { color: var(--white); }
  .pochipp-product-group { grid-template-columns: 1fr; }
  .pochipp-product-slot { padding: 0; border: 0; background: transparent; }
  .pochipp-product-slot > h4 {
    margin: 0 4px 10px;
    padding: 10px 12px;
    color: var(--white) !important;
    background: rgba(255, 255, 255, .12);
    border-left: 4px solid #ff9900;
    border-radius: 6px;
    font-size: 15px;
  }
  .spec-section { padding: 20px 16px; }
  .spec-details { grid-template-columns: 1fr; }
  .battery-tool-cta { margin: 22px 0; padding: 22px 16px; }
  .battery-tool-cta a { min-height: 56px; padding: 12px 14px; font-size: 14px; line-height: 1.55; }
  .guide { padding: 0 20px 70px; }
  .guide-title { font-size: 21px; }
  .guide-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
