* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
}

body {
  padding: 7ps;
  background: #009b71;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, li {
  list-style: none;
  padding: 0;
  margin: 0;
}

#container {
  background-image:url("/base_pic/bg.jpg");
  padding-bottom: auto;
  padding: 20px;
}

.artist_logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  margin: 20px;
  width: 300px;
}

.header_icon_nav {
  display: flex;
  justify-content: right;
  padding: 0;
  margin: 0;
}

.header_icon_nav img {
  width: 35px;
  height: 35px;
  object-fit: contain;

}

.mail_icon{
  margin-top: 5px;
  width: 32px;
  height: 24px ;
  border: 3px solid #000;
  border-radius: 5px;
  position: relative;
}

.mail_icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 18.5px;
  height: 2px;
  background: #000;
  transform: rotate(35deg);
  transform-origin: left top;
}

.mail_icon::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0.1px;
  width: 18.5px;
  height: 2px;
  background: #000;
  transform: rotate(-35deg);
  transform-origin: right top;
}

.header_select_nav ul {
  display: flex;
  justify-content: center;
  gap: 40px;
  align-items: center;
  padding: 20px;
}

.header_select_nav ul li a{
  white-space: nowrap;
  font-size: clamp(14px, 2vw, 18px);
  display: block;
}

.header_strings:hover{
  background-color: #ffc971;
  border-radius: 100px;
  bottom: 1px;
}

#subinstance_character {
  text-align: center;
  max-width: fit-content;
  margin: 0 auto;
}

.character_list ul{
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 50px;
  margin-left: auto;
  margin-right: auto;
}

.character_list ul li a img {
max-width: 1000px;
height: auto;
}

.character_box {
  background-color: aliceblue;
  border: #009b71 solid 3px;
  padding: auto;
  margin-bottom: 20px;
}

.character_description_main{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.character_pic{
  text-align: left;
  display: block;
}

.character_description {
  text-align: left;
}

.character_description h2 {
  display: inline-block;
  background-color: #009b71;
  font-size: clamp(18px, 3vw, 24px);
  color: white;
  font-weight: bold;
  justify-content: left;
  margin-bottom: 15px;
  padding: 10px;
}

.character_description h3 {
  border-bottom: 3px solid #009b71;
}

.character_description p{
  margin-bottom: 10px;
}

.character_description_text {
  margin-bottom: 100px;
}

.character_group h4{
  font-size: 20px;
  text-align: left;
  border-bottom: 1px dotted #009b71;
  margin-bottom: 5px;
}

figure {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 15px;
  padding: 15px;

}

figcaption {
  text-align: left;
  margin: 10px 0;
  line-height: 1.6;
}

footer {
  background-image: url("/base_pic/foot_bg.png");
  background-repeat: repeat-x;
  padding: 60px;
}

footer p {
  text-align: right;
}

/* ===============================
   ハンバーガー（PCでは非表示）
=============================== */
.hamburger,
.mobile_menu ul,
.close_btn {
  display: none;
}

/* ===============================
   スマホ対応（1100px以下）
=============================== */
@media (max-width: 1100px) {

  /* PCナビ非表示 */
  .header_select_nav,
  .header_icon_nav {
    display: none;
  }

  /* ロゴ中央固定 */
  .artist_logo {
    justify-content: center;
    position: relative;
    width: 100%;
  }

  /* ハンバーガー表示 */
  .hamburger {
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
    cursor: pointer;
    z-index: 100;
  }

  .hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #000;
    margin: 6px 0;
    border-radius: 3px;
  }

  /* モバイルメニュー */
  .mobile_menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    padding: 20px;
    box-shadow: -4px 0 10px rgba(0,0,0,0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 200;
    display: block;
  }

  .mobile_menu.open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile_menu .close_btn {
    display: block;
    font-size: 30px;
    text-align: right;
    cursor: pointer;
    margin-bottom: 20px;
  }

  .mobile_menu ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .mobile_menu a {
    font-size: 18px;
    padding: 10px 0;
  }
}

@media (max-width: 1100px) {

  .mobile_menu .header_icon {
    width: 28px;
    height: 28px;
  }

  .mobile_menu .mail_icon {
    width: 26px;
    height: 20px;
  }

  .mobile_sns {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 25px;
  }
}

@media (max-width: 1100px) {

  .mobile_menu .mail_icon {
    width: 24px;
    height: 18px;
    border-width: 2px;
  }

  .mobile_menu .mail_icon::before,
  .mobile_menu .mail_icon::after {
    width: 14px;
    height: 2px;
  }
}

@media (max-width: 1100px) {
  #subinstance_character {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center; /* 中央揃え（任意） */
  }

  .character_description_main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .character_pic img {
    width: 80%;
    height: auto;
  }
}

/* PC用（デフォルト） */
.ttl_character_list {
  content: url("/base_pic/ttl.png");
}

/* スマホ用（1100px以下） */
@media (max-width: 1100px) {
  .ttl_character_list {
    content: url("/base_pic/ttl_intro_sap.png"); /* ← スマホ用画像に差し替え */
    width: 80%;
    height: auto;
  }
}

@media (max-width: 1100px) {
  .character_list_detial {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .character_list ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .character_list ul li img {
    width: 80%;
    height: auto;
  }
}