.page-view[hidden] { display: none !important; }

/* ===== Detail Pages (교사 연수 / 정기 구독) ===== */
.detail-page {
  position: relative;
  background-color: #fff;
}
.back-link {
  position: fixed;
  top: 100px;
  left: 32px;
  z-index: 100;
  display: inline-block;
  padding: 10px 20px;
  background-color: rgba(255, 255, 255, 0.92);
  border: 1px solid #ddd;
  border-radius: 100px;
  color: #1e1e1e;
  font-size: 13px;
  letter-spacing: 1px;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.back-link:hover {
  background-color: #1e1e1e;
  color: #fff;
  border-color: #1e1e1e;
}

.detail-hero {
  padding: 200px 0 120px;
  text-align: center;
  background: linear-gradient(180deg, #fbf7ef 0%, #ffffff 100%);
  position: relative;
}
.detail-hero.subscription-hero {
  background: linear-gradient(180deg, #f5efe2 0%, #ffffff 100%);
}
.detail-inner {
  width: 1200px;
  max-width: 90vw;
  margin: 0 auto;
}
.detail-eyebrow {
  font-size: 14px;
  letter-spacing: 6px;
  color: var(--gray);
  margin-bottom: 20px;
}
.detail-title {
  font-size: 52px;
  font-weight: bold;
  color: #1e1e1e;
  margin-bottom: 20px;
  line-height: 1.2;
}
.detail-subtitle {
  font-size: 22px;
  color: var(--gray);
  line-height: 1.6;
  margin: 0;
}
.detail-hero-img {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 56px auto 0;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.detail-section {
  padding: 100px 0;
}
.detail-section-title {
  font-size: 32px;
  font-weight: bold;
  color: #1e1e1e;
  text-align: center;
  margin-bottom: 48px;
  line-height: 1.4;
}
.detail-section-content {
  font-size: 18px;
  line-height: 1.9;
  color: var(--gray);
  text-align: center;
  word-break: keep-all;
  max-width: 800px;
  margin: 0 auto;
}

.detail-problem {
  background-color: #fbf7ef;
}
.problem-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}
.problem-item {
  padding: 26px 32px;
  background-color: #fff;
  border-radius: 10px;
  font-size: 18px;
  color: #1e1e1e;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  word-break: keep-all;
}

.detail-features {
  background-color: #fff;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  padding: 48px 32px;
  background-color: #fbf7ef;
  border-radius: 14px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.feature-number {
  font-size: 34px;
  font-weight: 900;
  color: #c9a96a;
  margin-bottom: 20px;
  letter-spacing: 2px;
}
.feature-title {
  font-size: 20px;
  font-weight: bold;
  color: #1e1e1e;
  margin-bottom: 18px;
  line-height: 1.4;
  word-break: keep-all;
}
.feature-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray);
  word-break: keep-all;
}

.detail-target {
  background-color: #fff;
}
.target-list {
  list-style: none;
  padding: 0;
  max-width: 720px;
  margin: 0 auto;
}
.target-list li {
  position: relative;
  padding: 22px 0 22px 36px;
  border-bottom: 1px solid #eee;
  font-size: 17px;
  color: #1e1e1e;
  line-height: 1.6;
  word-break: keep-all;
}
.target-list li:last-child {
  border-bottom: none;
}
.target-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 22px;
  color: #c9a96a;
  font-weight: bold;
  font-size: 20px;
}
.target-list strong {
  color: #1e1e1e;
  font-weight: 700;
}

.detail-cta {
  background-color: #1e1e1e;
  color: #fff;
  text-align: center;
  padding: 110px 0;
}
.detail-cta-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 16px;
  color: #fff;
  line-height: 1.4;
}
.detail-cta-text {
  font-size: 17px;
  color: #ccc;
  margin-bottom: 48px;
}
.detail-cta-btn {
  display: inline-block;
  padding: 18px 44px;
  background-color: #c9a96a;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.detail-cta-btn:hover {
  background-color: #b89559;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(201, 169, 106, 0.35);
}

#hero-section {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

#preload1 {
  background: url(./assets/slide1.jpg) no-repeat -9999px -9999px;
}
#preload2 {
  background: url(./assets/slide2.jpg) no-repeat -9999px -9999px;
}
#preload3 {
  background: url(./assets/slide3.jpg) no-repeat -9999px -9999px;
}
#preload4 {
  background: url(./assets/slide4.jpg) no-repeat -9999px -9999px;
}
#preload5 {
  background: url(./assets/slide5.jpg) no-repeat -9999px -9999px;
}

.slider-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slider {
  height: 100%;
  white-space: nowrap;
  display: flex;
  height: 100%;
  animation: slideAnimation 30s infinite;
}

.slide {
  width: 100vw;
  display: inline-block;
  background-size: cover;
  flex: 0 0 100%;
  display: block;
  background-position: center;
  height: 100%;
}

/* 애니메이션 키프레임 */
@keyframes slideAnimation {
  0%  { transform: translateX(0%); }
  22% { transform: translateX(0%); }

  25% { transform: translateX(-100%); }
  47% { transform: translateX(-100%); }

  50% { transform: translateX(-200%); }
  72% { transform: translateX(-200%); }

  75% { transform: translateX(-300%); }
  97% { transform: translateX(-300%); }

  100% { transform: translateX(0%); } /* 빠르게 원래대로 */
}

.active .slide-title {
  background-color: rgba(0, 0, 0, 0.5);
}
.square {
  width: calc(100% - 40px); /* 예시 */
  aspect-ratio: 1 / 1;
}
.slide-title {
  font-size: 36px;
  line-height: 54px;
  color: var(--white);
  position: absolute;
  left: 0px;
  top: 0px;
  transition: all 0.3s ease-in-out;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.2);
  height: 100vh;
  text-align: center;
  z-index: 10;
}
.slde-text {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#brand-story-section {
  padding: 120px 0px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(231, 209, 138, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(231, 209, 138, 0.14) 0%, transparent 50%),
    linear-gradient(180deg, #fbf7ef 0%, #ffffff 60%, #fbf7ef 100%);
}
#brand-story-section::before {
  content: "";
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: #c9a96a;
  opacity: 0.6;
}
#brand-story-section::after {
  content: "COCORO";
  position: absolute;
  bottom: 40px;
  right: -20px;
  font-size: 180px;
  font-weight: 900;
  letter-spacing: 8px;
  color: rgba(201, 169, 106, 0.06);
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
}
#brand-story-section .section-title,
#brand-story-section .section-content,
#brand-story-section .brand-story-flex {
  position: relative;
  z-index: 1;
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #1e1e1e;
}
.section-content {
  text-align: center;
  line-height: 32px;
  font-size: 20px;
  color: var(--gray);
}

.brand-story-flex {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 20px;
}

#brand-story-section .brand-story-flex {
  flex-direction: column;
  gap: 48px;
  align-items: stretch;
}
.brand-story-flex-item {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
  padding: 12px 0;
  box-sizing: border-box;
}

/* 좌우 2컬럼 */
.brand-story-flex-media,
.brand-story-flex-text {
  width: 50%;
}

/* 이미지 */
.brand-story-flex-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* 텍스트 */
.brand-story-flex-item-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}
.brand-story-flex-item-content {
  color: var(--gray);
  margin-top: 12px;
  text-align: center;
  line-height: 1.8;
  word-break: keep-all;
}

/* 교차 배치: 1,3번째(홀수) = 텍스트 왼 / 이미지 오른, 2번째(짝수) = 이미지 왼 / 텍스트 오른 */
.brand-story-flex-item:nth-child(odd) .brand-story-flex-media { order: 2; }
.brand-story-flex-item:nth-child(odd) .brand-story-flex-text  { order: 1; }
.brand-story-flex-item:nth-child(even) .brand-story-flex-media { order: 1; }
.brand-story-flex-item:nth-child(even) .brand-story-flex-text  { order: 2; }

/* (이전 아이콘형 레이아웃과의 호환을 위해 남겨둠 - 사용 안하면 무시됨) */
.brand-story-flex-icon {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  margin: auto;
  margin-bottom: 24px;
}

/* ============================ */

#offline-shop-section {
  background-color: var(--white);
  padding: 120px 0px;
}
#offline-shop-section .brand-story-flex {
  justify-content: center;
}
#offline-shop-section .offline-flex-item:nth-child(3) {
  display: none;
}
.offline-flex-item {
  width: calc((100% - 40px) / 3);
  box-sizing: border-box;
  overflow: hidden;
}
.offline-flex-item-textarea {
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}
.offline-flex-item-top-img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.offline-flex-item-textarea-title {
  font-size: 20px;
  color: #000;
  font-weight: bold;
  margin-bottom: 12px;
  text-align: center;
}
.offline-flex-item-textarea-content {
  color: var(--gray);
  text-align: center;
  height: 70px;
  overflow: hidden;
  word-break: keep-all;
}
.offline-flex-item-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.offline-bottom-flex-right {
  color: #000;
  text-decoration: underline;
}
.item-line-icon {
  width: 18px;
  display: block;
}
.offline-flex-item-line-right {
  font-size: 14px;
  color: var(--gray);
  display: flex;
  align-items: center;
}

.offline-bottom-flex {
  display: flex;
  margin-top: 24px;
  justify-content: center;
  color: var(--rose);
  font-size: 18px;
  font-weight: bold;
}

#online-shop-section {
  background-image: url(../../assets/high.jpeg);
  background-size: contain;
  height: 540px;
  box-sizing: border-box;
  background-position: center;
}
#online-shop-section .wrap {
  width: 100%;
  height: 100%;
  padding: 120px 0px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background-repeat: no-repeat;
  background-color: rgba(0, 0, 0, 0.5);
}
.my-section-title {
  font-size: 42px;
  font-weight: bold;
  color: var(--white);
  text-align: center;
  margin-bottom: 12px;
}
.my-section-subtitle {
  font-size: 24px;
  font-weight: bold;
  color: var(--white);
  text-align: center;
}
.my-section-button {
  width: 150px;
  background-color: var(--white);
  height: 42px;
  border-radius: 100px;
  display: flex;
  font-size: 14px;
  align-items: center;
  justify-content: center;
  margin: auto;
  margin-top: 64px;
}
.shop-img {
  width: 800px;
  display: block;
  margin: auto;
  margin-top: 48px;
}

.shop-button {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  width: 160px;
  font-size: 14px;
  height: 42px;
  background-color: var(--rose);
  border-radius: 10px;
  margin: auto;
  margin-top: 24px;
}

#product-shop-section {
  padding: 120px 0px;
  background-color: var(--white);
}
#product-shop-section .section-eyebrow {
  text-align: center;
  font-size: 14px;
  letter-spacing: 6px;
  color: var(--gray);
  margin-bottom: 16px;
}
#product-shop-section .section-title {
  margin-bottom: 8px;
}
#product-shop-section .section-content {
  margin-bottom: 56px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 20px;
}
.product-item {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}
.product-item:hover {
  transform: translateY(-6px);
}
.product-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 14px;
  background-color: #f5f5f5;
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.product-item:hover .product-img {
  transform: scale(1.06);
}
.product-text {
  font-size: 14px;
  line-height: 1.55;
  color: #1e1e1e;
  word-break: keep-all;
  padding: 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-more {
  display: block;
  width: 220px;
  margin: 64px auto 0;
  text-align: center;
  padding: 14px 0;
  border: 1px solid #1e1e1e;
  color: #1e1e1e;
  font-size: 14px;
  letter-spacing: 1px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.product-more:hover {
  background-color: #1e1e1e;
  color: #fff;
}

#collection-section {
  padding: 120px 0px;
  background-color: var(--white);
  overflow: hidden;
}
.coll-item {
  width: calc((100% - 60px) / 4);
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.coll-img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.coll-item-textarea {
  position: absolute;
  width: calc(100% - 32px);
  padding: 16px;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  box-sizing: border-box;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.9);
}
.coll-item-title {
  color: #000;
  font-size: 18px;
  margin-bottom: 12px;
}
.coll-item-content {
  font-size: 14px;
}
.logo-flex {
  display: flex;
  margin-top: 24px;
  gap: 50px;
  width: 100%;
  white-space: nowrap;
  flex-wrap: nowrap;
  animation: 30s logoSldie linear infinite;
}
@keyframes logoSldie {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}
.flex-logo-brand {
  width: 200px;
  object-fit: contain;
}

#director-section {
  padding: 120px 0px;
  background-color: var(--white);
}
#director-section .section-eyebrow {
  text-align: center;
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--gray);
  margin-bottom: 16px;
}
#director-section .section-title {
  margin-bottom: 8px;
}
#director-section .section-content {
  margin-bottom: 64px;
}
.director-flex {
  display: flex;
  align-items: center;
  gap: 64px;
}
.director-media {
  width: 40%;
  flex-shrink: 0;
}
.director-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.director-text {
  width: 60%;
}
.director-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.director-list li {
  position: relative;
  padding: 14px 0 14px 24px;
  font-size: 17px;
  line-height: 1.6;
  color: #1e1e1e;
  border-bottom: 1px solid #eee;
  word-break: keep-all;
}
.director-list li:last-child {
  border-bottom: none;
}
.director-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--rose, #1e1e1e);
}

#good-thing-section {
  padding: 120px 0px;
  background-color: #e7d18a;
}

.section-content-top {
  margin-top: 12px;
}
.color-white {
  color: var(--white);
}

@media (max-width: 500px) {
  .inner { width: 90vw; }
  .mobile-show { display: block; }
  #header.active .header-center {
    font-size: 20px;
    top: 80px;

    opacity: 1;
    transition: all 0.3s ease;
    z-index: 999;
  }
  .header-center { }
  .header-link { font-size: 12px; text-align: center; display: none; }
  .header-left { display: flex; align-items: center; justify-content: space-between; }

  .slide-title { font-size: 20px; width: 100%; line-height: 28px; }
  .mobile-show i { font-size: 24px; color: #000; }
  .slde-text { top: 50%; width: 90vw; }
  .header-bbars {
    width: 60vw; height: 100vh; position: fixed; top: 0px; right: 100%;
    z-index: 9999; background-color: var(--white);
  }
  .mobile-header-link { display: block; padding: 20px; width: 100%; font-size: 14px; box-sizing: border-box; }
  .active i { color: var(--white); }
  .section-title { font-size: 20px !important; }
  .section-content { font-size: 14px; }
  .section-content br { display: none; }

  /* 원본: 브랜드 스토리 공통 규칙으로 회귀 */
  .brand-story-flex { flex-wrap: wrap; }
  .brand-story-flex-item { width: 100%; }
  .brand-story-flex-item-content { font-size: 14px; }

  #brand-story-section .brand-story-flex-img {
    width: 100%;
    aspect-ratio: 1 / 1;  /* 정사각형 */
    height: auto;         /* 가로폭 기준으로 높이 자동 */
    object-fit: cover;    /* 프레임 채우기 */
    border-radius: 12px;  /* 기존 둥근 모서리 유지 */
  }  

  .my-section-title { font-size: 20px; }
  .my-section-subtitle { font-size: 14px; }
  .offline-flex-item { width: 100%; }

  #brand-story-section { padding: 80px 0; }
  #brand-story-section::before { top: 40px; width: 40px; }
  #brand-story-section::after {
    font-size: 80px;
    bottom: 20px;
    right: -10px;
    letter-spacing: 4px;
  }

  /* Detail Pages 모바일 */
  .back-link { top: 80px; left: 16px; font-size: 12px; padding: 8px 14px; }
  .detail-hero { padding: 130px 0 70px; }
  .detail-eyebrow { font-size: 12px; letter-spacing: 4px; margin-bottom: 14px; }
  .detail-title { font-size: 28px; margin-bottom: 14px; }
  .detail-subtitle { font-size: 15px; }
  .detail-hero-img { margin-top: 32px; border-radius: 10px; box-shadow: 0 10px 24px rgba(0,0,0,0.1); }
  .detail-section { padding: 60px 0; }
  .detail-section-title { font-size: 20px; margin-bottom: 32px; }
  .detail-section-content { font-size: 14px; line-height: 1.8; }
  .detail-section-content br { display: none; }
  .problem-item { font-size: 14px; padding: 18px 20px; }
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-card { padding: 32px 24px; }
  .feature-number { font-size: 28px; margin-bottom: 14px; }
  .feature-title { font-size: 17px; margin-bottom: 14px; }
  .feature-title br { display: none; }
  .feature-text { font-size: 13px; }
  .target-list li { font-size: 14px; padding: 18px 0 18px 28px; }
  .target-list li::before { top: 18px; font-size: 16px; }
  .detail-cta { padding: 70px 0; }
  .detail-cta-title { font-size: 20px; }
  .detail-cta-text { font-size: 14px; margin-bottom: 32px; }
  .detail-cta-btn { padding: 14px 32px; font-size: 14px; }

  #product-shop-section { padding: 80px 0; }
  #product-shop-section .section-eyebrow { font-size: 12px; letter-spacing: 4px; }
  #product-shop-section .section-content { margin-bottom: 32px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .product-img-wrap { border-radius: 8px; margin-bottom: 10px; }
  .product-text { font-size: 12px; line-height: 1.5; -webkit-line-clamp: 3; }
  .product-more { width: 180px; margin-top: 40px; font-size: 13px; }

  #director-section { padding: 80px 0; }
  .director-flex { flex-direction: column; gap: 32px; }
  .director-media,
  .director-text { width: 100%; }
  .director-img { aspect-ratio: 1 / 1; }
  .director-list li { font-size: 14px; padding: 12px 0 12px 20px; }
  .director-list li::before { top: 20px; }
  #director-section .section-eyebrow { font-size: 12px; letter-spacing: 3px; }
  #director-section .section-content { margin-bottom: 40px; }
  footer .inner { gap: 20px; flex-wrap: wrap; }
  .footer-item { width: 100%; }
}

