/*
Theme Name: Nagasaki Nishi High School
Description: 長崎県立長崎西高等学校の公式ウェブサイトテーマ
Version: 1.0.0
Author: Nagasaki Nishi High School
Text Domain: nagasaki-nishi
*/

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* アニメーション用の基本設定 
html {
    scroll-behavior: smooth;
}
*/

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
	text-decoration: none;
		color: #99212A;
}

.pagination {
	justify-content: center;
}

.pagination a {
	color: #ffffff;
}

.pagination a:hover {
	opacity: 0.8;
}

.page-numbers {
	padding: 5px 13px;
	border: 1px solid #ffffff;
	border-radius: 30px;
	background: #99212A;
}

.current {
	border: none;
	background: #ffffff;
}

.dots {
	border: none;
	background: #ffffff;
}

/* スクロールアニメーション用のクラス */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.slide-up {
    opacity: 0;
    transform: translateY(100px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 遅延アニメーション */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }
.delay-700 { transition-delay: 0.7s; }
.delay-800 { transition-delay: 0.8s; }

/* 基本設定 */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.header {
    background-color: #FFFFFF;
    padding: 14px 0;
    border-bottom: 1px solid #CCCCCC;
    position: relative;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1001;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 49px;
    height: 46px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.school-name {
	font-family: 'Noto Serif JP', serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.09em;
    color: #333333;
    margin: 0;
}

.school-name-en {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.21em;
    color: #333333;
    margin-left: 2px;
}

.motto {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.motto-text {
    font-family: 'Noto Serif JP', serif;
    font-weight: 400;
    font-size: 37px;
    line-height: 1.2;
    color: #333333;
    margin: 0;
}

.motto-vertical {
    display: none;
    gap: 20px;
    align-items: center;
    z-index: 2;
}

.motto-item {
    font-family: 'Noto Serif JP', serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 1.2;
    color: #000000;
    background-color: rgba(255, 255, 255, 0.3);
    padding: 27px 20px;
    text-align: center;
    min-width: 80px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.scroll_down {
    position: relative;
    width: 100%;
    height: 0;
    margin-top: 0;
    margin-left: 40px;
    z-index: 2;
}

.scroll_down a {
    position: absolute;
    left: 10px;
    bottom: 87px;
    color: #99212A;
    font-size: 14px;
    font-family: 'Josefin Sans', sans-serif;
    letter-spacing: .2em;
    writing-mode: vertical-lr;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.scroll_down a:hover {
    color: #99212A;
}

.scroll_down:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #99212A;
    animation:
        circlemove 1.6s ease-in-out infinite,
        cirlemovehide 1.6s ease-out infinite;
}

@keyframes circlemove {
    0% { bottom: 160px; }
    100% { bottom: 0px; }
}

@keyframes cirlemovehide {
    0% { opacity: 0; }
    50% { opacity: 1; }
    80% { opacity: 0.9; }
    100% { opacity: 0; }
}

.scroll_down:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2px;
    height: 160px;
    background: #99212A;
}

.menu-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
}

.menu-text {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.09em;
    color: #333333;
}

.hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    cursor: pointer;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background-color: #333333;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: all 0.3s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 7px;
}

.hamburger span:nth-child(3) {
    top: 14px;
}

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

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

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

.archive-pagination .navigation {
    display: flex;
    position: relative;
    z-index: 1001;
}

/* 閉じるボタン */
.menu-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1003;
    padding: 10px;
}

.menu-close-icon {
    display: block;
    width: 24px;
    height: 24px;
    position: relative;
    transition: all 0.3s ease;
}

.menu-close-icon::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #99212A;
    top: 11px;
    left: 0;
    transform: rotate(45deg);
}

.menu-close-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #99212A;
    top: 11px;
    left: 0;
    transform: rotate(-45deg);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1001;
}

.nav-list li:not(:last-child)::after {
    display: none;
}

.nav-list a {
    display: block;
    font-size: 16px;
    line-height: 1.2;
    color: #333333;
    text-decoration: none;
    padding: 15px 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #99212A;
    transition: width 0.3s ease;
}

.nav-list a:hover {
    color: #99212A;
    transform: translateY(-2px);
}

.nav-list a:hover::after {
    width: 100%;
}

/* ドロップダウンメニュー */
.nav-item-has-children {
    position: relative;
}

.nav-item-has-children > a::after {
    content: '';
    display: inline-block !important;
    width: 0 !important;
    height: 0 !important;
    margin-left: 5px !important;
    border-top: 5px solid #333333 !important;
    vertical-align: middle !important;
    transition: transform 0.3s ease !important;
    position: static !important;
    opacity: 1 !important;
}

.nav-list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1002;
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.nav-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-list .sub-menu li {
    margin: 0;
}

.nav-list .sub-menu a {
    display: block;
    padding: 12px 20px;
    color: #333333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-list .sub-menu a:hover {
    background-color: #F5F5F5;
    color: #99212A;
}

.nav-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* メインビジュアル */
/* モットーオーバーレイ */
.hero-motto {
    position: absolute;
    top: 500px;
    left: 86px;
    z-index: 4;
}

.motto-overlay .motto-vertical {
    display: flex;
    gap: 10px;
    align-items: center;
}

.motto-overlay .motto-item {
    font-family: 'Noto Serif JP', serif;
    font-size: 34px;
    font-weight: 700;
    color: #333333;
    line-height: 1.2;
    text-align: center;
    padding: 27px 8px;
}

.hero {
    position: relative;
    height: 90vh;
    overflow: hidden;
    margin-left: 86px;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
    transform: scale(1.1);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

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

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
}

/* TOPICS オーバーレイ */
.hero-topics {
    position: absolute;
    top: 80%;
    left: 30px;
    transform: translateY(-50%);
    z-index: 3;
}

/* TOPICSセクション（SP版用） */
.topics-section {
    display: none;
}

.topics-overlay {
    background-color: rgba(232, 232, 232, 0.85);
    padding: 30px 40px;
    width: 570px;
	border-left: 5px solid #99212A;
}

.topics-overlay .section-title {
    font-size: 18px;
    font-weight: 400;
    color: #333333;
    margin-bottom: 15px;
    text-align: left;
}

.topics-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.topics-list p {
    font-size: 16px;
    line-height: 1.875;
    color: #333333;
    margin: 0;
}

.topics-list a {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.topics-list a:hover {
    color: #99212A;
    text-decoration: underline;
}

.section-title {
    font-size: 18px;
    font-weight: 400;
    color: #333333;
    margin-bottom: 15px;
}

/* SCHOOL DIARY セクション */
.school-diary {
    padding: 40px 0;
    background-color: #FFFFFF;
}

.stripe-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.09em;
    color: #333333;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.stripe-title::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 19px;
    right: -20px;
    height: 24px;
    background-image: repeating-linear-gradient(
        45deg,
        #C8A2A2,
        #C8A2A2 2px,
        transparent 2px,
        transparent 4px
    );
    z-index: -1;
}

.diary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.diary-grid-2col {
    grid-template-columns: repeat(2, 1fr);
}

.diary-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background-color: #F8F8F8;
    transition: transform 0.3s ease;
}

.diary-item:hover {
    transform: translateY(-5px);
}

.diary-image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
}

.diary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.diary-content {
    flex: 1;
    padding-left: 20px;
}

.diary-date {
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    margin-bottom: 8px;
}

.diary-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #99212A;
    margin-bottom: 10px;
}

.diary-text {
    font-size: 16px;
    line-height: 1.6;
    color: #666666;
}

.more-button {
    text-align: center;
}

.btn-more {
    background-color: #99212A;
    color: #FFFFFF;
    border: none;
    padding: 10px 70px 10px 50px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.09em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
	text-decoration: none;
}

.more-txt {
	padding: 0 10px 0 0;
}

.btn-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.arrow {
  position: absolute;
  top: 18px;
  display: inline-block;
  width: 21px;
  height: 1px;
  margin-top: 3px;
  border-radius: 9999px;
  background-color: #FFFFFF;
}

.arrow::before {
  content: "";
  position: absolute;
  top: calc(50% - 0.5px);
  right: 0;
  width: 8px;
  height: 1px;
  border-radius: 9999px;
  background-color: #FFFFFF;
  transform: rotate(45deg);
  transform-origin: calc(100% - 0.5px) 50%;
}

.btn-more:hover {
    background-color: #7a1a22;
    transform: translateY(-3px);
}

.btn-more:hover::before {
    left: 100%;
}

.btn-more:active {
    transform: translateY(-1px);
}

/* 長崎西高の取組 セクション */
.initiatives {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.initiatives .section-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.09em;
    color: #333333;
    margin-bottom: 40px;
    text-align: left;
    border-bottom: 2px dashed #CCCCCC;
    padding-bottom: 10px;
    display: inline-block;
}

.initiatives-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
	margin-left: 10%;
}

.initiative-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333333;
    font-size: 16px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.initiative-link:hover {
    color: #99212A;
}

.link-arrow {
    margin-right: 5px;
    font-weight: 700;
}

.pdf-badge {
    display: inline-block;
    background-color: #99212A;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
}

.pdf-badge-small {
    display: inline-block;
    background-color: #99212A;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
}

/* 西高新聞 セクション */
.school-news {
    padding: 60px 0px;
    background-color: #C9A33380;
}

.school-news .section-title {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.09em;
    color: #333333;
    margin-bottom: 40px;
    text-align: left;
}

.news-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-year {
    display: grid;
    grid-template-columns: 100px 1px 1fr;
    gap: 20px;
    align-items: start;
}

.year-label {
    font-size: 20px;
    font-weight: 700;
    color: #333333;
    padding-top: 10px;
}

.year-line {
    width: 1px;
    height: 100%;
    background-color: #333333;
}

.year-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.issue-item {
    background-color: #FFFFFF;
    border: 1px solid #CCCCCC;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    color: #333333;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.issue-item:hover {
    background-color: #99212A;
    color: #FFFFFF;
    border-color: #99212A;
}

/* 写真の掲載についてセクション */
.photo-notice-section {
    padding: 0;
	margin: 0 30px;
    background-color: #FFFFFF;
}

.photo-notice-section .container {
    display: flex;
    align-items: center;
    gap: 40px;
    border: 1px solid #CCCCCC;
    padding: 20px 30px;
    border-radius: 4px;
}

.photo-notice-section h4 {
    font-size: 18px;
    font-weight: 700;
    color: #333333;
    margin: 0;
    flex-shrink: 0;
}

.photo-notice-section p {
    font-size: 16px;
    color: #333333;
    margin: 0;
    line-height: 1.6;
}

/* PDFダウンロード セクション */
.pdf-downloads {
    padding: 30px 0;
    background-color: #FFFFFF;
}

.pdf-section {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

.pdf-icon {
    width: 60px;
    height: 60px;
    background-color: #99212A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pdf-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.pdf-section .section-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 2.5;
    color: #000000;
    margin-bottom: 15px;
    display: inline-block;
    vertical-align: middle;
}

/* フッターリンクセクション */
.footer a {
	color: #ffffff;
}

.footer-links-section {
    padding: 60px 0;
    background-color: #D9D9D9;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.footer-link-button:first-child {
    grid-column: span 2;
}

.footer-link-button {
    background-color: #FFFFFF;
    color: #333333;
    text-decoration: none;
    padding: 15px 20px;
    border: 1px solid #99212A;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.footer-link-button:hover {
    background-color: #99212A;
    color: #FFFFFF;
}

.external-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"><path d="M7 7h10v10M7 17l10-10" stroke="%2399212A" stroke-width="2" stroke-linecap="round"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.footer-link-button:hover .external-icon {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"><path d="M7 7h10v10M7 17l10-10" stroke="%23fff" stroke-width="2" stroke-linecap="round"/></svg>');
}

/* フッター */
.footer {
    background-color: #99212A;
    padding: 40px 0;
}

.footer .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-main-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.footer-left h3 {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

.footer-right {
    text-align: right;
}

.footer-right p {
    font-size: 16px;
    line-height: 1.6;
    color: #FFFFFF;
    margin: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.copyright {
    font-size: 14px;
    color: #FFFFFF;
    margin: 0 auto;
}

.scroll-top-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #FFFFFF;
    border: solid 1px #99212A;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.scroll-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


/* レスポンシブデザイン */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
}

@media (min-width: 769px) {
	.sp-only {
		display: none;
	}
    .hero-motto {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .header {
        padding: 10px 0;
    }
    	#fixedbtn {
	position: fixed;
		right: 17px;
		bottom: 17px;
			opacity: 0;            /* 最初は透明 */
  pointer-events: none;  /* 非表示中クリックできないように */
  transition: opacity 0.5s ease; /* フェードアニメーション */
}
	#fixedbtn.show {
  opacity: 1;
  pointer-events: auto;  /* 表示中はクリック可能に */
}
    /* モットーオーバーレイのSP版スタイル */
    .hero-motto {
        position: absolute;
        top: 500px;
        left: 20px;
        right: 20px;
        z-index: 4;
    }
    
    .motto-overlay {
        padding: 10px 15px;
    }
    
    .motto-overlay .motto-vertical {
        gap: 6px;
    }
    
    .motto-overlay .motto-item {
        font-size: 12px;
        padding: 3px 5px;
    }
    
    .header-content {
        flex-wrap: nowrap;
        gap: 10px;
        align-items: center;
        justify-content: space-between;
        overflow: hidden;
    }
    
    .logo {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }
    
    .logo-img {
        width: 35px;
        height: 32px;
    }
    
    .logo-text {
        display: flex;
        flex-direction: column;
        gap: 1px;
    }
    
    .school-name {
        font-size: 13px;
        line-height: 1.2;
    }
    
    .school-name-en {
        font-size: 9px;
        line-height: 1.2;
    }
    
    .menu-toggle {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 6px;
        position: relative;
        z-index: 1002;
    }
    
    .menu-text {
        font-size: 12px;
    }
    
    .hamburger {
        width: 20px;
        height: 15px;
        position: relative;
    }
    
    .hamburger span {
        width: 100%;
        height: 2px;
        background-color: #99212A;
        position: absolute;
        transition: all 0.3s ease;
    }
    
    .hamburger span:nth-child(1) {
        top: 0;
    }
    
    .hamburger span:nth-child(2) {
        top: 6px;
    }
    
    .hamburger span:nth-child(3) {
        top: 12px;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        top: 6px;
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
        top: 6px;
    }
    
    header .navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        transition: left 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
    }
    
    header .navigation.active {
        left: 0;
    }
    
    .menu-close {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 0 20px;
    }
    
    .nav-list li {
        border-bottom: 1px solid #EEEEEE;
    }
    
    .nav-list li:last-child {
        border-bottom: none;
    }
    
    .nav-list a {
        padding: 20px 0;
        font-size: 18px;
        text-align: center;
    }
    
    .hero {
        height: 643px;
        margin-left: 50px;
		border-bottom: 12px solid #99212A;
    }
    
    .scroll_down {
        display: none;
    }
    
    .hero-img {
        width: 100%;
    }
    
    .hero-topics {
        display: none;
    }
    
    /* SP版のTOPICSセクションを表示 */
    .topics-section {
        display: block;
        padding: 40px 0;
        background-color: #F8F8F8;
    }
    
    .topics-section .section-title {
        font-size: 24px;
        font-weight: 700;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .topics-section .topics-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .topics-section .topics-list p {
        font-size: 16px;
        padding: 15px;
        background-color: #FFFFFF;
        border-left: 4px solid #99212A;
    }
    
    .topics-section .topics-list a {
        color: #333333;
        text-decoration: none;
    }
    
    .topics-section .topics-list a:hover {
        color: #99212A;
    }
    
    .diary-grid-2col {
        grid-template-columns: 1fr;
    }
    
    .diary-item {
        flex-direction: column;
        gap: 15px;
		max-width: 100%;
    }
    
    .diary-image {
        width: 100%;
        height: 200px;
    }
    
    .diary-content {
        padding-left: 0;
    }
    
    .initiatives-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
		margin-left: 10%;
    }
    
    .news-grid {
        gap: 25px;
    }
    
    .news-year {
        grid-template-columns: 80px 1px 1fr;
        gap: 15px;
    }
    
    .photo-notice-section .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
		margin: 30px;
    }
    
    .footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-link-button:first-child {
        grid-column: span 1;
    }
    
    .footer .container {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-main-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-right {
        text-align: left;
    }
    
    .pdf-section {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
    
    .link-group {
        width: 100%;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .initiatives .section-title {
        font-size: 24px;
    }
    
    .school-diary .section-title {
        font-size: 24px;
    }
    
    .pdf-section .section-title {
        font-size: 20px;
    }
    
    .school-diary .section-title::before {
        height: 16px;
        bottom: 4px;
        left: -10px;
        right: -10px;
    }
}

@media (max-width: 768px) {
    .hero {
        margin-left: 0;
    }
    
    .scroll_down {
        display: none;
    }
    
    .topics-overlay {
        padding: 15px 20px;
        max-width: 90%;
    }
    
    .topics-overlay .section-title {
        font-size: 14px;
    }
    
    .topics-list p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 8px 0;
    }
    
    /* モットーオーバーレイのSP版スタイル（480px以下） */
    .hero-motto {
        top: 72%;
        left: 19%;
    }
    
    .motto-overlay {
        padding: 8px 12px;
    }
    
    .motto-overlay .motto-vertical {
        gap: 4px;
    }
    
    .motto-overlay .motto-item {
        font-size: 32px;
        padding: 21px 4px;
	}
    
    .header-content {
        flex-wrap: nowrap;
        gap: 8px;
        align-items: center;
        justify-content: space-between;
        overflow: hidden;
    }
    
    .logo {
        flex: 0 0 auto;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        min-width: 0;
    }
    
    .logo-img {
        width: 30px;
        height: 28px;
    }
    
    .logo-text {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .school-name {
        font-size: 12px;
    }
    
    .school-name-en {
        font-size: 8px;
    }
    
    .menu-toggle {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 5px;
        position: relative;
        z-index: 1002;
    }
    
    .menu-text {
        font-size: 11px;
    }
    
    .hamburger {
        width: 18px;
        height: 13px;
    }
    
    .hamburger span {
        height: 2px;
    }
    
    .hamburger span:nth-child(1) {
        top: 0;
    }
    
    .hamburger span:nth-child(2) {
        top: 5px;
    }
    
    .hamburger span:nth-child(3) {
        top: 10px;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        top: -2px;
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
        top: 14px;
    }
    
    header .navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        transition: left 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
    }
    
    header .navigation.active {
        left: 0;
    }
    
    .menu-close {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }
    
    .nav-list li {
        border-bottom: 1px solid #EEEEEE;
    }
    
    .nav-list li:last-child {
        border-bottom: none;
    }
    
    .nav-list a {
        padding: 20px 0;
        font-size: 18px;
        text-align: center;
    }
    
    .hero {
        height: 643px;
    }
    
    .hero-image {
        height: 100%;
    }
    
    .scroll_down {
        display: none;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .topics-section {
        padding: 30px 0;
    }
    
    .topics-section .section-title {
        font-size: 20px;
    }
    
    .topics-section .topics-list p {
        font-size: 14px;
        padding: 12px;
    }
    
    .school-diary .section-title::before {
        height: 16px;
        bottom: 4px;
        left: -10px;
        right: -10px;
    }
    
    .diary-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .diary-image {
        width: 100%;
        height: 200px;
    }
    
    .diary-content {
        padding: 0;
    }
    
    .diary-date {
        font-size: 12px;
    }
    
    .diary-title {
        font-size: 16px;
    }
    
	.diary-title a {
		color: #333;
	}
	
    .diary-text {
        font-size: 14px;
    }
    
    .initiatives-links {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .news-year {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .year-label {
        font-size: 18px;
    }
    
    .year-line {
        display: none;
    }
    
    .year-content {
        margin-left: 0;
    }
    
    .photo-notice-section .container {
        padding: 15px;
    }
    
    .footer .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-links-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-link-button {
        font-size: 12px;
        padding: 12px 15px;
    }
    
    .footer-main-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-left h3 {
        font-size: 20px;
    }
    
    .footer-right {
        text-align: center;
    }
    
    .footer-bottom {
        gap: 15px;
    }
    
    .pdf-section {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .pdf-icon {
        width: 40px;
        height: 40px;
    }
    
    .pdf-section .section-title {
        font-size: 18px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-info h3 {
        font-size: 18px;
    }
    
    .footer-info p {
        font-size: 14px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .link-group {
        width: 100%;
    }
}

/* 下層ページ用スタイル */
.breadcrumb {
    background-color: #FFFFFF;
    padding: 10px 0;
    border-bottom: 1px solid #CCCCCC;
}

.breadcrumb-text {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.09em;
    color: #000000;
    margin: 0;
    text-align: right;
}

.main-content {
    background-color: #FFFFFF;
    padding: 40px 0;
}

.content-wrapper {
    display: flex;
    gap: 40px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* サイドバーがない場合、コンテンツを中央配置 */
.content-wrapper:has(.content-area:only-child) {
    justify-content: center;
}

/* 互換性のため、疑似クラスの代わりにクラスを使用 */
.content-wrapper.no-sidebar .content-area {
    max-width: 900px;
    margin: 0 auto;
}

/* サイドバー */
.sidebar {
    width: 200px;
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333333;
    padding-bottom: 10px;
    border-bottom: 2px solid #99212A;
}

/* 投稿ページのスタイル */
   .single-post {
        max-width: 100%;
    }
    
    .post-header {
        padding-bottom: 20px;
        border-bottom: 1px solid #EEEEEE;
        margin-bottom: 30px;
    }
    
    .post-title {
        font-size: 32px;
        font-weight: 700;
        line-height: 1.3;
        color: #333333;
        margin-bottom: 20px;
    }
    
    .post-meta {
        display: flex;
        gap: 20px;
        align-items: natural;
        font-size: 14px;
        color: #666666;
    }
    
    .post-date {
        font-weight: 500;
    }
    
    .post-category a {
        background-color: #99212A;
        color: #FFFFFF;
        padding: 4px 12px;
        border-radius: 15px;
        text-decoration: none;
        font-size: 12px;
        transition: background-color 0.3s ease;
    }
    
    .post-category a:hover {
        background-color: #7a1a22;
    }
    
    .post-featured-image {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .post-featured-image img {
        width: 100%;
        height: auto;
        display: block;
    }
    
    .post-content {
        font-size: 16px;
        line-height: 1.8;
        color: #333333;
        margin-bottom: 15px;
    }
    
    .post-content h2 {
        font-size: 24px;
        font-weight: 700;
        margin: 30px 0 15px;
        color: #333333;
    }
    
    .post-content h3 {
        font-size: 20px;
        font-weight: 700;
        margin: 25px 0 10px;
        color: #333333;
    }
    
    .post-content p {
        margin-bottom: 2em;
    }
    
    .post-content img {
        max-width: 100%;
        height: auto;
        margin: 20px 0;
        border-radius: 4px;
    }
    
    .post-content blockquote {
        border-left: 4px solid #99212A;
        padding-left: 20px;
        margin: 20px 0;
        font-style: italic;
        color: #666666;
    }
    
    .post-tags {
        padding: 20px 0;
        border-top: 1px solid #EEEEEE;
        border-bottom: 1px solid #EEEEEE;
        margin-bottom: 30px;
    }
    
    .post-tags h3 {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 15px;
        color: #333333;
    }
    
    .tag-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .tag-item {
        background-color: #F5F5F5;
        color: #333333;
        padding: 5px 12px;
        border-radius: 15px;
        text-decoration: none;
        font-size: 14px;
        transition: all 0.3s ease;
    }
    
    .tag-item:hover {
        background-color: #99212A;
        color: #FFFFFF;
    }
    
    .post-navigation {
        border-bottom: 1px solid #EEEEEE;
        margin-bottom: 30px;
    }
    
    .nav-previous,
    .nav-next {
        margin-bottom: 15px;
    }
    
    .nav-previous:last-child,
    .nav-next:last-child {
        margin-bottom: 0;
    }
    
    .nav-previous a,
    .nav-next a {
        display: block;
        padding: 15px 20px;
        background-color: #F8F8F8;
        border-radius: 8px;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .nav-previous a:hover,
    .nav-next a:hover {
        background-color: #99212A;
        color: #FFFFFF;
    }
    
    .nav-subtitle {
        display: block;
        font-size: 12px;
        color: #666666;
        margin-bottom: 5px;
    }
    
    .nav-previous a:hover .nav-subtitle,
    .nav-next a:hover .nav-subtitle {
        color: #FFFFFF;
    }
    
    .nav-title {
        display: block;
        font-size: 16px;
        font-weight: 500;
        color: #333333;
    }
    
    .nav-previous a:hover .nav-title,
    .nav-next a:hover .nav-title {
        color: #FFFFFF;
    }
    
    .related-posts {
        margin-top: 30px;
    }
    
    .related-posts h3 {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 20px;
        color: #333333;
    }
    
    .related-posts-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .related-post-item {
        background-color: #F8F8F8;
        border-radius: 8px;
        overflow: hidden;
        transition: transform 0.3s ease;
    }
    
    .related-post-item:hover {
        transform: translateY(-3px);
    }
    
    .related-post-image {
        width: 100%;
        height: 120px;
        overflow: hidden;
    }
    
    .related-post-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }
    
    .related-post-item:hover .related-post-image img {
        transform: scale(1.05);
    }
    
    .related-post-content {
        padding: 15px;
    }
    
    .related-post-title {
        font-size: 14px;
        font-weight: 600;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    
    .related-post-title a {
        color: #333333;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .related-post-title a:hover {
        color: #99212A;
    }
    
    .related-post-date {
        font-size: 12px;
        color: #666666;
    }
    
    /* レスポンシブ */
    @media (max-width: 768px) {
        
        .post-title {
            font-size: 24px;
        }
        
        .post-meta {
            flex-direction: column;
            align-items: flex-start;
            gap: 10px;
        }
        
        .post-content h2 {
            font-size: 20px;
        }
        
        .post-content h3 {
            font-size: 18px;
        }
        
        .related-posts-grid {
            grid-template-columns: 1fr;
        }
    }

/* 単一スクールダイアリーのスタイル */
.single-post-diary {
    max-width: 100%;
}

.post-header {
    padding-bottom: 20px;
    border-bottom: 1px solid #EEEEEE;
    margin-bottom: 30px;
}

.post-header .post-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: #333333;
    margin-bottom: 15px;
}

.post-header .post-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 14px;
    color: #666666;
}

.post-date {
    font-weight: 500;
}

.post-featured-image {
    width: 100%;
    margin-bottom: 30px;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #EEEEEE;
}

.nav-previous,
.nav-next {
    width: 48%;
}

.nav-previous a,
.nav-next a {
    display: block;
    padding: 15px 20px;
    background-color: #F8F8F8;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
    background-color: #99212A;
}

.nav-subtitle {
    display: block;
    font-size: 12px;
    color: #666666;
    margin-bottom: 5px;
}

.nav-previous a:hover .nav-subtitle,
.nav-next a:hover .nav-subtitle {
    color: #FFFFFF;
}

.nav-title {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #333333;
}

.nav-previous a:hover .nav-title,
.nav-next a:hover .nav-title {
    color: #FFFFFF;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .post-navigation {
        flex-direction: column;
    }
    
    .nav-previous,
    .nav-next {
        width: 100%;
    }
    
    .post-header .post-title {
        font-size: 24px;
    }
}

.sidebar-nav {
    position: sticky;
    top: 100px;
}

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

.sidebar-nav-item {
    display: block;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.09em;
    color: #222222;
    text-decoration: none;
    border-bottom: 1px solid #EEEEEE;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-nav-item:hover {
    background-color: #F5F5F5;
    color: #99212A;
}

.sidebar-nav-item.active {
    background-color: #99212A;
    color: #FFFFFF;
}

.sidebar-nav-item.active::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 7px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 7"><path d="M1 1l5 5 5-5" stroke="%23fff" stroke-width="1.5" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
}

/* コンテンツエリア */
.content-area {
    flex: 1;
    max-width: 1000px;
}

.content-section {
    margin-bottom: 60px;
}

.content-section:last-child {
    margin-bottom: 0;
}

/* ページコンテンツのスタイル */
.page-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
}

.page-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: #333333;
    padding-bottom: 10px;
}

.page-content h3,
.page-content h3.subsection-title {
    font-size: 20px;
    font-weight: 700;
    margin: 30px 0 15px;
    color: #333333;
    border-bottom: 2px solid #99212A;
    padding-bottom: 10px;
}

.page-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.page-content ul li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.page-content .pdf-link {
    color: #99212A;
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-content .pdf-link:hover {
    color: #7a1a22;
}

.page-content .contact-info {
    background-color: #F8F8F8;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.page-content .contact-info p {
    margin-bottom: 10px;
}

.page-content .contact-info strong {
    color: #99212A;
}

/* テーブルスタイル */
.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.data-table th {
    background-color: #99212A;
    color: #FFFFFF;
    font-weight: 700;
    padding: 12px;
    text-align: left;
    border: 1px solid #CCCCCC;
}

.data-table td {
    padding: 12px;
    border: 1px solid #EEEEEE;
}

.data-table tr:nth-child(even) {
    background-color: #F8F8F8;
}

.data-table tr:hover {
    background-color: #FFF5F5;
}

.data-table td a.pdf-link {
    color: #99212A;
    text-decoration: none;
}

.data-table td a.pdf-link:hover {
    text-decoration: underline;
}

.content-section .section-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.09em;
    color: #333333;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #99212A;
}

.subsection-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 2.29;
    color: #222222;
    margin-bottom: 20px;
}

/* 学校長より */
.principal-info {
    margin-bottom: 30px;
}

.principal-name {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.875;
    letter-spacing: 0.09em;
    color: #222222;
    margin: 0;
}

/* 歴史コンテンツ */
.history-content p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.875;
    letter-spacing: 0.05em;
    color: #222222;
    margin-bottom: 20px;
}

/* 沿革年表 */
.timeline {
    margin-top: 40px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding-left: 20px;
}

.timeline-date {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.09em;
    color: #222222;
    min-width: 150px;
    flex-shrink: 0;
}

.timeline-line {
    width: 1px;
    height: 100px;
    background-color: #222222;
    flex-shrink: 0;
    margin-top: 5px;
}

.timeline-content {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.875;
    letter-spacing: 0.05em;
    color: #222222;
    flex: 1;
}

.timeline-item:last-child .timeline-line {
    height: 0;
}

/* 校訓「自律」セクション */
.motto-content p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.875;
    letter-spacing: 0.05em;
    color: #222222;
    margin-bottom: 20px;
}

.jiritsu-section {
    margin-top: 40px;
}

.jiritsu-intro {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.875;
    letter-spacing: 0.05em;
    color: #222222;
    margin-bottom: 30px;
}

.jiritsu-items {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.jiritsu-item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.jiritsu-image {
    width: 200px;
    height: 300px;
    flex-shrink: 0;
}

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

.jiritsu-content {
    flex: 1;
}

.jiritsu-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 3.06;
    color: #222222;
    margin-bottom: 10px;
}

.jiritsu-line {
    width: 17px;
    height: 1px;
    background-color: #99212A;
    margin-bottom: 20px;
}

.jiritsu-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.875;
    letter-spacing: 0.05em;
    color: #222222;
    margin: 0;
}

/* 校章セクション */
.emblem-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.emblem-image {
    align-self: flex-start;
}

.emblem-image img {
    width: 98px;
    height: 26px;
    object-fit: cover;
}

.emblem-content p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.875;
    letter-spacing: 0.05em;
    color: #222222;
    margin: 0;
}
.emblem-content img {
	margin: 10px auto;
	display: block;
}

/* 校歌セクション */
.school-song-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/*.school-song-images {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}*/

.school-song-images img {
    display: block;
	margin: 10px auto;
    object-fit: cover;
	width: 100%;
}

.school-song-content p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.875;
    letter-spacing: 0.05em;
    color: #222222;
    margin: 0;
}

/* レスポンシブデザイン - 下層ページ */
@media (max-width: 1200px) {
    .content-wrapper {
        gap: 30px;
        padding: 0 40px;
    }
    
    .sidebar {
        width: 180px;
    }
}

@media (max-width: 768px) {
	.pc-only {
		display: none;
	}
    .content-wrapper {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
    }
	
    .sidebar {
        width: 100%;
        order: 1;
    }
    
    .sidebar-nav {
        position: static;
    }
    
    .sidebar-nav-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .sidebar-nav-item {
        border-bottom: none;
        border-radius: 20px;
        background-color: #F5F5F5;
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .sidebar-nav-item.active {
        background-color: #99212A;
        color: #FFFFFF;
    }
    
    .sidebar-nav-item.active::after {
        display: none;
    }
    
    .content-area {
        order: 2;
    }
    
    .content-section .section-title {
        font-size: 28px;
    }
    
    .page-content h3.subsection-title {
        font-size: 18px;
    }
    
    .data-table {
        font-size: 14px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 10px;
        padding-left: 0;
    }
    
    .timeline-date {
        min-width: auto;
    }
    
    .timeline-line {
        display: none;
    }
    
    .jiritsu-item {
        flex-direction: column;
        gap: 20px;
    }
    
    .jiritsu-image {
        width: 60%;
        height: 100%;
        margin: 0 auto;
    }
    
    .school-song-images {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 0 15px;
    }
    
    .content-section .section-title {
        font-size: 24px;
    }
    
    .subsection-title {
        font-size: 20px;
    }
    
    .page-content h3.subsection-title {
        font-size: 18px;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 6px;
    }
    
    .timeline-date {
        font-size: 16px;
    }
    
    .timeline-content {
        font-size: 14px;
    }
    
    .jiritsu-title {
        font-size: 16px;
    }
    
    .jiritsu-description {
        font-size: 14px;
    }
    
    .emblem-content p,
    .school-song-content p,
    .motto-content p,
    .history-content p {
        font-size: 14px;
    }
}
/* お問い合わせフォーム */
.wpcf7-form {
	width: 75%;
	display: block;
	margin: 0 auto;
}
.wpcf7-form p {
	margin: 20px 0;
}
.wpcf7-form-control {
	padding: 3px;
}
.wpcf7-form textarea {
	width: 700px;
}
.wpcf7-form label {
	font-weight: 700;
}
.required {
	background-color: #99212A;
    color: #FFFFFF;
	font-size: 12px;
	font-weight: 100;
	padding: 0 3px;
	border-radius: 5px;
	border: none;
}
.wpcf7-submit {
	font-weight: 700;
	padding: 10px 50px;
	border-radius: 30px;
	border: none;
	background-color: #99212A;
    color: #FFFFFF;
	font-size: 18px;
	margin: 0 auto;
	display: block;
}
@media (max-width: 768px) {
	.wpcf7-form {
	width: 100%;
	}
	.wpcf7-form textarea {
	width: 100%;
	}
}