@charset "UTF-8";
/* =====================================================
   CTC 共通ヘッダー・フッター（30周年サイト用）
   本サイト /css/style.css の HEADER / MOBILE MENU / FOOTER 部分を
   クラス名に ctc- を付けてそのまま移植したもの。
   本サイト側を変更したときは、このファイルも合わせて更新する。
   画像は本サイトの /img/ を絶対URLで参照している。
   ===================================================== */
:root {
	--ctc-blue: #0091D5;
	--ctc-dark-blue: #00529B;
	--ctc-deep: #002D5A;
	--ctc-bg-light-blue: #F0F8FF;
	--ctc-text-main: #1a2a3a;
	--ctc-text-muted: #5a7080;
	--ctc-border: #d0e4f0;
	--ctc-white: #FFFFFF;
}

/* ─── HEADER ─── */
.ctc-header { background: var(--ctc-white); padding: 10px 16px; border-bottom: 3px solid var(--ctc-blue); display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,60,120,0.10); }
.ctc-logo-link { display: block; flex-shrink: 1; min-width: 0; }
.ctc-logo-image { display: block; height: 36px; width: auto; max-width: 100%; object-fit: contain; }
.ctc-header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ctc-utility-nav { display: none; }
.ctc-search-area { display: flex; gap: 8px; align-items: center; }
.ctc-search-box { display: none; }
.ctc-menu-btn-toggle { background: var(--ctc-blue); color: white; border: none; padding: 8px 13px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 5px; font-size: 0.85rem; font-family: inherit; font-weight: 700; letter-spacing: 0.05em; white-space: nowrap; transition: background 0.2s; }
.ctc-menu-btn-toggle:hover { background: var(--ctc-dark-blue); }
.ctc-menu-btn-toggle .ctc-menu-label { display: none; }

/* ユーティリティナビ アイコン */
.ctc-utility-nav a::before {
	content: "";
	display: inline-block;
	width: 20px; height: 20px; min-width: 20px; min-height: 20px;
	flex-shrink: 0;
	vertical-align: middle;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 20px 20px;
}
.ctc-utility-nav a[href*="instagram"]::before { background-image: url(https://www.hyogo-ctc.or.jp/img/ico_insta.png); }
.ctc-utility-nav a[href*="address"]::before   { background-image: url(https://www.hyogo-ctc.or.jp/img/ico_maps.png); }
.ctc-utility-nav a[href*="contact"]::before   { background-image: url(https://www.hyogo-ctc.or.jp/img/ico_phone.png); }

/* サイト内検索ボタン アイコン */
.ctc-search-box button::before {
	content: "";
	display: inline-block;
	width: 18px; height: 18px; min-width: 18px; min-height: 18px;
	vertical-align: middle;
	background-image: url(https://www.hyogo-ctc.or.jp/img/ico_search.png);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 18px 18px;
	flex-shrink: 0;
}
/* ハンバーガーメニュー アイコン */
.ctc-menu-btn-toggle::before {
	content: "";
	display: inline-block;
	width: 18px; height: 18px; min-width: 18px; min-height: 18px;
	vertical-align: middle;
	background-image: url(https://www.hyogo-ctc.or.jp/img/ico_menu.png);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 18px 18px;
	flex-shrink: 0;
}

/* ─── MOBILE MENU ─── */
.ctc-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,20,50,0.55); backdrop-filter: blur(2px); z-index: 900; opacity: 0; visibility: hidden; transition: all 0.3s; }
.ctc-menu-overlay.active { opacity: 1; visibility: visible; }
.ctc-mobile-menu { position: fixed; top: 0; right: -100%; width: 82%; max-width: 320px; height: 100%; background: #fff; z-index: 1000; box-shadow: -4px 0 30px rgba(0,0,0,0.2); transition: right 0.32s cubic-bezier(0.4,0,0.2,1); overflow-y: auto; display: flex; flex-direction: column; line-height: 1.7; }
.ctc-mobile-menu.active { right: 0; }
.ctc-mobile-menu-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; background: var(--ctc-blue); color: white; flex-shrink: 0; }
.ctc-mobile-menu-title { font-weight: 700; font-size: 1rem; letter-spacing: 0.1em; }
.ctc-close-btn { background: rgba(255,255,255,0.15); border: none; font-size: 1.4rem; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; color: white; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.ctc-close-btn:hover { background: rgba(255,255,255,0.3); }
.ctc-mobile-nav-body { padding: 10px 0 20px; flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.ctc-mobile-nav-list { list-style: none; padding: 0; margin: 0; }
.ctc-mobile-nav-list li { border-bottom: 1px solid #f0f0f0; }
.ctc-mobile-nav-list li a { display: flex; align-items: center; gap: 10px; padding: 13px 22px; color: var(--ctc-text-main); text-decoration: none; font-weight: 500; font-size: 0.92rem; transition: background 0.15s, color 0.15s; }
.ctc-mobile-nav-list li a:hover { background: var(--ctc-bg-light-blue); color: var(--ctc-blue); text-decoration: none; }
.ctc-mobile-nav-list li.ctc-sub-item a { padding-left: 38px; font-size: 0.85rem; color: var(--ctc-text-muted); font-weight: 400; }
.ctc-mobile-nav-list li.ctc-sub-item a:hover { color: var(--ctc-blue); }
.ctc-nav-section-title { margin-top: 16px; margin-bottom: 4px; font-size: 0.72rem; color: #aaa; font-weight: 700; padding: 0 22px; letter-spacing: 0.1em; }

/* モバイルメニュー アイコン */
.ctc-mnav-home::before,
.ctc-mnav-about::before,
.ctc-mnav-const::before,
.ctc-mnav-water::before,
.ctc-mnav-city::before,
.ctc-mnav-doki::before,
.ctc-mnav-book::before,
.ctc-mnav-each::before,
.ctc-mnav-bell::before,
.ctc-mnav-publish::before,
.ctc-mnav-read::before,
.ctc-mnav-books::before,
.ctc-mnav-system::before,
.ctc-mnav-maps::before,
.ctc-mnav-video::before {
	content: "";
	display: inline-block;
	width: 20px; height: 20px; min-width: 20px; min-height: 20px; max-width: 20px; max-height: 20px;
	margin-right: 0.4em;
	vertical-align: middle;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 20px 20px;
	background-color: transparent;
}
.ctc-mnav-home::before    { background-image: url(https://www.hyogo-ctc.or.jp/img/ico_home.png); }
.ctc-mnav-about::before   { background-image: url(https://www.hyogo-ctc.or.jp/img/ico_about.png); }
.ctc-mnav-const::before   { background-image: url(https://www.hyogo-ctc.or.jp/img/ico_const.png); }
.ctc-mnav-water::before   { background-image: url(https://www.hyogo-ctc.or.jp/img/ico_water.png); }
.ctc-mnav-city::before    { background-image: url(https://www.hyogo-ctc.or.jp/img/ico_city.png); }
.ctc-mnav-doki::before    { background-image: url(https://www.hyogo-ctc.or.jp/img/ico_doki.png); }
.ctc-mnav-book::before    { background-image: url(https://www.hyogo-ctc.or.jp/img/ico_book.png); }
.ctc-mnav-each::before    { background-image: url(https://www.hyogo-ctc.or.jp/img/ico_each.png); }
.ctc-mnav-bell::before    { background-image: url(https://www.hyogo-ctc.or.jp/img/ico_bell.png); }
.ctc-mnav-publish::before { background-image: url(https://www.hyogo-ctc.or.jp/img/ico_publish.png); }
.ctc-mnav-read::before    { background-image: url(https://www.hyogo-ctc.or.jp/img/ico_read.png); }
.ctc-mnav-system::before  { background-image: url(https://www.hyogo-ctc.or.jp/img/ico_system.png); }
.ctc-mnav-books::before   { background-image: url(https://www.hyogo-ctc.or.jp/img/ico_books.png); }
.ctc-mnav-maps::before    { background-image: url(https://www.hyogo-ctc.or.jp/img/ico_maps.png); }
.ctc-mnav-video::before   { background-image: url(https://www.hyogo-ctc.or.jp/img/ico_video.png); }

/* ─── FOOTER ─── */
.ctc-site-footer { background: var(--ctc-blue); color: #FFFFFF; padding: 48px 20px 24px; line-height: 1.7; /*　追加　*/ }
.ctc-footer-container { display: grid; grid-template-columns: 1fr; gap: 32px; }
.ctc-footer-logo-name { font-weight: 700; font-size: 1rem; line-height: 1.6; margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.3); }
.ctc-footer-logo-name small { display: block; font-size: 0.75rem; font-weight: 400; color: rgba(255,255,255,0.9); letter-spacing: 0.04em; margin-top: 4px; }
.ctc-footer-info p { font-size: 0.88rem; line-height: 1.9; color: rgba(255,255,255,0.95); margin: 0; }
.ctc-footer-map-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: white; text-decoration: none; font-size: 0.85rem; background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.5); padding: 9px 16px; border-radius: 6px; transition: background 0.2s; font-weight: 500; }
.ctc-footer-map-btn:hover { background: rgba(255,255,255,0.18); text-decoration: none; }
.ctc-footer-map-btn::before {
	content: "";
	display: inline-block;
	width: 18px; height: 18px; min-width: 18px; min-height: 18px;
	vertical-align: middle;
	background-image: url(https://www.hyogo-ctc.or.jp/img/ico_maps.png);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 18px 18px;
	flex-shrink: 0;
}
.ctc-footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ctc-footer-nav-col h5 { font-size: 0.8rem; margin: 0 0 12px; padding: 5px 10px; background: rgba(255,255,255,0.2); border-radius: 4px; color: white; font-weight: 700; letter-spacing: 0.06em; display: inline-block; }
.ctc-footer-nav-col ul { list-style: none; padding: 0; margin: 0; }
.ctc-footer-nav-col ul li { margin-bottom: 9px; }
.ctc-footer-nav-col ul li a { color: rgba(255,255,255,0.95); text-decoration: none; font-size: 0.83rem; transition: color 0.18s; }
.ctc-footer-nav-col ul li a:hover { color: #FFFFFF; text-decoration: none; }
.ctc-footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.3); text-align: center; }
.ctc-footer-bottom p { font-size: 0.73rem; color: rgba(255,255,255,0.9); margin-bottom: 12px; }
.ctc-footer-sub-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.ctc-footer-sub-links a { color: rgba(255,255,255,0.9); text-decoration: none; font-size: 0.73rem; }
.ctc-footer-sub-links a:hover { color: white; text-decoration: none; }

/* ─── タブレット以上 (min-width: 768px) ─── */
@media (min-width: 768px) {
	.ctc-header { padding: 10px 36px; }
	.ctc-logo-image { height: 42px; width: auto; max-width: none; }
	.ctc-utility-nav { display: flex; gap: 16px; font-size: 0.82rem; align-items: center; }
	.ctc-utility-nav a { color: var(--ctc-text-muted); text-decoration: none; display: flex; align-items: center; gap: 5px; transition: color 0.18s; }
	.ctc-utility-nav a:hover { color: var(--ctc-blue); text-decoration: none; }
	/* テキストを非表示（アイコンのみ） */
	.ctc-utility-nav a span { display: none; }
	.ctc-header-right { gap: 10px; }
	.ctc-menu-btn-toggle .ctc-menu-label { display: inline; }

	.ctc-footer-container { max-width: 1120px; margin: 0 auto; grid-template-columns: 1fr 2fr; gap: 48px; }
	.ctc-footer-nav { grid-template-columns: repeat(3, 1fr); }
	.ctc-footer-bottom { max-width: 1120px; margin: 40px auto 0; display: flex; justify-content: space-between; align-items: center; text-align: left; }
	.ctc-footer-bottom p { margin: 0; }
}

/* ─── デスクトップ (min-width: 1120px) ─── */
@media (min-width: 1120px) {
	.ctc-utility-nav { display: flex; gap: 16px; font-size: 0.82rem; align-items: center; }
	.ctc-utility-nav a { color: var(--ctc-text-muted); text-decoration: none; display: flex; align-items: center; gap: 5px; transition: color 0.18s; }
	.ctc-utility-nav a:hover { color: var(--ctc-blue); }
	.ctc-utility-nav a span { display: inline; }
	.ctc-search-box { display: flex; border: 1.5px solid var(--ctc-border); border-radius: 6px; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
	.ctc-search-box:focus-within { border-color: var(--ctc-blue); box-shadow: 0 0 0 3px rgba(0,145,213,0.15); }
	.ctc-search-box input { padding: 7px 12px; border: none; outline: none; width: 160px; font-size: 0.88rem; font-family: inherit; color: var(--ctc-text-main); background: transparent; }
	.ctc-search-box button { background: var(--ctc-blue); color: white; border: none; padding: 7px 12px; cursor: pointer; font-size: 0.9rem; transition: background 0.2s; flex-shrink: 0; }
	.ctc-search-box button:hover { background: var(--ctc-dark-blue); }
}
