@charset "utf-8";
/**
 * Layout Styles
 * レイアウト関連のスタイル
 */

/******************** 全体幅 ********************/
#header {
  margin: 0 auto;
  width: 960px;
}

/******************** topページデータ ********************/
.top {
  width: 958px;
  height: 298px;
  border: 0;
  display: block;
  margin: 0;
  padding: 0;
  background: url(../images/top/main.jpg) no-repeat center 0;
  position: relative;
  line-height: 0;
  font-size: 0;
}

.top img {
  display: block;
}

.top-absolute {
  position: absolute;
  top: 50px;
  left: 20px;
  font-size: 17px;
  line-height: 1.5;
}

/******************** コンテンツ位置 ********************/
#container {
  width: 960px;
  min-height: 100%;
  margin: 0 auto;
}

#main-t {
  width: 576px;
  height: auto;
  float: left;
  margin: 20px 22px;
  padding-bottom: 13px;
}

#main {
  width: 768px;
  height: auto;
  float: right;
  margin-bottom: 50px;
}

.breadcrumbs {
  height: 20px;
  line-height: 20px;
}

#contents {
  background-color: #ffffff;
  padding-bottom: 40px;
  padding-top: 20px;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#contents p {
  margin: 0 25px 20px 25px;
}

/******* Sidebar *******/
.sidebar {
  float: left;
  width: 170px;
  height: auto;
  margin-left: 0px;
  margin-bottom: 50px;
}

.sidebar ul {
  color: #ffffff;
  font-weight: bold;
}

.sidebar ul li {
  display: flex;
  align-items: center;
  width: 170px;
  height: 40px;
  margin: 0 0 4px 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.15;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.sidebar ul li:first-child {
  justify-content: center;
}

.sidebar ul li a {
  display: flex;
  align-items: center;
  width: 170px;
  height: 40px;
  padding-left: 17px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.sidebar ul li a:hover {
  background: linear-gradient(135deg, rgba(157, 0, 0, 0.12) 0%, rgba(157, 0, 0, 0.20) 100%);
  color: #9d0000;
  border-radius: 4px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.sidebar ul li:first-child a:hover {
  color: inherit;
  background: inherit;
}

.sidebar ul.sgray li a:hover {
  background: linear-gradient(135deg, rgba(157, 0, 0, 0.12) 0%, rgba(157, 0, 0, 0.20) 100%);
  color: #9d0000;
  border-radius: 4px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.sidebar ul.sgray li:first-child a:hover {
  color: #9d0000 !important;
  background: inherit;
}

.list-opened{
  justify-content: start !important;
  padding-left: 17px !important;
}

.cir {
  width: 170px;
  height: 40px;
  line-height: 40px;
  display: block;
  background-color: #9d0000;
  text-align: center;
  border-radius: 4px;
}

.cir.white a {
  color: #fff;
}

.cir2 {
  width: 170px;
  height: 40px;
  line-height: 40px;
  display: block;
  background-color: #777777;
  text-align: center;
  border-radius: 4px;
}

.tri {
  position: relative;
  padding-left: 0;
  width: 170px;
  height: 40px;
  line-height: 40px;
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: 4px;
  box-sizing: border-box;
}

/* リンクなしの場合のみpaddingを適用 */
.tri:not(:has(a)) {
  padding-left: 17px !important;
}

.tri::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid #9d0000;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  pointer-events: none;
  z-index: 1;
}

.tri:hover::before {
  border-left-color: #9d0000;
}

.tri2 {
  position: relative;
  padding-left: 0;
  width: 170px;
  height: 40px;
  line-height: 1.15;
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: 4px;
  box-sizing: border-box;
}

/* リンクなしの場合のみpaddingを適用 */
.tri2:not(:has(a)) {
  padding-left: 17px !important;
}

.tri2::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid #9d0000;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  pointer-events: none;
  z-index: 1;
}

.tri2:hover::before {
  border-left-color: #9d0000;
}

.triangle {
  background: url(../images/main/triangle.gif);
  background-repeat: no-repeat;
  background-position: left center;
  padding-left: 15px;
  line-height: 2;
}

/******************** 見出し ********************/
#main h2 {
  height: 55px;
  line-height: 55px;
  display: block;
  font-size: 24px;
  padding-left: 15px;
  margin-bottom: 0;
  color: #ffffff;
  background-color: #777777;
  border-radius: 4px 4px 0 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#main h3 {
  line-height: 40px;
  display: block;
  font-size: 20px;
  padding-left: 15px;
  margin-bottom: 20px;
  margin-top: 50px;
  color: #ffffff;
  background-color: #999999;
}

#main h4 {
  font-size: 14px;
  color: #b20000;
  font-weight: bold;
  border-left: 5px solid #b20000;
  border-bottom: 1px solid #b20000;
  padding: .1em .4em;
  font-weight: bold;
}

/******************** フロー ********************/
#contents dt {
  float: left;
  width: 150px;
}

#contents dd {
  float: left;
  width: 550px;
}

/******************** お問合せ ********************/
.box {
  height: 75px;
  width: 200px;
  display: block;
  float: right;
  margin: 10px 15px 0px 0px;
  line-height: 50px;
  color: #ffffff;
  font-weight: bold;
  text-align: center;
}

.box-t {
  height: 110px;
  width: 480px;
  display: block;
}

/******************** フッター ********************/
/* フッタースタイルは css/footer.css で管理 */

address {
  color: #666666;
  font-style: normal;
  font-size: 13px;
}

.pl60 {
  padding-left: 60px;
}

/******************** テーブルスタイル ********************/
#contents table {
  width: calc(100% - 25px);
  border-collapse: collapse;
  margin: 0 0 20px 0;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

#contents table td {
  padding: 10px;
  border: 1px solid #e0e0e0;
  vertical-align: top;
  line-height: 1.8;
  font-size: 14px;
}

#contents table tr td:first-child {
  background-color: #f5f5f5;
  font-weight: bold;
  color: #333333;
  width: 130px;
  text-align: center;
  border-right: 2px solid #9d0000;
}

#contents table tr:hover td {
  background-color: #fafafa;
}

#contents table tr:hover td:first-child {
  background-color: #eeeeee;
}

#contents table br {
  line-height: 2.2;
}
