/*
 Theme Name: Twenty Twenty one child
 Template: twentytwentyone
 Version: 1.0
*/
html{
  width: 100%;
  background-color: white !important;
}

*{ box-sizing:border-box; }
html,body{ margin:0; }
body{ background: white !important; color:var(--text);
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic","Meiryo",sans-serif;
}
body{
  width: 100% !important;
    background: linear-gradient(to right, #e8f8f6, #faf9ea) !important;
}
@media (max-width: 768px){
  body{
    width: 100% !important;
    background-color: #000;
  }
}

/* ===== header ===== */
/* 既存ベース */
.header-container-01{
  display:flex;
  justify-content:space-between;
  align-items:center;
  height:100%;
  width: 94%;
  border-radius: 8px;
  position: relative;
  padding: 8px 12px;
  margin: auto;
}
@media (max-width: 768px){
  .header-container-01{
    width: 100%;
    margin: 0;
  }
}
.header-logo-container{ height:100%; display:flex; align-items:center; }
.header-logo{ height: 54px; width:auto; }

.header-menu-container {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 40px;
}

.header-menu-container li a {
  text-decoration: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.3s;
}

.menu-en {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(70deg, #29f19c, #02a1f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.menu-ja {
  font-size: 12px;
  font-weight: 500;
  color: black;
  opacity: 0.9;
}

.header-menu-container li a:hover {
  opacity: 0.7;
}

#main-header{
  margin-top: 8px;
  height: 60px !important;
}

/* ① モバイル用トグルの初期状態（PCでは非表示） */
.nav-toggle,
.hamburger { display: none; }

@media (min-width: 769px){
  .header-container-01{
      background-color: white;
  }
}

/* =========================
   768px以下：ハンバーガー化
   ========================= */
@media (max-width: 768px){
  .nav-toggle { 
    position:absolute;
    opacity:0;
    pointer-events:none;
  }
  .header-container-01{
    padding: 0;
  }
  #main-header{
    padding: 8px 12px;
    height: 64px;
    margin-top: 0 !important;
  }
  .header-logo-container{
    height: 60px;
    margin-left: -4px;
  }
  .header-logo{
    height: 60px;
  }
  /* ハンバーガーを右端に配置 */
  .hamburger{
    position: absolute; 
    top: 50%;
    right: 0 !important; 
    transform: translateY(-50%); 
    width: 40px;
    height: 40px;
    display: flex;
    margin-right: 4px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10001;
    padding: 0 !important;
  }
 .hamburger span{
    display:block;
    width: 40px;
    height:4px; 
    margin:8px 0;  
    background: #e40000;
    border-radius:1px;
  }

  /* メニューはデフォルト非表示に */
  .header-menu-container{
    display:none;
    position:absolute;
    top:80px; left:0; right:0;
    flex-direction:column;
    background:#000;
    border-top:1px solid #222;
    padding:12px 24px 16px;
    z-index:10000;
  }
  .header-menu-container li{ border-bottom:1px solid #1a1a1a; }
  .header-menu-container li a{ display:block; padding:14px 0; }

  /* チェックされたら開く */
  .nav-toggle:checked ~ .header-menu-container{ display:flex; }

  /* 開いたときに × にする */
  .nav-toggle:checked + .hamburger span:nth-child(1){
    transform:translateY(7px) rotate(45deg);
  }
  .nav-toggle:checked + .hamburger span:nth-child(2){ opacity:0; }
  .nav-toggle:checked + .hamburger span:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
  }
}

/* ===== contact-page ===== */
.hero{
  display: none;
}
.page-contents-contact{
  padding-top: 120px;
}
@media (max-width: 768px) {
  .page-contents-contact{
  padding-top: 100px !important;
  }
}
.page-content{
  display: flex;
  flex-direction: column;
	align-items: center;
}
.page-container{
  width: 90%;
  padding-left: 0 !important;
}
.page-sub-title-container{
  height: auto;
  margin-top: 16px;
}
.page-subtitle-ja,
.subt-comics-icon,
.subt-stuff-icon,
.subt-stuff-news,
.subt-stuff-character,
.subt-stuff-intro{
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(70deg, #29f19c, #02a1f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.1em;
  font-family: "futura-pt", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;  
}
.page-subtitle-ja::before{
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url("https://tokyo-terumae.com/wp-content/uploads/2025/10/ttg_subt-icon.png") no-repeat center / contain;
  flex: 0 0 22px;
}
.subt-comics-icon::before{
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url("https://tokyo-terumae.com/wp-content/uploads/2025/10/ttg_subt-icon.png") no-repeat center / contain;
  flex: 0 0 22px;
}
.subt-stuff-icon::before{
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url("https://tokyo-terumae.com/wp-content/uploads/2025/10/ttg_subt-icon.png") no-repeat center / contain;
  flex: 0 0 22px;
}
.subt-stuff-news::before{
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url("https://tokyo-terumae.com/wp-content/uploads/2025/10/ttg_subt-icon.png") no-repeat center / contain;
  flex: 0 0 22px;
}
.subt-stuff-character::before{
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url("https://tokyo-terumae.com/wp-content/uploads/2025/10/ttg_subt-icon.png") no-repeat center / contain;
  flex: 0 0 22px;
}
.subt-stuff-intro::before{
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url("https://tokyo-terumae.com/wp-content/uploads/2025/10/ttg_subt-icon.png") no-repeat center / contain;
  flex: 0 0 22px; 
}
.page-block-container-01{
  background-color: white;
  margin-top: 60px;
  padding: 40px 0;
  border-radius: 12px;
  width: 90%;
  display: flex;
  flex-direction: column;
	align-items: center;
}
h2{
  background: linear-gradient(70deg, #29f19c, #02a1f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 30px !important;
  line-height: 1.4;
  letter-spacing: 0.1em !important;
  font-weight: 600 !important;
  font-family: "futura-pt", sans-serif !important;
  margin-left: -4px !important;
}
h2::first-letter {
  font-size: 2em;
  line-height: 1;
}
h4{
  background: linear-gradient(70deg, #29f19c, #02a1f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 24px !important;
  line-height: 1.4;
  letter-spacing: 0.1em !important;
  font-weight: 600 !important;
  font-family: "futura-pt", sans-serif !important;
}
h4::first-letter {
  font-size: 2em;
  line-height: 1;
}
.contact-form-title{
  font-size: 20px;
  color: #4e4e4e;
  line-height: 1.4rem;
  letter-spacing: 0.2em;
  width: 86%;
  margin-bottom: 24px;
}
.wpcf7{
  width: 86%;
}
input[type=text],input[type=email],textarea{
  margin: 0 !important;
  border: 1px solid #cccccc !important;
}
.wpcf-contact-form{
  font-size: 16px;
  letter-spacing: 0.2em;
  color: #4e4e4e;
  font-weight: 400;
  display: inline-block;
  width: 100%;
}
.wpcf7-form-control-wrap{
  display: inline-block;
  width: 100%;
  margin: 0;
}
.wpcf7-submit{
  /* background-color: #fa0758 !important; */
  background: linear-gradient(70deg, #29f19c, #02a1f9);
  width: 100%;
  padding: 8px !important;
  margin-top: 36px;
  border-radius: 128px !important;
  color: white !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  border: none !important;
}
.page-contact-character{
  width: 200px;
  height: 260px;
  text-align: center;
}
.page-contact-character-img{
  max-height: 100%;
  width: auto;
  object-fit: contain;
}


/* ===== info-page ===== */
.page-subtitle-ja-info{
  font-size: 15px;
  font-weight: 700;
}
.page-subtitle-ja-info::before{
  font-family: "Font Awesome 6 Free"; /* 読み込んだフォント名 */
  content: "\f0e0";   /* Font Awesome の envelope アイコン */
  font-weight: 900;   /* solid版は必須 */
  margin-right: 0.5em;
}
.page-block-container-02{
  width: 86%;
  display: flex;
  flex-direction: column;
	align-items: center;
}
.info-text-container{
  margin-top: 24px;
  width: 86%;
  display: flex;
  flex-direction: column;
	align-items: center;
}
.info-text{
  letter-spacing: 0.2em;
  line-height: 1.4rem;
  color: #4e4e4e;
  font-size: 15px;
}

/* ---- INFO page 会社情報テーブル（横罫のみ） ---- */
.kv-table {
  width: 100%;
  border-collapse: collapse; /* 枠をまとめる */
  border: none;              /* ← table の外枠を消す */
  font-size: 16px;
  color: #333;
}
.kv-table th,
.kv-table td {
  padding: 12px 0;
  text-align: left;
  vertical-align: top;
  border: none;                 /* ← デフォルトの縦線を消す */
  border-bottom: 1px solid #ccc; /* 横罫線だけ残す */
}
.kv-table th {
  width: 8em;
  font-weight: normal;
  color: #666;
  padding-right: 1.5em;
  white-space: nowrap;
}
.kv-table td {
  line-height: 1.6;
}


/* ===== footer ===== */
.footer-container{
  width: 100%;
  padding-top: 80px;
  background: linear-gradient(to right, #e8f8f6, #faf9ea);
}
.footer-container-01{
  width: 80%;
  margin: auto;
  padding-bottom: 80px;
}
.footer-logo-img{
  width: 240px;
  height: 152px;
}
.footer-title-container{
  margin-top: 24px;
}
.footer-title{
  font-size: 20px;
  font-weight: 700;
  margin-left: 12px;
}
.footer-title::before{
  font: var(--fa-font-solid); /* solidアイコン用 */
  content: "\f2b4";           /* envelope アイコン */
  margin-right: 0.5em;
}
.footer-menu-container{
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;   /* 左右2列 */
  column-gap: 80px;                 /* 列の間隔 */
  row-gap: 8px;
}
.footer-menu-container a{
  color: #000;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .1em;
}
.footer-menu-container-left{
  width: 40%;
  list-style: none;
}
.footer-menu-container-right{
  width: 40%;
  list-style: none;
}
.footer-list,
.footer-list-first{
  margin-top: 12px;
  margin-left: 8px;
  font-size: 15px;
  letter-spacing: 0.1em;
  line-height: 1.4rem;
}
.footer-container-04{
  background-color: #36290b;
  padding: 16px 0;
  width: 100%;
}
.footer-c-text{
  font-size: 13px;
  color: white;
  letter-spacing: 0.1em;
  text-align: center;
}
@media (max-width: 768px) {
  .footer-menu-container {
    grid-template-columns: 1fr;
    column-gap: 0; 
    row-gap: 0 !important;
  }
  .footer-menu-container-left,
  .footer-menu-container-right {
    width: 100%;   /* ← 40%を解除して全幅に */
    padding-left: 4px;
  }
}


/* ===== front-page ===== */
/* ===== front-page-first-view ===== */
/* 共通 */
/* ===== 全体 ===== */
* { box-sizing: border-box; }
.First-view {
   width: 100%;
   height: auto;
   text-align: center;
   padding-bottom: 24px;
}

/* ラジオは見せない（CSSだけで切替） */
input[type="radio"] { display: none; }

/* メイン画像は共通で高さ揃え */
.first-view-img-02 {
  width: 94%;
  height: 88vh;
  object-fit: cover;
  display: none; 
  border-radius: 8px;
}
.first-view-img-03 {
  width: 94%;
  height: 90vh;
  object-fit: cover;
  display: none; 
  border-radius: 8px;
}

/* ===== PCレイアウト ===== */
.fv-pc-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-image: none !important;
}

/* メイン画像コンテナ */
.fv-pc-container-02 {
  position: relative; 
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== 右下にサムネを横並び配置 ===== */
.fv-pc-selecter-container {
  position: absolute;
  bottom: 12px; 
  left: 48px; 
  display: flex;
  flex-direction: row; 
  gap: 14px; 
  z-index: 10;
}

/* ===== サムネイル画像 ===== */
.fv-pc-selecter {
  width: clamp(120px, 12vw, 160px);
  height: auto;
  object-fit: cover;
  border: 2px solid #fff;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  cursor: pointer;
  opacity: 0.9;
  transition: transform .25s ease, opacity .25s ease;
}

.fv-pc-selecter:hover {
  transform: scale(1.05);
  opacity: 1;
}

/* ===== PC：表示切替（初期=img1表示） ===== */
#pc1:checked ~ .fv-pc-container-02 .img1 { display: block; }
#pc2:checked ~ .fv-pc-container-02 .img2 { display: block; }


/* ===== SPレイアウト ===== */
.fv-sp-container {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.fv-sp-container-02 {
  width: 100%;
  display: flex;
  /* align-items: center; */
  justify-content: center;
}
.fv-sp-selecter-container {
  position: absolute;
  bottom: 8px; 
  left: 16px; 
  display: flex;
  flex-direction: column; 
  gap: 6px; 
  z-index: 10;
  width: auto;
}
.fv-sp-selecter {
  width: 70px;
  height: 110px;
  object-fit: cover;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
  border: 2px solid #fff;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.fv-pc-selecter-lav{
  margin-bottom: 0 !important;
}
.fv-sp-selecter-lav{
  margin-bottom: 0 !important;
}
.fv-sp-selecter:hover { opacity: 1; transform: scale(1.02); }

/* SP：表示切替（初期=img1表示） */
#sp1:checked ~ .fv-sp-container-02 .img1 { display: block; }
#sp2:checked ~ .fv-sp-container-02 .img2 { display: block; }

/* ===== 出し分け ===== */
@media (max-width: 768px) { .fv-pc-container { display: none; } }
@media (min-width: 769px) { .fv-sp-container { display: none; } }

.fv-text-container{
    background: linear-gradient(to bottom, #43ea80, #38f8d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 24px;
}
.fv-text-01{
  line-height: 1.6rem;
  font-weight: 500;
}
.fv-text-02{
  line-height: 1.6rem;
  font-weight: 500;
}


/* ===== front-page-test-reader ===== */
.test-reader {
  background-color: white;
  width: 100%;
  position: relative;
  z-index: 0;
  overflow: visible;        /* この要素で切らない */
  isolation: isolate;       /* スタッキングを独立させる */
}
/* 中のコンテンツを前面に出す */
.test-reader > * {
  position: relative;
  z-index: 1;
}
/* スマホは控えめに */
@media (max-width: 767px){
}

.test-reader-text-container {
  /* position: sticky; */
  top: 0;                     /* 画面上に張り付く */
  height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;    /* ← 中央寄せ。上寄せなら flex-start */
  background: #000;
  color: #fff;
  z-index: 2;
}
.test-reader-text{
  color: white;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 2rem;
  font-family: 'Noto Serif JP', serif;
  text-align: center;
}

.test-reader-logo-container{
  margin-top: 60px;
  width: 100%;
  display: flex;
  justify-content: center;
}
.test-reader-logo{ width: 184px; height: 115px; }
@media (max-width: 768px) {
}

/* ===== front-page-intro ===== */
#fp-news,
#fp-staff{
  background: linear-gradient(to right, #e8f8f6, #faf9ea);
  padding: 120px 0;
}
#fp-introduction {
  position: relative;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: auto 100%; /* 高さを100%に */
  width: 100%;
  padding: 120px 0;
}
@media (min-width: 769px) {
  #fp-introduction {
    background-image: url(https://tokyo-terumae.com/wp-content/uploads/2025/11/ttg_fv-05_pc_v3.jpg);
  }
}
@media (max-width: 768px) {
  #fp-introduction {
    background-image: url(https://tokyo-terumae.com/wp-content/uploads/2025/10/ttg_intro_bg.png);
    background-position: center bottom;
    background-size: cover;
  }
}
#fp-character,
#fp-comics,
#fp-contact{
  padding: 120px 0;
  background-color: #f4f4f4;
}
#fp-introduction a,
#fp-news a,
#fp-character a,
#fp-comics a{
  text-decoration: none;
}
.intro-text-01{
  font-size: 48px;
  line-height: 4.2rem;
  font-weight: 700;
  color: #36290b;
  margin-top: 60px;
  font-family: "fot-tsukubrdgothic-std", sans-serif;
  /* text-align: center; */
}
.intro-text-01-pc {
  display: inline;
}
.intro-text-02{
  font-size: 20px;
  line-height: 1.8rem;
  font-weight: 700;
  color: #36290b;
  margin-top: 24px;
  width: 90%;
  font-family: "fot-tsukubrdgothic-std", sans-serif;
  /* text-align: center; */
}
@media screen and (min-width: 768px) {
  .intro-text-01-pc {
    display: block;
  }
}
@media screen and (max-width: 768px) {
  .intro-text-02{
    font-size: 16px;
    line-height: 1.4rem;
  }
}
.page-link-arasuji{
  padding: 4px 12px;
  border-radius: 15px;
  height: 30px;
  width: 80%;
  display: flex;
  align-items: center; 
}
@media screen and (min-width: 768px) {
  .page-link-arasuji{
   width: 30%; 
   padding: 4px 12px;
  }
}
.page-link{
  margin-top: 48px;
  letter-spacing: 0.1em;
  background: linear-gradient(70deg, #29f19c, #02a1f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 20px;
  font-weight: 700;
  line-height: 1; 
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.page-link-arasuji-a{
  letter-spacing: 0.1em;
  background: linear-gradient(70deg, #29f19c, #02a1f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 20px;
  font-weight: 700;
  line-height: 1; 
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.page-link::before{
  content: "";
  display: inline-block;
  width: 30px;
  height: 30px;
  background: url("https://tokyo-terumae.com/wp-content/uploads/2025/10/ttg_pl-icon.png") no-repeat center / contain;
}
.page-link-arasuji-a::before{
  content: "";
  display: inline-block;
  width: 30px;
  height: 30px;
  background: url("https://tokyo-terumae.com/wp-content/uploads/2025/10/ttg_pl-icon.png") no-repeat center / contain;
}
@media (max-width: 768px) {
  h2{
    font-size: 28px !important;
  }
  .intro-text-01{
    line-height: 1.4;
    font-size: 24px;
    width: 90%;
    margin-top: 24px;
  }
  .page-link,
  .page-link-arasuji-a{
    font-size: 16px;
  }
}


/* ===== front-page-news ===== */
.home-news{
  width: 90%;
}
.home-news h2{
  display: none;
}
.news-list li a{
  font-size: 16px;
}
.no-news{
  font-size: 16px;
  text-align: left;
  width: 90%;
  padding-left: 20px;
  color: #36290b;
}


/* ===== front-page-comics ===== */
.comics-cta-container{
  width: 90%;
  text-align: center;
}
.comics-top-img-container{
  display: flex;
  justify-content: center;
  width: 90%;
}
.comics-top-img-container-02{
  display: flex;
  flex-direction: row;
	align-items: center;
}
.comics-top-img01,
.comics-top-img02,
.comics-top-img03{
  margin: 0 8px;
  width: 200px;
  height: auto;
  border-radius: 4px;
}
.comics-cta-text-01{
  font-size: 40px;
  color: #d00003;
  font-weight: 900;
  line-height: 2rem;
}
.comics-cta-text-02{
  font-size: 20px;
  color: #d00003;
  font-weight: 700;
  line-height: 1.4rem;
  margin-top: 8px;
}
.comics-cta-button-container{
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 16px;
}
.comics-cta-button {
  border: 2px solid white; 
  border-radius: 50px;  
  padding: 8px 16px;
  background: #20df4f;
  cursor: pointer;
  transition: 0.3s;
  width: 40%;
  text-align: center;
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.1em;
  display: inline-block;
}
.comics-cta-button:hover {
  border: 2px solid #20df4f; 
  background: white; 
  color: #20df4f; 
}
.comics-sum{
  width: 90%;
  margin-top: 72px !important;
}
.comics-sum-title{
  line-height: 1.4rem;
  font-weight: 700;
  font-size: 16px;
  background: linear-gradient(70deg, #29f19c, #02a1f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 12px;
  position: relative;
  padding-left: 36px;
}
.comics-sum-title::before{
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: url("https://tokyo-terumae.com/wp-content/uploads/2025/10/ttg_pl-icon.png") center / contain no-repeat;
}
.page-container-front-comic-link,
.page-container-front-character-link{
  width: 90%;
  margin: auto;
  text-align: right;
}
/* カード一覧（PC:4列 / SP:2列） */
.comics-sum-card-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
}
/* 画像・テキスト込みのカード本体 */
.comics-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.comics-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,.16);
}
/* サムネイル画像 */
.comics-sum-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;   /* なくてもOK。比率揃えたいなら使う */
  object-fit: cover;
  display: block;
}
/* テキスト */
.comics-sum-card-text-container {
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1; /* 高さを均一化 */
}
.comics-sum-card-text-01 {
  font-weight: 500;
  margin: 0;
  color: #333;
  line-height: 1.2;
  font-size: 16px;
}
.comics-sum-card-text-02 {
  color: #333;
  line-height: 1.3;
  font-size: 14px;
  margin: 4px 0 0;
}

@media (max-width: 768px) {
  .comics-sum-card-container {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 16px;
  }
  .comics-top-img-container-02{
    margin: 0;
    width: auto;
  }
  .comics-top-img01{
    margin: 0;
  }
  .comics-top-img02,
  .comics-top-img03{
    display: none;
  }
  .comics-cta-text-01{
    font-size: 28px;
  }
  .comics-cta-text-02{
    font-size: 16px;
  }
  .comics-cta-button{
    width: 80%;
    padding: 16px 8px;
  }
  .comics-cta-button-text{
    font-size: 18px;
    letter-spacing: 0;
  }
}


/* front-page-test-reader */
/* 固定ヘッダーの高さ（なければ 0 に） */
:root { --header-h: 80px; }

/* ← 横スクロール領域の改善 */
.comic-viewer{
  --page-h: 70vh;            /* 1ページの高さ */
  --page-aspect: 0.707;      /* 幅/高（例：A判縦を想定 ≒ 0.707）*/
  --page-w: calc(var(--page-h) * var(--page-aspect));
  --gap: 4vw;                 /* ページ間の隙間 */
  --peek: 12vw;               /* 初期表示で右側に“見切らせる”量 */

  background:white;
  height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  /* position: sticky; top:0; */
  z-index: 1;   
  padding: 90px 0;
}
.comic-strip{
  display:flex;
  gap:var(--gap);
  overflow-x:auto;
  overflow-y:hidden;
  width:100vw;
  height:var(--page-h);

  /* 左paddingで1枚目を中央へ、右paddingで“見切れ”を作る */
  padding-left: calc((100vw - var(--page-w)) / 2);
  padding-right: calc((100vw - var(--page-w)) / 2 - var(--peek));

  scroll-snap-type:x mandatory;
  scrollbar-width:none;
}
.comic-strip::-webkit-scrollbar{
  display:none; 
}
.page{
  height:100%;
  width:var(--page-w);
  object-fit:cover;
  border-radius:8px;
  flex:0 0 var(--page-w);
  scroll-snap-align:center;   /* スクロール後は中央で止まる */
}
.scroll-guide{
  background: linear-gradient(to bottom, #43ea80, #38f8d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top:16px;
  letter-spacing:0.1em;
  font-size: 16px;
  font-weight: 500;
}
/* スマホ調整 */
@media (max-width: 768px){
  .comic-viewer{
    --page-h: 64dvh;  /* 高さを少し低めに */
    --gap: 6vw;
    --peek: 18vw;
    /* 画面幅の上限を付ける */
    --page-w: min(calc(var(--page-h) * var(--page-aspect)), 84vw);
  }

  .comic-strip{
    /* 負のpaddingを防止 */
    padding-left: max(calc((100vw - var(--page-w)) / 2), 0px);
    padding-right: max(calc((100vw - var(--page-w)) / 2 - var(--peek)), 0px);
  }
}


/* ===== front-page-staff ===== */
.credit-section {
  display: grid;
  grid-template-columns: 1fr 1fr; /* PCでは2列 */
  gap: 48px 48px; /* 行間・列間 */
  width: 70%;
  margin: 0 auto;
}
.credit-item {
  display: flex;
  flex-direction: column;
}
.credit-role {
  font-size: 16px;
  color: #36290b;
  margin: 0 0 4px;
  letter-spacing: 0.05em;
  line-height: 1; 
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "fot-tsukubrdgothic-std", sans-serif;
}
.credit-role::before{
  content: "";
  display: inline-block;
  width: 30px;
  height: 30px;
  background: url("https://tokyo-terumae.com/wp-content/uploads/2025/10/ttg_pl-icon.png") no-repeat center / contain;
}
.credit-name {
  font-size: 24px;
  font-weight: 700;
  margin-top: 16px;
  letter-spacing: 0.2em;
  line-height: 1.6rem;
  color: #36290b;
  font-family: "fot-tsukubrdgothic-std", sans-serif;
}

@media (max-width: 768px) {
  .credit-section{
    gap: 36px !important;
  }
  .credit-role{
    font-size: 14px;
  }
  .credit-name{
    margin-top: 8px;
    line-height: 2rem;
  }
}


/* front-page-contact */
.contact-button {
  display: flex;
  flex-direction: column; /* 縦に並べる */
  align-items: center;    /* 横方向の中央揃え */
  gap: 15px;              /* ボタン同士の間隔 */
  margin: 40px 0;         /* 上下の余白 */
  width: 100%;
}
.contact-button-02,
.contact-button-03 {
  background-color: white;
  border-radius: 50px; 
  padding: 12px 30px;
  background: linear-gradient(70deg, #29f19c, #02a1f9);
  cursor: pointer;
  transition: 0.3s;
  width: 40%;
  text-align: center;
  text-decoration: none;
  border: none;
}
.contact-button-text {
  color: white;
  font-weight: 400;
  margin: 0;
  font-size: 18px;
}

@media (max-width: 768px) {
  .credit-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .contact-button{
    gap: 32px;
  }
  .contact-button-02,
  .contact-button-03 {
    width: 70%;
    padding: 12px;
  }
  .contact-button-text{
    font-size: 16px;
  }
}


/* front-page-character */
/* ベース */
/* ===================== 基本（変数） ===================== */
.chars{
  --thumb-size: 72px;
  --thumb-gap: 16px;
  --accent: #ff3b65;

  display:grid;
  place-items:center;
  min-height:80vh;
  margin:0 !important;
}

/* ラジオは非表示（状態だけ使う） */
.chars input[type="radio"]{ position:absolute; opacity:0; pointer-events:none; }

/* ===================== レイアウト ===================== */
.chars-inner{
  max-width:1200px;
  width:min(92vw,1200px);
  margin:0 auto;
  display:flex;
  justify-content:center;   /* 中身を中央に */
  align-items:flex-start;
  gap:40px;
}

/* 左：カード（60%） */
.card{
  flex:0 0 64%;
  background:#fff;
  border-radius:24px;
  padding:24px 24px 36px 24px;
  box-shadow:0 14px 40px rgba(0,0,0,.15);
  display:flex;
  /* gap:24px; */
  align-items: stretch;
}

/* 画像側 30% */
.card-illust{
  flex:0 0 30%;
  position:relative;
  min-height:320px;
}
.card-illust .ill{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:contain;
  opacity:0; visibility:hidden; transition:opacity .25s ease;
}

/* テキスト側 70% */
.card-text{
  flex:0 0 70%;
  position:relative;
  max-height: 400px;  
  overflow: auto;   
  padding-right: 8px;
}
.card-text .tx {
  position: static;
  display: none;  
  opacity: 1; 
  visibility: visible;
  padding: 16px;
  line-height: 1.8;
  align-items: flex-start;
  justify-content: flex-start;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.en{
  font-size: 14px;
  line-height: 1rem;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.jp-name{
  font-size: 24px !important;
  letter-spacing: 0.1em;
  color: #ff3b65 !important;
  font-weight: 500;
  line-height: 1.4rem;
  margin-bottom: 8px;
}
.desc{
  font-size: 15px;
  margin-top: 16px;
}
.card-text::-webkit-scrollbar { width: 6px; }
.card-text::-webkit-scrollbar-thumb { background: #ddd; border-radius: 8px; }


/* ===== PCだけ：カード固定高さ＋中身スクロール ===== */
@media (min-width: 769px) {
  .card{
    height: 400px;
    align-items: stretch;
  }
  .card-illust,
  .card-text{
    height: 100%;
    min-height: 0;
  }
  .card-text{
    overflow: auto;
    padding-right: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .card-illust .ill{
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

/* 右：サムネ（30%） */
.thumbs{
  display: grid;
  grid-template-columns: repeat(2, var(--thumb-size));
  grid-auto-rows: var(--thumb-size);
  gap: var(--thumb-gap);
  width: calc(var(--thumb-size) * 2 + var(--thumb-gap));
  height: auto;      
  align-self: center;   
  align-content: start; 
}
.thumb{
  width:100%; aspect-ratio:1/1;   
  border-radius:16px; overflow:hidden;
  background:#f2f2f2; cursor:pointer;
  outline:3px solid transparent;
  transition:transform .15s, box-shadow .15s, outline-color .15s;
  display:grid; place-items:center;
}
.thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.thumb:hover{ transform:translateY(-2px); }

/* ===================== 切替（:checked） ===================== */
/* 画像とテキストの表示切替、サムネのハイライト */
#ch-1:checked ~ .chars-inner .card-illust .ill-1,
#ch-2:checked ~ .chars-inner .card-illust .ill-2,
#ch-3:checked ~ .chars-inner .card-illust .ill-3,
#ch-4:checked ~ .chars-inner .card-illust .ill-4,
#ch-5:checked ~ .chars-inner .card-illust .ill-5,
#ch-6:checked ~ .chars-inner .card-illust .ill-6,
#ch-7:checked ~ .chars-inner .card-illust .ill-7,
#ch-8:checked ~ .chars-inner .card-illust .ill-8{
  opacity:1;
  visibility:visible;
}

#ch-1:checked ~ .chars-inner .card-text .tx-1,
#ch-2:checked ~ .chars-inner .card-text .tx-2,
#ch-3:checked ~ .chars-inner .card-text .tx-3,
#ch-4:checked ~ .chars-inner .card-text .tx-4,
#ch-5:checked ~ .chars-inner .card-text .tx-5,
#ch-6:checked ~ .chars-inner .card-text .tx-6,
#ch-7:checked ~ .chars-inner .card-text .tx-7,
#ch-8:checked ~ .chars-inner .card-text .tx-8 {
  display: block;
}

#ch-1:checked ~ .chars-inner .thumbs label[for="ch-1"],
#ch-2:checked ~ .chars-inner .thumbs label[for="ch-2"],
#ch-3:checked ~ .chars-inner .thumbs label[for="ch-3"],
#ch-4:checked ~ .chars-inner .thumbs label[for="ch-4"],
#ch-5:checked ~ .chars-inner .thumbs label[for="ch-5"],
#ch-6:checked ~ .chars-inner .thumbs label[for="ch-6"],
#ch-7:checked ~ .chars-inner .thumbs label[for="ch-7"],
#ch-8:checked ~ .chars-inner .thumbs label[for="ch-8"]{
  outline-color:var(--accent);
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--accent);
  transform: translateY(-2px);
}

/* ===================== レスポンシブ ===================== */
/* 768px以下：縦積み、サムネは横4列×縦2行 */
@media (max-width: 768px){
  .chars-inner{ flex-direction:column; align-items:center; gap:24px; width:min(88vw);}
  .card{ flex:0 0 auto; width:100%; flex-direction:column; margin-top: 20px; gap: 8px;}
  .card-illust, .card-text{ flex:0 0 auto; width:100%; min-height:auto; }
  .card-illust{ min-height:300px; }

  /* 横4列×縦2行を“塊ごと”中央寄せ */
  .thumbs{
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(4, var(--thumb-size));
    grid-auto-rows: var(--thumb-size);
    gap: var(--thumb-gap, 8px);
    width :100%;   /* コンテンツ幅に縮める */
    margin: 0 auto;       /* 塊を横中央に */
    justify-content: center;
    justify-items: center;
  }

  /* 各サムネの実寸を固定（セルいっぱいに広げない） */
  .thumb{
    width: 70px;
    height: 70px;
  }

  /* 既存の中の一番下あたりに追加 */
  .card-text .tx{
    position: static;      /* ← absolute をやめる */
    display: none;         /* 非表示（選択中だけ後で表示） */
    opacity: 1;            /* フェード制御は不要 */
    visibility: visible;
    padding: 16px 8px;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /* これも同じ @media 内に追加 */
  #ch-1:checked ~ .chars-inner .card-text .tx-1,
  #ch-2:checked ~ .chars-inner .card-text .tx-2,
  #ch-3:checked ~ .chars-inner .card-text .tx-3,
  #ch-4:checked ~ .chars-inner .card-text .tx-4,
  #ch-5:checked ~ .chars-inner .card-text .tx-5,
  #ch-6:checked ~ .chars-inner .card-text .tx-6,
  #ch-7:checked ~ .chars-inner .card-text .tx-7,
  #ch-8:checked ~ .chars-inner .card-text .tx-8{
  display: block;        /* ← 高さが確保され、はみ出し防止 */
  }
}



/* comic-page-settings */
.entry-header{
  display: none;
}
.entry-content{
  padding-top: 80px !important;
  margin-top: 0 !important;
}
.entry-content img{
  width: 100%;
  height: auto;
}
#comments{
  display: none;
}
.nav-previous{
  text-align: left;
}
.nav-next{
  text-align: right;
}
.meta-nav,
.post-title{
  font-size: 15px !important;
}


/* グリッド配置 */
.storyline-comic-block{
  width: 68%;
  margin: auto;
}
.storyline-comic-list{
  list-style:none; margin:0; padding:0;
  display:grid; gap:16px;
  grid-template-columns: repeat(4, 1fr);   /* PCは4列固定 */
  margin-top: 24px;
}
/* 各カード */
.storyline-comic-item{
  background:#322d29; border-radius:12px; overflow:hidden;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
}
/* 画像→タイトルの縦並び */
.storyline-comic-link{
  display:flex;
  flex-direction: column;
  text-decoration:none; color:inherit;
  height:100%;
}
/* サムネコンテナ */
.storyline-thumb{
  position: relative;
  width:100%;
  overflow:hidden;
  /* background:#f2f2f2; */
  background:#322d29;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* サムネ画像：比率そのまま */
.storyline-thumb img{
  width:100%;          /* 横幅をカードにフィット */
  height:auto;         /* 縦は自動調整 */
  object-fit: contain; /* 余白が出ても切れない */
  display:block;
  background:white;
}
/* メタ＆タイトル */
.storyline-meta{
  padding:12px 14px;
  display:flex; flex-direction:column; gap:6px;
}
.storyline-meta time{
  font-size:.7rem;
  /* color:#666; */
  color: white;
  line-height: 1rem;
}
.storyline-comic-title{
  font-size: 24px !important;
  font-weight: 700;
}
.storyline-episode-title{
  font-size:.7rem;
  /* color:#666; */
  color: white;
  line-height: 1rem;
}
/* ホバー */
.storyline-comic-item:hover{
  transform: translateY(-2px);
  box-shadow:0 10px 24px rgba(0,0,0,.12);
  transition:.2s ease;
}
/* スマホ */
@media (max-width: 768px){
  .storyline-comic-block{ width: 90%; }
  .storyline-comic-title{font-size: 18px !important;}
  .storyline-comic-list{ grid-template-columns: repeat(2, 1fr); }
  .storyline-episode-title{ font-size: 14px; }
}


/* STORY */
/* ベース */
/* :root { color-scheme: dark; } */
body {
  margin: 0;
  padding: 40px 16px;
  background: #202425;
  color: #f5f5f5;
  font-family: "Noto Sans JP", system-ui, sans-serif;
}
main{
  padding-top: 76px;
}
/* =========================================================
   共通：ルート
========================================================= */
.episode-selector-root{
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

/* ラジオ（非表示） */
.episode-selector-root > input[type="radio"]{
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

/* PC は story-pc を表示し、SP は story-sp を表示 */
.story-pc { display:block; }
.story-sp { display:none; }

/* =========================================================
   PC 専用：2 カラム
========================================================= */
.story-2col{
  display:grid;
  grid-template-columns: clamp(260px, 30vw, 360px) 1fr;
  gap:28px;
  align-items:start;
}

.story-right{
  display:flex;
  flex-direction:column;
  gap:20px;
  padding:12px 24px;
}

/* ===== タブ（右カラム） ===== */
.tabs{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  margin-bottom:10px;
}

.tabs label{
  display:flex;
  align-items:center;
  justify-content:center;
  height:40px;
  background:rgba(255,255,255,.85);
  color:#222;
  box-shadow:0 6px 18px rgba(0,0,0,.25);
  font-weight:500;
  font-size:16px;
  letter-spacing:.06em;
  cursor:pointer;
  transition:transform .12s, background .12s, box-shadow .12s;
}

.tabs label:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.95);
}

/* ===== PC：選択タブ状態 ===== */
#ep1:checked ~ .story-pc .tabs label[for="ep1"],
#ep2:checked ~ .story-pc .tabs label[for="ep2"],
#ep3:checked ~ .story-pc .tabs label[for="ep3"],
#ep4:checked ~ .story-pc .tabs label[for="ep4"],
#ep5:checked ~ .story-pc .tabs label[for="ep5"],
#ep6:checked ~ .story-pc .tabs label[for="ep6"],
#ep7:checked ~ .story-pc .tabs label[for="ep7"],
#ep8:checked ~ .story-pc .tabs label[for="ep8"]{
  background:#fff;
  box-shadow:0 10px 24px rgba(0,0,0,.35);
}

/* ===== PC：左右の内容切替 ===== */
.contents-left .content,
.contents-right .content{
  display:none;
  animation:fade .25s ease;
}

/* 左＝漫画 */
#ep1:checked ~ .story-pc .contents-left #content1-left,
#ep2:checked ~ .story-pc .contents-left #content2-left,
#ep3:checked ~ .story-pc .contents-left #content3-left,
#ep4:checked ~ .story-pc .contents-left #content4-left,
#ep5:checked ~ .story-pc .contents-left #content5-left,
#ep6:checked ~ .story-pc .contents-left #content6-left,
#ep7:checked ~ .story-pc .contents-left #content7-left,
#ep8:checked ~ .story-pc .contents-left #content8-left{
  display:block;
}

/* 右＝本文 */
#ep1:checked ~ .story-pc .contents-right #content1-right,
#ep2:checked ~ .story-pc .contents-right #content2-right,
#ep3:checked ~ .story-pc .contents-right #content3-right,
#ep4:checked ~ .story-pc .contents-right #content4-right,
#ep5:checked ~ .story-pc .contents-right #content5-right,
#ep6:checked ~ .story-pc .contents-right #content6-right,
#ep7:checked ~ .story-pc .contents-right #content7-right,
#ep8:checked ~ .story-pc .contents-right #content8-right{
  display:block;
}

/* ===== タイトル・本文 ===== */
.contents-right h4{
  margin:10px 0 8px;
  font-size:clamp(22px,3.2vw,32px);
  font-weight:800;
  letter-spacing:.08em;
  color:#16a3a0;
}

.story{
  margin:0;
  line-height:1.9;
  font-size:clamp(14px,2vw,16px);
  color:#36290b;
}

/* =========================================================
   PC：漫画カルーセル
========================================================= */
.carousel{
  width:100%;
  max-height:82vh;
  overflow-x:auto;
  overflow-y:hidden;
  display:flex;
  gap:12px;
  scroll-snap-type:x mandatory;
  padding-bottom:6px;
  -webkit-overflow-scrolling:touch;
}

.carousel img{
  flex: 0 0 100%;
  width:100%;
  height:auto;
  object-fit:contain;
  box-shadow:0 8px 24px rgba(0,0,0,.35);
  scroll-snap-align:center;
}

@media (min-width:768px){
  .carousel{ max-height:80vh; }
}

/* キャラ画像 */
.page-contact-character{text-align:center;}
.page-contact-character-img{max-width:100%;height:auto;display:block;}

/* フェード */
@keyframes fade{
  from{opacity:0; transform:translateY(6px);}
  to  {opacity:1; transform:translateY(0);}
}

/* =========================================================
   SP 専用：縦並び
========================================================= */
.tabs-sp{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  row-gap: 4px;
  column-gap: 8px;
  margin-bottom:32px;
}

.tabs-sp label{
  display:flex;
  align-items:center;
  justify-content:center;
  height:40px;
  background:#fff;
  color:#222;
  box-shadow:0 6px 18px rgba(0,0,0,.25);
  font-size:16px;
  font-weight:500;
  cursor:pointer;
  transition:transform .12s, background .12s;
}

/* SP 選択中 */
#ep1:checked ~ .story-sp .tabs-sp label[for="ep1"],
#ep2:checked ~ .story-sp .tabs-sp label[for="ep2"],
#ep3:checked ~ .story-sp .tabs-sp label[for="ep3"],
#ep4:checked ~ .story-sp .tabs-sp label[for="ep4"],
#ep5:checked ~ .story-sp .tabs-sp label[for="ep5"],
#ep6:checked ~ .story-sp .tabs-sp label[for="ep6"],
#ep7:checked ~ .story-sp .tabs-sp label[for="ep7"],
#ep8:checked ~ .story-sp .tabs-sp label[for="ep8"]{
  background:#16a3a0;
  color:#fff;
}

/* SP 本文 */
.contents-sp .content{ display:none; animation:fade .25s; }

#ep1:checked ~ .story-sp .contents-sp #sp-content1,
#ep2:checked ~ .story-sp .contents-sp #sp-content2,
#ep3:checked ~ .story-sp .contents-sp #sp-content3,
#ep4:checked ~ .story-sp .contents-sp #sp-content4,
#ep5:checked ~ .story-sp .contents-sp #sp-content5,
#ep6:checked ~ .story-sp .contents-sp #sp-content6,
#ep7:checked ~ .story-sp .contents-sp #sp-content7,
#ep8:checked ~ .story-sp .contents-sp #sp-content8{
  display:block;
}

/* SP 漫画 */
.manga-sp .content{ display:none; }

#ep1:checked ~ .story-sp .manga-sp #sp-manga1,
#ep2:checked ~ .story-sp .manga-sp #sp-manga2,
#ep3:checked ~ .story-sp .manga-sp #sp-manga3,
#ep4:checked ~ .story-sp .manga-sp #sp-manga4,
#ep5:checked ~ .story-sp .manga-sp #sp-manga5,
#ep6:checked ~ .story-sp .manga-sp #sp-manga6,
#ep7:checked ~ .story-sp .manga-sp #sp-manga7,
#ep8:checked ~ .story-sp .manga-sp #sp-manga8{
  display:block;
}

.character-sp{
  margin:32px auto 0;
  text-align:center;
}

/* SP キャラ */
@media (max-width: 768px){
  .manga-sp{
    margin-top: 32px;
  }
  .story-sp .page-contact-character-img{
    height:200px;
    width:auto;
    object-fit:contain;
  }
  .character-sp{
    text-align: center;
    margin-top: 48px;
  }
  .character-sp .page-contact-character-img{
    margin-left: auto;
    margin-right: auto;      /* ← ブロック要素の中央寄せ */
    display: block;
    height: 200px;           /* ← 前に指定した高さ制限 */
    width: auto;
    object-fit: contain;
  }
  .tabs-sp label{
    box-shadow: 0 4px 10px rgba(0,0,0,.18);  /* 既存より弱め・短め */
  }
}

/* =========================================================
   SP 切り替え
========================================================= */
@media (max-width: 768px){
  .story-pc{ display:none; }
  .story-sp{ display:block; }
}



/* CHARACTER-PAGE */
.chara-group-image-container{
  width: 100%;
  position: relative;
  display: block;
  line-height: 0;
}
.chara-group-image-sp,
.chara-group-image-pc{
  width: 100%;
  height: auto;
  display: block;
}
@media (min-width: 768px) {
  .chara-group-image-sp{
    display: none;
  }
}
@media (max-width: 768px) {
  .chara-group-image-pc{
    display: none;
  }
}


/* ==================== ピン（横一列に張ってYを決める） ==================== */
/* ===== ラジオにするので input は透明化 ===== */
.chara-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* ===== 画像の上にピンを並べる土台 ===== */
.chara-group-image-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* 画像（SP/PCの出し分け） */
.chara-group-image-sp,
.chara-group-image-pc {
  display: block;
  width: 100%;
  height: auto;
}
@media (min-width: 768px) {
  .chara-group-image-sp { display: none; }
  .chara-group-image-pc { display: block; }
}
@media (max-width: 767.98px) {
  .chara-group-image-sp { display: block; }
  .chara-group-image-pc { display: none; }
}

/* ===== キャラピン（全体） ===== */
.chara-pin {
  position: absolute;
  inset-inline: 0; /* 横いっぱい */
  top: var(--y);          /* この値はHTMLのy座標にて制御 */

  /* PC用をデフォルトに（--x-pc, --y-pcを使う） */
  --x: var(--x-pc);
  --y: var(--y-pc);

  isolation: isolate;
}

/* SPのときだけSP用座標に切り替え */
@media (max-width: 768px) {
  .chara-pin {
    --x: var(--x-sp);
    --y: var(--y-sp);
  }
}


/* ===== ドット（タップ目印） ===== */
.chara-dot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #00e1b4 0%, #07b6ff 100%);
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: none;
  z-index: 1; /* バックドロップより前、ポップアップよりは下でもOK */
}
.chara-dot:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

/* タップ領域拡張 */
.chara-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: transparent;
  pointer-events: auto;
}

/* ===== ポップアップ ===== */
.chara-tip {
  position: absolute;
  z-index: 3; /* バックドロップ(2)より前 */
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 10px);
  width: min(80vw, calc(100% - 32px));
  max-height: 60vh;
  overflow: auto;
  padding: 16px 18px;
  border-radius: 10px;
  background: #fff;
  color: #0c1222;
  border: 1px solid rgba(105,214,255,.35);
  box-shadow: 0 14px 36px rgba(0,0,0,.18);
  font-size: 14px;
  line-height: 1.7;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

/* 矢印（三角） */
.chara-tip::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 100%;
  border: 8px solid transparent;
  border-bottom-color: #fff;
  filter: drop-shadow(0 -1px 0 rgba(105,214,255,.35));
}

/* ラジオONで表示 */
.chara-toggle:checked ~ .chara-tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-2px);
  pointer-events: auto;
}

/* ===== 外タップで閉じる：全画面のバックドロップ ===== */
.chara-backdrop {
  display: none;
  position: fixed;  /* 画面全体 */
  inset: 0;
  z-index: 2;       /* ドットより上、ポップアップよりは下 */
  background: transparent; /* 半透明にしたい場合は rgba(0,0,0,.25) など */
  cursor: default;
}

/* このピンが開いているときだけ出す */
.chara-toggle:checked ~ .chara-backdrop {
  display: block;
}

/* 開いている間はドットを隠す（任意） */
/* .chara-toggle:checked ~ .chara-dot {
  display: none;
} */

/* 上側に出したい場合（任意） */
.chara-pin.place-top .chara-tip {
  top: auto;
  bottom: calc(100% + 10px);
}
.chara-pin.place-top .chara-tip::before {
  bottom: auto;
  top: 100%;
  border: 8px solid transparent;
  border-top-color: #fff;
  filter: drop-shadow(0 1px 0 rgba(105,214,255,.35));
}

/* ノッチ端末の安全域（任意） */
@supports (padding: max(0px)) {
  .chara-tip {
    padding-inline: max(16px, env(safe-area-inset-left) + 8px)
                    max(16px, env(safe-area-inset-right) + 8px);
  }
}
/* 何かのピンが開いているときは、いったん全ドットを隠す */
.chara-group-image-container:has(.chara-toggle:checked:not(#chara-none)) .chara-dot{
  opacity: 0;
  pointer-events: none;
}

/* ただし“開いているピン”のドットだけは表示＆クリック可に戻す */
.chara-toggle:checked ~ .chara-dot{
  opacity: 1;
  pointer-events: auto;
}


/* 背景（4秒後に消える） */
.intro {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(70deg, #29f19c, #02a1f9);
  z-index: 9999;
  animation: overlay-out 4s ease-out forwards; /* ← これを追加！ */
}

/* ロゴだけアニメーションさせる */
.intro__logo {
  font: 800 28px/1.1 "Noto Serif JP", serif;
  color: #fff;
  letter-spacing: 0.15em;
  opacity: 0;
  transform: translateY(10px) rotate(-5deg) scale(0.9);
  animation: logo-in-out 4s ease-out forwards;
}
.sp-br {
  display: none;
}

/* SPのときだけイントロを縦書きに */
@media (max-width: 768px) {
  .intro__logo{
    writing-mode: vertical-rl;
    text-orientation: upright; 
    letter-spacing: 0.3em;
    line-height: 2.2rem;
  }
  .sp-br {
    display: block;
  }
}

/* ロゴアニメーション定義（ゆっくり見せる） */
@keyframes logo-in-out {
  0%   { opacity: 0; transform: translateY(10px) rotate(-5deg) scale(0.9); }
  25%  { opacity: 1; transform: translateY(0) rotate(0deg) scale(1.1); }
  60%  { opacity: 1; transform: translateY(0) rotate(0deg) scale(1.0); }
  100% { opacity: 0; transform: translateY(-10px) rotate(5deg) scale(0.95); }
}

/* 背景オーバーレイのフェードアウト */
@keyframes overlay-out {
  0%, 90% { opacity: 1; }
  100%    { opacity: 0; visibility: hidden; }
}

.skip-intro #intro { display: none !important; }

/* 相関図説明POPUP */
.hint { position: fixed; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,.5); z-index: 10000; padding: 24px; }
.hint.is-hidden { display: none; }
.hint__box { background: #fff; border-radius: 12px; padding: 20px 24px;
  max-width: 520px; width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,.2); }
.hint__title { margin: 0 0 8px; font: 700 18px/1.4 "Noto Sans JP", sans-serif; }
.hint__text { margin: 0 0 16px; font-size: 14px; line-height: 1.7; }
.hint__close { display: inline-block; padding: 10px 16px; border: 0; border-radius: 8px;
  background: #0ea5e9; color: #fff; font-weight: 700; cursor: pointer; }
.hint__close:hover { filter: brightness(1.05); }
@media (prefers-reduced-motion: reduce) { .hint, .hint__box { transition: none; } }