/* ==========================================
   自炊の森 公式サイト CSS
   ========================================== */

/* ===== CSS変数定義 ===== */
:root {
	--accent-blue:		 #1a73e8;
	--accent-blue-hover: #0d47a1;
	--primary-blue: 	 #e8f0fe;
	--accent-blue-dark:  #0d47a1;
	--accent-blue-light: #e8f0fe;
	
	--accent-green: 	 #28a745;
	--accent-green-hover:#1e7e34;
	--primary-green:	 #f0fff4;
	--accent-green-dark: #1e7e34;
	--accent-green-light:#f0fff4;

	--accent-orange:	  #e8780a;
	--accent-orange-hover:#c96508;
	--primary-orange:	  #fff4eb;
	--accent-orange-dark: #c96508;
	--accent-orange-light:#fff4eb;
	--accent-orange-mid  :#fde3c8;

	--green-bg: 		 #e6f4ea;
	--green-text:		 #2d7d32;
	--text-main:		 #333;
	--text-sub: 		 #666;
	--bg-light: 		 #f9f9f9;
	--border-color: 	 #eee;

	/* テーマ変数（service-switch.js でモード切り替え時に上書きされる） */
	--theme-color: #1a73e8;
	--theme-hover: #0d47a1;
	--theme-bg:    #f0f7ff;
}

/* 裁断モード時にテーマ変数を緑系に上書き */
body.mode-cutting {
	--theme-color: #28a745;
	--theme-hover: #1e7e34;
	--theme-bg:    #f0fff4;
}

/* ===== リセット & 全体レイアウト ===== */
html {
	scroll-behavior: smooth;
}

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

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

a {
	text-decoration: none;
	color: inherit;
	transition: all 0.2s ease;
}

/* 改行のコントロール */
.sp-only { display: none; }
.pc-only { display: none; }

/* 古いサイトの文字色 */
.fc-red  { color: #d32f2f; }
.fc-blue { color: #1a73e8; }


/* ===== 共通ボタン ===== */
.btn-primary,
.btn-green,
.btn-secondary,
.btn-secondary-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	font-weight: bold;
	border: none;
	white-space: nowrap;
	line-height: 1.8;
	cursor: pointer;
	text-decoration: none !important;
	transition: all 0.25s ease;
}

.btn-primary {
	background-color: var(--accent-blue) !important;
	color: #fff !important;
}

.btn-primary:hover {
	background-color: var(accent-blue-hover) !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary,
.btn-secondary-outline,
.btn-outline {
	background: transparent;
	border: 2px solid #ccc;
	color: var(--text-main);
}

.btn-secondary:hover,
.btn-secondary-outline:hover,
.btn-outline:hover {
	border-color: var(--theme-color);
	color: var(--theme-color);
	background: #fff;
}

.btn-green {
	background-color: var(--accent-green) !important;
	color: #fff !important;
	border: none;
}

.btn-green:hover {
	background-color: var(--accent-green-hover) !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===== 共通タイトル ===== */
.section-title-center {
	text-align: center;
	position: relative;
	padding-bottom: 15px;
	margin: 20px 0;
	font-size: 1.7rem;
	font-weight: 700;
	color: var(--text-main);
}

.section-title-center::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 4px;
	background: var(--theme-color);
	border-radius: 2px;
}

.info-header {
	margin-bottom: 20px;
}

.info-header h2,
.info-header h3 {
	font-weight: 600;
	color: var(--text-main);
	margin: 0;
	position: relative;
	padding-bottom: 10px;
}

.info-header h2::after,
.info-header h3::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 50px;
	height: 3px;
	background-color: var(--accent-blue);
	border-radius: 2px;
}

.info-header h2 {
	font-size: 1.6rem;
}

.info-header h3 {
	font-size: 1.4rem;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to	 { opacity: 1; transform: translateY(0); }
}


/* ===== ヘッダー ===== */
header {
	width: 100%;
	background-color: rgba(255, 255, 255, 0.98);
	border-bottom: 1px solid var(--border-color);
	padding: 0;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
	max-width: 1100px;
	width: 100%;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}

/* 1行目：ロゴ＋CTAボタン */
.header-top-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0 0;
/*	border-bottom: 1px solid var(--border-color); */
}

.header-cta-buttons {
	display: flex;
	align-items: center;
	gap: 10px;
}

.btn-header-cta {
	padding: 8px 20px;
	font-size: 0.875rem;
/*	  border-radius: 6px; */
}

/* 2行目：ナビゲーション */
.header-nav-row {
	padding: 0;
}

.header-nav-row ul {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.header-nav-row ul li a {
	display: block;
	color: var(--text-main);
	font-size: 0.9rem;
	font-weight: 500;
	padding: 10px 16px;
	border-bottom: 2px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.header-nav-row ul li a:hover {
	color: var(--accent-blue);
	border-bottom-color: var(--accent-blue);
}

/* ロゴ */
.logo {
	margin: 0;
	padding: 0;
	line-height: 1;
}

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

.logo-text {
	font-size: 1.6rem;
	font-weight: bold;
	color: var(--text-main);
	letter-spacing: 0.05em;
	line-height: 1;
}

.logo-link {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none !important;
	color: inherit !important;
	transition: opacity 0.2s ease;
}

.logo-link:hover {
	opacity: 0.8;
}

/* ===== スマホ対応（768px以下） ===== */
@media (max-width: 768px) {
	.header-inner {
		padding: 0 15px;
	}

	/* 1行目：ロゴ */
	.header-top-row {
		padding: 10px 0;
		border-bottom: none;
	}

	.logo-text {
		font-size: 1.3rem;
	}

	.logo-image {
		height: 32px;
	}

	/* CTAボタン行（スマホでは2行目） */
	.header-cta-buttons {
		width: 100%;
		justify-content: flex-end;
		padding: 0 0 8px;
		gap: 8px;
		border-bottom: 1px solid var(--border-color);
	}

	.btn-header-cta {
		padding: 7px 14px;
		font-size: 0.8rem;
	}

	/* ナビメニュー行（スマホでは3行目） */
	.header-nav-row ul {
		justify-content: space-between;
		flex-wrap: wrap;
		gap: 0;
	}

	.header-nav-row ul li {
		flex: 1;
		text-align: center;
		min-width: 0;
	}

	.header-nav-row ul li a {
		padding: 8px 4px;
		font-size: 0.78rem;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		border-bottom: none;
		border-top: 1px solid var(--border-color);
	}

	/* スマホ: 1行目ロゴ＋2行目ボタンの並びを縦積みに */
	.header-top-row {
		flex-direction: column;
		align-items: center;
		gap: 0;
		padding-bottom: 0;
	}

	.header-cta-buttons {
		width: 100%;
		padding: 8px 0;
	}
}

/* ===== フッター ===== */
footer {
	background-color: #fff;
	border-top: 1px solid var(--border-color);
	padding-top: 40px;
}

.shop-info-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	padding-bottom: 60px;
}

.info-label {
	display: block;
	font-weight: bold;
	font-size: 0.95rem;
	margin-bottom: 10px;
	border-left: 3px solid var(--accent-blue);
	padding-left: 10px;
	color: var(--text-main);
}

.info-value {
	font-size: 0.9rem;
	color: var(--text-sub);
	line-height: 1.7;
	margin: 0;
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 30px 50px;
	border-top: 1px solid var(--border-color);
}

.footer-bottom p {
	margin: 0;
	font-size: 0.95rem;
	color: var(--text-sub);
}

.footer-links {
	display: flex;
	gap: 25px;
}

.footer-links a {
	font-size: 0.95rem;
	color: var(--text-sub);
	transition: color 0.2s ease;
}

.footer-links a:hover {
	color: var(--theme-color);
}

/* ===== 静的ページ専用スタイル ===== */
.page-header {
	text-align: center;
	position: relative;
	margin: 40px auto 20px;
}

.page-header h1 {
	font-size: 1.8rem;
	font-weight: 600;
	color: var(--text-main);
	margin: 0;
	position: relative;
	padding: 10px 0;
}

.page-header h1::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100px;
	height: 3px;
	background-color: var(--accent-blue);
	border-radius: 2px;
}

.page-header p {
	color: var(--text-sub);
	font-size: 0.95rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
