@charset "utf-8";

/*-------------------------------------
css初期化
--------------------------------------*/
img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}
* {
	margin: 0;
	padding: 0;
}

body {
	font-family: "Yu Gothic", "游ゴシック体", YuGothic, Montserrat, sans-serif;
	font-size: 100%;
}


div:after {
	content: "";
	display: block;
	clear: both;
}

/*-------------------------------------
タグの基本設定
--------------------------------------*/
body {
	background: ffffff;
	line-height: 1.6;
	font-size: 81.25%;
	color: #4f5354;
}

html {
	overflow-y: scroll;
}

a {
	text-decoration: none;
	outline: none;
	color: #4f5354;
}

a:hover{
	text-decoration: underline;
	color: #4f5354;
}

a:hover img{
	opacity: 0.80;
}

/*--------------------------------------------------------------------
Container
--------------------------------------------------------------------*/
div#Container {
	width: 945px;
	padding: 10px 0;
	margin: 0 auto;
	background: #fff;
}

/*--------------------------------------------------------------------
h1（画面端まで線を引く設定）
--------------------------------------------------------------------*/
h1 {
  padding: 20px 0 px;
  text-align: left;
  font-size: 140%;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: #333;
  position: relative; /* 線の基準点になります */
}

h1::after {
  content: "";
  position: absolute;
  left: 50%;                 /* 画面の中央へ */
  bottom: 0;                 /* 下に配置 */
  transform: translateX(-50%); /* 中央寄せの補正 */
  width: 100vw;              /* 画面の横幅いっぱい(100 Viewport Width) */
  border-bottom: 1px solid #ddd; /* 線の太さと色 */
}
/*--------------------------------------------------------------------
Contents
--------------------------------------------------------------------*/
div#Contents {
	width: 945px;
	margin: 0 auto;
	padding: 10px 0;
}

div#Contents:after {
	display: block;
	clear: both;
	height: 0;
	line-height: 0;
	font-size: 0;
}

/*--------------------------------------------------------------------
Nav
--------------------------------------------------------------------*/
nav {
	width: 945px;
	margin: 0 auto;
	position: relative;
}

nav ul li {
	list-style: none;
	width: 189px;
	margin: 0 0 20px 0;
	float: left;
}

nav ul li a img:nth-child(2){
	position: absolute;
	margin-left: -189px;
  transition: opacity 1s;
}

nav ul li a:hover img:nth-child(2){
  opacity: 0;
}

/*--------------------------------------------------------------------
Main
--------------------------------------------------------------------*/
body.home div#Main {
	width: auto;
}

div#Main h2 {
	font-size: 105%;
	font-weight: bold;
	color: #4f5354;
}

div#Main div#TopImg {
	margin: 5px auto 0 auto;
	text-align: center;
}

div#Main div#PortImg {
	margin: 5px auto 0 auto;
	text-align: center;
}

div#Main p {
	color: #4f5354;
	margin-top: 10px;
}

div#Main table {
	width: 550px;
	margin: 20px auto 80px auto;
	border-collapse: collapse;
	border: none;
}

/* --- テーブルをリスト風デザインにする --- */

div#Main table tr {
	border-bottom: 0.5pt solid #a6a6a6;
}

div#Main table tr th,
div#Main table tr td {
	border: none;
	padding: 14px 8px;
	text-align: left;
	vertical-align: top;
}

div#Main table tr th {
	width: 18%;
	font-weight: 300;
	color: #7a7a7a;
	white-space: nowrap;
}

div#Main table tr td {
	width: 82%;
}

div#Main table tr td ol {
	padding: 0 0 0 8px;
	margin: 0 0 0 8px;
	list-style-type: "・";
}

div#Main table tr td ol {
	padding: 0 0 0 8px;
	margin: 0 0 0 8px;
}

/*--------------------------------------------------------------------
pagetop
--------------------------------------------------------------------*/
p.pagetop {
	text-align: right;
}

/*--------------------------------------------------------------------
address
--------------------------------------------------------------------*/
address {
	clear: both;
	text-align: center;
	color: #4f5354;
}
/* ホーム画面：トップ画像を945pxで自然に表示 */

body.home div#TopImg {
	width: 945px;
	margin: 5px auto 0 auto;
	text-align: center;
}

body.home div#TopImg img {
	width: 100%;
	height: auto;
	display: block;
}
/* Work見出しの幅を揃え、下に余白を追加 */
div#Main .work-title {
  width: 700px;
  margin: 0 auto 10px auto; /* 下に20pxの余白を追加 */
}
p.thanks {
	text-align: center;
}
/*--------------------------------------------------------------------
address (フッター)
--------------------------------------------------------------------*/
address {
  clear: both;
  text-align: center;
  color: #888;          /* 色を少し薄くして存在感を抑える */
  font-style: normal;   /* 斜体を解除 */
  font-size: 11px;      /* かなり小さめのサイズ */
  letter-spacing: 0.0em; /* 文字の間隔を少し開けて読みやすく */
  margin-top: 30px;     /* 上のコンテンツとの距離を広げる */
  padding-bottom: 30px;
}
/*-------------------------------------
トップ画像 5分割リンク設定
--------------------------------------*/
body.home div#TopImg {
  position: relative;
}

/* 5分割リンク共通 */
body.home div#TopImg a {
  position: absolute;
  top: 0;
  height: 100%;
  display: block;
  z-index: 2;
}

/* 各カラム幅（945px ÷ 5 = 189px） */
body.home div#TopImg a.col1 { left: 0;     width: 189px; pointer-events: none; }
body.home div#TopImg a.col2 { left: 189px; width: 189px; }
body.home div#TopImg a.col3 { left: 378px; width: 189px; }
body.home div#TopImg a.col4 { left: 567px; width: 189px; }
body.home div#TopImg a.col5 { left: 756px; width: 189px; }

/* ホバー時にカーソルを出す */
body.home div#TopImg a:not(.col1) {
  cursor: pointer;
}
/*-------------------------------------
トップ画像：ホバー可視化
--------------------------------------*/

/* ホバー用の半透明レイヤー */
body.home div#TopImg a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.25); /* 白っぽく */
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ホバー時に表示 */
body.home div#TopImg a:hover::after {
  opacity: 1;
}

/* リンクなし列は反応させない */
body.home div#TopImg a.col1::after {
  display: none;
}
