@charset "UTF-8";

/* ==================================================
   1. 基本設定・リセット
================================================== */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

a {
	text-decoration: none;
	color: inherit;
}

ul {
	list-style: none;
}

.main {
	min-width: auto;
	padding-right: 20px !important;
	padding-left: 20px !important;
	margin-bottom: 100px;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
}

.flex {
	display: flex;
}

.align-center {
	align-items: center;
}

.space-between {
	justify-content: space-between;
}

.img-placeholder {
	background-color: #e0e0e0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #888;
	font-size: 0.9em;
}

/* ==================================================
   2. ヘッダー
================================================== */
header {
	border-bottom: 1px solid #eee;
	padding: 15px 0;
}

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

.logo {
	font-size: 24px;
	font-weight: bold;
	display: flex;
	align-items: center;
	gap: 8px;
}

.logo i {
	color: #2e7d32;
}

.nav-links {
	display: flex;
	gap: 20px;
	font-size: 14px;
	font-weight: bold;
}

.nav-links li.active {
	border-bottom: 2px solid #2e7d32;
	padding-bottom: 5px;
}

.header-actions {
	display: flex;
	gap: 10px;
}

.btn {
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: bold;
	cursor: pointer;
}

.btn-green {
	background-color: #388e3c;
	color: #fff;
	border: 1px solid #388e3c;
}

.btn-outline {
	background-color: #fff;
	color: #388e3c;
	border: 1px solid #388e3c;
}

/* ==================================================
   3. ヒーローセクション
================================================== */
.hero {
	position: relative;
	margin: 0 auto 1em;
	display: flex;
	align-items: center;
	overflow: hidden;
	border-radius: 8px;
	padding: 0;
}

/* 文字エリア */
.hero-content {
	position: relative;
	z-index: 2;
	width: 55%;
	padding: 10px 40px;
}

/* 見出し */
.hero h1 {
	font-size: 42px;
	font-weight: 900;
	color: #111;
	margin-bottom: 20px;
	letter-spacing: 1px;
}

/* 説明文 */
.hero p {
	font-size: 16px;
	line-height: 1.8;
	color: #333;
	margin-bottom: 10px;
}

/* 特徴 */
.hero-features {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.hero-features span {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	font-weight: bold;
	color: #333;
	background-color: #fff;
	padding: 7px;
	border-radius: 20px;
}

.hero-features i {
	color: #2e7d32;
	font-size: 18px;
}

/* 画像 */
.hero-image {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 1;
	width: 70%;
	height: 100%;
}

.hero-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: right center;
	display: block;
	border-radius: 0;
}

/* 画像の左側を白くグラデーション */
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg,
			#fafafa 0%,
			rgba(250, 250, 250, 0.95) 25%,
			rgba(250, 250, 250, 0.65) 45%,
			transparent 75%);
	pointer-events: none;
}

/* ==================================================
   4. セクション共通
================================================== */
.section-title {
	font-size: 18px;
	font-weight: bold;
	margin-bottom: 10px;
}

/* ==================================================
   5. 目的から探す
================================================== */
.purpose-section {
	padding: 15px 0 10px;
}

.purpose-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 15px;
}

.purpose-card {
	padding: 15px 25px;
	border-radius: 8px;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	text-decoration: none;
	transition: 0.2s;
	position: relative;
	cursor: pointer;
}

/* カード内アイコン */
.purpose-card .icon-left {
	font-size: 24px;
	margin-right: 5px;
	margin-bottom: 0;
	text-align: center;
}

/* テキスト */
.purpose-card .text-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	line-height: 1.4;
	text-align: center;
}

.purpose-card .main-text {
	font-size: 15px;
	font-weight: bold;
	margin-bottom: 5px;
}

.purpose-card .sub-text {
	font-size: 14px;
	color: #666;
}

/* 矢印アイコン */
.purpose-card .arrow-icon {
	font-size: 16px;
	margin-left: 10px;
}

/* カードのテーマカラー */
.bg-green-light {
	background-color: #e8f5e9;
	color: #333;
}

.bg-green-light .icon-left,
.bg-green-light .arrow-icon,
.bg-green-light .sub-text {
	color: #2e7d32;
}

.bg-blue-light {
	background-color: #e3f2fd;
	color: #333;
}

.bg-blue-light .icon-left,
.bg-blue-light .arrow-icon,
.bg-blue-light .sub-text {
	color: #1565c0;
}

.bg-yellow-light {
	background-color: #fff8e1;
	color: #333;
}

.bg-yellow-light .icon-left,
.bg-yellow-light .arrow-icon,
.bg-yellow-light .sub-text {
	color: #f57f17;
}

.bg-purple-light {
	background-color: #f3e5f5;
	color: #333;
}

.bg-purple-light .icon-left,
.bg-purple-light .arrow-icon,
.bg-purple-light .sub-text {
	color: #6a1b9a;
}

/* 後から指定されていたテーマカラーの文字色 */
.bg-green-light {
	background-color: #e8f5e9;
	color: #2e7d32;
}

.bg-blue-light {
	background-color: #e3f2fd;
	color: #1565c0;
}

.bg-yellow-light {
	background-color: #fff8e1;
	color: #f57f17;
}

.bg-purple-light {
	background-color: #f3e5f5;
	color: #6a1b9a;
}

/* ポップアップ */
.purpose-popup {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	min-width: 260px;
	padding: 18px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 5px 25px rgba(0, 0, 0, 0.18);
	z-index: 100;
	text-align: left;
}

/* ポップアップ表示 */
.purpose-card.is-active .purpose-popup {
	display: block;
}

/* ポップアップのリンク */
.purpose-popup a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 8px;
	color: #333;
	font-size: 14px;
	text-decoration: none;
	border-bottom: 1px solid #eee;
}

.purpose-popup a:last-child {
	border-bottom: none;
}

.purpose-popup a:hover {
	color: #2e7d32;
	background: #f5fbf5;
}

/* アコーディオン：ボタン化したカード内の見出し */
.purpose-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0;
	border: none;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.purpose-toggle .text-content {
	flex: 1;
	min-width: 0;
}

/* 開閉矢印 */
.purpose-arrow {
	flex-shrink: 0;
	margin-left: 10px;
	transition: transform 0.2s ease;
}

/* アコーディオンが開いたとき */
.purpose-card.is-open .purpose-arrow {
	transform: rotate(180deg);
}

/* ==================================================
   6. はじめての方におすすめ
================================================== */
.recommended-section {
	padding: 20px 0 0;
	width: fit-content;
}

.recommended-box {
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	overflow: hidden;
	width: fit-content;
	margin-right: auto;
	margin-left: auto;
}

.rec-banner {
	/* background-color: #e1f5fe; */
	/* padding: 30px; */
	display: flex;
	justify-content: space-between;
	/* position: relative; */
}

.rec-banner img {
	width: 100%;
}

.rec-banner-content {
	max-width: 60%;
}

.rec-tag {
	display: inline-block;
	background-color: #fff;
	border: 1px solid #00897b;
	color: #00897b;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: bold;
	margin-bottom: 15px;
}

.rec-banner h2 {
	font-size: 28px;
	line-height: 1.3;
	margin-bottom: 20px;
	color: #01579b;
}

.rec-banner ul {
	font-size: 14px;
}

.rec-banner ul li {
	margin-bottom: 8px;
}

.rec-banner ul i {
	color: #00897b;
	margin-right: 5px;
}

.rec-photo-area {
	width: 300px;
	height: 200px;
}

/* 日程 */
.rec-dates {
	padding: 20px 30px;
	display: flex;
	background-color: #fff;
}

.date-title {
	font-weight: bold;
	margin-right: 10px;
	font-size: 23px;
}

.date-slots {
	display: flex;
	flex: 1;
	margin-top: 2em;
}

.date-slot {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 0 20px;
}

.date-slot+.date-slot {
	border-left: 1px solid #ddd;
}

.date-year {
	font-size: 16px;
	font-weight: 800;
}

.date-main {
	font-size: 24px;
	font-weight: 800;
}

.date-week {
	font-size: 16px;
	font-weight: 800;
}

.date-time {
	display: block;
	width: 100%;
	font-size: 16px;
	font-weight: 800;
}

/* オレンジボタン */
.btn-orange {
	background-color: #f4511e;
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 30px;
	font-size: 15px;
	font-weight: bold;
	cursor: pointer;
}

/* ==================================================
   7. その他の定例セミナー
================================================== */
.other-seminars {
	padding: 40px 0;
}

.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.section-link {
	font-size: 16px;
	font-weight: bold;
	color: #1976d2;
}

.grid-5 {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.seminar-card {
	flex: 0 0 calc((100% - 64px) / 5);
	min-width: 0;
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-width: 227px;
}

.seminar-img {
	position: relative;
	width: 100%;
	flex-shrink: 0;
}

.seminar-img img {
	display: block;
	width: 100%;
	height: auto;
}

.seminar-info {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	position: static;
	width: 100%;
	padding: 12px;
}

.seminar-info h3 {
	font-size: 17px;
	position: static;
	margin-top: 0;
	font-weight: bold;
	line-height: 1.5;
	min-height: 3em;
	padding-right: 10px;
	padding-left: 10px;
	margin-bottom: 5px;
}

.seminar-info p {
	font-size: 14px;
	color: #666;
	flex: 1;
	line-height: 1.8;
	min-height: 3.6em;
	margin-bottom: 0;
	padding-right: 10px;
	padding-left: 10px;
}

.seminar-info a {
	font-size: 14px;
	font-weight: bold;
}

/* セミナー日程一覧 */
.seminar-date-list {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	align-content: flex-start;
	gap: 8px;
	margin-top: 10px;
}

/* 日程ボタン */
.seminar-date-button {
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	gap: 8px;
	padding: 7px 14px;
	border: 1px solid #f57f17;
	border-radius: 6px;
	text-decoration: none;
	transition: all 0.3s ease;
	width: 100%;
}

/* 日付 */
.seminar-date-button .date {
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

/* 時間 */
.seminar-date-button .time {
	font-size: 13px;
	/* color: #666; */
	white-space: nowrap;
}

/* ホバー */
.seminar-date-button:hover {
	background: #f57f17;
	color: #fff;
}

.seminar-date-button:hover .time {
	color: #fff;
}

/* ==================================================
   8. 建築・土木の実践セミナー
================================================== */
.practical-wrapper {
	background-color: #f5f5f5;
	padding: 40px 20px;
	margin-top: 40px;
	border-radius: 20px;
}

.seminar-subtitle {
	margin-right: 1em;
	color: #3b8d5a;
}

@media screen and (max-width: 767px) {
	.seminar-subtitle {
		display: block;
	}
}

.grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.practical-card {
	position: relative;
	display: flex;
	align-items: center;
	padding: 30px;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
	overflow: hidden;
	text-decoration: none;
	background-color: #fff;
	min-height: 180px;
}

.practical-card:hover {
	opacity: 0.9;
}

/* 背景画像 */
.practical-bg-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: right center;
	z-index: 1;
}

/* テキストエリア */
.practical-content {
	position: relative;
	z-index: 2;
	width: 63%;
}

.practical-tag {
	display: inline-block;
	color: #fff;
	padding: 4px 12px;
	font-size: 13px;
	font-weight: bold;
	border-radius: 2px;
	margin-bottom: 10px;
}

.tag-green {
	background-color: #0b7a37;
}

.tag-orange {
	background-color: #f57f17;
}

/* タイトル */
.practical-content h3 {
	font-size: 21px;
	font-weight: 900;
	line-height: 1.4;
	color: #111;
	margin-bottom: 10px;
	letter-spacing: 0.5px;
}

/* 説明文 */
.practical-content p {
	font-size: 13px;
	color: #555;
	line-height: 1.6;
}

.practical-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 15px;
	padding: 10px 20px;
	background: #f57f17;
	color: #fff;
	border-radius: 30px;
	font-size: 13px;
	font-weight: bold;
	transition: all 0.3s ease;
}

.practical-button i {
	font-size: 12px;
}

/* ==================================================
   9. レスポンシブ：目的から探す
================================================== */

/* タブレット・スマホ：1000px以下 */
@media screen and (max-width: 1060px) {
	.purpose-card {
		display: block;
	}

	.purpose-popup {
		display: none;
		position: static;
		width: 100%;
		min-width: 0;
		padding: 10px 0 0;
		background: transparent;
		border-radius: 0;
		box-shadow: none;
		z-index: auto;
	}

	.purpose-card.is-open .purpose-popup {
		display: block;
	}

	.purpose-popup a {
		padding: 12px 8px;
		background: #fff;
		border-radius: 4px;
	}

	.purpose-popup a:hover {
		background: #f5fbf5;
	}
}

/* スマホ：767px以下 */
@media screen and (max-width: 767px) {
	.purpose-grid {
		grid-template-columns: 1fr;
	}

	.purpose-toggle .main-text {
		font-size: 15px;
		line-height: 1.5;
	}

	.purpose-toggle .sub-text {
		font-size: 13px;
		line-height: 1.5;
	}

	.purpose-popup a {
		overflow-wrap: anywhere;
		line-height: 1.6;
	}
}

/* ==================================================
   10. レスポンシブ：定例セミナー・日程ボタン
================================================== */

/* タブレット：3列 */
@media screen and (max-width: 1054px) {
	.seminar-card {
		flex: 0 0 calc((100% - 32px) / 3);
	}
}

/* スマートフォン：2列 */
@media screen and (max-width: 767px) {
	.seminar-card {
		flex: 0 0 calc((100% - 16px) / 2);
	}
}

/* 小さいスマートフォン：1列 */
@media screen and (max-width: 480px) {
	.seminar-card {
		flex: 0 0 100%;
	}
}

/* スマホの日程ボタン */
@media screen and (max-width: 767px) {
	.seminar-date-list {
		gap: 8px;
	}

	.seminar-date-button {
		padding: 9px 11px;
	}

	.seminar-date-button .date {
		font-size: 14px;
	}

	.seminar-date-button .time {
		font-size: 12px;
	}
}

/* ==================================================
   11. レスポンシブ：実践セミナー
================================================== */

/* タブレット以下 */
@media screen and (max-width: 1050px) {
	.grid-2 {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.practical-card {
		min-height: 350px;
		padding: 25px;
	}

	.practical-content {
		width: 55%;
	}

	.practical-content h3 {
		font-size: 20px;
	}
}

/* ==================================================
   12. スマートフォン共通：767px以下
================================================== */
@media screen and (max-width: 767px) {

	.main,
	.container {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	.container {
		padding-left: 12px;
		padding-right: 12px;
	}

	/* ヒーローエリア */
	.hero {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		height: auto;
		min-height: 0;
		overflow: visible;
	}

	.hero-content {
		position: relative !important;
		inset: auto !important;
		transform: none !important;
		width: 100% !important;
		max-width: none;
		padding: 16px 12px;
		box-sizing: border-box;
		z-index: 2;
		background: #fff;
	}

	/* .hero-content,
	.hero-image {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
	} */

	.hero-content h1 {
		position: relative;
		margin: 0 0 10px;
		font-size: 22px;
		line-height: 1.4;
	}

	.hero-content p {
		position: relative;
		margin: 0 0 12px;
		font-size: 13px;
		line-height: 1.8;
		overflow-wrap: anywhere;
	}

	.hero-features {
		position: relative;
		display: flex;
		flex-direction: column;
		gap: 8px;
	}

	.hero-features span {
		width: auto;
		max-width: 100%;
		white-space: normal;
		writing-mode: horizontal-tb;
	}

	.hero-image {
		position: relative !important;
		inset: auto !important;
		transform: none !important;
		width: 100% !important;
		height: auto !important;
		margin: 0;
	}

	.hero-image img {
		display: block;
		position: relative !important;
		width: 100% !important;
		height: auto !important;
		max-width: 100%;
		object-fit: contain;
	}

	/* 目的から探す：スマホではリンクを常時表示 */
	.purpose-grid {
		display: grid;
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.purpose-card {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		position: relative;
		width: 100%;
		height: auto;
		min-height: 0;
		padding: 12px;
		box-sizing: border-box;
		text-decoration: none;
		overflow: visible;
	}

	.purpose-card .icon-left {
		flex-shrink: 0;
	}

	.purpose-card .text-content {
		min-width: 0;
	}

	/* PCのポップアップ表示を解除して、通常のコンテンツとして表示 */
	.purpose-popup {
		position: static !important;
		top: auto !important;
		left: auto !important;
		right: auto !important;
		bottom: auto !important;
		transform: none !important;
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
		width: 100% !important;
		max-width: none !important;
		max-height: none !important;
		margin-top: 10px;
		padding: 8px 0 0;
		box-sizing: border-box;
		background: transparent;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		z-index: auto;
	}

	.purpose-popup a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		width: 100%;
		padding: 10px 12px;
		margin-top: 6px;
		box-sizing: border-box;
		background: #fff;
		border: 1px solid #d9e5dc;
		border-radius: 6px;
		font-size: 13px;
		line-height: 1.5;
		text-decoration: none;
		overflow-wrap: anywhere;
	}

	.purpose-popup a i {
		flex-shrink: 0;
	}

	/* おすすめセミナー */
	.recommended-section {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	.recommended-box {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	.rec-banner {
		width: 100%;
	}

	.rec-banner img {
		display: block;
		width: 100%;
		height: auto;
	}

	.date-title {
		font-size: 18px;
	}

	.rec-dates {
		display: flex;
		flex-direction: column;
		width: 100%;
		gap: 5px;
		box-sizing: border-box;
		padding: 10px 20px;
	}

	.date-slots {
		display: flex;
		flex-direction: column;
		width: 100%;
		gap: 12px;
		margin-top: 0;
	}

	.date-slot {
		display: flex;
		flex-direction: column;
		align-items: center;
		width: 100%;
		box-sizing: border-box;
		padding: 10px 0;
		text-align: center;
		gap: 10px;
	}

	.date-slot+.date-slot {
		border-left: none;
		border-top: 1px solid #ddd;
	}

	.date-slot>div {
		width: 100%;
		min-width: 0;
	}

	.btn-orange {
		max-width: 100%;
		white-space: normal;
	}

	/* その他の定例セミナー */
	.other-seminars {
		width: 100%;
		box-sizing: border-box;
	}

	.section-header {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.grid-5 {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		width: 100%;
	}

	.seminar-card {
		width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}

	.seminar-img {
		width: 100%;
		overflow: hidden;
	}

	.seminar-img img {
		display: block;
		width: 100%;
		max-width: 100%;
		height: auto;
	}

	.seminar-info {
		width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}

	/* 建築・土木の実践セミナー */
	.practical-wrapper {
		width: 100%;
		box-sizing: border-box;
	}

	.grid-2 {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		width: 100%;
	}

	/* カード全体 */
	.practical-card {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		min-width: 0;
		min-height: auto;
		padding: 0;
		box-sizing: border-box;
	}

	.practical-bg-img {
		position: static;
		display: block;
		width: 100%;
		max-width: 100%;
		height: auto;
		aspect-ratio: 16 / 9;
		object-fit: cover;
		object-position: right;
	}

	/* 文字部分 */
	.practical-content {
		position: static;
		width: 100%;
		padding: 16px;
		box-sizing: border-box;
	}

	.practical-content h3 {
		font-size: 20px;
		line-height: 1.5;
	}

	.practical-content p {
		font-size: 13px;
		line-height: 1.7;
	}
}

/* ==================================================
   13. スマホ：目的から探す アコーディオン
================================================== */
@media screen and (max-width: 767px) {

	/* 閉じているカードのリンクを非表示 */
	.purpose-card:not(.is-open) .purpose-popup {
		display: none !important;
	}

	/* 開いているカードのリンクを表示 */
	.purpose-card.is-open .purpose-popup {
		display: block !important;
	}

	/* 開閉ボタンの表示 */
	.purpose-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
	}
}
