
/* ========================================
   KAWORIA — COOD / EVENT
   Page Styles
======================================== */


/* ========================================
   PAGE SCROLL
   共通CSSのスクロール制限を解除
======================================== */

html {
  height: auto !important;
  min-height: 100%;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body {
  height: auto !important;
  min-height: 100vh;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: #f4f2f7 !important;
}


/* ========================================
   MAIN LAYOUT
   1カラムレイアウト
======================================== */

.cood-main {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 100vh;
  margin: 0 !important;
  padding:
    calc(var(--topbar-h, 66px) + 16px)
    0
    calc(var(--bottombar-h, 92px) + 20px) !important;
  box-sizing: border-box;
  background: transparent !important;
}

/* 共通CSSのスクロールコンテナ・配置設定を解除 */
.cood-main .content-frame {
  position: static !important;
  inset: auto !important;
  transform: none !important;

  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  margin: 0 !important;
  padding: 0 !important;

  overflow: visible !important;
  box-sizing: border-box;

  background: transparent !important;
  box-shadow: none !important;
}

.cood-page {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 42px 50px;
  box-sizing: border-box;
  color: var(--ink, #55536a);
  background: transparent !important;
}


/* ========================================
   HERO
   SKIN ARCHIVE風のシンプルな見出し
======================================== */

.cood-page .cood-hero {
  position: relative;
  display: block !important;

  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  overflow: visible;

  padding: 10px 0 15px !important;
  margin: 0 0 25px !important;

  text-align: left;

  border: none;
  border-radius: 0;
  background: none !important;
  box-shadow: none !important;

  justify-content: initial !important;
  align-items: initial !important;
}

.cood-hero .eyebrow {
  display: block;
  margin: 0 0 8px !important;

  color: var(--lavender, #a38bbd);

  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.cood-hero-title {
  margin: 0 !important;

  color: var(--ink, #55536a);

  font-family: "DM Sans", sans-serif;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
}

.cood-hero-title span {
  color: var(--lavender, #a38bbd);
  font-weight: 400;
}

.cood-hero-description {
  margin: 8px 0 0 !important;

  color: var(--muted, #9290a3);

  font-size: 12px;
  line-height: 1.8;
}

.cood-hero .text-link {
  display: none !important;
}

/* 飾りは非表示 */
.cood-hero .hero-decoration {
  display: none !important;
}


/* ========================================
   SECTION
======================================== */

.cood-section {
  margin-top: 0 !important;
  margin-bottom: 65px;
  padding-top: 0 !important;
  scroll-margin-top: 100px;
}

.cood-section .section-heading {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;

  padding-bottom: 15px;
  margin-bottom: 18px;

  border-bottom: 1px solid var(--line, #eeeaf2);
}

.cood-section .section-number {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 38px;
  height: 38px;
  flex-shrink: 0;

  border-radius: 50%;
  background: #f2edf7;

  color: var(--lavender, #a38bbd);

  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.cood-section .section-heading .eyebrow {
  margin: 0 0 4px;

  color: var(--lavender, #a38bbd);

  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.cood-section .section-heading h2 {
  margin: 0;

  color: var(--ink, #55536a);

  font-family: "DM Sans", sans-serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.cood-section .section-text {
  margin: 0 0 22px;

  color: var(--muted, #9290a3);

  font-size: 12px;
  line-height: 1.8;
}


/* ========================================
   HOW TO
======================================== */

.cood-howto {
  display: flex;
  align-items: flex-start;
  gap: 12px;

  padding: 16px 19px;
  margin-bottom: 25px;

  border: 1px solid #e9e1f0;
  border-radius: 13px;
  background: #faf8fc;
}

.cood-howto > .material-symbols-rounded {
  flex-shrink: 0;

  color: var(--lavender, #a38bbd);
  font-size: 21px;
}

.cood-howto strong {
  display: block;
  margin-bottom: 5px;

  color: var(--ink, #55536a);
  font-size: 12px;
}

.cood-howto p {
  margin: 0;

  color: var(--muted, #9290a3);

  font-size: 11px;
  line-height: 1.8;
}


/* ========================================
   CARD GRID
======================================== */

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


/* ========================================
   CARD
======================================== */

.cood-card {
  min-width: 0;
  overflow: hidden;

  border: 1px solid var(--line, #eeeaf2);
  border-radius: 17px;

  background: #fff;

  box-shadow: 0 5px 18px rgba(85, 83, 106, 0.035);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.cood-card:hover {
  transform: translateY(-3px);

  box-shadow: 0 10px 25px rgba(85, 83, 106, 0.08);
}

.cood-card__image {
  position: relative;

  width: 100%;
  aspect-ratio: 16 / 9;

  overflow: hidden;

  background: linear-gradient(135deg, #e8f2fa, #f8eaf1);
}

.cood-card__image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.cood-card__image--empty {
  display: flex;
  justify-content: center;
  align-items: center;

  color: rgba(163, 139, 189, 0.6);
  font-size: 30px;
}

.cood-card__body {
  padding: 19px 20px 20px;
}

.cood-card__title {
  margin: 0 0 9px;

  color: var(--ink, #55536a);

  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;

  overflow-wrap: anywhere;
}

.cood-card__description {
  margin: 0 0 17px;

  color: var(--muted, #9290a3);

  font-size: 11px;
  line-height: 1.9;

  white-space: pre-line;
  overflow-wrap: anywhere;
}


/* ========================================
   EVENT STATUS
======================================== */

.cood-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 5px 10px;
  margin-bottom: 12px;

  border-radius: 30px;
  background: #f2edf7;

  color: var(--lavender, #a38bbd);

  font-size: 10px;
  font-weight: 700;
}

.cood-card__status--live {
  background: #edf6ef;
  color: #708b67;
}

.cood-card__status--upcoming {
  background: #eef5fb;
  color: #7899b7;
}


/* ========================================
   COUPON CODE
======================================== */

.cood-code-label {
  display: block;
  margin-bottom: 7px;

  color: var(--muted, #9290a3);

  font-size: 10px;
  font-weight: 600;
}

.cood-code-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;

  width: 100%;
  padding: 12px 14px;

  border: 1px dashed #c9b8dc;
  border-radius: 10px;

  background: #faf8fc;
  color: var(--ink, #55536a);

  cursor: pointer;
  text-align: left;

  transition: background 0.2s ease;
}

.cood-code-copy:hover {
  background: #f3edf8;
}

.cood-code-copy__value {
  min-width: 0;

  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;

  overflow-wrap: anywhere;
}

.cood-code-copy__action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;

  color: var(--lavender, #a38bbd);

  font-size: 10px;
  font-weight: 700;
}

.cood-code-copy__action .material-symbols-rounded {
  font-size: 16px;
}


/* ========================================
   DATE / COUNTDOWN
======================================== */

.cood-card__date {
  display: flex;
  flex-direction: column;
  gap: 5px;

  padding: 12px 13px;
  margin-top: 15px;

  border-radius: 10px;
  background: #f8f7fa;
}

.cood-card__date-label {
  color: var(--muted, #9290a3);
  font-size: 10px;
}

.cood-card__date-value {
  color: var(--ink, #55536a);

  font-family: "DM Sans", "Noto Sans JP", sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.7;
}

.cood-card__countdown {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;

  padding-top: 10px;
  margin-top: 8px;

  border-top: 1px solid #ece8f0;
}

.cood-card__countdown-label {
  color: var(--muted, #9290a3);
  font-size: 10px;
}

.cood-card__countdown-value {
  color: var(--lavender, #a38bbd);

  font-family: "DM Sans", "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 700;

  text-align: right;
}


/* ========================================
   OFFICIAL LINK
======================================== */

.cood-card__footer {
  display: flex;
  justify-content: flex-end;

  margin-top: 15px;
}

.cood-card__official {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  color: var(--lavender, #a38bbd);

  font-size: 11px;
  font-weight: 700;
  text-decoration: none;

  transition: opacity 0.2s ease;
}

.cood-card__official:hover {
  opacity: 0.65;
}

.cood-card__official .material-symbols-rounded {
  font-size: 15px;
}


/* ========================================
   EMPTY / LOADING / ERROR
======================================== */

.cood-loading,
.cood-empty,
.cood-error {
  grid-column: 1 / -1;

  padding: 38px 20px;

  border: 1px dashed #e5ddea;
  border-radius: 15px;

  color: var(--muted, #9290a3);

  font-size: 12px;
  line-height: 1.8;

  text-align: center;
}

.cood-empty {
  background: #faf9fc;
}

.cood-error {
  color: #bd7b8a;
  background: #fff8fa;
}


/* ========================================
   CONTENT FOOTER
   装飾フッターを非表示
======================================== */

.cood-page .content-footer {
  display: none !important;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 850px) {

  .cood-page {
    padding: 10px 24px 45px;
  }

  .cood-page .cood-hero {
    padding: 10px 0 15px !important;
    margin-bottom: 25px !important;
  }

  .cood-section {
    margin-bottom: 55px;
  }

  .cood-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
  }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {

  .cood-main {
    padding-top: calc(var(--topbar-h, 66px) + 12px) !important;
    padding-bottom: calc(var(--bottombar-h, 92px) + 20px) !important;
  }

  .cood-page {
    padding: 8px 16px 35px;
  }

  .cood-page .cood-hero {
    padding: 8px 0 12px !important;
    margin-bottom: 22px !important;
  }

  .cood-hero-title {
    font-size: 27px;
  }

  .cood-hero-description {
    font-size: 11px;
  }

  .cood-section {
    margin-bottom: 48px;
  }

  .cood-section .section-heading h2 {
    font-size: 23px;
  }

  .cood-section .section-number {
    width: 35px;
    height: 35px;
  }

  .cood-card-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .cood-card__body {
    padding: 17px;
  }

  .cood-howto {
    padding: 14px;
  }

}


/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 380px) {

  .cood-page {
    padding-right: 12px;
    padding-left: 12px;
  }

  .cood-hero-title {
    font-size: 25px;
  }

  .cood-hero-description {
    font-size: 10px;
  }

  .cood-card__body {
    padding: 15px;
  }

}
/* ========================================
   COOD / EVENT SECTION BLOCK
   各セクションを白いパネルにする
======================================== */

.cood-section {
  padding: 30px 32px !important;
  margin: 0 0 30px !important;

  background: #ffffff !important;

  border: 1px solid #eeeaf2;
  border-radius: 18px;

  box-shadow: 0 5px 20px rgba(85, 83, 106, 0.045);

  box-sizing: border-box;
}

/* セクション見出し */
.cood-section .section-heading {
  margin-bottom: 20px;
}

/* クーポン案内 */
.cood-section .cood-howto {
  background: #faf8fc;
}

/* 各カード一覧 */
.cood-section .cood-card-grid {
  margin-top: 0;
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 850px) {
  .cood-section {
    padding: 26px 24px !important;
    margin-bottom: 25px !important;
  }
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {
  .cood-section {
    padding: 22px 17px !important;
    margin-bottom: 22px !important;
    border-radius: 15px;
  }
}

/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 380px) {
  .cood-section {
    padding: 19px 13px !important;
  }
}
/* ========================================
   ERリマインド案内
======================================== */

.cood-remind {
  margin-top: 14px;
  padding: 20px 22px;
  background: #f1f7f3;
  border: 1px solid #e3eee6;
  border-radius: 14px;
  box-sizing: border-box;
}

.cood-remind-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}

.cood-remind-icon {
  font-size: 18px;
  line-height: 1;
}

.cood-remind-title h3 {
  margin: 0;
  color: #65796d;
  font-size: 15px;
  font-weight: 700;
}

.cood-remind-description {
  margin: 0 0 15px;
  color: #718078;
  font-size: 13px;
  line-height: 1.7;
}

.cood-remind-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 17px;
  background: #e4efe7;
  border: 1px solid #d5e5d9;
  border-radius: 9px;
  color: #64816e;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cood-remind-button:hover {
  background: #d9e9de;
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .cood-remind {
    padding: 17px 16px;
  }

  .cood-remind-button {
    width: 100%;
    box-sizing: border-box;
  }
}
/* ========================================
   COOD内の各ブロックの間隔を統一
======================================== */

/* クーポン入力方法とERリマインド */
.cood-howto {
  margin-bottom: 22px !important;
}

/* ERリマインド */
.cood-remind {
  margin-top: 0 !important;
  margin-bottom: 22px !important;
}

/* ERリマインドとクーポン一覧 */
.cood-remind + .cood-card-grid {
  margin-top: 22px !important;
}
