/*
Theme Name: One Mile Station Member
Author: Jobs Inc.
Description: One Mile Station membership site theme.
Version: 0.1.7
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: oms-member
*/

:root {
  --base: #eefafa;
  --paper: rgba(255, 255, 255, 0.95);
  --white: #ffffff;
  --ink: #34383b;
  --muted: #5d777a;
  --line: #b8e0e1;
  --aqua: #94d9d7;
  --aqua-dark: #48b5b6;
  --aqua-deep: #2d8f94;
  --aqua-soft: #d9f4f3;
  --pink: #cf5b9a;
  --pink-dark: #b84586;
  --pink-soft: #f7d7e8;
  --shadow: 0 16px 34px rgba(43, 132, 139, 0.16);
  --leaf-pattern: url("assets/leaf-pattern-real.jpg");
  --sans: "Hiragino Maru Gothic ProN", "Yu Gothic", "Hiragino Sans", "Meiryo", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0 0 76px;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 10%, rgba(207, 91, 154, 0.13), transparent 17%),
    radial-gradient(circle at 88% 24%, rgba(148, 217, 215, 0.44), transparent 24%),
    linear-gradient(180deg, #ffffff, var(--base));
  font-family: var(--sans);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell,
.oms-page {
  width: min(460px, 100%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(460px, 100%);
  height: 76px;
  margin: 0 auto;
  padding: 14px 20px 12px;
  background: rgba(255, 253, 249, 0.94);
  border-bottom: 1px solid rgba(207, 232, 232, 0.9);
  backdrop-filter: blur(18px);
}

.brand-wordmark {
  position: relative;
  display: inline-block;
  color: var(--pink);
  font-family: "Segoe Script", "Bradley Hand", "Snell Roundhand", cursive;
  font-size: 30px;
  line-height: 1;
  white-space: nowrap;
  transform: rotate(-1.5deg);
}

.brand-wordmark::before {
  content: "";
  position: absolute;
  right: -8px;
  bottom: 2px;
  left: 18px;
  z-index: -1;
  height: 12px;
  background: rgba(148, 217, 215, 0.42);
  border-radius: 999px;
  transform: rotate(-1deg);
}

.menu-button {
  display: grid;
  gap: 5px;
  width: 40px;
  padding: 8px;
  background: transparent;
  border: 0;
}

.menu-button span {
  display: block;
  height: 2px;
  background: #60757a;
  border-radius: 999px;
}

.site-nav {
  position: absolute;
  top: 74px;
  right: 16px;
  left: 16px;
  display: none;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.site-nav.is-open {
  display: grid;
}

.site-nav a {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(184, 224, 225, 0.7);
}

.site-nav a:last-child {
  border-bottom: 0;
}

.oms-page {
  min-height: calc(100vh - 76px);
  padding: 0 18px 34px;
  background:
    var(--leaf-pattern) right -168px top 330px / 340px 232px no-repeat,
    var(--leaf-pattern) left -176px bottom 112px / 350px 238px no-repeat;
}

h1,
h2 {
  margin-top: 0;
  color: var(--pink);
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

h1 {
  margin-bottom: 14px;
  font-size: 34px;
}

h2 {
  margin-bottom: 6px;
  color: #3f7c81;
  font-size: 20px;
}

p {
  margin-top: 0;
  color: var(--muted);
}

.label {
  margin-bottom: 6px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.script {
  margin: 0 0 8px;
  color: rgba(207, 91, 154, 0.76);
  font-family: "Segoe Script", "Bradley Hand", cursive;
  font-size: 31px;
  line-height: 1.1;
  transform: rotate(-2deg);
}

.main-banner {
  margin: 0 -18px 18px;
  padding-top: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(217, 244, 243, 0.86));
}

.main-banner img,
.media-section img,
.hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

.top-action-card,
.login-card,
.message-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(43, 132, 139, 0.13);
}

.top-action-card {
  margin-bottom: 18px;
  border-radius: 24px;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--aqua), var(--aqua-dark));
  box-shadow: 0 10px 22px rgba(92, 174, 180, 0.24);
}

.button.ghost,
.button.google {
  color: var(--aqua-deep);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #9ccfd1;
}

.button span {
  font-size: 24px;
  line-height: 1;
}

.media-section {
  margin-bottom: 18px;
  padding: 20px;
  background: var(--white);
  border: 2px solid rgba(207, 91, 154, 0.16);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.media-section h2 {
  color: var(--pink);
  font-size: 24px;
}

.intro-card {
  margin-bottom: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(207, 232, 232, 0.92);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.login-visual {
  height: 180px;
  margin: 0 -18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(238, 250, 250, 0.82)),
    url("assets/main-banner.jpg");
  background-position: center;
  background-size: cover;
}

.login-card {
  position: relative;
  z-index: 2;
  margin-top: -58px;
  border-radius: 24px;
  text-align: center;
}

.login-card form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.login-card label:not(.check-row) span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.login-card input[type="email"],
.login-card input[type="password"],
.login-card input[type="text"] {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #cdbfba;
  border-radius: 8px;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 82px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  place-items: center;
  min-width: 66px;
  height: 36px;
  padding: 0;
  color: var(--aqua-deep);
  background: rgba(217, 244, 243, 0.88);
  border: 1px solid rgba(72, 181, 182, 0.28);
  border-radius: 999px;
  transform: translateY(-50%);
}

.password-toggle span {
  position: relative;
  display: block;
  width: 20px;
  height: 13px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
}

.password-toggle span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.password-toggle.is-visible span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  width: 28px;
  height: 2px;
  background: var(--pink);
  transform: rotate(-28deg);
}

.password-toggle em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.signup-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  color: var(--pink);
  background: #fff0f8;
  border: 1px solid rgba(207, 91, 154, 0.22);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.member-kv,
.content-hero,
.event-hero {
  margin: 0 -18px 22px;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid rgba(72, 181, 182, 0.35);
}

.member-kv__image,
.hero-image {
  position: relative;
  height: 178px;
  overflow: hidden;
  background: var(--aqua-soft);
}

.member-kv__image::after,
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.28));
}

.member-kv__image img,
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.member-kv__inner,
.hero-copy-card {
  position: relative;
  margin: -48px 18px 0;
  padding: 24px 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(184, 224, 225, 0.86);
  box-shadow: 0 14px 30px rgba(43, 132, 139, 0.13);
}

.member-kv__inner::before,
.hero-copy-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 8px;
  background: linear-gradient(180deg, var(--pink), var(--aqua-dark));
}

.home-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 14px;
}

.home-section-head p {
  margin: 0;
  color: var(--pink);
  font-family: "Segoe Script", "Bradley Hand", cursive;
  font-size: 27px;
  line-height: 1;
}

.content-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.content-grid::after {
  content: "";
  position: absolute;
  right: -64px;
  bottom: -72px;
  z-index: 0;
  width: 250px;
  height: 178px;
  opacity: 0.18;
  background: var(--leaf-pattern) center / contain no-repeat;
  pointer-events: none;
}

.category-card {
  position: relative;
  z-index: 1;
  min-height: 168px;
  overflow: hidden;
  padding: 18px 16px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 14px 28px rgba(43, 132, 139, 0.11);
}

.category-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--aqua-dark), var(--pink));
}

.category-card span {
  display: inline-grid;
  margin-bottom: 18px;
  color: var(--pink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
}

.category-card h2::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 9px;
  background: rgba(72, 181, 182, 0.52);
}

.course-list,
.chapter-list,
.notice-list,
.resource-list,
.event-list {
  display: grid;
  gap: 12px;
}

.course-card {
  display: block;
  position: relative;
  min-height: 150px;
  padding: 20px 20px 16px 24px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.9)), var(--aqua-soft);
  border: 1px solid rgba(72, 181, 182, 0.34);
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(43, 132, 139, 0.1);
}

.course-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 52px;
  background:
    var(--leaf-pattern) left -28px center / 176px 120px no-repeat,
    linear-gradient(174deg, transparent 0 43%, rgba(255, 255, 255, 0.82) 44% 56%, transparent 57% 100%),
    linear-gradient(135deg, rgba(148, 217, 215, 0.96), rgba(176, 229, 226, 0.68));
  opacity: 0.82;
}

.course-card::after {
  content: "";
  position: absolute;
  top: -34px;
  right: -58px;
  width: 214px;
  height: 134px;
  opacity: 0.18;
  background: var(--leaf-pattern) center / contain no-repeat;
  transform: rotate(-8deg);
  pointer-events: none;
}

.course-card > * {
  position: relative;
  z-index: 1;
}

.course-card .number {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: var(--pink);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(207, 91, 154, 0.28);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.view-link {
  color: var(--pink);
  font-family: "Segoe Script", "Bradley Hand", cursive;
  font-size: 21px;
}

.chapter-card,
.notice-list article,
.pdf-card,
.resource-list article {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(43, 132, 139, 0.08);
}

.chapter-card time,
.pdf-card span,
.resource-list span {
  display: grid;
  place-items: center;
  min-height: 46px;
  color: var(--pink);
  background: #fff0f8;
  border: 1px solid rgba(207, 91, 154, 0.22);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.video-player {
  display: grid;
  place-items: center;
  min-height: 190px;
  margin: 20px 0;
  color: var(--aqua-deep);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(217, 244, 243, 0.92)), var(--aqua-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 10px 22px rgba(43, 132, 139, 0.12);
}

.video-player iframe,
.video-player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 4px;
}

.video-embed {
  width: 100%;
}

.video-duration {
  margin: 10px 0 0;
  color: #6c8588;
  font-size: 12px;
}

.message-card {
  margin: 18px 0;
  border-left: 6px solid var(--pink);
}

.bottom-nav {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  width: min(436px, calc(100% - 24px));
  margin: 0 auto;
  padding: 8px;
  background: rgba(255, 253, 249, 0.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.bottom-nav a {
  display: grid;
  place-items: center;
  min-height: 42px;
  color: var(--muted);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.bottom-nav a.is-active {
  color: #fff;
  background: var(--pink);
}

@media (min-width: 760px) {
  body {
    padding-bottom: 0;
  }

  .bottom-nav {
    display: none;
  }
}

.magazine-section {
  margin-bottom: 18px;
  padding: 20px;
  background: var(--white);
  border: 2px solid rgba(207, 91, 154, 0.16);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.magazine-section h2 {
  margin-bottom: 14px;
  color: var(--pink);
  font-size: 24px;
  line-height: 1.35;
}

.magazine-section img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(184, 224, 225, 0.75);
  border-radius: 12px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6c5a55;
  font-size: 13px;
  text-align: left;
}

.check-row input {
  width: 22px;
  height: 22px;
  accent-color: var(--pink);
}

.text-link {
  color: #6c7473;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.section-block {
  position: relative;
  margin-top: 28px;
}

.section-block::after {
  content: "";
  position: absolute;
  right: -72px;
  bottom: -42px;
  z-index: 0;
  width: 280px;
  height: 190px;
  opacity: 0.14;
  background: var(--leaf-pattern) center / contain no-repeat;
  pointer-events: none;
}

.section-block > * {
  position: relative;
  z-index: 1;
}

.member-kv__script {
  margin: 0 0 8px;
  color: rgba(207, 91, 154, 0.76);
  font-family: "Segoe Script", "Bradley Hand", cursive;
  font-size: 31px;
  line-height: 1.1;
  transform: rotate(-2deg);
}

.hero-copy-card {
  padding-left: 26px;
}

.sub-hero {
  position: relative;
  margin: 0 -18px 22px;
  overflow: hidden;
  padding: 34px 22px 28px;
  background:
    var(--leaf-pattern) left -38px top -6px / 240px 164px no-repeat,
    var(--leaf-pattern) right -74px bottom -30px / 250px 170px no-repeat,
    linear-gradient(102deg, rgba(148, 217, 215, 0.76) 0 43%, rgba(232, 250, 249, 0.8) 43% 100%),
    linear-gradient(90deg, rgba(148, 217, 215, 0.8), rgba(255, 255, 255, 0.88));
  border-bottom: 1px solid rgba(72, 181, 182, 0.28);
}

.sub-hero::before,
.sub-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.sub-hero::before {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0.24;
  background:
    linear-gradient(116deg, transparent 0 29%, rgba(255, 255, 255, 0.54) 30% 35%, transparent 36%),
    linear-gradient(116deg, transparent 0 47%, rgba(255, 255, 255, 0.38) 48% 52%, transparent 53%);
  transform: none;
}

.sub-hero::after {
  right: 22px;
  bottom: 22px;
  left: 96px;
  height: 13px;
  opacity: 0.82;
  background:
    linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.9) 12%, rgba(255, 255, 255, 0.72) 58%, transparent 100%);
  border-radius: 999px;
  filter: blur(0.2px);
  transform: rotate(-2deg);
}

.sub-hero h1 {
  margin-bottom: 8px;
  color: var(--pink);
  font-size: 30px;
}

.sub-hero > * {
  position: relative;
  z-index: 1;
}

.course-banner-list,
.lesson-list,
.event-cards,
.pdf-list {
  display: grid;
  gap: 14px;
}

.course-banner-list {
  gap: 16px;
}

.course-banner-card {
  position: relative;
  display: block;
  min-height: 150px;
  overflow: hidden;
  padding: 20px 20px 16px 24px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.9)),
    var(--aqua-soft);
  border: 1px solid rgba(72, 181, 182, 0.34);
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(43, 132, 139, 0.1);
}

.course-banner-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 52px;
  background:
    var(--leaf-pattern) left -20px center / 170px 116px no-repeat,
    linear-gradient(174deg, transparent 0 43%, rgba(255, 255, 255, 0.82) 44% 56%, transparent 57% 100%),
    linear-gradient(135deg, rgba(148, 217, 215, 0.96), rgba(176, 229, 226, 0.68));
  opacity: 0.82;
}

.course-banner-card::after {
  content: "";
  position: absolute;
  top: -32px;
  right: -52px;
  width: 210px;
  height: 130px;
  opacity: 0.22;
  background: var(--leaf-pattern) center / contain no-repeat;
  transform: rotate(-8deg);
}

.course-banner-card .view-link,
.course-banner-card > span {
  position: relative;
}

.course-banner-card .view-link::after,
.course-banner-card > span::after {
  content: "One Mile Station";
  position: absolute;
  left: 180px;
  bottom: -3px;
  width: 180px;
  color: rgba(207, 91, 154, 0.22);
  font-family: "Segoe Script", "Bradley Hand", cursive;
  font-size: 24px;
  font-weight: 400;
  transform: rotate(-4deg);
  white-space: nowrap;
}

.course-banner-card > * {
  position: relative;
  z-index: 1;
}

.course-banner-card .ribbon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: var(--pink);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(207, 91, 154, 0.28);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
}

.course-banner-card h2 {
  max-width: 286px;
  margin-bottom: 8px;
  color: #3f7c81;
  font-size: 22px;
  line-height: 1.42;
}

.course-banner-card p {
  max-width: 250px;
  margin-bottom: 16px;
  color: #5d777a;
  font-size: 12px;
}

.course-banner-card > span,
.view-link,
.chapter-card span,
.pdf-card b {
  color: var(--pink);
  font-family: "Segoe Script", "Bradley Hand", cursive;
  font-size: 20px;
  font-weight: 400;
}

.lecture-banner-detail {
  position: relative;
  margin: 0 -18px 0;
  overflow: hidden;
  padding: 34px 24px 30px;
  background:
    var(--leaf-pattern) left -66px top -22px / 270px 184px no-repeat,
    var(--leaf-pattern) right -82px bottom -36px / 260px 176px no-repeat,
    linear-gradient(102deg, rgba(148, 217, 215, 0.78) 0 42%, rgba(232, 250, 249, 0.82) 42% 100%),
    linear-gradient(90deg, rgba(148, 217, 215, 0.76), rgba(255, 255, 255, 0.9));
  border-bottom: 1px solid rgba(72, 181, 182, 0.3);
}

.lecture-banner-detail::before {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 30px;
  left: 112px;
  height: 12px;
  opacity: 0.76;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  border-radius: 999px;
  filter: blur(0.2px);
  transform: rotate(-2deg);
  pointer-events: none;
}

.lecture-banner-detail::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 0;
  width: 96px;
  height: 8px;
  background: var(--pink);
}

.lecture-banner-detail h1 {
  position: relative;
  z-index: 1;
  max-width: 320px;
  color: var(--aqua-deep);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 29px;
  font-weight: 500;
}

.chapter-visual {
  background: linear-gradient(90deg, rgba(248, 215, 233, 0.9), rgba(255, 255, 255, 0.92));
}

.detail-card {
  position: relative;
  margin-top: -50px;
  overflow: hidden;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(43, 132, 139, 0.1);
}

.detail-card::before {
  content: "";
  position: absolute;
  right: -74px;
  bottom: -42px;
  width: 244px;
  height: 164px;
  opacity: 0.13;
  background: var(--leaf-pattern) center / contain no-repeat;
  transform: rotate(-8deg);
  pointer-events: none;
}

.detail-card > * {
  position: relative;
  z-index: 1;
}

.detail-card h1 {
  color: var(--pink);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 27px;
  font-weight: 500;
}

.course-body {
  margin-bottom: 16px;
}

.chapter-card,
.pdf-card,
.resource-card,
.lesson-card {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(43, 132, 139, 0.08);
}

.archive-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(43, 132, 139, 0.11);
}

.archive-card::after {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -54px;
  width: 220px;
  height: 150px;
  opacity: 0.12;
  background: var(--leaf-pattern) center / contain no-repeat;
  pointer-events: none;
}

.archive-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    var(--leaf-pattern) right -52px bottom -38px / 230px 156px no-repeat,
    linear-gradient(135deg, rgba(148, 217, 215, 0.92), rgba(255, 255, 255, 0.86));
}

.archive-media img,
.archive-media iframe,
.archive-media video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.archive-media .video-player {
  min-height: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.archive-media .video-duration {
  display: none;
}

.archive-media.is-empty {
  display: grid;
  place-items: center;
}

.archive-media.is-empty span {
  color: rgba(207, 91, 154, 0.72);
  font-family: "Segoe Script", "Bradley Hand", cursive;
  font-size: 30px;
  transform: rotate(-4deg);
}

.archive-card__body {
  position: relative;
  z-index: 1;
  padding: 18px;
}

.archive-card__body time {
  display: inline-grid;
  margin-bottom: 10px;
  padding: 4px 10px;
  color: var(--pink);
  background: #fff0f8;
  border: 1px solid rgba(207, 91, 154, 0.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.archive-card__body h2 {
  margin-bottom: 6px;
  color: #3a6f73;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 20px;
  font-weight: 500;
}

.archive-card__body p {
  margin-bottom: 14px;
  font-size: 12px;
}

.chapter-card time,
.pdf-card span,
.resource-card span,
.lesson-card time {
  display: grid;
  place-items: center;
  min-height: 48px;
  color: var(--pink);
  background: #fff0f8;
  border: 1px solid rgba(207, 91, 154, 0.22);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.chapter-card h2,
.pdf-card h2,
.resource-card h2,
.lesson-card h2 {
  margin: 0 0 2px;
  color: #3a6f73;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.chapter-card p,
.pdf-card p,
.resource-card p,
.lesson-card p {
  margin: 0;
  color: #6c8588;
  font-size: 12px;
}

.video-player a,
.video-player {
  display: grid;
  place-items: center;
  min-height: 190px;
}

.video-player {
  margin: 20px 0;
}

.video-player a {
  width: 100%;
  color: var(--aqua-deep);
}

.video-player span {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  color: var(--pink);
  border: 1px solid rgba(207, 91, 154, 0.32);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
}

.video-player strong {
  margin-top: -34px;
  color: #6c8588;
  font-size: 13px;
  font-weight: 400;
}

.chapter-text {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(43, 132, 139, 0.08);
}

.chapter-text h2 {
  margin-bottom: 8px;
  color: var(--pink);
  font-size: 18px;
}

.pdf-list {
  margin: 18px 0;
}

.back-link {
  margin-top: 4px;
}

.lead {
  margin: 0 0 18px;
  color: #5d777a;
  font-size: 14px;
}

.event-cards {
  position: relative;
  grid-template-columns: 1fr 1fr;
}

.event-cards::after {
  content: "";
  position: absolute;
  right: -78px;
  bottom: -64px;
  z-index: 0;
  width: 280px;
  height: 190px;
  opacity: 0.2;
  background: var(--leaf-pattern) center / contain no-repeat;
  pointer-events: none;
}

.event-item {
  position: relative;
  z-index: 1;
  min-height: 230px;
  overflow: hidden;
  padding: 92px 12px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(97, 70, 61, 0.12);
}

.event-item::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 112px;
  background:
    linear-gradient(90deg, rgba(148, 217, 215, 0.45), rgba(207, 91, 154, 0.16)),
    url("assets/main-banner.jpg");
  background-size: cover;
  background-position: center;
}

.event-item time {
  position: absolute;
  top: 18px;
  left: 16px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: #fff;
  background: var(--pink);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 20px;
  line-height: 1.05;
  text-align: center;
}

.event-item small {
  font-size: 12px;
}

.event-item > span {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 8px;
  color: var(--pink);
  background: #fff7f4;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
}

.event-item h2 {
  margin-bottom: 8px;
  color: #3f7c81;
  font-size: 15px;
}

.event-item p {
  margin: 0;
  color: #5d777a;
  font-size: 12px;
}

.empty-card {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(43, 132, 139, 0.08);
}

.empty-card h2 {
  color: var(--pink);
}
