
:root {
  --dup-night: #06101b;
  --dup-night-2: #091827;
  --dup-ivory: #f1eee6;
  --dup-paper: #ebe7dc;
  --dup-ink: #121820;
  --dup-ink-soft: rgba(18, 24, 32, .72);
  --dup-line: rgba(195, 207, 221, .13);
  --dup-paper-line: rgba(18, 24, 32, .14);
  --dup-orange: #d96f3d;
}

/* =========================================================
   COCOON CLEANUP
   ========================================================= */

body.dup-active {
  background: var(--dup-night) !important;
}

body.dup-active #header-container,
body.dup-active #navi,
body.dup-active #breadcrumb,
body.dup-active .breadcrumb,
body.dup-active #footer-container,
body.dup-active #footer,
body.dup-active footer.footer {
  display: none !important;
}

body.dup-active #container,
body.dup-active .container,
body.dup-active #content,
body.dup-active #content-in,
body.dup-active .content,
body.dup-active .content-in,
body.dup-active #main,
body.dup-active main.main,
body.dup-active article.article,
body.dup-active .entry-content {
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html:has(body.dup-active),
body.dup-active {
  overflow-x: clip !important;
}

/* =========================================================
   BASE
   ========================================================= */

.dup,
.dup * {
  box-sizing: border-box;
  min-width: 0;
}

.dup {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  background: var(--dup-night);
  color: var(--dup-ivory);
}

.dup a {
  color: inherit;
}

/* =========================================================
   HERO
   ========================================================= */

.dup-hero {
  min-height: 74vh;
  padding: 48px max(42px, calc((100% - 1740px) / 2)) 44px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(circle at 82% 20%, rgba(29,70,123,.18), transparent 34%),
    linear-gradient(145deg, #020822 0%, #061128 50%, #102238 100%);
  border-bottom: 1px solid var(--dup-line);
}

.dup-hero__topline,
.dup-hero__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: rgba(241,238,230,.60);
  font: 600 8px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: .22em;
}

.dup-hero__topline a,
.dup-hero__foot a {
  text-decoration: none !important;
}

.dup-hero__body {
  align-self: center;
  width: min(1200px, 100%);
  padding: 62px 0 50px;
}

.dup-hero__index {
  margin: 0 0 8px;
  color: rgba(217,111,61,.72);
  font: 400 clamp(30px, 3vw, 52px)/1 Georgia, serif;
}

.dup-hero__eyebrow {
  margin: 0 0 24px;
  color: var(--dup-orange);
  font: 600 8px/1 Arial, Helvetica, sans-serif;
  letter-spacing: .21em;
}

.dup-hero__title {
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--dup-ivory) !important;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(50px, 5.8vw, 96px);
  font-weight: 400;
  line-height: 1.16;
}

.dup-hero__title::before,
.dup-hero__title::after {
  display: none !important;
}

.dup-hero__headline {
  margin: 42px 0 0;
  color: rgba(241,238,230,.82);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(26px, 2.5vw, 44px);
  line-height: 1.6;
}

.dup-hero__description {
  max-width: 760px;
  margin: 30px 0 0;
  color: rgba(241,238,230,.50);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 14px;
  line-height: 2;
}

.dup-hero__foot {
  padding-top: 18px;
  border-top: 1px solid rgba(241,238,230,.14);
}

/* =========================================================
   PAPER
   ========================================================= */

.dup-paper {
  background: var(--dup-paper);
  color: var(--dup-ink);
}

.dup-content {
  width: min(calc(100% - 84px), 1260px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 150px minmax(0, 860px);
  gap: 72px;
  justify-content: center;
  padding: 106px 0 122px;
}

.dup-content__rail {
  padding-top: 10px;
}

.dup-content__rail span {
  display: block;
  margin-bottom: 12px;
  color: var(--dup-orange);
  font: 600 8px/1 Arial, Helvetica, sans-serif;
}

.dup-content__rail p {
  margin: 0;
  color: rgba(18,24,32,.42);
  font: 600 7px/1.6 Arial, Helvetica, sans-serif;
  letter-spacing: .16em;
}

.dup-content__body {
  width: 100%;
  max-width: 860px;
  color: var(--dup-ink-soft);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 16px;
  line-height: 2.05;
}

.dup-content__body > *:first-child {
  margin-top: 0 !important;
}

.dup-content__body p {
  margin: 0 0 1.9em;
}

.dup-content__body a {
  color: #7c371b;
  text-underline-offset: 3px;
}

.dup-content__body h2,
.dup-content__body h3,
.dup-content__body h4 {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--dup-ink) !important;
  box-shadow: none !important;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 400;
}

.dup-content__body h2::before,
.dup-content__body h2::after,
.dup-content__body h3::before,
.dup-content__body h3::after,
.dup-content__body h4::before,
.dup-content__body h4::after {
  display: none !important;
}

.dup-content__body h2 {
  margin: 3.4em 0 1.15em;
  padding-top: 1.05em !important;
  border-top: 1px solid var(--dup-paper-line) !important;
  font-size: clamp(27px, 2.5vw, 40px);
  line-height: 1.55;
}

.dup-content__body h3 {
  margin: 2.7em 0 1em;
  font-size: 24px;
}

.dup-content__body hr,
.dup-content__body .wp-block-separator {
  margin: 3.4em 0;
  border: 0;
  border-top: 1px solid var(--dup-paper-line);
}

/* =========================================================
   CONTACT FORM 7
   ========================================================= */

body.dup-contact .dup-content {
  grid-template-columns: 150px minmax(0, 760px);
}

body.dup-contact .dup-content__body {
  max-width: 760px;
}

body.dup-contact .wpcf7 {
  width: 100%;
}

body.dup-contact .wpcf7 p {
  margin-bottom: 28px;
}

body.dup-contact .wpcf7 label {
  display: block;
  color: rgba(18,24,32,.72);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 14px;
  line-height: 1.8;
}

body.dup-contact .wpcf7 input[type="text"],
body.dup-contact .wpcf7 input[type="email"],
body.dup-contact .wpcf7 input[type="url"],
body.dup-contact .wpcf7 input[type="tel"],
body.dup-contact .wpcf7 input[type="number"],
body.dup-contact .wpcf7 textarea,
body.dup-contact .wpcf7 select {
  width: 100% !important;
  margin-top: 9px;
  padding: 14px 14px;
  border: 1px solid rgba(18,24,32,.18) !important;
  border-radius: 0 !important;
  outline: 0;
  background: rgba(255,255,255,.22) !important;
  color: var(--dup-ink) !important;
  box-shadow: none !important;
  font: 400 14px/1.6 Arial, Helvetica, sans-serif;
}

body.dup-contact .wpcf7 textarea {
  min-height: 190px;
  resize: vertical;
}

body.dup-contact .wpcf7 input:focus,
body.dup-contact .wpcf7 textarea:focus,
body.dup-contact .wpcf7 select:focus {
  border-color: rgba(217,111,61,.65) !important;
}

body.dup-contact .wpcf7 input[type="submit"] {
  min-width: 230px;
  padding: 15px 22px !important;
  border: 1px solid var(--dup-orange) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #7c371b !important;
  box-shadow: none !important;
  font: 600 9px/1 Arial, Helvetica, sans-serif !important;
  letter-spacing: .14em;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

body.dup-contact .wpcf7 input[type="submit"]:hover,
body.dup-contact .wpcf7 input[type="submit"]:focus {
  background: var(--dup-orange) !important;
  color: var(--dup-ivory) !important;
}

body.dup-contact .wpcf7 .wpcf7-spinner {
  vertical-align: middle;
}

body.dup-contact .wpcf7 .wpcf7-response-output {
  margin: 28px 0 0 !important;
  padding: 14px 16px !important;
  border: 1px solid rgba(18,24,32,.15) !important;
  color: rgba(18,24,32,.70);
  font-size: 13px;
}

/* =========================================================
   EXIT
   ========================================================= */

.dup-exit {
  width: min(calc(100% - 84px), 1500px);
  margin: 0 auto;
  padding: 86px 0 100px;
}

.dup-exit > p {
  margin: 0 0 24px;
  color: var(--dup-orange);
  font: 600 8px/1 Arial, Helvetica, sans-serif;
  letter-spacing: .18em;
}

.dup-exit a {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding: 28px 0 22px;
  border-top: 1px solid var(--dup-line);
  border-bottom: 1px solid var(--dup-line);
  text-decoration: none !important;
}

.dup-exit a span {
  color: rgba(241,238,230,.38);
  font: 600 8px/1 Arial, Helvetica, sans-serif;
  letter-spacing: .16em;
}

.dup-exit a strong {
  color: var(--dup-ivory);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(28px, 2.8vw, 48px);
  font-weight: 400;
}

/* =========================================================
   FOOTER
   ========================================================= */

.dup-footer {
  border-top: 1px solid var(--dup-line);
  background: #050e18;
}

.dup-footer__inner {
  width: min(calc(100% - 84px), 1500px);
  margin: 0 auto;
  padding: 30px 0 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}

.dup-footer__brand {
  color: var(--dup-ivory) !important;
  text-decoration: none !important;
  font: 500 12px/1.3 Arial, Helvetica, sans-serif;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.dup-footer__brand::before {
  content: "";
  display: block;
  width: 27px;
  height: 1px;
  margin-bottom: 11px;
  background: var(--dup-orange);
}

.dup-footer__nav {
  display: flex;
  justify-content: flex-end;
  gap: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--dup-line);
}

.dup-footer__nav a {
  position: relative;
  padding: 0 17px;
  color: rgba(241,238,230,.66) !important;
  text-decoration: none !important;
  font: 500 8px/1 Arial, Helvetica, sans-serif;
  letter-spacing: .16em;
}

.dup-footer__nav a:first-child {
  padding-left: 0;
}

.dup-footer__nav a:last-child {
  padding-right: 0;
}

.dup-footer__nav a + a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 14px;
  transform: translateY(-50%);
  background: rgba(241,238,230,.15);
}

.dup-footer__copy {
  margin: 9px 0 0;
  color: rgba(241,238,230,.36);
  text-align: right;
  font: 400 8px/1.5 Arial, Helvetica, sans-serif;
  letter-spacing: .08em;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
  .dup-content {
    width: calc(100% - 56px);
    grid-template-columns: 110px minmax(0, 780px);
    gap: 42px;
  }

  body.dup-contact .dup-content {
    grid-template-columns: 110px minmax(0, 700px);
  }

  .dup-exit,
  .dup-footer__inner {
    width: calc(100% - 56px);
  }
}

@media (max-width: 760px) {
  .dup-hero {
    min-height: 66vh;
    padding: 32px 22px 28px;
  }

  .dup-hero__topline,
  .dup-hero__foot {
    font-size: 7px;
    letter-spacing: .14em;
  }

  .dup-hero__body {
    padding: 46px 0 36px;
  }

  .dup-hero__title {
    font-size: clamp(40px, 11vw, 62px);
  }

  .dup-hero__headline {
    margin-top: 30px;
    font-size: 27px;
  }

  .dup-content,
  body.dup-contact .dup-content {
    width: calc(100% - 40px);
    display: block;
    padding: 68px 0 78px;
  }

  .dup-content__rail {
    margin-bottom: 34px;
  }

  .dup-content__body {
    font-size: 15px;
  }

  .dup-exit,
  .dup-footer__inner {
    width: calc(100% - 40px);
  }

  .dup-exit a {
    align-items: start;
    flex-direction: column;
  }

  .dup-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .dup-footer__nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .dup-footer__copy {
    text-align: left;
  }
}


/* =========================================================
   R1.0.1 / REFERRAL PAGE
   dive-referral を「紹介制度の入口」として専用調整。
   ========================================================= */

/* PR disclosure */
body.dup-referral .dup-pr {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 0 0 26px;
  border: 1px solid rgba(217,111,61,.46);
  color: rgba(241,238,230,.66);
  font: 500 7px/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: .08em;
}

body.dup-referral .dup-pr strong {
  padding: 6px 9px;
  color: var(--dup-ivory);
  font: 600 7px/1 Arial, Helvetica, sans-serif;
  letter-spacing: .15em;
}

body.dup-referral .dup-pr span {
  padding: 6px 10px 6px 0;
  border-left: 1px solid rgba(217,111,61,.32);
  padding-left: 10px;
}

/* Referral paper slightly more compact than privacy */
body.dup-referral .dup-content {
  grid-template-columns: 150px minmax(0, 820px);
  padding-top: 96px;
}

body.dup-referral .dup-content__body {
  max-width: 820px;
}

/* Opening paragraph */
body.dup-referral .dup-content__body > p:first-child {
  margin-bottom: 3em;
  color: rgba(18,24,32,.82);
  font-size: 18px;
  line-height: 2;
}

/* Ordered registration steps: turn generic list into numbered process */
body.dup-referral .dup-content__body > ol.wp-block-list {
  margin: 2.2em 0 4em !important;
  padding: 0 !important;
  list-style: none !important;
  counter-reset: dup-ref-step;
  border-top: 1px solid var(--dup-paper-line);
}

body.dup-referral .dup-content__body > ol.wp-block-list > li {
  position: relative;
  min-height: 74px;
  margin: 0 !important;
  padding: 24px 18px 22px 76px !important;
  border-bottom: 1px solid var(--dup-paper-line);
  counter-increment: dup-ref-step;
}

body.dup-referral .dup-content__body > ol.wp-block-list > li::before {
  content: "0" counter(dup-ref-step);
  position: absolute;
  left: 8px;
  top: 27px;
  color: var(--dup-orange);
  font: 600 8px/1 Arial, Helvetica, sans-serif;
  letter-spacing: .08em;
}

/* Referrer information: the strong name becomes an archival data point */
body.dup-referral .dup-content__body p strong .fz-18px {
  display: inline-block;
  margin-left: 8px;
  color: var(--dup-ink);
  font-size: 24px !important;
  font-weight: 400 !important;
  letter-spacing: .03em;
}

/* Official referral form link: prominent but not glossy/button-like */
body.dup-referral .dup-content__body > p > strong > a[href*="docs.google.com/forms"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
  margin: 1em 0 4em;
  padding: 24px 26px;
  border: 1px solid var(--dup-orange);
  background: rgba(217,111,61,.035);
  color: #7c371b !important;
  text-decoration: none !important;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
}

body.dup-referral .dup-content__body > p > strong > a[href*="docs.google.com/forms"]::after {
  content: "↗";
  flex: 0 0 auto;
  color: var(--dup-orange);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
}

/* Direct registration affiliate link: visible, but secondary */
body.dup-referral .dup-content__body a[href*="px.a8.net"] {
  color: #7c371b !important;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* On referral page, separators around referrer data should stay compact */
body.dup-referral .dup-content__body h2 + p + hr,
body.dup-referral .dup-content__body hr + p + hr {
  margin-top: 2em;
  margin-bottom: 2em;
}

@media (max-width: 1100px) {
  body.dup-referral .dup-content {
    grid-template-columns: 110px minmax(0, 760px);
  }
}

@media (max-width: 760px) {
  body.dup-referral .dup-pr {
    gap: 7px;
    margin-bottom: 22px;
    white-space: normal;
  }

  body.dup-referral .dup-pr strong {
    padding: 5px 7px;
    font-size: 6px;
  }

  body.dup-referral .dup-pr span {
    padding: 5px 7px 5px 7px;
    font-size: 6px;
    line-height: 1.5;
  }

  body.dup-referral .dup-content {
    display: block;
    width: calc(100% - 40px);
    padding-top: 68px;
  }

  body.dup-referral .dup-content__body > ol.wp-block-list > li {
    padding-left: 56px !important;
  }

  body.dup-referral .dup-content__body > p > strong > a[href*="docs.google.com/forms"] {
    padding: 20px 18px;
    font-size: 17px;
  }

  body.dup-referral .dup-content__body p strong .fz-18px {
    font-size: 21px !important;
  }
}


/* =========================================================
   R1.0.2 / REFERRAL PR DEDUPLICATION
   Cocoon標準のPR表示を隠し、HERO内の説明付きPRだけ残す。
   ========================================================= */

body.dup-referral > .pr-label,
body.dup-referral > .pr-notice,
body.dup-referral > .ad-label,
body.dup-referral > .entry-pr-label,
body.dup-referral #container > .pr-label,
body.dup-referral #container > .pr-notice,
body.dup-referral #content > .pr-label,
body.dup-referral #content > .pr-notice,
body.dup-referral .article-header > .pr-label,
body.dup-referral .article-header > .ad-label,
body.dup-referral .entry-content > .pr-label,
body.dup-referral .entry-content > .pr-notice {
  display: none !important;
}

/* custom disclosure must remain visible */
body.dup-referral .dup-pr {
  display: inline-flex !important;
}


/* =========================================================
   R1.0.4 / CONTACT REFERRAL LINK
   お友達紹介ページへの導線を明示。
   ========================================================= */

body.dup-contact .dup-content__body .dup-referral-link {
  color: #7c371b !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(217,111,61,.55);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}

body.dup-contact .dup-content__body .dup-referral-link:hover,
body.dup-contact .dup-content__body .dup-referral-link:focus {
  color: #a64e28 !important;
  border-bottom-color: var(--dup-orange);
}

body.dup-contact .dup-content__body .dup-referral-link::after {
  content: " ↗";
  color: var(--dup-orange);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .75em;
  vertical-align: .08em;
}
