/**
 * スタリハ® 会員ガイド
 *
 * すべての規則をショートコードのルート要素内に限定し、
 * テーマやほかのプラグインへ影響しないようにしています。
 */
.stareha-first-guide {
  --stareha-sky: #00a0e9;
  --stareha-sky-text: #007db8;
  --stareha-sky-pale: #f5fbfd;
  --stareha-sky-soft: #e6f6fc;
  --stareha-navy: #172a86;
  --stareha-navy-hover: #10206f;
  --stareha-charcoal: #252525;
  --stareha-muted: #4c5660;
  --stareha-surface: #ffffff;
  --stareha-font: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  width: 100%;
  position: relative;
  color: var(--stareha-charcoal);
  font-family: var(--stareha-font);
  -webkit-text-size-adjust: 100%;
}

.stareha-first-guide,
.stareha-first-guide *,
.stareha-first-guide *::before,
.stareha-first-guide *::after {
  box-sizing: border-box;
}

.stareha-first-guide :where(h2, h3, h4, p, ul, ol) {
  margin-block-start: 0;
  margin-block-end: 0;
}

.stareha-first-guide a:focus-visible {
  outline: 4px solid var(--stareha-sky);
  outline-offset: 4px;
}

.stareha-first-guide .stareha-first-guide__shell {
  width: min(calc(100vw - 64px), 1180px);
  max-width: none;
  position: relative;
  left: 50%;
  margin: 0;
  padding: 40px 0 34px;
  transform: translateX(-50%);
}

.stareha-first-guide .stareha-guide-hero,
.stareha-first-guide .stareha-guide-card,
.stareha-first-guide .stareha-guide-panel {
  border: 2px solid var(--stareha-sky);
  border-radius: 16px;
  box-shadow: none;
}

.stareha-first-guide .stareha-guide-hero {
  display: grid;
  min-height: 250px;
  grid-template-columns: minmax(0, 1.65fr) minmax(230px, 0.75fr);
  gap: 36px;
  align-items: center;
  padding: 36px 52px;
  background: var(--stareha-sky-pale);
}

.stareha-first-guide .stareha-guide-eyebrow {
  display: inline-flex;
  margin: 0 0 8px;
  color: var(--stareha-sky-text);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.stareha-first-guide .stareha-guide-page-title {
  margin: 0;
  color: var(--stareha-navy);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
}

.stareha-first-guide .stareha-guide-hero__lead {
  margin: 14px 0 0;
  color: var(--stareha-charcoal);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.75;
}

.stareha-first-guide .stareha-guide-hero__note {
  margin: 12px 0 0;
  color: var(--stareha-charcoal);
  font-size: 1rem;
  line-height: 1.75;
}

.stareha-first-guide .stareha-guide-hero__visual {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: var(--stareha-navy);
  text-align: center;
}

.stareha-first-guide .stareha-guide-hero-illustration {
  display: block;
  width: min(100%, 230px);
  height: auto;
  color: var(--stareha-navy);
  overflow: visible;
}

.stareha-first-guide .stareha-guide-hero__visual p {
  color: var(--stareha-navy);
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.55;
}

.stareha-first-guide .stareha-guide-hero__visual p span {
  display: block;
  white-space: nowrap;
  text-align: center;
}

.stareha-first-guide .stareha-guide-icon {
  display: block;
  width: 100%;
  height: auto;
  color: var(--stareha-navy);
  overflow: visible;
}

.stareha-first-guide .stareha-guide-icon__line,
.stareha-first-guide .stareha-guide-icon__line > * {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stareha-first-guide .stareha-guide-icon__line > * {
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

.stareha-first-guide .stareha-guide-icon__surface {
  fill: var(--stareha-surface);
}

.stareha-first-guide .stareha-guide-icon__soft-fill {
  fill: var(--stareha-sky-soft);
}

.stareha-first-guide .stareha-guide-icon__sky-fill {
  fill: var(--stareha-sky);
}

.stareha-first-guide .stareha-guide-start-mark {
  display: grid;
  width: 106px;
  height: 106px;
  place-items: center;
  border: 2px solid var(--stareha-sky);
  border-radius: 999px;
  background: var(--stareha-sky-soft);
  color: var(--stareha-navy);
  font-size: 0.9375rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.stareha-first-guide .stareha-guide-start-mark span {
  white-space: nowrap;
}

.stareha-first-guide .stareha-guide-overview-grid,
.stareha-first-guide .stareha-guide-support-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: 18px;
  margin-top: 18px;
}

.stareha-first-guide .stareha-guide-card,
.stareha-first-guide .stareha-guide-panel {
  min-width: 0;
  padding: 24px 26px;
  background: var(--stareha-surface);
}

.stareha-first-guide .stareha-guide-section-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.stareha-first-guide .stareha-guide-section-number {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--stareha-navy);
  color: var(--stareha-surface);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1;
}

.stareha-first-guide .stareha-guide-section-title {
  min-width: 0;
  color: var(--stareha-navy);
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1.4;
}

.stareha-first-guide .stareha-guide-introduction__body {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-top: 20px;
}

.stareha-first-guide .stareha-guide-introduction__body p,
.stareha-first-guide .stareha-guide-card__intro {
  color: var(--stareha-charcoal);
  font-size: 1rem;
  line-height: 1.8;
}

.stareha-first-guide .stareha-guide-introduction__body p + p {
  margin-top: 8px;
}

.stareha-first-guide .stareha-guide-card__intro {
  margin-top: 14px;
}

.stareha-first-guide .stareha-guide-preparation-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.stareha-first-guide .stareha-guide-preparation-list li {
  display: grid;
  min-width: 0;
  min-height: 148px;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-content: start;
  align-items: start;
  padding: 18px 14px;
  border-radius: 10px;
  background: var(--stareha-sky-pale);
  color: var(--stareha-charcoal);
  font-size: 0.9375rem;
  line-height: 1.7;
  text-align: left;
}

.stareha-first-guide .stareha-guide-preparation-list strong {
  display: block;
  margin-bottom: 5px;
  color: var(--stareha-navy);
  font-size: 1rem;
  line-height: 1.5;
}

.stareha-first-guide .stareha-guide-check {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 5px;
  background: var(--stareha-sky);
  color: var(--stareha-surface);
  font-size: 0.875rem;
  font-weight: 900;
  line-height: 1;
}

.stareha-first-guide .stareha-guide-preparation-copy {
  min-width: 0;
}

.stareha-first-guide .stareha-guide-preparation-description {
  display: block;
}

.stareha-first-guide .stareha-guide-steps {
  margin-top: 18px;
}

.stareha-first-guide .stareha-guide-step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 46px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.stareha-first-guide .stareha-guide-step {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 148px;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 18px 16px 18px 58px;
  border: 2px solid var(--stareha-sky);
  border-radius: 12px;
  background: var(--stareha-surface);
}

.stareha-first-guide .stareha-guide-step:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -35px;
  width: 0;
  height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 18px solid var(--stareha-sky);
  content: "";
  transform: translateY(-50%);
}

.stareha-first-guide .stareha-guide-step__number {
  position: absolute;
  top: 16px;
  left: 14px;
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--stareha-navy);
  color: var(--stareha-surface);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}

.stareha-first-guide .stareha-guide-step__icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  padding: 5px;
  border-radius: 50%;
  background: var(--stareha-sky-pale);
  color: var(--stareha-navy);
}

.stareha-first-guide .stareha-guide-step__copy {
  min-width: 0;
}

.stareha-first-guide .stareha-guide-step-title {
  color: var(--stareha-navy);
  font-size: 1.1875rem;
  font-weight: 800;
  line-height: 1.5;
}

.stareha-first-guide .stareha-guide-step p {
  margin-top: 8px;
  color: var(--stareha-charcoal);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.stareha-first-guide .stareha-guide-steps__cta {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.stareha-first-guide .stareha-guide-steps__cta a {
  display: inline-flex;
  width: min(100%, 420px);
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 2px solid var(--stareha-navy);
  border-radius: 8px;
  background: var(--stareha-navy);
  color: var(--stareha-surface);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}

.stareha-first-guide .stareha-guide-steps__cta a:hover {
  border-color: var(--stareha-navy-hover);
  background: var(--stareha-navy-hover);
  color: var(--stareha-surface);
}

.stareha-first-guide .stareha-guide-support-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
}

.stareha-first-guide .stareha-guide-safety-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.stareha-first-guide .stareha-guide-safety-list li {
  position: relative;
  padding-left: 22px;
  color: var(--stareha-charcoal);
  font-size: 1rem;
  line-height: 1.75;
}

.stareha-first-guide .stareha-guide-safety-list li::before {
  position: absolute;
  top: 0.68em;
  left: 1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--stareha-navy);
  content: "";
}

.stareha-first-guide .stareha-guide-safety-note {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-left: 5px solid var(--stareha-sky);
  border-radius: 0 8px 8px 0;
  background: var(--stareha-sky-pale);
  color: var(--stareha-charcoal);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.7;
}

.stareha-first-guide .stareha-guide-help-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.stareha-first-guide .stareha-guide-help-links a {
  display: flex;
  min-width: 0;
  min-height: 210px;
  flex-direction: column;
  align-items: center;
  padding: 16px 14px 14px;
  border: 2px solid var(--stareha-sky);
  border-radius: 10px;
  background: var(--stareha-surface);
  color: var(--stareha-navy);
  text-align: center;
  text-decoration: none;
}

.stareha-first-guide .stareha-guide-help-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 7px;
  color: var(--stareha-navy);
}

.stareha-first-guide .stareha-guide-help-links a:hover {
  border-color: var(--stareha-navy);
  background: var(--stareha-sky-pale);
}

.stareha-first-guide
  .stareha-guide-help-links
  a
  > span:not(.stareha-guide-help-icon):not(.stareha-guide-help-button) {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
}

.stareha-first-guide .stareha-guide-help-links small {
  margin-top: 5px;
  color: var(--stareha-muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.stareha-first-guide .stareha-guide-help-button {
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 9px 10px;
  border-radius: 6px;
  background: var(--stareha-navy);
  color: var(--stareha-surface);
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

.stareha-first-guide
  .stareha-guide-help-links
  a:hover
  .stareha-guide-help-button {
  background: var(--stareha-navy-hover);
}

.stareha-first-guide .stareha-guide-closing {
  width: min(100%, 760px);
  margin: 26px auto 0;
  color: var(--stareha-charcoal);
  font-size: 0.9375rem;
  line-height: 1.8;
  text-align: center;
}

@media (max-width: 980px) {
  .stareha-first-guide .stareha-first-guide__shell {
    width: calc(100vw - 48px);
  }

  .stareha-first-guide .stareha-guide-hero {
    grid-template-columns: minmax(0, 1fr) 220px;
    padding: 34px 36px;
  }

  .stareha-first-guide .stareha-guide-overview-grid,
  .stareha-first-guide .stareha-guide-support-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stareha-first-guide .stareha-guide-preparation-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stareha-first-guide .stareha-guide-step-list {
    gap: 30px;
  }

  .stareha-first-guide .stareha-guide-step:not(:last-child)::after {
    right: -24px;
    border-top-width: 10px;
    border-bottom-width: 10px;
    border-left-width: 14px;
  }
}

@media (max-width: 780px) {
  .stareha-first-guide .stareha-guide-step-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .stareha-first-guide .stareha-guide-step {
    min-height: 0;
  }

  .stareha-first-guide .stareha-guide-step:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -26px;
    left: 50%;
    border-top: 16px solid var(--stareha-sky);
    border-right: 12px solid transparent;
    border-bottom: 0;
    border-left: 12px solid transparent;
    transform: translateX(-50%);
  }
}

@media (max-width: 640px) {
  .stareha-first-guide .stareha-first-guide__shell {
    width: calc(100vw - 32px);
    padding: 28px 0 40px;
  }

  .stareha-first-guide .stareha-guide-hero,
  .stareha-first-guide .stareha-guide-card,
  .stareha-first-guide .stareha-guide-panel {
    border-radius: 12px;
  }

  .stareha-first-guide .stareha-guide-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding: 26px 20px 32px;
  }

  .stareha-first-guide .stareha-guide-hero__visual {
    width: min(100%, 250px);
    justify-self: center;
  }

  .stareha-first-guide .stareha-guide-eyebrow {
    font-size: 0.875rem;
  }

  .stareha-first-guide .stareha-guide-page-title {
    font-size: 2rem;
  }

  .stareha-first-guide .stareha-guide-hero__lead {
    margin-top: 12px;
    font-size: 1.0625rem;
    line-height: 1.7;
  }

  .stareha-first-guide .stareha-guide-hero__note {
    margin-top: 10px;
    font-size: 0.9375rem;
  }

  .stareha-first-guide .stareha-guide-hero-illustration {
    width: min(100%, 220px);
  }

  .stareha-first-guide .stareha-guide-card,
  .stareha-first-guide .stareha-guide-panel {
    padding: 22px 18px;
  }

  .stareha-first-guide .stareha-guide-section-heading {
    align-items: flex-start;
    gap: 10px;
  }

  .stareha-first-guide .stareha-guide-section-number {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    font-size: 1rem;
  }

  .stareha-first-guide .stareha-guide-section-title {
    font-size: 1.375rem;
  }

  .stareha-first-guide .stareha-guide-introduction__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .stareha-first-guide .stareha-guide-start-mark {
    width: 92px;
    height: 92px;
    justify-self: center;
  }

  .stareha-first-guide .stareha-guide-preparation-list,
  .stareha-first-guide .stareha-guide-help-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .stareha-first-guide .stareha-guide-preparation-list li {
    min-height: 0;
    align-items: center;
    padding: 14px;
  }

  .stareha-first-guide .stareha-guide-step {
    padding: 18px 16px 18px 58px;
  }

  .stareha-first-guide .stareha-guide-steps__cta {
    margin-top: 20px;
  }

  .stareha-first-guide .stareha-guide-steps__cta a {
    width: 100%;
    min-height: 52px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .stareha-first-guide .stareha-guide-help-links a {
    display: grid;
    min-height: 150px;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 14px;
    align-content: center;
    justify-items: start;
    padding: 14px 18px;
    text-align: left;
  }

  .stareha-first-guide .stareha-guide-help-icon {
    width: 52px;
    height: 52px;
    grid-row: 1 / 3;
    margin: 0;
  }

  .stareha-first-guide
    .stareha-guide-help-links
    a
    > span:not(.stareha-guide-help-icon):not(.stareha-guide-help-button),
  .stareha-first-guide .stareha-guide-help-links small {
    grid-column: 2;
  }

  .stareha-first-guide .stareha-guide-help-button {
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: stretch;
    margin-top: 12px;
  }

  .stareha-first-guide .stareha-guide-closing {
    font-size: 0.875rem;
  }
}

@media (max-width: 600px) {
  .stareha-first-guide .stareha-guide-preparation-description,
  .stareha-first-guide .stareha-guide-step p,
  .stareha-first-guide .stareha-guide-safety-list li,
  .stareha-first-guide .stareha-guide-safety-note,
  .stareha-first-guide
    .stareha-guide-card--help
    .stareha-guide-card__intro,
  .stareha-first-guide .stareha-guide-help-links small {
    font-size: 16px;
    line-height: 1.7;
  }
}

@media (max-width: 360px) {
  .stareha-first-guide .stareha-first-guide__shell {
    width: calc(100vw - 24px);
  }

  .stareha-first-guide .stareha-guide-hero {
    padding-right: 16px;
    padding-left: 16px;
  }

  .stareha-first-guide .stareha-guide-card,
  .stareha-first-guide .stareha-guide-panel {
    padding-right: 15px;
    padding-left: 15px;
  }

  .stareha-first-guide .stareha-guide-step {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px;
    padding-right: 13px;
    padding-left: 51px;
  }

  .stareha-first-guide .stareha-guide-step__number {
    top: 14px;
    left: 11px;
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 1.125rem;
  }

  .stareha-first-guide .stareha-guide-step__icon {
    width: 48px;
    height: 48px;
    padding: 5px;
  }
}
