
html, body {
  margin: 0;
  padding: 0;
}
main {
	margin-top: 60px; /* ヘッダーの高さと同じ */
	background-color: #F9FBFF;
}
p {
	font-size:1.0em;;
	line-height: 2.2;
	margin-left: 4px;
	margin-right: 4px;
}
li {
	font-size:1.0em;;
	line-height: 1.8;
	margin-bottom: 16px;
}
h1,h2 {
	font-size:1.4em;;
	line-height: 1.4;
}
h3 {
	font-size:1.2em;;
	line-height: 1.4;
}
.line {
	height: 2px;
	background-color: #ddd;
	margin: 0;
}
a.no-color {
  color: inherit;
  text-decoration: none;
}
a.no-color:hover {
  font-size: 1.1em;
  transform: scale(1.02); 
}
a.no-color2 {
  color: inherit;
  text-decoration: none;
}
a.no-color2:hover {
  font-size: 1.0em;
  transform: scale(1.00); 
}
th {
  text-align: left;
  border-bottom: 1px solid #ccc; width: (100vw-16px);
  padding: 8px;
}
td {
  text-align: left;
  padding: 28px;
  margin-left: 32px;
}


.arrow-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  position: relative;
  padding-right: 20px;
}

.arrow-link::after {
  content: "";
  position: absolute;
  bottom: 2px;
  right: 2px;
 /* transform: translateY(-1%); */
  width: 24px;
  height: 24px;
  background-image: url('./img/nav-arrow-1.png');
  background-size: contain;
  background-repeat: no-repeat;
}
.arrow-link:hover {
  font-size: 1.1em;
  transform: scale(1.02); 
}


@media screen and (max-width: 768px) {
	p {
		font-size:0.9em;;
		line-height: 1.8;
	}
	li {
		font-size:0.9em;;
		line-height: 1.4;
		margin-bottom: 8px;
	}
	h1,h2 {
		font-size:1.2em;;
		line-height: 1.3;
	}
	h3 {
		font-size:1.0em;;
		line-height: 1.3;
	}
	.line {
		height: 1px;
		background-color: #ddd;
		margin: 0;
	}
  th {
    padding: 16px;
  }
  td {
    padding: 16px;
  }
	.arrow-link::after {
	width: 20px;
	height: 20px;
	}
}

/* --------------------------------------------------- */
/* ヘッダー全体 */
/* --------------------------------------------------- */
.header-container {
	position: fixed;
	display: flex;
	top: 0px;
	left: 0;
	width: 100%;
	height: 60px;
	align-items: center;
	padding: 0px 20px;
	box-sizing: border-box;
	background-color: white;
	color: black;
	z-index: 1000;
	justify-content: space-between;
}

/* --------------------------------------------------- */
/* ヘッダのメニューロゴ */
/* --------------------------------------------------- */
.logo img {
	margin-top: 10px;
	height: 45px;
}
#google_translate_element {
	margin-top: 40px;
}
/* --------------------------------------------------- */
/* ヘッダのメニューリスト */
/* --------------------------------------------------- */
.menu-list {
  margin-top: 38px;
  display: flex;
  list-style: none;
  gap: 18px;
  padding: 0;
}

.menu-list li a {
  color: #777;
  text-decoration: none;
  font-weight: bold;
}

/* --------------------------------------------------- */
/* ハンバーガーアイコン */
.hamburger {
  margin-top: 20px;
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: black;
  display: white;
}
/* スマホ表示時 */
@media screen and (max-width: 868px) {
  .menu-list {
    display: none;
    flex-direction: column;
    background-color: white;
    border: 2px solid #ccc;
    position: absolute;
    top: 20px;
    right: 1px;
    padding: 10px;
    border-radius: 5px;
  }
  .menu-list.show {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
}


/* --------------------------------------------------- */
/* ヘッダ画像とテキスト */
.hero {
	position: relative;
	width: 100%;
	height: 250px;
	background-size: auto 100%;
	background-repeat: norepeat;
	background-position: center;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.hero--home {
	background-image: url('./img/home.jpg');
}

.hero-image {
	height: 100%;
	width: 100%;
	object-fit: contain;
	z-index: 1;
}

.hero-text {
	position: absolute;
	color: white;
	font-size: 1.8em;
	font-weight: bold;
	text-shadow: 4px 4px 6px rgba(0,0,0,0.6);
	padding: 10px 20px;
	text-align: center;
	z-index: 2;
}

@media screen and (max-width: 768px) {
	.hero--home {
		height: 180px;
	}
	.hero-text {
		font-size: 1.2em;
		padding: 8px 16px;
	}
}


/* --------------------------------------------------- */
/* 内容 */
/* --------------------------------------------------- */
.contents {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 10px 20px;
  box-sizing: border-box;
}

.contents--row{
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
	flex-direction: row;
	align-items: flex-start;
}
.col-left {
	font-weight: bold;
	width: 250px;
}
.col-right {
  flex: 1;
  overflow: hidden;
  margin-top: 16px; 
  margin-right: 16px; 
  margin-left: 16px;
  width: 100vm-16px;
}
.contents--table { margin-top: 0; font-size: 1.0rem; width: 100%;line-height: calc(50 / 28); }
.contents--table th,
.contents--table td{ display: block; width: 100vm-16px; }
.contents--table th{ padding: 0; }
.contents--table td{ padding: 6px 0 0; }
.contents--table tr:not(:last-child) td{ padding-bottom: 16px;  }
.contents--table tr:not(:first-child) th{ margin-top: 8px; }
/*    .contents--table tr:not(:last-child) td{ padding-bottom: 16px; border-bottom: 1px dashed #707070; } */
.section-title {
  position: relative;
  padding-left: 12px;
  margin-bottom: 20px;
  font-weight: bold;
  border-bottom: 2px solid #BBB; /* 下線 */
}
.section-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: #FF0000; /* 左縦線の色 */
}
@media screen and (max-width: 768px) {
  .contents--row {	flex-direction: column;	}
  .col-left {	width: 100%;	}
  .contents--table { font-size: 0.8rem; }
  .contents--table tr:not(:last-child) th,
  .contents--table tr:not(:last-child) td{  padding-bottom: 8px; }
  .contents--table tr:not(:first-child) th{ margin-top: 8px; }
  .contents--table tr:last-child th,
  .contents--table tr:last-child td{ padding-bottom: 0; }
/*    .contents--table tr:not(:last-child) td{ border-bottom: 1px dashed #707070; } */

  .section-title {
	padding-left: 8px;
	margin-bottom: 16px;
	}
	.section-title::before {
	width: 2px;
	height: 100%;
	}
}


/* --------------------------------------------------- */
/* グループ企業 */
/* --------------------------------------------------- */
.contents-group {
	width: 100%;            /* 画面サイズに応じて縮小 */
	text-align: center;
	flex-direction: column; /* 初期は縦並び */
	margin: 0 auto;         /* 中央揃え */
	padding: 10px 10px;        /* 画面端との余白（任意） */
	box-sizing: border-box; /* パディング込みで幅を計算 */
	height: auto;
}

.link-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	padding: 8px;
	flex-wrap: wrap; /* ← これが改行の鍵！ */
	row-gap: 2px; /* ← 上下の間隔を指定 */
	column-gap: 16px; /* ← 左右の間隔を指定（任意） */
}

/* 企業ブロックのレイアウト */
.company-block {
  min-width: 120px;
  max-height: 180px;
  margin-bottom: 16px;
  flex: 1 1 120px;          /* 幅が足りなくなったら改行される */
  display: block;
  background-color: #FFF;
  padding: 24px;
  text-align: center;
  border-right: 2px solid #ccc;
  border-bottom: 2px solid #ddd;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  color: #333;
  box-shadow: 0 1px 1px  #707070;
}

.company-block a {
  display: inline-block;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s ease;
}

.company-block a:hover {
  transform: scale(1.02);
}

.company-block img {
  max-width: 200px;
  width: 100%;
  height: auto;
  margin-top: 10px;
  margin-bottom: 4px;
  border-radius: 8px;
  /* box-shadow: 0 2px 6px rgba(0,0,0,0.1); */
}

.company-block h2 {
  font-size: 1.0em;
  font-weight: normal;
  text-shadow: 0 0px 1px #777;
}
.company-block p {
  font-size: 0.8em;
  font-weight: normal;
}
@media screen and (max-width: 768px) {
/*  .link-grid {
    grid-template-columns: 1fr;
  }
    */
  .company-block {
  font-weight: normal;
    border-right: 1px solid #ccc;
  }
  .company-block img {
    margin-top: 4px;
    margin-bottom: 2px;
    width: 100%;
  }
  .company-block p {
    font-size: 0.8em;
  }
}


/* --------------------------------------------------- */
/* 会社案内 */
/* --------------------------------------------------- */
.company--map {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9の比率 */
  height: 0;
  overflow: hidden;
}

.company--map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
    .company--address{ margin-top: 30px; }
    .company--address dt{ display: block; padding-left: 36px; font-size: 1.8rem; font-weight: bold; letter-spacing: 0.072em; line-height: calc(27 / 18); background-repeat: no-repeat; background-position: 0 center; background-size: 26px auto; }
    .company--address dt.subway{ background-image: url(./img/train.png); }
    .company--address dt.car{ background-image: url(./img/car.png); }
    .company--address dt{ font-size: 1.2rem; padding-left: 29px; background-size: 19px auto; }
    .company--address dt:not(:nth-child(-n+1)){ margin-top: 25px; }
    .company--address dd{ font-size: 1.0rem; line-height: calc(44 / 28); }
    .corporate-txt{ display: table; margin: 0 auto; max-width: unset; font-size: 1.6rem; line-height: calc(53 / 32); }
    .corporate--pht{  position: relative; padding: 5px;margin: 10px; max-width: 90%; width: 100%; height: auto; display: block; overflow: hidden;}
    .company--history dt,
    .company--history dd{ font-size: 1.2rem; line-height: calc(44 / 28); }
    .company--history dt{ width: 145px; }
    .company--history dt:after{ width: 50px; top: 10px; right: 0; }
    .company--history dd{ margin-top: 8px; width: 100%; }
    .company--history dd:not(:last-of-type){ padding-bottom: 32px; }

@media screen and (max-width: 768px) {
    .company--address dt{ font-size: 0.8rem; }
    .company--address dd{ font-size: 0.8rem; }
    .corporate--pht{  margin: 10px; max-width: 80%; }
    .company--history{ display: flex; flex-wrap: wrap; align-items: flex-start; }
    .company--history dt:not(:last-of-type),
    .company--history dd:not(:last-of-type){ min-height: 90px; padding-bottom: 10px; }
    .company--map{ padding-top: 12px; }
}

/* フッタ */
footer {
  /*position: fixed;*/
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background-color: #555;
  color: white;
  display: flex;
  align-items: center;      /* 垂直方向の中央揃え */
  justify-content: center;  /* 水平方向の中央揃え */
  font-size: 0.9em;
  z-index: 100;
}
