﻿/************************************************
* 共通定義
************************************************/
.wrapper {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 24px;
}

.top-page h1 {
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.3;
	color: #20538F;
}

.top-page h2 {
    font-size: clamp(24px, 2vw, 28px);
    font-weight: 700;
    line-height: 1.4;
	color: #20538F;
	margin: 0;
	padding: 0;
	border-bottom: none;
}

.top-page h3 {
    font-size: clamp(18px, 2vw, 20px);
    font-weight: 700;
    line-height: 1.4;
	color: #1A1A1A;
}

.top-page {
    font-size: clamp(16px, 1vw + 12px, 18px);
    line-height: 1.8;
	color: #333333;
}

/************************************************
* カルーセル
************************************************/
.carousel-item {
	height: 400px;
	background-color: #000;
	color: #FFF;
}

.carousel-item a {
	color: inherit;
	text-decoration: none;
}

.carousel-item h1 {
	font-size: clamp(20px, 3vw, 48px);
    font-weight: 700;
}

.carousel-item p {
	font-size: clamp(16px, 2vw, 28px);
}

.carousel-item > img {
	display: block;
	position: absolute;
    top: 20%;
    left: 60%;
	width: 450px;
}

/* メイン画像 */
.top-image img {
    left: 50%;
	width: 600px;
}

/* H1をvisually-hiddenにする措置 */
.top-image h1 {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* メインキャプション　開発から、量産まで */
.top-image .ca-caption {
	display: block;
	/*width: 330px;*/
	width: 530px;
	margin-bottom: 2rem;
}

.top-image .ca-caption2 {
	display: block;
	width: 300px;
	margin-bottom: 5rem;
}

/* COMPUTEX LOGO */
.top-image .ca-logo {
	margin-top: 30px;
	margin-left: 10px;
	width: 14%;
	margin-bottom: 1rem;
}

.ca-link {
	margin-top: 2rem;
}

.ca-link p {
	font-size: clamp(12px, 2vw, 18px);
}

.ca-link i {
	transition: transform 0.3s ease;
}

.carousel-item:hover .ca-link p {
    text-decoration: underline;
}	

.carousel-item:hover i {
	transform: translateX(4px);
}

/* PALMiCE4表示の補正 */
.palmice4 > img {
    top: 10%;
}

.palmice4 .ca-logo {
	width: 300px;
}

.palmice4 p {
	font-size: clamp(14px, 2vw, 20px);
}

.palmice4 .ca-icons {
	margin-top: 1rem;
	width: 300px;
}

.palmice4 .ca-link {
	margin-top: 1rem;
}

/* ツールカスタマイゼーションサービスの補正 */
.tcs img {
	top: 0;
	left: 0;
	width: 100%;
	height: clamp(360px, 35vw, 620px);
	object-fit: cover;
	object-position: 50% 20%;	
}

.tcs .ca-caption {
    font-size: clamp(28px, 5vw, 42px);
    line-height: 1.5;
}

/* スマホの表示補正 */
@media (max-width: 992px) {
	.carousel-item {
		max-height: 250px;
	}
	
	.carousel-caption {	/* 文字位置補正 */
		top: 10%;
		padding: 0;
	}

	.carousel-item > img {
	    top: 0;
	    left: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
		filter: brightness(0.6);
	}

	/* メインキャプション　開発から、量産まで */
	.top-image .ca-caption {
		display: block;
		width: 100%;
		margin-top: 1rem;
		margin-bottom: 1rem;
	}

	.top-image .ca-caption2 {
		display: block;
		width: 70%;
	}
	
	/* COMPUTEX LOGO */
	.top-image .ca-logo {
		margin-top: 10px;
		margin-left: 0px;
		width: 40%;
	}

	.ca-logo {
		width: 30%;
	}

	/* PALMiCE4表示の補正 */
	.palmice4 .ca-logo {
		width: 50%;
	}
	
	.palmice4 .ca-icons {
		margin-top: 1rem;
		width: 50%;
	}
	
	.palmice4 .ca-link {
		margin-top: 0;
	}
}

@media (min-width: 768px) and (max-width: 992px) {
	/* メインキャプション　開発から、量産まで */
	.top-image .ca-caption {
		display: block;
		width: 80%;
	}

	.top-image .ca-caption2 {
		display: block;
		width: 50%;
	}

	/* COMPUTEX LOGO */
	.top-image .ca-logo {
		margin-top: 10px;
		margin-left:10px;
		width: 20%;
	}

	/* PALMiCE4表示の補正 */
	.palmice4 .ca-logo {
		width: 35%;
	}
	
	.palmice4 .ca-icons {
		margin-top: 1rem;
		width: 35%;
	}
	
	.palmice4 .ca-link {
		margin-top: 0;
	}
}


/************************************************
* PICKUP NEWS
************************************************/
.pickup-news {
	margin-top: 3rem;
	margin-bottom: 5rem;
}

.pickup-news-item {
    list-style: none;
	margin-top: 1rem;
	margin-left: 0;
	padding: 0;
}

.pickup-news-item i {
	color: #20538F;
	margin-right: 1rem;
}

.pickup-news-item a {
    color: inherit;
	text-decoration: none;
}

.pickup-news-item a:hover {
    text-decoration: underline;
}

/************************************************
* コンピューテックスのソリューション
************************************************/
.solution {
	margin-top: 3rem;
	padding-top: 3rem;
	padding-bottom: 3rem;
	background-color: #DCEAF7;
}

.sol-card {
	margin-top: 3rem;
	width: 100%;
	box-shadow: 0 0 12px 4px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	border-radius: 15px;
	background-color: #FFF;
	color: inherit;
	text-decoration: none;
}

.sol-card img {
	border-radius: 15px 15px 0 0;
}

.sol-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
	color: inherit;
	text-decoration: none;
}

.sol-card h3 {
	margin-top: 2rem;
	padding-left: 1rem;
	padding-right: 1rem;
    font-size: clamp(16px, 1vw, 18px);
}

.sol-card p {
	margin-top: 1rem;
    font-size: clamp(16px, 1vw, 18px);
	padding-left: 1rem;
	padding-right: 1rem;
}

.sol-link {
	margin-top: 3rem;
}

.sol-link a {
	color: #1A1A1A;
}

.sol-link i {
	transition: transform 0.3s ease;
}

.sol-link:hover i {
	color: #20538F;
	transform: translateX(4px);
}	

/************************************************
* 製品情報
************************************************/
.products {
	margin-top: 3rem;
	padding-top: 3rem;
	padding-bottom: 3rem;
	background-color: #FFF;
}

.blue-band {
	margin-top: -40px;
	width: 100%;
	padding: 30px 0;
	height: 8rem;
	background-color: #20538F;
}

.product-card {
	margin-top: 3rem;
	width: 100%;
	box-shadow: 0 0 12px 4px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	border-radius: 15px;
	color: inherit;
	text-decoration: none;
}

.product-card img {
	border-radius: 15px 15px 0 0;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
	color: inherit;
	text-decoration: none;
}

.product-card h3 {
	margin-top: 1rem;
	padding-left: 1rem;
	padding-right: 1rem;
    font-size: clamp(18px, 2vw, 21px);
}

.product-card h4 {
	margin-top: 2rem;
	padding-left: 2rem;
	padding-right: 2rem;
    font-size: clamp(16px, 1vw, 18px);
    font-weight: bold;
}

.product-card p {
	margin-top: 1rem;
    font-size: clamp(16px, 1vw, 18px);
    padding: 0 2rem 1rem 2rem;
}

.product-link {
	padding-top: 3rem;
}

.product-link a {
	color: #1A1A1A;
}

/* 右端のリンクの表示、ショップ、トライアル */
.side-buttons {
	display: none;	/* PC以外は表示しない */
}

@media (min-width: 992px) {
	.products {
	    position: relative;
	}
	
	.side-buttons {
	    display: flex;
	    flex-direction: column;
		position: absolute;
		right: 0;
		top: 60%;
		transform: translateY(-50%);
	}
	
	.side-buttons a {
	    display: flex;
	    align-items: center;
		width: 350px;
		padding: 0 15px 0 50px;
		background: #DCEAF7;
		color: #20538F;
	}
	
	.side-buttons img {
		width: 30%;
		margin-right: 2rem;
		transition: transform 0.3s ease;
	}

	.side-item:hover img {
		transform: scale(1.06);
	}

	.product-link {
		position: absolute;
		right: 80px;
		top: 90%;
		transform: translateY(-50%);
	}

	.product-link i {
		transition: transform 0.3s ease;
	}

	.product-link:hover i {
		color: #20538F;
		transform: translateX(4px);
	}	
}

/************************************************
* サービス
************************************************/
.service {
	margin-top: 5rem;
	padding-top: 5rem;
	padding-bottom: 5rem;
	background-color: #DCEAF7;
}

.service-card {
	width: 70%;
	text-align: center;
	padding-top: 1.5rem;
}

.service-card:hover {
	text-decoration: none;
}

.service-card img {
	transition: transform 0.3s ease;
}

.service-card:hover img {
	transform: scale(1.06);
}

.service-card p {
	color: #333;
    font-size: clamp(16px, 1vw, 18px);
    padding: 2rem 1rem 1rem 1rem;
	text-decoration: none;
}

/************************************************
* 技術情報ライブラリ
************************************************/
.links {
	margin-top: 5rem;
	padding-top: 5rem;
	padding-bottom: 5rem;
}

.links a {
	text-decoration: none;
}

/* 区切りのバー */
.links-title {
	display: flex;
	align-items: center;
	background: #eef5fc;
	border-radius: 20px;
	padding: 8px 14px;
	margin: 2rem 0 1rem 0;
}

.links-title-text {
	color: #20538F;
	font-weight: bold;
	white-space: nowrap;
}

.links-title-line {
	flex: 1;
	height: 1px;
	background: #20538F;
	margin-left: 20px;
}

/* リンクカード本体 */
.links-card {
	width: 100%;
	margin-top: 1rem;
	padding: 1rem 1.5em 0 1.5rem;
	border: 1px #777777 solid;
	border-radius: 15px;
	color: #1A1A1A;
}

.links-card:hover {
	outline: 2px #20538F solid;
}

.links-card:hover i {
	transition: transform 0.2s ease;
}

.links-card:hover i {
	transform: translateX(4px);
}

.links-card h3 {
	color: #20538F;
	height: 3em;
    font-size: clamp(16px, 1vw, 18px);
}

.links-card p {
    font-size: 14px;
    border-top: 1px #CCC solid;
}

/************************************************
* ニュース／お知らせ
************************************************/
.news-info {
	margin-top: 5rem;
	margin-bottom: 5rem;
}
.news-info .wrapper {
	padding-top: 1rem;
	border-top: 1px #777 solid;
}

.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

/* スマホの場合は日付と内容を2段にする */
@media (max-width: 991.98px) {
	.news-item {
		grid-template-columns: 1fr;
		gap: .4rem;
	}
}

.news-item time {
	font-size: 16px;
}

.news-item div {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    white-space: nowrap;
}

.news-item span {
	width: 90px;
	text-align: center;
	margin-right: 2rem;
	/*background: #B3EBFF;*/
	background: #444;
	color: #FFF;
	padding: 1px 10px;
	font-size: 12px;
	font-weight: bold;
	border-radius: 6px;
}

.news-item a {
    color: inherit;
	text-decoration: none;
}

.news-item:hover a {
    text-decoration: underline;
}

.old-news {
	margin-top: 3rem;
}

.old-news a {
	color: #1A1A1A;
}

.new-mark {
    display: inline-block;
    width: 50px!important;
    margin-left: 8px;
    background-color: #00AEEF!important;
}

/************************************************
* バッジ定義
************************************************/
.ctex-badge {
	float: right !important;
	text-align: center;
	background: #00AEEF;
	color: #FFF;
	padding: 0 10px;
	font-size: 12px;
	font-weight: bold;
	border-radius: 8px;
}