﻿/* ===== 色の設定 ===== */
:root{
  --MainBG: #f4f6f9; /* ちょっとグレー */
  --HeaderBG: rgba(120,100,150,0.8);
  --HeaderDDBG: rgba(140,120,170,0.9);
  --FooterBG: rgba(120,100,150,1);
  --textwhite: #F0F0F0;
  --textblue: #00c3ff;
  --textgray: #979797;
  --textLgray: #B0B0B0;
  --newsred: #e63946;
  --newsblue: #4169e1;
  --newsgreen: #006400;
  --newsgray: #808080;
  --newsyellow: #b8860b;
  --borderBlue: #4a90e2;
  --borderGray: #4a4a4a;
  --borderLGray: #E0E0E0;
  --HeadingBG: #B0B0F0;
}

/* 全体設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 本文設定 */

body{
	font-family: "Helvetica Neue", Arial, sans-serif;
	background: var(--MainBG);
	margin:0;
	padding-top: 70px;
	padding:40px;
}

img.SCPolicy { 
  width: clamp(200px, 80vw, 1000px); 
  height: auto; 
}

img.SCLogo { 
  width: clamp(70px, 5vw, 149px); 
  height: auto;
  flex: 0 0 auto;
  align-self: flex-start;
  max-width: 100%;
}

/* レスポンシブ */
@media (max-width: 767px){
  body.menu-open {
    overflow: hidden;
  }

  .indexpage{
    padding-top: 0px;
    padding:0px;
  }
}

/* ===== グローバルナビゲーション ===== */
/* グローバルナビゲーション本体 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: var(--HeaderBG);
  transition: background 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 1000;
}

.logo img{
  height: 70px;
  width: auto;
  display: block;
  /* font-size: 20px; */
  /* color: white; */
  /* font-weight: bold; */
}

/* スマホ対応ロゴサイズ調整 */
@media (max-width: 767px) {
  .logo img{
    height: 60px;
    width: auto;
    display: block;
    
  }

}

/* グローバルナビゲーション */
.nav-list {
  display: flex;
  list-style: none;
}

.nav-list li {
  margin-left: 20px;
}

.nav-list a {
  text-decoration: none;
  color: var(--textwhite);
  transition: 0.3s;
}

.nav-list a:hover {
  color: var(--textblue);
}

/* ハンバーガーメニューを消す */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--MainBG);
  margin: 4px 0;
  transition: 0.3s;
}

/* ナビのコンテンツ間隔？ */
.section {
  padding: 60px 30px;
  text-align: center;
}

/* スマホ対応（ハンバーガーメニュー） */
@media (max-width: 767px) {

  .hamburger {
    display: flex;
    z-index: 1000;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
  }

/* トップページのみグローバルナビゲーションを透明に */
  .indexpage header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(0,0,0,0);
    transition: background 0.3s ease;
    backdrop-filter: none;
    box-shadow: none;
    border-bottom:  none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
  }

/* でもスクロールしたら不透明に */
    .header.scrolled{
    background: rgba(120,100,150,1);
    transition: background 0.3s ease;
  }


  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 60%;
    height: 100vh;
    background: var(--HeaderBG);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .nav.active {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .nav-list li {
    margin: 15px 0;
    text-align: center;
  }
}

/* ===== グローバルナビゲーションのドロップダウンメニュー ===== */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--HeaderDDBG);
  backdrop-filter: blur(20px);
  list-style: none;
  min-width: 150px;
  display: none;
}

.dropdown-menu li {
  padding: 10px;
}

.dropdown-menu a {
  color: var(--textwhite);
  text-decoration: none;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* ===== スマホ対応 ===== */
@media (max-width: 767px) {

  .dropdown-menu {
    position: static;
    display: none;
    background: var(--HeaderDDBG);
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

}

/*  ===== フッター ===== */
.footer {
  background: var(--FooterBG);
  color: var(--textwhite);
  padding: 40px 20px;
}

.footer-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo img {
  height: 40px;
}

.footer-nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

.footer-nav a {
  color: var(--textwhite);
  text-decoration: none;
}

.footer-copy {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--textgray);
}
.site-footer {
  background: #222;
  color: var(--textwhite);
  padding-top: 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;

  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-section h3 {
  margin-bottom: 15px;
  font-size: 18px;
  border-bottom: 1px solid var(--borderGray);
  padding-bottom: 5px;
}

.footer-section p,
.footer-section li {
  font-size: 14px;
  line-height: 1.8;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section a {
  color: var(--textLgray);
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--textwhite);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid var(--borderGray);
  font-size: 13px;
}

/* ===== ヒーロースライダー ===== */

/* ヒーロー領域 */
.hero{
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

/* スライド */

.slide{
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: fade 42s infinite;
}

.slide::after{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6)),
    linear-gradient(to right, rgba(0,0,0,0.3), rgba(0,0,0,0));
}

.slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* テキスト */

.hero-text{
  position: absolute;
  bottom: 20%;
  left: 10%;
  color: var(--textwhite);
  z-index: 2;
  /* テキストのフェード設定 */
  opacity:0;
  transform: translateY(20px);
  animation: textFade 42s infinite;
  animation-delay: 2s;
}

.hero-text h1{
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero-text p{
  font-size: 1.2rem;
}

/* スライドごとのタイミング */

.slide:nth-child(1){
  animation-delay: 0s;
}

.slide:nth-child(2){
  animation-delay: 7s;
}

.slide:nth-child(3){
  animation-delay: 14s;
}

.slide:nth-child(4){
  animation-delay: 21s;
}

.slide:nth-child(5){
  animation-delay: 28s;
}

.slide:nth-child(6){
  animation-delay: 35s;
}

/* テキストのフェードタイミング */

.slide:nth-child(1) .hero-text{
  animation-delay:2s;
}

.slide:nth-child(2) .hero-text{
  animation-delay:9s;
}

.slide:nth-child(3) .hero-text{
  animation-delay:16s;
}

.slide:nth-child(4) .hero-text{
  animation-delay:23s;
}

.slide:nth-child(5) .hero-text{
  animation-delay:30s;
}

.slide:nth-child(6) .hero-text{
  animation-delay:37s;
}

/* フェードアニメーション */

@keyframes fade{

  0%{
    opacity:0;
  }

  4%{
    opacity:1;
  }

  20%{
    opacity:1;
  }

  30%{
    opacity:0;
  }

  100%{
    opacity:0;
  }

}

/* テキストアニメーション */
@keyframes textFade{

  0%{
    opacity:0;
    transform: translateY(20px);
  }

  8%{
    opacity:1;
    transform: translateY(0);
  }

  16%{
    opacity:1;
  }

  20%{
    opacity:0;
  }

  100%{
    opacity:0;
  }

}

/* レスポンシブ */
@media (max-width:767px){

.hero{
  height:100vh;
}

.hero-text h1{
  font-size:1.8rem;
}

.hero-text p{
  font-size:1rem;
}

}

/* ===== index.htmlお知らせ関係 ===== */
/* お知らせ */
.news{
max-width:1400px;
margin:auto;
background: var(--MainBG);
padding:30px;
border-radius:10px;
box-shadow:0 8px 25px rgba(0,0,0,0.08);
}

/* お知らせタイトル(未使用) */
.news-title{
font-size:28px;
margin-bottom:25px;
letter-spacing:1px;
border-bottom:2px solid #eee;
padding-bottom:10px;
}


/* お知らせリスト */
.news-list{
list-style:none;
padding:0;
margin:0;
}

.news-EntExam{
list-style:none;
padding:0;
margin:0;
}

.news-info{
list-style:none;
padding:0;
margin:0;
}

/* お知らせ２列表示 */

.news-container{
display:grid;
grid-template-columns:1fr 1fr;
gap:40px;
}

/* スマホ対応 */
@media (max-width: 767px){
	.news-container{
		grid-template-columns:1fr;
	}
}

/* お知らせ列 */
.news-column{
	flex:1;
}

/* お知らせのヘッダ */
.news-heading{
	font-size: 18px;
	margin-bottom: 10px;
	border-left: 4px solid var(--borderBlue);
	padding-left: 8px;
}

/* お知らせの表示 */

.news-item{
border-bottom:1px solid var(--borderLGray);
}

.news-item a{
display:flex;
align-items:center;
gap:5px;
padding:15px 0;
text-decoration:none;
color:#333;
transition:0.3s;
}

.news-item a:hover{
background: var(--MainBG);
padding-left:10px;
}

/* お知らせの日付 */

.news-date{
font-size:14px;
color: var(--textgray);
min-width:90px;
}


/* お知らせ種類アイコン */

.news-category{
font-size:12px;
padding:3px 8px;
border-radius:4px;
color: var(--MainBG);
font-weight:bold;
}


/* お知らせの種類アイコンの色設定 */

.news-category.new{
background: var(--newsred);
}

.news-category.EntExam{
background: var(--newsblue);
}

.news-category.ClubActivity{
background: var(--newsgreen);
}

.news-category.info{
background: var(--newsgray);
}

.news-category.end{
background: var(--newsyellow);
}

/* お知らせ本文・*/

.news-text{
flex:1;
font-size:15px;
}


/* スマホ対応 */

@media (max-width:767px){
  .news-item a{
    flex-direction:column;
    align-items:flex-start;
    gap:5px;
  }
  .news-date{
    min-width:auto;
  }
}

/* ===== コンテンツ表示 ===== */
.contents{
  background: var(--MainBG);
  padding:30px;
  margin-bottom:30px;
  border-radius:8px;
  box-shadow:0 2px 8px rgba(0,0,0,0.05);
}

.contents h1{
font-size:clamp(2rem,5vw,4rem);
}

.contents h2{
  font-size:22px;
  margin-bottom:20px;
  background: var(--HeadingBG);
  padding-left:10px;
}

.contents h3{
  font-size:18px;
  margin-top:20px;
  margin-bottom:5px;
  border-left:4px solid var(--borderBlue);
  color:#4a4a4a;
}

.SchoolLogoContainer{
  display:flex;
  align-items: flex-start;
  gap: 16px;
}

/* ===== pdf埋め込み表示 ===== */
.Umekomi-pdf {
  width: 100%;
  min-height: 80vh;
  border: 1px solid var(--borderLGray);
  border-radius: 6px;
  background: var(--MainBG);
}

@media (max-width: 767px) {
  .Umekomi-pdf {
    min-height: 65vh;
  }
}

/* ===== 沿革用 ===== */

.enkaku_list{
	list-style:none;
	padding:0;
	margin:0;
}

.enkaku_item a{
	display:flex;
	align-items:left;
	gap:15px;
	padding:15px 0;
	text-decoration:none;
	color:#333;
}

.enkaku_date{
font-size:16px;
color: var(--textgray);
min-width:110px;
}

.enkaku_text{
flex:1;
font-size:18px;
}


/* ===== タイムスケジュール表 ===== */
.schedule-table-text{
  display:flex;
}
.schedule-tables {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.schedule-table {
  border-collapse: collapse;
  width: min(420px, 100%);
  background: var(--MainBG);
}

.schedule-table td {
  border: 1px solid var(--borderGray);
  height: 42px;
  padding: 6px 10px;
  text-align: center;
}

.schedule-table h4 {
  column-span: all;
  font-size: 14pt;
  font-weight: bold;
}

.schedule-table h5 {
  font-weight: bold;
  font-size: 12pt;
}

/* 部活動２列表示 */

.Club-container{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
}

/* スマホ対応 */
@media (max-width:767px){
  .Club-container{
    grid-template-columns:1fr;
  }
}

.Club-column{
	flex:1;
}

/* ===== 学校行事 ===== */
/* 学校行事の写真配置 */
.SCEvents{
  max-width: 1200px;
  margin:auto;
  background: var(--MainBG);
  padding:30px;
  border-radius:10px;
  box-shadow:0 8px 25px rgba(0,0,0,0.8);
}

.SCEvents h3{
  font-size:18px;
  margin-top:20px;
  margin-bottom:5px;
  border-left:4px solid var(--borderBlue);
  border-bottom:4px solid var(--borderBlue);
  color:#4a4a4a;
}

.SCEvents-container{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap:10px;
}

@media (max-width:767px){
  .SCEvents-container{
    grid-template-columns: 1fr;
  }
}

.SCEvents pict{
  flex: 1;
}


/* ===== FAQ ===== */
.faq-category{
margin-bottom:50px;
}

.faq-item{
  background:white;
  border-radius:8px;
  margin-bottom:10px;
  box-shadow:0 2px 6px rgba(0,0,0,0.05);
  overflow:hidden;
}

summary{
  padding:16px;
  font-weight:bold;
  cursor:pointer;
  list-style:none;
}

summary:hover{
  background:#f0f4fa;
}

details[open] summary{
  border-bottom:1px solid #eee;
}

details p{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding:0 16px;
  margin:0;
  line-height:1.6;
}

details[open] p{
  max-height: 200px;
  padding: 16px;
}

summary::after{
  content:"▼";
  float: left;
  rotate: 270deg;
  transition: 0.3s;
}

details[open] summary::after{
  transform: rotate(90deg);
}
