@charset "UTF-8";

/* ヘッダー（top.cssから共通部分を引き継ぎ） */
.header {
  height: 80px;
  width: 100%;
  background-color: #f84c89;
  position: relative;
}
.header__logo {
  position: absolute;
  left: 10px;
  top: 13px;
}
.header__logo img {
  width: auto;
  height: 54px;
  padding: 0;
}
.header__navigation {
  display: none;
}
@media (max-width: 1130px) {
  #nav-drawer {
    padding: 25px 24px 0 0;
    text-align: right;
    position: relative;
  }
  #nav-open {
    display: inline-block;
    vertical-align: middle;
    width: 30px;
    height: 22px;
  }
  #nav-open span, #nav-open span:before, #nav-open span:after {
    position: absolute;
    height: 3px;
    width: 30px;
    background-color: #FFF;
    display: block;
    content: "";
  }
  #nav-open span:before { bottom: -10px; }
  #nav-open span:after { bottom: -20px; }
  #nav-close {
    z-index: 1000;
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: #000;
    opacity: 0.5;
  }
  #nav-content {
    display: block;
    position: fixed;
    top: 0; left: 0;
    z-index: 9999;
    width: 70%; height: 100%;
    background-color: #fdfff8;
    text-align: left;
    padding: 15px 24px 0 24px;
    transform: translateX(-105%);
    transition: 0.3s ease-in-out;
    box-shadow: 5px 0 25px rgba(0,0,0,0.5);
  }
  .nav-drawer__title {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: #f84c89;
    margin-bottom: 46px;
  }
  .nav-drawer__link-top { display: block; }
  #nav-content ul li {
    padding: 0 30px;
    margin-bottom: 36px;
    border-bottom: solid 1px #f84c89;
  }
  #nav-content ul li a {
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 600;
    color: #5c5c5c;
  }
  #nav-input:checked ~ #nav-close { display: block; }
  #nav-input:checked ~ #nav-content { transform: translateX(0%); }
}
@media (min-width: 1130px) {
  .header {
    max-width: 1920px;
    margin: 0 auto;
    min-height: 50px;
    padding: 14px;
    box-sizing: border-box;
  }
  .header__navigation {
    display: block;
    text-align: center;
  }
  .header__navigation ul li {
    display: inline-block;
    margin-left: 40px;
    padding-top: 17px;
  }
  .header__navigation ul li a {
    text-decoration: none;
    font-size: 2.0rem;
    font-weight: 600;
    color: #d0eef3;
  }
}

/* フッター */
.footer {
  background-color: #f84c89;
  padding: 60px 24px 40px;
  font-size: 1.6rem;
  font-weight: 600;
}
.footer__site-map {
  padding-bottom: 40px;
  text-align: left;
}
.footer__site-map ul li {
  padding-bottom: 10px;
  border-bottom: solid 1px #d0eef3;
  margin-bottom: 20px;
}
.footer__site-map li a {
  text-decoration: none;
  color: #d0eef3;
}
.footer__site-map li a:visited { color: #d0eef3; }
.footer__sns-links ul {
  list-style: none;
  text-align: center;
  padding-bottom: 30px;
}
.footer__sns-links li {
  display: inline-block;
  margin: 0 10px;
}
.footer__sns-links li img { width: 50%; }
.footer small {
  text-align: center;
  color: #FFF;
}
@media (min-width: 1130px) {
  .footer__site-map {
    text-align: center;
    display: block;
  }
  .footer__site-map ul li {
    border-bottom: none;
    display: inline-block;
    margin-left: 20px;
    padding: 0;
  }
}

/* ========== キャラクターページ本体 ========== */
.chara-main {
  background-color: #fdfff8;
  padding: 60px 20px 100px;
  min-height: calc(100vh - 80px);
}

.chara-page__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-bottom: 60px;
  padding-top: 20px;
}
.section-chara__balloon {
  display: inline-block;
  background: #9edaff;
  color: #444;
  font-family: 'Cherry Bomb One', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  padding: 6px 20px;
  border-radius: 999px;
  position: relative;
}
.section-chara__balloon::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px 8px 0;
  border-style: solid;
  border-color: #9edaff transparent transparent;
}
.section-chara__title-main {
  display: block;
  font-family: 'Cherry Bomb One', sans-serif;
  font-size: 70px;
  font-weight: 400;
  margin-top: 4px;
}
.section-chara__title-main span:first-child {
  font-size: 90px;
}

.section-chara__font-1 { color: #f84c89; }
.section-chara__font-2 { color: #45a4da; }
.section-chara__font-3 { color: #06ce30; }
.section-chara__font-4 { color: #f84c89; }

.chara-page__list {
  list-style: none;
  padding: 0;
  max-width: 1100px;
  margin: 0 auto;
}

.chara-page__item {
  background-color: #9edaff;
  border-radius: 60px;
  padding: 50px 24px 40px;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* キャラクターごとの背景色 */
.chara-page__item:nth-child(1) { background-color: #B8F5D8; }
.chara-page__item:nth-child(2) { background-color: #FFD700; }
.chara-page__item:nth-child(3) { background-color: #FFAEC9; }
.chara-page__item:nth-child(4) { background-color: #FFB347; }
.chara-page__item:nth-child(5) { background-color: #ADFF2F; }

.chara-page__picture {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
}

.chara-page__name {
  font-family: 'Cherry Bomb One', sans-serif;
  font-size: 2.8rem;
  font-weight: 400;
  color: #444;
  margin-bottom: 16px;
}

.chara-page__comment {
  font-size: 1.5rem;
  line-height: 2.2;
  color: #555;
}

/* ========== みんなのかんけい（相関図） ========== */
.chara-relation {
  max-width: 1100px;
  margin: 100px auto 0;
}
.chara-relation__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-bottom: 60px;
}
.chara-relation__balloon {
  display: inline-block;
  background: #FFF5A0;
  color: #444;
  font-family: 'Cherry Bomb One', sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  text-align: center;
  padding: 12px 24px;
  border-radius: 999px;
  position: relative;
}
.chara-relation__balloon::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px 8px 0;
  border-style: solid;
  border-color: #FFF5A0 transparent transparent;
}
.chara-relation__title-main {
  display: block;
  font-family: 'Cherry Bomb One', sans-serif;
  font-size: 42px;
  line-height: 1.2;
  text-align: center;
}

/* --- 相関マップ全体 --- */
.rel-map__hint {
  text-align: center;
  font-size: 1.2rem;
  color: #999;
  margin-bottom: 10px;
}
.rel-map__scroll {
  overflow-x: auto;
  padding-bottom: 10px;
}
.rel-map {
  min-width: 860px;
  padding: 56px 10px 0;
}
.rel-row .chara-relation__arrows {
  min-width: 180px;
  padding-top: 20px;
}

/* --- 会社グループ枠 --- */
.rel-company {
  border: 4px dashed #FFB347;
  border-radius: 40px;
  padding: 60px 24px 30px;
  position: relative;
  background: #fffdf3;
}
.rel-company__head {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.rel-company__name {
  display: inline-block;
  background: #FFB347;
  color: #fff;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  padding: 14px 44px;
  border-radius: 999px;
}
.rel-company__balloon {
  display: inline-block;
  background: #fff;
  border: 3px solid #FFB347;
  color: #d98220;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 999px;
  position: relative;
}
.rel-company__balloon::after {
  content: '';
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-bottom-color: #FFB347;
}

.rel-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}

.rel-chara {
  flex-shrink: 0;
  width: 120px;
  text-align: center;
}
.rel-chara .chara-relation__tile {
  width: 120px;
  height: 120px;
  border-radius: 30px;
  margin: 0 auto;
}

/* --- 下段の枝分かれ --- */
.rel-branches {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
}
.rel-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rel-branch__tag {
  display: inline-block;
  background: #FFF5A0;
  color: #555;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.rel-vpair {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 14px;
}
.rel-vitem {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rel-vlabel {
  font-size: 1.2rem;
  font-weight: 700;
  color: #555;
  line-height: 1.4;
  white-space: nowrap;
}
.rel-vlabel small {
  font-size: 1rem;
  color: #999;
}
.rel-vline {
  display: block;
  position: relative;
  width: 6px;
  height: 70px;
  border-radius: 3px;
  flex-shrink: 0;
}
.rel-vline::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-style: solid;
  border-color: transparent;
}
.rel-vline--down::after {
  bottom: -10px;
  border-width: 12px 8px 0;
  border-top-color: inherit;
}
.rel-vline--up::after {
  top: -10px;
  border-width: 0 8px 12px;
  border-bottom-color: inherit;
}
.rel-vline--zaurusu { background-color: #6ddcae; color: #6ddcae; }
.rel-vline--datte   { background-color: #FFAEC9; color: #FFAEC9; }
.rel-vline--chii    { background-color: #8fe022; color: #8fe022; }

.chara-relation__chara {
  flex-shrink: 0;
  width: 90px;
  text-align: center;
}
.chara-relation__tile {
  display: block;
  width: 90px;
  height: 90px;
  border-radius: 24px;
  overflow: hidden;
}
.chara-relation__tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  box-sizing: border-box;
}
/* 相関図のキャラは枠なし・イラストのみ */
.rel-chara .chara-relation__tile {
  background: none;
  border-radius: 0;
}
.rel-chara .chara-relation__tile img {
  padding: 0;
}

.chara-relation__name {
  display: block;
  margin-top: 8px;
  font-family: 'Cherry Bomb One', sans-serif;
  font-size: 1.4rem;
  color: #444;
}

.chara-relation__arrows {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 26px;
}
.chara-relation__arrow {
  text-align: center;
}
.chara-relation__label {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #555;
  line-height: 1.4;
  margin-bottom: 4px;
}
.chara-relation__line {
  display: block;
  position: relative;
  height: 6px;
  border-radius: 3px;
}
.chara-relation__line--right { margin-right: 10px; }
.chara-relation__line--left  { margin-left: 10px; }
.chara-relation__line::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-style: solid;
  border-color: transparent;
  border-width: 8px 0 8px 12px;
}
.chara-relation__line--right::after {
  right: -10px;
  border-left-color: inherit;
}
.chara-relation__line--left::after {
  left: -10px;
  border-width: 8px 12px 8px 0;
  border-right-color: inherit;
}
.chara-relation__line--zaurusu { background-color: #6ddcae; color: #6ddcae; }
.chara-relation__line--nogyo   { background-color: #FFD700; color: #FFD700; }
.chara-relation__line--datte   { background-color: #FFAEC9; color: #FFAEC9; }
.chara-relation__line--joshi   { background-color: #FFB347; color: #FFB347; }
.chara-relation__line--chii    { background-color: #8fe022; color: #8fe022; }

@media (min-width: 760px) {
  .chara-relation__title-main { font-size: 60px; }
  .chara-relation__balloon { font-size: 2rem; }
  .chara-relation__body { gap: 30px; }
  .chara-relation__chara,
  .chara-relation__tile { width: 140px; }
  .chara-relation__tile { height: 140px; border-radius: 34px; }
  .chara-relation__name { font-size: 1.8rem; }
  .chara-relation__label { font-size: 1.5rem; }
  .chara-relation__arrows { max-width: 420px; }
}

.chara-page__back {
  display: inline-block;
  margin-top: 60px;
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 600;
  color: #45a4da;
  border-bottom: 2px solid #45a4da;
  padding-bottom: 4px;
}
.chara-page__back:hover {
  opacity: 0.6;
}

@media (min-width: 760px) {
  .chara-page__list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
  }
  .chara-page__item {
    width: calc(50% - 15px);
    box-sizing: border-box;
  }
}

@media (min-width: 1100px) {
  .chara-page__item {
    width: 300px;
  }
}

/* --- 相関図：スマホ用（横並びのまま全体を縮小） --- */
@media (max-width: 759px) {
  .rel-map__hint { display: none; }
  .rel-map__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* ざうるすを中央に保ったまま全体を縮小して画面幅に収める */
  .rel-map {
    zoom: 0.46;
    min-width: 780px;
  }
}
/* さらに狭い端末では少し小さく */
@media (max-width: 380px) {
  .rel-map { zoom: 0.42; }
}
