@charset "utf-8";

#page_id_learn_show #footer {
  margin-top: 0;
}

.learn-page {
  --learn-ink: #323135;
  --learn-muted: #646369;
  --learn-line: #cbcace;
  --learn-soft: #fafafa;
  --learn-cream: #ffe6bd;
  --learn-cream-light: #fff2db;
  --learn-gray-soft: #f2f2f3;
  --learn-primary: #f99f06;
  --learn-primary-dark: #d98200;
  --learn-sky: #cef;
  --learn-blue: #08c;
  --learn-blue-dark: #005580;
  --learn-symbol-pink: #fec8c8;
  --learn-symbol-orange: #ffdea3;
  --learn-symbol-lime: #d6f1a2;
  --learn-symbol-green: #bcf0bc;
  --learn-symbol-seagreen: #b2f0dc;
  --learn-symbol-blue: #b0e0f8;
  --learn-symbol-purple: #c1c1f6;
  --learn-symbol-violet: #e2bcf5;
  --learn-symbol-coral: #f5bce2;
  --learn-symbol-gray: #cbcace;
  --learn-shadow: 0 24px 70px rgba(50, 49, 53, .12);
  --learn-max-width: 1024px;
  color: var(--learn-ink);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  line-height: 1.6;
}

.learn-page * {
  box-sizing: border-box;
}

.learn-page :where(h1, h2, h3, p, ol, ul) {
  margin: 0;
}

.learn-page :where(section) {
  margin-bottom: 0;
}

.learn-page :where(p, li) {
  line-height: 1.6;
}

.learn-page h1,
.learn-page h2,
.learn-page h3 {
  font-size: 16px;
  line-height: 1.4;
}

.learn-page :where(ul, ol) {
  padding: 0;
  list-style: none;
}

.learn-page img {
  display: block;
  max-width: 100%;
}

.learn-page a {
  color: inherit;
  text-decoration: none;
}

.learn-container,
.learn-narrow-container {
  width: calc(100% - 32px);
  margin-right: auto;
  margin-left: auto;
}

.learn-container {
  max-width: var(--learn-max-width);
}

.learn-narrow-container {
  max-width: 900px;
}

.learn-alert {
  padding: 16px 0;
  background: var(--learn-cream);
}

.learn-sp-break {
  display: inline;
}

.learn-button {
  display: inline-flex;
  box-sizing: border-box;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--learn-line);
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
  color: var(--learn-ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
}

.learn-button:hover,
.learn-button:focus {
  color: var(--learn-muted);
  text-decoration: none;
}

.learn-button-primary {
  border-color: var(--learn-blue);
  background: var(--learn-blue);
  color: #fff;
}

.learn-button-primary:hover,
.learn-button-primary:focus {
  background: hsl(200, 100%, 45%);
  color: #fff;
}

.learn-page .di-btn {
  font-size: 14px;
}

.learn-breadcrumb {
  padding-top: 16px;
  background: var(--learn-cream);
}

.learn-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: var(--learn-muted);
  font-size: 12px;
  font-weight: bold;
}

.learn-breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.learn-breadcrumb li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--learn-line);
}

.learn-breadcrumb a:hover {
  color: var(--learn-primary-dark);
}

.learn-breadcrumb [aria-current="page"] {
  color: var(--learn-ink);
}

.learn-hero {
  padding: 32px 0;
  background: var(--learn-cream);
}

.learn-pill {
  width: fit-content;
  margin-right: auto;
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--learn-primary-dark);
  font-size: 12px;
  font-weight: 800;
}

.learn-hero h1 {
  margin-top: 16px;
  font-size: 32px;
  text-align: center;
}

.learn-hero h1 span {
  color: var(--learn-primary-dark);
}

.learn-lead {
  margin-top: 24px;
  color: var(--learn-muted);
  font-size: 16px;
}

.learn-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.learn-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 24px;
}

.learn-summary li {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 4px;
  background: #fff;
}

.learn-summary span {
  font-size: 13px;
}

.learn-summary strong {
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.learn-hero-visual {
  margin-top: 24px;
}

.learn-section {
  padding: 48px 0;
}

.learn-section-header {
  text-align: center;
}

.learn-section-header p {
  color: var(--learn-primary-dark);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0;
}

.learn-section-header h2 {
  margin-top: 8px;
  font-size: 24px;
}

.learn-section-header-left {
  text-align: center;
}

.learn-overview-body,
.learn-roadmap,
.learn-faq-list,
.learn-cta-body {
  margin-top: 32px;
}

.learn-overview-copy p + p {
  margin-top: 16px;
}

.learn-overview-copy p {
  font-size: 16px;
}

.learn-feature-list {
  margin-top: 32px;
}

.learn-feature-list article + article {
  margin-top: 24px;
}

.learn-feature-list article {
  display: grid;
  grid-template-areas:
    "feature-heading"
    "feature-image"
    "feature-text";
  gap: 16px;
}

.learn-feature-list img {
  grid-area: feature-image;
  border-radius: 8px;
}

.learn-feature-description {
  display: contents;
}

.learn-feature-description header {
  grid-area: feature-heading;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px;
  align-items: center;
}

.learn-feature-description header span {
  width: 32px;
  height: 32px;
  border-radius: 2px;
  background: var(--learn-primary);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  line-height: 32px;
  text-align: center;
}

.learn-feature-description h3 {
  font-size: 18px;
}

.learn-feature-description p {
  grid-area: feature-text;
  font-size: 16px;
}

.learn-roadmap-section,
.learn-faq-section {
  background: var(--learn-soft);
}

.learn-roadmap {
  counter-reset: learn-section-number;
}

.learn-roadmap article {
  position: relative;
  margin-left: 14px;
  padding-bottom: 24px;
  padding-left: 32px;
  border-left: 4px dotted var(--learn-primary);
  counter-increment: learn-section-number;
}

.learn-roadmap article::before {
  position: absolute;
  left: -18px;
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 2px;
  background: var(--learn-primary);
  color: #fff;
  content: counter(learn-section-number);
  font-size: 16px;
  font-weight: bold;
  line-height: 32px;
  text-align: center;
}

.learn-roadmap article:last-child {
  padding-bottom: 0;
  border-left: none;
}

.learn-roadmap-card {
  position: relative;
  padding: 24px;
  border-radius: 2px;
  background: #fff;
  box-shadow: rgba(0, 0, 0, .1) 0 2px 4px;
}

.learn-premium-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-block;
  width: 64px;
  height: 16px;
  padding: 0 4px;
  border-radius: 2px;
  background: var(--learn-primary);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  line-height: 16px;
  text-align: center;
}

.learn-roadmap-body h3 {
  padding-top: 4px;
  font-size: 18px;
}

.learn-roadmap-body h3 + p {
  margin-top: 8px;
  font-size: 14px;
}

.learn-roadmap-body h3 + p span {
  display: inline-block;
  padding: 0 3px;
  border-radius: 2px;
  background: #eee;
  color: #666;
  font-family: monospace;
}

.learn-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  font-size: 11px;
  line-height: 1.4;
}

.learn-topics li {
  max-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--learn-cream-light);
  color: var(--learn-primary-dark);
  font-weight: 800;
  line-height: 1.4;
}

.learn-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: var(--learn-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.learn-meta span {
  display: inline-flex;
  height: 26px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(203, 202, 206, .65);
  border-radius: 999px;
  background: #fff;
}

.learn-roadmap-footer {
  display: grid;
  grid-template-rows: auto auto;
  gap: 4px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 3px dotted var(--learn-gray-soft);
}

.learn-roadmap-footer a {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px;
  align-items: center;
  color: var(--learn-blue);
  font-size: 14px;
  font-weight: bold;
}

.learn-roadmap-footer a:hover {
  color: var(--learn-blue-dark);
  text-decoration: underline;
}

.learn-roadmap-footer img {
  border-radius: 50%;
  background: var(--learn-symbol-blue);
}

.learn-progress {
  display: flex;
  align-items: center;
}

.learn-progress-track {
  position: relative;
  flex: 1;
  height: 12px;
  border-radius: 6px;
  background-color: var(--learn-gray-soft);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .1) inset;
}

.learn-progress-bar {
  position: absolute;
  left: 0;
  width: 0;
  height: 100%;
  border-radius: 6px;
  background-color: #29a329;
}

.learn-progress span {
  display: inline-block;
  margin-left: 16px;
  font-size: 14px;
  font-weight: bold;
}

.learn-environment-panel > p {
  margin-top: 24px;
  font-size: 16px;
}

.learn-panel-actions {
  margin-top: 24px;
  text-align: center;
}

.learn-panel-actions a {
  display: flex;
  width: 100%;
}

.learn-panel-actions a + a {
  margin-top: 8px;
}

.learn-environment-layout > img {
  margin-top: 24px;
  border-radius: 8px;
}

.learn-faq-list {
  display: grid;
  gap: 16px;
}

.learn-faq-list article {
  padding: 24px;
  border: 2px solid var(--learn-gray-soft);
  border-radius: 8px;
  background: #fff;
}

.learn-faq-list p {
  margin-top: 16px;
  color: var(--learn-muted);
  font-size: 14px;
}

.learn-cta-section {
  background: var(--learn-sky);
}

.learn-cta-section .learn-section-header p {
  color: var(--learn-blue);
}

.learn-cta-body img {
  margin-right: auto;
  margin-left: auto;
}

.learn-cta-body p {
  margin-top: 24px;
  font-size: 16px;
}

.learn-cta-action {
  margin-top: 24px;
  text-align: center;
}

@media (min-width: 768px) {
  .learn-sp-break {
    display: none;
  }

  .learn-hero {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .learn-hero-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
  }

  .learn-pill {
    margin-left: 0;
  }

  .learn-hero h1 {
    font-size: 48px;
    text-align: left;
  }

  .learn-actions {
    justify-content: flex-start;
  }

  .learn-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .learn-summary li {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
  }

  .learn-hero-visual {
    margin-top: 64px;
  }

  .learn-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .learn-section-header p {
    font-size: 14px;
  }

  .learn-section-header h2 {
    font-size: 28px;
  }

  .learn-section-header-left {
    text-align: left;
  }

  .learn-overview-body,
  .learn-roadmap,
  .learn-faq-list,
  .learn-cta-body {
    margin-top: 48px;
  }

  .learn-feature-list article {
    display: grid;
    grid-template-areas: none;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
  }

  .learn-feature-list img {
    grid-area: auto;
  }

  .learn-feature-description {
    display: block;
    order: -1;
  }

  .learn-feature-description header {
    grid-area: auto;
    margin-top: 16px;
  }

  .learn-feature-description p {
    grid-area: auto;
    margin-top: 8px;
  }

  .learn-roadmap-footer {
    grid-template-columns: 240px 1fr;
    grid-template-rows: auto;
    gap: 16px;
  }

  .learn-environment-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
  }

  .learn-environment-panel {
    padding: 24px;
    border: 2px solid var(--learn-gray-soft);
    border-radius: 4px;
  }

  .learn-panel-actions {
    text-align: left;
  }

  .learn-environment-layout > img {
    margin-top: 0;
  }

  .learn-faq-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .learn-cta-body {
    text-align: center;
  }
}

@media (max-width: 420px) {
  .learn-actions {
    flex-direction: column;
  }

  .learn-button,
  .learn-actions .di-btn,
  .learn-cta-action .di-btn {
    width: 100%;
    white-space: normal;
  }
}

/* ===== レッスン一覧トップの言語別学習ガイドカード ===== */

.learn-guide {
  margin: 32px 0 0;
}

.learn-guide-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.learn-guide-card {
  display: block;
  border: 1px solid #cbcace;
  border-radius: 4px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.learn-guide-card:hover,
.learn-guide-card:focus {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  color: inherit;
  text-decoration: none;
  transform: translateY(-2px);
}

.learn-guide-card:hover .learn-guide-card-icon,
.learn-guide-card:focus .learn-guide-card-icon {
  transform: scale(1.04);
}

.learn-guide-card:hover .learn-guide-card-title,
.learn-guide-card:focus .learn-guide-card-title {
  color: #005580;
  text-decoration: underline;
}

.learn-guide-thumbnail {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
}

.learn-guide-thumbnail::before {
  position: absolute;
  width: 112px;
  height: 112px;
  background: url("/img/learn_guide/glow.png") center / contain no-repeat;
  content: "";
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.learn-guide-card:hover .learn-guide-thumbnail::before,
.learn-guide-card:focus .learn-guide-thumbnail::before {
  opacity: 0.85;
  transform: scale(1.06);
}

.learn-guide-thumbnail-orange {
  background: #ffdea3;
}

.learn-guide-thumbnail-blue {
  background: #b0e0f8;
}

.learn-guide-card-icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 56px;
  height: 56px;
  transition: transform 0.25s ease;
}

.learn-guide-card-body {
  padding: 16px;
}

.learn-guide-card-title {
  margin: 0 0 8px;
  color: #0088cc;
  font-size: 13px;
  font-weight: bold;
  line-height: 20px;
}

.learn-guide-card-text {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  color: #646369;
  font-size: 13px;
  line-height: 20px;
}

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

@media screen and (max-width: 480px) {
  .learn-guide-cards {
    grid-template-columns: 1fr;
  }
}
