@charset "UTF-8";

/* =======================================================
   Sunmedic Theme - common.css（全ページ共通CSS）
======================================================= */


/* =======================================================
   1. 初期・基本設定（Reset / Base）
======================================================= */

html {
	box-sizing: border-box;
	font-size: 16px;
}

*,
*:before,
*:after {
	box-sizing: inherit;
}

body {
	margin: 0;
	padding: 0;
	font-family:
		"Noto Sans JP",
		system-ui,
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		sans-serif;
	line-height: 1.7;
	color: #333;
	background: #fff;
}

/* 画像共通 */
img {
	max-width: 100%;
	height: auto;
	vertical-align: bottom;
}

/* リンク */
a {
	color: #52BDF8;
	text-decoration: none;
}

a:hover {
	opacity: .8;
}

/* 見出し */
h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 1.2em 0 1.2em;
	line-height: 1.4;
	font-family:
		"Noto Serif JP",
		"Hiragino Mincho ProN",
		"Yu Mincho",
		"游明朝",
		serif;
}



/* =======================================================
   2. 区切り・まとめ（Container / Section / Utility）
======================================================= */

.container {
	width: min(1200px, 92%);
	margin: 0 auto;
}

/* セクション共通余白 */
.section-padding {
	padding: 4em 0;
}

/* ベースカラー */
.bg-white {
	background: #fff;
}

.bg-gray {
	background: #f5f5f5;
}

/* 汎用セクションタイトル */
h2 {
	font-size: 1.8rem;
	text-align: center;
	margin-bottom: 1.5em;
}



/* =======================================================
   3. ヘッダー（Head / Header / Navigation）
======================================================= */

/* ---------------------------------------
   3-1. ヘッダー基本レイアウト
--------------------------------------- */
.site-header {
	background: #ffffff;
	border-bottom: 1px solid #e5e5e5;
}

.header-inner {
	width: min(1200px, 92%);
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.2em 0;
}

.site-logo {
	margin-right: auto;
}

.site-logo img {
	height: 40px;
	width: auto;
	display: block;
}

.site-logo a {
	display: inline-flex;
	align-items: center;
}

/* ---------------------------------------
   3-2. PCグローバルナビ
--------------------------------------- */

.global-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 2em;
	position: relative;
}

.global-nav li {
	position: relative;
}

.global-nav a {
	color: #333;
	font-weight: 400;
	font-size: 16px;
	text-decoration: none;
	padding: 8px 4px;
	display: inline-block;
	transition: .25s;
}

.global-nav a:hover {
	color: #FE9900;
}

/* 現在ページ */
.global-nav .current-menu-item>a,
.global-nav .current-menu-ancestor>a {
	color: #FE9900 !important;
	font-weight: 600;
}

/* ---------------------------------------
   3-3. PC ドロップダウン
--------------------------------------- */

.global-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	min-width: 220px;
	padding: 8px 0;
	border-radius: 8px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);

	opacity: 0;
	visibility: hidden;
	max-height: 0;
	overflow: hidden;

	transform: translateY(10px);
	transition: all .25s ease;
	z-index: 9999;
}

/* Hoverで表示 */
.global-nav li.has-children:hover>.sub-menu {
	opacity: 1 !important;
	visibility: visible !important;
	max-height: 500px !important;
	transform: translateY(0) !important;
}

/* flex の影響排除 */
.global-nav ul li .sub-menu {
	display: block;
	position: absolute;
	top: 100%;
	left: 0;
}



/* ---------------------------------------
   3-4. ヘッダー右側固定ボタン
--------------------------------------- */

.header-right-buttons {
	display: flex;
	gap: 0;
	margin-left: auto;
}

.header-btn {
	width: 130px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	font-weight: 600;
	text-decoration: none;
	font-size: 15px;
	border-radius: 0;
}

.header-btn.contact-btn {
	background: #52BDF8;
}

.header-btn.recruit-btn {
	background: #66CDAA;
}

.header-btn:hover {
	opacity: 0.85;
}



/* ---------------------------------------
   3-5. スマホ ハンバーガーボタン
--------------------------------------- */

.hamburger-btn {
	display: none;
}



/* =======================================================
   4. フッター（Footer / Pickup / News）
======================================================= */

/* ---------------------------------------
   4-1. フッター基本レイアウト
--------------------------------------- */
.site-footer {
	background: #fff;
	padding: 60px 20px 40px;
	text-align: center;
}

.footer-inner {
	width: min(1200px, 92%);
	margin: 0 auto;
}

.footer-logo img {
	height: 40px;
	margin-bottom: 30px;
}

.footer-menu {
	display: flex;
	justify-content: center;
	gap: 40px;
	margin-bottom: 30px;
	list-style: none;
}

.footer-menu li a {
	text-decoration: none;
	color: #333;
	font-size: 14px;
}

.copy {
	font-size: 12px;
	color: #666;
}

.footer-bar {
	width: 100%;
	height: 60px;
	background: #FFAD33;
	position: relative;
}

.back-to-top {
	position: absolute;
	right: 0;
	top: 0;
	width: 60px;
	height: 60px;
	background: #EC8D00;
	border: none;
	color: #fff;
	font-size: 22px;
	cursor: pointer;
	border-radius: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}



/* ---------------------------------------
   4-2. ピックアップ（Pickup）
--------------------------------------- */
.pickup-demo-list {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	padding: 0;
	list-style: none;
}

.pickup-demo-item {
	list-style: none;
}

/* ★ カード自体がリンク */
.pickup-demo-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 400px;
	padding: 20px;
	background: #fff;
	border: 1px solid #d4d4d4;
	text-decoration: none;
	color: inherit;
	transition: .25s ease;
}

.pickup-demo-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* 画像 */
.pickup-demo-thumb {
	width: 100%;
	height: 240px;
	border: 1px solid #D4D4D4;
	overflow: hidden;
	margin-bottom: 16px;
	flex-shrink: 0;
}

.pickup-demo-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* テキスト */
.pickup-demo-title {
	font-size: 20px;
	font-weight: bold;
	margin: 0 0 8px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	/* 行数を指定 */
}

.pickup-demo-text {
	display: none;
	flex-grow: 1;
	font-size: 14px;
	line-height: 1.5;
}

/* 見た目用ボタン */
.pickup-demo-btn {
	width: 160px;
	height: 40px;
	border: 1px solid #D4D4D4;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	margin-top: 16px;
	align-self: flex-start;
}

.pickup-demo-btn .arrow {
	margin-left: 6px;
	font-size: 16px;
}


/* ---------------------------------------
   4-3. NEWS（おしらせ）
--------------------------------------- */

.news-section {
	padding: 80px 0;
	background: #fff;
}

.news-title {
	text-align: center;
	font-size: 32px;
	margin-bottom: 50px;
}

.news-cards {
	display: flex;
	justify-content: space-between;
	gap: 0px;
	list-style: none;
	padding: 0;
}

.news-card a {
	display: flex;
	width: 390px;
	height: 150px;
	background: #fff;
	text-decoration: none;
	color: inherit;
}

.news-thumb {
	width: 150px;
	height: 150px;
	overflow: hidden;
	flex-shrink: 0;
}

.news-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-body {
	width: 450px;
	height: 150px;
	background: #f5f5f5;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.news-item-title {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	/* 行数を指定 */
}

.news-date {
	font-size: 13px;
	color: #666;
}

.news-more {
	text-align: center;
	margin-top: 50px;
}

.news-more-btn {
	background: #F3A533;
	color: #fff;
	padding: 14px 40px;
	border-radius: 6px;
	display: inline-block;
	font-size: 18px;
	transition: .2s;
	margin: 3em 0 0 0;
}

.news-more-btn:hover {
	opacity: .85;
}

.footer-related {
	padding: 60px 0;
}

p.news-excerpt {
	display: none;
}

/* ---------------------------------------
   4-4. フッターブロック（お問い合わせ / 採用情報）
--------------------------------------- */

.footer-block {
	width: 100%;
	padding: 40px 0;
	display: flex;
	justify-content: center;
	background: #fff;
}

.footer-block-inner {
	width: 1200px;
	min-height: 270px;
	background: #ffffff;
	border-radius: 12px;
	padding: 40px 0 0 0;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
	text-align: center;
}

.footer-contact .footer-block-inner {
	background: #52BDF8;
}

.footer-recruit .footer-block-inner {
	background: #66CDAA;
}

.footer-block-title {
	font-size: 28px;
	color: #ffffff;
	margin: 0 0 32px 0;
	font-weight: 600;
}

.footer-links {
	display: flex;
	justify-content: space-between;
	gap: 40px;
	padding: 0 40px;
}

.footer-card {
	width: 500px;
	height: 100px;
	background: #ffffff;
	border-radius: 8px;
	display: flex;
	align-items: center;
	padding: 0 26px;
	text-decoration: none;
	color: inherit;
	gap: 20px;
	transition: .2s ease;
}

.footer-card:hover {
	background: #f9f9f9;
	box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.footer-card-icon {
	font-size: 48px;
	display: flex;
	align-items: center;
}

.footer-card-text {
	flex: 1;
	font-size: 22px;
	font-weight: 600;
	text-align: left;
}

.footer-card-arrow {
	font-size: 32px;
	display: flex;
	align-items: center;
}

.footer-contact .footer-card-icon,
.footer-contact .footer-card-text,
.footer-contact .footer-card-arrow {
	color: #4681B3;
}

.footer-recruit .footer-card-icon,
.footer-recruit .footer-card-text,
.footer-recruit .footer-card-arrow {
	color: #3AB188;
}



/* =======================================================
   5. スマホ（SP） max-width: 799px
======================================================= */
@media (max-width: 799px) {

	/* ===========================
	   ▼ ヘッダー
	=========================== */

	/* PCナビを消す */
	.global-nav {
		display: none !important;
	}

	/* ▼ ロゴのサイズを調整（押し出し防止） */
	.site-logo img {
		height: 32px;
	}

	.header-inner {
		flex-direction: row !important;
		justify-content: space-between;
		align-items: center;
		position: relative;
		/* ← これが絶対必要 */
	}

	/* ▼ ハンバーガーボタン（枠） */
	.hamburger-btn {
		display: flex !important;
		flex-direction: column;
		justify-content: space-between;
		align-items: center;
		width: 24px;
		/* ← 小さい枠に統一 */
		height: 18px;
		/* ← 線3本の高さぴったり */
		position: absolute;
		top: 50%;
		right: 20px;
		transform: translateY(-50%);
		background: none;
		border: none;
		padding: 0;
		cursor: pointer;
		z-index: 10020;
	}

	/* ▼ 三本線（通常） */
	.hamburger-btn span {
		display: block;
		width: 24px;
		/* ← 全部の線を同じ長さへ統一 */
		height: 2px;
		background: #333;
		border-radius: 2px;
		transition: .25s ease;
		transform-origin: center center;
		/* ← 回転の基準 */
	}

	/* ▼ X（変形） */
	.hamburger-btn.active span:nth-child(1) {
		transform: translateY(8px) rotate(45deg);
	}

	.hamburger-btn.active span:nth-child(2) {
		opacity: 0;
	}

	.hamburger-btn.active span:nth-child(3) {
		transform: translateY(-8px) rotate(-45deg);
	}

	/* SPメニュー（初期は非表示） */
	.sp-menu {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		background: rgba(255, 255, 255, 0.96);
		z-index: 10000;
		padding-top: 60px;
		overflow-y: auto;
	}

	/* ハンバーガーで開いた状態 */
	.sp-menu.active {
		display: block;
	}

	/* ===========================
	   ▼ 固定ボタン（お問い合わせ / 採用情報）
	=========================== */

	.header-right-buttons {
		position: fixed;
		bottom: 0;
		left: 0;
		width: 100%;
		display: flex;
		z-index: 9998;
		margin-left: 0 !important;
	}

	.header-btn {
		width: 50%;
		height: 56px;
		font-size: 16px;
		border-radius: 0;
	}

	body {
		padding-bottom: 60px;
		/* 固定ボタン分の余白確保 */
	}

	/* ===========================
	   ▼ TOPリンク（3カラム → 1カラム）
	=========================== */

	.top-links-wrapper {
		width: 92%;
		padding: 20px;
	}

	.top-links-section {
		margin-top: 20px;
		/* PCの-80pxを解除 */
	}

	.top-link-list {
		flex-direction: column;
		gap: 24px;
	}

	.top-link-list li {
		width: 100%;
	}

	.top-link-list li .img-box {
		height: 200px;
	}


	/* ===========================
	   ▼ ピックアップ（3 → 1カラム）
	=========================== */

	.pickup-demo-list {
		display: flex;
		flex-direction: column;
		gap: 24px;
		padding: 0 16px;
	}

	.pickup-demo-card {
		height: auto;
		padding: 16px;
		border-radius: 12px;
	}

	.pickup-demo-thumb {
		height: 180px;
	}

	.pickup-demo-title {
		font-size: 18px;
		margin: 12px 0 6px;
		overflow: hidden;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 1;
		/* 行数を指定 */
	}

	.pickup-demo-text {
		font-size: 14px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		margin-bottom: 12px;
	}

	.pickup-demo-btn {
		width: 100%;
		max-width: 240px;
		height: 44px;
	}


	/* ===========================
	   ▼ NEWS（3 → 2カラム）
	=========================== */

	/* 枠全体を縦に積む */
	.news-cards {
		display: flex;
		flex-direction: column;
		gap: 16px;
		padding: 0;
	}

	/* カード全体 */
	.news-card a {
		display: flex;
		flex-direction: row;
		/* ← 画像＋テキストを並べる */
		width: 100%;
		height: 140px;
		/* 統一高さ */
		background: #fff;
		overflow: hidden;
		border-radius: 8px;
	}

	/* 画像（左） */
	.news-thumb {
		width: 40%;
		/* 適度な横幅 */
		height: 140px;
		/* 自動調整 */
		flex-shrink: 0;
	}

	.news-thumb img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	/* テキスト（右） */
	.news-body {
		width: 60%;
		height: 140px;
		background: #F5F5F5;
		padding: 14px;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
	}

	/* タイトル */
	.news-item-title {
		font-size: 15px;
		font-weight: 600;
		line-height: 1.5;
		margin: 0;
		overflow: hidden;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
		/* 行数を指定 */
	}

	/* 日付 */
	.news-date {
		font-size: 12px;
		color: #666;
		margin-top: auto;
	}


	/* ===========================
	   ▼ フッターブロック
	=========================== */

	.footer-block-inner {
		width: 92%;
		min-height: auto;
		padding: 30px 0;
	}

	.footer-links {
		flex-direction: column;
		gap: 20px;
		padding: 0 20px;
	}

	.footer-card {
		width: 100%;
		height: auto;
		padding: 20px;
	}

	.footer-card-icon {
		font-size: 40px;
	}

	.footer-card-arrow {
		font-size: 30px;
	}

	.footer-card-text {
		font-size: 18px;
	}
}

@media (min-width: 800px) {
	.sp-menu {
		display: none !important;
	}
}

/* =======================================================
   About（共通レイアウト）
======================================================= */

.about-banner {
	width: 100%;
	padding: 150px 0;
	text-align: center;
	background-size: cover;
	background-position: center;
}

.about-banner .about-btn {
	display: inline-block;
	padding: 14px 30px;
	color: #fff;
	border-radius: 4px;
	font-weight: 600;
}



/* =======================================================
   About パターン別（背景画像 & ボタン色）
======================================================= */

/* 1) トップページ用 */
.about-type-home {
	background-image: url('../img/banner.jpg');
}

.about-type-home .about-btn {
	background: #FFAD33;
}

/* 2) 薬局ページ用 */
.about-type-pharmacy {
	background-image: url('../img/pharmacy-about-bg.jpg');
}

.about-type-pharmacy .about-btn {
	background: #52BDF8;
}

/* 3) 介護ページ用（小郡・八女・柳川含む） */
.about-type-nursing {
	background-image: url('../img/nursing/recruit-bg.jpg');
}

.about-type-nursing .about-btn {
	background: #66CDAA;
}

/* ---- 将来パターン追加 ---- */
.about-type-custom1 {
	background-image: url('../img/custom-bg.jpg');
}

.about-type-custom1 .about-btn {
	background: #ff6699;
}

/* ---- 非表示 ---- */
.about-none {
	display: none;
}

/* ▼ 上に戻るボタン */
.to-top {
	position: fixed;
	right: 20px;
	bottom: 90px;
	/* footer-bar と被らないよう調整 */
	width: 52px;
	height: 52px;
	background: #EC8D00;
	color: #fff;
	text-align: center;
	line-height: 52px;
	font-size: 20px;
	border-radius: 50%;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	transition: all 0.3s ease;
	z-index: 9999;
}

.to-top.active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

@media (max-width: 799px) {
	.n2-ss-slider {
		height: 450px !important;
	}
}

/* =======================================================
   Footer Navigation（HTML構造対応・最終FIX）
======================================================= */

/* nav 全体 */
.footer-nav {
	margin-top: 48px;
}

/* ★ grid を当てるのは ul */
.footer-nav .footer-menu>ul {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 48px;
	max-width: 1200px;
	margin: 0 auto 40px;
	padding: 0;
	list-style: none !important;
}

/* 親 li（各カラム） */
.footer-nav .footer-menu>ul>li {
	list-style: none !important;
}

/* 親リンク（太字） */
.footer-nav .footer-menu>ul>li>a {
	display: block;
	font-weight: 700;
	font-size: 15px;
	color: #111;
	margin-bottom: 14px;
	text-decoration: none;
}

/* 子階層（WordPressは children） */
.footer-nav .footer-menu ul.children {
	list-style: none !important;
	padding: 0;
	margin: 0;
}

/* 子 li */
.footer-nav .footer-menu ul.children li {
	list-style: none !important;
}

/* 子リンク（縦並び） */
.footer-nav .footer-menu ul.children li a {
	display: block;
	font-size: 14px;
	color: #666;
	margin-bottom: 10px;
	text-decoration: none;
}

.footer-nav .footer-menu ul.children li a:hover {
	color: #000;
}

/* コピーライトだけ中央 */
.site-footer .copy {
	text-align: center;
}

/* =======================================================
   SPでは非表示（要件どおり）
======================================================= */
@media (max-width: 799px) {
	.footer-nav {
		display: none !important;
	}
}

/* =======================================================
   Contact Form（仮）
======================================================= */

.form-page {
	padding-bottom: 100px;
}

/* ページ見出し */
.page-banner {
	padding: 120px 0 80px;
	text-align: center;
	background: #F2F3F5;
}

.page-title {
	font-size: 32px;
	letter-spacing: 0.12em;
	font-weight: 500;
	margin-bottom: 10px;
}

.page-sub {
	font-size: 14px;
	letter-spacing: 0.2em;
	color: #888;
}

/* 説明文 */
.form-intro {
	padding: 60px 0;
	text-align: center;
}

.form-intro p {
	font-size: 16px;
	line-height: 2;
	color: #333;
}

/* フォーム */
.form-section {
	padding: 0 0 80px;
}

.form-section .inner {
	max-width: 720px;
	margin: 0 auto;
	padding: 0 20px;
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.form-row label {
	display: block;
	font-size: 14px;
	margin-bottom: 8px;
}

.form-row .required {
	color: #d9534f;
	font-size: 12px;
	margin-left: 6px;
}

.form-row input,
.form-row textarea {
	width: 100%;
	padding: 14px 16px;
	font-size: 15px;
	border: 1px solid #ccc;
	box-sizing: border-box;
}

.form-row textarea {
	resize: vertical;
}

.form-submit {
	text-align: center;
	margin-top: 20px;
}

.form-submit button {
	padding: 16px 60px;
	background: #FFAD33;
	color: #fff;
	border: none;
	font-size: 15px;
	letter-spacing: 0.1em;
	cursor: pointer;
}

.form-submit button:hover {
	opacity: 0.85;
}

/* ================================
   SP
================================ */

@media (max-width: 767px) {

	.page-banner {
		padding: 80px 0 50px;
	}

	.page-title {
		font-size: 24px;
	}

	.form-intro {
		padding: 40px 0;
	}

	.form-intro p {
		font-size: 14px;
	}

	.contact-form {
		gap: 24px;
	}

}

/* =========================
   新着アーカイブ
========================= */

.news-archive {
	max-width: 1200px;
	margin: 60px auto;
	padding: 0 20px;
}

.news-archive-title {
	font-size: 26px;
	text-align: center;
	margin-bottom: 40px;
}

.news-archive-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.news-archive-item {
	border-bottom: 1px solid #e5e5e5;
}

.news-archive-item a {
	display: flex;
	gap: 18px;
	padding: 18px 0;
	text-decoration: none;
	color: #333;
}

.news-archive-item time {
	font-size: 14px;
	color: #888;
	min-width: 90px;
}

.news-archive-item .title {
	font-size: 16px;
	line-height: 1.6;
}

.news-archive-item a:hover .title {
	text-decoration: underline;
}

/* =========================
   新着アーカイブ｜ページネーション
========================= */

.news-archive-pagination {
	margin-top: 40px;
	text-align: center;
}

.news-archive-pagination .pagination {
	display: inline-flex;
	gap: 12px;
}

.news-archive-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	background: #f5f5f5;
	color: #666;
	border: 1px solid #e0e0e0;
	text-decoration: none;
	font-size: 15px;
	line-height: 1;
}

.news-archive-pagination .page-numbers:hover {
	background: #eaeaea;
	color: #666;
}

.news-archive-pagination .page-numbers.current {
	background: #666;
	color: #ffffff;
	border-color: #666;
	cursor: default;
}

.news-archive-pagination .page-numbers.dots {
	background: transparent;
	border: none;
	min-width: auto;
	padding: 0 6px;
}

.news-archive-pagination .page-numbers.prev,
.news-archive-pagination .page-numbers.next {
	font-size: 14px;
}


/* ==================================================
   新着情報（基本・安全構成）
================================================== */

.single-post {
	margin: 40px auto 0x;
	padding: 0;
}

.single-wrap {
	margin: 80px auto;
	width: 1200px;
}

/* 新着ラベル */
.news-label-wrap {
	margin-bottom: 20px;
	text-align: center;
}

.news-label {
	display: inline-block;
	font-size: 24px;
	letter-spacing: 0.08em;
	color: #666;
	padding: 6px 14px;
}

/* 記事本文 */
.post-content {
	line-height: 1.9;
	font-size: 16px;
	padding: 50px;
	border: 2px dashed #d4d4d4;
	margin: 50px;
}

/* 一覧リンク */
.news-archive-link {
	margin-top: 50px;
	text-align: center;
}

.news-archive-link a {
	font-size: 14px;
	color: #666;
	text-decoration: underline;
}

/* =========================
   新着詳細｜前の記事 / 次の記事
========================= */

.news-prev-next {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin: 0 50px;
}

.news-prev-next-left,
.news-prev-next-right {
	width: 50%;
	display: flex;
}

.news-prev-next-left {
	justify-content: flex-start;
}

.news-prev-next-right {
	justify-content: flex-end;
}

.news-prev-next-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 140px;
	height: 44px;
	padding: 0 18px;
	border: 1px solid #d4d4d4;
	background: #f5f5f5;
	color: #666;
	text-decoration: none;
	font-size: 14px;
	line-height: 1;
}

.news-prev-next-btn:hover {
	opacity: .85;
}

/* SP */
@media (max-width: 799px) {
	.news-prev-next {
		margin: 0 16px;
	}

	.news-prev-next-btn {
		min-width: 120px;
		height: 42px;
		padding: 0 14px;
	}
}


/* ===============================
   SP MENU - Simple & Smart
   （グレー区切り・縦並び）
=============================== */

@media (max-width: 799px) {

	/* メニュー全体 */
	.sp-menu {
		background: #ffffff;
	}

	.sp-menu-inner {
		padding: 0 20px 40px;
	}

	/* ===== リスト全体 ===== */
	.sp-menu-list {
		list-style: none;
		margin: 0;
		padding: 0;
		border-top: 1px solid #e5e5e5;
	}

	/* 親・子 共通 */
	.sp-menu-list li {
		list-style: none;
	}

	/* ===== 親リンク ===== */
	.sp-menu-list>li>a {
		display: block;
		padding: 16px 0;
		font-size: 16px;
		font-weight: 600;
		color: #333;
		border-bottom: 1px solid #e5e5e5;
	}

	/* 子を持つ親は少し余白 */
	.sp-menu-list>li.sp-has-children>a {
		padding-bottom: 14px;
	}

	/* ===== サブメニュー ===== */
	.sp-menu-list .sub-menu {
		list-style: none;
		margin: 0;
		padding: 0 0 8px 0;
		background: #fafafa;
		border-bottom: 1px solid #e5e5e5;
	}

	/* サブ項目 */
	.sp-menu-list .sub-menu li a {
		display: block;
		padding: 12px 0 12px 14px;
		font-size: 14px;
		color: #555;
		border-top: 1px solid #ededed;
	}

	.sp-menu-list .sub-menu li:first-child a {
		border-top: none;
	}

	/* hover */
	.sp-menu-list a:hover {
		background: #f6f6f6;
	}

	/* ===== 下部ボタン ===== */
	.sp-menu-buttons {
		margin-top: 32px;
		display: flex;
		flex-direction: column;
		gap: 12px;
	}

	.sp-btn {
		display: block;
		width: 100%;
		padding: 14px 0;
		text-align: center;
		font-size: 15px;
		font-weight: 600;
		border-radius: 4px;
	}

	.sp-btn.contact {
		background: #52BDF8;
		color: #fff;
	}

	.sp-btn.recruit {
		background: #66CDAA;
		color: #fff;
	}
}

/* =======================================================
   採用情報 ホバーサブメニュー（PCのみ）
======================================================= */

.header-recruit-wrap {
	position: relative;
	display: inline-block;
}

/* サブメニュー本体 */
.recruit-sub-menu {
	position: absolute;
	top: 100%;
	right: 0;
	width: 180px;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
	padding: 8px 0;
	margin-top: 6px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: all 0.25s ease;
	z-index: 9999;
	list-style: none;
}

/* 表示制御（hover） */
.header-recruit-wrap:hover .recruit-sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* リンク */
.recruit-sub-menu li a {
	display: block;
	padding: 10px 16px;
	font-size: 14px;
	color: #333;
	text-decoration: none;
	white-space: nowrap;
}

.recruit-sub-menu li a:hover {
	background: #f2f6f9;
}

/* =======================================================
   SPでは完全に無効化
======================================================= */
@media (max-width: 768px) {
	.recruit-sub-menu {
		display: none !important;
	}
}

html {
	scroll-behavior: smooth;
}

@media (max-width: 799px) {

	.header-right-buttons {
		display: flex;
		flex-wrap: nowrap;
	}

	.header-right-buttons>a,
	.header-right-buttons>.header-recruit-wrap {
		width: 50%;
		flex: 0 0 50%;
	}

	.header-recruit-wrap>.header-btn {
		width: 100%;
	}
}

/* --- ギャラリーの余分な改行対策--- */
.shop-content .gallery br {
	display: none !important;
}
/* =========================
   新着アーカイブ｜拡張UI（タイトル色・タブ）
========================= */

/* タイトルの下線カラーを事業部で分ける */
.theme-all .news-archive-title { border-bottom: 2px solid #FFAD33; padding-bottom: 10px; display: inline-block; }
.theme-pharmacy .news-archive-title { border-bottom: 2px solid #52BDF8; padding-bottom: 10px; display: inline-block; color: #333; }
.theme-sunhome .news-archive-title { border-bottom: 2px solid #66CDAA; padding-bottom: 10px; display: inline-block; color: #333; }

/* 絞り込みタブ */
.news-archive-tabs {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-bottom: 40px;
}

.news-archive-tabs .tab-btn {
	display: inline-block;
	padding: 10px 24px;
	border: 1px solid #ddd;
	background: #fff;
	color: #666;
	text-decoration: none;
	border-radius: 30px;
	font-size: 14px;
	font-weight: 500;
	transition: 0.2s ease;
}

.news-archive-tabs .tab-btn:hover {
	background: #f5f5f5;
}

/* 選択中（アクティブ）のタブ */
.theme-all .news-archive-tabs .tab-btn.is-active { background: #FFAD33; color: #fff; border-color: #FFAD33; }
.theme-pharmacy .news-archive-tabs .tab-btn.is-active { background: #52BDF8; color: #fff; border-color: #52BDF8; }
.theme-sunhome .news-archive-tabs .tab-btn.is-active { background: #66CDAA; color: #fff; border-color: #66CDAA; }

/* スマホ対応 */
@media (max-width: 768px) {
	.news-archive-tabs {
		gap: 8px;
	}
	.news-archive-tabs .tab-btn {
		padding: 8px 16px;
		font-size: 13px;
	}
}