/* =======================================================
   Google Fonts - Warm Beauty for Nokaso
======================================================= */

@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Libre+Caslon+Display&family=Noto+Sans+JP:wght@500&family=Noto+Serif+JP:wght@400;500;600;700&family=Poppins:wght@500&display=swap");

/* =======================================================
   Design Tokens / CSS Variables
======================================================= */

:root {
  /* Fonts */
  --wb-font-jp: "Noto Serif JP", serif;
  --wb-font-jp-sans: "Noto Sans JP", sans-serif;
  --wb-font-title: "Libre Caslon Display", serif;
  --wb-font-latin: "Libre Baskerville", serif;
  --wb-font-poppins: "Poppins", sans-serif;

  /* Colors */
  --wb-color-text: #6a5f55;
  --wb-color-black: #000000;
  --wb-color-white: #ffffff;
  --wb-color-title: #a88b62;
  --wb-color-accent: #b09064;
  --wb-color-soft-gold: #a38559;
  --wb-color-green: #b5bda7;
  --wb-color-bg-light: #ede9e5;
  --wb-color-bg-soft: #f1e9dc;
  --wb-color-bg-warm: #d9c8b2;
  --wb-color-line: #c9b79b;

  /* Layout */
  --wb-container-pad-x: 16px;
}

/* =======================================================
   Base - Mobile First
======================================================= */
.wb-school-main {
  overflow-x: hidden;
  background: var(--wb-color-bg-light);
  color: var(--wb-color-text);
  font-family: var(--wb-font-jp);
  font-size: 15px;
  line-height: 1.9;
  overflow-x: clip;
  overflow-y: clip;
}

.wb-school-inner {
  max-width: 1249px;
  margin: 0 auto;
  padding: 0 var(--wb-container-pad-x);
}

/* =======================================================
   Hero
======================================================= */

.wb-school-hero {
  position: relative;
  width: 100%;
  height: clamp(300px, 46.875vw, 675px);
  overflow: hidden;
}

.wb-school-hero-img {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.wb-school-hero-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* =======================================================
   Intro / Title Section
======================================================= */

.wb-school-topbg {
  position: relative;
  overflow: hidden;
}

.wb-school-topbg > .wb-school-hero {
  position: relative;
  z-index: 2;
}

.wb-school-topbg .wb-school-intro {
  position: relative;
  z-index: 1;
  background: transparent;
}

.wb-school-intro {
  padding: 64px 16px 48px;
  text-align: center;
}

.wb-school-intro-inner {
  position: relative;
  z-index: 1;
  max-width: 1249px;
  margin: 0 auto;
}

.wb-school-bg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.wb-school-bg img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.3;
}

.wb-school-title {
  margin: 0;
  color: var(--wb-color-title);
  font-family: var(--wb-font-title);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.45;
}

.wb-school-subtitle {
  margin: 6px 0 32px;
  color: var(--wb-color-black);
  font-family: var(--wb-font-jp);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
}

.wb-school-heading {
  position: relative;
  margin: 0 0 24px;
  color: var(--wb-color-black);
  font-family: var(--wb-font-jp);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.75;
  text-align: center;
  letter-spacing: 0.05em;
}

.wb-school-heading > br {
  display: block;
}

.wb-school-lead {
  max-width: 738px;
  margin: 0 auto 32px;
  color: var(--wb-color-black);
  font-family: var(--wb-font-jp);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.95;
  text-align: left;
  letter-spacing: 0.05em;
}

.wb-school-lead > br {
  display: none;
}

.wb-school-intro-img {
  max-width: 600px;
  margin: 0 auto;
}

.wb-school-intro-img img {
  display: block;
  width: 100%;
  height: auto;
}

/* =======================================================
   Section Common Title
======================================================= */

.wb-school-section-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1249px;
  margin: 0 auto;
  padding: 32px 16px;
  text-align: center;
}

.wb-school-section-en {
  margin: 0;
  color: var(--wb-color-title);
  font-family: var(--wb-font-title);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.45;
}

.wb-school-section-jp {
  margin: 6px 0 0;
  color: var(--wb-color-black);
  font-family: var(--wb-font-jp);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.15em;
}

/* =======================================================
   Instructor Section
======================================================= */

.wb-school-instructor {
  padding: 0 16px 64px;
  background: var(--wb-color-bg-light);
}

.wb-school-instructor-inner {
  max-width: 1249px;
  margin: 40px auto;
}

.wb-school-instructor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
}

.wb-school-instructor-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 28px;
  text-align: left;
}

.wb-school-instructor-photo {
  width: 100%;
  max-width: 394px;
  height: auto;
  aspect-ratio: 394 / 350;
  margin: 0 auto;
}

.wb-school-instructor-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.wb-school-instructor-name {
  margin: 0 0 14px;
  color: var(--wb-color-black);
  font-family: var(--wb-font-jp);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  letter-spacing: 0.05em;
}

.wb-school-instructor-role {
  margin: 0 0 14px;
  color: var(--wb-color-black);
  font-family: var(--wb-font-jp);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  letter-spacing: 0.05em;
}

.wb-school-instructor-bio,
.wb-school-instructor-quote {
  max-width: 100%;
  margin: 0;
  color: var(--wb-color-black);
  font-family: var(--wb-font-jp);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.95;
  text-align: left;
  letter-spacing: 0.05em;
}

.wb-school-instructor-bio {
  margin-bottom: 12px;
}

.wb-school-instructor-quote {
  padding: 0;
  font-style: normal;
}

/* =======================================================
   Courses Section
======================================================= */

.wb-school-courses {
  padding: 0 16px 64px;
  background: var(--wb-color-bg-light);
}

.wb-school-courses-inner {
  max-width: 1249px;
  margin: 0 auto;
}

.wb-school-container {
  max-width: 928px;
  margin: 0 auto;
}

.wb-school-category {
  margin: 0 0 56px;
}

.wb-school-course-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.wb-school-course-card {
  padding: 0;
  background: transparent;
}

.wb-school-course-name {
  margin: 0 0 8px;
  color: var(--wb-color-black);
  font-family: var(--wb-font-jp);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.wb-school-course-meta {
  margin: 0;
  color: var(--wb-color-black);
  font-family: var(--wb-font-jp);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.wb-school-course-note {
  margin: 0;
  color: var(--wb-color-black);
  font-family: var(--wb-font-jp);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.wb-school-course-desc {
  margin: 43px 0;
  color: var(--wb-color-black);
  font-family: var(--wb-font-jp);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0.05em;
}

/* =======================================================
   Course Rows
======================================================= */

.wb-school-course-rows {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 14px 0 0;
  overflow: hidden;
  border: 1px solid var(--wb-color-black);
}

.wb-school-course-row {
  display: flex;
  align-items: stretch;
  min-height: 88px;
  border-bottom: 1px solid var(--wb-color-black);
}

.wb-school-course-row:last-child {
  border-bottom: 0;
}

.wb-school-row-label {
  display: flex;
  flex: 0 0 92px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-right: 1px solid var(--wb-color-black);
  background: var(--wb-color-green);
  color: var(--wb-color-black);
  font-family: var(--wb-font-jp);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.05em;
}

.wb-school-row-content {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
  background: var(--wb-color-bg-soft);
  color: var(--wb-color-black);
  font-family: var(--wb-font-jp);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.03em;
}

/* =======================================================
   Course Images
======================================================= */
.wb-school-facial-img {
 flex: 1;
 width: 100%;
 height: 336px;
}

.wb-school-course-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wb-school-textbook-label {
  display: block;
  margin: 8px 0 0;
  color: var(--wb-color-black);
  font-family: var(--wb-font-jp);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* =======================================================
   Course Wide Card
======================================================= */

.wb-school-course-card--wide {
  margin: 52px 0 0;
  padding: 0;
}

.wb-school-course-wide-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wb-school-course-wide-imgs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wb-school-course-wide-img-inner {
  position: relative;
}

/* =======================================================
   Textbook Layout - Mobile
======================================================= */

.wb-school-course-wide-body:has(.wb-school-textbook-label) {
  flex-direction: column;
  gap: 22px;
}

.wb-school-course-wide-imgs:has(.wb-school-textbook-label) {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 0;
}

.wb-school-course-wide-img-inner:has(.wb-school-textbook-label) {
  position: relative;
  width: 273px;
  max-width: calc(100% - 32px);
  height: 109px;
  margin: 58px 0 0 16px;
  background: var(--wb-color-green);
}

.wb-school-course-wide-img-inner:has(.wb-school-textbook-label) > .wb-school-course-img {
  position: absolute;
  top: -58px;
  left: 30px;
  width: 104px;
  height: auto;
}

.wb-school-course-wide-img-inner:has(.wb-school-textbook-label) .wb-school-textbook-label {
  position: absolute;
  top: 50%;
  left: 144px;
  margin: 0;
  font-size: 13px;
  white-space: nowrap;
  transform: translateY(-50%);
}

.wb-school-course-wide-imgs:has(.wb-school-textbook-label) > .wb-school-course-img--large {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* =======================================================
   CTA Button
======================================================= */

.wb-school-cta-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.wb-school-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 410px;
  min-height: 58px;
  padding: 10px 36px;
  border: 1px solid var(--wb-color-title);
  background: var(--wb-color-title);
  color: var(--wb-color-white) !important;
  font-family: var(--wb-font-jp-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.wb-school-btn-primary > p {
  margin: 0;
}

.wb-school-btn-primary::after {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 20px;
  height: 23px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='23' viewBox='0 0 20 23' fill='none'><path d='M18.8326 9.87201L7.76562 20.9141L8.93189 22.0777L19.9989 11.0357L18.8326 9.87201Z' fill='white'/><path d='M8.93189 0.000423778L7.76562 1.16406L18.8326 12.2061L19.9989 11.0425L8.93189 0.000423778Z' fill='white'/><path d='M18.7193 10.2188H0V11.8656H18.7193V10.2188Z' fill='white'/></svg>") center / contain no-repeat;
  transition: transform 0.25s ease;
}

.wb-school-btn-primary:hover,
.wb-school-btn-primary:focus,
.wb-school-btn-primary:active {
  border-color: var(--wb-color-title) !important;
  background: var(--wb-color-title) !important;
  color: var(--wb-color-white) !important;
  text-decoration: none;
  opacity: 0.85;
}

.wb-school-btn-primary-on {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 410px;
  min-height: 58px;
  padding: 10px 36px;
  background: var(--wb-color-black);
  color: var(--wb-color-white) !important;
  font-family: var(--wb-font-jp);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.wb-school-btn-primary-on:hover,
.wb-school-btn-primary-on:focus,
.wb-school-btn-primary-on:active {
  background: var(--wb-color-black) !important;
  color: var(--wb-color-white) !important;
  text-decoration: none;
  opacity: 0.85;
}

.wb-school-btn-primary-on > p {
  margin: 0;
}

.wb-school-btn-primary-on > p > br {
  display: none;
}

/* =======================================================
   Voice / Testimonials Section
======================================================= */

.wb-school-voice {
  padding: 0 16px 64px;
  background: var(--wb-color-bg-soft);
}

.wb-school-voice-inner {
  display: flex;
  flex-direction: column;
  gap: 44px;
  max-width: 1249px;
  margin: 40px auto;
}

.wb-school-voice-card {
  width: 100%;
  max-width: 607px;
  margin: 0 auto;
  padding: 0;
}

.wb-school-voice-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 14px;
}

.wb-school-voice-photo {
  flex-shrink: 0;
  width: 132px;
  height: 124px;
  overflow: hidden;
}

.wb-school-voice-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.wb-school-voice-profile {
  flex: 1 1 0%;
  min-width: 0;
}

.wb-school-voice-name {
  margin: 0 0 10px;
  color: var(--wb-color-black);
  font-family: var(--wb-font-jp);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.wb-school-voice-info {
  margin: 0;
  color: var(--wb-color-black);
  font-family: var(--wb-font-jp);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.wb-school-voice-title {
  margin: 0 0 14px;
  color: var(--wb-color-black);
  font-family: var(--wb-font-jp);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.wb-school-voice-text {
  margin: 0;
  color: var(--wb-color-black);
  font-family: var(--wb-font-jp);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0.05em;
}

/* =======================================================
   Divider Line
======================================================= */

.wb-school-category > .wb-school-section-title-wrap,
.wb-school-voice > .wb-school-section-title-wrap {
  border-top: 1px solid var(--wb-color-black);
  box-sizing: border-box;
}

.wb-school-voice > .wb-school-section-title-wrap {
  max-width: 1249px;
  margin-right: auto;
  margin-left: auto;
}

/* =======================================================
   Responsive - >= 749px
======================================================= */

@media (min-width: 749px) {
  .wb-school-inner {
    padding: 0 20px;
  }

  .wb-school-intro {
    padding: 120px 20px 68px;
  }

  .wb-school-title {
    font-size: 48px;
    line-height: 1.5;
  }

  .wb-school-subtitle {
    margin-bottom: 48px;
    font-size: 14px;
  }

  .wb-school-heading {
    margin-bottom: 32px;
    font-size: 24px;
  }

  .wb-school-heading > br {
    display: block;
  }

  .wb-school-heading > br:nth-of-type(2) {
    display: none;
  }

  .wb-school-lead {
    margin-bottom: 48px;
    font-size: 16px;
    text-align: center;
  }

  .wb-school-lead > br {
    display: block;
  }

  .wb-school-intro-img {
    max-width: 800px;
  }

  .wb-school-section-title-wrap {
    padding: 120px 0 60px;
  }

  .wb-school-section-en {
    font-size: 48px;
  }

  .wb-school-section-jp {
    font-size: 16px;
  }

  .wb-school-instructor-grid {
    gap: 48px;
  }

  .wb-school-instructor-card {
    gap: 34px;
  }

  .wb-school-courses {
    padding: 0 20px 84px;
  }

  .wb-school-category {
    margin-bottom: 64px;
  }

  .wb-school-course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto auto auto;
    column-gap: 34px;
    row-gap: 0;
  }

  .wb-school-course-grid > .wb-school-course-card {
    display: grid;
    grid-row: 1 / span 6;
    grid-template-columns: 100%;
    grid-template-rows: subgrid;
  }

  .wb-school-course-grid > .wb-school-course-card > .wb-school-course-rows {
    display: grid;
    grid-row: 5 / span 2;
    grid-template-rows: subgrid;
  }

  .wb-school-course-grid > .wb-school-course-card > .wb-school-course-rows > .wb-school-course-row:nth-child(1) {
    grid-row: 1;
  }

  .wb-school-course-grid > .wb-school-course-card > .wb-school-course-rows > .wb-school-course-row:nth-child(2) {
    grid-row: 2;
  }

  .wb-school-row-label {
    flex: 0 0 116px;
    padding: 13px 14px;
  }

  .wb-school-row-content {
    padding: 13px 14px;
  }

  .wb-school-course-row {
    min-height: 92px;
  }

  .wb-school-course-name {
    font-size: 24px;
  }

  .wb-school-course-meta {
    font-size: 20px;
  }

  .wb-school-course-imgs {
    grid-template-columns: 1fr 1fr;
  }

  .wb-school-course-card--wide {
    margin-top: 64px;
  }

  .wb-school-course-wide-body {
    flex-direction: row;
    align-items: stretch;
    gap: 34px;
  }

  .wb-school-course-wide-text {
    flex: 1;
  }

  .wb-school-course-wide-imgs {
    flex: 1;
    height: 336px;
  }

  .wb-school-course-wide-body:has(.wb-school-textbook-label) {
    position: relative;
    flex-direction: row;
    gap: 40px;
  }

  .wb-school-course-wide-body:has(.wb-school-textbook-label) .wb-school-course-wide-text {
    flex: none;
    max-width: 447px;
  }

  .wb-school-course-wide-body:has(.wb-school-textbook-label) > .wb-school-course-wide-text {
    width: 448px;
    max-width: 448px;
  }

  .wb-school-course-wide-imgs:has(.wb-school-textbook-label) {
    display: block;
    margin: 0;
  }
  
  .wb-school-course-wide-img-inner:has(.wb-school-textbook-label) {
    position: relative;
    flex: 0 0 390px;
    width: 390px;
    height: 155px;
    margin: 140px 0 0;
    background: var(--wb-color-green);
  }

  .wb-school-course-wide-img-inner:has(.wb-school-textbook-label) > .wb-school-course-img {
    position: absolute;
    top: auto;
    bottom: 35px;
    left: 50px;
    width: 149px;
    height: auto;
  }

  .wb-school-course-wide-img-inner:has(.wb-school-textbook-label) .wb-school-textbook-label {
    position: absolute;
    top: calc(50% + 18px);
    left: 250px;
    margin: 0;
    white-space: nowrap;
    transform: translateY(-50%);
  }

  .wb-school-btn-primary {
    font-size: 16px;
  }
  
  .wb-school-btn-primary-on {
    font-size: 30px;
  }

  .wb-school-voice {
    padding: 0 20px 76px;
  }

  .wb-school-voice-inner {
    gap: 52px;
  }

  .wb-school-voice-head {
    gap: 20px;
    margin: 0 0 20px;
  }

  .wb-school-voice-photo {
    width: 260px;
    height: 260px;
  }

  .wb-school-voice-name {
    font-size: 23px;
  }

  .wb-school-voice-info {
    font-size: 16px;
  }

  .wb-school-voice-title {
    font-size: 23px;
  }

  .wb-school-voice-text {
    font-size: 16px;
  }
}

/* =======================================================
   Responsive - >= 1024px
======================================================= */

@media (min-width: 1024px) {
  .wb-school-instructor-grid {
    grid-template-columns: 394px 394px;
    justify-content: center;
    align-items: start;
    column-gap: 32px;
    row-gap: 52px;
  }

  .wb-school-instructor-card:first-child {
    grid-column: 1 / -1;
    max-width: 394px;
    margin: 0 auto;
  }

  .wb-school-instructor-photo {
    width: 100%;
    max-width: 394px;
    height: auto;
    aspect-ratio: 394 / 350;
  }

  .wb-school-instructor-bio,
  .wb-school-instructor-quote {
    max-width: 100%;
  }

  .wb-school-courses {
    padding-bottom: 92px;
  }

  .wb-school-voice {
    padding-bottom: 84px;
  }

  .wb-school-voice-photo {
    width: 290px;
    height: 290px;
  }
}