@charset "utf-8";

html {
  font-size: 10px;
}

body {
  color: #333;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  margin: 0;
  min-height: 100vh;
  width: 100%;
}

img {
  max-width: 100%;
}

a {
  color: #333;
  text-decoration: none;
}

main {
  margin-bottom: 100px;
  min-height: 500px;
}

.wrapper {
  display: grid;
  grid-template-rows: 120px auto 40px;
}

/*
ヘッダー
*/
.wrapper-header {
  display: flex;
  justify-content: space-between;
  padding: 0 120px;
}

.wrapper-header h1 {
  align-items: center;
  display: flex;
  font-size: 4rem;
  font-weight: normal;
}

.site-title {
  align-items: center;
  display: flex;
  gap: 30px;
}

.header-nav {
  align-items: center;
  display: flex;
}
.header-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header-nav ul li + li {
  margin-left: 5px;
}
.header-nav ul li a {
  border-bottom: 3px solid #fff;
  display: inline-block;
  font-size: 1.8rem;
  padding: 10px 30px;
  text-align: center;
  transition: 0.3s;
}
.header-nav ul li a:hover,
.header-nav ul li.active a {
  border-color: #5B9FBF;
}
.wrapper-header button {
  display: none;
}
.wrapper-header .sp-site-title {
  display: none;
}

/*
コンテンツ
*/
/* .container-main {
  margin-top: 40px;
} */

.contents-area {
  margin: 40px auto 0;
  padding: 0 30px;
  max-width: 1200px;
}

.main-title {
  border-bottom: 2px solid #5B9FBF;
  border-left: 10px solid #5B9FBF;
  margin: 0 0 30px;
  padding: 15px;
}

.catalog-container {
  display: grid;
  gap: 45px;
  grid-template-columns: repeat(auto-fit, minmax(350px, 350px));
  justify-content: center;

  > a {
    display: grid;
    gap: 0;
    grid-template-rows: subgrid;
    grid-row: span 2;
  }
}
.catalog-box {
  box-shadow: 0 0 5px 1px rgba(0, 0, 0, .2);
  transition: 0.3s;
}
.catalog-box:hover {
  opacity: .6;
}
.catalog-img {
  text-align: center;
}
.catalog-txt-box {
  padding: 20px;
}
.catalog-txt {
  font-size: 2rem;
  margin: 0;
}

.category {
  border-radius: 10px;
  color: #fff;
  font-size: 1.4rem;
  margin: 0 0 20px;
  padding: 3px;
  text-align: center;
  width: 130px;
}
.category.ec-site {
  background-color: #E88D5C;
}
.category.corporate-site {
  background-color: #417BFD;
}
.category.lp-site {
  background-color: #1A9544;
}
.category.others {
  background-color: #e04242;
}
.catalog-btn {
  align-self: end;
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  text-align: center;
}
.catalog-btn a {
  background-color: #eee;
  display: block;
  padding: 10px;
}
.catalog-btn a:hover {
  background-color: #ddd;
}

.no-site {
  font-size: 2.5rem;
  text-align: center;
}

.search-box {
  display: flex;
  margin-bottom: 30px;
}
.search {
  border: 1px solid #aaa;
  border-radius: 5px 0 0 5px;
  flex: 1;
  padding: 7px;
}
.search-btn {
  background-color: #eee;
  border: 1px solid #aaa;
  border-left: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  width: 60px;
}
.search-btn:hover {
  background-color: #ddd;
}

.catalog-category {
  list-style: none;
  padding: 0;
}
.catalog-category a {
  display: block;
  padding: 10px 7px;
}
.catalog-category a:hover {
  background-color: #eee;
}

/*タブエリア*/
.tab_box .btn_area {
  border-bottom: 2px solid #5B9FBF;
	display: flex;
  white-space: nowrap
}

.tab_box .tab_btn {
	background: #ddd;
	color: #5B9FBF;
	cursor: pointer;
  font-size: 2.6rem;
  margin: 0;
	padding: 15px 50px;
  position: relative;
	text-align: center;
	transition: all 0.3s;
  width: 33.333%;
}

.tab_box .tab_btn::before {
  width: calc(100% - 20px);
  height: 0;
  display: block;
  position: absolute;
  left: 0;
  content: "";
  top: 0;
}
.tab_box .tab_btn::before{
  border-bottom: solid 20px transparent;
  border-left: solid 20px #fff;
  bottom: 100%;
}

.tab_box .tab_btn + .tab_btn {
	margin-left: 2px;
}

.tab_box .tab_btn:hover {
	background-color: #5B9FBF;
  color: #fff;
}

.tab_box .tab_btn.active {
    background:#5B9FBF;
    color:#fff;
}
.tab_box .tab_btn.active::before {
  border: none;
}

.tab_box .panel_area {
    padding: 30px 0;
}

.tab_box .tab_panel {
  opacity: 0;
  visibility: hidden;
	transition: all 0.5s;
}
.tab_box .tab_panel .tab_panel_inner {
  display: none;
}

.tab_box .tab_panel.active {
  opacity: 1;
  visibility: visible;
}
.tab_box .tab_panel.active .tab_panel_inner {
  display: block;
}

.no-pc {
  display: none;
}

/*
フッター
*/
.wrapper-footer {
  background-color: #eee;
  font-size: 1.4rem;
  text-align: center;
}

@media screen and (max-width: 1349px) {
  .wrapper-header {
    padding: 0 4.3vw;
  }
}

/*
タブレットサイズ
*/
@media screen and (max-width: 1199px) {
  .no-pc {
    display: inline-block;
  }

  .wrapper {
    grid-template-rows: 100px auto 40px;
  }

  .wrapper-header {
    display: block;
    padding: 0 8vw;
  }

  .wrapper-container {
    overflow: hidden;
  }

  .header-nav {
    justify-content: end;
  }

  .contents-area {
    width: 90%;
  }

  .tab_box .btn_area {
    border: none;
    display: grid;
    gap: 10px 20px;
    grid-template-columns: 1fr 1fr;
  }
  .tab_box .tab_btn {
    width: auto;
  }
  .tab_box .tab_btn::before {
    border: none;
  }
  .tab_box .tab_btn:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }
  .tab_box .tab_btn:nth-child(2) {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }
  .tab_box .tab_btn:nth-child(3) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }
  .tab_box .tab_btn:nth-child(4) {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
  }
  .tab_box .tab_btn:nth-child(5) {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
  }
  .tab_box .tab_btn + .tab_btn {
    margin: 0;
  }
}

/*
スマホサイズ
*/
@media screen and (max-width: 767px) {
  .wrapper {
    grid-template-rows: 15vw auto 40px;
  }

  .wrapper-header {
    padding: 20px 20px 0;
  }
  .wrapper-header {
    font-size: 3.5vw;
  }
  .wrapper-header h1 {
    display: block;
    font-size: 1.4em;
    margin: 0;
  }
  .wrapper-header h1 a img {
    min-width: 100px;
    width: 20vw;
  }
  .site-title {
    gap: 20px;
  }
  .open-btn {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    margin-left: auto;
  }
  .wrapper-header .sp-site-title {
    display: block;
    font-size: 7vw;
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    text-align: center;
  }

  .wrapper-header button {
    display: block;
  }
  .wrapper-header .btn {
    background-color: #5B9FBF;
    border: none;
    height: 15vw;
    position: relative;
    width: 15vw;
  }
  .btn-line {
    display: block;
    position: relative;  /* バーガー線の位置基準として設定 */
    width: 100%;  /* 線の長さと高さ */
    height: 1vw;
    background-color: #fff;  /* バーガー線の色 */
    transition: .2s;
  }
  .btn-line::before,
  .btn-line::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #fff;
    transition: .5s;
  }
  .btn-line::before {
    /* 上の線の位置 */
    right: 0;
    top: -4vw;
  }
  .btn-line::after {
    /* 下の線の位置 */
    bottom: -4vw;
    right: 0;
    width: 100%;
  }
  .close-btn {
    color: #fff;
    margin: 2vw 2vw 2vw auto;
  }
  .close-btn .btn-line {
    background-color: transparent;
  }
  .close-btn .btn-line::before {
    background-color: #fff;
    top: 0;
    transform: rotate(45deg);
  }
  .close-btn .btn-line::after {
    background-color: #fff;
    bottom: 0;
    transform: rotate(-45deg);
  }

  .header-nav {
    background-color: #fff;
    display: block;
    position: fixed;
    min-height: 100vh;
    right: -70vw;
    top: 0;
    transition: .3s;
    width: 70vw;
    z-index: 5;
  }
  .header-nav.active {
    right: 0;
  }
  .header-nav ul {
    display: block;
  }
  .header-nav ul li {
    display: block;
  }
  .header-nav ul li + li {
    margin-left: 0;
  }
  .header-nav ul li a {
    font-size: 4vw;
    padding: 20px 0;
    width: 100%;
  }
  .header-nav ul li.active a {
    background-color: #5B9FBF;
    color: #fff;
  }

  .menu-back {
    opacity: 0;
  }
  .menu-back.active {
    background-color: #333;
    content: "";
    height: 100vh;
    opacity: .5;
    position: fixed;
    right: 0;
    top: 0;
    width: 100vw;
    z-index: 2;
  }

  .contents-area {
    margin: 50px 20px 0;
    padding: 0;
    width: auto;
  }

  .tab_box .tab_btn {
    font-size: 4vw;
    padding: 15px 0;
  }

  .catalog-container {
    /* grid-template-columns: 1fr; */
    grid-template-columns: repeat(auto-fit, minmax(auto, 350px));
  }

  .no-site {
    font-size: 2rem;
  }
}