/* Cayuga Material Library - Frontend */

html,
body.cayuga-member-host {
  overflow-x: hidden !important;
}

body.cayuga-member-host {
  background: #f2eee8 !important;
}

body.cayuga-member-host #breadcrumb,
body.cayuga-member-host .entry-title,
body.cayuga-member-host .post-title,
body.cayuga-member-host .st-catgroup,
body.cayuga-member-host .blogbox,
body.cayuga-member-host .st-author,
body.cayuga-member-host .st-date,
body.cayuga-member-host .sns,
body.cayuga-member-host .kanren {
  display: none !important;
}

body.cayuga-member-host #content,
body.cayuga-member-host #contentInner,
body.cayuga-member-host #contentInner > main,
body.cayuga-member-host #contentInner > main > article,
body.cayuga-member-host #st-page,
body.cayuga-member-host .mainbox,
body.cayuga-member-host #nocopy,
body.cayuga-member-host .entry-content {
  width: 100% !important;
  max-width: none !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  background: transparent !important;
}

body.cayuga-member-host #st-page .entry-content {
  margin-bottom: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
}

/* AFFINGERのPC用本文余白を解除し、ログイン後ページを画面全幅にする */
body.cayuga-member-host.cml-unlocked #content-w,
body.cayuga-member-host.cml-unlocked #content,
body.cayuga-member-host.cml-unlocked #contentInner,
body.cayuga-member-host.cml-unlocked #contentInner > main,
body.cayuga-member-host.cml-unlocked #contentInner > main > article,
body.cayuga-member-host.cml-unlocked #st-page,
body.cayuga-member-host.cml-unlocked .mainbox,
body.cayuga-member-host.cml-unlocked #nocopy,
body.cayuga-member-host.cml-unlocked .entry-content {
  float: none !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

body.cayuga-member-host.cml-unlocked .cayuga-member-page {
  left: auto !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

/* Login screen */
body.cayuga-member-host.cml-locked #content-w,
body.cayuga-member-host.cml-locked #content,
body.cayuga-member-host.cml-locked #contentInner,
body.cayuga-member-host.cml-locked #contentInner > main,
body.cayuga-member-host.cml-locked #contentInner > main > article,
body.cayuga-member-host.cml-locked #st-page,
body.cayuga-member-host.cml-locked .mainbox,
body.cayuga-member-host.cml-locked #nocopy,
body.cayuga-member-host.cml-locked .entry-content {
  float: none !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

body.cayuga-member-host.cml-locked .entry-content {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: calc(100vh - 90px) !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  padding: 105px 20px 120px !important;
  background:
    linear-gradient(rgba(242, 238, 232, .87), rgba(242, 238, 232, .94)),
    url("https://cayugaguitar.jp/wp-content/uploads/2026/07/cayuga_price_section_background_exact_crop.png") center / cover no-repeat !important;
}

.cml-password-form,
.cml-password-form * {
  box-sizing: border-box;
}

body.cayuga-member-host .cml-password-form {
  position: relative;
  width: min(520px, 100%) !important;
  margin: 0 auto !important;
  padding: 57px 56px 38px !important;
  overflow: visible;
  text-align: center;
  border: 1px solid rgba(220, 184, 92, .52);
  border-radius: 28px;
  background: rgba(255, 253, 249, .97);
  box-shadow: 0 18px 50px rgba(0, 48, 112, .13);
}

.cml-lock-mark {
  position: absolute;
  top: -39px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  color: #fff;
  border: 7px solid #f2eee8;
  border-radius: 50%;
  background: #003b86;
  box-shadow: 0 10px 22px rgba(0, 59, 134, .2);
  transform: translateX(-50%);
}

.cml-lock-mark span {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 4px;
}

.cml-lock-mark span::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 4px;
  width: 10px;
  height: 14px;
  border: 2px solid #fff;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
}

.cml-login-eyebrow {
  margin-bottom: 9px;
  color: #dcb85c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
}

body.cayuga-member-host .cml-login-title {
  margin: 0 0 10px !important;
  padding: 0 !important;
  color: #00265f !important;
  border: 0 !important;
  background: transparent !important;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 31px !important;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .06em;
}

.cml-login-lead {
  margin: 0 0 28px !important;
  color: #6c7280;
  font-size: 14px;
  line-height: 1.85;
}

.cml-password-label {
  display: block;
  margin-bottom: 8px;
  color: #263344;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.cml-password-input-wrap {
  position: relative;
}

body.cayuga-member-host .cml-password-input-wrap input {
  display: block !important;
  width: 100% !important;
  height: 58px !important;
  margin: 0 !important;
  padding: 0 65px 0 18px !important;
  color: #263344 !important;
  border: 1px solid #cbc5ba !important;
  border-radius: 12px !important;
  outline: none !important;
  background: #fff !important;
  box-shadow: none !important;
  font-size: 18px !important;
  line-height: 58px !important;
  letter-spacing: .12em;
}

body.cayuga-member-host .cml-password-input-wrap input:focus {
  border-color: #003b86 !important;
  box-shadow: 0 0 0 4px rgba(0, 59, 134, .1) !important;
}

.cml-password-toggle {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 48px;
  height: 40px;
  margin: 0 !important;
  padding: 0 !important;
  color: #003b86 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #edf3fa !important;
  box-shadow: none !important;
  font-size: 11px !important;
  font-weight: 700;
  cursor: pointer;
}

.cml-login-submit {
  display: block !important;
  width: 100% !important;
  height: 58px !important;
  margin: 15px 0 0 !important;
  padding: 0 16px !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #003b86, #00265f) !important;
  box-shadow: 0 9px 20px rgba(0, 38, 95, .23) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: .06em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.cml-login-submit:hover {
  opacity: .92;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 38, 95, .27) !important;
}

.cml-login-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 23px 0 0 !important;
  padding: 13px 14px;
  color: #666d79;
  border-radius: 10px;
  background: #f7f1e6;
  font-size: 12px;
  line-height: 1.7;
  text-align: left;
}

.cml-login-help {
  margin: 18px 0 0 !important;
  color: #6c7280;
  font-size: 12px;
  line-height: 1.7;
}

/* Library */
.cayuga-member-page,
.cayuga-member-page * {
  box-sizing: border-box;
}

.cayuga-member-page {
  --cm-cream: #f2eee8;
  --cm-blue: #003b86;
  --cm-blue-dark: #00265f;
  --cm-gold: #dcb85c;
  --cm-gold-pale: #f6e9c7;
  --cm-ink: #263344;
  --cm-muted: #6c7280;
  --cm-white: #fffdf9;
  position: relative;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-right: calc(50% - 50vw) !important;
  margin-left: calc(50% - 50vw) !important;
  overflow: hidden;
  color: var(--cm-ink);
  background: var(--cm-cream);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

.cayuga-member-page button,
.cayuga-member-page input {
  font: inherit;
}

.cm-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 24px 88px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(0, 38, 95, .88), rgba(0, 59, 134, .76)),
    url("https://cayugaguitar.jp/wp-content/uploads/2026/07/cayuga-blue-music-bg-2x.png") center / cover no-repeat;
}

.cm-hero::after {
  content: "♪";
  position: absolute;
  top: -66px;
  right: 8%;
  color: rgba(255, 255, 255, .08);
  font-family: Georgia, serif;
  font-size: 300px;
  line-height: 1;
  transform: rotate(10deg);
}

.cm-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.cm-logout-link {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  background: rgba(0, 25, 70, .28);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  transition: background .2s ease, transform .2s ease;
}

.cm-logout-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, .18);
  transform: translateY(-1px);
}

.cm-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--cm-gold-pale);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .21em;
}

.cm-hero-kicker::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--cm-gold);
}

.cm-hero h1 {
  margin: 0 0 13px !important;
  padding: 0 !important;
  color: #fff !important;
  border: 0 !important;
  background: transparent !important;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(31px, 4.2vw, 48px) !important;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .055em;
}

.cm-hero p {
  margin: 0 !important;
  color: rgba(255, 255, 255, .86);
  font-size: 15px;
  line-height: 1.8;
}

.cm-library {
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
  padding: 49px 0 100px;
}

/* AFFINGERのmain要素用マージンより優先して中央配置する */
body.cayuga-member-host.cml-unlocked .cayuga-member-page > .cm-library {
  width: calc(100% - 44px) !important;
  max-width: 1120px !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

.cm-notice {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: -80px 0 35px;
  padding: 20px 23px;
  border: 1px solid rgba(220, 184, 92, .44);
  border-radius: 16px;
  background: var(--cm-white);
  box-shadow: 0 12px 30px rgba(0, 48, 112, .11);
}

.cm-notice-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  color: var(--cm-blue);
  border-radius: 50%;
  background: var(--cm-gold-pale);
  font-size: 20px;
  font-weight: 900;
}

.cm-notice strong {
  display: block;
  margin-bottom: 3px;
  color: var(--cm-blue-dark);
  font-size: 14px;
}

.cm-notice span {
  color: var(--cm-muted);
  font-size: 13px;
  line-height: 1.7;
}

.cm-library-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.cm-section-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--cm-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
}

.cm-library-head h2 {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--cm-blue-dark) !important;
  border: 0 !important;
  background: transparent !important;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 29px !important;
  line-height: 1.4;
  letter-spacing: .04em;
}

.cm-search {
  position: relative;
  display: block;
  width: min(390px, 100%);
}

.cm-search::before {
  content: "⌕";
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 2;
  color: var(--cm-blue);
  font-size: 25px;
  line-height: 1;
  transform: translateY(-53%);
  pointer-events: none;
}

.cm-search input {
  width: 100% !important;
  height: 50px !important;
  margin: 0 !important;
  padding: 0 18px 0 46px !important;
  color: var(--cm-ink) !important;
  border: 1px solid #d6cfc4 !important;
  border-radius: 999px !important;
  outline: none !important;
  background: rgba(255, 255, 255, .84) !important;
  box-shadow: none !important;
  font-size: 14px !important;
}

.cm-search input:focus {
  border-color: var(--cm-blue) !important;
  box-shadow: 0 0 0 4px rgba(0, 59, 134, .09) !important;
}

.cm-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 29px;
}

.cm-filter-btn {
  margin: 0 !important;
  padding: 10px 17px !important;
  color: #596372 !important;
  border: 1px solid #cfc7bc !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .58) !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  cursor: pointer;
}

.cm-filter-btn.is-active {
  color: #fff !important;
  border-color: var(--cm-blue) !important;
  background: var(--cm-blue) !important;
  box-shadow: 0 6px 14px rgba(0, 59, 134, .17) !important;
}

.cm-result-count {
  margin: -14px 0 18px !important;
  color: var(--cm-muted);
  font-size: 12px;
  text-align: right;
}

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

.cm-card {
  overflow: hidden;
  border: 1px solid rgba(0, 48, 112, .1);
  border-radius: 18px;
  background: var(--cm-white);
  box-shadow: 0 8px 26px rgba(0, 48, 112, .075);
  transition: transform .2s ease, box-shadow .2s ease;
}

.cm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 48, 112, .12);
}

.cm-card[hidden] {
  display: none !important;
}

.cm-card-preview {
  position: relative;
  display: grid;
  place-items: center;
  height: 175px;
  overflow: hidden;
  background: linear-gradient(145deg, #edf3fa, #ccdaeb);
}

.cm-card-preview.cm-pdf::before {
  content: "";
  width: 112px;
  height: 140px;
  border-radius: 4px;
  background:
    linear-gradient(#d5d9da 0 0) 17px 28px / 78px 2px no-repeat,
    linear-gradient(#d5d9da 0 0) 17px 42px / 69px 2px no-repeat,
    linear-gradient(#d5d9da 0 0) 17px 56px / 76px 2px no-repeat,
    linear-gradient(#d5d9da 0 0) 17px 84px / 72px 2px no-repeat,
    linear-gradient(#d5d9da 0 0) 17px 98px / 64px 2px no-repeat,
    #fff;
  box-shadow: 0 9px 25px rgba(0, 48, 112, .18);
  transform: rotate(-3deg);
}

.cm-card-preview.cm-pdf::after {
  content: "♫";
  position: absolute;
  color: var(--cm-blue);
  font-family: Georgia, serif;
  font-size: 46px;
  transform: translate(10px, 11px) rotate(-5deg);
}

.cm-card-preview.cm-video {
  background: linear-gradient(145deg, #0751a0, #00265f);
}

.cm-card-preview.cm-video::before {
  content: "";
  width: 61px;
  height: 61px;
  border: 2px solid rgba(255, 255, 255, .82);
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}

.cm-card-preview.cm-video::after {
  content: "";
  position: absolute;
  margin-left: 5px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #fff;
}

.cm-type-tag,
.cm-new-tag {
  position: absolute;
  top: 13px;
  z-index: 3;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.cm-type-tag {
  left: 13px;
  padding: 7px 10px;
  color: var(--cm-blue-dark);
  background: rgba(255, 255, 255, .92);
  font-family: Arial, sans-serif;
  letter-spacing: .08em;
}

.cm-new-tag {
  right: 13px;
  padding: 7px 11px;
  color: #fff;
  background: var(--cm-gold);
}

.cm-card-body {
  padding: 19px 19px 20px;
}

.cm-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
  color: #bd9130;
  font-size: 11px;
  font-weight: 700;
}

.cm-card h3 {
  min-height: 48px;
  margin: 0 0 8px !important;
  padding: 0 !important;
  color: var(--cm-blue-dark) !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.5;
}

.cm-card-description {
  min-height: 43px;
  margin: 0 0 17px !important;
  color: var(--cm-muted);
  font-size: 12px;
  line-height: 1.75;
}

.cm-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cm-card-actions.cm-one-button {
  grid-template-columns: 1fr;
}

.cm-card-actions a,
.cm-disabled-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 8px 7px;
  color: var(--cm-blue) !important;
  border: 1px solid var(--cm-blue);
  border-radius: 9px;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none !important;
}

.cm-card-actions a.cm-primary {
  color: #fff !important;
  background: var(--cm-blue);
}

.cm-card-actions a:hover {
  opacity: .86;
  transform: translateY(-1px);
}

.cm-disabled-button {
  color: #8b8f96 !important;
  border-color: #d5d5d5;
  background: #f2f2f2;
}

.cm-empty {
  display: none;
  padding: 60px 20px;
  color: var(--cm-muted);
  border: 1px dashed #c9c1b6;
  border-radius: 16px;
  background: rgba(255, 255, 255, .48);
  text-align: center;
}

.cm-usage-note {
  margin-top: 34px;
  padding: 18px 20px;
  color: var(--cm-muted);
  border-radius: 12px;
  background: rgba(255, 255, 255, .58);
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}

@media screen and (max-width: 900px) {
  .cm-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cm-library-head {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .cm-search {
    width: 100%;
  }
}

@media screen and (max-width: 600px) {
  body.cayuga-member-host.cml-locked .entry-content {
    min-height: calc(100vh - 72px) !important;
    padding: 76px 15px 90px !important;
  }

  body.cayuga-member-host .cml-password-form {
    width: calc(100vw - 30px) !important;
    max-width: 520px !important;
    min-width: 0 !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding: 50px 22px 30px !important;
    border-radius: 21px;
  }

  .cml-lock-mark {
    top: -35px;
    width: 66px;
    height: 66px;
  }

  body.cayuga-member-host .cml-login-title {
    font-size: 25px !important;
  }

  .cml-login-lead {
    font-size: 13px;
  }

  .cm-hero {
    padding: 66px 18px 72px;
  }

  .cm-hero::after {
    top: -28px;
    right: -28px;
    font-size: 190px;
  }

  .cm-hero-kicker {
    margin-bottom: 11px;
    font-size: 11px;
  }

  .cm-logout-link {
    top: -39px;
    padding: 8px 11px;
    font-size: 11px;
  }

  .cm-hero h1 {
    font-size: 27px !important;
    line-height: 1.45;
  }

  .cm-hero p {
    font-size: 13px;
  }

  .cm-library {
    width: calc(100% - 28px);
    padding: 40px 0 88px;
  }

  body.cayuga-member-host.cml-unlocked .cayuga-member-page > .cm-library {
    width: calc(100% - 28px) !important;
  }

  .cm-notice {
    align-items: flex-start;
    gap: 12px;
    margin-top: -68px;
    padding: 16px;
  }

  .cm-notice-icon {
    width: 37px;
    height: 37px;
    font-size: 17px;
  }

  .cm-notice span {
    display: block;
    font-size: 12px;
  }

  .cm-library-head h2 {
    font-size: 24px !important;
  }

  .cm-filters {
    flex-wrap: nowrap;
    gap: 7px;
    margin-right: -14px;
    margin-left: -14px;
    padding: 0 14px 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .cm-filters::-webkit-scrollbar {
    display: none;
  }

  .cm-filter-btn {
    flex: 0 0 auto;
    padding: 9px 14px !important;
  }

  .cm-result-count {
    margin-top: -12px !important;
  }

  .cm-resource-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .cm-card-preview {
    height: 165px;
  }

  .cm-card h3,
  .cm-card-description {
    min-height: 0;
  }

  .cm-usage-note {
    text-align: left;
  }
}
