@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Shippori+Antique&family=Zen+Antique&display=swap');
@keyframes fadeIn {
    to {
      opacity: 1;
      transform: translateX(0);
    }
}
@import url('https://fonts.googleapis.com/css2?family=Shippori+Antique&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Zen+Antique&display=swap');
@import url('https://cdn.jsdelivr.net/npm/typed.js@2.0.12');
@media screen and (max-width: 768px) {
  .splash-title {
    padding: 60px 10px; /* スマホは余白少なめ */
  }

  .fade-text {
    transition: all 0.6s ease; /* スマホはちょっと早め */
  }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  background-image: url("../images/立ち絵集合hidewhite1.jpg"); /* 背景画像を指定 */
  background-size: 35%;
  background-repeat: repeat; /* 画像を繰り返し */
}

header {
    background: #000000;
    color: #fff;
    padding: 1.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

.m-1logo {
    position: absolute;
    width: 450px;
    top: 18px;
    left: -35px;
    border-radius: 0 0px 150px 0;  /* 角を個別に丸くする（左上から時計回り） */
    opacity: 1.0;  /* 透明度を80%にする */

    opacity: 0;
    transform: translateX(-50px);
    animation: fadeIn 1.0s ease-out forwards;    
    animation-delay: 0.35s;
}

.headinfo a {
    text-align: right;
    color: #ffffff;
    text-decoration: none;
    font-size: 21px;
    margin-right: 40px;
    font-family: "Zen Antique", serif;
    position: relative;
}

/* 下線のアニメーション */
.headinfo a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0px;
    height: 2px;
    background: #ffea00;
    transition: width 0.4s ease, transform 0.4s ease, opacity 0.4s ease;
    transform: translateX(-50%); /* 中央基準に */
  }

/* ホバーしたときの動き */
.headinfo a:hover::after {
    width: 100%;
    transform: translateX(-50%) scaleX(1.3); /* スケール調整 */
}    

#title{
  background-image: url('../images/YM-1予選.jpg');
  background-size: cover; /* 画面いっぱいにフィット */
  background-position: center; /* 中央配置 */
  background-repeat: no-repeat; /* 繰り返しなし */
  box-shadow: 0 0 10px 5px black;
}

.title h1 {
  font-family: "Shippori Antique", serif;
  font-size: 80px;
  display: flex;
  justify-content: center;  /* 水平方向（X軸）の中央 */
  align-items: center;      /* 垂直方向（Y軸）の中央 */
  height: 90vh;            /* 画面の高さいっぱいにする */
  position: relative;
  z-index: 1; /* 文字を前面に */

  opacity: 0;
  transform: translateY(-20px);
  animation: fadeIn 0.8s ease-out forwards;  
}

.title h1::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%; /* 文字より少し大きめの幅 */
  height: 35%; /* 文字より少し大きめの高さ */
  background-color: white;
  transform: translate(-50%, -50%); /* 文字の中央に配置 */
  z-index: -1; /* 背景を文字の後ろに */
  opacity: 0.65;
}

.card{
  font-size: 20px;
  padding: 35px;
  margin: 20px auto;
  width: 1500px;
  line-height: 1.55;
  font-family: "Zen Antique Soft", serif;
  font-weight: 720;
  background-color: #ffffff;
  box-shadow: 0  3px 8px rgb(0, 0, 0);
  border-radius: 16px;
  margin-bottom: 50px;
  margin-top: 100px;
}

#chui h2 {
  color: red;
}
.card h2{
  font-size: 30px;
  font-weight: 900;
}

.card p{
  font-size: 20px;
}

#chui{
  margin-top: 65px;
}

.shrink-logo {
  position: fixed !important;
  top: 10px !important;
  left: 20px !important;
  width: 120px !important;
  transition: all 0.3s ease;
  z-index: 1500;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.card a{
  background-color: #ffaeae;
  color: #2a00c2;
  transition: all 0.3s ease;
  font-weight: 800;
}

.card a:hover{
  background-color: #333;
  color: #ff0000;
}

#siteinfo{
  line-height: 3.5;
  padding-top: 5px;
  padding-bottom: 20px;
}

footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 15px 10px 20px 10px;
  font-size: 0.9em;
  margin-top: 65px;
}

footer a {
  color: #6cf;
  margin: 0 10px;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.timeline {
  position: relative;
  margin-left: 250px;
  padding-left: 20px;
  border-left: 35px solid #00aaff; /* 左の棒線 */
  min-height: 500px;
  margin-bottom: 50px;
}

.timeline-item:first-child::before {
  content: '';
  position: absolute;
  top: -80px; /* 伸ばしたい長さに応じて調整 */
  left: -55px; /* ← 太い線と揃えるためにズラす（35px + 2px） */
  width: 35px;
  height: 80px; /* ここと同期 */
  background-color: #00aaff; /* 左棒線と同じ色に！ */
  z-index: 0;
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
}

.timeline-dot {
  position: absolute;
  left: -52.5px;
  width: 30px;
  height: 30px;
  background-color: rgb(225, 0, 255);
  border-radius: 50%;
  border: 3.5px solid #fff;
  box-shadow: 0 0 0 2px #00aaff;
}

.timeline-content{
  margin-top: 80px;
  font-size: 20px;
  font-family: "Zen Antique Soft", serif;
  font-weight: 800;
}

.timeline-content h3 {
  margin: 0;
  font-size: 30px;
  color: #333;
  font-weight: 1500;
}

.timeline-content p {
  margin: 5px 0 0;
  color: #000000;
}

.normal{
  margin: 0 auto;
  width: 1500px;
  text-align: center;
  font-size: 45px;
  padding-bottom: 65px;
}

.date{
  font-size: 14px;
  color: #888;
  font-weight: normal;
}

.newinfo{
  background: #f9f9f9; /* 背景薄グレー */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  max-width: 1200px;
  margin: 40px auto;
  margin-bottom: 100px;
}

.newinfo h2{
  font-size: 24px;
  display: flex;
  gap: 10px; /* タイトルと日付の間に少しスペース */
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  border-left: 5px solid #ff6600; /* タイトル横にライン！ */
  padding-left: 10px;
  color: #333;
}

.newinfo p{
  font-size:18px;
}

.origin{
  color: #000;
  text-decoration: none;
}

.juni {
  width: 80%;
  border-collapse: collapse;
  margin: 30px auto;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.juni th,
.juni td {
  border: 1px solid #3f3f3f;
  padding: 12px;
  text-align: center;
}

.juni th {
  background-color: #ffe7d8;
  color: #000000;
  font-weight: bold;
  line-height: 21px;
}

.juni tr:hover {
  background-color: #55d8f8;
}

.juni thead th {
  background-color: #ffc59f;
}

.juni .winner th {
  background-color: #fff173;
  color: #f31818;
}

.juni .nextwinner th {
  background-color: #ececec;
  color: #f31818;
}

.juni .trdwinner th {
  background-color: #ffd49d;
  color: #f31818;
}

.historycard{
  font-size: 20px;
  padding: 35px;
  margin: 200px auto;
  width: 1500px;
  line-height: 1.55;
  font-family: "Zen Antique Soft", serif;
  font-weight: 720;
  background-color: #ffffff;
  box-shadow: 0  4px 12px rgb(0, 0, 0);
  border-radius: 16px;
}

.historycard h2{
  font-size: 30px;
  font-weight: 900;
}

.historycard p{
  font-size: 16px;
}

.historycard a{
  background-color: none;
  color: black;
  transition: all 0.3s ease;
  font-weight: 800;
}

.historycard a:hover{
  background-color: #333;
  color: #ff0000;
}

.historycard iframe {
  float: right;
  margin-bottom: 100px;
  margin-right: 150px;
  margin-top: -70px;
}

.datecard{
  font-size: 20px;
  padding: 35px;
  margin: 20px auto;
  width: 1500px;
  line-height: 1.55;
  font-family: "Zen Antique Soft", serif;
  font-weight: 720;
  background-color: #ffffff;
}

.splash-title h1 {
  font-size: clamp(24px, 6vw, 48px); /* 最小24px、最大48px、基本は画面幅6% */
}

.splash-title h2 {
  font-size: clamp(18px, 4.5vw, 32px);
}

.splash-title p {
  font-size: clamp(14px, 3.5vw, 24px);
}

.ruletitle {
  font-size: 28px;
  color: rgb(0, 0, 0);
}

.ruletitle-sub {
  font-size: 22.5px;
  color: crimson;
}

#yellow {
  background-color: #f7f31f;
}

.newinfo a{
  color: #000;
}

.newinfo a::after{
  color: #000;
}

.card accordion {
  font-size: 20px;
  padding: 0; /* 中身に任せるのでいったん0に */
  margin: 20px auto;
  width: 90%;              /* ← スマホ対応で幅90% */
  max-width: 1500px;       /* ← PCでも広くできる */
  line-height: 1.55;
  font-family: "Zen Antique Soft", serif;
  font-weight: 720;
  background-color: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  margin-bottom: 50px;
  margin-top: 50px;
  overflow: hidden;
}

/* チェックボックスは非表示 */
.accordion-check {
  display: none;
}

/* ラベル（カードの見出し部分） */
.accordion-label {
  display: block;
  padding: 20px 30px;
  cursor: pointer;
  background: #f4f4f4;
  border-bottom: 1px solid #ccc;
  transition: background 0.3s;
  border-radius: 16px 16px 0 0;
}

.accordion-label:hover {
  background: #eee;
}

.accordion-label h2 {
  font-size: 26px;
  margin: 0;
  font-weight: 900;
}

/* 中身（閉じた状態） */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
  padding: 0 30px;
}

/* 開いたとき */
.accordion-check:checked ~ .accordion-content {
  max-height: 500px; /* 中身に合わせて調整してね */
  padding: 20px 30px;
  background: #e0e0e0;
}