/* style.css */
@import url('https://fonts.googleapis.com/css2?family=BIZ+UDGothic&display=swap');

:root {
    --primary-color: #8B0000;
    --secondary-color: #ffaa48;
    --text-color: #333;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /*font-family: "Noto Sans JP", sans-serif;*/
    font-family: "BIZ UDGothic", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: var(--text-color);
    line-height: 1.6;
}
p {
	padding-bottom: 10px;

}
li {
	list-style: none;
	font-size: 1.2em;
}

/* ヘッダー */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

/* ハンバーガーメニュー */
.menu-trigger {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 2;
}

.menu-trigger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    position: absolute;
    transition: all 0.4s;
}

.menu-trigger span:nth-child(1) { top: 0; }
.menu-trigger span:nth-child(2) { top: 11px; }
.menu-trigger span:nth-child(3) { bottom: 0; }

/* グローバルナビゲーション */
.global-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    font-size: 0.75rem;
}

.global-nav a {
    text-decoration: none;
    color: var(--text-color);
}

/* 追従する申し込みボタン */
.floating-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
}

.btn-entry {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* メインコンテンツ */
main {
    margin-top: 60px;
}

main#faculty {
    font-size: 0.85rem;
}

.hero {
    height: 80vh;
    background: url('/web_oc/2025/images/hero-bg.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}
.hero2 {
  height: 40vh;
  background: url('/web_oc/2025/images/hero-bg.jpg') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.section {
    padding: 2rem 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.content-wrap {
    max-width: 980px;
    margin: 0 auto;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .menu-trigger {
        display: block;
    }

    .global-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        transition: all 0.4s;
        padding-top: 60px;
    }

    .global-nav.active {
        right: 0;
    }

    .global-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .floating-button {
        width: 100%;
        right: 0;
        bottom: 0;
        padding: 10px;
        background: var(--white);
        box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    }

    .btn-entry {
        display: block;
        text-align: center;
        width: 100%;
    }
}
/*カルーセル-----------------*/
.carousel {
  overflow: hidden;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  flex: 0 0 33.3333%; /* default: 3 items */
  padding: 8px;
  box-sizing: border-box;
}

.carousel-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

/* スマホ：1枚表示 */
@media (max-width: 768px) {
  .carousel-item {
    flex: 0 0 50%;
  }
}


/*アコーディオン開閉　----------------------*/
.faq-container {
  max-width: 960px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #ddd;
  margin-bottom: 10px;
}

.faq-question {
  width: 100%;
  padding: 15px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.arrow {
  border: solid #333;
  border-width: 0 2px 2px 0;
  padding: 3px;
  transform: rotate(45deg);
  transition: 0.3s;
}

.faq-question.active .arrow {
  transform: rotate(-135deg);
}

.faq-answer {
  /*max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 15px;*/
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  background-color: rgb(246, 250, 254);
}

.faq-answer p {
  font-size: 0.9rem;
  padding: 15px;
}

.faq-answer.active {
  /*max-height: 500px;
  padding: 15px;
  background-color: rgb(232, 236, 241); 
  margin-bottom: 10px;*/
  max-height: ; /* コンテンツに合わせて調整 */
  transition: max-height 0.5s ease-in-out;
  }

/*タブ　----------------*/
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.tab {
  flex: 1 1 calc(50% - 10px); /* 小さい画面では2列に折り返し */
  padding: 10px 20px;
  background: #ccc;
  border: 1px solid #f2f2f2;
  margin-right: 5px;
  transition: background 0.3s;
  font-size:12px;
}
@media (min-width: 600px) {
  .tab {
    flex: 1 1 auto; /* 幅広の画面では横並び */
  }
}
.tab.active {
  background: #e17892;
  color: #fff;
}

.tab-content {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.tab-content.active {
  display: block;
  opacity: 1;
}  
/*Video ----------------------*/
.video-grid,
.video-grid2 {
  display: grid;
  gap: 16px;
  justify-items: start;
}

/* PC（幅 1024px?）: 4列 */
@media (min-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .video-grid2 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* タブレット（幅 768px?1023px）: 3列 */
@media (min-width: 768px) and (max-width: 1023px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .video-grid2 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* スマホ（幅?767px）: 2列 */
@media (max-width: 767px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .video-grid2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.video-tile iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}
/*youtube modal popup ----------*/
/*.youtube-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}*/

.youtube-thumbnails {
  display: grid;
  /* スマホ用（2列） */
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px;
}

/* タブレット用（3列） */
@media screen and (min-width: 768px) {
  .youtube-thumbnails {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* PC用（4列） */
@media screen and (min-width: 1024px) {
  .youtube-thumbnails {
    grid-template-columns: repeat(4, 1fr);
  }
}

.thumbnail {
  cursor: pointer;
  transition: transform 0.3s;
}

.thumbnail:hover {
  transform: scale(1.05);
}

.thumbnail img {
  width: 100%;
  height: auto;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  z-index: 1000;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  margin: 50px auto;
  aspect-ratio: 16/9;
}

.close {
  position: absolute;
  right: -30px;
  top: -30px;
  color: white;
  font-size: 30px;
  cursor: pointer;
}
/*NEWS Ticker -----------------*/
.news-ticker {
  height: auto!important;
  min-height: 30px;
  overflow: hidden;
  position: relative;
}

.ticker-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative; /* absoluteからrelativeに変更 */
  width: 100%;
}

.ticker-list li {
  min-height: 30px;
  height: auto;
  line-height: 1.5;
  margin: 0;
  padding: 5px 10px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  opacity: 0;
  position: absolute;
  width: 100%;
  transition: opacity 0.5s ease-in-out;
}

@media screen and (max-width: 768px) {
  .news-ticker {
    min-height: 6em !important;  /* 3行分 */
    font-size: 12px;
  }
  .ticker-list li {
    white-space: normal;
    word-break: break-word;
    line-height: 1.5em;
  }

}


.ticker-list li.active {
  opacity: 1;
  z-index: 1;
}

/* スケジュール表 */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}

.schedule-table th,
.schedule-table td {
  padding: 12px;
  text-align: left;
  border: 1px solid #ddd;
}

.schedule-table th:first-child,
.schedule-table td:first-child {
  width: 20%;
}
.schedule-table th:nth-child(2),
.schedule-table td:nth-child(2) {
  width: 15%;
}
.schedule-table th:last-child,
.schedule-table td:last-child {
  width: 65%;
}

@media screen and (max-width: 768px) {
  .schedule-table {
    border: 0;
  }
  .schedule-table thead {
    display: none;
  }
  .schedule-table tr {
    display: block;
    margin-bottom: 10px;
    border: 1px solid #ddd;
  }
  .schedule-table td {
    display: block;
    text-align: left;
    position: relative;
    padding: 10px 10px 10px 35%; /* 左余白 */
    border-bottom: 1px solid #ddd;
    width: 100% !important;
    /*border: none;*/
  }
  .schedule-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    width: 30%;
    text-align: left;
    font-weight: bold;
    /* 上記は統一。:beforeではなく::before推奨 */
  }
  .schedule-table td[rowspan] {
    background: #f8f8f8;
  }
}

/*見出しタイトル---------------*/
.hero h1,
.hero2 h1 {
	font-size: 3em;
	
}

h2 {
  position: relative;
  display: inline-block;
  font-size: 2.5em;
  padding-bottom: 4px;
  margin-bottom: 2rem;
}

h2::after {
  content: '';
  position: absolute;
  width: 40%;
  height: 5px;
  background-color:var(--primary-color);
  left: 0;
  bottom: 0;
}
@media (max-width: 767px) {
  h2 {font-size: 2em;}
  }
h3 {
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}
h3.title {
  border-left: #8B0000 5px solid;
  padding-left: 5px;
}
/*フッター　----------------------*/
footer {
	text-align: center;
	border-top: 1px solid #ccc;
	padding: 20px;
}

/*ボタン------------------------------*/
.button {
  padding: 12px 24px;
  background-color: #970505;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
	margin: 5px;
}

.button:hover {
  background-color: #ba2d2d;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(214, 40, 40, 0.2);
}

/*margin/padding ----------------------------*/
/* 基本的な余白設定 */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

.px-1 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2 { padding-left: 1rem; padding-right: 1rem; }
.px-3 { padding-left: 1.5rem; padding-right: 1.5rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
