@charset "UTF-8";

/* ベース設定 */
body {
    font-family: "Noto Sans JP", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    margin: 0;
    /* ヘッダーの高さ分調整（PC用） */
    padding-top: 35px; 
}

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

a {
    text-decoration: none;
    color: #333;
    transition: opacity 0.3s;
}
a:hover { opacity: 0.7; }

/* =========================================
   Topに戻るボタン
   ========================================= */
#page-top {
    position: fixed;
    bottom: 50px;
    right: 50px;
    background-color: #999999; /* 背景色 */
    color: #fff;               /* 文字色 */
    font-weight: bold;
    text-align: center;
    line-height: 1.3;
    text-decoration: none;
    padding: 10px 15px;        /* ボタンの大きさ（余白） */
    border-radius: 10px;       /* 角丸 */
    z-index: 9999;             /* 最前面に表示 */
    
    /* アニメーション用設定 */
    opacity: 0;                /* 最初は透明 */
    visibility: hidden;        /* 最初はクリック不可 */
    transition: opacity 0.3s, visibility 0.3s;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3); /* 影をつけて浮いているように見せる */
}

/* 表示するときのクラス */
#page-top.is-show {
    opacity: 1;
    visibility: visible;
}

/* ホバー時（マウスを乗せたとき）の動き */
#page-top:hover {
    opacity: 0.8;
}

/* スマホ対応（邪魔にならないよう少し位置調整） */
@media screen and (max-width: 600px) {
    #page-top {
        bottom: 20px;
        right: 20px;
        padding: 10px 15px;
    }
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img{
    width: 200px;
    vertical-align: bottom; /* 画像下の余白消し */
}

/* ナビゲーション基本 */
.global-nav__list {
  display: flex;
  list-style: none;
  align-items: center;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.global-nav__list-a {
  text-decoration: none;
  color: #333;
  position: relative;
  padding: 15px 15px 5px 15px;
  display: block; /* 修正: クリック範囲確保 */
}

/* 下線アニメーション */
.global-nav__list-a:not(.btn-cart)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ccc;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}
.global-nav__list-a:not(.btn-cart):hover::after {
  transform: scaleX(1);
}

/* カートボタン */
.btn-cart {
  display: inline-block;
  background-color: #C53D43;
  color: #fff !important;
  padding: 15px 30px;
  margin-left: 15px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: bold;
  line-height: 1;
}
.btn-cart:hover {
  background-color: #C43B42; /* 色の変化を微調整 */
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* カートボタンのアイコン調整 */
.btn-cart i {
    margin-right: 8px; /* アイコンの右側に隙間を作る */
    font-size: 1.1em;  /* アイコンだけ少し大きくする（お好みで） */
}

/* --- メガメニュー（ドロップダウン）設定 --- */
.global-nav li.has-dropdown {
    position: relative;
    /* PCのみホバーで表示するための基点 */
}

.dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 480px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 100;
    overflow: hidden;
}

/* PC: ホバー時表示 */
@media screen and (min-width: 769px) {
    .global-nav li.has-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

.dropdown-inner {
    display: flex;
    padding: 20px 0;
}

.dropdown-col {
    width: 50%;
    padding: 0 20px;
    position: relative;
}

.dropdown-col:first-child::after {
    content: "";
    position: absolute;
    right: 0;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: #eee;
}

.col-title {
    font-size: 0.9rem;
    font-weight: bold;
    color: #0056b3;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #eef4f9;
    letter-spacing: 0.05em;
}

/* ドロップダウン内の見出しリンクの調整 */
.col-title a {
    color: inherit;         /* 親の文字色（青色）を引き継ぐ */
    text-decoration: none;  /* 下線を消す */
    display: block;         /* 文字の横の余白もクリックできるようにする */
    transition: opacity 0.3s;
}

/* ホバーした時に少し薄くする */
.col-title a:hover {
    opacity: 0.7;
}

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

.col-list ul {
  padding: 5px;
}

.col-list li {
    padding: 5px; /* ★修正: pading -> padding */
    margin-bottom: 2px;
}

.col-list li a {
    display: block;
    padding: 8px 10px;
    color: #555;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    border-bottom: none !important; 
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
}
.col-list li a:hover {
    background-color: #f4f8fb;
    color: #0056b3;
    transform: translateX(5px);
}

/* 吹き出しの三角（PCのみ表示） */
@media screen and (min-width: 769px) {
    .dropdown-menu::before {
        content: "";
        position: absolute;
        top: -6px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-bottom: 6px solid #fff;
    }
}

/* ------------------------------------------- */
/* ★追加：レスポンシブ（スマホ）対応 CSS */
/* ------------------------------------------- */

/* ハンバーガーボタン（初期は非表示） */
.nav-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001; /* メニューより上 */
}

@media screen and (max-width: 768px) {
    /* ボディのパディング調整 */
    body {
        padding-top: 60px;
    }
    
    .logo img {
        width: 140px; /* スマホではロゴを小さく */
    }

    /* ハンバーガーボタン表示 */
    .nav-toggle {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
    }
    .nav-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background:#0056b3;
        position: absolute;
        transition: all 0.3s;
    }
    .nav-toggle span:nth-child(1) { top: 0; }
    .nav-toggle span:nth-child(2) { top: 9px; }
    .nav-toggle span:nth-child(3) { bottom: 0; }

    /* メニュー開いた時のハンバーガー変形（×印） */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 9px;
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
        bottom: 9px;
    }

    /* ナビゲーション本体（スマホ時は隠す→スライドイン） */
    .global-nav {
        position: fixed;
        top: 0;
        right: -100%; /* 画面外へ */
        width: 85%;   /* 画面の8割 */
        height: 100vh;
        background: #fff;
        transition: right 0.4s ease;
        z-index: 1000;
        overflow-y: auto;
        padding-top: 60px; /* 上部余白 */
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    .global-nav.active {
        right: 0; /* 表示 */
    }

    .global-nav__list {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .global-nav__list > li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    /* カートボタンの調整 */
    .btn-cart {
        margin: 20px;
        display: block;
        text-align: center;
        width: calc(100% - 120px); /* 左右余白調整 */
    }

    /* スマホでのドロップダウン（常に表示、またはアコーディオン的に配置） */
    .dropdown-menu {
        position: static; /* 絶対配置解除 */
        width: 100%;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        border-top: 1px solid #f0f0f0;
        background: #f9f9f9;
        display: none; /* JSで開閉切り替え推奨だが、今回は簡易的にCSSのみなら常時表示も検討 */
    }
    /* スマホで「商品をさがす」の中にメニューがあることを示す */
    .has-dropdown .global-nav__list-a::after {
        display: none; /* 下線アニメーション削除 */
    }
    
    /* スマホレイアウト：カラムを縦積みに */
    .dropdown-inner {
        flex-direction: column;
        padding: 0;
    }
    .dropdown-col {
        width: 100%;
        padding: 15px 20px;
    }
    .dropdown-col:first-child::after {
        display: none; /* 区切り線消去 */
    }
    
    /* スマホでアクティブ時にドロップダウンを表示するCSSクラス（JSで制御用） */
    .has-dropdown.open .dropdown-menu {
        display: block;
    }
    
    /* 背景の黒マスク */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 900;
        display: none;
    }
    .nav-overlay.active {
        display: block;
    }
}

/* ページ全体をスムーススクロールにする */
    html {
        scroll-behavior: smooth;
    }

    /* リンクで飛んだ先の位置調整 */
    #find-section,#flyer,#poster,#article,#animation,#buppin,#ryohi,#jinkenhi,#gakusei,#kiroku,#gakuseifusei,#kitei {
        /* ヘッダーの高さ80px + 余白20px = 100px分ずらして表示 */
        scroll-margin-top: 100px; 
    }


/* =========================================================
   固定ページ埋め込み用 パンくずリスト (Breadcrumbs)
   ========================================================= */

/* パンくずリスト全体をh1の下に配置し、中央寄せにする */
.breadcrumbs-inline {
    font-size: 14px;
    margin-left: 50px;
    padding-bottom: 20px; /* 下に適切な余白を作成 */
    color: #333;
}

/* リンクのスタイル */
.breadcrumbs-inline a {
    text-decoration: none;
    color: #333;           /* 親ページのリンク色 */
    white-space: nowrap;   /* 改行を防ぐ */
}

/* 「ホーム」だけ色を変える */
/* 最初の <a> タグに適用 */
.breadcrumbs-inline a:first-child {
    color: #005fa2;
}

/* ページヘッダー（指定されたグラデーションとパディング） */
    .page-header {
        background: linear-gradient(to top, #e0e0e0 26%, #efefef 48%, #d9d9d9 75%, #bcbcbc 100%);
        padding: 50px 0;
        text-align: center;
        color: #fff;
    }

    .page-header h1 {
        margin: 0;
        font-size: 24px;
        font-weight: bold;
        color: #ffffff; /* 背景がグレー系なので白文字にして影をつけるか、視認性を確認 */
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    }

    /* コンコンテンツラッパー */
    .container1 {
        max-width: 900px;
        margin: 100px auto;
        padding: 0 20px 60px;
    



/* ニュース共通設定 */
.news-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    color: #333;
}

.list-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 40px;
    position: relative;
}

/* ニュースリストのデザイン */
.news-list-main {
    list-style: none;
    padding: 0;
}

.news-list-main li {
    padding: 15px 0;
    border-bottom: 1px solid #eee; /* サブカラー */
    display: flex;
    gap: 30px;
    align-items: baseline;
}

.news-list-main .post-date {
    font-weight: bold;
    min-width: 120px;
    color: #333;
}

.news-list-main .post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.news-list-main .post-title a:hover {
    color: #005fa2; /* テーマカラー */
    text-decoration: underline;
}

/* ページネーション */
.pagination {
    margin-top: 50px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.pagination a, .pagination span {
    padding: 5px 10px;
    color: #005fa2;
    text-decoration: none;
}

.pagination .current {
    color: #333;
    font-weight: bold;
    border-bottom: 2px solid #005fa2;
}

/* もっと見るボタン */
.btn-more {
    display: inline-block;
    padding: 10px 25px;
    background-color: #fff;
    color: #005fa2;
    border: 1px solid #005fa2;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-more:hover {
    background-color: #005fa2;
    color: #fff;
}

/* BaserCMSの日付表示を消す */
.bc-update-info{
    display: none !important;
    }


/* フッター */

.site-footer {

    background: #333;

    color: #fff;

    padding: 40px 0;

    text-align: center;

}