/* =========================================================
TOPページ専用
- .ik-front   : トップページ全体ラッパー
- .ik-hero    : 写真スライド
- .ik-infobar : 情報バー
- .ik-panel   : 入口パネル
- .ik-news    : お知らせ
========================================================= */

/* -------------------------------------
全体レイアウト
------------------------------------- */
.ik-front {
	display: flex;
	flex-direction: column;
}

/* -------------------------------------
1) 写真スライド（ヒーロー）
------------------------------------- */
.ik-hero {
	position: relative;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 16 / 6;
	max-height: 420px;
}

/* slickが挟む要素も含めて高さを継承させる */
.ik-hero,
.ik-hero .slick-list,
.ik-hero .slick-track,
.ik-hero__track,
.ik-hero__slide{
	height: 100%;
}

.ik-hero__track {
	display: flex;
	transition: transform 0.4s ease;
}

.ik-hero__slide {
	min-width: 100%;
	height: 100%;
}

.ik-hero__slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

@media (max-width: 768px){
	.ik-hero{
		aspect-ratio: 16 / 9;
		max-height: none;
	}
}

/* 矢印ボタン */
.ik-hero__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 52px;
	height: 52px;
	border: none;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 5;
	transition: background 0.2s ease, transform 0.15s ease;
}

.ik-hero__nav svg {
	width: 26px;
	height: 26px;
}

.ik-hero__nav:hover {
	background: rgba(0, 0, 0, 0.7);
	transform: translateY(-50%) scale(1.05);
}

.ik-hero__nav:active {
	transform: translateY(-50%) scale(0.96);
}

/* 左右配置 */
.ik-hero__nav--prev {
	left: 16px;
}

.ik-hero__nav--next {
	right: 16px;
}

/* スマホ */
@media (max-width: 768px) {
	.ik-hero__nav {
		width: 44px;
		height: 44px;
	}

	.ik-hero__nav svg {
		width: 22px;
		height: 22px;
	}
}

/* ドットナビ */
.ik-hero__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 10px;
	display: flex;
	justify-content: center;
	gap: 8px;
	z-index: 2;
}

.ik-hero__dots button {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: 0;
	background: #fff;
	opacity: 0.5;
	cursor: pointer;
}

.ik-hero__dots button.is-active {
	opacity: 1;
}

/* -------------------------------------
2) 情報バー
------------------------------------- */
.ik-infobar {
	background: #f5f7fb;
	margin-bottom: 16px;
}

.ik-infobar__inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 8px 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	align-items: center;
	font-size: 16px;
	line-height: 1.4;
}

.ik-infobar__item {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ik-infobar__label { color: #666; }

.ik-infobar__val {
	font-weight: 700;
	color: #0A3366;
}

.ik-infobar__source { margin-left: auto; }

.ik-infobar__help {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #0A3366;
	text-decoration: none;
}

.ik-infobar__q {
	display: inline-grid;
	place-items: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1px solid #0A3366;
	font-weight: 700;
	font-size: 12px;
}

.ik-infobar__txt { font-size: 13px; }

@media (max-width: 600px) {
	.ik-infobar__inner { font-size: 14px; }
}

/* -------------------------------------
3) 入口パネル（これから / 会員向け / 市民）
------------------------------------- */
.ik-panel-wrap {
	max-width: 1100px;
	margin: 16px;
	display: grid;
	gap: 16px;
	margin-bottom: 16px;
}

/* PCで3カラム */
@media (min-width: 900px) {
	.ik-panel-wrap {
		width: 100%;
		margin: 16px auto;
		grid-template-columns: 2fr 2fr 1.2fr;
		align-items: start;
	}
}

/* パネル本体 */
.ik-panel {
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
	background: #fff;
	border: 1px solid rgba(0,0,0,.06);
}

/* タイトル */
.ik-panel__title {
	margin: 0;
	padding: 12px 14px;
	color: #fff;
	font-weight: 800;
	font-size: 16px;
	letter-spacing: .02em;
	background: var(--panel-color);
}

/* 色（メイン＋薄い面＋枠） */
.ik-panel--navy{
	--panel-color: #0A3366;
	--panel-soft:  #EEF3FA;
	--panel-line:  #98B3D1;
}

.ik-panel--green{
	--panel-color: #2E8B57;
	--panel-soft:  #EFF7F2;
	--panel-line:  #9AD0B6;
}

.ik-panel--orange{
	--panel-color: #E68A00;
	--panel-soft:  #FFF5E6;
	--panel-line:  #F0C27B;
}

/* ナビ部分：薄い色面で“地味”を抑える */
.ik-panel__nav {
	padding: 12px;
	background: var(--panel-soft, #fff);
}

/* パネル内メニュー（ボタン風2列） */
.ik-panel__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* パネル内メニューリンク（線ボタン＋左ライン装飾） */
.ik-panel__menu li a {
	position: relative;
	display: block;
	width: 100%;
	padding: 10px 6px 10px 14px;
	border: 2px solid var(--panel-line, #ccc);
	background: #fff;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	color: #1f2a33;
	transition: background .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
}

/* 左端のカラーライン */
.ik-panel__menu li a::before {
	content: "";
	position: absolute;
	left: 6px;
	top: 6px;
	bottom: 6px;
	width: 4px;
	background: var(--panel-color, #ccc);
	border-radius: 999px;
	opacity: .95;
}

.ik-panel__menu li a:hover {
	background: var(--panel-soft, rgba(0,0,0,0.04));
	border-color: var(--panel-color, #555);
	color: var(--panel-color, #111);
}

.ik-panel__menu li a:active {
	transform: translateY(1px);
}

/* フォーカス（キーボード） */
.ik-panel__menu li a:focus-visible {
	outline: 3px solid rgba(10,51,102,.18);
	outline-offset: 2px;
}

/* 市民向けは1列 */
.ik-panel__menu--full {
	grid-template-columns: 1fr !important;
}

/* -------------------------------------
4) お知らせ
------------------------------------- */

/* 商工会ニュース＋連合会ニュース並べるラッパー */
.ik-news-wrap {
	width: 1100px;
	max-width: 96%;
	margin: 16px auto;
	display: grid;
	gap: 16px;
}

/* PCで2カラム、スマホは縦並び */
@media (min-width: 900px) {
	.ik-news-wrap {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* お知らせボックス */
.ik-news {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	font-size: 14px;
	width: 100%;
	margin: 0 auto 16px;
}

/* 見出しバー */
.ik-news__title {
	margin: 0 0 10px;
	padding: 10px 12px;
	background: #0099d9;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	border-radius: 8px 8px 0 0;
}

/* タブエリア */
.ik-news__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
	padding: 0 12px;
}

/* 共通タブ */
.ik-tab {
	flex: 1 1 calc(33.333% - 4px);
	padding: 6px 4px;
	border: none;
	border-radius: 999px;
	background: #f1f1f1;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	cursor: pointer;
	line-height: 1.2;
	transition: transform 0.05s ease, box-shadow 0.05s ease, background 0.15s ease;
}

.ik-tab:hover {
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
	transform: translateY(-1px);
}

.ik-tab.is-active {
	color: #fff;
}

/* タブ色分け（data-filter とカテゴリslugに合わせる） */
.ik-tab[data-filter="*"],
.ik-tab[data-filter="all"] {
	background: #0099d9;
	color: #fff;
}
.ik-tab[data-filter="seminar"] {
	background: #CC0088;
	color: #fff;
}
.ik-tab[data-filter="grant"] {
	background: #D35400;
	color: #fff;
}
.ik-tab[data-filter="voucher"] {
	background: #009944;
	color: #fff;
}
.ik-tab[data-filter="support"] {
	background: #0A2A6A;
	color: #fff;
}
.ik-tab[data-filter="other"] {
	background: #6E7B8F;
	color: #fff;
}

/* 一覧 */
.ik-news__list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 0 12px;
	flex: 1 1 auto;
}

.ik-news__item {
	border-bottom: 1px solid #eee;
}
.ik-news__item:last-child {
	border-bottom: none;
}

.ik-news__link {
	display: flex;
	align-items: stretch;
	gap: 8px;
	padding: 6px 2px;
	text-decoration: none;
}

/* 日付ラベル */
.ik-news__date {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 80px;
	padding: 6px 4px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	text-align: center;
	flex-shrink: 0;
}

/* 本文側 */
.ik-news__body {
	display: flex;
	align-items: center;
	flex: 1;
}

.ik-news__title-text {
	color: #333;
	font-size: 15px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ik-news__link:hover .ik-news__title-text {
	text-decoration: underline;
}

/* 空状態 */
.ik-news__empty {
	padding: 8px 2px 4px;
	font-size: 15px;
	color: #666;
}

/* 日付ラベルの色分け */
.ik-news__date--default { background: #cccccc; }
.ik-news__date--seminar  { background: #CC0088; }
.ik-news__date--grant    { background: #D35400; }
.ik-news__date--voucher  { background: #009944; }
.ik-news__date--support  { background: #0A2A6A; }
.ik-news__date--other    { background: #6E7B8F; }

/* 一覧ページへのボタン */
.ik-news .ik-news-btn.ik-btn--more {
	display: block;
	width: 100%;
	text-align: center;
	margin-top: 10px;
	padding: 10px 8px;
	border-radius: 0 0 8px 8px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: background .15s ease, opacity .15s ease;
}

.ik-news-btn.ik-btn--more.ik-btn--more--all     { background: #0099d9; }
.ik-news-btn.ik-btn--more.ik-btn--more--seminar { background: #CC0088; }
.ik-news-btn.ik-btn--more.ik-btn--more--grant   { background: #D35400; }
.ik-news-btn.ik-btn--more.ik-btn--more--voucher { background: #009944; }
.ik-news-btn.ik-btn--more.ik-btn--more--support { background: #0A2A6A; }
.ik-news-btn.ik-btn--more.ik-btn--more--other   { background: #6E7B8F; }

.ik-news-btn.ik-btn--more:hover {
	opacity: 0.9;
}

/* 連合会用（差別化） */
.ik-news--union .ik-news__title {
	background: #009944;
}
.ik-news__date--union {
	background: #009944;
}
.ik-news__union-link {
	display: block;
	width: 100%;
	text-align: center;
	padding: 10px 8px;
	justify-content: center;
	background: #009944;
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 0 0 8px 8px;
	font-size: 14px;
	font-weight: 700;
	margin-top: 10px;
}
.ik-news__union-link:hover,
.ik-news__union-link:focus {
	background: #0b7e39;
}

/* -------------------------------------
動きを減らす設定への配慮（TOP内だけ）
------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.ik-hero__track,
	.ik-hero__dots button,
	.ik-news__item {
		transition: none !important;
	}
}

#top-footer-banner ul {
	width: 900px;
	max-width: 96%;
	margin: 48px auto;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}
#top-footer-banner li {
	width: 280px;
	margin-bottom: 16px;
	position: relative;
}
#top-footer-banner img {
	border: 1px solid #ccc;
}
#top-footer-banner a:hover {
	position: relative;
	bottom: 2px;
	left: 2px;
	opacity: 0.7;
}
@media (max-width: 900px) {
	#top-footer-banner ul {
		display: block;
	}
	#top-footer-banner li {
		margin: 0 auto 16px;
	}
}

/* ===============================
   緊急・重要なお知らせ
=============================== */

.ik-emergency-notice {
	margin: 20px auto 28px;
	padding: 0 16px;
}

.ik-emergency-notice__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 18px 20px;
	background: #fff4e5;
	border: 1px solid #f0c36d;
	border-left: 6px solid #d97706;
	border-radius: 8px;
	box-sizing: border-box;
}

.ik-emergency-notice__title {
	margin: 0 0 8px;
	color: #8a4b00;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.5;
}

.ik-emergency-notice__body {
	color: #3a2a17;
	font-size: 1rem;
	line-height: 1.9;
}

@media screen and (max-width: 767px) {
	.ik-emergency-notice {
		margin: 16px auto 22px;
		padding: 0 12px;
	}

	.ik-emergency-notice__inner {
		padding: 16px;
	}
}