/* PI Report brand palette (landscape / logo blue) */
:root {
	--pireport-blue: #000fb3;
	--pireport-blue-rgb: 0, 15, 179;
	--pireport-blue-deep: #000894;
	--pireport-blue-soft: #eef0ff;
	--pireport-blue-tint: #f5f6ff;
	--pireport-blue-border: #c5c9ef;
	--pireport-bg: #eceff3;
	--pireport-surface: #fff;
	--pireport-surface-muted: #f5f7f9;
	--pireport-text: #1f2328;
	--pireport-muted: #1f2328;
	--pireport-divider: #dfe3e8;
	--pireport-divider-soft: #eef1f4;
	--pireport-font-body: "Noto Sans JP", system-ui, -apple-system, sans-serif;
	--pireport-font-numeric: "Archivo", var(--pireport-font-body);
	--pireport-space-1: 0.25rem;
	--pireport-space-2: 0.5rem;
	--pireport-space-3: 0.75rem;
	--pireport-space-4: 1rem;
	--pireport-space-6: 1.5rem;
	--pireport-space-8: 2rem;

	--bs-blue: #000fb3;
	--bs-primary: #000fb3;
	--bs-primary-rgb: 0, 15, 179;
	--bs-link-color: #000fb3;
	--bs-link-color-rgb: 0, 15, 179;
	--bs-link-hover-color: #000894;
	--bs-link-hover-color-rgb: 0, 8, 148;
	--bs-primary-text-emphasis: #00066e;
	--bs-primary-bg-subtle: #eef0ff;
	--bs-primary-border-subtle: #c5c9ef;
	--bs-focus-ring-color: rgba(0, 15, 179, 0.25);
}

body {
	color: var(--pireport-text);
	background: var(--pireport-bg);
	font-family: var(--pireport-font-body);
	-webkit-font-smoothing: antialiased;
}

.num,
.report-kpi-value,
.report-kpi-meta,
.report-article td.text-end,
.report-article th.text-end {
	font-family: var(--pireport-font-numeric);
	font-variant-numeric: tabular-nums;
}

:focus-visible {
	outline: 2px solid var(--pireport-blue);
	outline-offset: 2px;
}

a {
	color: var(--pireport-blue);
	text-decoration-color: rgba(0, 15, 179, 0.35);
}

a:hover,
a:focus {
	color: var(--pireport-blue-deep);
	text-decoration-color: var(--pireport-blue-deep);
}

.btn-link {
	color: var(--pireport-blue);
}

.btn-link:hover,
.btn-link:focus {
	color: var(--pireport-blue-deep);
}

.btn-primary {
	--bs-btn-bg: var(--pireport-blue);
	--bs-btn-border-color: var(--pireport-blue);
	--bs-btn-hover-bg: var(--pireport-blue-deep);
	--bs-btn-hover-border-color: var(--pireport-blue-deep);
	--bs-btn-active-bg: #00066e;
	--bs-btn-active-border-color: #00066e;
	--bs-btn-disabled-bg: var(--pireport-blue);
	--bs-btn-disabled-border-color: var(--pireport-blue);
}

.btn-outline-primary {
	--bs-btn-color: var(--pireport-blue);
	--bs-btn-border-color: var(--pireport-blue);
	--bs-btn-hover-bg: var(--pireport-blue);
	--bs-btn-hover-border-color: var(--pireport-blue);
	--bs-btn-active-bg: var(--pireport-blue-deep);
	--bs-btn-active-border-color: var(--pireport-blue-deep);
	--bs-btn-disabled-color: var(--pireport-blue);
	--bs-btn-disabled-border-color: var(--pireport-blue);
}

/* Top page: space between report nav buttons (desktop + mobile) */
.index-report-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0.25rem 0 1.25rem;
}

.index-report-nav .btn {
	margin: 0;
}

.line-heading::after {
	border-bottom-color: var(--pireport-blue);
}

.page-link {
	color: var(--pireport-blue);
}

.page-link:hover {
	color: var(--pireport-blue-deep);
}

.page-item.active .page-link {
	background-color: var(--pireport-blue);
	border-color: var(--pireport-blue);
}

.loadspinner {
	position: absolute;
    left: 45%;
    top: 45%;
}

/* .attention {
    border: 2px solid var(--pireport-blue);
    margin-top: 2em;
    margin-bottom: 2em;
} */

.serviceinfo-img {
    height: 90px !important;
    padding-right: 10px;
    padding-top: 15px;
    margin-bottom: 15px;
}

.row-eq-height {
    display: flex;
    flex-wrap: wrap;
}
.serviceinfo-panel {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    border: solid rgb(0 0 0 / 8%) 1px;
    /* box-shadow: 0 0.125rem 0.25rem rgb(0 0 0 / 8%) !important; */
}

/* === trend chart module === */
.chart {
	width: 100%;
	margin: 1.25rem 0 1.75rem;
}

.trend-chart-panel {
	position: relative;
	width: 100%;
	max-width: 100%;
	padding: 1rem 1rem 0.25rem;
	border: 1px solid #e3e8ee;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(23, 43, 77, 0.06);
	overflow: hidden;
}

.trend-chart-controls {
	gap: 0.4rem;
	margin-bottom: 0.5rem !important;
}

.trend-chart-mode-select {
	max-width: 100%;
	flex: 0 1 220px;
}

.trend-chart-export {
	position: relative;
	margin-left: auto;
	flex-shrink: 0;
}

.trend-chart-mode {
	position: relative;
	flex-shrink: 0;
}

.trend-chart-mode .dropdown-menu,
.trend-chart-export .dropdown-menu {
	display: none;
	position: absolute;
	top: 100%;
	z-index: 20;
	min-width: 14rem;
	max-height: 20rem;
	overflow-y: auto;
	padding: 0.35rem 0;
	margin: 0.15rem 0 0;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 0.375rem;
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.trend-chart-mode .dropdown-menu {
	left: 0;
	right: auto;
}

.trend-chart-export .dropdown-menu {
	right: 0;
	left: auto;
}

.trend-chart-mode .dropdown-menu.show,
.trend-chart-export .dropdown-menu.show {
	display: block;
}

.trend-chart-mode .dropdown-item,
.trend-chart-export .dropdown-item {
	display: block;
	width: 100%;
	padding: 0.35rem 1rem;
	clear: both;
	font-weight: 400;
	color: #212529;
	text-align: inherit;
	background: transparent;
	border: 0;
	white-space: nowrap;
}

.trend-chart-mode .dropdown-item:hover,
.trend-chart-mode .dropdown-item:focus,
.trend-chart-mode .dropdown-item.active,
.trend-chart-export .dropdown-item:hover,
.trend-chart-export .dropdown-item:focus {
	background: #f8f9fa;
}

.trend-chart-stage {
	position: relative;
	width: 100%;
	height: 500px;
	margin-top: 0.25rem;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

.trend-chart-stage.is-scrollable .trend-chart-canvas,
.trend-chart-stage.is-scrollable .trend-chart-logo {
	min-width: 500px;
}

.trend-chart-message {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 3;
	transform: translate(-50%, -50%);
	color: #5f6b7a;
	font-size: 0.95rem;
	white-space: nowrap;
}

.trend-chart-canvas {
	position: relative;
	z-index: 2;
	display: block;
	height: 500px;
	overflow: visible;
}

.trend-chart-logo {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	display: block;
	height: 500px;
	overflow: visible;
	pointer-events: none;
}

.chart-legend text {
	font-weight: 500;
	fill: #354052;
}

.report-article table.table {
	width: 100%;
	max-width: 100%;
}

/* Bootstrap 5 table-bordered drops the first-row top edge with captions; restore it. */
.report-article table.table-bordered {
	border: 1px solid #dee2e6;
}
.report-article table.table-bordered > :not(caption) > * > * {
	border-width: var(--bs-border-width, 1px);
}
.report-article table.table-bordered > thead > tr:first-child > * {
	border-top: 1px solid #dee2e6;
}

.chart-data-table {
	display: block;
	margin: 1rem 0 2rem;
	border: 1px solid var(--pireport-blue-border);
	border-left: 3px solid var(--pireport-blue);
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
	box-shadow: none;
}

.chart-data-table summary {
	padding: 0.75rem 1rem;
	font-weight: 500;
	color: var(--pireport-blue);
	background: var(--pireport-blue-tint);
	cursor: pointer;
}

.chart-data-table[open] summary {
	border-bottom: 1px solid var(--pireport-blue-border);
}

.chart-data-table table {
	margin-bottom: 0;
	font-size: 0.875rem;
	border: 1px solid #dee2e6;
}

.chart-data-table table caption {
	caption-side: top;
	padding: 0.75rem 0.5rem 0.5rem;
	color: #27364a;
}

.chart-data-table table.table-bordered > :not(caption) > * > * {
	border-width: var(--bs-border-width, 1px);
}

.chart-data-table table.table-bordered > thead > tr:first-child > * {
	border-top: 1px solid #dee2e6;
}

.chart-data-table table th,
.chart-data-table table td {
	padding: 0.35rem 0.5rem;
}

.coapplicant-detail-block table {
	width: 100%;
	font-size: 0.875rem;
}

.coapplicant-detail-block table th,
.coapplicant-detail-block table td {
	padding: 0.35rem 0.5rem;
}

.report-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-bottom: 1rem;
}

.report-patent-table {
	min-width: 36rem;
	margin-bottom: 0;
}

.report-patent-table th,
.report-patent-table td {
	padding: 0.35rem 0.5rem;
	font-size: 0.875rem;
}

.report-patent-table .report-patent-date-col,
.report-patent-table td:last-child {
	white-space: nowrap;
}

.trend-transition-table th.trend-yoy-col,
.trend-transition-table td:last-child {
	white-space: nowrap;
}

.coapplicant-detail-block table caption {
	caption-side: top;
	text-align: center;
}

@media (max-width: 575.98px) {
	.chart {
		margin: 0.75rem 0 1.25rem;
	}

	.trend-chart-panel {
		padding: 0.75rem 0 0.15rem;
		border-left: none;
		border-right: none;
		border-radius: 0;
		box-shadow: none;
	}

	.trend-chart-controls {
		padding: 0;
	}

	.chart-data-table {
		margin-bottom: 1.25rem;
		overflow-x: auto;
	}
}

.d3chart {
	width: 100%;
	height: 400px;
}

.highlight_circle{
	fill: none;
}

.tooltip_rect{
	fill: #FFFFFF;
	stroke: #999999;
	stroke-width: 1px;
}

.legend {
	font-size: 13px;
	font-family: 'arial';
}
/* === trend chart module === */

/* === landscape module === */
#landscape,
#landscape_chart,
.pireport-landscape,
.landscape-stage-wrap {
	background: rgb(0, 15, 179);
}

.landscape-stage-wrap {
	position: relative;
}

#landscape_chart.chart {
	margin-top: 0;
	margin-bottom: 0;
}

.landscape-dlmenu {
	position: absolute;
	z-index: 10;
	top: 5px;
	right: 5px;
}

.landscape-logo {
	position: absolute;
	bottom: 5px;
	right: 5px;
}
.landscape-logo-bk {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 190px;
	height: 40px;
	background-color: white;
	filter: blur(10px);
}

.viz-tooltip {
	position: absolute;
	top: 30px;
	left: 35px;
	z-index: 10;
	width: 280px;
	/* height: 150px; */
	border: solid 1px #666;
	background-color: rgba(255,255,255,0.8);
	cursor: default;
}

.viz-tooltip .panel-heading {
	white-space: nowrap;
	overflow-x: hidden;
	text-overflow: ellipsis;
	color: #fff;
	background-color: #666;
}

.viz-tooltip .row {
	margin: 0;
}

.topicinfo .col-sm-10,
.topicinfo .col-sm-8,
.toptopicinfoic .col-sm-4,
.toptopicinfoic .col-sm-2 {
	padding: 0 5px;
}

.box-border {
	border: solid 1px #ccc;
	padding: 0;
}
.box-border.radius {
	border-radius: 2px;
	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
}

.box-border-inner {
	border-top: solid 1px #ccc;
	border-bottom: solid 1px #ccc;
}
.box-border-side {
	border-left: solid 1px #ccc;
	border-right: solid 1px #ccc;
}

.tab-content {
    border-left: 1px solid #ddd;
	border-right: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
	padding: 10px 20px;
	border-radius: 0 0 4px 4px; 
}

.word-text {
	position: relative;
}
.word-bar {
	position: absolute;
	background-color: var(--pireport-blue);
	opacity: 0.55;
	top: 15px;
	left: 15px;
	height: 6px;
}
/* === landscape module === */


/* supervisor / comment cards — CSS Grid (no absolute avatar overflow) */
.sidepadding {
	padding: 0;
}

.supervisor-img {
	height: 190px !important;
	margin-right: 30px;
	margin-top: 0;
}

.attention {
	padding: 1.25rem 1.35rem;
	border: 0;
	border-left: 3px solid var(--pireport-blue, #000fb3);
	background-color: var(--pireport-blue-tint, #f5f6ff);
	margin-top: 1.25rem;
	margin-bottom: 1.25rem;
	overflow: hidden;
}

.supervisor-box,
.comment-box {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

.supervisor-box {
	font-size: 0.8125rem;
	border-radius: 0;
	color: var(--pireport-text, #1f2328);
}

.supervisor-box p {
	line-height: 1.7;
	color: var(--pireport-text, #1f2328);
}

.supervisor-box .row,
.comment-box .row {
	margin-left: 0;
	margin-right: 0;
	margin-bottom: 0;
	position: relative;
	--bs-gutter-x: 0;
}

.supervisor-box .title {
	font-weight: 600;
	text-indent: 0;
	margin-top: 0;
	margin-bottom: 0.35rem;
	color: var(--pireport-text, #1f2328);
}

.supervisor-box .name {
	font-size: 1rem;
	font-weight: 700;
	text-indent: 0;
	margin-top: 0;
	margin-bottom: 0.5rem;
	color: var(--pireport-text, #1f2328);
}

.supervisor-box .comment-title {
	font-size: 0.8125rem;
	font-weight: 600;
	text-indent: 0;
	margin-top: 0;
	margin-bottom: 0.2rem;
	color: var(--pireport-text, #1f2328);
}

.supervisor-box .comment-name {
	font-size: 1rem;
	font-weight: 700;
	text-indent: 0;
	margin-top: 0;
	margin-bottom: 0;
	color: var(--pireport-text, #1f2328);
}

.supervisor-box .description {
	text-indent: 0;
	margin-top: 0;
	margin-bottom: 0;
	color: var(--pireport-text, #1f2328);
}

.supervisor-box .comment-body {
	text-indent: 0;
	line-height: 1.85;
	padding: 0;
	color: var(--pireport-text, #1f2328);
}

.supervisor-heading {
	line-height: 1.6em;
}

/* Avatar columns: in-flow grid tracks (replaces absolute left:0 overflow). */
.row > .col-fixed-100,
.col-fixed-100 {
	position: static;
	padding: 0;
	top: auto;
	left: auto;
	width: auto;
	max-width: none;
	flex: none;
	text-align: center;
	font-weight: 600;
	z-index: auto;
	display: block;
	overflow: visible;
	font-size: 0.7rem;
	line-height: 1.4;
	color: var(--pireport-text, #1f2328);
}

.row > .col-fixed-100 img,
.col-fixed-100 img {
	display: block;
	width: 72px;
	height: 72px;
	max-width: 100%;
	margin: 0 auto 0.35rem;
	object-fit: cover;
}

.row > .col-offset-100,
.col-offset-100 {
	padding: 0;
	z-index: auto;
	min-height: 0;
	max-width: 100%;
	width: auto;
	flex: none;
}

.comment-box {
	padding: 1.25rem 1.35rem;
	margin-top: 1.25rem;
	margin-bottom: 1.25rem;
}

.comment-body {
	font-size: 0.875rem;
	background-color: transparent;
	border-radius: 0;
	color: var(--pireport-text, #1f2328);
}

.comment-body b,
.comment-bold {
	background: linear-gradient(transparent 60%, #fedee7 0);
}

.row > .col-fixed-50,
.col-fixed-50 {
	position: static;
	padding: 0;
	top: auto;
	left: auto;
	width: auto;
	max-width: none;
	flex: none;
	text-align: center;
	font-weight: 600;
	z-index: auto;
	display: block;
	overflow: visible;
}

.row > .col-fixed-50 img,
.col-fixed-50 img {
	display: block;
	width: 48px;
	height: 48px;
	max-width: 100%;
	margin: 0 auto;
	object-fit: cover;
}

.row > .col-offset-50,
.col-offset-50 {
	padding: 0;
	z-index: auto;
	min-height: 0;
	max-width: 100%;
	width: auto;
	flex: none;
}

/* Grid shells for profile / comment header rows */
.supervisor-box:not(.comment-box) > .row {
	display: grid;
	grid-template-columns: 5rem minmax(0, 1fr);
	column-gap: 1.15rem;
	row-gap: 0.5rem;
	align-items: start;
}

.comment-box > .row.toppadding {
	display: grid;
	grid-template-columns: 3.25rem minmax(0, 1fr);
	column-gap: 0.9rem;
	align-items: center;
}

.comment-box > .row.mobile-topmargin {
	display: block;
	margin-top: 0.85rem;
}

@media (max-width: 575.98px) {
	.supervisor-box:not(.comment-box) > .row {
		grid-template-columns: 4.25rem minmax(0, 1fr);
		column-gap: 0.85rem;
	}

	.row > .col-fixed-100 img,
	.col-fixed-100 img {
		width: 56px;
		height: 56px;
	}

	.attention,
	.comment-box {
		padding: 1rem 1rem 1.1rem;
	}
}
/* supervisor styles */


.noindent {
	text-indent: 0;
}

.userapplybtn {
	position: fixed;
	bottom: 0.8em;
	right: 1em;
    border: solid 2px #fff;
    border-radius: 5px;
	z-index: 10;
}
.shadowbtn {
	filter: drop-shadow(3px 3px 3px rgba(0,0,0,0.4));
}

.fade.show {
    background-color: rgba(0,0,0,0.4);
}

[name="banner"] > a {
    display: block;
    line-height: 0;
}

[name="banner"] > a > img {
    display: block;
}

.banner-caption {
    padding-top: 5px;
    font-size: 12px;
    font-weight: 800;
}

.font-gray {
    color: #666;
}

/* Report heading + breadcrumb layout (desktop/mobile) */
body {
	padding-top: 3.25rem;
}

.report-article h1.line-heading {
	max-width: none;
	width: 100%;
	box-sizing: border-box;
}

.report-meta-bar .breadcrumb {
	flex-wrap: wrap;
	row-gap: 0.15rem;
}

.report-meta-bar .breadcrumb-item {
	max-width: 100%;
	overflow-wrap: anywhere;
}

/* Compact fixed header */
.navbar {
	padding: 0.25rem 0.5rem;
}
.sf_header .navbar-brand {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 0.5rem;
	padding: 0;
	margin-right: 0.75rem;
	line-height: 1.2;
}
.sf_header .logo-img {
	height: 30px;
	width: auto;
	margin-bottom: 0;
}
.sf_header .navbar-brand .site-subtitle,
.sf_header .navbar-brand .navbar-text {
	padding: 0;
	margin: 0;
	font-size: 0.6875rem;
	line-height: 1.25;
	white-space: normal;
	max-width: 9rem;
}
@media (max-width: 1199.98px) {
	.sf_header .navbar-brand .site-subtitle,
	.sf_header .navbar-brand .navbar-text {
		display: none;
	}
}
.sf_header .nav-link {
	padding-top: 0.35rem;
	padding-bottom: 0.35rem;
}
.sf_header #qform_nav {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* Hero search (type=search + Bootstrap 5 form-control) */
.search-top form input[type="search"],
.search-top form input[type="text"] {
	border: none !important;
	width: 100% !important;
	height: 36px !important;
	box-shadow: none !important;
	background: #fff !important;
}
.search-top form .form-control.search-select,
.search-top form .search-select {
	border: none !important;
	height: 36px !important;
	min-height: 36px !important;
	box-shadow: none !important;
	border-radius: 0 !important;
}
.search-top form .btn {
	width: 42px !important;
	height: 36px !important;
	padding: 0 !important;
	border-radius: 0 !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
}
.search-top form table td {
	vertical-align: middle !important;
	padding: 0 !important;
}
.navbar-toggler {
	padding: 0.35rem 0.5rem;
}
