/* ==========================================================
   ページ固有のCSSは pages/*.css をページ側で読み込む
   ========================================================== */

/* foundation */

:root {
	--color-text: #222;
	--color-white: #fff;
	--color-key: #00afcc;
	--color-border: #ddd;
	--color-gray: #888;
	--color-bg-gray: #f4f4f4;

	/* ページごとに上書きするアクセントカラー（見出しの下線・背景色） */
	--color-accent: var(--color-key);
	--color-accent-bg: #f4f4f4;
	--font-ja: "Noto Sans JP", sans-serif;
	--font-en: "Roboto", "Noto Sans JP", sans-serif;
	--text-shadow-ttl: 2px 2px 8px rgb(0 0 0 / 20%);
	--container-w: 1280px;
	--content-w: 1120px;
	--gutter: 24px;
}

@media (width >= 768px) {
	:root {
		--gutter: 80px;
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	padding: 0;
	margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
dl,
dt,
dd,
figure,
figcaption,
blockquote {
	padding: 0;
	margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-size: inherit;
	font-weight: inherit;
}

ul,
ol {
	list-style: none;
}

a {
	color: inherit;
	text-decoration: none;
}

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

button {
	padding: 0;
	font: inherit;
	color: inherit;
	cursor: pointer;
	background: none;
	border: 0;
}

html {
	scroll-padding-top: var(--header-height, 65px);
	scroll-behavior: smooth;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	font-family: var(--font-ja);
	font-size: 16px;
	line-height: 1.4;
	color: var(--color-text);
	overflow-wrap: break-word;
	background-color: var(--color-white);
	-webkit-font-smoothing: antialiased;
	text-size-adjust: 100%;
}

a {
	transition: opacity 0.3s;

	&:hover,
	&:focus-visible {
		opacity: 0.7;
	}
}

/* layout */

.l-container {
	width: 100%;
	max-width: calc(var(--container-w) + var(--gutter) * 2);
	padding-inline: var(--gutter);
	margin-inline: auto;
}

.l-container--narrow {
	max-width: calc(var(--content-w) + 24px * 2);
	padding-inline: 24px;
}

.l-header {
	position: sticky;
	top: 0;
	z-index: 20;
	width: 100%;
	background-color: var(--color-white);
	border-bottom: 1px solid var(--color-border);
}

.l-main {
	flex: 1 0 auto;
}

.l-footer {
	margin-top: auto;
}

/* component */

.c-sectionTitle {
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-items: center;
	font-weight: 700;
	text-align: center;

	&::after {
		display: block;
		width: 40px;
		height: 2px;
		content: "";
		background-color: var(--color-accent);
	}
}

.c-sectionTitle__en {
	font-family: var(--font-en);
	font-size: 40px;
	line-height: 1;
}

.c-sectionTitle__ja {
	padding-bottom: 10px;
	font-size: 16px;
	line-height: 1.4;
}

@media (width >= 768px) {
	.c-sectionTitle__en {
		font-size: 48px;
	}
}

.c-subTitle {
	padding-left: 18px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.4;
	border-left: 2px solid var(--color-accent);
}

.c-button {
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 331px;
	padding: 12px 16px;
	margin-inline: auto;
	font-weight: 700;
	line-height: 1.4;
	color: var(--color-text);
	background-color: var(--color-white);
	border: 1px solid var(--color-text);
	border-radius: 24px;
}

.c-button.-size-lg {
	max-width: 400px;
}

/* project */

.p-header {
	padding: 16px;
}

.p-header__inner {
	display: flex;
	gap: 10px;
	align-items: center;
	max-width: var(--container-w);
	margin-inline: auto;
}

.p-header__logo {
	flex: 1 1 auto;
	min-width: 0;

	& > a {
		display: flex;
		gap: 16px;
		align-items: center;
	}

	& img {
		flex-shrink: 0;
		width: 132px;
		height: auto;
	}
}

.p-header__logoText {
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
}

.p-header__nav {
	display: none;
}

@media (width >= 768px) {
	.p-header {
		padding: 32px var(--gutter) 0;
	}

	.p-header__inner {
		gap: 24px;
		align-items: flex-start;
	}

	.p-header__logo {
		& > a {
			flex-direction: column;
			gap: 2px;
			align-items: flex-start;
		}

		& img {
			box-sizing: content-box;
			padding: 5px;
		}
	}

	.p-header__nav {
		display: block;
		flex-shrink: 0;
		padding-top: 8px;
	}

	.p-header__navList {
		display: flex;
		gap: 24px;
	}

	.p-header__navLink {
		display: flex;
		flex-direction: column;
		gap: 2px;
		align-items: center;
		width: 84px;
		padding-top: 4px;
		text-align: center;

		&::after {
			width: 100%;
			height: 2px;
			margin-top: 12px;
			content: "";
			background-color: var(--color-key);
			transition: transform 0.3s;
			transform: scaleX(0);
		}

		&:hover,
		&:focus-visible {
			opacity: 1;
		}

		&.is-active::after,
		&:hover::after,
		&:focus-visible::after {
			transform: scaleX(1);
		}
	}

	.p-header__navTextEn {
		font-family: var(--font-en);
		font-size: 18px;
		font-weight: 700;
		line-height: 1.4;
	}

	.p-header__navTextJa {
		font-size: 13px;
		line-height: 1;
	}

	.p-header__drawer {
		display: none;
	}
}

.p-drawer__icon {
	position: relative;
	z-index: 41;
	display: block;
	width: 32px;
	height: 32px;
	padding: 7px 5px;
}

.p-drawer__bars {
	display: block;
	width: 22px;
	height: 18px;
}

.p-drawer__bar {
	display: block;
	width: 100%;
	height: 2px;
	margin-top: 6px;
	background-color: var(--color-key);
	border-radius: 100vh;
	transition: transform 0.3s linear;

	&:first-child {
		margin-top: 0;
	}
}

.p-drawer__icon.is-opened .p-drawer__bar {
	&:nth-child(2) {
		background-color: transparent;
	}

	&:first-child {
		transform: translateY(8px) rotate(45deg);
	}

	&:last-child {
		transform: translateY(-8px) rotate(-45deg);
	}
}

.p-drawer__bg[hidden],
.p-drawer__content[hidden] {
	display: none;
}

.p-drawer__bg {
	position: fixed;
	inset: 0;
	z-index: 19;
	pointer-events: none;
	background-color: rgb(0 0 0 / 25%);
	opacity: 0;
	transition: opacity 0.3s;

	&.is-opened {
		pointer-events: auto;
		opacity: 1;
	}
}

.p-drawer__content {
	position: fixed;
	top: var(--header-height, 65px);
	right: 0;
	z-index: 19;
	width: 100%;
	height: calc(var(--vh, 100vh) - var(--header-height, 65px));
	padding: 20px 24px var(--header-height, 65px);
	overflow: auto;
	visibility: hidden;
	background-color: var(--color-white);
	transition:
		transform 0.5s,
		visibility 0.5s;
	transform: translateX(105%);

	&.is-opened {
		visibility: visible;
		transform: translateX(0);
	}
}

.p-drawer__navItem {
	border-bottom: 1px solid var(--color-border);

	& + & {
		margin-top: 11px;
	}
}

.p-drawer__navLink {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 0.5em 0.25em 0.5em 1em;
}

.p-drawer__navTextEn {
	min-width: 72px;
	font-family: var(--font-en);
	font-size: 18px;
	font-weight: 700;
}

.p-drawer__navTextJa {
	margin-left: 10px;
	font-size: 13px;
	line-height: 1;
}

/* 下層リンク（例: 製品一覧） */

.p-drawer__navLink--noLink {
	cursor: default;
}

.p-drawer__navSubList {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-bottom: 11px;
	margin-top: 6px;
}

.p-drawer__navSubLink {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 1em 16px 1em 24px;
	font-size: min(14px, 3.7333vw);
	font-weight: 700;
	background-color: #ebf8f5;
}

.p-footer__main {
	padding: 42px 24px 40px;
	border-top: 2px solid var(--color-key);
}

.p-footer__navList {
	display: flex;
	flex-direction: column;
	gap: 24px;
	align-items: center;
}

.p-footer__navLink {
	white-space: nowrap;
}

.p-footer__copyArea {
	padding: 16px 24px;
	font-size: 13px;
	color: var(--color-gray);
	text-align: center;
	background-color: var(--color-bg-gray);
}

@media (width >= 768px) {
	.p-footer__main {
		padding-inline: 160px;
	}

	.p-footer__navList {
		flex-flow: row wrap;
		gap: 24px 40px;
		justify-content: center;
	}
}

.p-mv {
	position: relative;
	display: flex;
	align-items: center;
	height: 240px;
	overflow: hidden;
	color: var(--color-white);
	background-color: var(--color-bg-gray);
}

.p-mv__bg {
	position: absolute;
	inset: 0;

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

.p-mv__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 100%;
	max-width: calc(1142px + 24px * 2);
	padding-inline: 24px;
	margin-inline: auto;
	font-weight: 700;
}

.p-mv__title {
	font-size: 24px;
	line-height: 1.4;
	text-shadow: var(--text-shadow-ttl);
}

.p-mv__sub {
	font-size: 16px;
	line-height: 1.4;
	text-shadow: var(--text-shadow-ttl);
}

@media (width >= 768px) {
	.p-mv {
		height: 560px;
	}

	.p-mv__inner {
		gap: 16px;
	}

	.p-mv__title {
		font-size: 48px;
	}

	.p-mv__sub {
		font-size: 24px;
	}
}

.p-section {
	display: flex;
	flex-direction: column;
	gap: 40px;
	align-items: center;
	padding: 64px 0;
}

.p-section--about {
	padding-bottom: 0;
}

.p-section--accent {
	background-color: var(--color-accent-bg);
}

.p-section--related {
	border-top: 2px solid var(--color-key);

	--color-accent: var(--color-key);
}

.p-section__body {
	width: 100%;
}

/* 背景色付きのボックス（About） */

.p-section__box {
	width: 100%;
	padding: 32px 24px 64px;
	background-color: var(--color-accent-bg);
}

/* 白背景のテキストボックス */

.p-textBox {
	width: 100%;
	max-width: var(--content-w);
	padding: 32px;
	margin-inline: auto;
	line-height: 1.8;
	background-color: var(--color-white);
}

.p-textBox--center {
	text-align: center;
}

@media (width >= 768px) {
	.p-section {
		padding: 120px 0;
	}

	.p-section--about {
		padding-bottom: 0;
	}

	.p-section__box {
		padding-inline: 160px;
	}

	.p-textBox {
		text-align: center;
	}
}

.p-newsList {
	border-top: 1px solid var(--color-border);
}

.p-newsList__item {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 24px;
	border-bottom: 1px solid var(--color-border);
}

.p-newsList__date {
	font-weight: 700;
	white-space: nowrap;
}

@media (width >= 768px) {
	.p-newsList__item {
		flex-direction: row;
		gap: 40px;
		padding-block: 32px;
	}
}

/* 各サイトへのバナー一覧（トップのContents・各ページのRelated Links） */

.p-bnrList {
	display: flex;
	flex-direction: column;
	gap: 28px;
	align-items: center;
}

.p-bnrList__item {
	width: 100%;
	max-width: 360px;
}

.p-bnrList__link {
	display: block;

	& img {
		width: 100%;
	}
}

@media (width >= 768px) {
	.p-bnrList {
		flex-flow: row wrap;
		justify-content: center;
	}

	.p-bnrList__item {
		width: 360px;
	}
}

/* utility */

.u-onlyPc {
	display: none;
}

@media (width >= 768px) {
	.u-onlyPc {
		display: revert;
	}

	.u-onlySp {
		display: none;
	}
}

.u-overflowHidden {
	overflow: hidden;
}

.u-visuallyHidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
