/*
Theme Name: kango7
Theme URI: http://example.com/
Author: tomokin
Author URI: http://example.com/
Description: テーマの説
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho&family=Shippori+Mincho+B1&family=Zen+Kaku+Gothic+New&family=Zen+Maru+Gothic&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Staatliches&family=Zen+Maru+Gothic&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&display=swap');


/*! destyle.css v3.0.2 | MIT License | https://github.com/nicolas-cusan/destyle.css */

/* Reset box-model and set borders */
/* ============================================ */

*,
::before,
::after {
  box-sizing: border-box;
  border-style: solid;
  border-width: 0;
}

/* Document */
/* ============================================ */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 * 3. Remove gray overlay on links for iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -webkit-tap-highlight-color: transparent; /* 3*/
}

/* Sections */
/* ============================================ */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}

/* Vertical rhythm */
/* ============================================ */

p,
table,
blockquote,
address,
pre,
iframe,
form,
figure,
dl {
  margin: 0;
}

/* Headings */
/* ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
   margin: 0;
}

/* Lists (enumeration) */
/* ============================================ */

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Lists (definition) */
/* ============================================ */

dt {
  font-weight: bold;
}

dd {
  margin-left: 0;
}

/* Grouping content */
/* ============================================ */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
  border-top-width: 1px;
  margin: 0;
  clear: both;
  color: inherit;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: inherit; /* 2 */
}

address {
  font-style: inherit;
}

/* Text-level semantics */
/* ============================================ */

/**
 * Remove the gray background on active links in IE 10.
 */

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

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: inherit; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Replaced content */
/* ============================================ */

/**
 * Prevent vertical alignment issues.
 */

svg,
img,
embed,
object,
iframe {
  vertical-align: bottom;
}

/* Forms */
/* ============================================ */

/**
 * Reset form fields to make them styleable.
 * 1. Make form elements stylable across systems iOS especially.
 * 2. Inherit text-transform from parent.
 */

button,
input,
optgroup,
select,
textarea {
  -webkit-appearance: none; /* 1 */
  appearance: none;
  vertical-align: middle;
  color: inherit;
  font: inherit;
/*  background: transparent;*/
  padding: 0;
  margin: 0;
  border-radius: 0;
  text-align: inherit;
  text-transform: inherit; /* 2 */
	 border: 1px solid #000;
}

/**
 * Reset radio and checkbox appearance to preserve their look in iOS.
 */

[type="checkbox"] {
  -webkit-appearance: checkbox;
  appearance: checkbox;
}

[type="radio"] {
  -webkit-appearance: radio;
  appearance: radio;
}

/**
 * Correct cursors for clickable elements.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  cursor: pointer;
}

button:disabled,
[type="button"]:disabled,
[type="reset"]:disabled,
[type="submit"]:disabled {
  cursor: default;
}

/**
 * Improve outlines for Firefox and unify style with input elements & buttons.
 */

:-moz-focusring {
  outline: auto;
}

select:disabled {
  opacity: inherit;
}

/**
 * Remove padding
 */

option {
  padding: 0;
}

/**
 * Reset to invisible
 */

fieldset {
  margin: 0;
  padding: 0;
  min-width: 0;
}

legend {
  padding: 0;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the outline style in Safari.
 */

[type="search"] {
  outline-offset: -2px; /* 1 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Fix font inheritance.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/**
 * Clickable labels
 */

label[for] {
  cursor: pointer;
}

/* Interactive */
/* ============================================ */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/*
 * Remove outline for editable content.
 */

[contenteditable]:focus {
  outline: auto;
}

/* Tables */
/* ============================================ */

/**
1. Correct table border color inheritance in all Chrome and Safari.
*/

table {
  border-color: inherit; /* 1 */
  border-collapse: collapse;
}

caption {
  text-align: left;
}

td,
th {
  vertical-align: top;
  padding: 0;
}

th {
  text-align: left;
  font-weight: bold;
}



img {
    border-radius: 15px;
}

/* 基本の文字色を設定 */
body, p, b, strong, li, ul, ol, .post-title, .post-excerpt, .post-meta, .post-date, .post-category {
    font-family: "Zen Maru Gothic", serif;
    font-weight: 400;
    font-style: normal;
    color: #5c2a2f; /* 段落やメニューの文字色 */
}

h1, h2, h3, h4 {
    font-family: "Zen Maru Gothic", serif;
     line-height: 1.8;
    font-weight: bold;
    color: #ff5885; /* 見出しの文字色 */
}

/* ボールドとイタリックのスタイルを強制的に適用 */
b, strong {
    font-weight: bold !important;
}


/* 基本の段落スタイル */
p {
    font-size: 1rem; /* デフォルトのフォントサイズ */
    line-height: 1.6; /* 行間 */
    margin-bottom: 1.5rem; /* 段落間のスペース */
}

/* スマホ用のスタイル */
@media screen and (max-width: 767px) {
    p {
        font-size: 0.9rem; /* スマホ用のフォントサイズ */
        line-height: 1.5; /* 行間 */
        margin-bottom: 1.2rem; /* 段落間のスペース */
    }
}

/* タブレット用のスタイル */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    p {
        font-size: 1rem; /* タブレット用のフォントサイズ */
        line-height: 1.6; /* 行間 */
        margin-bottom: 1.5rem; /* 段落間のスペース */
    }
}

/* PC用のスタイル */
@media screen and (min-width: 1025px) {
    p {
        font-size: 1rem; /* PC用のフォントサイズ */
        line-height: 1.5; /* 行間 */
        margin-bottom: 1.8rem; /* 段落間のスペース */
    }
}

h1 {
    font-size: 1.3rem !important;; /* おすすめの大きさ */
}

h2 {
    font-size: 1.2rem !important;; /* おすすめの大きさ */
}

h3 {
    font-size: 1.1rem !important;; /* おすすめの大きさ */
}

h4 {
    font-size: 1.1rem !important;; /* おすすめの大きさ */
}

/* メニューのフォントを太字にする */
#global-nav-pc a, #global-nav-mobile a {
    font-weight: 700; /* 太字に設定 */
    color: #5c2a2f; /* メニューの文字色 */
}
/* リンクにマウスオーバーしたときに下線を表示 */
a {  font-weight: bold;
    color: #ff5885;
    text-decoration: none; /* デフォルトでは下線を消す */
}

a:hover {
    text-decoration: underline; /* マウスオーバー時に下線を表示 */
}
/* 固定ページと投稿ページのタイトルを大きく表示 */
article h1 {
  display: block;
    font-size: 2.0rem !important;
    line-height: 1.2 !important;
    margin-bottom: 20px;
}

/* 固定ページと投稿ページの文章を折り返し可能にする */
article p, article b, article span, article div {
    white-space: normal !important;
    word-wrap: break-word !important;
    line-height: 2;
}

* {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-image: url('https://www.nurse-komoro.org/wp-content/uploads/2025/02/haieki-1.jpg');
    background-attachment: fixed;
    background-size: cover; /* 画像をカバーするように設定 */
    background-position: center; /* 画像を中央に配置 */
	/*  background: repeating-linear-gradient(-45deg, #fdf0f6, #fdf0f6 10px, #fceaf2 10px, #fceaf2 20px), transparent; */
}



@media screen and (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        background-image: url('https://www.nurse-komoro.org/wp-content/uploads/2025/02/haieki-1.jpg');
    }
}

/* h1からh4の色を#033560に変更 */
h1, h2, h3, h4 {
    line-height: 1.5;
}

/* ヘッダー */
#global-head {
    position: fixed;
    width: 100%;
      z-index: 2000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ナビゲーショントグル */
#nav-toggle {
    display: none;
    position: fixed;
    top: 10px;
    right: 15px;
    height: 32px;
    cursor: pointer;
    z-index: 4000;
}
#nav-toggle::before {
    content: 'MENU';
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    color: #ff5885;
}
#nav-toggle div {
    width: 40px;
    height: 3px;
    background-color: #ff5885;
    margin: 6px 0;
    transition: transform 0.4s;
}

.open #nav-toggle div:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.open #nav-toggle div:nth-child(2) {
    opacity: 0; /* 消える */
}

.open #nav-toggle div:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* サイドバー(PC表示) */
#sidebar-pc {
    z-index: 1000;
}

/* サイドバー(スマホ表示) */
#sidebar-mobile {
    z-index: 1500;
}
/* ナビゲーション(PC表示) */
#global-nav-pc ul {
    list-style: none;
    margin-left: 0;
}

#global-nav-pc > ul > li {
    position: relative;
}

#global-nav-pc a {
    text-decoration: none;
    display: block;
    padding: 6px 0;
    transition: background-color 0.3s linear;
    text-align: center;
}

/* ナビゲーション(スマホ表示) */
#global-nav-mobile {
    padding-top: 60px;
}

#global-nav-mobile ul {
    list-style: none;
    margin-left: 0;
}

#global-nav-mobile > ul > li {
    position: relative;
}

#global-nav-mobile a {
    text-decoration: none;
    display: block;
    padding: 15px 0;
    transition: background-color 0.3s linear;
}

/* サブメニュー */
#global-nav-pc .sub-menu-nav {
    border-radius: 10px;
    padding: 15px;
    position: relative;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1000;
}

#global-nav-pc .sub-menu:hover .sub-menu-nav, #global-nav-pc .sub-menu-nav:hover {
    opacity: 1;
    visibility: visible;
}

#global-nav-pc .sub-menu-nav:not(:hover) {
    opacity: 0;
    visibility: hidden;
}

/* オーバーレイ */
#overlay {
    display: none;
    position: fixed;
    background: rgba(0, 0, 0, .6);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* ロゴの位置調整（PC表示のみ） */
@media screen and (min-width: 1367px) {
    #brand-logo {
        top: 77px ;
    }
    #global-nav-pc {
        /*margin-top: -40px  */
    }
    #main {
        margin-left: 280px ;
        padding: 20px;
    }
    footer {
        
        padding: 20px ;
    }
}

/* レスポンシブデザイン */
@media screen and (max-width: 1024px) {
    #global-head {
        justify-content: space-between;
    }
    #sidebar-pc {
        display: none;
    }
    #sidebar-mobile {
        display: block;
        position: fixed;
        top: 0;
        height: 100%;
        width: 100%;
        color: #333;
        background: rgba(255, 255, 255, 0.6);
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
        backdrop-filter: blur(5.5px);
        -webkit-backdrop-filter: blur(5.5px);
        transform: translateX(100%);
        transition: transform 0.35s ease-in-out;
        overflow-y: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    #sidebar-mobile::-webkit-scrollbar {
        display: none;
    }

    #nav-toggle {
        display: block;
    }


    .open {
        overflow: hidden;
    }
    .open #overlay {
        display: block;
    }
    .open #sidebar-mobile {
        transform: translateX(0);
    }
    .open #nav-toggle div:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .open #nav-toggle div:nth-child(2) {
        opacity: 0;
    }
    .open #nav-toggle div:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    .open #brand-logo {
        display: none;
    }
    .swiper {
        height: 70vh;
        margin: 0;
        border-radius: 0;
    }
    #global-head {
        background-color: transparent;
    }
    body.open #global-head {
        /* background-color: #fff; */
    }
    #nav-toggle {
        border-radius: 5px;
    }
    #main {
        margin-left: 0;
        padding: 20px;
    }
    #brand-logo-container {
        background-color: #fff;
    }
}

/* ロゴのサイズ調整 */
#brand-logo {
    top: 15px;
    left: 15px;
    z-index: 2000;
}

#global-nav-pc {margin-top: 120px;}

#brand-logo img {
    max-width: 100%;
    height: auto;
    width: auto;
    max-height: 50px;
}

#brand-logo img {
    position: relative;
}
@media screen and (min-width: 1241px) {
    #brand-logo img {
        top: 95px;
    }
}

/* ロゴコンテナの背景を白にする */
#brand-logo-container {
    position: fixed;
    width: 100%;
    z-index: 1999;
}

@media screen and (max-width: 1240px) {
    #brand-logo-container {
        position: static;
    }
}

@media screen and (min-width: 1241px) {
    #brand-logo-container {
        background-color: transparent;
    }
}

/* iPhone横表示用のメディアクエリ */
@media screen and (orientation: landscape) and (max-height: 450px) {
    #main {
        margin-left: 0 !important;
        padding-top: 0;
        padding-right: 0;
        padding-bottom: 0;
        padding-left: 0;
    }
    #brand-logo {
        top: auto !important;
    }
}

/* iPad mini以上のタブレット横表示用のメディアクエリ */
@media screen and (min-width: 1024px) and (orientation: landscape) {
    #main {
        padding-top: 0;
        padding-right: 0;
        padding-bottom: 0;
        padding-left: 0;
    }
    #brand-logo {
        top: auto !important;
    }
}

/* コンテンツのパディング */
.custom-post-list {
    display: grid;
    gap: 20px;
    
}

.custom-post-list.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.custom-post-list.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media screen and (max-width: 600px) {
    .custom-post-list.columns-2, .custom-post-list.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.post-item {
    padding: 10px;
    border-radius: 10px;
    overflow: hidden;
}

.post-item a {
    text-decoration: none;
    color: inherit;
}

.post-thumbnail {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 41.25%;
}

.post-thumbnail img {
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.8s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: auto;
}

.post-thumbnail:hover img {
    transform: translate(-50%, -50%) scale(1.1);
}

.post-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.post-date {
    font-size: 0.7rem;
}

.post-title {
    font-size: 1.0rem; /* タイトルの文字サイズを大きく */
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #ff5885; /* タイトルの文字色を変更 */
	line-height: 1.5;
}

.post-excerpt {
    font-size: 0.8rem; /* 抜粋の文字サイズを大きく */
    margin-bottom: 1rem;
	line-height: 1.5;
}
.all-posts-link {
    text-align: right;
   font-size: 0.8rem;
    font-weight: bold;
}

.c-text {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    justify-content: center;
    z-index: 1000;
    position: relative;
    margin-top: 20px;
}

.c-text__item {
    flex-shrink: 0;
    white-space: nowrap;
    font-weight: 200;
    font-style: normal;
    animation: text-scroll 90s linear infinite;
    text-shadow: 1px 1px 8px rgba(163, 163, 163, 0.4);
    padding: 10px;
}

@keyframes text-scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@media screen and (max-width: 600px) {
    .c-text__item {
        font-size: 5vw;
        font-family: "adobe-handwriting-ernie", sans-serif;
    }
}

@media screen and (min-width: 901px) {
    .c-text__item {
        font-size: 2vw;
        font-family: "adobe-handwriting-ernie", sans-serif;
    }
}

@media screen and (max-width: 900px) {
    .c-text__item {
        font-size: 5vw;
    }
}

.custom-image-container {
    overflow: hidden;
    border-radius: 15px;
    width: 100%;
    height: auto;
}

.custom-image-container img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}



/* Swiperのスタイル */
.swiper {
    width: calc(100%);
    height: 60vh; /* デフォルトの高さを60vhに設定 */
    position: relative; /* スクロール要素をSwiper内に配置するために追加 */
    border-radius: 20px; /* 全体の角を角丸に設定 */
}

@media screen and (min-width: 1367px) {
    .swiper {
        /* margin: 50px 30px 30px 30px;  解像度が1367px以上の場合、マージンをリセット */
    }
}

@media screen and (max-width: 1240px) {
    .swiper {
        height: 60vh; /* スマホ表示の高さを60vhに設定 */
        margin: 0; /* スマホ表示時は間隔をリセット */
        border-radius: 20px; /* スマホ表示時も角丸を設定 */
        /* border-radius: 0;  スマホ表示時は角丸をリセット */
    }
    .scroll-pc {
        display: none; /* スマホ表示時は非表示 */
    }
    .scroll-mobile {
        display: block; /* スマホ表示時に表示 */
    }
}

.swiper-slide {
    position: relative;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 10s ease-in-out; /* ズームエフェクトの時間を10秒に設定 */
}

.swiper-slide-active img {
    transform: scale(1.1); /* ズームエフェクト */
}

/* キャッチコピーのスタイル */
.caption {
    position: absolute;
    color: white;
    font-size: 3vw; /* フォントサイズを大きく */
    font-weight: 400;
    text-shadow: 1px 1px 7px rgba(0, 0, 0, 0.9); /* テキストシャドウ */
    z-index: 1001; /* 画像の上に表示 */
    text-align: left; /* 左揃え */
    width: 90%; /* swiperの幅に合わせる */
}

.line1, .line2, .line3 {
    opacity: 0;
    animation: fadeInUp 2s forwards;
}

.line2 {
    animation-delay: 1s; /* 1秒遅れて表示 */
}

.line3 {
    animation-delay: 2s; /* 2秒遅れて表示 */
}

@media screen and (min-width: 901px) {
    .pc-caption {
        display: block;
        top: 75%;
        left: 5%;
        transform: translateY(-50%);
    }
    .mobile-caption {
        display: none;
    }
}

@media screen and (max-width: 900px) {
    .mobile-caption {
        display: block;
        top: 80%;
        left: 5%;
        transform: translateY(-50%);
        font-size: 7vw; /* スマホ表示時のフォントサイズを調整 */
    }
    .pc-caption {
        display: none;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0; /* 初期状態で透明 */
    animation: fadeInUp 1s ease forwards; /* アニメーションを適用 */
}

/* スマホやタブレット表示の場合のスタイル */
@media screen and (max-width: 1240px) {
    #main {
        margin-left: 0; /* メインコンテンツの左マージンをリセット */
        padding-top: 32px; /* トップのパディングを70pxに設定 */
        padding-right: 20px; /* 右のパディングを20pxに設定 */
        padding-bottom: 20px; /* 下のパディングを20pxに設定 */
        padding-left: 20px; /* 左のパディングを20pxに設定 */
    }
	 .swiper {
        border-radius: 0; /* スマホ表示時は角丸をリセット */
    }
}



/* タブレットやスマホの横位置のときにmainの左マージンをリセット */
@media screen and (min-width: 1024px) and (orientation: landscape) {
    #main {
        margin-left: 0 ; /* 左マージンをリセット */
        padding-top: 0;
        padding-right: 0;
        padding-bottom: 0;
        padding-left: 0;
    }
}

/* ロゴの固定位置調整 */
@media screen and (min-width: 901px) {
    #brand-logo {
        position: fixed; /* ロゴを固定 */
        top: 0px;
        left: 15px;
        z-index: 2000;
    }
}

@media screen and (max-width: 900px) {
    #brand-logo {
        position: static; /* スマホ表示時はロゴを固定しない */
    }
    #brand-logo-container {
        position: fixed; /* スマホ表示時にロゴコンテナを固定 */
        top: 0;
        width: 100%;
        background-color: #fff; /* スマホ表示時のロゴ背景色を白に設定 */
        z-index: 1999; /* ヘッダーの下に配置 */
    }
}

/* タブレットやスマホの横位置のときにロゴ背景を白にする */
@media screen and (orientation: landscape) {
}

/* PC表示時 解像度1366x768のとき 左固定メニューを表示 */
@media screen and (min-width: 1366px) and (max-width: 1366px) and (min-height: 768px) {
    #sidebar-pc {
        display: block;
        position: fixed;
        top: 100px;
        left: 20px;
        height: 100%;
        width: 280px;
        background: none;
        text-align: center;
        z-index: 1000;
    }
    #main {
        margin-left: 280px;
        padding-bottom: 20px;
        padding-left: 20px;
        padding-right: 20px;
    }
    footer {
      
        padding: 20px;
    }
}

/* iPadの横表示の時 */
@media screen and (max-width: 1024px) and (orientation: landscape) {
    #main {
        margin-left: 0 !important; /* 左マージンをリセット */
    }
    #sidebar-pc {
        display: none; /* サイドバーを非表示 */
    }
    #sidebar-mobile {
        display: block; /* ハンバーガーメニューを表示 */
    }
}

/* PC表示時 */
@media screen and (min-width: 1025px) {
    #main {
        margin-left: 280px; /* 左マージンを設定 */
    }
    #sidebar-pc {
        display: block; /* サイドバーを表示 */
    }
    #sidebar-mobile {
        display: none; /* ハンバーガーメニューを非表示 */
    }
}

/* タブレットとスマホ表示時の調整 */
@media screen and (max-width: 1024px) {
    #main {
        padding-top: 32px; /* トップのパディングを追加 */
    }
    #brand-logo-container {
        position: fixed;
        top: 0;
        width: 100%;
        background-color: #fff; /* 背景色を白に設定 */
        z-index: 1999; /* ヘッダーの下に配置 */
    }
    article h1 {
        font-size: 1.5rem !important;
    }
}

/* FWXGAモニターに対してのみ適用 */
@media (max-width: 1366px) and (min-width: 1280px) {
    #global-nav-pc a {
        padding: 4px 0;
    }
}

/* スマホの縦表示で #main と footer の左マージンとパディングをリセット */
@media screen and (max-width: 767px) and (orientation: portrait) {
    #main {
        margin-left: 0 !important; /* 左マージンをリセット */
    }
    footer {
        margin-left: 0 !important; /* 左マージンをリセット */
    }
}

/* トップページの最新投稿のスタイル */
.latest-post-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9のアスペクト比 */
    overflow: hidden;
    border-radius: 10px; /* 角丸にする */
}

.latest-post-thumbnail img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: auto;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.8s ease;
    border-radius: 10px; /* 角丸にする */
}

.latest-post-thumbnail:hover img {
    transform: translate(-50%, -50%) scale(1.1); /* マウスオーバー時にズーム */
}

/* PC表示時のアイキャッチ画像の高さと角丸を調整 */
@media screen and (min-width: 1024px) {
    .post-thumbnail {
        overflow: hidden !important;
        position: relative !important;
        border-radius: 20px !important; /* Swiperと同じ角丸に設定 */
    }

.post-thumbnail img {
        position: absolute !important;
        top: 38% !important; /* 画像のトップの位置を35%に設定 */
        left: 50% !important;
        width: 100% !important;
        height: 60vh !important; /* Swiperと同じ比率に設定 */
        transform: translate(-50%, -35%) !important; /* 画像の位置を調整 */
        border-radius: 20px !important; /* 画像自体も角丸にする */
        object-fit: cover !important; /* 画像をカバーするように調整 */
	margin-top: -40px;
    }
    }
}


/* 投稿日と.post-thumbnailの間隔を調整 */
.post-meta {
    margin-bottom: 15px; /* 投稿日と次の要素の間隔を15pxに設定 */
}

@media screen and (min-width: 1024px) {
    .post-meta {
        margin-bottom: 5px; /* PC表示時に間隔を5pxに設定 */
    }
}

/* モバイル表示時のアイキャッチ画像のスタイル */
.custom-thumbnail-mobile img {
    width: 100% !重要;
    height: auto !重要;
    object-fit: cover !重要;
}

/* PC表示用の左固定メニュー */
@media screen and (min-width: 1025px) {
    #sidebar-pc {
        border-radius: 15px;
        padding: 10px;
        box-sizing: border-box;
        width: 280px;
        height: auto;
        position: fixed;
        left: 20px;
        z-index: 1000;
    }

    #brand-logo-container-pc {
        margin-bottom: 20px;
        position: static; /* PC表示では固定しない */
    }

    #brand-logo-container-mobile {
        display: none; /* PC表示では非表示 */
    }
}

/* モバイル表示用のロゴ位置調整 */
@media screen and (max-width: 1024px) {
    #global-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        top: 25px;
    }

    /* #brand-logo-container-mobileの高さを調整 */
    #brand-logo-container-mobile {
        position: fixed;
        width: 100%;
        height: 50px; /* 高さを50pxに設定 */
        background-color: #FFFFFF; /* 背景色を白に設定 */
        z-index: 1999;
        display: flex;
        align-items: center; /* ロゴとメニューを垂直方向に中央揃え */
        justify-content: space-between; /* ロゴとメニューを左右に配置 */
        padding: 0 15px; /* 左右にパディングを追加 */
        top: -3px;
        left: 0px;
    }

    /* メニューが表示されるときの背景をなしにする */
    .open #brand-logo-container-mobile {
        background-color: transparent; /* 背景色を透明に設定 */
    }
	  #brand-logo-container-pc {
        display: none; /* モバイル表示では非表示 */
    }

    #nav-toggle {
        position: fixed;
        top: 0px;
        right: 15px;
        z-index: 2000;
    }
}




/* 特定のページIDでheader-backgroundを表示する */
#header-background {
    width: 100%;
    position: relative; /* fixedからrelativeに変更 */
    top: 0;
    left: 0;
    z-index: 2000;
    display: flex;
    align-items: center; /* 中央揃え */
	height: auto;
}

.page-id-488 #header-background {

    height: auto;
    
  }


.page-id-488 #marquee-container {
    background-image: linear-gradient(-15deg, #ff8ca1 30%, #f6c3cc 70%);
    
        font-weight: bold;
  }

@media screen and (max-width: 1024px) {
    .page-id-488 #main-in {
        margin-top: 60px; /* 必要に応じて調整（マーキー分） */
    }
}

/* 他のページでheader-backgroundを非表示にする */
#header-background {
  display: flex;
    align-items: center; /* 中央揃え */
}

#header-background:empty {
    display: none; /* 中身がない場合は非表示にする（高さゼロ） */
}

/* 最後のメニュー項目のボーダーを消す */
#global-nav-pc li:last-child a, #global-nav-mobile li:last-child a {
    border-bottom: none;
}

/* アコーディオンメニューのスタイル */
.accordion-toggle {
    display: none;
}

/* デフォルトのスタイル */
#sidebar-pc {
    font-size: 1.1rem; /* 15px */
	 padding-top: 20px;
}

/* 解像度1366x768以下のスタイル */
@media screen and (max-width: 1366px) {
    #sidebar-pc {
        font-size: 0.85rem; /* 約13px */
    }
    #sidebar-pc ul li {
        margin-bottom: 0.5rem; /* メニュー間隔を狭める */
    }
}

/* メニューの文字を太字に */
#marquee-container {
    width: 100%;
    overflow: hidden;
    color: white;
    z-index: 2001;
	white-space: nowrap;
    box-sizing: border-box;
	 min-height: 40px; /* テキストがなくても高さ確保 */
}

#marquee-content {
    display: inline-block;
    padding-left: 0; /* ここを変更 */
    animation: marquee 300s linear infinite; /* 時間を20秒に短縮 */
    font-family: "Amatic SC", serif;
    font-weight: 700;
    font-style: normal;
    /* color: transparent; */
    color: #ffffff;
    /* -webkit-text-stroke: 1px #ffffff; */
}
#marquee-content img {
    height: 40px; /* デバイスに応じて調整 */
    margin: 0 10px; /* 画像とテキストの間にスペースを追加 */
}

#marquee-text {
    font-size: 3.2rem; /* デバイスに応じて調整 */
   
    white-space: nowrap;
}

@keyframes marquee {
    0% {
        transform: translateX(0%); /* 初期位置を0%に変更 */
    }
    100% {
        transform: translateX(-100%);
    }
}
#sidebar-pc {
    border-radius: 15px;
    padding: 10px;
    box-sizing: border-box;
    width: 280px;
    height: auto;
    position: fixed;
    left: 40px;
    z-index: 1000;
}

.icon-container {
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    pointer-events: none; /* アイコンがクリックされないようにする */
    z-index: 0; /* コンテンツの下に配置 */
}

.floating-icon {
    position: absolute;
    bottom: 0;
    width: 50px; /* 初期サイズ */
    opacity: 0;
    animation: floatUp 20s infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0.5) rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-50vh) scale(1.5) rotate(360deg); /* 真ん中あたりで消える */
        opacity: 0;
    }
}

/* PC表示のときだけ適用するスタイル */
@media (min-width: 1025px) {
    #main {
        padding-bottom: 20px;
        padding-left: 100px;
        padding-right: 80px;
    }
}

#sidebar-pc, #main-in {
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(11.5px);
    -webkit-backdrop-filter: blur(11.5px);
    border-radius: 15px;
    padding: 20px; /* コンテンツとの間隔を広げる */
}

@media screen and (min-width: 1366px) and (max-width: 1366px) and (min-height: 768px) {
    #sidebar-pc {
        padding-top: 20px; /* 上部に間隔を追加 */
    }
}

@media screen and (max-width: 1024px) and (orientation: portrait) {
    #main {
        margin-left: 0 !important; /* 左マージンをリセット */
    }
    #sidebar-pc {
        display: none; /* サイドバーを非表示 */
    }
    #sidebar-mobile {
        display: block; /* ハンバーガーメニューを表示 */
    }
}

@media screen and (max-width: 1024px) and (orientation: landscape) {
    #main {
        margin-left: 0 !important; /* 左マージンをリセット */
    }
    #sidebar-pc {
        display: none; /* サイドバーを非表示 */
    }
    #sidebar-mobile {
        display: block; /* ハンバーガーメニューを表示 */
    }
}

@media screen and (max-width: 1024px) {
    #header-background {
        top: 40px; /* topから40px下げる */
        position: relative;
    }

    #marquee-container {
        position: absolute;
        top: 50%; /* 親要素の高さの50% */
        left: 50%; /* 親要素の幅の50% */
        transform: translate(-50%, -50%); /* 中心に配置 */
        width: 100%; /* 必要に応じて調整 */
    }
}

/* PC以外のときのスタイル */
@media screen and (max-width: 1024px) {
    #global-nav-pc a, #global-nav-mobile a {
        border-bottom: none; /* PC以外のときのボーダーを非表示 */
    }
}

#sidebar-pc {
    overflow-y: auto; /* 縦スクロールを有効にする */
    max-height: 100vh; /* ビューポートの高さに制限 */
    padding-top: 20px; /* 上部に間隔を追加 */
}

#sidebar-pc ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

#sidebar-pc li {
    margin-bottom: 10px; /* メニュー項目間の間隔を追加 */
}

/* 共通のスタイル */
.menu-container {
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(5.5px);
    -webkit-backdrop-filter: blur(5.5px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 20px;
    margin: 20px;
}

/* PC用アコーディオンメニュー */
#sidebar-pc {
    overflow-y: auto;
    max-height: 100vh;
    padding: 20px;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(5.5px);
    -webkit-backdrop-filter: blur(5.5px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

#sidebar-pc ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

#sidebar-pc li {
    margin-bottom: 10px;
}

#sidebar-pc a {
    display: block;
    padding: 2px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    background: none; /* 背景色をなしに設定 */
    transition: color 0.3s;
    color: #ff6d9a;
}

#sidebar-pc .submenu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#sidebar-pc .menu-item-has-children.open .submenu {
    max-height: 500px; /* 必要に応じて調整 */
    opacity: 1;
}

#sidebar-pc .menu-item-has-children.open > a::after {
    transform: rotate(90deg);
}

/* スマホ用メニュー */
#sidebar-mobile {
    overflow-y: auto;
    max-height: 100vh;
    padding: 20px;
    background-color: hsla(23, 0%, 100%, 1);
    background-image: radial-gradient(circle at 0% 106%, hsla(114, 77%, 74%, 0.35) 3.465003465003465%, transparent 40%), radial-gradient(circle at 23% 93%, hsla(55, 77%, 74%, 0.35) 3.1210986267166043%, transparent 18.824383371502513%), radial-gradient(circle at 40% 99%, hsla(5, 77%, 74%, 0.35) 3.1210986267166043%, transparent 23.399896760492467%), radial-gradient(circle at 61% 101%, hsla(306, 77%, 74%, 0.35) 3.1210986267166043%, transparent 25.549055431257585%), radial-gradient(circle at 78% 106%, hsla(241, 77%, 74%, 0.35) 3.1210986267166043%, transparent 30.30413611102088%), radial-gradient(circle at 99% 106%, hsla(202, 77%, 74%, 0.35) 3%, transparent 33.17042402979904%);
    background-blend-mode: normal, normal, normal, normal, normal, normal;
}


#sidebar-mobile ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

#sidebar-mobile li {
    margin-bottom: 10px;
}

#sidebar-mobile a {
    display: block;
    padding: 9px;
    margin: 5px 0;
    text-decoration: none;
    color: #5c2a2f;
    font-weight: 700;
    border-radius: 12px;
    transition: background 0.3s, color 0.3s, transform 0.3s;
    font-size: 0.9rem; /* フォントサイズを調整 */
}

#sidebar-mobile a:hover {
    transform: scale(1.05);
}

#sidebar-mobile .submenu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#sidebar-mobile .menu-item-has-children.open .submenu {
    max-height: 500px; /* 必要に応じて調整 */
    opacity: 1;
}

/* Retinaディスプレイ対応のメディアクエリ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* 高解像度用のCSS指定 */
}

@media (-webkit-min-device-pixel-ratio: 2) and (min-width: 768px) and (max-width: 1199px), (min-resolution: 192dpi) and (min-width: 768px) and (max-width: 1199px) {
    /* 中モニタ 高解像度用のCSS指定 */
}

@media (-webkit-min-device-pixel-ratio: 2) and (min-width: 1200px), (min-resolution: 192dpi) and (min-width: 1200px) {
    /* 大モニタ 高解像度用のCSS指定 */
}

/* PC以外のときのスタイル */
@media screen and (max-width: 1024px) {
    #global-nav-pc a, #global-nav-mobile a {
        border-bottom: none; /* PC以外のときのボーダーを非表示 */
    }

   .page-id-488  #header-background {
        top: 74px; /* topから40px下げる */
        position: relative;
	   background-image: linear-gradient(-15deg, #ff8ca1 30%, #f6c3cc 70%);
    height: auto;
    }

    #marquee-container {
        position: absolute;
        top: 50%; /* 親要素の高さの50% */
        left: 50%; /* 親要素の幅の50% */
        transform: translate(-50%, -50%); /* 中心に配置 */
        width: 100%; /* 必要に応じて調整 */
    }

    #global-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        top: 25px;
    }
}

/* グラスモーフィズムのスタイル */
.menu-item-has-children > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 6px;
    background: none; /* 背景色をなしに設定 */
    transition: background 0.3s, transform 0.3s;
}

.menu-item-has-children > a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.menu-item-has-children > a::after {
    content: '+';
    color: #C17A3F;
    transition: transform 0.3s;
}

.menu-item-has-children.open > a::after {
    content: '-';
    transform: rotate(180deg);
}

/* サブメニューのスタイル */
.sub-menu-nav {
    display: none;
    border-radius: 10px;
    padding: 10px;
    position: relative;
    width: calc(100% + 20px); /* 幅を調整してブラーが切れないように */
    margin-left: -10px; /* 左右の余白を調整 */
    z-index: 1000;
}

.menu-item-has-children.open .sub-menu-nav {
    display: block;
    opacity: 1;
    visibility: visible;
}

#sidebar-pc ul {
    padding-left: 0; /* 左のパディングをリセット */
    list-style: none; /* リストスタイルをなしに */
}

#sidebar-pc li {
    text-align: left; /* 左寄せに */
}

.menu-item-has-children > a {
    border-radius: 15px; /* 角丸を設定 */
}

.menu-item-has-children.open > a {
    border-radius: 15px; /* 開いた状態でも角丸を保持 */
}

.menu-item-has-children > a {
    background: none; /* 背景をなしに */
}

/* ロゴのホバー効果を無効にする */
#brand-logo a:hover {
    background: none; /* 背景色を変更しない */
    color: inherit; /* 文字色を変更しない */
    transform: none; /* 変形を無効にする */
}

/* サブメニューのスタイル */
.sub-menu-nav {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(5.5px);
    -webkit-backdrop-filter: blur(5.5px);
    border-radius: 10px;
    padding: 10px;
    position: relative;
    width: 100%;
    z-index: 1000;
}

.menu-item-has-children.open .sub-menu-nav {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* 共通のスタイル */
.video {
    width: 100%;
    object-fit: cover;
    border-radius: 15px;
}

video::-webkit-media-controls {
    display: none !important;
}

video::-moz-media-controls {
    display: none !important;
}

video::-ms-media-controls {
    display: none !important;
}

video::-o-media-controls {
    display: none !important;
}

/* PC用のスタイル */
@media (min-width: 1025px) {
    .video {
        height: 50vh; /* PCの高さを70vhに設定 */
    }
}

/* モバイル用のスタイル */
@media (max-width: 1024px) {
    .video {
        height: 45vh; /* モバイルの高さを45vhに設定 */
    }
}



#sidebar-pc .sub-menu-nav {
    overflow: hidden; /* サブメニューのスクロールを無効にする */
}

/* 解像度1920x1080の場合 */
@media screen and (min-width: 1920px) and (min-height: 1080px) {
    #sidebar-pc {
        padding: 20px;
    }
}

/* 解像度1366x768の場合 */
@media screen and (max-width: 1366px) and (max-height: 768px) {
    #sidebar-pc {
        padding: 15px;
    }
}

/* 解像度1280x800の場合 */
@media screen and (max-width: 1280px) and (max-height: 800px) {
    #sidebar-pc {
        padding: 10px;
    }
}

/* 解像度1024x768の場合 */
@media screen and (max-width: 1024px) and (max-height: 768px) {
    #sidebar-pc {
        padding: 8px;
    }
}

/* PC表示用のメニュー */
@media screen and (min-width: 1025px) {
    #global-nav-pc a {
        color: #ff5885;
    }
    #global-nav-pc a:hover {
    }
    #global-nav-pc .current-menu-item a {
      background-image: linear-gradient(-15deg, #ff5885 30%, #ffb395 70%);
        color: #ffffff;
    }
}

/* モバイル表示用のメニュー */
@media screen and (max-width: 1024px) {
    #global-nav-mobile a {
        color: #5c2a2f;
        transition: background 0.3s, border 0.3s, color 0.3s;
    }
    #global-nav-mobile a:hover {
        border: 2px solid #ffffff;
        color: #ff6d9a;
    }
	#global-nav-mobile .current-menu-item a {
        background: #ff5885;
        color: #ffffff;
    }
}

/* グラスモーフィズムスタイル */
.menu-item-has-children > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5.5px);
    -webkit-backdrop-filter: blur(5.5px);
    border-radius: 10px;
    transition: background 0.3s, transform 0.3s;
}

.menu-item-has-children > a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.menu-item-has-children > a::after {
    content: '+';
    color: #5c2a2f;
    transition: transform 0.3s;
}

.menu-item-has-children.open > a::after {
    content: '-';
    transform: rotate(180deg);
}

#sidebar-pc a:hover {
    color: #ff5885; /* マウスオーバー時の文字色 */
    background: none; /* 背景色を変更しない */
}



#global-nav-pc a:hover {
color: #ffad97;}

#global-nav-mobile a:hover {
    color: #ffad97;
}

#global-nav-mobile a {
    color: #ff7a9b;
    font-size: 1.2rem; /* 必要に応じて調整 */
    padding-left: 10px; /* 必要に応じて調整 */
}

#global-nav-mobile a:active {
    color: #ffad97;
}

.sub-menu-nav {
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

#main {
    margin-top: 88px; /* 必要に応じて調整 */
}


.update-info-list, .custom-post-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
   
}

.update-info-item, .post-item {
  
    /* border-bottom: 1px solid #ddd; */
 
}

.update-info-meta, .post-meta {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.post-category {
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 0.7rem; /* 文字サイズを小さく */
}
.category-important {
    background-color: red; /* 重要カテゴリーの背景色 */
    color: #fff !important; /* 文字色を白に設定 */
}

.category-new {
    background-color: orange; /* NEWカテゴリーの背景色 */
    color: #fff !important; /* 文字色を白に設定 */
}

.category-student {
    background-color: purple; /* 受験生カテゴリーの背景色 */
    color: #fff !important; /* 文字色を白に設定 */
}

.category-default {
    background-color: #f99090; /* デフォルトカテゴリーの背景色 */
    color: #fff !important; /* 文字色を白に設定 */
}

.post-date {
    font-size: 0.7rem;
}



.update-info-link {
    text-align: right;
    margin-top: 20px;
}

.update-info-link a {
    color: #5c2a2f;
    text-decoration: none;
    font-weight: bold;
}

@media screen and (max-width: 767px) {
    .update-info-list, .custom-post-list {
        grid-template-columns: 1fr;
    }
}

#global-footer {
       bottom: 0;
    width: 100%;
    text-align: center;
    z-index: 1000;
}

#main-in {
    min-height: 80vh; /* 必要に応じて調整 */
    padding-bottom: 20px; /* フッターとの間隔を確保 */
}

.update-info-item {
    display: flex;
    flex-direction: column; /* 縦方向に配置 */
    align-items: flex-start;
    border-bottom: 1px solid #ddd;
    
}

.update-info-meta {
    display: flex;
    align-items: center;
    margin-bottom: 5px; /* カテゴリーと日付の間に間隔を追加 */
}

.update-info-meta .post-category {
    margin-right: 10px;
}

.update-info-meta .post-date {
    color: #5c2a2f;
}

.update-info-item .post-title {
    font-weight: bold;
    color: #5c2a2f;
    font-size: 1.2rem; /* フォントサイズを変更 */
}

#brand-logo-container-pc {
    display: flex;
    justify-content: center; /* ロゴを中央揃えにする */
    align-items: center;
    height: 100px; /* 必要に応じて高さを調整 */
	margin-bottom: 20px;/* ロゴの下にスペースを追加 */
}

#brand-logo-container-pc img {
    max-width: 100%; /* ロゴの最大幅を設定 */
    height: auto;
    width: auto;
    max-height: 124px; /* 必要に応じて高さを調整 */
	left: 51px;
top:35px;
}
@media screen and (max-width: 1024px) {
    #brand-logo-container-pc {
        display: none !important;
    }
}
p:empty {
    display: none;
}
.container {
    display: flex;
    gap: 0 20px; /* 必要に応じて間隔を調整 */
    width: 100%; /* 必要に応じて幅を調整 */
    margin: 0 auto;
    flex-wrap: wrap; /* 複数行に対応 */
}

.item {
    display: block;
    width: calc(100% / 3 - 20px); /* 列数に応じて幅を調整 */
    overflow: hidden;
    margin-bottom: 20px; /* 下部にスペースを追加 */
	border-radius: 15px;
}

.item img {
    width: 100%;
    height: 200px; /* 必要に応じて高さを調整 */
    object-fit: cover;
    transition: transform 0.4s;
}

.item:hover img {
    transform: scale(1.15);
}
#sidebar-pc {
    margin-top: 30px; /* 必要に応じて調整 */
}

#main {
    margin-top: 30px; /* 必要に応じて調整 */
}

/* iPad Proの解像度1366x1024に特化したメディアクエリ */
@media screen and (min-width: 1366px) and (max-width: 1366px) and (min-height: 1024px) and (max-height: 1024px) and (orientation: landscape) {
    #sidebar-pc {
        display: none !important; /* iPad Proでは非表示 */
    }
    #sidebar-mobile {
        display: block !important; /* iPad Proでは表示 */
    }
    #brand-logo-container-mobile {
        display: flex !important; /* iPad Proでは表示 */
        position: fixed;
        width: 100%;
        height: 50px;
        background-color: #FFFFFF;
        z-index: 1999;
        align-items: center;
        justify-content: space-between;
        padding: 7px 15px;
            left: 0px;
        top: 0;
    }
    #brand-logo-container-pc {
        display: none !important; /* iPad Proでは非表示 */
    }
	 #nav-toggle {
      
        top: 1px;
        right: 15px;
        height: 32px;
        cursor: pointer;
        z-index: 4000;
    }



/* 初期状態で非表示にする */
#global-nav-mobile {
 /*  display: none; */
}
#header-background {
  background-image: linear-gradient(-15deg, #ff8ca1 30%, #f6c3cc 70%);
  height: 60px;
  width: 100%;
  position: relative;
  top: 40px;
  left: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
}

}
/* PC表示時のメディアクエリ */
@media screen and (min-width: 1366px) and (max-width: 1366px) and (min-height: 768px) and (max-height: 768px) {
    #sidebar-pc {
        display: block !important; /* PC表示時に表示 */
    }
    #sidebar-mobile {
        display: none !important; /* PC表示時に非表示 */
    }
    #brand-logo-container-mobile {
        display: none !important; /* PC表示時に非表示 */
    }
    #brand-logo-container-pc {
		display: flex !important; /* PC表示時に表示 */
	} #nav-toggle {
        display: none !important; /* PC表示時に非表示 */
    }
}
/* iPad横位置のスタイル */
@media screen and (min-width: 820px) and (max-width: 1365px) and (orientation: landscape) {
    #sidebar-pc {
        display: none !important; /* サイドバーを非表示 */
    }
    #sidebar-mobile {
        display: block !important; /* ハンバーガーメニューを表示 */
    }
     #brand-logo-container-mobile {
        display: flex !important;
        position: fixed;
        width: 100%;
        height: 50px;
        background-color: #FFFFFF;
        z-index: 1999;
        align-items: center;
        justify-content: space-between;
        padding: 7px 15px;
               left: 0px;
        top: 0;
    }
    #brand-logo-container-pc {
        display: none !important; /* PC用ロゴコンテナを非表示 */
    }
    #main {
        margin-left: 0 !important; /* メインコンテンツを左に広げる */
    }

     #nav-toggle {
        position: fixed;
 /*!        top: 1px; */
        right: 15px;
        height: 32px;
        cursor: pointer;
        z-index: 4000;
        /*! top: 1; */
        top: 1px;
    }
	
}
/* 固定メニューボタンのスタイル */


  #fixed-menu {
            position: fixed;
            right: 0;
            z-index: 1000;
            display: flex;
            flex-direction: column;
            gap: 0;
        }

.fixed-menu-item {
    width: 65px; /* PC表示時の幅を65pxに */
    padding: 10px; /* パディングを調整 */
    border-radius: 15px 0 0 15px;
    background-color: #FCFCFC; /* デフォルトの背景色 */
    color: #5c2a2f; /* 文字色を#220e0eに */
    cursor: pointer;
    transition: background-color 0.3s;
    writing-mode: vertical-rl; /* 縦書き */
    text-orientation: upright; /* 縦書きの文字を正しく表示 */
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(11.5px);
    -webkit-backdrop-filter: blur(11.5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fixed-menu-item#open-campus {
    background-color: #FFEF77;
}

.fixed-menu-item#request-info {
    background-color: #BCE6F9;
}

.fixed-menu-item#contact-us {
    background-color: #FEC1C6;
}

.fixed-menu-item:hover {
    opacity: 0.8;
}

.fixed-menu-item .icon {
    margin-bottom: 5px; /* アイコンとテキストの間隔を調整 */
    font-size: 2em; /* アイコンを大きく */
}

/* ソーシャルアイコンのスタイル */
.fixed-menu-item.line {
    background-color: #21B44C;
}

.fixed-menu-item.instagram {
    background-color: #CD01C0;
}

.social-icons .fixed-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 15px 0 0 15px;
    color: white;
    text-align: center;
    transition: background-color 0.3s;
    writing-mode: vertical-rl; /* 縦書き */
    text-orientation: upright; /* 縦書きの文字を正しく表示 */
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(11.5px);
    -webkit-backdrop-filter: blur(11.5px);
}

.social-icons .fixed-menu-item .icon {
    font-size: 2.5em; /* ソーシャルアイコンを大きく */
}

.social-icons .fixed-menu-item:hover {
    opacity: 0.8;
}

/* スマホ表示用のスタイル */
@media screen and (max-width: 1024px) {
    #fixed-menu {
        flex-direction: row;
        bottom: 0;
        top: auto;
        right: 0;
        width: 100%; /* 端から端までのサイズに */
        justify-content: space-around;
        padding: 0; /* 下部にぴったりくっつける */
        transform: none; /* 中央揃えの解除 */
    }

    .fixed-menu-item {
        width: 33.33%; /* 3つのメニューを均等に */
        border-radius: 0; /* 四角形に */
        writing-mode: horizontal-tb; /* 横書きに */
        display: flex;
        flex-direction: column; /* アイコンを上、文字を下に */
        align-items: center;
        justify-content: center;
        gap: 5px; /* アイコンと文字の間隔 */
        padding: 10px 0; /* 下部にぴったりくっつける */
        font-size: 3vw; /* 文字を少し大きく */
        box-shadow: none; /* スマホ表示時に影響しないように */
        backdrop-filter: none; /* スマホ表示時に影響しないように */
        -webkit-backdrop-filter: none; /* スマホ表示時に影響しないように */
    }

    .fixed-menu-item .icon {
        margin-bottom: 0; /* アイコンとテキストの間隔をリセット */
        font-size: 2em; /* アイコンを大きく */
    }

    .social-icons {
        display: none;
    }
}



/* スクロールトップボタンのスタイル */
#scroll-top {
    position: fixed;
    right: 10px;
    bottom: 10px;
    padding: 10px;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    cursor: pointer;
    display: none;
    z-index: 1000;
}

#scroll-top:hover {
    opacity: 0.8;
}
.fa-brands,.fab {
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
    font-size: 2em;
}
.custom-columns {
    display: grid;
    gap: 20px; /* カラム間の間隔を調整 */
}

.custom-columns.columns-1 {
    grid-template-columns: repeat(1, 1fr);
}

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

.custom-columns.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.custom-columns.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.custom-columns.columns-5 {
    grid-template-columns: repeat(5, 1fr);
}
/* ズームイン */
.custom-zoom-in-image img {
    transition: transform 0.3s ease;
}

.custom-zoom-in-image:hover img {
    transform: scale(1.1);
}

/* ズームアウト */
.custom-zoom-out-image img {
    transition: transform 0.3s ease;
}

.custom-zoom-out-image:hover img {
    transform: scale(0.9);
}

/* フェードイン */
.custom-fade-in {
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in-up {
    transform: translateY(20px);
}

.fade-in-down {
    transform: translateY(-20px);
}

.fade-in-left {
    transform: translateX(20px);
}

.fade-in-right {
    transform: translateX(-20px);
}

.custom-fade-in.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* スライドイン */
.custom-slide-in {
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
}

.slide-in-up {
    transform: translateY(100%);
}

.slide-in-down {
    transform: translateY(-100%);
}

.slide-in-left {
    transform: translateX(100%);
}

.slide-in-right {
    transform: translateX(-100%);
}

.custom-slide-in.visible {
    opacity: 1;
    transform: translate(0, 0);
}

.custom-gradient-heading {
    border-radius: 15px;
    background-image: linear-gradient(-15deg, #ff5885 30%, #ffb395 70%);
    padding: 10px;
    color: white;
}

.custom-gradient-heading h1,
.custom-gradient-heading h2,
.custom-gradient-heading h3,
.custom-gradient-heading h4,
.custom-gradient-heading h5 {
    font-family: inherit;
    font-weight: bold;
    color: white;
    line-height: 1.8;
}

/* ズームイン */
.custom-zoom-in-image {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.custom-zoom-in-image img {
    transition: transform 0.3s ease, border-radius 0.3s ease;
    width: 100%;
    height: auto;
    transform-origin: center center; /* 中心からズームイン */
}

.custom-zoom-in-image:hover img {
    transform: scale(1.1);
    border-radius: 15px;
}/* ズームアウト */
.custom-zoom-out-image {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.custom-zoom-out-image img {
    transition: transform 0.3s ease, border-radius 0.3s ease;
    width: 100%;
    height: auto;
    transform-origin: center center; /* 中心からズームアウト */
}

.custom-zoom-out-image:hover img {
    transform: scale(0.9);
    border-radius: 0; /* 角丸をなくす */
}

 /* 学校行事用 */
  .container {
            max-width: 800px;
            margin: 20px auto;
            background: #fff;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }
   .schedule {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        .schedule-item {
            width: 100%;
            display: flex;
            justify-content: space-between;
            padding: 10px;
            border-radius: 5px;
            background: rgba(255, 182, 193, 0.3);
        }
        .date {
            font-weight: bold;
            color: #d63384;
        }
        .event {
            flex: 1;
            padding-left: 10px;
        }
        @media (max-width: 600px) {
            .schedule-item {
                flex-direction: column;
                text-align: left;
            }
            .date {
                font-size: 1.1em;
            }
        }
/* カリキュラムセクション */
.curriculum-section {
      margin: 0 auto;
       display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* カリキュラムボックス */
.curriculum-box {
    margin-bottom: 40px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* カリキュラムタイトル */
.curriculum-title {
    text-align: center;
    color: white;
    background-color: #ff8ca1;
    padding: 10px;
    border-radius: 15px 15px 0 0;
    font-size: 1.5rem;
    margin: 0;
}

/* カリキュラムコンテンツ */
.curriculum-content {
    padding: 10px;
   
}

/* 年次 */
.year {
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 5px;
}

/* 科目リスト */
.subjects {
    list-style: none;
    padding: 0;
}

.subjects li {
    padding: 5px 0;
    font-size: 1rem;
}

/* 時間割テーブル */
.timetable {
    width: 100%;
    border-collapse: collapse;
}

.timetable td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

/* 背景色の設定 */
.curriculum-box:nth-child(odd) {
   /* background: #ffe6f0; */ 
}

.curriculum-box:nth-child(even) {
   /* background: #ffe6f0; */ 
}

@media screen and (min-width: 768px) {
    .curriculum-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* メディアクエリ：スマホ用 */
@media screen and (max-width: 767px) {
    .curriculum-section {
        grid-template-columns: 1fr;
    }

    .curriculum-title {
        font-size: 1.2rem;
    }

    .subjects li {
        font-size: 0.9rem;
    }
}

/* 募集要項用 */
.responsive-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.responsive-table th, .responsive-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.responsive-table th {
    background-color: #f2f2f2;
}

@media screen and (max-width: 767px) {
    .responsive-table thead {
        display: none;
    }

    .responsive-table tr {
        display: block;
        margin-bottom: 0.625rem;
    }

    .responsive-table td {
        display: block;
        /* text-align: right;*/
        font-size: 0.8rem;
        border-bottom: 1px solid #ddd;
        position: relative;
        padding-left: 20%;
    }

    .responsive-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 0.625rem;
        font-weight: bold;
        text-align: left;
    }
}

.custom-title {
    background-color: #ac8cff; /* 新しい背景色 */
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
/* フォームセクション */
.form-section {
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* フォームボックス */
.form-box {
    margin-bottom: 40px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* フォームタイトル */
.form-title {
    text-align: center;
    color: white;
    background-color: #31bfff;
    padding: 10px;
    border-radius: 15px 15px 0 0;
    font-size: 1.2rem;
    margin: 0;
}

/* フォームコンテンツ */
.form-content {
    padding: 10px;
}

@media screen and (min-width: 768px) {
    .form-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* メディアクエリ：スマホ用 */
@media screen and (max-width: 767px) {
    .form-section {
        grid-template-columns: 1fr;
    }

    .form-title {
        font-size: 1.2rem;
    }
}




.custom-post-list {
    display: grid;
    gap: 20px;
}

.custom-post-list.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.custom-post-list.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.post-item {
    padding: 10px;
    border-radius: 10px;
    overflow: hidden;
}

.post-item a {
    text-decoration: none;
    color: inherit;
}

.latest-post-thumbnail {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 41.25%;
}

.latest-post-thumbnail img {
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.8s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: auto;
}

.latest-post-thumbnail:hover img {
    transform: translate(-50%, -50%) scale(1.1);
}

.post-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.post-date {
    font-size: 0.7rem;
}





.all-posts-link {
    text-align: right;
    font-size: 1rem;
    font-weight: bold;
}

@media screen and (min-width: 1025px) {
    .custom-post-list {
        grid-template-columns: repeat(4, 1fr) !important; /* 4列に設定 */
    }
}

.contact-info {
    text-align: center; /* 中央揃え */
    font-size: 1.2rem; /* フォントサイズを調整 */
    margin: 20px 0; /* 上下のマージンを追加 */
}

.contact-info a {
    color: #ff5885; /* リンクの色を設定 */
    text-decoration: none; /* 下線を消す */
}

.contact-info a:hover {
    text-decoration: underline; /* ホバー時に下線を表示 */
}

/***追従するトップへ戻るボタン***/
#page-top {
    position: fixed;
    right: 5px;
    bottom: 100px; /* ボタンをもう少し上に移動 */
    height: 50px;
    text-decoration: none;
    font-weight: bold;
    transform: rotate(90deg);
    font-size: 90%;
    line-height: 1.5rem;
    color: #737373;
    padding: 0 0 0 35px;
    border-top: solid 1px;
}

#page-top::before {
    content: "";
    display: block;
    position: absolute;
    top: -1px;
    left: 0px;
    width: 15px;
    border-top: solid 1px;
    transform: rotate(35deg);
    transform-origin: left top;
}

/* スマホ表示時のボタンサイズ調整 */
@media screen and (max-width: 767px) {
    #page-top {
        bottom: 120px; /* スマホ表示時のボタン位置をさらに上に移動 */
        height: 40px; /* ボタンの高さを小さく */
       ォントサイズを小さく */
        padding: 0 0 0 25px; /* パディングを調整 */
    }

    #page-top::before {
        width: 10px; /* 矢印の幅を小さく */
    }
}
/***トップへ戻るボタンここまで***/

/* スマホ用の fixed-menu 表示 */
@media screen and (max-width: 1024px) {
    #fixed-menu {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        padding: 8px 0;
        background: rgba(255, 255, 255, 0.95);
        border-top: 1px solid #ccc;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
    }

    .fixed-menu-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 12px;
        color: #333;
        text-decoration: none;
    }

    .fixed-menu-item .icon {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .social-icons {
        display: flex;
        gap: 10px;
    }
}

@media screen and (max-width: 1024px) {
    .social-icons {
        display: none !important;
    }
}
@media screen and (max-width: 1024px) {
    .post-excerpt {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    .post-title {
        font-size: 1rem;
        font-weight: bold;
        margin-bottom: 0.5rem;
        color: #ff5885;
        line-height: 1.4;
    }
}

.curriculum-list {
  list-style-type: decimal !important;
  list-style-position: outside !important;
  padding-left: 2em !important;
  margin: 0 !important;
}

.curriculum-list li {
  font-size: 16px !important;
  margin-bottom: 1em !important;
  line-height: 1.8 !important;
  color: #5c2a2f !important;
}

/* 数字だけ太字にする */
.curriculum-list li::marker {
  font-weight: bold !important;
}
.song-block {
  margin-left: 1.5em; /* 歌詞全体を右に寄せる */
}

.verse-number {
  display: block;
  text-indent: -1em;
  line-height: 1.8;
  font-size: 16px;
  white-space: normal !important;
  word-break: break-word;
}

.verse-number strong {
  font-weight: bold;
  color: #ff5885;
}
/* 親：2カラムグリッド */
.top-news-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

/* 見出しデザイン調整（背景が大きすぎないように） */
.news-title {
  display: block; /* ← inline-blockをblockに変更 or 削除でもOK */
  font-weight: bold;
  color: white;
  padding: 0.8em 1.2em;
  border-radius: 10px;
  background-image: linear-gradient(-15deg, #ff8ca1 30%, #f6c3cc 70%);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  width: 100%; /* 横幅いっぱい */
}

/* 投稿リストの縦スクロール（最大3件程度） */
.news-vertical-scroll {
  max-height: 200px; /* 適切な高さを指定 */
  overflow-y: auto !important; /* 強制的にスクロール表示 */
  padding-right: 0.5em;
}
.news-column {
  overflow: visible !important;
}

.news-vertical-scroll::-webkit-scrollbar {
  width: 6px;
}
.news-vertical-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}
.news-vertical-scroll::-webkit-scrollbar-track {
  background: transparent;
}

/* 投稿アイテム：日付＋リンク横並び */
.news-item {
  display: flex;
  justify-content: flex-start;
  gap: 1em;
  align-items: center;
  margin-bottom: 0.5em;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5em;
}
.news-date {
  font-size: 0.9em;
  color: #999;
  white-space: nowrap;
}
.news-link {
  text-decoration: none;
  color: #ff5885;
}

/* スマホ時は1カラムに */
@media (max-width: 768px) {
  .top-news-wrap {
    grid-template-columns: 1fr;
  }
}

  .responsive-table tr {
    border-bottom: 1px solid #ccc;
  }
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.5em;
  flex-wrap: wrap; /* スマホで折り返すように */
}

.post-title-inline {
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80%;
  display: inline-block;
  color: #ff5885;
  font-size: 16px; /* PC向けサイズ */
}

/* スマホ・タブレット向け */
@media (max-width: 767px) {
  .post-meta {
    flex-direction: column; /* 縦並びにする */
    align-items: flex-start; /* 左揃えに */
  }

  .post-title-inline {
    max-width: 100%;
    white-space: normal; /* 改行を許可 */
    font-size: 14px; /* スマホ向けサイズ */
  }
}
