/* GENAI-RON codex volume cover styles
   Scope: top pages for 叢書001 / 002 / 003 only. */

body.codex-volume{
  --codex-accent:#245c63;
  --codex-accent-deep:#173a34;
  --codex-line:rgba(36,92,99,.38);
}

body.codex-volume .series-header{
  border-bottom:3px solid var(--codex-accent)!important;
  background:rgba(250,247,240,.96)!important;
}

body.codex-volume .series-header-inner{
  align-items:center!important;
  padding:12px 230px 10px 0!important;
}

body.codex-volume .series-brand-main,
body.codex-volume .series-nav a{
  color:var(--codex-accent-deep)!important;
}

body.codex-volume .series-nav{
  flex-wrap:nowrap!important;
  gap:12px!important;
  align-items:center!important;
  justify-content:flex-end!important;
  font-family:"Hiragino Mincho ProN","Yu Mincho",YuMincho,"Noto Serif JP",serif!important;
  font-size:13px!important;
  line-height:1.4!important;
  white-space:nowrap!important;
}

body.codex-volume .series-nav a[aria-current="page"]{
  color:var(--codex-accent-deep)!important;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:.28em;
}

body.codex-volume .appearance-switcher{
  top:7px!important;
  right:10px!important;
  transform:scale(.84)!important;
  transform-origin:top right!important;
  z-index:180!important;
}

body.codex-volume .codex-cover{
  position:relative!important;
  width:min(1040px,calc(100% - 40px))!important;
  margin:0 auto!important;
  padding:54px 0 46px!important;
  border-bottom:4px solid var(--codex-accent)!important;
}

body.codex-volume .codex-cover::before{
  content:""!important;
  position:absolute!important;
  left:0!important;
  top:0!important;
  width:8px!important;
  height:100%!important;
  background:var(--codex-accent)!important;
}

body.codex-volume .codex-cover .series-kicker{
  display:inline-block!important;
  margin:0 0 0 26px!important;
  padding:6px 10px!important;
  border:1px solid var(--codex-accent)!important;
  background:rgba(230,238,233,.55)!important;
  color:var(--codex-accent-deep)!important;
  font-family:"Hiragino Mincho ProN","Yu Mincho",YuMincho,"Noto Serif JP",serif!important;
  font-size:13px!important;
  line-height:1.35!important;
  letter-spacing:.2em!important;
  text-transform:none!important;
}

body.codex-volume .codex-cover .series-kicker::before,
body.codex-volume .codex-cover .series-kicker::after{
  content:none!important;
}

body.codex-volume .codex-cover h1{
  margin:18px 0 0 26px!important;
  max-width:980px!important;
  color:var(--codex-accent-deep)!important;
  font-family:"Hiragino Mincho ProN","Yu Mincho",YuMincho,"Noto Serif JP",serif!important;
  font-size:clamp(42px,5.4vw,72px)!important;
  line-height:1.12!important;
  letter-spacing:-.035em!important;
  font-weight:650!important;
}

body.codex-volume .codex-subtitle{
  margin:18px 0 0 26px!important;
  max-width:900px!important;
  color:var(--codex-accent-deep)!important;
  font-family:"Hiragino Mincho ProN","Yu Mincho",YuMincho,"Noto Serif JP",serif!important;
  font-size:clamp(20px,2.2vw,28px)!important;
  line-height:1.55!important;
  letter-spacing:.06em!important;
}

body.codex-volume .codex-cover .series-subtitle{
  margin:24px 0 0 26px!important;
  max-width:840px!important;
  color:var(--ink,#242424)!important;
  font-family:"Hiragino Mincho ProN","Yu Mincho",YuMincho,"Noto Serif JP",serif!important;
  font-size:clamp(16px,1.55vw,19px)!important;
  line-height:1.82!important;
  letter-spacing:.015em!important;
}

body.codex-volume .codex-credit{
  margin:26px 0 0 26px!important;
  color:var(--subtle,#8a857c)!important;
  font-family:"Hiragino Mincho ProN","Yu Mincho",YuMincho,"Noto Serif JP",serif!important;
  font-size:13px!important;
  line-height:1.7!important;
  letter-spacing:.08em!important;
}

body.codex-volume .codex-main{
  width:min(1040px,calc(100% - 40px))!important;
  margin:34px auto 90px!important;
  font-family:"Hiragino Mincho ProN","Yu Mincho",YuMincho,"Noto Serif JP",serif!important;
}

body.codex-volume .codex-contents h2,
body.codex-volume .codex-note h2{
  color:var(--codex-accent-deep)!important;
  font-family:"Hiragino Mincho ProN","Yu Mincho",YuMincho,"Noto Serif JP",serif!important;
  font-size:clamp(28px,3.2vw,40px)!important;
  font-weight:650!important;
  letter-spacing:-.015em!important;
}

body.codex-volume .article-card{
  grid-template-columns:5.2em minmax(0,1fr)!important;
  padding:18px 0!important;
  border-top-color:rgba(36,92,99,.32)!important;
  font-family:"Hiragino Mincho ProN","Yu Mincho",YuMincho,"Noto Serif JP",serif!important;
}

body.codex-volume .article-number{
  color:var(--codex-accent)!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:20px!important;
  font-weight:700!important;
  letter-spacing:.08em!important;
}

body.codex-volume .article-card h3,
body.codex-volume .article-card h3 a,
body.codex-volume .article-card p,
body.codex-volume .codex-note,
body.codex-volume .codex-note p,
body.codex-volume .codex-note li,
body.codex-volume .codex-note a{
  font-family:"Hiragino Mincho ProN","Yu Mincho",YuMincho,"Noto Serif JP",serif!important;
}

body.codex-volume .article-card h3{
  font-size:22px!important;
  font-weight:650!important;
  line-height:1.45!important;
}

body.codex-volume .article-card h3 a{
  color:var(--codex-accent-deep)!important;
  text-decoration-color:rgba(36,92,99,.35)!important;
}

body.codex-volume .article-card p{
  font-size:15px!important;
  line-height:1.85!important;
}

body.codex-volume .article-phrase{
  border-top-color:rgba(36,92,99,.28)!important;
  color:var(--codex-accent-deep)!important;
  font-size:15px!important;
}

body.codex-volume .codex-note{
  border-top:1px solid rgba(36,92,99,.32)!important;
  padding-top:22px!important;
}

body.codex-volume .codex-related-list{
  display:grid;
  gap:.45em;
  padding-left:1.2em;
}

body.codex-volume .codex-link-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-top:18px;
}

body.codex-volume .codex-link-card{
  border-top:1px solid rgba(36,92,99,.28);
  padding-top:14px;
}

body.codex-volume .codex-link-card h3{
  margin:0 0 6px;
  font-family:"Hiragino Mincho ProN","Yu Mincho",YuMincho,"Noto Serif JP",serif!important;
  font-size:18px;
  line-height:1.45;
}

body.codex-volume .codex-link-card p{
  margin:0;
  font-size:14px;
  line-height:1.75;
}

@media(max-width:980px){
  body.codex-volume .series-header-inner{
    padding-right:190px!important;
  }
  body.codex-volume .series-nav{
    gap:9px!important;
    font-size:12px!important;
  }
}

@media(max-width:720px){
  body.codex-volume .series-header-inner{
    padding-right:0!important;
  }
  body.codex-volume .appearance-switcher{
    transform:scale(.78)!important;
  }
}

@media(max-width:560px){
  body.codex-volume .codex-cover{
    width:min(100% - 28px,1040px)!important;
    padding:42px 0 34px!important;
  }
  body.codex-volume .codex-cover::before{
    width:6px!important;
  }
  body.codex-volume .codex-cover .series-kicker,
  body.codex-volume .codex-cover h1,
  body.codex-volume .codex-subtitle,
  body.codex-volume .codex-cover .series-subtitle,
  body.codex-volume .codex-credit{
    margin-left:18px!important;
  }
  body.codex-volume .codex-cover h1{
    font-size:clamp(38px,11vw,54px)!important;
  }
  body.codex-volume .codex-subtitle{
    font-size:21px!important;
  }
  body.codex-volume .codex-main{
    width:min(100% - 28px,1040px)!important;
  }
  body.codex-volume .article-card{
    grid-template-columns:3.6em minmax(0,1fr)!important;
  }
  body.codex-volume .codex-link-grid{
    grid-template-columns:1fr;
  }
}