/*------------------------------------------------------------------------------
AUTHOR（作者情報）
ABOUT と同じ扉の見出し（共通の .title-door）と、金の縦線・菱形の区切りで組む。文字の大きさの差で見せ、動きは重ねたときだけ。
- メッセージ（.author-message）：左に読む方への呼びかけを縦書きで置き、後ろに金の円の紋（各世界の紋・トップの円窓と同じ形）。
  右の枠に本文と作者名（枠の中は飾りや色づけをしない）
- 公式SNS（.author-social）：サービス名を大きく置いた行（作品の公式と作者）
------------------------------------------------------------------------------*/
.author-page {
  --author-ink: #e4e0d6;
  --author-title: #f7f3ea;
  --author-gold: var(--lv-color-accent-gold);
  --author-gold-light: var(--lv-color-accent-gold-light);
  --author-line: rgba(var(--lv-gold-rgb), 0.38);
  --author-rule: rgba(var(--lv-gold-rgb), 0.16);
  --author-ease: var(--lv-ease-out);
  --author-gutter: max(20px, 6vw);
  display: block;
  /* 紋の菱形などのはみ出しで横にスクロールしないように（clip は sticky を妨げない） */
  overflow-x: hidden;
  overflow-x: clip;
}

/* 区切り：上から降りてくる金の細い縦線と、その先の菱形（ABOUT と同じ） */
.author-divider {
  position: relative;
  display: block;
  width: 1px;
  height: clamp(64px, 11vh, 112px);
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(var(--lv-gold-rgb), 0), var(--author-line));
}
.author-divider::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: -4px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--author-gold);
  transform: rotate(45deg);
}

/*------------------------------------------------------------------------------
メッセージ
左：読む方への呼びかけ（縦書き・散らし書きのように一行ずつ下げる）と、その後ろの金の円の紋。
右：本文と作者名（枠の中は、飾りや色づけをしない）
------------------------------------------------------------------------------*/
.author-message {
  padding: 0 var(--author-gutter) clamp(88px, 13vh, 144px);
}
.author-message__stage {
  display: grid;
  justify-items: center;
  row-gap: 64px;
  max-width: 1120px;
  margin: clamp(48px, 8vh, 88px) auto 0;
}
/* 呼びかけと、紋 */
.author-message__aside {
  --emblem-size: clamp(290px, 82vw, 360px);
  position: relative;
  display: grid;
  place-items: center;
  width: var(--emblem-size);
  height: var(--emblem-size);
  isolation: isolate;
}
.author-message__phrase {
  margin: 0;
  color: var(--author-title);
  font-size: clamp(22px, 6.2vw, 27px);
  font-weight: bold;
  line-height: 2.1;
  letter-spacing: 0.16em;
  text-shadow: 0 0 22px rgba(var(--lv-navy-rgb), 0.85);
  -webkit-writing-mode: vertical-rl;
  writing-mode: vertical-rl;
}
/* 一行ずつ、少しずつ下げて置く */
.author-message__phrase-line {
  display: block;
}
.author-message__phrase-line:nth-child(2) {
  padding-top: 1.2em;
}
.author-message__phrase-line:nth-child(3) {
  padding-top: 2.4em;
}
/* 紋：二重の金の細い輪と、東西南北の菱形。内側に温かな淡い光と、小さな星 */
.author-emblem {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    closest-side,
    rgba(var(--lv-gold-light-rgb), 0.15),
    rgba(var(--lv-gold-light-rgb), 0.05) 58%,
    rgba(var(--lv-gold-light-rgb), 0)
  );
  border: 1px solid rgba(var(--lv-gold-rgb), 0.36);
  border-radius: var(--lv-radius-circle);
  pointer-events: none;
}
.author-emblem::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(var(--lv-gold-rgb), 0.16);
  border-radius: var(--lv-radius-circle);
}
.author-emblem::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(243, 220, 174, 0.95) 0 1px, rgba(243, 220, 174, 0) 2.5px),
    radial-gradient(circle, rgba(243, 220, 174, 0.7) 0 0.8px, rgba(243, 220, 174, 0) 2px),
    radial-gradient(circle, rgba(243, 220, 174, 0.85) 0 1px, rgba(243, 220, 174, 0) 2.5px),
    radial-gradient(circle, rgba(243, 220, 174, 0.6) 0 0.8px, rgba(243, 220, 174, 0) 2px);
  background-position:
    21% 27%,
    80% 22%,
    76% 71%,
    27% 80%;
  background-repeat: no-repeat;
  background-size: 8px 8px;
}
.author-emblem__marks {
  position: absolute;
  inset: 0;
}
.author-emblem__marks--side {
  transform: rotate(90deg);
}
/* 輪の上下（横の組は左右）に、縦長の菱形 */
.author-emblem__marks::before,
.author-emblem__marks::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  background-color: var(--author-gold);
  box-shadow: 0 0 10px rgba(var(--lv-gold-light-rgb), 0.55);
  transform: scaleY(1.7) rotate(45deg);
}
.author-emblem__marks::before {
  top: -4px;
}
.author-emblem__marks::after {
  bottom: -4px;
}
.author-emblem__marks--side::before,
.author-emblem__marks--side::after {
  width: 6px;
  height: 6px;
  margin-left: -3px;
  background-color: var(--author-gold-light);
  box-shadow: none;
}
.author-emblem__marks--side::before {
  top: -3px;
}
.author-emblem__marks--side::after {
  bottom: -3px;
}
/* 本文（右の枠）：飾りや色づけはせず、読みやすさだけを整える */
.author-message__body {
  width: 100%;
  max-width: 38em;
  color: var(--author-ink);
  font-size: clamp(16px, 15px + 0.25vw, 18px);
  font-weight: 500;
  line-height: 2.15;
  letter-spacing: 0.05em;
  text-align: justify;
  line-break: strict;
}
.author-message__body p {
  margin: 0 0 1.7em;
}
.author-message__body .author-message__name {
  margin: 2.4em 0 0;
  text-align: right;
  letter-spacing: 0.3em;
}

/*------------------------------------------------------------------------------
公式SNS
------------------------------------------------------------------------------*/
.author-social {
  padding: clamp(64px, 10vh, 112px) var(--author-gutter) clamp(112px, 17vh, 200px);
}
.author-social__groups {
  display: grid;
  row-gap: 48px;
  max-width: 1120px;
  margin: clamp(40px, 6vh, 64px) auto 0;
}
.author-social__title {
  display: flex;
  align-items: center;
  column-gap: 12px;
  margin: 0;
  padding-bottom: 6px;
  color: var(--author-gold-light);
  font-size: 14px;
  font-weight: normal;
  line-height: 1.6;
  letter-spacing: 0.16em;
}
.author-social__title::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  background-color: var(--author-gold);
  transform: rotate(45deg);
}
.author-social__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--author-rule);
}
.author-sns {
  position: relative;
  display: flex;
  align-items: center;
  column-gap: 18px;
  padding: 20px 6px 20px 0;
  color: var(--author-ink);
  border-bottom: 1px solid var(--author-rule);
  isolation: isolate;
}
/* 重ねたとき：左から淡い金の光、下に金の線 */
.author-sns::before {
  content: "";
  position: absolute;
  inset: 0 -14px;
  z-index: -1;
  background: linear-gradient(90deg, rgba(var(--lv-gold-rgb), 0.12), rgba(var(--lv-gold-rgb), 0) 78%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.author-sns::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--author-gold-light), rgba(var(--lv-gold-rgb), 0.15));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.8s var(--author-ease);
}
.author-sns__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  color: var(--author-gold-light);
  border: 1px solid var(--author-line);
  border-radius: var(--lv-radius-circle);
  transition:
    color 0.45s ease,
    background-color 0.45s ease,
    border-color 0.45s ease;
}
.author-sns__icon .lv-icon {
  width: 18px;
  height: 18px;
  color: currentColor;
}
.author-sns__body {
  display: grid;
  flex: 1 1 auto;
  row-gap: 2px;
  min-width: 0;
  transition: transform 0.6s var(--author-ease);
}
.author-sns__service {
  color: var(--author-title);
  font-size: clamp(26px, 7vw, 34px);
  font-weight: normal;
  line-height: 1.15;
  letter-spacing: 0.04em;
}
.author-sns__account {
  overflow: hidden;
  color: var(--author-gold-light);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 外のサイトへ：右上を指す小さな矢印 */
.author-sns__ext {
  position: relative;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  color: var(--author-gold);
  transition:
    color 0.45s ease,
    transform 0.55s var(--author-ease);
}
.author-sns__ext::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
}
.author-sns__ext::after {
  content: "";
  position: absolute;
  top: 6px;
  left: -1px;
  width: 14px;
  height: 1px;
  background-color: currentColor;
  transform: rotate(-45deg);
}
.author-sns:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--author-gold);
}

/*------------------------------------------------------------------------------
重ねたとき（マウスなど）。キーボードで選んだときも同じに見せる
------------------------------------------------------------------------------*/
@media (hover: hover) {
  .author-sns:hover .author-sns__ext {
    transform: translate3d(3px, -3px, 0);
  }
  .author-sns:hover::before {
    opacity: 1;
  }
  .author-sns:hover::after {
    transform: scaleX(1);
  }
  .author-sns:hover .author-sns__body {
    transform: translate3d(10px, 0, 0);
  }
  .author-sns:hover .author-sns__icon {
    color: var(--lv-color-navy);
    background-color: var(--author-gold-light);
    border-color: var(--author-gold-light);
  }
  .author-sns:hover .author-sns__ext {
    color: var(--author-gold-light);
  }
}
.author-sns:focus-visible::after {
  transform: scaleX(1);
}
.author-sns:focus-visible .author-sns__icon {
  color: var(--lv-color-navy);
  background-color: var(--author-gold-light);
  border-color: var(--author-gold-light);
}

/*------------------------------------------------------------------------------
769px 以上
------------------------------------------------------------------------------*/
@media (min-width: 769px) {
  .author-social__groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(40px, 6vw, 96px);
  }
  .author-sns {
    padding: 26px 8px 26px 0;
  }
  .author-sns__service {
    font-size: clamp(32px, 2.8vw, 46px);
  }
  .author-sns__account {
    font-size: 14px;
  }
}

/*------------------------------------------------------------------------------
1000px 以上：メッセージは、左に呼びかけと紋（読み進めても画面の中ほどに残る）、右に本文
------------------------------------------------------------------------------*/
@media (min-width: 1000px) {
  .author-message__stage {
    grid-template-columns: minmax(360px, 0.9fr) minmax(0, 38em);
    justify-content: center;
    align-items: start;
    column-gap: clamp(56px, 7vw, 120px);
  }
  .author-message__aside {
    --emblem-size: clamp(380px, 30vw, 460px);
    position: sticky;
    top: max(112px, calc(50vh - var(--emblem-size) / 2));
  }
  .author-message__phrase {
    font-size: clamp(28px, 2.3vw, 36px);
  }
  .author-message__body {
    padding-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .author-sns::after {
    transition-duration: 0.01s;
  }
  .author-sns:hover .author-sns__body,
  .author-sns:hover .author-sns__ext {
    transform: none;
  }
}
