/* --- Base Styles --- */
:root {
	--gray-bg: #f2f2f2;
	--gray-dark: #666;
	--border-color: #eee;
	--text-color: #393939;
	--bg-dark: #222;
	--bg-beige: #e9e0d2;
	--bg-light-gray: #f2f2f2;
	--border-color__activity: #666;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Meiryo", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
	color: var(--text-color);
	line-height: 1.6;
}

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

img {
	max-width: 100%;
	height: auto;
	vertical-align: bottom;
}

/* --- Site Header --- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 99;
	width: 100%;
	height: auto;
	border-bottom: 1px solid var(--border-color);
	padding: 10px 0;
	transition: all .6s ease-in-out;
}

.header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.header-inner .logo {
	display: flex;
	justify-content: flex-start;
	align-items: center;
}

.logo img  {
	width: 95px;
}

.header-inner__lionslogo {
	display: none;
	margin-left: 12px;
}

.header-inner__lionslogo img {
	width: 100%;
	max-width: 200px;
}

.logo a {
	display: block;
}

/* スマホではナビを非表示（JSで制御想定）または縦並びに */
.main-nav {
	display: none;
} /* デモ用。実際はハンバーガーメニュー等で実装 */

/* --- ハンバーガーボタンのスタイル --- */
.menu-toggle {
	display: block;
	position: relative;
	width: 30px;
	height: 24px;
	margin-left: auto;
	background: none;
	border: none;
	cursor: pointer;
	z-index: 100;
}

.menu-toggle.is-active {
	position: fixed;
	right: 20px;
}

.menu-toggle span {
	display: block;
	position: absolute;
	width: 100%;
	height: 2px;
	background-color: #333;
	transition: all 0.3s;
}

.menu-toggle span:nth-child(1) {
	top: 0;
}
.menu-toggle span:nth-child(2) {
	top: 11px;
}
.menu-toggle span:nth-child(3) {
	bottom: 0;
}

/* ボタンがアクティブ（開いている）時のアニメーション */
.menu-toggle.is-active span:nth-child(1) {
	transform: translateY(11px) rotate(45deg);
}
.menu-toggle.is-active span:nth-child(2) {
	opacity: 0;
}
.menu-toggle.is-active span:nth-child(3) {
	transform: translateY(-11px) rotate(-45deg);
}

.main-nav {
	position: fixed;
	top: 0;
	right: -100%; /* 初期状態は右側に隠す */
	width: 100%;
	height: 100vh;
	background: #fff;
	padding-top: 80px;
	transition: right 0.4s;
	box-shadow: -2px 0 5px rgba(0,0,0,0.1);
	z-index: 90;
	display: block; /* 非表示を解除 */
}

	/* メニューが開いた状態 */
.main-nav.is-open {
	right: 0;
}

.main-nav ul {
	display: flex;
	flex-direction: column;
	gap: 30px 0;
	padding: 0 20px;
}

.main-nav a {
	font-size: 1.1rem;
	color: var(--text-color);
}

/* --- 768px以上のデスクトップ表示 --- */
@media (min-width: 768px) {
	.menu-toggle {
		display: none; /* デスクトップではボタンを隠す */
	}

	.main-nav {
		position: static;
		width: auto;
		height: auto;
		padding-top: 0;
		box-shadow: none;
	}
}

.p-main45special {
	padding: 0 0 40px;
}


/* --- Page Banner --- */
.page-banner {
	background-color: var(--gray-bg);
	padding: 30px 0;
	margin-bottom: 30px;
}

.page-banner h2 {
	font-size: 1.4rem;
	margin-bottom: 5px;
}

.page-banner p {
	font-size: 0.9rem;
}

/* --- Components --- */
.cta-container {
	text-align: center;
	margin-bottom: 40px;
}

.btn-primary {
	display: block;
	background: var(--gray-dark);
	color: #fff;
	padding: 15px 20px;
	text-decoration: none;
	font-weight: bold;
	font-size: 1.1rem;
}

/* --- Project / Message Layout (Mobile First) --- */
.item-title {
	font-size: 1.2rem;
	margin-bottom: 15px;
	border-bottom: 1px solid #ccc;
}

.project-layout {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 50px;
}

/* 画像4枚グリッド */
.image-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}
.img-box {
	background: #ddd;
	aspect-ratio: 4/3;
}

/* --- Footer --- */
.footer-top {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
	padding: 20px 20px 12px;
}

.footer-logo {
	display: flex;
	justify-content: center;
}

.site-footer {
	background: #f9f9f9;
	padding-top: 30px;
	border-top: 1px solid var(--border-color);
	margin-top: 50px;
}

.footer-nav {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 20px 0 0;
	font-size: 0.85rem;
}

.footer-nav ul , .footer-nav ul li {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.footer-nav ul {
	gap: 8px;
}

.footer-nav a {
	text-align: center;
	color: var(--text-color);
	text-decoration: none;
}

.btn-top-link {
	display: inline-block;
	border: 1px solid #ccc;
	padding: 5px 15px;
	background: #fff;
	width: fit-content;
}

.btn-outline {
	width: 68%;
	margin: 20px auto 0;
	padding: 12px 0;
	background: #fafafa;
	transition: all .3s ease-in-out;
}

.btn-outline:hover {
	opacity: .7;
}

.footer-copy {
	text-align: center;
	font-size: 0.7rem;
	color: #fff;
	padding-bottom: 20px;
}

.hero-section {
	background-image: url(/images/45thspecial/background_top.webp);
	background-size: cover;
	background-position: center center;
}

.hero-box {
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 84%;
	margin: auto;
	padding: 60px 0;
}

.hero-box__logo {
	display: flex;
	justify-content: center;
	width: 150px;
	margin: auto;
}

.hero-box__headingWrap {
	display: flex;
	justify-content: center;
	margin-top: 30px;
}

.hero-box__headingWrap h1,
.hero-box__headingWrap span,
.hero-box__txt {
	font-size: 24px;
}

.hero-box__txt {
	text-align: center;
}

.section.container {
	margin-top: 40px;
}

.section.container.u-container {
	margin-top: 0;
	padding-top: 40px;
}

.u-section-title__heading01 {
	font-size: 24px;
	text-align: center;
}

.section-title__heading2 {
	font-size: 24px;
	text-align: center;
}

.section-title__heading3 {
	display: flex;
	justify-content: center;
	font-size: 20px;
}

.section-title__heading2 + .section-title__heading3 {
	margin-top: 20px;
}

.u-section-title__heading3 {
	margin-top: 48px;
	font-weight: 600;
}

.page-title_heading01 {
	padding: 40px 0 8px;
	font-size: 28px;
	text-align: left;
	color: #fff;
}

.page-title_description {
	padding-bottom: 40px;
	text-align: left;
	color: #fff;
}

.page-title_description br {
	display: block;
}

.u-pagemessage {
	background: #6fa033;
}

.u-pageproject {
	background: #3a9d43;
}

.u-pagehistory {
	background: #299dcf;
}

.u-pageactivity {
	background: #e3b020;
}

.page-title-area + .section {
	margin-top: 12px;
}

.section__body {
	margin-top: 24px;
}

.flex-row {
	margin-top: 24px;
}

.p-messageBlock__container .flex-img {
	display: flex;
	justify-content: center;
}

.p-messageBlock__container .u-flex-img {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.p-messageBlock__container .u-flex-img .img-placeholder-portrait {
	margin: auto;
}

.p-messageBlock__container + .p-messageBlock__container {
	margin-top: 40px;
}

.img-placeholder-portrait ,
.img-placeholder-portrait img {
	width: 180px;
}

.p-messageBlock__body {
	margin-top: 24px;
}

.p-messageBlock__txt {
	text-align: justify;
}

.signature {
	margin-top: 8px;
	font-weight: 600;
	line-height: 1.4;
	text-align: right;
}

.u-signature {
	text-align: center;
}

.signature + .p-messageBlock__txt {
	margin-top: 20px;
}

.flex-row.p-messageBlock__container .u-flex-img .img-placeholder-portrait {
	display: flex;
	justify-content: center;
}

.p-historyImg ,
.p-historyImg img {
	width: 100%;
	max-width: 384px;
}

.grid-4__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.grid-4__link {
	display: block;
	border: solid 1px #d6d6d6;
	border-radius: 2px;
	background: #f4f3f3;
	color: var(--text-color);
	transition: all .6s ease-in-out;
}

.grid-4__title {
	padding: 8px 0 8px 8px;
	font-weight: 600;
	border-radius: 2px 2px 0 0;
	background: #fff;
}

.grid-4__imgWrap {
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
	padding: 20px 0;
	background: #fff;
}

.grid-4__imgWrap img {
	width: 25%;
	margin: auto;
	opacity: 1;
	transition: all .4s ease-in-out;
}

.grid-4__txt {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50% , -50%);
	width: calc(100% - 16px);
	padding: 12px 8px;
	text-align: center;
	opacity: 0;
	transition: all .6s ease-in-out;
}

.link-more {
	display: block;
	padding: 8px;
	font-size: .875rem;
	font-weight: 600;
	text-align: right;
}

.grid-4__link:hover img {
	opacity: 0;
}

.grid-4__link:hover .grid-4__txt {
	opacity: 1;
}

.p-gestName {
	font-size: 18px;
	text-align: center;
}

.project__title {
	margin-bottom: 8px;
	padding-left: 8px;
	font-size: 24px;
	border-left: solid 4px rgba(111, 160, 51, 1);
}

.p-messageBlock__container + .project__title {
	margin-top: 32px;
}

.project-flex_container {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
	gap: 24px;
}

.project-grid__four {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: auto auto;
	gap: 10px;
}

.project-grid__title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 8px;
}

.project-grid__four .grid-img {
	width: 100%;
	max-width: 200px;
}

.project__body {
	padding-top: 20px;
}

.p-jotoPic {
	display: block;
	margin-top: 40px;
}

.p-historyBlock + .p-historyBlock{
	margin-top: 40px;
}

.p-historyBlock__txt {
	text-align: justify
}

.p-historyImg {
	display: block;
	margin-top: 12px;
}

.sp {
	display: block;
}

/* --- Tablet & Desktop Styles (Media Queries) --- */
@media (min-width: 768px) {

	.sp {
		display: none;
	}

	.container {
		padding: 0 40px;
	}

	.section.container {
		margin-top: 72px;
	}

	.site-header {
		padding: 20px 0;
	}


	.main-nav {
		display: block;
		margin-left: auto;
	}

	.main-nav ul {
		flex-direction: row;
		list-style: none;
		gap: 20px;
		padding: 0;
	}

	.main-nav a {
		text-decoration: none;
		color: var(--text-color);
		font-size: 0.85rem;
		font-weight: bold;
		text-decoration: underline;
		text-decoration-color: rgba(111, 160, 51, 0);
		text-decoration-thickness: 2px;
		text-underline-offset: 5px;
		transition: all .3s ease-in-out;
	}

	.main-nav a:hover {
		color: rgba(57, 57, 57, .8);
		text-decoration-color: rgba(111, 160, 51, 1);
	}

	.menu-toggle {
		display: none;
	}

	.page-title_heading01 {
		font-size: 30px;
	}

	.page-title_description br {
		display: none;
	}

	.page-title-area + .section {
		margin-top: 30px;
	}

	.section__body {
		margin-top: 32px;
	}

	.page-banner {
		padding: 60px 0;
	}

	.page-banner h2 {
		font-size: 1.8rem;
	}

				/* ボタンを中央固定幅に */
	.btn-primary {
		display: inline-block;
		width: auto;
		padding: 20px 60px;
	}

				/* レイアウトを横並びに切り替え */
	.project-layout {
		flex-direction: row;
		align-items: flex-start;
		gap: 40px;
	}

	.project__body {
		padding-top: 50px;
	}

	.project__body:first-child {
		padding-top: 20px;
	}

	.section-title__heading2 + .section-title__heading3 {
		margin-top: 36px;
	}

	.u-section-title__heading3 {
		margin-top: 64px;
	}

	.flex-row {
		display: flex;
		flex-wrap: nowrap;
		justify-content: space-between;
		gap: 32px;
	}

	.flex-row.p-messageBlock__container {
		justify-content: flex-start;
		align-items: flex-start;
	}

	.flex-row.p-messageBlock__container .u-flex-img {
		width: 28%;
	}

	.flex-row.p-messageBlock__container .u-flex-img .img-placeholder-portrait {
		width: 200px;
	}

	.u-messageBlock__container + .p-messageBlock__container {
		margin-top: 80px;
	}

	.flex-row.reverse {
		flex-direction: row-reverse;
	}

	.p-messageBlock__body {
		margin-top: 0;
	}

	.p-jotoPic {
		margin-top: 60px;
	}

	.image-grid {
		flex: 0 0 400px;
	} /* 左側の画像エリア幅を固定 */

	.text-box {
		flex: 1;
	}

	.signature {
		margin-top: 16px;
	}

	.p-historyImg {
		margin-top: 0;
	}

	.grid-4__list {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
		gap: 20px;
	}

	.grid-4__item {
		width: calc(50% - 10px);
	}

	.grid-4__link {
		transition: all .3s ease-in-out;
	}

	.p-main45special {
		padding-bottom: 80px;
	}

	.flex-row.u-messageBlock__container {
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 16px;
	}

	.u-messageBlock__container .signature {
		margin-top: 0;
	}

	.project-flex_container {
		flex-direction: row;
	}

	.p-messageBlock__container + .project__title {
		margin-top: 60px;
	}

	.project-grid__four {
		width: 42%;
	}

	.project-grid__body {
		width: calc(58% - 24px);
	}

	.footer-top {
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-start;
		padding: 40px;
	}

	.btn-outline {
		width: 64%;
		margin: 0;
		padding: 8px 0;
	}

				/* フッターを横並びに */
.footer-inner {
		display: flex;
		justify-content: space-between;
	}

	.footer-nav {
		align-items: flex-start;
		margin-top: 8px;
		margin-left: auto;
	}

	.footer-nav ul {
		flex-direction: row;
		gap: 20px;
	}

	.footer-nav a {
		transition: all .3s ease-in-out;
	}

	.footer-nav a:hover {
		color: #fff;
	}

	.footer-nav .btn-outline:hover {
		color: var(--text-color);
	}

	.footer-copy p {
		font-size: 1rem;
		line-height: 1.6875;
	}

	.footer-copy p:last-child {
		font-size: .75rem;
		line-height: 1;
	}

}

@media (min-width: 899px) {
	.header-inner__lionslogo {
		display: block;
	}
}



.p-award__container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	margin: 0 auto;
}

.p-award__card {
	width: 100%;
}

.p-award__header {
	background-color: #bc9b6a;
	/* 金色・茶色の背景 */
	color: white;
	padding: 8px;
	display: flex;
	align-items: center;
	gap: 12px;
	border-radius: 2px;
}

.p-award__term {
	font-size: 1rem;
	font-weight: bold;
	border-right: 1px solid rgba(255, 255, 255, 0.5);
	padding-right: 12px;
}

.p-award__eventName {
	width: calc(80% - 12px);
	font-size: 1rem;
	font-weight: bold;
}

.p-award__content {
	padding: 10px 5px;
}

.p-award__row {
	display: flex;
	margin-bottom: 8px;
	font-size: 0.9rem;
}

.p-award__category {
	width: 110px;
	flex-shrink: 0;
	font-weight: normal;
}

.p-award__details {
	flex-grow: 1;
}

.p-award__details div {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	flex-direction: column;
}

.p-award__details div span:last-child {
	flex: 1;
}

@media (min-width: 768px) {
	.p-award__container {
		gap: 0 20px;
	}
	.p-award__card {
		width: calc(50% - 10px);
	}
	.p-award__term {
		font-size: 1.2rem;
	}
	.p-award__details div {
		flex-direction: row;
	}
}


.activityReport__header {
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 2;
}

.activityReport {
	display: flex;
	border: 1px solid var(--border-color__activity);
	font-family: "Hiragino Mincho ProN", serif;
	font-size: 13px;
	max-width: 1000px;
	margin: auto;
}

.activityReport__content {
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* 共通レイアウト設定 */
.table-header,
.row-group {
	display: flex;
	border-bottom: 1px solid var(--border-color__activity);
}

.flex-container {
	display: flex;
	flex: 1;
}

.money-part,
.labor-part {
	display: flex;
	flex: 1;
}

/* カラム幅設定（PC基準） */
.col-month {
	width: 60px;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	border-right: 1px solid var(--border-color__activity);
}

.col-money-desc,
.col-labor-desc {
	flex: 1;
	padding: 10px;
	border-right: 1px solid var(--border-color__activity);
}

.col-amount,
.col-time {
	width: 100px;
	padding: 10px;
	text-align: right;
	border-right: 1px solid var(--border-color__activity);
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.col-time {
	border-right: none;
}

/* 背景色 */
.bg-dark {
	background-color: var(--bg-dark);
	color: white;
}

.bg-month {
	background-color: #c5a676;
	color: white;
	font-weight: bold;
}

.bg-beige {
	background-color: var(--bg-beige);
}

.row-group:nth-child(even) .col-money-desc,
.row-group:nth-child(even) .col-labor-desc {
	background-color: var(--bg-light-gray);
}

/* ヘッダー専用スタイル */
.table-header {
	background-color: var(--bg-dark);
	color: white;
	text-align: center;
	font-weight: bold;
}

.footer-note {
	max-width: 1000px;
	margin: 10px auto;
	font-size: 12px;
}

/* --- スマートフォン用レイアウト --- */
@media (max-width: 768px) {
	.activityReport__header {
		font-size: 1rem;
	}

	.activity-report {
		flex-direction: row;
		/* 期の縦棒は維持 */
	}

	.col-amount {
		border-right: none;
	}

	.pc-only {
		display: none;
	}

	.row-group {
		flex-direction: row;
	}

	.flex-container {
		flex-direction: column;
		/* 金銭と労力を縦に並べる */
	}

	.money-part,
	.labor-part {
		width: 100%;
		border-bottom: 1px dashed #ccc;
	}

	.labor-part {
		border-bottom: none;
	}

	/* 見出しを疑似要素で追加 */
	.money-part::before {
		content: "金銭";
		background: #444;
		color: #fff;
		writing-mode: vertical-rl;
		padding: 5px 2px;
		font-size: 10px;
	}

	.labor-part::before {
		content: "労力";
		background: #444;
		color: #fff;
		writing-mode: vertical-rl;
		padding: 5px 2px;
		font-size: 10px;
	}
}
