*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  color: #594031;
  background:
    url("theme/pattern_1_left_bg.png") left top repeat-y,
    url("theme/pattern_1_right_bg.png") right top repeat-y,
    #fdf5d4;
}

a {
  color: inherit;
}

.site-shell {
  width: min(1080px, calc(100% - 28px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 238, .94);
  border-bottom: 4px solid #f5b040;
  box-shadow: 0 8px 20px rgba(98, 68, 28, .12);
}

.nav {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  color: #6b3d1e;
  letter-spacing: .04em;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #f36b54;
  box-shadow: 0 0 0 5px #fff, 0 5px 0 #d64f3e;
  font-weight: 900;
}

.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  box-shadow: inset 0 -3px rgba(0, 0, 0, .12);
}

.nav-links a:nth-child(1) { background: #ef6958; }
.nav-links a:nth-child(2) { background: #38a9d6; }
.nav-links a:nth-child(3) { background: #f0a53b; }
.nav-links a:nth-child(4) { background: #78b94a; }
.nav-links a:nth-child(5) { background: #a56bc6; }

.hero {
  padding: 34px 0 26px;
}

.hero-posters {
  width: min(1000px, 100%);
  margin: 0 auto;
}

.hero-posters img {
  display: block;
  width: 100%;
  height: auto;
  border: 10px solid #fff;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(112, 78, 34, .18);
}

.hero-poster-main {
  max-height: none;
  object-fit: contain;
}

.hero-intro {
  width: min(760px, 100%);
  margin: 28px auto 0;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #7a3b1d;
  background: #fff4a6;
  border: 2px dashed #ed9a28;
  font-weight: 900;
}

h1 {
  margin: 18px 0 10px;
  font-size: clamp(2.25rem, 7vw, 4.8rem);
  line-height: 1.05;
  color: #e45a46;
  letter-spacing: .03em;
  text-shadow: 3px 3px 0 #fff, 6px 6px 0 rgba(240, 165, 59, .38);
}

.hero-subtitle {
  margin: 0 0 24px;
  color: #2f88a8;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 900;
}

.hero-text {
  max-width: 560px;
  margin: 0 auto;
  color: #5d4b34;
  font-size: 1.04rem;
  line-height: 1.9;
  font-weight: 700;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  box-shadow: inset 0 -4px rgba(0, 0, 0, .14), 0 8px 16px rgba(98, 68, 28, .18);
}

.button.primary { background: #f36b54; }
.button.secondary { background: #43a9d4; }

.section {
  margin: 30px 0;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 26px;
  background: rgba(255, 255, 255, .86);
  border: 6px solid #fff;
  box-shadow: 0 10px 0 #e8c983, 0 20px 30px rgba(109, 82, 33, .12);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: #e45a46;
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  line-height: 1.2;
}

.section-title::before {
  content: "";
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 18%, #ffd957 20% 44%, #f36b54 46% 100%);
  box-shadow: 0 4px 0 #ca4b3a;
}

.lead {
  margin: 0 0 20px;
  color: #6b5038;
  font-size: 1.05rem;
  line-height: 1.9;
}

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

.course-card,
.note-card {
  border-radius: 20px;
  padding: 20px;
  background: #fffaf0;
  border: 3px dashed rgba(239, 105, 88, .35);
}

.course-card h3,
.note-card h3 {
  margin: 0 0 10px;
  color: #2f88a8;
  font-size: 1.22rem;
}

.course-card p,
.note-card p {
  margin: 0;
  line-height: 1.8;
  color: #64513f;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: center;
}

.feature img,
.gallery img,
.chart {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 8px solid #fff;
  box-shadow: 0 9px 18px rgba(92, 65, 28, .16);
  background: #fff;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.materials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.soft-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.soft-list li {
  padding-left: 28px;
  position: relative;
  line-height: 1.7;
}

.soft-list li::before {
  content: "●";
  position: absolute;
  left: 4px;
  top: 0;
  color: #78b94a;
}

.contact-box {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
}

.notice {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  color: #8a3c23;
  background: #fff2c2;
  border: 2px dashed #f0a53b;
  line-height: 1.8;
  font-weight: 800;
}

.footer {
  margin-top: 34px;
  padding: 26px 0 36px;
  color: #7a6245;
  text-align: center;
  font-weight: 800;
}

@media (max-width: 780px) {
  .nav {
    padding: 10px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-posters img {
    border-width: 7px;
    border-radius: 18px;
  }

  .grid,
  .feature,
  .gallery,
  .materials,
  .contact-box {
    grid-template-columns: 1fr;
  }
}
