@charset "UTF-8";
/*
    Template: swell
    Theme Name: 多摩三田会(SWELL CHILD)
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/
    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* ヘッダー背景 */
.l-header {
    background-color: #001E62 !important;
}

/* サイト名・ロゴの文字色 */
.l-header__logo a,
.c-headLogo a,
.l-header__logo,
.c-headLogo {
    color: #F1C400 !important;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
}

/* ナビゲーションリンクのスタイル */
.c-gnav li a {
    color: #F1C400 !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    display: inline-block;
}

/* 下線アニメーション */
.c-gnav li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 4px;
    background-color: #C63527;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.c-gnav li a:hover::after {
    transform: scaleX(1);
}

/* 子メニュー */
.sub-menu {
    background-color: #001E62 !important;
    padding: 0;
    border: none;
    z-index: 9999;
}

.sub-menu li a {
    color: #F1C400 !important;
    padding: 10px 16px;
    display: block;
    font-size: 15px;
    white-space: nowrap;
}

.sub-menu li a:hover {
    background-color: #C63527 !important;
    color: #ffffff !important;
}

/* 全記事共通 h2 */
.c-entryContent h2 {
    background-color: #001E62;
    color: #F1C400;
    padding: 0.8em 1em;
    border-left: 6px solid #C63527;
    font-size: 20px;
    margin-top: 2em;
    margin-bottom: 1em;
}

/* ヒーロースライダー */
.custom-hero-slider .slide-text {
    color: white;
    font-size: 48px;
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'serif';
    font-weight: bold;
    letter-spacing: 1.5px;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8);
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 8px;
}

/* カスタムヘッダー構成 */
.custom-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background-color: #001E62;
    color: #F1C400;
    position: relative;
    z-index: 9999;
}

.custom-header-left {
    display: flex;
    align-items: center;
}

.custom-logo {
    height: 48px;
    margin-right: 12px;
}

.custom-site-title-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.custom-site-title {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

.custom-site-subtitle {
    font-size: 13px;
    color: #ccc;
}

.custom-gnav .c-gnav {
    display: flex;
    gap: 24px;
    list-style: none;
}

.custom-gnav .c-gnav li a {
    color: #F1C400;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
}

.custom-gnav .c-gnav li a:hover {
    color: #C63527;
    border-bottom: 2px solid #C63527;
}

/* -------------------
   ▼スマホ対応ここから
-------------------- */
@media screen and (max-width: 768px) {

    .custom-header-container {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background-color: #001E62;
        padding: 8px 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .custom-header-left {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .custom-logo {
        height: 32px;
    }

    .custom-site-title {
        font-size: 14px;
        color: #fff;
    }

    .custom-site-subtitle {
        font-size: 11px;
        color: #ccc;
    }

    .custom-gnav {
        display: none !important;
    }

    .sp_nav {
        display: block !important;
        position: absolute;
        top: 12px;
        right: 16px;
        z-index: 10000;
    }

    .w-header.pc_ {
        display: none !important;
    }

    body {
        padding-top: 64px;
    }

    .l-drawer,
    .l-drawer__overlay {
        z-index: 10001 !important;
    }
}
/* ▼ SPメニューがヘッダーより下に隠れないようにする */
#sp_menu {
    z-index: 10001 !important; /* ヘッダーより上に */
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
}

/* SWELLの黒背景ブランクレイヤーも忘れず修正 */
.l-drawer__overlay {
    z-index: 10000 !important;
}

/* ロゴ背景が白くなるのを防ぐ */
.custom-logo,
.c-headLogo img {
    background-color: transparent !important;
}

/* --------------------------------------------------
 * アーカイブ一覧レイアウト全体設定（左揃えに調整）
 * -------------------------------------------------- */
.blog_list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: flex-start; /* ← ここを left-align に */
}

/* --------------------------------------------------
 * 各記事カードのスタイル
 * -------------------------------------------------- */
.blog_list .item {
    width: calc(33.333% - 20px);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}
.blog_list .item:hover {
    transform: translateY(-5px);
}

/* --------------------------------------------------
 * 画像部分（アイキャッチ or ロゴ画像）
 * -------------------------------------------------- */
.image_wrap img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 770 / 520;
}

/* --------------------------------------------------
 * コンテンツエリア（カテゴリ＋タイトル）
 * -------------------------------------------------- */
.content {
    padding: 1rem;
}
.post-category {
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.post-category a {
    color: inherit; /* Swell の色を引き継ぐ */
    text-decoration: none;
}
.post-category a:hover {
    text-decoration: underline;
}
.content h2.title {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}
.content h2.title a {
    color: inherit; /* ← Swell に任せる */
    text-decoration: none;
}
.content h2.title a:hover {
    color: inherit; /* ← Swell の hover 色をそのまま使用 */
}

/* --------------------------------------------------
 * レスポンシブ対応（モバイル時）
 * -------------------------------------------------- */
@media screen and (max-width: 960px) {
    .blog_list .item {
        width: 100%;
    }
}

/* --------------------------------------------------
 * ホームのカードセクション
 * -------------------------------------------------- */
.club-grid-section {
  background-color: #f5f8fb;
  padding: 60px 0;
}
.club-grid-title {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #003366;
}
.club-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}
.club-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: #222;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}
.club-card:hover {
  transform: translateY(-3px);
}
.club-icon-img img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 10px;
}
.club-name {
  font-size: 16px;
  font-weight: 600;
}
.club-card-hidden {
  display: none;
}
.show-more-wrap {
  text-align: center;
  margin-top: 20px;
}
.show-more-btn {
  background-color: #0066cc;
  color: white;
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.show-more-btn:hover {
  background-color: #004f99;
}

/* PCでは.club-card-hidden を常時表示、ボタン非表示 */
@media (min-width: 769px) {
  .club-card-hidden {
    display: flex !important;
  }

  .show-more-wrap {
    display: none !important;
  }
}

/* SPでは非表示（JSでトグル制御） */
@media (max-width: 768px) {
  .club-card-hidden {
    display: none;
  }
}

