/*
Theme Name: XWRITE child
Version: 1.0.0
Template: xwrite
*/

:root{
  --school-navy:#1f2a44;
  --school-gold:#c8a74a;
  --card-bg:#fff;
  --card-bd:#e5e7eb;
}

.notice-card{
  border:1px solid var(--card-bd);
  border-radius:8px;
  padding:12px 16px;
  background:var(--card-bg);
  box-shadow:0 1px 2px rgba(0,0,0,.04);
  margin-bottom:12px;
}
.notice-card a{ color:var(--school-navy); font-weight:700; text-decoration:none; }
.notice-card time{ display:block; font-size:.9rem; color:#6b7280; margin:.25rem 0 .5rem; }

.wp-block-button__link{
  background:var(--school-navy);
  color:#fff !important;
  border-radius:10px;
  padding:.8rem 1.2rem;
}
.wp-block-button__link:hover{ opacity:.9; }

.pdf-band{
  border-left:6px solid var(--school-gold);
  background:#fffaf0;
  padding:12px 16px;
  border-radius:8px;
}

/* どこにあるか一目で確認する */
iframe[src*="calendar.google.com"] {
  outline: 1px solid gray !important;
}

/****
#header {
	  display: none !important;
}
@media (max-width: 1024px){
#button .uhm-toggle {
  display: none !important;
	z-index: 99999 !important;
}
}
#responsive-menu-container { z-index: 99999 !important; }
***/


/* PCでも常時ハンバーガーメニューを表示 */
/*
#header .js-xw-menu-btn,.uhm-toggle {
  display: flex !important;
  cursor: pointer;
  z-index: 1001;
}
*/

/* 通常ナビを非表示 */
/*
.xw-global-nav, .xw-header__nav,.gNavList {
  display: none !important;
}

#header .uhm-toggle {
display: flex !important; 
	

    float: none;
    margin: 0 6px;
    align-items: center;
}
}
*/

/* XWRITE ヘッダー透明化 */
.header,
.site-header,
.site-header__inner,
.global-header,
.global-header__inner {
    background-color: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
}

/* PC時に白背景が出る場合 */
@media (min-width: 1024px) {
    .header-sticky {
        background: transparent !important;
    }
}

/* ヘッダー外側を100%に */
/* w-container による1170px制限を解除 */
.site-header__inner.w-container,
.global-header__inner.w-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 縦書き */
.tategaki {
  writing-mode: vertical-rl !important;
  text-orientation: upright !important;
  display: block !important;
  line-height: 2;
/*  font-size: 1.2rem; */
}

  /* 篠竹アイコン付き見出し */
  .take-heading {
    display: flex;
    align-items: center;
    gap: 0.4em;          /* アイコンと文字の間隔 */
    margin: 1em 0;
  }
  .take-heading .take-icon {
    width: 24px;         /* 表示サイズ：必要に応じて変更 */
    height: 24px;
    display: inline-block;
  }
  .take-heading .take-icon img {
    width: 100%;
    height: 100%;
    display: block;
  }

.take-icon img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 6px;
}


/* 新着 */
/* 全体のリスト */
.hs-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* リスト1行（境界線入り） */
.hs-news-item {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

/* 日付 */
.hs-date {
    color: #555;
    font-size: 1.5rem;  /* 文字大きめ */
    margin-right: 6px;
}

/* 投稿タイプラベル（白文字 + 角丸 + カラー背景） */
.hs-label {
    color: #fff !important;     /* 白文字 */
    padding: 3px 8px;
    font-size: 1.5rem;          /* 少し大きく */
    border-radius: 3px;
    margin-right: 8px;
    display: inline-block;
    line-height: 1.2;
}

/* タイトル（大きめ） */
.hs-title {
    text-decoration: none;
    font-size: 1.5rem;         /* 大きめフォント */
    color: #222;
    font-weight: 500;
}

.hs-title:hover {
    text-decoration: underline;
}

/* 投稿ページだけヘッダーと重ならないように余白を追加 */
body.single {
  padding-top: 120px; /* ←必要に応じて調整（100?140px程度） */
}





.bukatsu-section{ margin: 34px 0 10px; }
.bukatsu-section__title{
  margin: 0 0 14px;
  padding: 10px 14px;
  font-size: 22px;
  line-height: 1.2;
  border-radius: 14px;
  background: rgba(0,0,0,.04);
  display: flex;
  align-items: center;
  gap: 10px;
}
.bukatsu-section__title::before{
  content:"";
  width: 10px;
  height: 22px;
  border-radius: 99px;
  background: rgba(0,0,0,.18);
}

.bukatsu-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 1024px){ .bukatsu-grid{ grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 640px){ .bukatsu-grid{ grid-template-columns: 1fr; } }

.bukatsu-card{
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}
.bukatsu-card__body{ padding: 16px 18px 18px; }
.bukatsu-card__title{
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: .02em;
}
.bukatsu-card__content{
  font-size: 14px;
  line-height: 1.75;
  opacity: .92;
}
.bukatsu-card__content p{ margin: 0 0 6px; }
.bukatsu-card__content p:last-child{ margin-bottom: 0; }



/* 部活一覧（タイトル＋詳細ボタン） */
.bukatsu-list{
  display: grid;
  gap: 10px;
}

.bukatsu-row{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.bukatsu-row__title{
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: .02em;
}

.bukatsu-row__btn{
  border: 0;
  cursor: pointer;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.07);
  font-weight: 700;
  font-size: 13px;
}
.bukatsu-row__btn:hover{ background: rgba(0,0,0,.11); }

/* モーダル */
.bukatsu-modal{
  display: none;
}
.bukatsu-modal.is-open{
  display: block;
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.bukatsu-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}
.bukatsu-modal__panel{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(880px, calc(100vw - 24px));
  max-height: min(80vh, 760px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0,0,0,.22);
}

.bukatsu-modal__header{
  position: sticky;
  top: 0;
  background: #fff;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.bukatsu-modal__h{
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}
.bukatsu-modal__x{
  border: 0;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  font-size: 20px;
  line-height: 1;
}
.bukatsu-modal__x:hover{ background: rgba(0,0,0,.10); }

.bukatsu-modal__body{
  padding: 14px 16px 18px;
  font-size: 14px;
  line-height: 1.8;
}

/* モーダル開いてる間、背景スクロール抑制 */
html.bukatsu-modal-open, html.bukatsu-modal-open body{
  overflow: hidden;
}

/* =========================
   部活一覧：4列カード表示
   ========================= */

/* 一覧をグリッド化 */
.bukatsu-list{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

/* タブレット：2列 */
@media (max-width: 1024px){
  .bukatsu-list{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* スマホ：1列 */
@media (max-width: 640px){
  .bukatsu-list{
    grid-template-columns: 1fr;
  }
}

/* カード（高さを揃えやすく） */
.bukatsu-row{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 92px;
}

/* タイトルは中央寄せにするとカード感が出る */
.bukatsu-row__title{
  text-align: center;
  font-size: 15px;
}

/* ボタンも中央寄せ */
.bukatsu-row__btn{
  align-self: center;
  margin-top: 8px;
}

/* 4列グリッド */
.bukatsu-grouped{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
}
@media (max-width:1024px){
  .bukatsu-grouped{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width:640px){
  .bukatsu-grouped{ grid-template-columns: 1fr; }
}

/* カード */
.bukatsu-card{
  background:#fff;
  border-radius:16px;
  box-shadow:0 10px 24px rgba(0,0,0,.08);
  padding:14px 16px 16px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.bukatsu-card__title{
  text-align:center;
  font-size:18px;
  font-weight:700;
}

/* 年度ボタン */
.bukatsu-card__years{
  display:grid;
  gap:8px;
}
.bukatsu-year-btn{
  border:0;
  cursor:pointer;
  padding:8px 10px;
  border-radius:999px;
  background:rgba(0,0,0,.07);
  font-weight:700;
  font-size:13px;
}
.bukatsu-year-btn:hover{ background:rgba(0,0,0,.12); }

/* 投稿1件分（タイトル＋詳細ボタン） */
.bukatsu-post-row{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* タイトル：1行省略 */
/*
.bukatsu-post-title{
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
*/
/* タイトルを1行で省略（強制） */
.bukatsu-post-title{
  display: block;
  max-width: 22em;          /* ← 好みで調整 */
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;

  /* Elementor / テーマ対策 */
  word-break: normal !important;
  overflow-wrap: normal !important;
}


/* 詳細ボタンは下段・左寄せ */
.bukatsu-post-btn{
  align-self: flex-start;
}

/*
 WP Table Builder プラグインの表はセル内文字をセンタリング
 */
.wptb-row{
  text-align: center !important;
}

/*
 メニューのリンクが#のとき何もしない
 */
/*
.menu-item > a[href="#"] {
  pointer-events: none;
  cursor: default;
}
*/

/*
 記事一覧
 */
.hs-news-list{
  list-style:none;
  margin:0;
  padding:0;
  border-top:1px solid #e5e5e5;
}

.hs-news-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 0;
  border-bottom:1px solid #e5e5e5;
  flex-wrap:wrap;
}

.hs-date{
  min-width:90px;
  font-size:14px;
  color:#666;
}

.hs-label{
  display:inline-block;
  color:#fff;
  font-size:12px;
  line-height:1;
  padding:6px 10px;
  border-radius:999px;
  white-space:nowrap;
}

.hs-title{
  flex:1 1 300px;
  text-decoration:none;
  color:#222;
}

.hs-title:hover{
  text-decoration:underline;
}

.hs-news-more{
  margin-top:18px;
  text-align:right;
}

.hs-news-more-link{
  display:inline-block;
  text-decoration:none;
  font-weight:700;
}

.hs-pagination{
  margin-top:24px;
}

.hs-pagination ul{
  display:flex;
  gap:8px;
  list-style:none;
  padding:0;
  margin:0;
  flex-wrap:wrap;
}

.hs-pagination a,
.hs-pagination span{
  display:block;
  padding:8px 12px;
  border:1px solid #ddd;
  text-decoration:none;
  line-height:1.2;
}

.hs-pagination .current{
  font-weight:700;
  background:#f5f5f5;
}

@media (max-width: 767px){
  .hs-news-item{
    align-items:flex-start;
    gap:8px;
  }

  .hs-date{
    min-width:auto;
    width:100%;
  }

  .hs-title{
    flex:1 1 100%;
  }
}






.school-bottom-info{
  background:#fff;
  padding:40px 20px 24px;
}

.school-bottom-info__inner{
  max-width:1100px;
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:48px;
}

.school-bottom-info__left{
  flex:1 1 auto;
}

.school-bottom-info__name a{
  color:#222;
  text-decoration:none;
  font-size:24px;
  font-weight:700;
  line-height:1.5;
}

.school-bottom-info__name span{
  display:inline-block;
  font-size:13px;
  font-weight:400;
  color:#666;
  margin-top:2px;
}

.school-bottom-info__meta{
  margin-top:18px;
}

.school-bottom-info__meta p{
  margin:5px 0;
  font-size:15px;
  line-height:1.8;
  color:#333;
}

.school-bottom-info__right{
  flex:0 0 280px;
}

.school-bottom-info__right ul{
  list-style:none;
  margin:0;
  padding:0;
}

.school-bottom-info__right li{
  margin:0 0 12px;
}

.school-bottom-info__right a{
  color:#222;
  text-decoration:none;
  font-size:16px;
  line-height:1.7;
}

.school-bottom-info__right a:hover{
  text-decoration:underline;
}

@media (max-width: 767px){
  .school-bottom-info{
    padding:28px 16px 20px;
  }

  .school-bottom-info__inner{
    display:block;
  }

  .school-bottom-info__left{
    margin-bottom:24px;
  }

  .school-bottom-info__name a{
    font-size:20px;
  }

  .school-bottom-info__meta p,
  .school-bottom-info__right a{
    font-size:14px;
  }
}


/* サイトマップ内の文字を全部白に */
#sitemap,
#sitemap a,
#sitemap li,
#sitemap ul,
#sitemap span {
  color:#ffffff !important;
}

#sitemap h1,
#sitemap h2,
#sitemap h3,
#sitemap h4 {
  color:#ffffff !important;
}

.page-id-XXX .entry-content *{
  color:#ffffff !important;
}


