/* Builelib stylesheet layer: 30-guide.css */

/* 使い方ページ */
.guide-page {
  padding-bottom: 0;
  overflow: hidden;
}

.guide-hero {
  min-height: 580px;
  padding-top: 72px;
  padding-bottom: 76px;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 1.05fr);
  gap: clamp(46px, 8vw, 110px);
}

.guide-hero-copy h1 {
  max-width: 680px;
  margin: 12px 0 20px;
  color: var(--ink);
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.055em;
}

.guide-hero-copy > p {
  max-width: 660px;
  margin: 0;
  color: #526970;
  font-size: 14px;
  line-height: 1.9;
}

.guide-hero-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.guide-primary-button,
.guide-secondary-button {
  min-height: 46px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), #0a9186);
  box-shadow: 0 10px 24px rgba(8, 122, 116, 0.2);
}

.guide-secondary-button {
  color: var(--brand-dark);
  background: #fff;
  border: 1px solid var(--line);
}

.guide-primary-button:hover,
.guide-secondary-button:hover {
  transform: translateY(-2px);
}

.guide-dashboard {
  min-height: 390px;
  padding: 22px;
  position: relative;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(202, 220, 216, 0.92);
  border-radius: 22px;
  box-shadow: 0 32px 75px rgba(11, 72, 75, 0.16);
  transform: rotate(1deg);
}

.guide-dashboard::before,
.guide-dashboard::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(1px);
}

.guide-dashboard::before {
  width: 260px;
  height: 260px;
  right: -90px;
  top: -80px;
  background: rgba(16, 177, 159, 0.13);
}

.guide-dashboard::after {
  width: 180px;
  height: 180px;
  left: -70px;
  bottom: -55px;
  background: rgba(242, 160, 9, 0.11);
}

.guide-dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--brand-dark);
  font-family: "Source Sans 3", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.guide-dashboard-top i {
  width: 32px;
  height: 6px;
  display: block;
  background: #d9e9e5;
  border-radius: 999px;
}

.guide-dashboard-kpis {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10px;
}

.guide-dashboard-kpis > div {
  min-height: 88px;
  padding: 14px 16px;
  position: relative;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  background: #f4f9f7;
  border-left: 3px solid var(--brand);
  border-radius: 10px;
}

.guide-dashboard-kpis > div:first-child {
  background: #fff9eb;
  border-left-color: var(--accent);
}

.guide-dashboard-kpis small {
  color: #6e8389;
  font-size: 8px;
}

.guide-dashboard-kpis strong {
  margin-top: 2px;
  color: var(--ink);
  font-family: "Source Sans 3", sans-serif;
  font-size: 28px;
  line-height: 1;
}

.guide-dashboard-kpis em {
  position: absolute;
  right: 10px;
  top: 11px;
  padding: 3px 7px;
  color: #277154;
  background: #def3e8;
  border-radius: 999px;
  font-size: 7px;
  font-style: normal;
}

.guide-dashboard-kpis b {
  position: absolute;
  right: 12px;
  bottom: 11px;
  color: #85959a;
  font-size: 7px;
  font-weight: 500;
}

.guide-dashboard-chart {
  height: 188px;
  margin-top: 16px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 64px;
  overflow: hidden;
  border-bottom: 1px solid #dfe9e7;
}

.guide-chart-grid {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 45px, #edf2f1 46px);
}

.guide-chart-bar {
  width: 78px;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  border-radius: 5px 5px 0 0;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(16, 45, 58, 0.08);
}

.guide-chart-reference { height: 151px; }
.guide-chart-design { height: 122px; }
.guide-chart-bar span:nth-child(1) { height: 38%; background: #073b5c; }
.guide-chart-bar span:nth-child(2) { height: 12%; background: #087a83; }
.guide-chart-bar span:nth-child(3) { height: 33%; background: #2f9e5b; }
.guide-chart-bar span:nth-child(4) { height: 17%; background: #9aabba; }

.guide-dashboard-legend {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.guide-dashboard-legend span {
  width: 38px;
  height: 5px;
  display: block;
  background: #073b5c;
  border-radius: 99px;
}

.guide-dashboard-legend span:nth-child(2) { background: #087a83; }
.guide-dashboard-legend span:nth-child(3) { background: #2f9e5b; }
.guide-dashboard-legend span:nth-child(4) { background: #9aabba; }

.guide-section {
  padding-top: 82px;
  padding-bottom: 88px;
}

.guide-section-heading {
  max-width: 760px;
}

.guide-section-heading-center {
  margin: 0 auto;
  text-align: center;
}

.guide-section-heading h2,
.guide-note h2,
.guide-cta h2 {
  margin: 7px 0 11px;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 650;
  letter-spacing: -0.045em;
}

.guide-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.use-case-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.use-case-card {
  min-height: 360px;
  padding: 25px;
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.use-case-number {
  color: #9eaeaa;
  font-family: "Source Sans 3", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.use-case-card h3,
.guide-steps h3,
.guide-results-grid h3 {
  margin: 19px 0 8px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.use-case-card p,
.guide-steps p,
.guide-results-grid p {
  margin: 0;
  color: #64777d;
  font-size: 11px;
  line-height: 1.85;
}

.use-case-visual {
  height: 120px;
  margin-top: 20px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(145deg, #f1f8f6, #e6f2ef);
  border-radius: 12px;
  overflow: hidden;
}

.use-case-compare {
  gap: 14px;
}

.use-case-compare i {
  width: 30px;
  display: block;
  background: #087a83;
  border-radius: 5px 5px 0 0;
}

.use-case-compare i:nth-child(1) { height: 50px; background: #9aabba; }
.use-case-compare i:nth-child(2) { height: 82px; background: #073b5c; }
.use-case-compare i:nth-child(3) { height: 64px; background: #2f9e5b; }

.use-case-check {
  align-items: center;
  gap: 10px;
}

.use-case-check i {
  width: 76px;
  height: 76px;
  display: block;
  border: 10px solid #d7e9e4;
  border-top-color: var(--accent);
  border-right-color: var(--brand);
  border-radius: 50%;
  transform: rotate(26deg);
}

.use-case-check b {
  position: absolute;
  color: var(--ink);
  font-family: "Source Sans 3", sans-serif;
  font-size: 13px;
}

.use-case-check strong {
  width: 24px;
  height: 24px;
  position: absolute;
  right: calc(50% - 57px);
  top: 22px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #2f9e5b;
  border-radius: 50%;
  font-size: 12px;
}

.use-case-research {
  align-items: center;
  gap: 7px;
}

.use-case-research i {
  width: 12px;
  display: block;
  background: var(--brand);
  border-radius: 3px;
}

.use-case-research i:nth-child(1) { height: 38px; }
.use-case-research i:nth-child(2) { height: 66px; background: #2f9e5b; }
.use-case-research i:nth-child(3) { height: 49px; background: var(--accent); }
.use-case-research span {
  width: 74px;
  height: 44px;
  margin-left: 14px;
  display: block;
  border-bottom: 2px solid #073b5c;
  border-left: 2px solid #073b5c;
  transform: skewY(-20deg);
}

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

.guide-steps {
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.guide-steps li {
  min-height: 300px;
  margin: 0;
  padding: 22px;
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #d7e5e1;
  border-radius: 14px;
}

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

.guide-steps li:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 2;
  right: auto;
  left: calc(100% + 8px);
  top: 50%;
  color: #8fa7a2;
  font-size: 18px;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.step-sheet,
.step-building,
.step-upload,
.step-result {
  height: 94px;
  margin-top: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-sheet {
  width: 72px;
  height: 86px;
  margin-right: auto;
  margin-left: auto;
  align-items: stretch;
  flex-direction: column;
  gap: 9px;
  background: #e1f0ec;
  border: 2px solid var(--brand);
  border-radius: 6px;
}

.step-sheet i {
  width: 38px;
  height: 3px;
  margin-left: 15px;
  display: block;
  background: #80aaa2;
  border-radius: 99px;
}

.step-building {
  gap: 5px;
  align-items: flex-end;
}

.step-building i {
  width: 34px;
  height: 70px;
  display: block;
  background: repeating-linear-gradient(to bottom, #073b5c 0, #073b5c 8px, #d9efea 8px, #d9efea 14px);
  border-radius: 4px 4px 0 0;
}

.step-building i:nth-child(2) { height: 88px; background: repeating-linear-gradient(to bottom, #087a83 0, #087a83 8px, #e0f2ee 8px, #e0f2ee 14px); }
.step-building i:nth-child(3) { height: 55px; background: repeating-linear-gradient(to bottom, #2f9e5b 0, #2f9e5b 8px, #e2f2e9 8px, #e2f2e9 14px); }

.step-upload i {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
  font-size: 28px;
  font-style: normal;
}

.step-result {
  gap: 7px;
  align-items: flex-end;
  border-bottom: 2px solid #b8cbc7;
}

.step-result i {
  width: 24px;
  display: block;
  background: #073b5c;
  border-radius: 4px 4px 0 0;
}

.step-result i:nth-child(1) { height: 42px; }
.step-result i:nth-child(2) { height: 78px; background: #2f9e5b; }
.step-result i:nth-child(3) { height: 61px; background: var(--accent); }

.guide-results-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.guide-results-grid article {
  min-height: 230px;
  padding: 28px;
}

.guide-results-grid article + article {
  border-left: 1px solid var(--line);
}

.result-tab-sample {
  min-height: 32px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  color: var(--brand-dark);
  background: var(--brand-pale);
  border-radius: 7px;
  font-size: 9px;
  font-weight: 700;
}

.result-tab-summary {
  color: #fff;
  background: var(--brand);
}

.guide-note {
  margin-bottom: 90px;
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  background: #fffaf0;
  border: 1px solid #eedcae;
  border-left: 4px solid var(--accent);
  border-radius: 14px;
}

.guide-note > div {
  max-width: 900px;
}

.guide-note h2 {
  font-size: 21px;
}

.guide-note p {
  margin: 0;
  color: #6e644f;
  font-size: 11px;
  line-height: 1.85;
}

.guide-note > a {
  flex: 0 0 auto;
  color: #7c5d12;
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
}

.guide-cta {
  padding: 56px 0;
  color: #fff;
  background: var(--ink);
}

.guide-cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.guide-cta .section-kicker {
  color: #72c6ba;
}

.guide-cta h2 {
  margin-bottom: 0;
  color: #fff;
  font-size: clamp(22px, 2.6vw, 34px);
}

@media screen and (max-width: 1100px) {
  .guide-hero {
    grid-template-columns: 1fr 0.9fr;
    gap: 40px;
  }
  .guide-dashboard { min-height: 360px; }
  .guide-dashboard-chart { gap: 38px; }
  .guide-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-steps li:not(:last-child)::after { display: none; }
}

@media screen and (max-width: 820px) {
  .guide-hero {
    padding-top: 50px;
    grid-template-columns: 1fr;
  }
  .guide-dashboard {
    width: min(100%, 570px);
    margin: 0 auto;
    transform: none;
  }
  .use-case-grid,
  .guide-results-grid {
    grid-template-columns: 1fr;
  }
  .guide-results-grid article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .use-case-card { min-height: 330px; }
  .guide-note,
  .guide-cta .container {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media screen and (max-width: 560px) {
  .guide-hero {
    min-height: auto;
    padding-top: 38px;
    padding-bottom: 54px;
  }
  .guide-hero-copy h1 { font-size: 32px; }
  .guide-dashboard { min-height: 330px; padding: 16px; }
  .guide-dashboard-kpis { grid-template-columns: 1fr; }
  .guide-dashboard-kpis > div { min-height: 67px; }
  .guide-dashboard-chart { height: 142px; gap: 36px; }
  .guide-chart-reference { height: 116px; }
  .guide-chart-design { height: 92px; }
  .guide-section { padding-top: 60px; padding-bottom: 64px; }
  .guide-steps { grid-template-columns: 1fr; }
  .guide-note { margin-bottom: 64px; padding: 25px; }
  .guide-hero-actions { align-items: stretch; flex-direction: column; }
  .guide-primary-button, .guide-secondary-button { width: 100%; }
}
