/* Builelib stylesheet layer: 40-pages.css */

/* 全ページ共通の見た目 */
header a.header.is-current {
  color: var(--brand-dark);
}

header a.header.is-current::after {
  width: calc(100% - 32px);
  background: var(--brand);
}

.standard-page {
  flex: 1;
  color: var(--ink);
}

.page-hero,
.tool-hero {
  padding-top: 64px;
  padding-bottom: 62px;
}

.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  width: 330px;
  height: 330px;
  position: absolute;
  z-index: -1;
  right: 20px;
  top: -160px;
  background: rgba(8, 122, 116, 0.07);
  border-radius: 50%;
}

.page-hero h1,
.tool-hero h1 {
  max-width: 900px;
  margin: 9px 0 15px;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.05em;
}

.page-hero > p,
.tool-hero p {
  max-width: 760px;
  margin: 0;
  color: #586d74;
  font-size: 14px;
  line-height: 1.9;
}

.page-hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.standard-section {
  padding-top: 72px;
  padding-bottom: 78px;
}

.standard-section-soft {
  background: #edf6f3;
  border-top: 1px solid #dceae6;
  border-bottom: 1px solid #dceae6;
}

.standard-section-heading {
  max-width: 780px;
}

.standard-section-heading h2,
.tool-result-heading h2,
.prediction-form-card h2,
.tool-side-note h2 {
  margin: 6px 0 10px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 35px);
  font-weight: 650;
  letter-spacing: -0.04em;
}

.standard-section-heading p,
.tool-side-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}

.download-card-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.download-card {
  min-height: 250px;
  padding: 26px;
  position: relative;
  display: grid;
  align-items: start;
  grid-template-columns: auto 1fr;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.download-card-primary {
  border-top: 3px solid var(--brand);
}

.download-file-type {
  width: 55px;
  height: 64px;
  display: grid;
  place-items: center;
  color: var(--brand-dark);
  background: var(--brand-pale);
  border-radius: 8px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.download-card small {
  color: var(--brand);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.download-card h3 {
  margin: 4px 0 7px;
  color: var(--ink);
  font-family: "Source Sans 3", "Noto Sans JP", sans-serif;
  font-size: 20px;
}

.download-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.download-card > a {
  grid-column: 2;
  justify-self: start;
  padding: 9px 14px;
  color: #fff;
  background: var(--brand);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 650;
  text-decoration: none;
}

.compact-steps {
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  list-style: none;
}

.compact-steps li {
  min-height: 180px;
  padding: 23px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,255,255,0.88);
  border: 1px solid #d7e5e1;
  border-radius: 13px;
}

.compact-steps li > span {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand-dark);
  border-radius: 50%;
  font-family: "Source Sans 3", sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.compact-steps h3 {
  margin: 1px 0 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.compact-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

.reference-links {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reference-links a {
  padding: 8px 12px;
  color: var(--brand-dark);
  background: #fff;
  border: 1px solid #cfe0dc;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 650;
  text-decoration: none;
}

.sample-list {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sample-list a {
  min-height: 58px;
  padding: 11px 14px;
  display: grid;
  align-items: center;
  grid-template-columns: 52px 1fr 20px;
  gap: 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.sample-list a:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.sample-list span {
  color: var(--brand-dark);
  font-family: "Source Sans 3", sans-serif;
  font-size: 9px;
  font-weight: 700;
}

.sample-list b {
  font-size: 10px;
  font-weight: 550;
}

.sample-list i {
  color: #8aa09b;
  font-size: 11px;
  font-style: normal;
}

.subtool-card-grid {
  padding-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.subtool-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.subtool-visual {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #edf7f4, #e1efeb);
}

.subtool-room-visual {
  gap: 8px;
}

.subtool-room-visual span {
  padding: 7px 10px;
  color: var(--brand-dark);
  background: #fff;
  border: 1px solid #cfe0dc;
  border-radius: 7px;
  font-size: 9px;
}

.subtool-room-visual strong {
  margin-left: 10px;
  color: #8ba29d;
}

.subtool-room-visual b {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
  font-size: 13px;
}

.subtool-map-visual {
  gap: 22px;
}

.subtool-map-visual > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.subtool-map-visual i {
  width: 85px;
  height: 25px;
  display: block;
  background: #fff;
  border: 1px solid #91b6ae;
  border-radius: 6px;
}

.subtool-map-visual > div:last-child i {
  width: 112px;
  height: 45px;
  background: #d6eee8;
  border-color: var(--brand);
}

.subtool-map-visual strong {
  color: #8ba29d;
}

.subtool-card-body {
  min-height: 310px;
  padding: 27px;
}

.subtool-card-body h2 {
  margin: 5px 0 9px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 650;
}

.subtool-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.85;
}

.subtool-card-body ul {
  margin: 16px 0 20px;
  padding-left: 18px;
  color: #51686e;
  font-size: 10px;
}

.subtool-card-body a {
  display: inline-flex;
  padding: 9px 14px;
  color: #fff;
  background: var(--brand);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 650;
  text-decoration: none;
}

.standard-note {
  margin-bottom: 80px;
  padding: 25px 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fffaf0;
  border: 1px solid #eddba9;
  border-radius: 13px;
}

.standard-note-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  font-weight: 700;
}

.standard-note h2 {
  margin: 0 0 5px;
  color: #6f561e;
  font-size: 15px;
}

.standard-note p {
  margin: 0;
  color: #76684b;
  font-size: 10px;
}

.tool-hero {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #e2ebe8;
}

.tool-back-link {
  margin-bottom: 24px;
  display: block;
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 650;
  text-decoration: none;
}

.tool-version {
  flex: 0 0 auto;
  padding: 5px 10px;
  color: var(--brand-dark);
  background: var(--brand-pale);
  border-radius: 999px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 9px;
  font-weight: 650;
}

.tool-workspace,
.prediction-workspace {
  padding-top: 42px;
  padding-bottom: 50px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 18px;
}

.tool-drop-zone,
.prediction-form-card,
.tool-side-note,
.prediction-example {
  min-height: 330px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.tool-drop-zone {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background: linear-gradient(145deg, #eff9f6, #e2f2ee);
  border: 1.5px dashed rgba(8,122,116,0.48);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.tool-drop-zone:hover,
.tool-drop-zone.highlight {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.tool-upload-icon {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
  font-size: 22px;
}

.tool-drop-zone h2 {
  margin: 17px 0 8px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 650;
}

#drop-message {
  color: #57716d;
  font-size: 11px;
}

.tool-drop-zone.is-processing .tool-upload-icon {
  animation: pulse-upload 1.1s ease-in-out infinite alternate;
}

@keyframes pulse-upload {
  to { transform: translateY(-5px); opacity: 0.72; }
}

.tool-side-note {
  box-shadow: none;
}

.tool-side-note ol {
  margin: 21px 0;
  padding: 0;
  counter-reset: visualizer;
  list-style: none;
}

.tool-side-note li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #52686e;
  border-bottom: 1px solid #e9efed;
  font-size: 10px;
}

.tool-side-note li::before {
  counter-increment: visualizer;
  content: counter(visualizer);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
  font-family: "Source Sans 3", sans-serif;
  font-size: 9px;
}

.tool-side-note > a,
.tool-download-link {
  display: inline-flex;
  padding: 8px 12px;
  color: var(--brand-dark);
  background: var(--brand-pale);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 650;
  text-decoration: none;
}

.tool-result-zone,
.prediction-result {
  margin-bottom: 45px;
  padding-top: 30px;
  padding-bottom: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.tool-result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.visualizer-results {
  margin-top: 22px;
  display: grid;
  gap: 16px;
}

.visualizer-results article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.visualizer-results h3 {
  margin: 0 0 13px;
  color: var(--ink);
  font-size: 13px;
}

.visualizer-graph {
  width: 100%;
  overflow-x: auto;
}

.visualizer-graph img {
  width: 100%;
  min-width: 780px;
  height: auto;
  display: block;
}

.tool-information {
  padding-bottom: 78px;
  display: grid;
  gap: 9px;
}

.tool-information details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.tool-information summary {
  padding: 16px 18px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.tool-information details > div {
  padding: 0 18px 17px;
  color: #5e7278;
  font-size: 10px;
}

.tool-information details p {
  margin: 6px 0;
}

.tool-information details ul {
  width: auto;
  margin: 0;
  padding: 0 0 0 18px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.prediction-form-card h2 {
  font-size: 25px;
}

.prediction-form-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.prediction-form {
  margin: 25px 0 15px;
}

.prediction-form label {
  margin-bottom: 7px;
  display: block;
  color: #51686e;
  font-size: 10px;
  font-weight: 650;
}

.prediction-form > div {
  display: flex;
  gap: 8px;
}

.prediction-form input {
  min-width: 0;
  flex: 1;
  height: 46px;
  padding: 0 13px;
  color: var(--ink);
  background: #f8fbfa;
  border: 1px solid #cfdedb;
  border-radius: 9px;
  font-size: 14px;
}

.prediction-form input:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(8,122,116,0.11);
}

.prediction-form button {
  padding: 0 18px;
  color: #fff;
  background: var(--brand);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.prediction-form-card > small {
  color: #879793;
  font-size: 9px;
}

.prediction-example {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: linear-gradient(145deg, #eff8f5, #e3f1ed);
  box-shadow: none;
}

.prediction-example > div {
  width: 125px;
  min-height: 95px;
  padding: 17px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(8,83,80,0.08);
}

.prediction-example span {
  color: #839590;
  font-family: "Source Sans 3", sans-serif;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.prediction-example strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 16px;
}

.prediction-example > i {
  color: #76958e;
  font-size: 18px;
  font-style: normal;
}

.prediction-output-sample {
  position: relative;
  border-top: 3px solid var(--brand);
}

.prediction-output-sample em {
  position: absolute;
  right: 10px;
  top: 10px;
  color: #2d795b;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.prediction-query {
  margin: 18px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
}

.prediction-query strong {
  padding: 5px 10px;
  color: var(--ink);
  background: var(--surface-soft);
  border-radius: 6px;
}

.prediction-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 13px;
}

.prediction-result-grid article {
  min-height: 150px;
  padding: 21px;
  position: relative;
  background: #f7faf9;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.prediction-result-grid .prediction-result-primary {
  background: #eff8f5;
  border-top: 3px solid var(--brand);
}

.prediction-result-grid article > span {
  color: var(--brand-dark);
  font-size: 9px;
  font-weight: 700;
}

.prediction-result-grid h3 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 22px;
}

.prediction-result-grid article > div {
  position: absolute;
  right: 18px;
  bottom: 17px;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
}

.prediction-result-grid b {
  color: var(--brand-dark);
  font-family: "Source Sans 3", sans-serif;
  font-size: 23px;
}

.prediction-result-grid small {
  color: var(--muted);
  font-size: 8px;
}

.prediction-reset-form {
  margin-top: 14px;
  text-align: right;
}

.prediction-reset-form button {
  padding: 7px 11px;
  color: #687b80;
  background: #f3f7f5;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 9px;
  cursor: pointer;
}

@media screen and (max-width: 900px) {
  .download-card-grid,
  .subtool-card-grid,
  .tool-workspace,
  .prediction-workspace {
    grid-template-columns: 1fr;
  }
  .compact-steps,
  .sample-list {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media screen and (max-width: 620px) {
  .page-hero,
  .tool-hero {
    padding-top: 42px;
    padding-bottom: 44px;
  }
  .page-hero h1,
  .tool-hero h1 { font-size: 31px; }
  .page-hero-actions { align-items: stretch; flex-direction: column; }
  .standard-section { padding-top: 56px; padding-bottom: 60px; }
  .download-card { grid-template-columns: 1fr; }
  .download-card > a { grid-column: 1; }
  .compact-steps,
  .sample-list,
  .prediction-result-grid {
    grid-template-columns: 1fr;
  }
  .tool-hero { align-items: flex-start; flex-direction: column; }
  .tool-drop-zone,
  .prediction-form-card,
  .tool-side-note,
  .prediction-example { min-height: 285px; padding: 23px; }
  .prediction-form > div { flex-direction: column; }
  .prediction-form button { height: 44px; }
  .tool-result-heading { align-items: flex-start; flex-direction: column; }
}
