body {
    font-family: 'Hiragino Kaku Gothic Pro', 'メイリオ', Meiryo, sans-serif;
    margin: 0;
    padding-top: 30px;
    padding-bottom: 30px; 
    background-color: #ffffff;
    color: #333;
    position: relative; /* トップボタンの基準に */
}

/* --- ページトップ画像 (main内) のスタイル --- */
.page-top-image {
    /* PC: 横幅90%で中央寄せを実現 */
    width: 80%; 
    margin: 200px auto 0 auto; /* 上下は50pxの余白、左右はautoで中央寄せ */
    text-align: center; /* 念のため画像が中央に来るように */
    max-width: 1100px;
    
    /* main/content-wrapper の左右余白の内側で表示されます */
}

.page-top-image img {
    width: 100%; /* 親要素の 90% に合わせて幅いっぱいに表示 */
    height: auto;
    display: block; 
}

/* --- レスポンシブ対応 (スマホの場合: 横幅100%) --- */
@media (max-width: 768px) {
    .page-top-image {
        /* スマホ: 横幅100%に設定 */
        width: 100%; 
        margin: 50px 0 0 0; /* 左右の余白はなし */
    }
}


a {
    text-decoration: none;
    color: inherit;
}

main {
    /* ヘッダーの高さ（約100px）＋αの余白を上部に追加 */
    padding-top: 110px; 
}

.content-wrapper {
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 1;
}

/* 既存の交互配置のメディアブロック (変更なし) */
.media-block {
    display: flex;
    align-items: center;
    min-height: 500px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden; /* 子要素の食み出しを隠す */
    max-width: 1100px;
	margin: 0 auto;
}

.image-right {
    flex-direction: row;
}

.image-left {
    flex-direction: row-reverse;
}

.block-image {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

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

.block-content {
    flex: 1;
    position: relative;
    padding: 40px;
    z-index: 2;
}

.content-inner {
    background-color: white;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.image-right .block-content {
    margin-right: -15%;
    text-align: left;
}

.image-left .block-content {
    margin-left: -15%;
    text-align: left;
}

.block-content h3 {
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
}

.block-content .icon {
    font-size: 1.2em;
    color: #E91E63;
    margin-right: 10px;
}

.block-content p {
    font-size: 1em;
    line-height: 1.8;
    margin-bottom: 30px;
}

.view-more-link {
    display: flex;
    align-items: center;
    width: fit-content; /* 内容の幅に合わせる */
    color: #333; /* テキストの色を黒系に */
    font-weight: bold;
    font-size: 1.1em; /* フォントサイズを少し大きく */
    transition: color 0.3s;
}

.view-more-link:hover {
    color: #E91E63; /* ホバーでテキストの色変更 */
}

.view-more-text {
    margin-right: 15px; /* テキストとボタンの間に余白 */
    white-space: nowrap; /* テキストが改行されないように */
}

.view-more-arrow-button {
    display: flex; /* 矢印を中央に配置するためにFlexboxを使用 */
    align-items: center;
    justify-content: center;
    width: 50px; /* ボタンの幅 */
    height: 50px; /* ボタンの高さ */
    background-color: #E91E63; /* ピンク色の背景 */
    color: white; /* 矢印の色 */
    border-radius: 50%; /* 円形にする */
    font-size: 1.5em; /* 矢印のサイズ */
    transition: background-color 0.3s, transform 0.3s;
}

.view-more-link:hover .view-more-arrow-button {
    background-color: #C2185B; /* ホバーで少し濃いピンクに */
    transform: translateX(5px); /* ホバーで右に少し移動 */
}

/* レスポンシブ対応 (既存のメディアクエリ内にも調整が必要な場合は適用) */
@media (max-width: 992px) {
    .view-more-arrow-button {
        width: 45px; /* モバイルでは少し小さく */
        height: 45px;
        font-size: 1.3em;
    }
    .view-more-text {
        font-size: 1em; /* モバイルでのフォントサイズ */
        margin-right: 10px;
    }
}

/* --- レスポンシブ対応 (モバイル・タブレット) --- */
@media (max-width: 992px) {
    body {
        padding-right: 0; /* モバイルではサイドバーのパディングを解除 */
    }

    .media-block {
        flex-direction: column !important;
        min-height: auto;
        margin-bottom: 20px; /* モバイルでの間隔調整 */
    }
    
    .block-image {
        order: 1;
        height: 250px; /* モバイルでの画像高さ */
    }

    .block-content {
        order: 2;
        width: 100%;
        padding: 15px; /* モバイルでのパディング調整 */
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: translateY(-40px); /* 被せる量を調整 */
    }

    .content-inner {
        padding: 25px 15px; /* モバイルでのパディング調整 */
    }
}

/* --- リンク集セクションのスタイル (最終修正版) --- */
.links-section {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 20px 50px;
}

.links-grid {
    display: grid;
    /* 列間の余白を維持 */
    grid-template-columns: repeat(2, 1fr);
    column-gap: 80px;
    row-gap: 1px;
    
    background-color: transparent;
    
    /* **** 修正点 **** */
    /* 一番上の線 (border-top) を削除 */
    border-top: none; 
}

.link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    background-color: white;
    
    /* 左右の線は引き続き削除 */
    border-right: none; 
    
    /* 下の線は維持 */
    border-bottom: 1px solid #eee;
    
    font-size: 1.1em;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

.link-item:hover {
    background-color: transparent;
    color: #E91E63;
}

.link-item .bullet {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #E91E63;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

.link-item .arrow-right,
.link-item .printer-icon {
    font-size: 1.5em;
    color: #ccc;
    margin-left: auto;
    transition: transform 0.3s, color 0.3s;
    flex-shrink: 0;
}

.link-item:hover .arrow-right {
    transform: translateX(5px);
    color: #E91E63;
}

/* リンク集のレスポンシブ対応 */
@media (max-width: 768px) {
    .links-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
    }
    .links-section {
        margin: 40px auto;
        padding: 0 10px 100px;
    }
    .link-item {
        padding: 18px 0;
        font-size: 1em;
    }
}

/* --- 固定サイドバーメニューのスタイル --- */
.fixed-sidebar-menu {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 65px; /* サイドバーの幅 */
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 100; /* 最前面に表示 */
}

.sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 5px;
    color: white;
    font-size: 0.75em;
    text-align: center;
    line-height: 1.3;
    transition: filter 0.3s;
}

.sidebar-item .material-icons-outlined {
    font-size: 24px;
    margin-bottom: 5px;
}

/* 各サイドバーアイテムの色 */
.item-admissions {
    background-color: #8E44AD; /* 紫色 */
}
.item-admissions:hover {
    filter: brightness(1.1);
}

.item-materials {
    background-color: #E91E63; /* ピンク色 */
}
.item-materials:hover {
    filter: brightness(1.1);
}

.item-contact {
    background-color: #3498DB; /* 水色 */
}
.item-contact:hover {
    filter: brightness(1.1);
}

/* サイドバーのレスポンシブ対応 (モバイルでは非表示) */
@media (max-width: 992px) {
    .fixed-sidebar-menu {
        display: none;
    }
}


/* --- ページトップへ戻るボタンのスタイル --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px; /* サイドバーがない場合 */
    width: 50px;
    height: 50px;
    background-color: #E91E63; /* ピンク色 */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
    z-index: 100;
}

.back-to-top:hover {
    background-color: #C2185B;
    transform: translateY(-3px);
}

/* サイドバーがある場合のトップボタン位置調整 */
@media (min-width: 993px) {
    .back-to-top {
        right: 90px; /* サイドバーの右隣に配置 */
    }
}

/* トップボタンのレスポンシブ対応 (モバイルでは右端) */
@media (max-width: 992px) {
    .back-to-top {
        right: 20px; /* モバイルでは右端に固定 */
        bottom: 20px;
    }
}

.top-search {
	margin-top: 30px;
}

@media screen and (min-width: 769px) {
  .top-search {
    margin-top: 0px;
  }
}

.season-school-inner {
	width: 100%;
}

@media screen and (min-width: 769px) {
	.season-school-inner {
		width: 1100px;
		margin: auto;
	}
}

#box-mainvisual-01 {
  padding: 0 0 20px;
}

@media screen and (min-width: 769px) {
  #box-mainvisual-01 {
    padding: 10px 0 70px;
  }
}

.container {
    max-width: 900px; /* コンテンツエリアの最大幅を設定 */
    margin: 0 auto;    /* 左右マージンをautoにして中央寄せ */
    padding: 0 20px 20px;   /* 画面端に余裕を持たせる */
    background: #fff;
  	position: relative;
}

/* セクションタイトル */
.section-title {
	font-size: 2em;
    font-weight: bold;
    margin-top: -60px;  /* **重要: 画像に少し被せるための調整** */
    margin-bottom: 40px;
    line-height: 1.4;
    color: #333;
    /* 背景色を白にして、画像に被った部分の文字が見えるようにする */
    padding: 30px 20px;
    background-color: white;
    border-radius: 8px; /* 角丸でデザイン性を出す */
    text-align: center;
}

/* 本文エリアの調整 */
.content-body {
    max-width: 900px; /* 本文の最大幅をコンテナより少し狭くして読みやすくする */
    margin: 0 auto;   /* 中央寄せ */
    text-align: left; /* **重要: 本文のテキストを左寄せに戻す** */
}

/* 本文段落のスタイル */
.content-body p {
	font-size: 1em;
    margin-bottom: 40px;
    line-height: 1.6em;
}

@media screen and (max-width:767px) {
	.section-title {
		padding: 50px 0 0;
	}

	.content-body p {
	    margin-bottom: 40px;
	}
}

/* ギャラリー */
.gallery-list {
    max-width: 1100px;
    width: 100%;
    margin-inline: auto;
    /* 以下gridレイアウト用 */
    display: grid;
    gap: 10px;/* 画像間の余白 */
    grid-auto-flow: dense; /* 隙間を埋めながら配置 */
    grid-template-columns: repeat(7, 1fr); /* カラム数を設定 */
}

.gallery-list img:nth-child(7n+1) {
  grid-column: span 3;
  grid-row: span 2;
}
.gallery-list img:nth-child(7n+2),
.gallery-list img:nth-child(7n+3) {
  grid-column: span 4;
  grid-row: span 1;
}
.gallery-list img:nth-child(7n+4) {
  grid-column: span 4;
  grid-row: span 2;
}
.gallery-list img:nth-child(7n+5) {
  grid-column: span 4;
  grid-row: span 2;
}
.gallery-list img:nth-child(7n+6) {
  grid-column: span 3;
  grid-row: span 1;
}
.gallery-list img:nth-child(7n+7) {
  grid-column: span 3;
  grid-row: span 3;
}

/* アスペクト比設定 */
.gallery-list img {
    display: block;
    aspect-ratio: 300/200;
    width: 100%;
    height: 100%;
    object-fit: cover;	
}
.gallery-list img:first-child {
  aspect-ratio: 200/400;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-list img:nth-child(7) {
  aspect-ratio: 200/300;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 2. コンテンツの最大幅制限と中央寄せ */
.season-section .container {
    max-width: 100%; /* コンテンツエリアの最大幅を設定 */
    margin: 0 auto;    /* 左右マージンをautoにして中央寄せ */
    padding: 0 20px 20px;   /* 画面端に余裕を持たせる */
    /*background: #fff;*/
  	position: relative;
    line-height: 1.6;
}

/* レスポンシブデザイン（モバイル対応） */
@media (max-width: 768px) {
	.season-section .container {
		padding: 10px 20px;
	}
    .season-section {
        padding: 40px 0;
    }
    .section-title {
        font-size: 24px;
        margin-bottom: 20px;
        margin-top: 0;
    }
    .section-3 img {
	  width: 100%;
	}
    
    .schedule-section {
    	padding: 0;
    }

    .schedule-flex-container {
        flex-direction: column; /* 要素を縦に並べる */
    }
    .schedule-image, .schedule-list {
        flex-basis: 100%; /* 幅を100%に */
        margin-top: 0;
    }
    
    .schedule-list {
    	position: unset;
    }
    
    .schedule-description {
    	margin-top: 0;
    	padding-bottom: 20px;
    }
}

/* Googleクチコミ */
.min_sp {
	display: none;
}

@media screen and (max-width: 350px) {
	.min_sp {
		display: block;
	}
}
.reviews-average {
  	display: block ruby;
  	text-align: right;
}
.evaluation .star .material-symbols-sharp {
	color: #ebbf5a;
	font-size: 20px;
	font-variation-settings: "FILL" 1;
	margin-top: 4px;
}
.reviews {
	text-align: left;
	padding-bottom: 10px;
}
.reviews .reviews-img img {
  	width: 24%;
  	display: inline-block;
}
.school-comment {
	text-align: left;
	background-color: #ffefcc;
	padding: 10px 20px;
	border-radius: 10px;
	margin-bottom: 20px;
}
.evaluation .number {
    font-size: 24px;
    font-weight: 500;
}
.evaluation .number .small {
    font-size: 16px;
    font-weight: 400;
    margin-left: 5px;
}
.baloon {
    font-size: 13px;
    background: #f0f0f0;
    padding: 10px;
    position: relative;
    text-align: center;
}
.baloon::after {
    content: "";
    position: absolute;
    bottom: -16px;
    left: 50%;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 16px 10px 0 10px;
    border-color: #f0f0f0 transparent transparent transparent;
}
.reviews-link {
	display: block;
	text-align: center;
}
.reviews-btn {
    font-size: 14px;
    font-weight: bold;
    padding: 20px 0;
    color: #c12322;
    border-radius: 35px;
    border: 1px solid #c12322;
    margin: 20px 0;
    -webkit-box-shadow: 0 4px 0 0 rgba(51, 51, 51, 0.2);
            box-shadow: 0 4px 0 0 rgba(51, 51, 51, 0.2);
}

.wrap {
	max-width: 1000px;
	width: 100%;
	margin: 0 auto;
	padding-bottom: 20px;
}
  