@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; }

/* ヘッダー */
.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; 
    }



/* メインビジュアルエリア */

.hero-section {

    text-align: center;

}

.hero-inner {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 40px;

    flex-wrap: wrap;

}

.hero-text h1 {

    font-size: 2.5rem;

    color: #0056b3;

    margin-bottom: 10px;

}

.hero-text p {

    font-size: 1.1rem;

    font-weight: bold;
}



/* ガイドライン説明 */

.guideline-section {

    padding: 50px 0;

    text-align: center;

}

.guideline-text {

    max-width: 900px;

    margin: 0 auto;

    text-align: left;

}



/* --- ターゲットボタンエリア --- */
.target-buttons {
    display: flex;
    flex-direction: row; /* ボタンを縦に並べる */
    gap: 20px;              /* ボタン同士の間隔 */
    width: 100%;
    max-width: 800px;       /* 最大幅の制限 */
    margin: 30px auto;      /* 画面中央に配置 */
}

/* --- ボタン本体（リンク）のデザイン --- */
.target-btn {
    display: flex;          /* 中身（画像と文字）を横並びにする */
    align-items: center;    /* 垂直方向の真ん中に揃える */
    justify-content: center;/* 水平方向も真ん中に寄せる */
    
    width: 100%;            /* 幅いっぱい */
    padding: 25px;          /* 内側の余白 */
    background-color: #fff; /* 背景色 */
    border: 1px solid #ddd; /* 薄い枠線 */
    border-radius: 8px;     /* 角丸 */
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); /* 控えめな影 */
    
    text-decoration: none;  /* リンクの下線を消す */
    color: #333;            /* 文字色 */
    transition: all 0.3s ease; /* ホバー時の動きをなめらかに */
}

/* --- ホバー時（マウスを乗せた時）の動き --- */
.target-btn:hover {
    box-shadow: 0 8px 15px rgba(0,0,0,0.1); /* 影を濃くする */
    transform: translateY(-2px);            /* 少し浮き上がる */
    opacity: 0.9;
}

/* --- 画像エリア --- */
.btn-icon {
    width: 120px;           /* 画像エリアの幅 */
    flex-shrink: 0;         /* 画面が狭くなっても画像を縮めない */
    margin-right: 30px;     /* テキストとの間隔 */
}

.btn-icon img {
    width: 100%;            /* 親要素に合わせてリサイズ */
    height: auto;
    display: block;
    border-radius: 4px;     /* 画像の角も少し丸める */
}

/* --- テキストエリア --- */
.btn-text {
    text-align: left;       /* テキストは左揃え */
    display: flex;
    flex-direction: column; /* タイトルと説明を縦に積む */
}

.btn-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #222;
}

.btn-desc {
    font-size: 16px;
    color: #555;
}

/* --- スマホ表示用（画面幅が狭い時） --- */
@media (max-width: 600px) {
    .target-btn {
        flex-direction: column; /* 画像と文字を縦並びにする */
        text-align: center;
        padding: 20px;
    }
    
    .btn-icon {
        width: 100px;       /* スマホでは少し画像を小さく */
        margin-right: 0;    /* 横の余白を消す */
        margin-bottom: 15px;/* 下に余白を入れる */
    }
    
    .btn-text {
        align-items: center; /* テキストを中央揃え */
    }
}

/* カテゴリ一覧 */

.category-section {

    background: #fff;

    padding: 60px 0;

}

.category-card h3 {

    color: #0056b3;

    border-bottom: 2px solid #0056b3;

    display: inline-block;

    padding-bottom: 5px;

}


/* --- グリッド全体のレイアウト --- */
.category-grid {
    display: grid;
    /* PCでは4列均等に並べる */
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;              /* カード間の隙間 */
    width: 100%;
    margin: 40px auto;      /* 上下の余白と中央寄せ */
}

/* --- カード（リンク）のデザイン --- */
.category-card {
    display: flex;
    flex-direction: column; /* 中身を縦に積む */
    justify-content: center; /* 中央寄せ */
    
    background-color: #fff; /* 背景色 */
    color: #333;            /* 文字色を#333に指定 */
    text-decoration: none;  /* リンクの下線を消す */
    
    padding: 30px 20px;     /* カード内側の余白 */
    border: 1px solid #eee; /* 薄い枠線 */
    border-radius: 8px;     /* 角丸（ターゲットエリアと同じ） */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* 影（ターゲットエリアと同じ） */
    
    transition: all 0.3s ease; /* ホバー時の動きを滑らかに */
    height: 100%;           /* 高さを揃える */
}

/* --- ホバー時の動き --- */
.category-card:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1); /* 影を少し濃く */
    transform: translateY(-2px); /* 少し浮き上がる */
    opacity: 1;
}

/* --- タイトル（h3） --- */
.category-card h3 {
    text-align: center;     /* 中央揃え */
    font-size: 18px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 20px;    /* 下の余白 */
    color: #333;         /* 見出しだけ少し青っぽくして目立たせる（好みで#333に変更可） */
    display: inline-block;  /* 下線の幅を文字に合わせるため */
    align-self: center;     /* 自身の配置を中央に */
    padding-bottom: 5px;
}

/* --- 説明文（p） --- */
.category-card p {
    text-align: left;       /* 左揃え */
    font-size: 14px;
    line-height: 1.6;       /* 行間 */
    margin: 0;
    color: #333;            /* 説明文の色 */
}

/* --- タブレット・スマホ表示用（レスポンシブ） --- */

/* 画面幅が900px以下（タブレットなど）の場合：2列にする */
@media (max-width: 900px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 画面幅が600px以下（スマホ）の場合：1列（縦並び）にする */
@media (max-width: 600px) {
    .category-grid {
        grid-template-columns: 1fr; /* 1列 */
        gap: 15px;
    }
    
    .category-card {
        padding: 20px; /* スマホでは余白を少し狭く */
    }
}

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

/* =========================================================
   baserCMS標準フォーム用 CSS
   ========================================================= */

/* 1. ヘッダーとコンテナ */
.page-header {
    background: linear-gradient(to top, #e0e0e0 26%, #efefef 48%, #d9d9d9 75%, #bcbcbc 100%);
    padding: 50px 0;
    text-align: center;
    border-bottom: none;
    margin-bottom: 40px;
}
.page-header h1 {
    color: #fff;
    font-size: 24px;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* フォーム全体の幅制限 */
#ContentsBody, .bs-mail-form {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. テーブル（フォーム部分）のデザイン */
.bs-mail-form-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse; /* 隙間をなくす */
}

/* 行ごとの設定 */
.bs-mail-form-table tr {
    border-bottom: 1px solid #eee;
}

/* 項目名（左側） */
.bs-mail-form-table th {
    width: 200px; /* 幅固定 */
    background-color: transparent; /* 背景色なし */
    text-align: right; /* 右寄せ */
    font-weight: bold;
    color: #333;
    padding: 20px;
    vertical-align: top;
    display: table-cell; /* スマホ以外は横並び */
}

/* 入力欄（右側） */
.bs-mail-form-table td {
    padding: 20px;
    text-align: left;
    display: table-cell;
}

/* 3. 必須マークをCSSで無理やりつける */
/* 元のHTMLに必須マークがなくても、CSSの擬似要素で表示させます */
.bs-mail-form-table th:after {
    content: "必須";
    background-color: #cc0000;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 10px;
    vertical-align: middle;
    font-weight: normal;
    display: inline-block;
}

/* 「任意」の項目の場合（もしあれば打ち消す設定が必要ですが、一旦全部につきます） */

/* 4. 入力フォームの装飾 */
.bs-mail-form-table input[type="text"],
.bs-mail-form-table input[type="email"],
.bs-mail-form-table input[type="tel"],
.bs-mail-form-table textarea,
.bs-mail-form-table select {
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    max-width: 100%;
}

/* 郵便番号などを短く */
input[name*="zip"], 
input[name*="captcha"] {
    width: auto !important;
    display: inline-block;
}

/* 5. 送信ボタンエリア */
.bs-mail-form-submit {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 60px;
}
.bs-button {
    padding: 15px 60px;
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

/* --- スマホ対応 --- */
@media screen and (max-width: 640px) {
    .bs-mail-form-table th,
    .bs-mail-form-table td {
        display: block; /* 縦積みにする */
        width: 100%;
        text-align: left; /* 左寄せに戻す */
        padding: 10px 0;
        border: none;
    }
    .bs-mail-form-table th {
        padding-bottom: 0;
    }
}


/* フッター */

.site-footer {

    background: #333;

    color: #fff;

    padding: 40px 0;

    text-align: center;

}