/* ===============================
   基本リセット
=============================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
}

body {
  padding: 7px;
  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: 20px;
}

/* ===============================
   ヘッダー（PC）
=============================== */
.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;
}

.header_icon_nav img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.header_strings:hover{
  background-color: #ffc971;
  border-radius: 100px;
  bottom: 1px;
}

/* メールアイコン */
.mail_icon {
  margin-top: 5px;
  width: 32px;
  height: 24px;
  border: 3px solid #000;
  border-radius: 5px;
  position: relative;
}

.mail_icon::before,
.mail_icon::after {
  content: "";
  position: absolute;
  top: 0;
  width: 18.5px;
  height: 2px;
  background: #000;
}

.mail_icon::before {
  left: 0;
  transform: rotate(35deg);
  transform-origin: left top;
}

.mail_icon::after {
  right: 0.1px;
  transform: rotate(-35deg);
  transform-origin: right top;
}

/* PCナビ */
.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;
}

/* ===============================
   スライダー
=============================== */
.slider_controller {
  display: flex;
  justify-content: center;
  width: 100%;
}

.top_slider {
  position: relative;
  max-width: 900px;
  width: 100%;
  aspect-ratio: 1000 / 500;
  overflow: hidden;
}

.top_slider a {
  position: absolute;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.top_slider a.active {
  opacity: 1;
}

.top_slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* スライダーリンクON/OFF */

.top_slider a {
  pointer-events: none; 
}

.top_slider a.active {
  pointer-events: auto; 
}

/* スライダーナビ */
.slider_nav {
  position: absolute;
  top: 50%;
  width: 100%;
  height: 15%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10;
}

.slider_prev,
.slider_next {
  width: 75px;
  height: 75px;
}

.slider_prev {
  transform: rotate(-90deg);
}

.slider_next {
  transform: rotate(90deg);
}

/* ===============================
   3つのボタン
=============================== */
.three_button_link ul {
  display: flex;
  justify-content: center;
  gap: 3vw;
  align-items: center;
  flex-wrap: nowrap;
}

.three_button_link img {
  max-width: 100%;
  height: auto;
}

.three_button_character_pic,
.three_button_koubaibu_pic,
.three_button_corporation_pic {
  display: block;
  width: min(28vw, 245px);
  height: min(34vw, 300px);
  background-size: cover;
  background-position: center;
}


.three_button_character_pic{
  display: block;
  width: 245px;
  height: 300px;
  background-image: url(pnav01_off.png);
  background-size: cover;
}

.three_button_character_pic:hover{
  background-image: url(pnav01_on.png);
}

.three_button_koubaibu_pic{
  display: block;
  width: 245px;
  height: 300px;
  background-image: url(pnav03_off.png);
  background-size: cover;
}

.three_button_koubaibu_pic:hover{
  background-image: url(pnav03_on.png);
}

.three_button_corporation_pic{
  display: block;
  width: 245px;
  height: 300px;
  background-image: url(pnav04_off.png);
  background-size: cover;
}

.three_button_corporation_pic:hover{
  background-image: url(pnav04_on.png);
}

/* 画面幅に応じて3ボタン全体を縮小 */
@media (max-width: 1100px) {
  .three_button_link ul {
    transform: scale(0.85);
    transform-origin: top center;
  }
}

@media (max-width: 900px) {
  .three_button_link ul {
    transform: scale(0.75);
  }
}

@media (max-width: 700px) {
  .three_button_link ul {
    transform: scale(0.65);
  }
}

@media (max-width: 600px) {
  .three_button_link ul {
    transform: scale(0.45);
  }
}

@media (max-width: 600px) {
  .three_button {
    height: 150px;      /* レイアウト上の高さを150pxに固定 */
    overflow: hidden;   /* はみ出した分は見せない */
  }

  .three_button_link ul {
    transform: scale(0.45);
    transform-origin: top center;
  }
}


/* ===============================
   イベントスケジュール
=============================== */
.event_schedule {
  display: block;
  justify-content: center;
  width: 100%;
  margin-bottom: 25px;
}

.calendar_google {
  width: 100%; ; 
  height: 660px;
}

.calender h3 img{
  width: 100%;
  height: auto;
  display: block;
}

/* ===============================
   ニュース部分
=============================== */
.news_block{
  display: flex;
  flex-direction: column;
}


button {
  padding: 8px ;    
  color: #fff;         
  border: none;         
  border-radius: 6px;   
  cursor: pointer;
}
button[data-type="event"] {
  background-color: #58afff;
}
button[data-type="koubaibu"] {
  background-color: #FFAA22;
}
button[data-type="denno"] {
  background-color: #63CC3E;
}
button[data-type="recruitment"] {
  background-color: #FF4D4D;
}
button[data-type="others"] {
  background-color: #FF9999;
}
button[data-type="all"] {
  background-color: #7b00ff;
}
.prev, .next{
  background-color: #000000;
}

.news_select_button{
  margin-bottom: 6px;
  margin-left: 20px;
}

/* トップニュース全体 */
.top_news {
  max-width: 900px;
  padding: 0 20px;
}

.top_news_list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 各ニュース */
.top_news_item {
  display: flex;
  gap: 15px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border-left: 6px solid #ccc;
}

.top_news_link {
  display: flex;
  gap: 15px;
  padding: 15px;
  width: 100%;
}

/* サムネ */
.top_news_thumb img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

/* 本文 */
.top_news_body {
  flex: 1;
}

.top_news_meta {
  display: flex;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 5px;
}

.top_news_type {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: #fff;
}

/* カテゴリ色分け */
.type-event       { border-left-color: #58afff; }
.type-koubaibu    { border-left-color: #FFAA22; }
.type-denno       { border-left-color: #63CC3E; }
.type-recruitment { border-left-color: #FF4D4D; }
.type-others      { border-left-color: #FF9999; }

.type-event       .top_news_type { background: #58afff; }
.type-koubaibu    .top_news_type { background: #FFAA22; }
.type-denno       .top_news_type { background: #63CC3E; }
.type-recruitment .top_news_type { background: #FF4D4D; }
.type-others      .top_news_type { background: #FF9999; }

/* スマホ対応 */

@media (max-width: 600px) {
  .event_schedule,
  .calender {
    width: 100%;
    overflow: hidden;
  }
}

@media (max-width: 600px) {
  .top_news_thumb {
    display: none;
  }
}

.sche_news {
  display: flex;
  flex-direction: column;
  padding: 15px;
}

/* ===============================
   SNSリンク
=============================== */
.inner a {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  width: 270px;
  height: 85px;
  background-color: #fff;
  border: #78c1f8 solid 3px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.company_link img {
  max-width: 100%;
  max-height: 100%;
}

.company_link h3 {
  color: #78c1f8;
  font-size: 18px;
  font-weight: bold;
}

.link_collection {
  width: 300px; 
}

.artist_nav ul li{
  margin-bottom: 10px;
}

/* ===============================
   メインレイアウト
=============================== */
#substance {
  display: flex;
  margin: 50px auto 0;
  gap: 40px;
  max-width: 1200px;
  margin-top: 50px;
}


/* ===============================
   フッター
=============================== */
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;
  }

  .mobile_menu.open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile_menu .close_btn {
    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;
  }

  /* メイン縦並び */
  #substance {
    flex-direction: column;
    align-items: center;
  }
}

@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) {

  .hamburger {
    display: block;
  }

  .mobile_menu {
    display: block; /* ← open で表示制御するので block でOK */
  }

  .close_btn {
    display: block;
  }
}

