/* HOME page specific styles */

/* Logo block sizing */
#header p img { width: 170px; height: 60px; }

/* Language button size fix */
#header .langbt img { width: 131px; height: 20px; }

/* Remove borders from header and container */
#header {
	border-bottom: none !important;
	margin-bottom: 0 !important;
}

/* Container and main area styling */
#container {
	border-top: none !important;
	margin-top: 0 !important;
	width: 959px;
	margin: 0 auto;
	position: relative;
}

#container #main {
	width: 959px !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	position: relative;
	background-image: none !important;
	background-repeat: no-repeat !important;
}

.home-content {
	width: 959px;
	margin: 0 auto;
}

/* Business section (gray background block) */
.business-section {
  background: rgb(242, 242, 242);
  margin: 0;
  padding: 24px 0 28px;
}
.business-section .business-inner {
  width: 959px;
  margin: 0 auto;
}
.business-header { margin: 0 0 12px; text-align: center; }
.business-title-en {
  color: rgb(192, 0, 0);
  font-size: 28px;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin: 0 0 0.3em; /* 下に0.3行分の余白 */
}
.business-title-ja {
  color: rgb(192, 0, 0);
  font-size: 14px;
  font-weight: 700;
  margin-top: 0; /* タイトル間の余白はEN側で管理 */
}
.business-lead {
  line-height: 1.9;
  margin: 0 36px; /* 左右36pxの余白 */
}

/* Topics section (same style as Business) */
.topics-section {
  background: rgb(242, 242, 242);
  margin: 0;
  padding: 24px 0 28px;
}
.topics-section .topics-inner {
  width: 959px;
  margin: 0 auto;
}
.topics-header { margin: 0 0 0; text-align: center; }
.topics-title-en {
  color: rgb(192, 0, 0);
  font-size: 28px;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin: 0 0 0.3em;
}
.topics-title-ja {
  color: rgb(192, 0, 0);
  font-size: 14px;
  font-weight: 700;
  margin-top: 0;
}
.topics-subtitle {
  text-align: left; /* 中央寄せを解除 */
  color: #666;
  font-size: 24px; /* Topics(28px)より少し小さめ */
  margin: 8px 0 12px;
  margin-left: 36px; /* 左に36pxの余白 */
  position: relative;
  padding-left: 15px;
}

.topics-subtitle::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: rgb(192, 0, 0);
}
.topics-lead {
  line-height: 1.9;
  margin: 0 36px 0.8em; /* 左右36px、段落間に少し余白 */
}

.topics-images {
  display: flex;
  gap: 20px; /* 画像間の間隔を広く */
  margin-top: 3em; /* 3行分の余白 */
  margin-left: 36px; /* 左に36pxの余白 */
  margin-right: 36px; /* 右に36pxの余白 */
}
.topics-images .topics-item {
  width: calc((100% - 40px) / 3); /* 20px × 2の間隔を差し引く */
  flex-shrink: 0;
}

.topics-images .topics-item a {
  color: inherit; /* デフォルト色を継承 */
  text-decoration: none; /* 通常時はアンダーラインなし */
  transition: text-decoration 0.3s ease; /* スムーズなトランジション */
}

.topics-images .topics-item a:hover {
  text-decoration: underline; /* マウスオーバー時にアンダーライン表示 */
}
.topics-images .topics-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: none !important;
  box-shadow: none;
  display: block;
}
.topics-caption {
  margin: 8px auto 0; /* 中央寄せ */
  font-size: 14px;
  line-height: 1.7;
  width: 80%; /* 画像幅の80%に収める */
  text-align: center; /* 文字も中央揃え */
  color: inherit; /* デフォルト色を継承 */
  text-decoration: none; /* 通常時はアンダーラインなし */
  transition: text-decoration 0.3s ease; /* スムーズなトランジション */
}

.topics-caption:hover {
  text-decoration: underline; /* マウスオーバー時にアンダーライン表示 */
}

/* News section (like Topics, but without main title; uses white cards) */
.news-section {
  background: rgb(242, 242, 242);
  margin: 0;
  padding: 24px 0 28px;
}
.news-section .news-inner {
  width: 959px;
  margin: 0 auto;
}
.news-subtitle {
  text-align: left;
  color: #666;
  font-size: 24px; /* Topicsより少し小さい */
  margin: 8px 0 12px;
  margin-left: 36px; /* 左に36pxの余白 */
  position: relative;
  padding-left: 15px;
}

.news-subtitle::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: rgb(192, 0, 0);
}
.news-list {
  display: block; /* 縦積み */
  margin: 3em 36px 0; /* 両端36pxあける */
  background: #fff; /* 1つの背景 */
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  overflow: hidden; /* 角丸を内側にも適用 */
}
.news-item {
  width: 100%;
  background: transparent; /* 背景は親に任せる */
  padding: 14px 16px;
  box-sizing: border-box;
  border-bottom: 1px solid #eee; /* 仕切り線 */
  display: flex; /* アイコンとコンテンツを横並びに */
  align-items: flex-start; /* 上辺を揃えるためにflex-startに変更 */
  margin-bottom: 0; /* topics側と同等 */
}
.news-item:last-child { border-bottom: none; }

/* News icon styling - topics側と同等 */
.news-icon {
  margin-right: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  height: auto;
  /* news-dateの上辺とアイコンの上辺を明示的に揃える */
  padding-top: 0.6em; /* topics側と揃えて日付行のトップと合わせる */
}

.news-icon img {
  width: 20px;
  height: 20px;
  display: block;
  border: none !important;
  box-shadow: none;
}

/* News content styling - topics側と同等 */
.news-content {
  flex: 1;
  display: flex;
  align-items: flex-start; /* 上辺を揃えるためにflex-startに変更 */
}

.news-text {
  font-size: 1.2rem;   /* match global paragraph default */
  line-height: 1.8;    /* match global paragraph default */
  color:#333;         /* match global paragraph default */
}

.news-date {
  font-weight: bold;
  color: rgb(192, 0, 0);
  /* アイコンとの位置調整のための基準点 */
  line-height: 1.2; /* より正確な位置調整のため */
}

.news-category {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5em;
  padding: 0.1em 0.6em;
  border-radius: 999px;
  background: rgb(235, 235, 235);
  color: #333;
  font-size: 0.9em;
  line-height: 1.2;
}

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

.news-text a:hover {
  color: inherit;
  text-decoration: underline;
}

.news-text .news-date {
  font-weight: bold;
  color: rgb(192, 0, 0);
}

/* Legacy styles for fallback content */
.news-date {
  color: #777;
  font-size: 12px;
  margin-bottom: 6px;
}
.news-title {
  color: #222;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 700;
}
.business-images {
  display: flex;
  justify-content: space-between; /* 画像を均等に配置 */
  gap: 0px; /* 画像間の間隔を完全に削除して横幅を最大化 */
  margin-top: 3em; /* 3行分相当のスペース */
  padding: 0 0px; /* 左右の余白を完全に削除して横幅を最大化 */
}
.business-images img {
  width: calc(100% / 3); /* ギャップと余白を完全に削除して横幅を最大化 */
  height: 240px; /* 高さを元の240pxに戻す */
  object-fit: contain; /* 画像全体が枠内に収まるように調整 */
  object-position: center; /* 画像を中央に配置 */
  border: none !important;
  box-shadow: none;
  border-radius: 8px; /* 角を丸くして見た目を良くする */
  background-color: #f3f3f3; /* 余白部分の背景色をbusiness-sectionと合わせる */
}

/* Home images styling - gmenuの端と揃える */
.home-images {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin: 0; /* 上下マージンを0にリセット */
	width: 959px; /* gmenuと同じ幅に固定 */
	padding: 0;
	background: none;
	box-sizing: border-box;
}

.home-images .home-image-card {
	position: relative;
	flex: 1 1 calc((100% - 20px) / 2);
	max-width: calc((100% - 20px) / 2);
	height: 300px;
	overflow: hidden;
	border: none;
	box-shadow: none;
	transition: box-shadow 0.3s ease;
	border-radius: 4px;
}

.home-images .home-image-card a {
	display: block;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

.home-images .home-image-card img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.home-images .home-image-card:hover {
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.home-images .home-image-card:hover img {
	transform: scale(1.1);
}

/* Directors CTA button (replaces to_directors.jpg) */
.cta-directors {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 159px; /* gmenu 1項目幅に合わせる */
    height: 38px; /* gmenuの高さに合わせる */
    margin: 0 auto;
    background: rgb(192, 0, 0); /* gmenuと同じ赤 */
    border: 1px solid rgb(192, 0, 0);
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    color: #ffffff;
    box-sizing: border-box;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none;
}

.cta-directors:hover,
.cta-directors:focus {
    background: #ffffff;
    color: rgb(192, 0, 0);
    transform: translateY(-2px);
    box-shadow: none;
    border-color: rgb(192, 0, 0);
}

.cta-directors:active {
    background: #ffffff;
    color: rgb(168, 0, 0);
    transform: translateY(0);
    box-shadow: none;
    border-color: rgb(192, 0, 0);
}

.cta-directors__label {
    font-size: 14px;
    font-weight: normal;
    letter-spacing: 0.06em;
    color: inherit;
    line-height: 1;
}

/* Slider styling */
.home-slide {
	margin: 0 auto 40px auto !important; /* 上下マージンを0に、下マージン40px */
	width: 959px !important;
	box-sizing: border-box;
	box-shadow: 0 0 0 1px rgb(192, 0, 0);
	overflow: hidden;
	line-height: 0;
}

/* Remove default list spacing inside slider */
.home-slide ul.home-slider { 
	margin: 0; 
	padding: 0; 
	list-style: none; 
}

.home-slide li { 
	margin: 0; 
	padding: 0; 
}

.home-slide .slick-slider { 
	margin-bottom: 0; 
}

.home-slide .slick-list { 
	margin: 0;
	padding: 0;
}

.home-slide .slick-track { 
	margin: 0; 
}



.home-slide .slick-slide {
	padding: 0;
	box-sizing: border-box;
}

.home-slide .slick-slide a {
	display: block;
	box-sizing: border-box;
	line-height: 0;
}

.home-slide .slick-slide img { 
	width: 100%; 
	height: auto; 
	display: block; 
}

/* Avoid 404 for missing ajax-loader.gif in slick-theme.css */
.slick-loading .slick-list { 
	background: none !important; 
}


/* Reduce inner top padding on year label area to close gap */
#header .yearwrap { 
	padding-top: 0; 
}

/* Footer overrides for multi-line content */
#pageWrap #footer { 
	height: auto; 
	padding: 19px 21px; 
}

#footer .footer-links { 
	font-size: 12px; 
	color: #565749; 
	line-height: 1.8; 
	text-align: center; 
}

#footer .footer-note { 
	margin: 8px 0 0; 
	font-size: 12px; 
	color: #565749; 
	text-align: center; 
}

#footer .copyright { 
	float: none; 
	width: auto; 
	text-align: center; 
	font-size: 12px; 
	margin-top: 8px; 
}
