/* MyRoom student guide — ported from Mypage NetEnglish myroomguide */

.myroom-guide-page .myroom-guide {
  margin-bottom: 0;
}

.myroom-guide-page #container {
  padding-bottom: 0 !important;
}

.myroom-guide-page .free-trial-cta {
  margin-top: 0;
}

.myroom-guide {
  --blue-1: #0eadd9;
  --blue-2: #009fd9;
  --blue-3: #0076be;
  --bg-light: #e8f0f8;
  --bg-light-2: #d0e8f7;
  --bg-panel: #f6f6f6;
  --bg-card: #ffffff;
  --ink: #1c2b36;
  --ink-soft: #5b6b78;
  --danger: #e0473e;
  --shadow: 0 6px 18px rgba(1, 118, 190, 0.1);
  --radius: 14px;

  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-light) 0%, #ffffff 260px, #ffffff 100%);
}

.myroom-guide a {
  color: var(--blue-3);
}

.myroom-guide .hero {
  background: linear-gradient(120deg, var(--blue-3) 0%, var(--blue-2) 55%, var(--blue-1) 100%);
  color: #fff;
  padding: 24px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.myroom-guide .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.14), transparent 45%);
  pointer-events: none;
}

.myroom-guide .hero-inner {
  position: relative;
  z-index: 1;
}

.myroom-guide .hero .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.16);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  margin: 0 auto;
}

.myroom-guide .hero h1 {
  margin: 14px 0 8px;
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.25;
}

.myroom-guide .hero p {
  margin: 0 auto;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.65;
  opacity: 0.95;
}

.myroom-guide .toc {
  margin: -30px auto 40px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 22px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
}

.myroom-guide .toc a {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue-3);
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--bg-light);
  white-space: nowrap;
}

.myroom-guide .toc a:hover {
  background: var(--bg-light-2);
}

.myroom-guide .guide-body {
  padding-bottom: 16px;
}

.myroom-guide section {
  margin-bottom: 52px;
  scroll-margin-top: 24px;
}

.myroom-guide .guide-body > section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.myroom-guide .section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  margin-bottom: 6px;
  color: var(--blue-3);
  font-weight: 700;
  line-height: 1.35;
}

.myroom-guide .section-title .num {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue-3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}

.myroom-guide p.lead {
  color: var(--ink-soft);
  margin: 6px 0 20px 46px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
}

.myroom-guide p.lead.lead-flush {
  margin-left: 0;
}

.myroom-guide .sub-title {
  color: var(--blue-3);
  font-size: 16px;
  font-weight: 700;
  margin: 34px 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.myroom-guide .sub-title svg {
  width: 18px;
  height: 18px;
  stroke: var(--blue-3);
  flex: none;
}

.myroom-guide .g-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
}

.myroom-guide .flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  align-items: stretch;
}

.myroom-guide .flow-step {
  background: var(--bg-card);
  border: 2px solid var(--bg-light-2);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  transition: transform 0.15s, border-color 0.15s;
}

.myroom-guide .flow-step:hover {
  transform: translateY(-3px);
  border-color: var(--blue-1);
  text-decoration: none;
  color: var(--ink);
}

.myroom-guide .flow-step .icon-wrap {
  width: 46px;
  height: 46px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.myroom-guide .flow-step svg {
  width: 24px;
  height: 24px;
  stroke: var(--blue-3);
}

.myroom-guide .flow-step .label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  display: block;
}

@media (min-width: 720px) {
  .myroom-guide .flow {
    position: relative;
  }

  .myroom-guide .flow::before {
    content: "";
    position: absolute;
    top: 23px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--blue-1) 0 8px, transparent 8px 14px);
    z-index: 0;
  }

  .myroom-guide .flow-step {
    z-index: 1;
  }
}

@media (max-width: 719px) {
  .myroom-guide .flow {
    grid-template-columns: 1fr 1fr;
  }

  .myroom-guide p.lead {
    margin-left: 0;
  }
}

.myroom-guide .mock {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e3ecf3;
  background: var(--bg-card);
  margin: 0;
}

.myroom-guide .mock-bar {
  background: #eef4f9;
  padding: 8px 12px;
  display: flex;
  gap: 6px;
  align-items: center;
  border-bottom: 1px solid #e3ecf3;
}

.myroom-guide .mock-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c9d6e0;
  display: inline-block;
}

.myroom-guide .mock img.mock-shot {
  display: block;
  width: 100%;
  height: auto;
  background: var(--bg-panel);
  min-height: 120px;
}

.myroom-guide figcaption {
  font-size: 12.5px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 8px;
  padding: 0 10px 8px;
  font-style: italic;
}

.myroom-guide .two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: center;
}

@media (max-width: 720px) {
  .myroom-guide .two-col {
    grid-template-columns: 1fr;
  }
}

.myroom-guide ul.notes {
  margin: 16px 0 0;
  padding-left: 0;
  list-style: none;
}

.myroom-guide ul.notes li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 14.5px;
  line-height: 1.5;
}

.myroom-guide ul.notes li .dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-1);
}

.myroom-guide .g-callout {
  background: var(--bg-light);
  border-left: 4px solid var(--blue-2);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 14px;
}

.myroom-guide .g-callout.warn {
  background: #fdecea;
  border-left-color: var(--danger);
}

.myroom-guide .g-callout strong {
  color: var(--blue-3);
}

.myroom-guide .g-callout.warn strong {
  color: var(--danger);
}

.myroom-guide .legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.myroom-guide .legend-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--bg-panel);
  border-radius: 10px;
  padding: 10px 12px;
}

.myroom-guide .legend-item .icon-wrap {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.myroom-guide .legend-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--blue-3);
}

.myroom-guide .legend-item .t {
  font-size: 13px;
  font-weight: 700;
}

.myroom-guide .legend-item .d {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 1px;
  line-height: 1.4;
}

/* ============================================================
   MyRoom 生徒用ガイド — 追加分
   既存トークン（--blue-*, --bg-*, --ink*, --radius, --shadow）のみ使用。
   ============================================================ */

/* FAQ アコーディオン */
.myroom-guide .faq-list {
  margin-top: 18px;
}

.myroom-guide .faq-item {
  background: var(--bg-card);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 0 18px;
  margin-bottom: 10px;
}

.myroom-guide .faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--blue-3);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.myroom-guide .faq-item summary::-webkit-details-marker {
  display: none;
}

.myroom-guide .faq-item summary::before {
  content: "Q";
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--blue-3);
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  margin-top: 1px;
}

.myroom-guide .faq-item[open] summary {
  border-bottom: 1px solid var(--bg-light);
}

.myroom-guide .faq-body {
  padding: 12px 0 14px 30px;
}

.myroom-guide .faq-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* section-title の .num にアイコンを入れる場合（FAQセクション） */
.myroom-guide .section-title .num svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff;
}

/* キーボード操作時のフォーカス可視化 */
.myroom-guide a:focus-visible,
.myroom-guide summary:focus-visible {
  outline: 3px solid var(--blue-1);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .myroom-guide .flow-step {
    transition: none;
  }
}
