/*paddingとかborderを幅や高さに含めて計算→レイアウトが崩れないようになる...はず*/
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: "Meiryo", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    "Yu Gothic UI", system-ui, sans-serif;
  line-height: 1.7;
  background: #fff;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
}

/*コンテナ共通　左右の余白と中央寄せ*/
.container {
  max-width: 1800px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

/*最初の画面表示*/
.hero {
  display: block;
  width: 100%;
  height: auto;
  padding: 0px 0 0;
}

.herotitle {
  display: block;
  width: 80%;
  height: 80%;
}

/*実施日表示*/
.date {
  text-align: center;
  font-size: clamp(20px, 1.6vw, 30px);
  font-weight: 600;
  margin: 0px 0px 0px;
  /*上　左右　下*/
  color: #cb6ce6;
}

.anim-box {
  display: flex;
  justify-content: center;
  /* 横方向中央寄せ */
}

/* 右から入る */
.anim-box.slideinRight {
  animation: slideinRight 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slideinRight {
  0% {
    transform: translateX(500px);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.anim-box.slideinLeft {
  animation: slideinLeft 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slideinLeft {
  0% {
    transform: translateX(-500px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.anim-box.zoomin {
  animation: zoomIn 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes zoomIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/*枠　これは無地*/
.frame-solid {
  border: 10px solid #cb6ce6;
  border-radius: 20px;
  padding: 20px 20px;
  background: #fff;
}

/*枠　これはドット*/
.frame-dotted {
  text-align: center;
  display: inline-block;
  border: 10px dotted #cb6ce6;
  border-radius: 20px;
  padding: 20px 20px;
  background: #fff;
}

/*枠　これは破線*/
.frame-dashed {
  text-align: center;
  display: inline-block;
  margin-bottom: 10px;
  margin-top: 40px;
  border: 2px dashed #cb6ce6;
  border-radius: 12px;
  padding: 10px 10px;
  background: #fff;
}

@media (max-width: 768px) {
  .frame-dashed {
    margin-top: 15px;
  }
}


/*丸い枠*/
.frame-circle {
  text-align: center;
  display: inline-block;
  text-align: center;
  border: 10px solid #cb6ce6;
  border-radius: 100px;
  padding: 5px 50px;
  background: #fff;
}

@media (max-width: 768px) {
  .frame-circle {
    border: solid 4px #cb6ce6;
  }
}

/*ボタンの上に来る文字*/
.navtitle {
  text-align: center;
  color: #cb6ce6;
  font-weight: bold;
  margin-bottom: 0px;
}

/*ナビ　     flexはレイアウトの一種　wrapは一行に収まらない場合次の行に
             gapは隙間(要素間) marginはナビの外側の余白*/
.nav-links {
  display: flex;
  flex-wrap: wrap;
  margin: 0px 0px;
  /*画面狭ければ次の行へ*/
  justify-content: center;
  /*全体中央寄せ*/
  gap: 0px;
}

/*ボタン統一のサイズ　文字の量とかによらない*/
:root {
  --btn-w: 300px;
  --btn-h: 56px;
}

@media (max-width: 768px) {
  :root {
    --btn-w: 300px;
  }
}

.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: var(--btn-w);
  height: var(--btn-h);
  text-align: center;
  padding: 10px 16px;
  margin: 10px;
  font-size: clamp(20px, 2.5vw, 25px);
  /* 画面幅に応じて変化 */
  font-weight: 600;
  background-color: #cb6ce6;
  text-decoration: none;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .btn {
    margin: 5px;
  }
}

/*ボタン押されたとき 　　　visivleはキーボードでフォーカスしたとき*/
.btn:hover,
.btn:focus-visible {
  outline: solid 2px;
}

/*ここから別ページなど*/

/* ---- 汎用セクション（本文ゆったり） ---- */
.section {
  display: grid;
  /*要素をマス目で並べるレイアウト*/
  gap: 16px;
  /*要素間の隙間*/
  margin: 24px 0 24px;
}

/*セクション内の本文　大きく*/
.section p {
  font-size: clamp(10px, 1.6vw, 20px);
  line-height: 1.9;
}

.about-people {
  font-size: clamp(24px, 1.6vw, 50px);
  color: #cb6ce6;
  font-weight: 600;
}

/* メンバー紹介の画像部分*/
.member-block {
  display: flex;
  /*横並びの命令　この要素内にある(imgとmember-text)ものを横並びに*/
  align-items: center;
  /*imgとmember-textの縦の位置を中央に*/
  gap: 24px;
  /*画像と文章の間に余白*/
  margin-bottom: 40px;
  /*下の幅*/
  flex-wrap: wrap;
  /*幅足りなかったら折り返し*/
}

.member-block img {
  width: 100%;
  /*member-blockで指定された範囲内で最大*/
  max-width: 300px;
  /*ただ、最大でも300px*/
  height: auto;
  /*縦横の比率を保つ　崩れ防止*/
  border-radius: 20px;
  /*角をまるく*/
  flex-shrink: 0;
  /*画像が狭くなっても画像が無理に縮まないように*/
}

@media (max-width: 768px) {
  .member-block img {
    width: 100%;
    height: auto;
  }
}

.hr {
  margin: 0;
}

/*メンバー紹介の学校と名前*/
.member-name {
  align-items: baseline;
  font-size: clamp(30px, 2.5vw, 90px);
  font-weight: bold;
  color: #cb6ce6;
  margin: 0 0 0px;
  position: relative;
  top: 0px;
}

.member-space {
  flex: 1;
  /*残りのスペースをテキストに使いますっていう定義*/
  min-width: 200px;
  /*文字のスペースは最小でも200px確保*/
  font-size: clamp(20px, 1.5vw, 30px);
  /*画面サイズで20pxから30pxに文字サイズがなる*/
}

.member-text-title {
  font-size: clamp(60px, 2.5vw, 70px);
  font-weight: bold;
  color: #cb6ce6;
  margin: 0;
  position: relative;
}

.member-text-coment {
  display: inline-block;
  font-size: clamp(15px, 2.5vw, 20px);
  font-weight: bold;
  color: #cb6ce6;
  margin: 0 0px;
  position: relative;
  background-color: #fffecd;

  /*ボーダーをつける*/
  border: 2px solid #e8b6f6;
  /* 線の太さ・種類・色 */
  padding: 5px;
  /* ボーダー内側の余白 */
}

@media (max-width: 768px) {

  /* 学校名と名前 */
  .member-name {
    font-size: 25px;
    /* 好きなサイズに調整 */
  }
}

.lead {
  margin-bottom: 0px;
  font-size: clamp(15px, 2.5vw, 20px);
  /* ← デフォルトより小さめに */
}

.tabs {
  display: flex;
  justify-content: center;
  /* 中央寄せ */
  flex-wrap: wrap;
  /* スマホで折り返し */
  gap: 0px;
  padding: 0;
  margin-top: 20px;
  /* タブ同士の余白 */
}

/* コンテンツは非表示が基本 */
.tab-content {
  display: none;
  border: 2px solid rgb(106, 7, 103);
  padding: 20px;
  font-size: clamp(15px, 2.5vw, 20px);
  margin-top: -1px;
  margin-bottom: 20px;
  border-top: 2px solid #7c0087;
  border-radius: 20px;
  background-color: #ffffff;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.day-images {
  display: flex;
  flex-wrap: wrap;
  /* スマホで折り返す用 */
  gap: 16px;
  margin-top: 16px;
  justify-content: center;
  /* 中央揃え（好みで変えてOK） */
}

.day-images img {
  width: auto;
  /* 自動で画像の横幅に */
  max-width: 100%;
  /* 親の幅を超えない */
  height: auto;
  /* アスペクト比を保つ */
  max-height: 400px;
  /* 縦に大きすぎるときは制限 */
  border-radius: 20px;
  border: 2px solid#7c0087;
}

.day-flexbox {
  display: flex;
  align-items: flex-start;
  /* 上揃え */
  gap: 20px;
  /* 画像と文章の間隔 */
  margin-top: 20px;
  margin-bottom: 20px;
}

.day-image-left {
  width: 40%;
  max-width: 300px;
  height: auto;
  border-radius: 20px;
  border: 2px solid#7c0087;
}

.day-text-right {
  flex: 1;
  /* 残りの幅を占める */
}

.goaltitle {
  font-size: clamp(15px, 2.5vw, 30px);
  color: #cb6ce6;
  margin: 0px
}

.floating-menu {
  font-size: clamp(5px, 2.5vw, 20px);
  position: fixed;
  /*画面固定*/
  top: 0;
  left: 0;
  width: 100%;
  background-color: #f8eaff;
  /* 薄い紫系の背景色 */
  display: flex;
  /*中の要素を横並びに配置する*/
  justify-content: center;
  /* 中央寄せ */
  gap: 20px;
  padding: 12px 0;
  z-index: 9999;
}

.float-btn {
  width: 180px
    /*横幅*/
  ;
  height: 50px;
  /*縦幅*/
  color: #cb6ce6;
  text-align: center;
  font-weight: bold;
  text-decoration: none;
  padding: 13px 20px;

  border-radius: 20px;
  transition: color 0.25s ease;
  position: relative;
  /*transition: all 1s ease;
  /*ホバーの変化を0.3秒かける*/
}

@media (max-width: 768px) {
  .float-btn {
    width: 100px;
    font-size: 10px;
  }
}

.float-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  /* ボタンの最下部に配置 */
  height: 6px;
  /* 太さ調整：ここで好きに変更可 */
  background: #cb6ce6;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

/* ホバー・フォーカス時に下線を伸ばす */
.float-btn:hover::after,
.float-btn:focus-visible::after {
  transform: scaleX(1);
}

/*そのページにいるときに背景の色を付ける　JSも使う*/
.float-btn.active {
  background-color: #cc75d4;
  color: #fff;
  border-radius: 0px;
}

/* スマホ用（幅狭い時の調整） */
@media (max-width: 768px) {
  .floating-menu {
    padding: 0px 0;
    gap: 0px;
  }

  .float-btn {
    padding: 14px 12px;
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  .floating-btn {
    padding: 0px 0px;
    gap: 0px;
  }
}

/* コンテンツがメニューの下に隠れないように */
body {
  padding-top: 56px;
  /* メニューの高さ分 */
}

@media (max-width: 768px){
  .body{
    padding-top: 45px;
  }
  
}

/* ページ先頭の見出しは .navtitle をそのまま使う */
.page-header {
  margin-top: 0px;
  margin-bottom: 0px;
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .page-header {
    justify-content: center;
    text-align: center;
  }
}

/*フッダー*/
.site-footer {
  margin-top: 10px;
  text-align: center;
  font-style: normal;
  background-color: #F8EAFF;
}

/*フッダーのなかの<a>タグ全部に適用←すごい*/
.site-footer a {
  color: rgb(195, 83, 220);
}

.site-footer p,
.site-footer address {
  margin-top: 0px;
  margin-bottom: 0px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .site-footer {
    font-size: 10px;
    /* サイズ変更 */
  }
}

.goalframe {
  border: 2px solid rgb(106, 7, 103);
  padding: 20px;
  font-size: clamp(30px, 2.5vw, 40px);
  margin-top: -1px;
  border-top: 2px solid #7c0087;
  border-radius: 20px;
  background-color: #ffffff;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.goalframe p {
  font-size: clamp(15px, 2.5vw, 20px);
}

/**/
.site-footer a:hover,
.site-footer a:focus-visivle {
  text-decoration: underline;
}

/*リンク*/
a {
  color: rgb(255, 255, 255);
}

a:hover {
  color: rgb(87, 1, 87);
}

.video-frame {
  
  width: 640px;
  max-width: 100%;             /* スマホ時に親の幅に合わせる */
  border: 4px solid #7c0087;
  border-radius: 10px;
  background-color: #f5e6fa;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  display: block;
  height: auto;                /* 高さは自動で調整（重要） */
}

.video-frame-s {
  
  width: 640px;
  max-width: 50%;             /* スマホ時に親の幅に合わせる */
  border: 4px solid #7c0087;
  border-radius: 10px;
  background-color: #f5e6fa;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  display: block;
  height: auto;                /* 高さは自動で調整（重要） */
}

