/* =========================================
   表紙作成ガイド リデザイン
   help.css 読み込み後に help_cover.css として読み込む前提
========================================= */

/* -----------------------------------------
   Base
----------------------------------------- */
.cover-guide-page {
	padding-bottom: 50px;
}

.guide-breadcrumb {
	margin-bottom: 20px;
	font-size: 14px;
	color: #666;
}

.guide-breadcrumb a {
	color: #333;
	text-decoration: none;
}

.guide-breadcrumb i {
	margin: 0 8px;
	color: #999;
}

.guide-shell {
	width: 100%;
}

/* -----------------------------------------
   Hero
----------------------------------------- */
.guide-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding: 42px 40px;
	border-radius: 24px;
	background: linear-gradient(135deg, #f7fbf7 0%, #e7f4e7 55%, #dff0e1 100%);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	margin-bottom: 24px;
}

.guide-hero__content {
	flex: 1;
	min-width: 280px;
}

.guide-hero__eyebrow {
	display: inline-block;
	margin-bottom: 12px !important;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(24, 115, 61, 0.08);
	color: #18733d;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.guide-hero__title {
	margin: 0 0 14px !important;
	font-size: 52px;
	line-height: 1.1;
	font-weight: 800;
	color: #166534;
}

.guide-hero__lead {
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	color: #2f3b33;
	font-size: 20px;
	line-height: 1.8;
}

.guide-hero__visual {
	flex: 0 0 380px;
	position: relative;
}

.hero-visual-card {
	padding: 18px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.8);
	border-radius: 20px;
	box-shadow: 0 10px 28px rgba(22, 101, 52, 0.10);
}

.hero-visual-card img {
	display: block;
	width: 100%;
	border-radius: 14px;
}

.hero-badge {
	position: absolute;
	width: 54px;
	height: 54px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: #fff;
	font-size: 22px;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.hero-badge--1 {
	top: 20px;
	left: -16px;
	background: #3faa60;
}

.hero-badge--2 {
	top: 40px;
	right: -10px;
	background: #2b77d1;
}

.hero-badge--3 {
	right: 10px;
	bottom: 12px;
	background: #47b16a;
}

/* -----------------------------------------
   Quick nav
----------------------------------------- */
.guide-quicknav {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}

.guide-quicknav__item {
	min-height: 76px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid #e4eaef;
	border-radius: 18px;
	color: #18733d;
	font-size: 22px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 5px 18px rgba(0, 0, 0, 0.04);
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.guide-quicknav__item:hover {
	transform: translateY(-2px);
	color: #14532d !important;
	background: #f8fcf9;
	text-decoration: none;
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.guide-quicknav__item i {
	font-size: 22px;
}

.guide-quicknav__item--blue {
	color: #2563eb;
}

.guide-quicknav__item--blue:hover {
	color: #1d4ed8 !important;
	background: #f8fbff;
}

/* -----------------------------------------
   Accordion / section
----------------------------------------- */
.modern-help-accordion {
	width: 100%;
	margin: 0;
}

.modern-help-accordion>h1 {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 18px 0 0 !important;
	padding: 18px 24px;
	background: #fff;
	color: #18733d;
	border: 1px solid #e6edf1;
	border-radius: 20px 20px 0 0;
	font-family: inherit;
	font-size: 28px;
	font-weight: 800;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.modern-help-accordion>h1:first-child {
	margin-top: 0 !important;
}

/* 既存 help.css の .accordion h1:hover { color: yellow; } を上書き */
.cover-guide-page .modern-help-accordion>h1:hover,
.cover-guide-page .modern-help-accordion>h1:hover span {
	color: #18733d !important;
	background: #fff !important;
}

.cover-guide-page .modern-help-accordion>h1:hover .guide-step {
	color: #fff !important;
}

.cover-guide-page .modern-help-accordion>h1:hover .guide-title-blue {
	color: #2563eb !important;
}

.guide-title-blue {
	color: #2563eb;
}

.guide-step {
	width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border-radius: 50%;
	background: #1e8a47;
	color: #fff;
	font-size: 22px;
	font-weight: 800;
}

.guide-step--blue {
	background: #2563eb;
}

.guide-section-body {
	display: block;
	margin-bottom: 18px;
	padding: 24px;
	background: #f9fbfc;
	border: 1px solid #e6edf1;
	border-top: 0;
	border-radius: 0 0 20px 20px;
}

.guide-card {
	padding: 22px;
	background: #fff;
	border: 1px solid #e6edf1;
	border-radius: 18px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.guide-card--soft {
	background: #fcfefd;
}

.guide-card--center {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

.guide-card__title {
	margin-bottom: 16px;
	color: #166534;
	font-size: 24px;
	font-weight: 800;
	text-align: left;
}

/* -----------------------------------------
   Section 1: cover size
----------------------------------------- */
.cover-size-grid {
	display: grid;
	grid-template-columns: 380px 1fr;
	align-items: start;
	gap: 20px;
}

.cover-size-grid>.guide-card {
	align-self: start;
}

.guide-form-box {
	padding: 20px;
	background: #f4faf5;
	border: 1px solid #d8e9db;
	border-radius: 16px;
}

.guide-form-list {
	margin-bottom: 0;
	padding-left: 0;
}

.guide-form-list li {
	margin-bottom: 20px;
	list-style: none;
}

.guide-inline-link {
	margin-left: 8px;
	font-size: 14px;
	font-weight: normal;
}

.guide-inline-link a {
	color: #2563eb;
}

/* 計算して表示ボタン */
.cover-guide-page .guide-btn-primary,
.cover-guide-page .guide-btn-primary:focus,
.cover-guide-page .guide-btn-primary:active {
	min-width: 220px;
	padding: 14px 22px;
	color: #fff !important;
	background: linear-gradient(135deg, #1f9a49 0%, #15753a 100%) !important;
	border: 0 !important;
	border-color: transparent !important;
	border-radius: 12px;
	box-shadow: none;
	font-size: 18px;
	font-weight: 700;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cover-guide-page .guide-btn-primary:hover {
	transform: translateY(-1px);
	color: #fff !important;
	background: linear-gradient(135deg, #23a954 0%, #176f3a 100%) !important;
	border-color: transparent !important;
	box-shadow: 0 8px 18px rgba(24, 115, 61, 0.22);
}

.cover-guide-page .guide-btn-primary:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(31, 154, 73, 0.18);
}

/* 左カラム補足カード 共通 */
.guide-side-note {
	margin-top: 20px;
	padding: 20px;
	border-radius: 18px;
	line-height: 1.8;
}

.guide-side-note__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.5;
}

.guide-side-note p {
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
}

/* Canvaカード */
.guide-note-box {
	background: #f8fbff;
	border: 1px solid #dce8f8;
	color: #1f2937;
}

.guide-note-box__title {
	color: #1f2937;
}

.canva-badge {
	display: inline-block;
	margin-right: 4px;
	padding: 6px 12px;
	border-radius: 999px;
	background: #14b8c4;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.3;
}

/* ご確認くださいカード */
.guide-attention-box {
	background: #fffaf0;
	border: 1px solid #f3d79b;
	color: #4b3b18;
}

.guide-attention-box__title {
	color: #8a5a00;
}

.guide-attention-box__title i {
	color: #d08a00;
}

.guide-attention-box ul {
	margin: 0;
	padding-left: 1.2em;
}

.guide-attention-box li {
	margin-bottom: 10px;
	font-size: 14px;
	line-height: 1.75;
}

.guide-attention-box li:last-child {
	margin-bottom: 0;
}

/* 旧 .tonbo_note を左カラムに残してもカード風に表示 */
.cover-size-grid>.guide-card:first-child .tonbo_note {
	margin: 20px 0 0 !important;
	padding: 20px !important;
	background: #fffaf0 !important;
	border: 1px solid #f3d79b;
	border-radius: 18px;
	color: #4b3b18;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.8;
}

/* 右側：計算結果 */
.guide-result-area {
	padding: 0 !important;
	background: transparent;
}

.guide-result-main-figure {
	margin-bottom: 22px;
	padding: 20px;
	background: #fff;
	border: 1px solid #e6edf1;
	border-radius: 16px;
	text-align: center;
}

.guide-result-main-figure #sizefig {
	margin: 0 auto;
}

.guide-result-main-figure img {
	width: 100%;
	max-width: 560px;
	height: auto;
}

.guide-result-main-figure .kakudai {
	margin-top: 12px !important;
	margin-bottom: 0 !important;
	font-size: 14px;
}

.guide-result-cards,
.guide-result-cards--below-figure {
	display: grid;
	grid-template-columns: 1.2fr 1.1fr 1fr;
	gap: 16px;
	margin-top: 0;
}

.guide-result-card {
	min-height: 150px;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid #e6edf1;
	border-radius: 16px;
}

.guide-result-card__label {
	margin-bottom: 10px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
}

.guide-result-card__value,
.guide-result-canva {
	background: transparent !important;
	font-size: 28px !important;
	line-height: 1.2 !important;
	font-weight: 800 !important;
}

.guide-result-card__value:empty::before {
	content: "計算後に表示";
	color: #9ca3af;
	font-size: 14px;
	font-weight: 600;
}

.guide-result-card__sub {
	margin-top: 10px !important;
	padding: 0 !important;
	background: transparent !important;
	font-size: 18px;
	font-weight: 600;
}

.guide-result-card__sub:empty {
	display: none;
}

.guide-result-card--red .guide-result-card__label,
.guide-result-card--red .guide-result-card__value,
.guide-result-card--red .guide-result-card__sub {
	color: #d64242;
}

.guide-result-card--orange .guide-result-card__label,
.guide-result-card--orange .guide-result-card__value,
.guide-result-card--orange .guide-result-card__sub {
	color: #eb7b18;
}

.guide-result-card--blue .guide-result-card__label,
.guide-result-card--blue .guide-result-card__value,
.guide-result-card--blue .guide-result-card__sub {
	color: #2563eb;
}

/* ガイド線 */
.guide-check-card {
	padding: 18px;
	background: #fff;
	border: 1px solid #e6edf1;
	border-radius: 16px;
}

.guide-check-card--wide {
	width: 100%;
}

.guide-check-card__title {
	margin-bottom: 14px;
	color: #166534;
	font-size: 20px;
	font-weight: 800;
}

.guide-line-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.guide-line-box {
	padding: 14px 16px;
	background: #f8fafc;
	border: 1px solid #e8eef4;
	border-radius: 12px;
}

.guide-line-box .hojyosen p {
	margin-bottom: 8px !important;
	line-height: 1.5;
}

.guide-mini-note {
	margin-top: 16px;
	padding: 10px 12px;
	background: #fff7e6;
	border-radius: 10px;
	color: #7c5a14;
	font-size: 14px;
	font-weight: 600;
}

.small-note {
	color: #666;
	font-size: 12px;
}

/* -----------------------------------------
   Section 2: specification
----------------------------------------- */
.guide-three-col {
	display: grid;
	grid-template-columns: 280px 1fr 360px;
	gap: 20px;
}

.guide-spec-table {
	border: 1px solid #e6edf1;
	border-radius: 14px;
	overflow: hidden;
}

.guide-spec-row {
	display: grid;
	grid-template-columns: 180px 1fr;
}

.guide-spec-row:not(:last-child) {
	border-bottom: 1px solid #e6edf1;
}

.guide-spec-row__head {
	padding: 16px;
	background: #f4f8fb;
	font-weight: 700;
}

.guide-spec-row__body {
	padding: 16px;
}

.guide-helper-text {
	display: block;
	margin-top: 6px;
	color: #6b7280;
	font-size: 13px;
	line-height: 1.6;
}

.guide-info-card {
	background: #f8fbff;
	border-color: #d8e6fb;
}

.guide-info-card__title {
	margin-bottom: 12px;
	color: #2563eb;
	font-size: 20px;
	font-weight: 800;
}

/* -----------------------------------------
   Section 3: data specification
----------------------------------------- */
.guide-data-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.guide-data-item {
	background: #fff;
	border: 1px solid #e6edf1;
	border-radius: 14px;
	overflow: hidden;
}

.guide-data-item__label {
	padding: 14px 16px;
	background: #f4f8fb;
	font-weight: 700;
}

.guide-data-item__value {
	padding: 16px;
	line-height: 1.8;
}

.guide-badge {
	display: inline-block;
	margin-left: 8px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	vertical-align: middle;
}

.guide-badge--danger {
	background: #ffe6e6;
	color: #d53939;
	border: 1px solid #f6b2b2;
}

.guide-badge--info {
	background: #e6f0ff;
	color: #2563eb;
	border: 1px solid #b9d2ff;
}

.guide-badge--muted {
	background: #f1f5f9;
	color: #64748b;
	border: 1px solid #d5dee8;
}

/* -----------------------------------------
   Section 4: tool links
----------------------------------------- */
.guide-tool-links {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.guide-tool-link {
	min-height: 92px;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid #e6edf1;
	border-radius: 18px;
	color: #1f2937;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
	transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.guide-tool-link:hover {
	transform: translateY(-2px);
	color: #111827;
	text-decoration: none;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.guide-tool-link--green {
	background: linear-gradient(135deg, #f3fbf5 0%, #ffffff 100%);
	border-color: #cfe8d6;
}

.guide-tool-link__icon {
	width: 54px;
	height: 54px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	background: #f4f8fb;
	border-radius: 14px;
	font-size: 28px;
}

.guide-tool-link--green .guide-tool-link__icon {
	background: #1c8b46;
	color: #fff;
}

.guide-tool-link__icon img {
	max-width: 36px;
	max-height: 36px;
}

.guide-tool-link__text {
	flex: 1;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
}

.guide-tool-link__arrow {
	color: #9ca3af;
	font-size: 20px;
}

/* -----------------------------------------
   Utility / help.css override
----------------------------------------- */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* 既存の .accordion p の余白・背景をこのページ内で抑える */
.guide-shell .accordion p,
.guide-shell .accordion .nuritasi_note,
.guide-shell .accordion .kakudai {
	padding: 0 !important;
	background: transparent !important;
}

.nuritasi_note {
	font-size: 0.9em !important;
}

/* =========================================
   計算結果カード：mm / Canva用 px の分離
========================================= */
.guide-result-mm {
	margin-top: 10px;
}

.guide-result-canva {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px dashed #e2e8f0;
}

.guide-result-canva__title {
	display: inline-block;
	margin-bottom: 8px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #14b8c4;
	border: 1px solid #14b8c4;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
}

/* px表示はmmより少し控えめに */
.guide-result-canva .guide-result-card__sub {
	margin-top: 0 !important;
	font-size: 18px;
	line-height: 1;
	color: #444 !important;
}

/* 未計算時はCanva用ブロックを薄く見せる */
.guide-result-card__sub:empty::before {
	content: "計算後に表示";
	color: #9ca3af;
	font-size: 14px;
	font-weight: 600;
}

/* -----------------------------------------
   表紙仕様：仕様表 + 確認カード
----------------------------------------- */
.guide-spec-layout {
	display: grid;
	grid-template-columns: minmax(520px, 1fr) 370px;
	gap: 20px;
	align-items: start;
}

/* -----------------------------------------
   入稿データ仕様：図 + 仕様
----------------------------------------- */
.guide-data-layout {
	display: grid;
	grid-template-columns: 0.5fr 1fr;
	gap: 20px;
	align-items: start;
}

.guide-data-figure {
	width: 100%;
}

.guide-data-figure img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

/* -----------------------------------------
   Responsive
----------------------------------------- */
@media screen and (max-width: 991px) {
	.guide-hero {
		flex-direction: column;
		align-items: flex-start;
		padding: 28px 24px;
	}

	.guide-hero__title {
		font-size: 38px;
	}

	.guide-hero__lead {
		font-size: 17px;
	}

	.guide-hero__visual {
		flex: 1 1 auto;
		width: 100%;
	}

	.guide-quicknav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cover-size-grid,
	.guide-three-col,
	.guide-spec-layout,
	.guide-data-layout,
	.guide-data-grid,
	.guide-tool-links,
	.guide-line-grid {
		grid-template-columns: 1fr;
	}

	.guide-result-cards,
	.guide-result-cards--below-figure {
		grid-template-columns: 1fr;
	}

	.modern-help-accordion>h1 {
		padding: 16px 18px;
		font-size: 26px;
	}

	.guide-section-body {
		padding: 16px;
	}

	.guide-result-card__value {
		font-size: 32px !important;
	}

	/* 製本表紙の仕様：スマホでは項目名と内容を縦並び */
	.guide-spec-row {
		grid-template-columns: 1fr;
	}

	.guide-spec-row__head {
		padding: 13px 14px;
		border-bottom: 1px solid #e6edf1;
	}

	.guide-spec-row__body {
		padding: 14px;
	}

	/* 長い文字列やリンクで横にはみ出すのを防ぐ */
	.guide-card,
	.guide-spec-row__body,
	.guide-info-card,
	.guide-info-card p,
	.guide-info-card a,
	.guide-data-item__value {
		max-width: 100%;
		overflow-wrap: break-word;
		word-break: break-word;
	}
}

@media screen and (max-width: 480px) {
	.guide-hero__title {
		font-size: 32px;
	}

	.guide-quicknav {
		grid-template-columns: 1fr;
	}

	.guide-quicknav__item {
		min-height: 64px;
		font-size: 18px;
	}

	.guide-step {
		width: 36px;
		height: 36px;
		font-size: 18px;
	}

	.guide-card {
		padding: 16px;
	}

	.guide-card__title {
		font-size: 20px;
	}

	.guide-side-note {
		padding: 16px;
	}

	.guide-side-note__title {
		font-size: 16px;
	}

	.guide-attention-box li {
		font-size: 13px;
	}

	.guide-spec-table {
		border-radius: 12px;
	}

	.guide-info-card__title {
		font-size: 17px;
		line-height: 1.5;
	}

	.guide-info-card p {
		font-size: 13px !important;
		line-height: 1.7;
	}

	.guide-data-layout {
		gap: 14px;
	}

	.guide-data-item__label {
		padding: 12px 14px;
	}

	.guide-data-item__value {
		padding: 14px;
	}
}