.beginner-guide-page {
  background: #fffdf8;
  color: #333;
}

.beginner-guide-hero {
  padding: 56px 20px 42px;
  background: linear-gradient(180deg, #eef7fb 0%, #fffdf8 100%);
  text-align: center;
}

.beginner-guide-hero__inner {
  max-width: 960px;
  margin: 0 auto;
}

.beginner-guide-hero__label {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 16px;
  border-radius: 999px;
  background: #fff;
  color: #2f6f89;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(47, 111, 137, 0.1);
}

.beginner-guide-hero__title {
  margin: 0 0 18px;
  color: #2f6f89;
  font-size: 34px;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.beginner-guide-hero__lead {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 2;
}

.beginner-guide-content {
  padding: 44px 20px 80px;
}

.beginner-guide-content__inner {
  max-width: 1080px;
  margin: 0 auto;
}

/* タブ */
.beginner-guide-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 0;
}

.beginner-guide-tab {
  position: relative;
  display: block;
  min-height: 92px;
  padding: 18px 22px 18px 28px;
  border: 1px solid #eaded6;
  border-bottom: none;
  border-radius: 18px 18px 0 0;
  background: #fffaf6;
  color: #4b3329;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.beginner-guide-tab + .beginner-guide-tab {
  margin-left: 16px;
}

.beginner-guide-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 5px;
  border-radius: 999px;
  background: #1e9bef;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.beginner-guide-tab:hover {
  background: #fff;
}

.beginner-guide-tab.is-active {
  z-index: 2;
  background: #fff;
  border-color: #eaded6;
}

.beginner-guide-tab.is-active::before {
  opacity: 1;
}

/* 選択中タブと本文パネルをつなげる */
.beginner-guide-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #fff;
  z-index: 3;
}

.beginner-guide-tab__title {
  display: block;
  margin-bottom: 8px;
  color: #1e9bef;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.06em;
}

.beginner-guide-tab__lead {
  display: block;
  color: #4b3329;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

/* パネル */
.beginner-guide-panels {
  padding: 34px;
  border: 1px solid #eaded6;
  border-radius: 0 0 24px 24px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(76, 51, 41, 0.07);
}

.beginner-guide-panel[hidden] {
  display: none;
}

.beginner-guide-panel__head {
  margin-bottom: 28px;
}

.beginner-guide-panel__lead {
  margin: 0;
  color: #4b3329;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.9;
}

/* カード */
.beginner-guide-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.beginner-guide-cards--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
}

.beginner-guide-card {
  min-height: 220px;
  padding: 24px 22px;
  border: 1px solid #eaded6;
  border-radius: 18px;
  background: #fffaf6;
  box-shadow: 0 6px 16px rgba(76, 51, 41, 0.05);
}

.beginner-guide-card__icon {
  margin-bottom: 14px;
  font-size: 28px;
  line-height: 1;
}

.beginner-guide-card__title {
  margin: 0 0 10px;
  color: #4b3329;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

.beginner-guide-card__text {
  margin: 0 0 18px;
  color: #4b3329;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.9;
}

.beginner-guide-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #9b2f35;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.beginner-guide-card__link::after {
  content: "\2192";
}

.beginner-guide-card__link:hover {
  text-decoration: underline;
}

/* 手帳の説明 */
.beginner-guide-steps {
  display: grid;
  gap: 16px;
  max-width: 820px;
}

.beginner-guide-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid #eaded6;
  border-radius: 18px;
  background: #fffaf6;
}

.beginner-guide-step__num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1e9bef;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.beginner-guide-step__title {
  margin: 0 0 6px;
  color: #4b3329;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}

.beginner-guide-step__text {
  margin: 0;
  color: #4b3329;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.9;
}

.beginner-guide-note {
  max-width: 820px;
  margin: 24px 0 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff7f2;
  color: #66524b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
}

.beginner-guide-note p {
  margin: 0 0 8px;
}

.beginner-guide-note p:last-child {
  margin-bottom: 0;
}

.beginner-guide-panel__actions {
  margin-top: 26px;
}

.beginner-guide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  padding: 13px 28px;
  border-radius: 999px;
  background: #9b2f35;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(155, 47, 53, 0.2);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.beginner-guide-button:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

@media screen and (max-width: 900px) {
  .beginner-guide-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .beginner-guide-cards--two {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  .beginner-guide-hero {
    padding: 38px 18px 28px;
  }

  .beginner-guide-hero__label {
    margin-bottom: 10px;
    font-size: 13px;
  }

  .beginner-guide-hero__title {
    margin-bottom: 14px;
    font-size: 27px;
    line-height: 1.45;
  }

  .beginner-guide-hero__lead {
    font-size: 14px;
    line-height: 1.9;
    text-align: left;
  }

  .beginner-guide-hero__lead br {
    display: none;
  }

  .beginner-guide-content {
    padding: 30px 14px 56px;
  }

  .beginner-guide-content__inner {
    max-width: 100%;
  }

  /* SPでもPCと同じようにタブとして見せる */
  .beginner-guide-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-bottom: 0;
  }

  .beginner-guide-tab {
    width: auto;
    min-height: 82px;
    padding: 13px 8px 12px 12px;
    border: 1px solid #eaded6;
    border-bottom: none;
    border-radius: 14px 14px 0 0;
    background: #fffaf6;
    text-align: left;
  }

  .beginner-guide-tab + .beginner-guide-tab {
    margin-left: 6px;
    margin-top: 0;
  }

  .beginner-guide-tab::before {
    left: 0;
    top: 13px;
    bottom: 13px;
    width: 4px;
  }

  .beginner-guide-tab.is-active {
    z-index: 2;
    border-color: #eaded6;
    background: #fff;
    box-shadow: none;
  }

  .beginner-guide-tab.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #fff;
    z-index: 3;
  }

  .beginner-guide-tab__title {
    margin-bottom: 5px;
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: 0.04em;
  }

  .beginner-guide-tab__lead {
    font-size: 11px;
    line-height: 1.45;
  }

  /* SPでもタブと本文をつなげる */
  .beginner-guide-panels {
    margin-top: 0;
    padding: 22px 16px;
    border: 1px solid #eaded6;
    border-radius: 0 0 18px 18px;
    background: #fff;
  }

  .beginner-guide-panel__head {
    margin-bottom: 20px;
  }

  .beginner-guide-panel__lead {
    font-size: 14px;
    line-height: 1.9;
  }

  .beginner-guide-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .beginner-guide-cards--two {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .beginner-guide-card {
    min-height: auto;
    padding: 20px 18px;
    border-radius: 16px;
  }

  .beginner-guide-card__icon {
    margin-bottom: 10px;
    font-size: 26px;
  }

  .beginner-guide-card__title {
    margin-bottom: 8px;
    font-size: 17px;
    line-height: 1.55;
  }

  .beginner-guide-card__text {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.85;
  }

  .beginner-guide-card__link {
    font-size: 14px;
  }

  .beginner-guide-steps {
    gap: 14px;
    max-width: 100%;
  }

  .beginner-guide-step {
    grid-template-columns: 36px 1fr;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
  }

  .beginner-guide-step__num {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .beginner-guide-step__title {
    margin-bottom: 5px;
    font-size: 16px;
    line-height: 1.55;
  }

  .beginner-guide-step__text {
    font-size: 14px;
    line-height: 1.85;
  }

  .beginner-guide-note {
    margin-top: 18px;
    padding: 14px 15px;
    font-size: 12px;
    line-height: 1.8;
  }

  .beginner-guide-panel__actions {
    margin-top: 22px;
    text-align: center;
  }

  .beginner-guide-button {
    width: 100%;
    max-width: 280px;
    min-width: 0;
    padding: 13px 22px;
    font-size: 14px;
  }
}
