@font-face {
  font-family: "HackGen";
  src: url("fonts/HackGen-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "HackGen";
  src: url("fonts/HackGen-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
}



* {
  margin: 0;
  cursor: auto;
}

/* オーバースクロール時に裏側（html）の白が見えないようにする。
   本文は白のままにしたいため `html` を黒、`body` を白に分けて指定します。 */
html {
  background-color: #000; /* 裏側（オーバースクロールで見える層）を黒に */
  min-height: 100vh;
}

body {
  background-color: #fff; /* ページ本文は白を維持 */
  overscroll-behavior-x: none;
  font-family:
    "HackGen",
    sans-serif;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 70px;
  color: white;
  background-color: black;
  z-index: 1000;
}

footer {
  bottom: 0;
  left:0;
  right:0;
  width: 100%;
  padding: 6px 0;
  text-align: center;
  background: black;
  color: white;
  font-size: 14px;
}

main {
  padding: 90px 16px 40px;
  margin-top: 70px;
}

.content {
  max-width: 960px;   /* ← 右が空かない */
  margin: 0 auto;     /* 中央寄せ */
  line-height: 1.9;
  font-size: 15px;
}

.nav {
  display: flex;
  align-items: center;       /* 縦中央 */
  justify-content: space-between; /* ← ここが重要 */  /* 横中央 */
  height: 100%;              /* liの高さを継承 */
  padding: 0 16px;  
}

.title-wrap{
  display:flex;
  align-items:center;
}

.site-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  margin-left:40px;
  color:#FFFFFF;
}

.site-title .main {
  font-size: 1.8rem;
  font-weight: bold;
}

a {
  cursor:pointer;
  text-decoration: none;   /* 下線を消す */
}


.site-title .main a ,
.site-title .main a:visited {
  color: inherit;          /* 訪問済みでも色を変えない */
}

a.link,
a.link:visited {
  font-size: 0.8rem;
  text-decoration: underline;
  color: #019e91fa;
}


.site-title .sub {
  font-size: 0.6rem;
  opacity: 0.7;
  letter-spacing:0.3em;
  text-align: center;
}


.label img{
  display:block;
  height:40px;
  width:auto;
  margin:10px;
  object-fit:contain;
}

.menu {
  display: flex;     /* 横並び */
  list-style: none;
  font-size: 18px;
  margin: 0;
  padding: 20px 30px;
  justify-content: flex-end;
  text-align: center;
}

.menu li {
  margin-right: 20px;
  display: flex;
  align-items: center;
}

.menu li img {
  display: block;
  height: 30px;
  width: auto;
  object-fit: contain;
}

.menu a {
  color: white;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.menu a:hover {
  color: #ffeb3b;
}

.menu-btn {
  font-family: "JetBrains Mono", "Fira Code";
  background: none;
  border: none;
  color:#FFFFFF;

  pointer-events: none; 
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;  /* ← 左右に分かれる余白を確保 */
}

.menu-btn .var {
  display:none;
  font-size: 0.75em;
  font-weight: bold;
  opacity: 0.8;
  letter-spacing: 0.1em;
  margin-right: 0.1em;
}

.menu-btn .op {
  display:none;
  font-weight: bold;
  font-size: 2.5em;
  cursor: pointer;
  pointer-events: auto; 
}



.page-title {
  margin-bottom: 2em;
}

.page-title h2 {
  font-size: 28px;
  letter-spacing: 0.15em;
  margin-bottom: 0.6em;
}

.page-sub {
  font-size: 12px;
  opacity: 0.7;
  letter-spacing: 0.2em;
}


.colavoice_icon img {
  display: block;
  padding: 20px;
  margin: auto;
  width: 80%;
  height: auto;
}

.news {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid #444;
}

.news h2 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.news-list {
  list-style: none;
  padding: 0;
}

.news-list li {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.news-list time {
  color: #888;
  margin-right: 10px;
}


.char-buttons {
  display: flex;
  gap: 1em;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  flex-wrap: nowrap;        /* 折り返さない */
  overflow-x: auto;        /* 横スクロール */
  white-space: nowrap;

  -webkit-overflow-scrolling: touch; /* iOS 慣性 */
}


.char-btn {
  font-size:25px;
  padding: 0.4em 0.8em;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
  color: #000000;  /* 通常文字色 */
  background: none; /* 背景なし */
  border: none;     /* 枠もなし */
  border-bottom: 2px solid transparent; /* 通常は見えない */
  padding-bottom: 6px;                  /* 線との距離を確保 */
  transition: border-color 0.2s;
}



.char-btn:hover {
   /* ホバー時の色 */
   background: #EFEFEF;
}

.char-btn.active {
  border-bottom-color: currentColor;
}

.char-detail {
  display: none;
  margin-top: 2em;
}

/* 画像＋テキスト */
.char-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

/* 画像スペース */
.char-image {
  width: 350px;
  min-width: 220px;
  height: 700px;
  display: block;
}

.char-img {
  max-width: 100%;
  height: auto;
}

.char-detail a {
  display: inline-block;
  margin-top: 1.8em;
  padding: 12px 22px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-decoration: none;
  border: 2px solid #000;
  transition: all 0.2s ease;
}

.char-detail a:hover {
  background: #000;
  color: #fff;
  transform: translateY(-5px);
}

.char-name {
  font-family: monospace;
  font-size: 2.0em;
  font-weight: bold;
  margin-bottom: 0.6em;
}

/* テキスト */
.char-text {
  flex: 1;
  min-width: 0;
}


.profile {
  display: grid;
  grid-template-columns: max-content 1em 1fr;
  row-gap: 6px;
  column-gap: 0.5em;
  background: #f5f5f5;
  padding: 14px 18px;
  margin-bottom: 1.8em;
  border-left: 4px solid #000;
  font-family: sans-serif;
  font-size: 0.95em;
  line-height: 1.8;
}

.label {
  text-align: left;
}

.colon {
  text-align: center;
}
#pico .profile {
  border-left-color: #009A5D;
}

#atto .profile {
  border-left-color: #93b000;
}



.reading {
  font-size: 0.8em;
  color: #666;
  margin-left: 4px;
}

.char-btn[data-target="itsuki"]{
  opacity:0.6;
}
.char-btn[data-target="pico"].active {
  color: #009A5D;
}

.char-btn[data-target="atto"].active {
  color: #93b000;
}

.note {
  font-size: 0.9em;
  color: #666;
}

h4.allow {
  font-size: 1.0em;
  color: #002ea1;
}

h4.disallow {
  font-size: 1.0em;
  color: #960000;
}


.image-center {
  text-align: center;
  margin-top: 10em;
  margin-bottom: 2em;
}

.reference-sites {
  list-style: disc;
  padding-left: 1.5em;
}

.reference-sites a{
  cursor:pointer;
}


@media (max-width: 800px) {
  header {
    height: 60px;
  }
    
  .site-title{
    margin-left:20px;
  }
  .site-title .main{
    font-size: 1.0rem;
  }
  .site-title .sub{
    display:none;
  }
    
  .menu {
    display: none;
  }

  .menu-btn{
    display: flex;
  }
  .menu-btn .var{
    display: flex;
  }

  .menu-btn .op{
    display: block;
  }
  .menu.show {
    display: flex;           /* 縦並びにする場合 */
    flex-direction: column;
    position: absolute;
    top: 60px;               /* ヘッダー下に表示 */
    right: 12px;
    background: #000;
    padding: 10px 16px;
    border-radius: 4px;
    z-index: 1001;
  }

  .menu.show li {
    margin: 8px 0;
  }

  main{
    padding: 70px 12px 32px;
  }

  .content {
    font-size: 14px;
  }

  .char-layout {
    display: flex;
    flex-direction: column;
  }

  .char-image {
    width: 100%;
    min-width: 0;
    height: auto;
    overflow: hidden;
    justify-content: center;
  }

  .char-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .char-btn {
    font-size: 18px;
  }
}

.separator {
  border: none;
  border-top: 1px dashed #aaa;
  margin: 40px 0;
}

h3 {
  margin-top: 2em;
  margin-bottom: 0.8em;
}

h3 span {
  border-bottom: 1px solid #000;
}

h4 {
  margin: 30px 0 5px 0;
}
