/* =========================================
   PDF入稿ガイド リデザイン
   help.css 読み込み後に help_pdfimport.css として読み込む前提
========================================= */

/* -----------------------------------------
   Base
----------------------------------------- */
.pdfimport-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, #f7fbff 0%, #e8f2ff 55%, #dfeeff 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(37, 99, 235, 0.08);
	color: #2563eb;
	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: #1d4ed8;
}

.guide-hero__lead {
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	color: #2f3b46;
	font-size: 20px;
	line-height: 1.8;
}

/* -----------------------------------------
   Quick nav
----------------------------------------- */
.guide-quicknav {
	display: grid;
	gap: 16px;
	margin-bottom: 24px;
}

.guide-quicknav--pdfimport {
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.guide-quicknav__item {
	min-height: 76px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 18px 14px;
	background: #fff;
	border: 1px solid #e4eaef;
	border-radius: 18px;
	color: #2563eb;
	font-size: 16px;
	font-weight: 700;
	text-align: center;
	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: #1d4ed8 !important;
	background: #f8fbff;
	text-decoration: none;
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.guide-quicknav__item i {
	font-size: 22px;
}

.guide-quicknav__item--green {
	color: #18733d;
}

.guide-quicknav__item--green:hover {
	color: #14532d !important;
	background: #f8fcf9;
}

.guide-quicknav__item--orange {
	color: #ea7a18;
}

.guide-quicknav__item--orange:hover {
	color: #c95f05 !important;
	background: #fffaf5;
}

.guide-quicknav__item--yellow {
	color: #b7791f;
}

.guide-quicknav__item--yellow:hover {
	color: #975a16 !important;
	background: #fffaf0;
}

.guide-quicknav__item--blue {
	color: #2563eb;
}

/* -----------------------------------------
   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: #1d4ed8;
	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;
}

.pdfimport-guide-page .modern-help-accordion>h1:hover,
.pdfimport-guide-page .modern-help-accordion>h1:hover span {
	color: #1d4ed8 !important;
	background: #fff !important;
}

.guide-title-blue {
	color: #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--center {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

.guide-card__title {
	margin-bottom: 16px;
	color: #1d4ed8;
	font-size: 24px;
	font-weight: 800;
	text-align: left;
}

/* -----------------------------------------
   Section 1: files
----------------------------------------- */
.guide-files-layout {
	display: grid;
	grid-template-columns: 0.8fr 1fr;
	gap: 20px;
	align-items: stretch;
}

.guide-files-figure img {
	max-width: 100%;
	height: auto;
}

.guide-file-cards {
	display: grid;
	gap: 16px;
}

.guide-file-card {
	display: flex;
	align-items: flex-start;
	gap: 18px;
}

.guide-file-card--main {
	background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
	border-color: #d8e6fb;
}

.guide-file-card__icon {
	width: 58px;
	height: 58px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border-radius: 16px;
	background: #2563eb;
	color: #fff;
	font-size: 30px;
}

.guide-file-card__icon--cover {
	background: #18733d;
}

.guide-file-card__title {
	margin-bottom: 8px;
	color: #1f2937;
	font-size: 22px;
	font-weight: 800;
}

.guide-file-card p {
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	line-height: 1.8;
}

.guide-inline-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	padding: 10px 14px;
	border-radius: 999px;
	background: #18733d;
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.guide-inline-button:hover {
	background: #14532d;
	color: #fff !important;
	text-decoration: none;
}

/* -----------------------------------------
   Section 2: specification
----------------------------------------- */
.guide-spec-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 20px;
	align-items: start;
}

.guide-side-cards {
	display: grid;
	gap: 32px;
}

.guide-spec-table {
	border: 1px solid #e6edf1;
	border-radius: 14px;
	overflow: hidden;
}

.guide-spec-row {
	display: grid;
	grid-template-columns: 190px 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;
	line-height: 1.8;
}

.guide-helper-text {
	display: block;
	margin-top: 6px;
	color: #6b7280;
	font-size: 13px;
	line-height: 1.6;
}

.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;
}

.guide-binding-card {
	background: #fffaf5;
	border-color: #f6d6b5;
}

.guide-binding-card .guide-card__title {
	color: #c95f05;
}

.guide-binding-list {
	display: grid;
	gap: 12px;
}

.guide-binding-item {
	padding: 16px;
	background: #fff;
	border: 1px solid #f0dcc7;
	border-radius: 14px;
}

.guide-binding-item__pages {
	margin-bottom: 6px;
	color: #9a4f06;
	font-size: 18px;
	font-weight: 800;
}

.guide-binding-item__type {
	color: #1f2937;
	font-weight: 700;
}

.guide-bookcover-card {
	margin-top: 4px;
	background: linear-gradient(135deg, #eef6ff 0%, #f8fbff 100%);
	border-color: #b9d2ff;
}

.guide-bookcover-card .guide-card__title {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #1d4ed8;
}

.guide-bookcover-box {
	padding: 18px;
	background: #ffffff;
	border: 1px solid #b9d2ff;
	border-radius: 16px;
}

.guide-bookcover-box__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	color: #1d4ed8;
	font-size: 20px;
	font-weight: 800;
}

.guide-bookcover-summary,
.guide-bookcover-size {
	padding: 14px 0;
}

.guide-bookcover-summary__label,
.guide-bookcover-size__label {
	margin-bottom: 4px;
	color: #6b7280;
	font-size: 13px;
	font-weight: 700;
}

.guide-bookcover-summary__value {
	color: #9a4f06;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.3;
}

.guide-bookcover-size__value {
	color: #1f2937;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.6;
}

.guide-bookcover-notes {
	margin: 8px 0 0;
	padding-left: 1.2em;
	color: #4b5563;
	font-size: 13px;
	line-height: 1.8;
}

.guide-bookcover-notes li {
	margin-bottom: 6px;
}

.guide-bookcover-notes li:last-child {
	margin-bottom: 0;
}

.guide-note-box {
	padding: 16px;
	background: #f8fbff;
	border: 1px solid #d8e6fb;
	border-radius: 14px;
}

.guide-note-box__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	color: #2563eb;
	font-weight: 800;
}

.guide-note-box p {
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	font-size: 14px;
	line-height: 1.8;
}

/* -----------------------------------------
   Section 3: checklist
----------------------------------------- */
.guide-check-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.guide-check-card {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 18px;
	background: #fff;
	border: 1px solid #e6edf1;
	border-radius: 16px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.guide-check-card>i {
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border-radius: 50%;
	background: #e8f6ed;
	color: #18733d;
	font-size: 20px;
}

.guide-check-card__title {
	margin-bottom: 8px;
	color: #166534;
	font-size: 18px;
	font-weight: 800;
}

.guide-check-card p {
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	line-height: 1.8;
}

/* -----------------------------------------
   Section 4: trouble
----------------------------------------- */
.guide-trouble-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.guide-trouble-card {
	background: #fff;
}

.guide-trouble-card__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	color: #975a16;
	font-size: 19px;
	font-weight: 800;
}

.guide-trouble-card__title i {
	color: #d08a00;
}

.guide-trouble-card p {
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	line-height: 1.8;
}

/* -----------------------------------------
   Section 5: tool links
----------------------------------------- */
.guide-tool-intro {
	background: #f8fbff;
	border-color: #d8e6fb;
}

.guide-tool-intro__title {
	margin-bottom: 8px;
	color: #1d4ed8;
	font-size: 22px;
	font-weight: 800;
}

.guide-tool-intro p {
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	line-height: 1.8;
}

.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--word {
	background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
	border-color: #d8e6fb;
}

.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;
}

.guide-cover-link-card {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	;
	gap: 40px;
	background: linear-gradient(135deg, #f3fbf5 0%, #ffffff 100%);
	border-color: #cfe8d6;
}

.guide-cover-link-card__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
	color: #166534;
	font-size: 22px;
	font-weight: 800;
}

.guide-cover-link-card p {
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	line-height: 1.8;
}

.guide-cover-link-card__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-shrink: 0;
	min-width: 190px;
	padding: 14px 18px;
	border-radius: 12px;
	background: #18733d;
	color: #fff !important;
	font-weight: 800;
	text-decoration: none;
}

.guide-cover-link-card__button:hover {
	background: #14532d;
	color: #fff !important;
	text-decoration: none;
}

/* -----------------------------------------
   Utility / help.css override
----------------------------------------- */
.mt20 {
	margin-top: 20px !important;
}

.pdfimport-guide-page .accordion p,
.pdfimport-guide-page .accordion .guide-helper-text {
	background: transparent !important;
}

/* -----------------------------------------
   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-quicknav--pdfimport {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.guide-files-layout,
	.guide-spec-layout,
	.guide-check-grid,
	.guide-trouble-grid,
	.guide-tool-links {
		grid-template-columns: 1fr;
	}

	.modern-help-accordion>h1 {
		padding: 16px 18px;
		font-size: 26px;
	}

	.guide-section-body {
		padding: 16px;
	}

	.guide-cover-link-card {
		align-items: flex-start;
		flex-direction: column;
	}

	.guide-cover-link-card__button {
		width: 100%;
	}
}

@media screen and (max-width: 480px) {
	.guide-hero__title {
		font-size: 32px;
	}

	.guide-quicknav--pdfimport {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.guide-quicknav__item {
		min-height: 64px;
		font-size: 15px;
	}

	.guide-card {
		padding: 16px;
	}

	.guide-card__title,
	.guide-tool-intro__title,
	.guide-cover-link-card__title {
		font-size: 20px;
	}

	.guide-file-card {
		flex-direction: column;
	}

	.guide-spec-row {
		grid-template-columns: 1fr;
	}

	.guide-spec-row__head {
		border-bottom: 1px solid #e6edf1;
	}
}

@media screen and (max-width: 360px) {
	.guide-quicknav--pdfimport {
		grid-template-columns: 1fr;
	}
}

.pdfimport-guide-page .accordion p.nini_notice {
	font-size: 0.9em !important;
	display: inline-block;
	background: #f1f7fe !important;
	padding: 15px !important;
	border-radius: 10px;
}

.pdfimport-guide-page .accordion p.nini_notice2 {
	font-size: 0.9em !important;
	display: inline-block;
	background: #fff2f2 !important;
	padding: 15px !important;
	border-radius: 10px;
}

/* ページ数と綴じ方：中綴じイメージ */
.guide-binding-item--with-image {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.guide-binding-item__content {
	flex: 1;
	min-width: 0;
}

.guide-binding-item__image {
	width: 100px;
	max-width: 28%;
	height: auto;
	flex-shrink: 0;
	display: block;
}

@media screen and (max-width: 480px) {
	.guide-binding-item__image {
		width: 60px;
		max-width: 34%;
	}
}



/* -----------------------------------------
   PDF入稿ガイド：製本までの大まかな流れ
   実際のPDF入稿ページと同じ4工程表示
----------------------------------------- */
.guide-pdfimport-flow-box {
	margin: 0 0 24px;
	padding: 16px 22px 18px;
}

.guide-pdfimport-flow-box__title {
	margin: 0 0 23px !important;
	color: #263238;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.5;
	text-align: center;
}

.guide-pdfimport-flow {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.1fr) auto minmax(0, 1fr);
	align-items: stretch;
	gap: 8px;
	max-width: 980px;
	margin: 0 auto;
}

.guide-pdfimport-flow__item {
	position: relative;
	min-width: 0;
	min-height: 86px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 12px 9px 10px;
	background: #fff;
	border: 1px solid #dcebf3;
	border-radius: 14px;
	box-shadow: 0 8px 20px rgba(37, 91, 122, 0.08);
	color: #263238;
	text-align: left;
	text-decoration: none;
}

.guide-pdfimport-flow__item strong {
	display: block;
	color: #263238;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.35;
}

.guide-pdfimport-flow__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	color: #fff;
	background: linear-gradient(135deg, #1f8fbd 0%, #12739b 100%);
	border-radius: 50%;
	font-size: 13px;
}

.guide-pdfimport-flow__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #12739b;
	font-size: 19px;
}

.guide-pdfimport-flow__item--link {
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.guide-pdfimport-flow__item--link:hover,
.guide-pdfimport-flow__item--link:focus {
	color: inherit;
	text-decoration: none;
	border-color: #9fd4e7;
	box-shadow: 0 10px 24px rgba(31, 143, 189, 0.16);
	transform: translateY(-1px);
}

.guide-pdfimport-flow__item--link:hover strong,
.guide-pdfimport-flow__item--link:focus strong {
	color: #12739b;
}

.guide-pdfimport-flow__link-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	margin-left: 2px;
	color: #12739b;
	background: #eaf6fc;
	border-radius: 50%;
	font-size: 13px;
}

.guide-pdfimport-flow__item--current {
	border: 1px solid #dcebf3;
	background: #fff;
	box-shadow: 0 8px 20px rgba(37, 91, 122, 0.08);
}

.guide-pdfimport-flow__item--current::after {
	display: none;
}

.guide-pdfimport-flow__item--current strong {
	color: #263238;
}

.guide-pdfimport-flow__current-label,
.guide-pdfimport-flow__optional-label {
	position: absolute;
	top: -10px;
	left: 50%;
	transform: translateX(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 800;
	line-height: 1.4;
	white-space: nowrap;
}

.guide-pdfimport-flow__current-label {
	color: #12739b;
	background: #eaf6fc;
	border: 1px solid #9fd4e7;
}

.guide-pdfimport-flow__optional-label {
	color: #12739b;
	background: #eaf6fc;
	border: 1px solid #9fd4e7;
}

.guide-pdfimport-flow__item--optional {
	background: #fff;
	border: 1px solid #dcebf3;
}

.guide-pdfimport-flow__item--optional .guide-pdfimport-flow__icon {
	background: linear-gradient(135deg, #1f8fbd 0%, #12739b 100%);
}

@media screen and (max-width: 1199px) {
	.guide-pdfimport-flow {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.guide-pdfimport-flow__item {
		min-height: auto;
		justify-content: flex-start;
		padding: 14px 16px;
		text-align: left;
	}

	.guide-pdfimport-flow__arrow {
		transform: rotate(90deg);
		font-size: 18px;
		line-height: 1;
	}

	.guide-pdfimport-flow__current-label,
	.guide-pdfimport-flow__optional-label {
		position: static;
		transform: none;
		margin-right: 4px;
	}

	.guide-pdfimport-flow__item--current::after {
		display: none;
	}

	.guide-pdfimport-flow__link-icon {
		margin-left: auto;
	}
}

@media screen and (max-width: 767px) {
	.guide-pdfimport-flow-box {
		margin-bottom: 22px;
		padding: 18px 16px;
	}

	.guide-pdfimport-flow-box__title {
		margin-bottom: 18px !important;
		font-size: 18px;
	}
}


.guide-pdfimport-flow-box--in-section {
	margin-bottom: 0;
}

.guide-pdfimport-flow-box--in-section .guide-pdfimport-flow-box__title {
	margin-bottom: 20px !important;
}

/* 「製本までの流れ」セクションの上部を角丸にする */
#section-flow {
	border-radius: 20px 20px 0 0 !important;
}

/* 念のため、直下の本文側も下だけ角丸に統一 */
#section-flow+.guide-section-body {
	border-radius: 0 0 20px 20px !important;
}