body {
  background-color: #000;
}
@media screen and (min-width: 769px) {
  #main_visual {
    position: relative;
    width: 100%;
    height: calc(100vh - 162px);
    max-height: 300px;
    margin: 132px 0 64px;
    background: url(../img/access/img_main.jpg) no-repeat right top;
    background-size: 1590px 300px;
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
  }
  #main_visual #catchcopy {
    position: relative;
    top: 50%;
    left: 50%;
    width: 100%;
    margin: 0 auto 0;
    color: #fff;
    transform: translate(-50%, -50%);
  }
  #main_visual #catchcopy h1 {
    margin: 0 auto 32px;
    color: #fff;
    font-size: 50px;
    font-family: "Yu Mincho", "YuMincho";
    text-align: center;
    line-height: 1;
  }
  #main_visual #catchcopy h1 span {
    display: block;
    color: #fff;
    font-size: 16px;
    font-family: "Playfair Display";
    font-weight: normal;
    margin-top: 8px;
  }
  #main_visual #catchcopy h1::before {
    display: block;
    content: "";
    width: 120px;
    height: 1px;
    margin: 0 auto 26px;
    background-color: #fff;
  }
  #main_visual #top_copyright {
    position: absolute;
    top: 50%;
    left: 38px;
    width: 15px;
    height: 382px;
    background: url(../img/txt_copyright_head.png) no-repeat center;
    background-size: 15px 382px;
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
    transform: translateY(-50%);
  }
  #main_visual #top_copyright span {
    display: none;
  }
  #text_area {
    margin-bottom: 106px;
    box-sizing: border-box;
  }
  #text_area .profile {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 98px 0 132px;
    border-top: 8px solid #006d9d;
    background-color: #363636;
  }
  #text_area .profile h2 {
    width: 96%;
    margin: 0 0 58px;
    color: #fff;
    font-size: 40px;
    font-family: "Yu Mincho", "YuMincho";
    font-weight: 600;
    text-align: center;
    line-height: 1;
  }
  #text_area .profile h2 span {
    display: block;
    color: #fff;
    font-size: 13px;
    font-family: "Playfair Display";
    font-weight: normal;
  }
  #text_area .profile h2::before {
    display: block;
    content: "";
    width: 40px;
    height: 2px;
    margin: 0 auto 20px;
    background-color: #006d9d;
  }
  #text_area .profile table {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
  }
  #text_area .profile table th {
    box-sizing: border-box;
    width: 160px;
    padding: 22px 0;
    border-bottom: 4px solid #006d9d;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
  }
  #text_area .profile table td {
    box-sizing: border-box;
    width: calc(100% - 280px);
    padding: 22px 5px 22px 36px;
    border-bottom: 4px solid #4b4b4b;
    color: #fff;
    font-size: 16px;
    text-align: left;
  }
  #text_area .profile table td p {
    font-size: 16px;
  }
  #text_area .profile table td p .ttl {
    font-size: 16px;
    font-weight: 600;
  }
  #text_area .profile table td p:first-child {
    margin-top: 0;
  }
  #text_area .profile table tr:nth-child(1) th {
    border-top: 4px solid #006d9d;
  }
  #text_area .profile table tr:nth-child(1) td {
    border-top: 4px solid #4b4b4b;
  }
  #text_area .profile table tr:nth-child(3) {
    border-top: 4px solid #4b4b4b;
  }
  /* tdタグ内調整CSS */
  #text_area .profile table tr td ul {
    padding: 0 0 0 16px;
  }
  #text_area .profile table td span {
    display: block;
    font-size: 14px;
  }
  #text_area .profile table .vertical-cell{
    display: block;
    width: 100%;
    box-sizing: border-box;
    }
  #text_area .profile table .vertical-cell .list{
    margin-top: 10px;
  }
  #text_area .profile table .vertical-cell .list li{
    list-style: none;
  }
  #text_area .profile table tr:last-child {
    border-bottom: 4px solid #4b4b4b !important;
  }
  #text_area .profile table td.vertical-cell {
    padding: 22px 5px 22px 36px !important;
    border: none !important;
  }
  #text_area .profile table th:last-child th {
    display: table-cell;
    vertical-align: top;
    padding-top: 22px;
    border-bottom: 4px solid #006d9d !important;
  }
  #main_office, #yokohama, #shikahama {
    scroll-margin-top: 80px;
  }
  /* 横浜工場 */
  #yokohama{
    margin-top: 80px;
  }
  /* 鹿浜 */
  #shikahama{
    margin-top: 80px;
  }
  /* モーダル */
  .modal-open {
    display: inline-block;
    text-decoration: underline;
    cursor: pointer;
    padding:  0 20px 0 8px;
    position: relative;
  }
  .modal-open:hover {
    text-decoration: none;
    opacity: 0.5;
  }
  .modal-open::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 5px;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
  }
  .modal-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
  }
  .modal-container.active {
    display: flex;
  }
  .modal-body {
    background-color: #363636;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 100%;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  }
  .modal-close {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 35px;
    cursor: pointer;
    color: #fff;
  }
  .map-cell {
    margin-top: 15px;
    background-image: url("../img/access/img_map_oogikamiya.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 100%;
    height: 660px;
  }
  .sp_only {
    display: none;
  }
}

/* SP */
@media screen and (max-width: 768px) {
  #main_visual {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    min-height: 210px;
    margin: 0 auto 20px;
    background: url(../img/access/sp/img_main.jpg) no-repeat center top;
    background-size: cover;
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
  }
  #main_visual #catchcopy {
    width: 100%;
    margin: 0;
    color: #fff;
    text-align: center;
  }
  #main_visual #catchcopy h1 {
    width: 96%;
    max-width: 100%;
    margin: 0 auto 10px;
    color: #fff;
    font-size: 24px;
    font-family: "Yu Mincho", "YuMincho";
    text-align: center;
    line-height: 1;
  }
  #main_visual #catchcopy h1 span {
    display: block;
    margin-top: 7px;
    color: #fff;
    font-size: 9px;
    font-weight: normal;
    font-family: "Playfair Display";
    line-height: 1;
  }
  #main_visual #catchcopy h1::before {
    display: block;
    content: "";
    width: 60px;
    height: 1px;
    margin: 0 auto 12px;
    background-color: #fff;
  }
  #main_visual #top_copyright {
    display: none;
  }
  #text_area {
    margin-bottom: 20px;
    box-sizing: border-box;
  }
  #text_area .profile {
    width: 90%;
    margin: 0 auto 20px;
    padding: 28px 0 34px;
    border-top: 4px solid #006d9d;
    background-color: #363636;
  }
  #text_area .profile h2 {
    width: 96%;
    max-width: 768px;
    margin: 0 auto 24px;
    color: #fff;
    font-size: 20px;
    font-family: "Yu Mincho", "YuMincho";
    font-weight: 600;
    text-align: center;
    line-height: 1;
  }
  #text_area .profile h2 span {
    display: block;
    padding-top: 2px;
    color: #fff;
    font-size: 10px;
    font-family: "Playfair Display";
    font-weight: normal;
  }
  #text_area .profile h2::before {
    display: block;
    content: "";
    width: 20px;
    height: 2px;
    margin: 0 auto 9px;
    background-color: #006d9d;
  }
  #text_area .profile table {
    position: relative;
    width: 82%;
    margin: 0 auto;
    background: url(../img/company/sp/bg_border.png) no-repeat left top;
    background-size: 680px 4px;
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
    vertical-align: middle;
    overflow-wrap: break-word;
    table-layout: fixed;
  }
  #text_area .profile table tr {
    position: relative;
    background: url(../img/company/sp/bg_border.png) no-repeat left bottom;
    background-size: 680px 4px;
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
  }
  #text_area .profile table th {
    display: inline-block;
    padding-top: 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
  }
  #text_area .profile table td {
    display: block;
    padding-bottom: 16px;
    color: #fff;
    font-size: 14px;
    text-align: left;
  }
  #text_area .profile table td span {
    display: block;
    font-size: 12px;
  }
  #text_area .profile table td p {
    font-size: 14px;
  }
  #text_area .profile table td p .ttl {
    font-size: 14px;
  }
  #text_area .profile table td p:first-child {
    margin-top: 0;
  }
  /* tdタグ内CSS調整 */
  #text_area .profile table tr td ul {
    padding: 0 0 0 16px;
  }
  #text_area .profile table .vertical-cell{
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  #text_area .profile table .vertical-cell .list{
    margin-top: 10px;
  }
  #text_area .profile table .vertical-cell .list li{
    list-style: none;
  }
  #text_area .profile table .vertical-cell:not(:last-child){
  border-bottom: none;
  padding: 8px 5px 8px 0px;
  }
  #text_area .profile table .vertical-cell:last-child{
  padding: 8px 5px 22px 0px;
  }
  #main_office, #yokohama, #shikahama {
    scroll-margin-top: 80px;
  }
  /* 横浜工場 */
  #yokohama{
    margin-top: 40px;
  }
  /* 鹿浜 */
  #shikahama{
    margin-top: 40px;
  }
  /* モーダル */
  .modal-open {
    text-decoration: underline;
    cursor: pointer;
    position: relative;
    display: inline-block;
    padding:  0 16px 0 8px;
  }
  .modal-open::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0px;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
  }
.modal-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
}
.modal-container.active {
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-body {
  background-color: #363636;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  max-width: 500px;
  max-height: 90dvh;
  padding: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
  .modal-close {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 30px;
    z-index: 10;
    color: #fff;
    cursor: pointer;
  }
.map-cell {
  clear: both;
  margin-top: 10px;
  background-image: url("../img/access/img_map_oogikamiya.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 100%;
  height: 60vh;
  min-height: 300px;
}
.pc_only {
  display: none;
}
.pt-0 {
    padding-top: 0 !important;
  }
}