/* =============================================================================
   04-frontpage.css
   フロントページ（front-page.php）のセクション群。
   メインビジュアル / カテゴリ / 商品グリッド / タブ / 価格比較表 /
   特長 / 会社案内 / サイズ比較 / フッターCTA。
   ============================================================================= */

@layer frontpage {

	/* ==========================================================================
	   Main Visual
	   ========================================================================== */
	.mv-section {
		background: linear-gradient(to right, #f4f7fa 62%, #ffffff 62%);
		padding-top: 40px;
		position: relative;
	}
	/* mv_bana_pc.jpg のブルー系トーンに合わせた背景。
	   トークン --hero-bg（#eef5f8）を採用 — ポリ袋の透明感あるブルーに馴染ませる。 */
	.mv-section2 {
		background-color: var(--hero-bg);
		position: relative;
	}
	.mv-container {
		max-width: 1240px;
		margin: 0 auto;
		padding: 0;
		text-align: center;

		img { display: block; width: 100%; height: auto; }
	}
	.mv-flex {
		align-items: center;
		min-height: 400px;

		@media (max-width: 1024px) { flex-direction: column; text-align: center; }
	}
	.mv-text-content {
		flex: 1;
		text-align: left;

		@media (max-width: 1024px) { text-align: center; margin-bottom: 30px; }
	}
	.mv-badge {
		display: inline-block;
		border: 1px solid var(--color-primary);
		color: var(--color-primary);
		padding: 3px 10px;
		font-size: 13px;
		font-weight: bold;
		margin-bottom: 20px;
	}
	.mv-copy {
		font-size: 40px;
		line-height: 1.3;
		color: #333;
		margin-bottom: 20px;

		@media (max-width: 600px) { font-size: 28px; }

		span { color: #f24e00; }
	}
	.mv-lead { font-size: 15px; line-height: 1.6; color: #333; }

	.mv-image-area {
		flex: 1;
		text-align: right;

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

	.mv-feature-grid {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 15px;
		margin-top: -50px;
		padding-bottom: 50px;
		width: 100%;

		@media (max-width: 1024px) { grid-template-columns: repeat(2, 1fr); margin-top: 20px; }
	}
	.feat-box {
		background: #fff;
		padding: 20px 10px;
		border-radius: 8px;
		box-shadow: 0 10px 25px rgba(0,0,0,0.05);
		text-align: center;

		i { font-size: 28px; color: var(--color-primary); margin-bottom: 10px; }
	}
	.feat-label { font-size: 12px; font-weight: bold; margin-bottom: 5px; line-height: 1.3; }
	.feat-val {
		color: #f24e00;
		font-weight: bold;
		font-size: 14px;

		span { font-size: 26px; }
	}

	/* ==========================================================================
	   Bag Types Banner（MV直下の3カラム）
	   ========================================================================== */
	.bag-types-section {
		background: #f7f9fc;
		border-top: 1px solid var(--color-accent-border);
		border-bottom: 1px solid var(--color-accent-border);
		padding: 28px 0;

		@media (max-width: 1024px) { padding: 30px 0; }
	}

	/* ==========================================================================
	   お知らせ（4連バナーと「形状・サイズで選ぶ」の間）
	   親テーマ 07-product.css はトップページでは読み込まれないため、ここで当てる。
	   notice.php は内側に .container を持つフルブリード構造。上の bag-types-section と
	   同じく帯状にし、フルブリードのため左ボーダーは出さず上下のヘアラインで区切る。
	   ========================================================================== */
	.product-notice {
		background: #fff8f3;
		border-top: 1px solid var(--color-accent-border);
		border-bottom: 1px solid var(--color-accent-border);
		padding: 24px 0;

		.product-notice-heading {
			margin: 0 0 8px;
			font-size: 14px;
			font-weight: 700;
		}
		.product-notice-body {
			font-size: 13px;
			line-height: 1.8;

			p { margin: 0 0 6px; }
			p:last-child { margin-bottom: 0; }
		}
	}

	/* 4連バナーは左右余白をなくして 1240px 幅いっぱいに広げる。
	   ヘッダー共通の .header-container (@layer layout) を流用しているため、
	   ここ (@layer frontpage) で上書きしてこのセクション内だけ余白を消す。 */
	.bag-types-section .header-container {
		padding: 0;

		/* 1カラムに切り替わる幅ではカードが画面端に貼り付かないよう左右ガターを残す */
		@media (max-width: 1024px) { padding: 0 16px; }
	}

	.bag-types-grid {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 16px;
		width: 100%;

		@media (max-width: 1024px) { grid-template-columns: 1fr; gap: 16px; }
	}
	.bag-type-card {
		background: #fff;
		border: 1px solid var(--color-accent-border);
		border-radius: 6px;
		display: flex;
		align-items: stretch;
		overflow: hidden;
		text-decoration: none;
		color: inherit;
		transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;

		&:hover {
			transform: translateY(-3px);
			box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
			border-color: var(--color-secondary);

			.bag-type-arrow { background: var(--color-primary); }
		}
	}
	.bag-type-content {
		flex: 1;
		padding: 14px 18px;
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 4px;
		min-width: 0;
	}
	.bag-type-lead {
		font-size: 13px;
		color: #333;
		margin: 0;
		line-height: 1.4;

		.hl { color: var(--color-primary); font-weight: bold; }
	}
	.bag-type-title {
		font-size: 15px;
		font-weight: bold;
		color: var(--color-primary);
		margin: 0;
		letter-spacing: 0.02em;
	}
	.bag-type-image {
		width: 90px;
		flex-shrink: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 6px;

		img {
			max-width: 100%;
			max-height: 70px;
			height: auto;
			object-fit: contain;
		}
	}
	.bag-type-arrow {
		background: var(--color-secondary);
		color: #fff;
		width: 28px;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
		font-size: 12px;
		transition: background-color 0.3s ease;
	}

	/* ==========================================================================
	   フルブリード背景（container制約のセクションに帯背景を敷く）
	   ========================================================================== */
	.tab-section,
	.pricing-comparison-section {
		background: #f7f9fc;
		box-shadow: 0 0 0 100vmax #f7f9fc;
		clip-path: inset(0 -100vmax);
		padding: 60px 20px;
	}
	.size-comparison-section { background: #f7f9fc; padding: 60px 0; }

	/* ==========================================================================
	   セクション見出し（フロントページ用）
	   ========================================================================== */
	.section-title {
		text-align: center;
		font-size: 24px;
		margin-bottom: 40px;
	}

	.section-banner {
		max-width: 1240px;
		margin: 0 auto 30px;
		text-align: center;

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

	.section-footer { text-align: center; }
	.btn-round-outline {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 12px 60px;
		border: 1px solid var(--color-primary);
		border-radius: 50px;
		color: var(--color-primary);
		text-decoration: none;
		font-weight: bold;
		font-size: 16px;
		transition: all 0.3s;

		@media (max-width: 600px) { width: 100%; padding: 12px 20px; }

		&:hover { background-color: var(--color-primary); color: #fff; }

		span { margin-left: 10px; font-size: 18px; }
	}

	/* ==========================================================================
	   Category
	   ========================================================================== */
	.category-grid {
		display: grid;
		grid-template-columns: repeat(5, 1fr);
		gap: 15px;
		margin-bottom: 40px;

		@media (max-width: 1024px) { grid-template-columns: repeat(3, 1fr); }
		@media (max-width: 600px) { grid-template-columns: repeat(2, 1fr); }
	}
	.category-card {
		border: 1px solid var(--color-accent-border);
		border-radius: 8px;
		overflow: hidden;
		text-align: center;
		background: #fff;
		transition: transform 0.2s ease-in-out;

		&:hover {
			transform: translateY(-3px);
			box-shadow: 0 5px 15px rgba(0,0,0,0.05);
		}
	}
	.category-img {
		height: 140px;
		background-color: #fff;
		border-bottom: none;
	}
	.category-name {
		background-color: #fff;
		padding: 12px 5px;
		font-size: 14px;
		font-weight: bold;
		color: var(--color-primary);
		margin: 0;
		border-top: 1px solid var(--color-accent-border);
	}

	/* ==========================================================================
	   フロントページ：タブUI（main.js が制御）
	   ========================================================================== */
	.tab-menu {
		display: flex;
		justify-content: center;
		border-bottom: 2px solid #dcdcdc;
		margin-bottom: 30px;
	}
	.tab-btn {
		flex: 1 1 0;
		min-width: 0;
		padding: 15px 30px;
		/* 非アクティブも視認できるよう、ブランド系の淡ブルー地＋濃いめ文字＋
		   ブランドカラー寄りの枠線で「カード」感を持たせる。
		   アクティブの白タブとは色相で差別化し、メリハリは維持。 */
		border: 2px solid var(--color-accent-border);
		border-bottom: none;
		background: var(--color-accent-soft);
		cursor: pointer;
		font-weight: bold;
		color: var(--color-secondary);
		transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
		border-radius: 8px 8px 0 0;
		margin: 0 2px;
		font-family: inherit;
		font-size: 14px;

		&:hover {
			background: #d5e9f9;
			color: var(--color-primary);
			border-color: #9cc3ea;
		}
		&.active {
			background: #fff;
			color: var(--color-primary);
			border-color: #dcdcdc;
			border-top: 3px solid var(--color-primary);
			margin-bottom: -2px;
			padding-top: 14px;
		}
	}

	.tab-panel {
		display: none;

		&.active {
			display: block;
			animation: tabFadeIn 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);

			&.is-leaving { animation: tabFadeOut 0.18s ease forwards; }
		}
	}

	@keyframes tabFadeIn {
		from { opacity: 0; transform: translateY(6px); }
		to   { opacity: 1; transform: translateY(0); }
	}
	@keyframes tabFadeOut {
		from { opacity: 1; transform: translateY(0); }
		to   { opacity: 0; transform: translateY(-4px); }
	}

	.tab-footer-link {
		text-align: center;
		margin-top: 30px;

		a {
			display: inline-flex;
			align-items: center;
			justify-content: center;
			padding: 12px 60px;
			border: 1px solid var(--color-primary);
			border-radius: 50px;
			color: var(--color-primary);
			background: #fff;
			text-decoration: none;
			font-weight: bold;
			font-size: 16px;
			transition: all 0.3s;

			@media (max-width: 600px) { width: 100%; padding: 12px 20px; }

			&:hover { background-color: var(--color-primary); color: #fff; }

			span { margin-left: 10px; font-size: 18px; }
		}
	}

	/* ==========================================================================
	   Product Grid / Card（フロントページ・タブ内）
	   ========================================================================== */
	.product-grid {
		display: grid;
		grid-template-columns: repeat(5, 1fr);
		gap: 12px;
		margin-top: 20px;
		align-items: stretch;

		@media (max-width: 1024px) { grid-template-columns: repeat(3, 1fr); }
		@media (max-width: 600px) { grid-template-columns: repeat(2, 1fr); }
	}
	.product-card {
		border: 1px solid #e5e5e5;
		border-radius: 6px;
		padding: 15px 10px;
		position: relative;
		text-align: center;
		background: #fff;
		display: flex;
		flex-direction: column;

		h3 { font-size: 16px; margin: 5px 0 2px; }
	}
	.badge-circle {
		position: absolute;
		top: 10px;
		left: 10px;
		width: 48px;
		height: 48px;
		border-radius: 50%;
		color: #fff;
		font-size: 10px;
		font-weight: bold;
		display: flex;
		align-items: center;
		justify-content: center;
		line-height: 1.2;
		z-index: 5;
		box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	}
	.badge-orange { background-color: #f24e00; }
	.badge-brown  { background-color: #a67c52; }
	.badge-blue   { background-color: var(--color-primary); }

	.product-img {
		height: 140px;
		margin: 10px auto;
		background-color: #f0f0f0;
		width: 100%;
	}
	.size-text { font-size: 11px; color: #777; margin-bottom: 10px; }

	.info-tags {
		display: flex;
		justify-content: center;
		gap: 4px;
		margin-bottom: 15px;
	}
	.tag {
		font-size: 10px;
		background: #fff;
		border: 1px solid #ddd;
		padding: 2px 4px;
		border-radius: 2px;
		color: #333;
		display: flex;
		align-items: center;
		gap: 3px;
	}

	.price-box {
		margin-top: auto;
		color: var(--color-primary);
		margin-bottom: 15px;

		.currency { font-size: 14px; margin-right: 2px; }
		.amount   { font-size: 24px; font-weight: bold; }
		.suffix   { font-size: 16px; }
	}
	.tax-info { font-size: 10px; color: #888; margin-top: -5px; }

	.btn-order {
		background-color: #f24e00;
		color: #fff;
		text-decoration: none;
		font-weight: bold;
		font-size: 13px;
		padding: 10px 5px;
		border-radius: 4px;
		transition: 0.2s;
		display: block;

		&:hover { background-color: #d64500; }
	}

	/* ==========================================================================
	   Pricing Comparison Table（料金比較表）
	   ========================================================================== */
	.pricing-comparison-section {
		max-width: 1240px;
		margin: 60px auto;
	}
	.comparison-table-wrapper { padding: 20px 10px; overflow-x: auto; }
	.comparison-table {
		width: 100%;
		border-collapse: separate;
		border-spacing: 0;
		background: #fff;
		border: 1px solid #e0e0e0;
		border-radius: 12px;
		table-layout: fixed;

		th, td {
			padding: 20px 10px;
			text-align: center;
			border-bottom: 1px solid #e0e0e0;
			border-right: 1px solid #e0e0e0;
			font-size: 14px;
			vertical-align: middle;
		}
		tr:last-child td { border-bottom: none; }
		th:last-child, td:last-child { border-right: none; }
		th span { font-size: 10px; font-weight: normal; }

		th .lineup-name {
			display: block;
			font-size: inherit;
			font-weight: inherit;
			line-height: 1.35;
			margin-bottom: 10px;
		}
		th .lineup-img-wrap {
			display: flex;
			align-items: center;
			justify-content: center;
			width: 100%;
			height: 120px;
			margin: 0 auto 12px;
		}
		th .lineup-img {
			display: block;
			max-width: 160px;
			max-height: 100%;
			width: auto;
			height: auto;
			object-fit: contain;
		}
		th .lineup-link { margin-top: 4px; }
	}

	.row-label {
		background: #fcfcfc;
		font-weight: bold;
		width: 140px;
	}

	.col-highlight {
		background: #fffafa !important;
		position: relative;
		z-index: 2;
		border-left: 3px solid #f24e00 !important;
		border-right: 3px solid #f24e00 !important;
		box-shadow: 0 8px 20px rgba(242, 78, 0, 0.12);
	}
	th.col-highlight {
		border-top: 3px solid #f24e00 !important;
		padding-top: 30px !important;
		font-size: 18px;
		color: #f24e00;
	}
	td.col-highlight.footer-hl { border-bottom: 3px solid #f24e00 !important; }

	.recommend-badge-fixed {
		position: absolute;
		top: -18px;
		left: 50%;
		transform: translateX(-50%);
		background: linear-gradient(to bottom, #ff8c5a, #f24e00);
		color: #fff;
		padding: 4px 24px;
		border-radius: 30px;
		font-size: 12px;
		font-weight: bold;
		white-space: nowrap;
		border: 2px solid #fff;
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	}

	.price-hl    { color: #f24e00 !important; font-weight: 800 !important; font-size: 1.3em; }
	.deadline-hl { color: #f24e00 !important; font-weight: 800 !important; text-decoration: underline; }
	.feat-hl     { color: #f24e00 !important; font-weight: 800 !important; }

	.color-brown { border-top: 4px solid #bda07b; }
	.color-blue  { border-top: 4px solid #7ea1c4; }
	.color-green { border-top: 4px solid #8fc9ad; }

	.lineup-link-row td { padding-top: 18px; padding-bottom: 22px; }
	.lineup-link {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 160px;
		padding: 6px 22px;
		border: 1.5px solid currentColor;
		border-radius: 999px;
		font-size: 12px;
		font-weight: bold;
		letter-spacing: 0.02em;
		text-decoration: none;
		background: #fff;
		transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;

		&:hover {
			box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
			transform: translateY(-1px);

			span { transform: translateX(3px); }
		}
		span { margin-left: 4px; transition: transform 0.25s ease; }

		&--primary {
			color: #fff;
			background: #f24e00;
			border-color: #f24e00;

			&:hover { background: #d64500; border-color: #d64500; color: #fff; }
		}
		&--brown {
			color: #a07e4f;
			&:hover { background: #a07e4f; color: #fff; }
		}
		&--blue {
			color: #4a7ba6;
			&:hover { background: #4a7ba6; color: #fff; }
		}
		&--green {
			color: #4d9b73;
			&:hover { background: #4d9b73; color: #fff; }
		}
	}

	.table-note { font-size: 12px; color: #888; margin-top: 15px; text-align: center; }

	/* ==========================================================================
	   特長（4つの理由）
	   ========================================================================== */
	.reasons-section {
		position: relative;
		max-width: 1240px;
		padding: 60px 20px;
		isolation: isolate;

		&::before {
			content: "";
			position: absolute;
			top: 0;
			bottom: 0;
			left: 50%;
			transform: translateX(-50%);
			width: 100vw;
			background: #fbfae4;
			z-index: -1;
		}
	}
	.reasons-grid {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 24px;
		background: transparent;
		padding: 20px 0 30px;
		text-align: left;

		@media (max-width: 1024px) { grid-template-columns: repeat(2, 1fr); }
		@media (max-width: 600px) { grid-template-columns: 1fr; }
	}
	.reason-item {
		display: flex;
		align-items: flex-start;
		gap: 15px;
		background: #fff;
		padding: 20px 18px;
		box-shadow: 4px 4px 0 #d5d3bc;
	}
	.reason-icon { font-size: 24px; color: var(--color-secondary); min-width: 40px; }
	.reason-text {
		h3 { font-size: 16px; margin-bottom: 5px; }
		p  { font-size: 13px; line-height: 1.4; }
	}

	/* ==========================================================================
	   About Block（あいさつ）
	   ========================================================================== */
	.about-block {
		background: url('../images/bg_01.png') no-repeat center center;
		background-size: cover;
		padding: 60px 0;
		margin: 60px 0 0;

		@media (max-width: 600px) { padding: 40px 0; }

		> .container {
			max-width: 1240px;
			margin: 0 auto;
			padding: 0 20px;
			text-align: left;
		}
		.about-box {
			background: rgba(255, 255, 255, 0.9);
			padding: 40px 50px 30px;
			border-radius: 12px;
			box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);

			@media (max-width: 600px) { padding: 24px 20px; }
		}
		.title {
			font-size: 26px;
			font-weight: bold;
			line-height: 1.5;
			margin: 0 0 30px;
			text-align: center;
			color: #333;

			@media (max-width: 600px) { font-size: 20px; margin-bottom: 20px; }

			.strong {
				color: var(--color-primary);
				font-size: 36px;

				@media (max-width: 600px) { font-size: 26px; }
			}
		}
		.about-text {
			p {
				font-size: 14px;
				line-height: 1.9;
				color: #444;
				margin: 0 0 1.5rem;

				@media (max-width: 600px) { font-size: 13px; line-height: 1.85; }

				&:last-child { margin-bottom: 0; }
			}
			strong { color: #222; }
			a {
				color: var(--color-primary);
				text-decoration: underline;

				&:hover { color: #c0400a; }
			}
		}
	}

	/* ==========================================================================
	   Size Comparison
	   ========================================================================== */
	.size-comparison-section { padding: 30px 0; }
	.size-comparison-box {
		background: #fff;
		border: 1px solid #eee;
		border-radius: 10px;
		padding: 40px;
		position: relative;
		margin-top: 50px;
	}
	.size-label-circle {
		position: absolute;
		top: -25px;
		left: 40px;
		width: 70px;
		height: 70px;
		background: #fff;
		border: 2px solid var(--color-secondary);
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		font-weight: bold;
		color: var(--color-secondary);
		text-align: center;
		font-size: 14px;
	}
	.comparison-flex {
		display: flex;
		align-items: flex-end;
		justify-content: space-around;

		@media (max-width: 768px) { flex-direction: column; align-items: center; text-align: center; }
	}
	.model-view { text-align: center; }
	.model-img { width: 150px; height: 250px; }
	.model-caption { font-size: 12px; margin-top: 10px; }

	.bag-list {
		display: flex;
		align-items: flex-end;
		gap: 20px;
		flex: 1;
		justify-content: space-around;

		@media (max-width: 768px) {
			flex-direction: column;
			align-items: center;
			text-align: center;
			gap: 40px;
			margin-top: 40px;
		}
	}
	.bag-item { text-align: center; }
	.bag-name { display: block; font-weight: bold; font-size: 18px; }
	.bag-w    { display: block; font-size: 12px; margin-bottom: 10px; }
	.bag-img-s  { width: 60px;  height: 80px;  }
	.bag-img-m  { width: 80px;  height: 100px; }
	.bag-img-l  { width: 80px;  height: 130px; }
	.bag-img-ll { width: 100px; height: 140px; }
	.bag-img-a4 { width: 70px;  height: 95px;  }
	.unit-text  { text-align: right; font-size: 12px; color: #999; margin-top: 10px; }

	/* ==========================================================================
	   Footer CTA
	   ========================================================================== */
	.footer-cta-section { padding: 60px 0; background: #fff; }
	.cta-flex {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 40px;
		text-align: left;

		@media (max-width: 768px) { flex-direction: column; align-items: center; text-align: center; }
	}
	.cta-left {
		h2 { font-size: 24px; margin-bottom: 10px; }
		p  { font-size: 14px; color: #555; }
	}
	.cta-btns { display: flex; gap: 15px; margin-top: 25px; }

	.btn-outline {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		padding: 12px 30px;
		border: 1px solid var(--color-primary);
		color: var(--color-primary);
		border-radius: 30px;
		text-decoration: none;
		font-weight: bold;
		font-size: 14px;

		&:hover { background: var(--color-primary); color: #fff; }
	}
	.btn-primary {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		padding: 12px 30px;
		background: #f24e00;
		color: #fff;
		border-radius: 30px;
		text-decoration: none;
		font-weight: bold;
		font-size: 14px;

		&:hover { background: #d64500; }
	}

	.blue-tag {
		color: var(--color-secondary);
		font-weight: bold;
		border-left: 3px solid var(--color-secondary);
		padding-left: 10px;
		margin-bottom: 10px;
	}
	.operator-box { display: flex; align-items: center; gap: 20px; }
	.operator-img {
		width: 120px;
		height: 120px;
		border-radius: 50%;
		overflow: hidden;
		flex-shrink: 0;

		img { width: 100%; height: 100%; object-fit: cover; display: block; }
	}

	/* ==========================================================================
	   Ranking Section（人気ランキング・5商品グリッド）
	   ========================================================================== */
	.ranking-section { padding: 60px 0; }

	.ranking-grid {
		display: grid;
		grid-template-columns: repeat(5, 1fr);
		gap: 16px;
		list-style: none;
		padding: 0;
		margin: 0;

		@media (max-width: 1024px) { grid-template-columns: repeat(3, 1fr); }
		@media (max-width: 600px)  { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	}
	.ranking-card {
		background: #fff;
		border: 1px solid var(--color-accent-border);
		border-radius: 8px;
		padding: 16px 14px;
		text-align: center;
		display: flex;
		flex-direction: column;
		transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;

		&:hover {
			transform: translateY(-3px);
			box-shadow: 0 6px 16px rgba(0,0,0,0.08);
			border-color: var(--color-primary);
		}
	}
	.ranking-card-image {
		width: 100%;
		margin-bottom: 12px;

		img { width: 100%; height: auto; display: block; }
	}
	.ranking-card-name {
		font-size: 15px;
		font-weight: bold;
		color: var(--color-secondary);
		margin: 0 0 12px;
		line-height: 1.4;
		min-height: 2.8em;
		display: flex;
		align-items: center;
		justify-content: center;

		@media (max-width: 600px) { min-height: auto; font-size: 14px; }
	}
	.ranking-card-links {
		margin-top: auto;
		display: flex;
		flex-direction: column;
		gap: 6px;
	}
	.ranking-card-link {
		display: block;
		padding: 8px 10px;
		border: 1px solid var(--color-primary);
		border-radius: 4px;
		font-size: 12px;
		color: var(--color-primary);
		text-decoration: none;
		font-weight: 600;
		transition: background-color 0.2s ease, color 0.2s ease;

		&:hover { background: var(--color-primary); color: #fff; }
	}

	/* ==========================================================================
	   Results Section（制作事例ギャラリー：12件 + コーポレートバナー）
	   ========================================================================== */
	.results-section { padding: 60px 0; }

	.results-grid {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 20px;
		list-style: none;
		padding: 0;
		margin: 0 0 30px;

		@media (max-width: 1024px) { grid-template-columns: repeat(3, 1fr); }
		@media (max-width: 600px)  { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	}
	.result-card {
		background: #fff;
		border: 1px solid var(--color-border);
		border-radius: 8px;
		overflow: hidden;
		display: flex;
		flex-direction: column;
	}
	.result-card-thumb {
		display: block;
		aspect-ratio: 1/1;
		overflow: hidden;
		background: var(--color-surface-soft);

		img {
			width: 100%;
			height: 100%;
			object-fit: cover;
			display: block;
			transition: transform 0.4s ease;
		}

		&:hover img { transform: scale(1.05); }
	}
	.result-card-detail {
		padding: 12px;
		display: flex;
		flex-direction: column;
		flex: 1;
	}
	.result-card-meta {
		font-size: 12px;
		line-height: 1.6;
		color: #555;
		margin: 0 0 12px;
		flex: 1;
	}
	.result-card-actions {
		display: flex;
		gap: 6px;
		margin-top: auto;
	}
	.result-card-link {
		flex: 1;
		text-align: center;
		padding: 8px 4px;
		border: 1px solid var(--color-primary);
		border-radius: 4px;
		font-size: 12px;
		color: var(--color-primary);
		text-decoration: none;
		font-weight: 600;
		transition: background-color 0.2s ease, color 0.2s ease;

		&:hover { background: var(--color-primary); color: #fff; }

		&--cta {
			background: var(--color-primary);
			color: #fff;

			&:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); }
		}
	}
	.results-empty {
		text-align: center;
		color: var(--color-muted);
		padding: 40px 0;
	}

	.corporate-banner {
		text-align: center;
		margin: 40px 0 24px;

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

	/* ==========================================================================
	   Column Section（新着コラム：6件、横並び）
	   ========================================================================== */
	.column-section { padding: 60px 0; }

	.column-list {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 20px 28px;
		list-style: none;
		padding: 0;
		margin: 0 0 30px;

		@media (max-width: 600px) { grid-template-columns: 1fr; gap: 16px; }
	}
	.column-item {
		display: flex;
		gap: 14px;
		align-items: flex-start;
	}
	.column-thumb {
		flex-shrink: 0;
		width: 90px;
		aspect-ratio: 1/1;
		overflow: hidden;
		border-radius: 4px;
		background: var(--color-surface-soft);

		img { width: 100%; height: 100%; object-fit: cover; display: block; }
	}
	.column-body {
		flex: 1;
		min-width: 0;
		display: flex;
		flex-direction: column;
		gap: 4px;
	}
	.column-date {
		font-size: 12px;
		color: var(--color-muted);
	}
	.column-title-link {
		font-size: 14px;
		font-weight: 600;
		color: var(--color-secondary);
		text-decoration: none;
		line-height: 1.5;

		&:hover { color: var(--color-primary); text-decoration: underline; }
	}
	.column-empty {
		text-align: center;
		color: var(--color-muted);
		padding: 40px 0;
	}

	/* ==========================================================================
	   Reasons Section（選ばれる理由・4カラム）— 紙袋テーマと同構造
	   ========================================================================== */
	.reasons-section {
		position: relative;
		max-width: 1240px;
		padding: 60px 20px;
		isolation: isolate;

		&::before {
			content: "";
			position: absolute;
			top: 0;
			bottom: 0;
			left: 50%;
			transform: translateX(-50%);
			width: 100vw;
			background: #fbfae4;
			z-index: -1;
		}
	}
	.reasons-grid {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 24px;
		background: transparent;
		padding: 20px 0 30px;
		text-align: left;

		@media (max-width: 1024px) { grid-template-columns: repeat(2, 1fr); }
		@media (max-width: 600px)  { grid-template-columns: 1fr; }
	}
	.reason-item {
		display: flex;
		align-items: flex-start;
		gap: 15px;
		background: #fff;
		padding: 20px 18px;
		box-shadow: 4px 4px 0 #d5d3bc;
	}
	.reason-icon { font-size: 24px; color: var(--color-secondary); min-width: 40px; }
	.reason-text {
		h3 { font-size: 16px; margin-bottom: 5px; }
		p  { font-size: 13px; line-height: 1.4; }
	}

	/* ==========================================================================
	   About Block（あいさつ）— 紙袋テーマと同構造
	   ========================================================================== */
	.about-block {
		background: url('../images/bg_01.png') no-repeat center center;
		background-size: cover;
		padding: 60px 0;
		margin: 60px 0 0;

		@media (max-width: 600px) { padding: 40px 0; }

		> .container {
			max-width: 1240px;
			margin: 0 auto;
			padding: 0 20px;
			text-align: left;
		}
		.about-box {
			background: rgba(255, 255, 255, 0.9);
			padding: 40px 50px 30px;
			border-radius: 12px;
			box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);

			@media (max-width: 600px) { padding: 24px 20px; }
		}
		.title {
			font-size: 26px;
			font-weight: bold;
			line-height: 1.5;
			margin: 0 0 30px;
			text-align: center;
			color: #333;

			@media (max-width: 600px) { font-size: 20px; margin-bottom: 20px; }

			.strong {
				color: var(--color-primary);
				font-size: 36px;

				@media (max-width: 600px) { font-size: 26px; }
			}
		}
		.about-text {
			p {
				font-size: 14px;
				line-height: 1.9;
				color: #444;
				margin: 0 0 1.5rem;

				@media (max-width: 600px) { font-size: 13px; line-height: 1.85; }

				&:last-child { margin-bottom: 0; }
			}
			strong { color: #222; }
			a {
				color: var(--color-primary);
				text-decoration: underline;

				&:hover { color: #c0400a; }
			}
		}
	}

	/* ==========================================================================
	   Poly Bag Frontpage 固有スタイル
	   ========================================================================== */

	/* ----- 4連バナーNav（紙袋・不織布は3列、ポリ袋は4列）----- */
	.bag-types-grid--4col {
		grid-template-columns: repeat(4, 1fr);

		@media (max-width: 1024px) { grid-template-columns: repeat(2, 1fr); }
		@media (max-width: 600px)  { grid-template-columns: 1fr; }
	}

	/* ----- ポリ袋のサイズで選ぶ ----- */
	.plb-size-section { padding: 60px 0; }

	.plb-size-grid {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 1rem;

		@media (max-width: 1024px) { grid-template-columns: repeat(3, 1fr); }
		@media (max-width: 600px)  { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
	}
	.plb-size-card {
		position: relative;
		background: #fff;
		border: 1px solid var(--color-border);
		border-radius: 8px;
		overflow: hidden;
		text-decoration: none;
		color: inherit;
		display: flex;
		flex-direction: column;
		transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;

		&:hover {
			transform: translateY(-3px);
			box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
			border-color: var(--color-accent);

			.plb-size-name { color: var(--color-accent-dark); }
		}

		/* 人気ランクのカードはメダル色と合わせて枠を強調 */
		&.is-rank1 { border-color: #f5a623; }
		&.is-rank2 { border-color: #a9bccf; }
	}

	/* 人気ランキングのメダルアイコン — 商品画像の左上に重ねる
	   画像（medal-no1.png / medal-no2.png）を直接 <img class="plb-size-rank"> で配置する。
	   CSS 側は位置・サイズ・浮き上がりの影だけを担当。 */
	.plb-size-rank {
		position: absolute;
		top: 10px;
		left: 10px;
		z-index: 3;
		width: 56px;
		height: 56px;
		object-fit: contain;
		pointer-events: none;                              /* カードリンクのクリックを遮らない */
		filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.22)); /* 透過 PNG のフチに合わせて浮かせる */

		@media (max-width: 600px) {
			width: 44px;
			height: 44px;
			top: 6px;
			left: 6px;
		}
	}
	.plb-size-thumb {
		aspect-ratio: 4 / 3;
		background: var(--color-surface-soft);
		display: flex;
		align-items: center;
		justify-content: center;
		overflow: hidden;

		img {
			width: 100%;
			height: 100%;
			object-fit: contain;
			transition: transform 0.4s ease;
		}

		.plb-size-card:hover & img { transform: scale(1.04); }
	}
	.plb-size-name {
		font-size: 0.95rem;
		font-weight: 700;
		color: var(--color-secondary);
		text-align: center;
		padding: 0.85rem 0.5rem;
		margin: 0;
		transition: color 0.25s ease;

		@media (max-width: 600px) { font-size: 0.85rem; padding: 0.7rem 0.4rem; }
	}

	/* ----- サイズタブ：「ポリ袋のサイズで選ぶ」（形状タブ + サイズグリッド） -----
	   .tab-section（全幅バンド背景 + tab JS）+ .plb-size-grid を組み合わせ、
	   形状ごとにサイズカードを切替表示する。 */
	.plb-size-tabs {
		.section-lead {
			text-align: center;
			color: var(--color-muted);
			font-size: 14px;
			margin: -20px 0 30px;
		}

		.tab-menu { margin-bottom: 30px; }

		/* タブ内のグリッドはセクション上下余白を持たないので軽く整える */
		.tab-panel .plb-size-grid { margin-top: 0; }
	}

	/* 「人気No.1」等を size-name に並べる小バッジ */
	.plb-size-badge {
		display: inline-block;
		margin-left: 0.4em;
		padding: 2px 8px;
		background: var(--color-accent);
		color: #fff;
		font-size: 0.65em;
		font-weight: 700;
		border-radius: 999px;
		vertical-align: middle;
		letter-spacing: 0.04em;
	}

	/* ----- シーン別のお勧めポリ袋プラン（4 カード 2x2 グリッド + 各カード内部 2 カラム）----- */
	.plb-scenes-section {
		padding: 60px 0;

		.section-lead {
			text-align: center;
			color: var(--color-muted);
			font-size: 14px;
			margin: -20px 0 30px;
		}
	}

	.plb-scenes-grid {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem;

		@media (max-width: 1024px) { gap: 1.25rem; }
		@media (max-width: 768px)  { grid-template-columns: 1fr; }
	}

	/* カード：左画像 / 右テキスト+アイコン+ボタン の横並び（PC・タブレット）
	   HTML は body→image の順だが、image を order:-1 で先頭に回して左配置にする。 */
	.plb-scene-card {
		display: grid;
		grid-template-columns: 220px 1fr;
		min-height: 200px;
		background: #fff;
		border: 1px solid var(--color-accent-border);
		border-radius: 12px;
		overflow: hidden;
		text-decoration: none;
		color: inherit;
		transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;

		&:hover {
			transform: translateY(-3px);
			box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
			border-color: var(--color-accent);

			.plb-scene-image img { transform: scale(1.05); }
			.plb-scene-link { color: var(--color-accent-dark); }
			.plb-scene-link span { transform: translateX(4px); }
		}

		.plb-scene-image { order: -1; }   /* DOM 順を覆して左カラムへ */

		@media (max-width: 600px) {
			grid-template-columns: 130px 1fr;
			min-height: 160px;
		}
		@media (max-width: 380px) {
			grid-template-columns: 1fr;
			min-height: 0;

			.plb-scene-image { aspect-ratio: 16 / 9; }
		}
	}

	.plb-scene-body {
		/* 上段: アイコン(auto) + タイトル(1fr) を横並び。
		   タイトル列は 1fr だがテキスト自体は左寄せなので、視覚的にはアイコンの
		   すぐ横にテキストがくる。
		   下段: リード文 / 最下段: リンク は grid-column:1/-1 で全幅。 */
		display: grid;
		grid-template-columns: auto 1fr;
		grid-template-rows: auto 1fr auto;
		column-gap: 0.35rem;
		row-gap: 0.5rem;
		padding: 1.4rem 1.5rem;

		@media (max-width: 600px) {
			padding: 1rem 1.1rem;
			column-gap: 0.3rem;
			row-gap: 0.4rem;
		}
	}

	.plb-scene-icon {
		/* 円のサイズを絞り、内側のアイコン字体を相対的に大きく見せる。
		   これで「丸の右端 → タイトル文字」の視覚的な距離が縮まる。 */
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 32px;
		height: 32px;
		border-radius: 50%;
		background: var(--color-accent-soft);
		color: var(--color-primary);
		font-size: 1rem;
		flex-shrink: 0;
		grid-column: 1;
		grid-row: 1;
		align-self: center;

		@media (max-width: 600px) {
			width: 28px;
			height: 28px;
			font-size: 0.9rem;
		}
	}

	.plb-scene-title {
		font-size: 1.05rem;
		font-weight: 700;
		color: var(--color-secondary);
		margin: 0;
		line-height: 1.4;
		grid-column: 2;
		grid-row: 1;
		align-self: center;

		@media (max-width: 600px) { font-size: 0.95rem; }
	}

	.plb-scene-lead {
		font-size: 0.85rem;
		line-height: 1.65;
		color: #555;
		margin: 0;
		grid-column: 1 / -1;   /* 全幅（アイコン側の列もまたぐ） */
		grid-row: 2;

		strong { color: var(--color-primary); font-weight: 700; }

		@media (max-width: 600px) { font-size: 0.78rem; line-height: 1.55; }
	}

	.plb-scene-link {
		font-size: 0.82rem;
		font-weight: 700;
		color: var(--color-primary);
		transition: color 0.25s ease;
		grid-column: 1 / -1;
		grid-row: 3;

		span {
			display: inline-block;
			margin-left: 0.25em;
			transition: transform 0.25s ease;
		}
	}

	.plb-scene-image {
		background: var(--color-accent-soft);
		overflow: hidden;

		img {
			width: 100%;
			height: 100%;
			object-fit: cover;
			display: block;
			transition: transform 0.4s ease;
		}
	}

	/* ----- ポリ袋プラン一覧（3カード）----- */
	.plb-plans-section { padding: 60px 0; }
	.plb-plans-grid {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 1.5rem;

		@media (max-width: 768px) { grid-template-columns: 1fr; }
	}
	.plb-plan-card {
		background: #fff;
		border: 1px solid var(--color-border);
		border-radius: 10px;
		overflow: hidden;
		text-decoration: none;
		color: inherit;
		display: flex;
		flex-direction: column;
		transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;

		&:hover {
			transform: translateY(-4px);
			box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
			border-color: var(--color-accent);
		}
	}
	.plb-plan-image {
		aspect-ratio: 16 / 9;
		background: var(--color-surface-soft);
		display: flex;
		align-items: center;
		justify-content: center;
		overflow: hidden;

		img { max-width: 70%; max-height: 80%; object-fit: contain; }
	}
	.plb-plan-body {
		padding: 1.25rem;
		display: flex;
		flex-direction: column;
		gap: 0.75rem;
		flex: 1;

		h3 {
			font-size: 1.15rem;
			color: var(--color-secondary);
			margin: 0;
		}
	}
	.plb-plan-tagline {
		font-size: 0.9rem;
		color: var(--color-muted);
		margin: 0;
		line-height: 1.6;

		strong { color: var(--color-accent-dark); }
	}
	.plb-plan-meta {
		list-style: none;
		padding: 0;
		margin: 0;
		display: flex;
		flex-direction: column;
		gap: 0.3rem;

		li {
			font-size: 0.82rem;
			color: #555;
			line-height: 1.6;

			/* ✓ とテキストを inline-flex で一塊にして中央寄せする */
			display: flex;
			align-items: baseline;
			justify-content: center;
			gap: 0.4em;

			&::before {
				content: "✓";
				color: var(--color-accent);
				font-weight: 700;
				flex: 0 0 auto;
			}
		}
	}
	.plb-plan-link {
		margin-top: auto;
		padding-top: 0.5rem;
		font-size: 0.9rem;
		font-weight: 700;
		color: var(--color-accent-dark);

		span { transition: transform 0.25s ease; display: inline-block; margin-left: 0.2em; }

		.plb-plan-card:hover & span { transform: translateX(4px); }
	}

}
