.page-lower #visual {
  background: url("../images/company/visual-bg.jpg") center center /cover no-repeat;
}

.page-footer-nav {
  background: #f0f2f3;
}

/* ****************************************************************************************************
   * index
**************************************************************************************************** */

.page-company-index #visual {
  background: url("../images/company/index/visual-bg.jpg") center center /cover no-repeat;
}
.page-company-index #visual .title-1:before {
  content: 'COMPANY';
}

.page-company-index {
  background-color: #f0f2f3;
}
.page-company-index #main .body {
  width: 1080px;
}
.page-company-index #main .company {
  padding: 130px 0 160px;
  background: url("../images/company/index/bg-1.jpg") center center /100% auto no-repeat;
}
.page-company-index #main .list {
  display: flex;
  flex-wrap: wrap;
}
.page-company-index #main .list .item {
  width: 47.23%;
  margin-left: 5.54%;
}
.page-company-index #main .list .item:nth-child(2n+1) {
  margin-left: 0;
}
.page-company-index #main .list .item:nth-child(n+3) {
  margin-top: 5.54%;
}
.page-company-index #main .list .item .photo {
  aspect-ratio: 51 / 34;
  overflow: hidden;
}
.page-company-index #main .list .item .photo img {
  width: 100%;
  height: 100%;
  transition: .2s;
}
.page-company-index #main .list .item:hover .photo img {
  transform: scale(1.05);
}
.page-company-index #main .list .item .content {
  padding: 1.25em;
  background: url(../images/common/icon-arrow.png) right 1em center no-repeat #fff;
  transition: .2s;
}
.page-company-index #main .list .item:hover .content {
  background-position: right .75em center;
}
.page-company-index #main .list .item .content .title-1 {
  font-size: 2rem;
  margin-bottom: 0;
}
.page-company-index #main .list .item .content .title-1:before {
  font-size: 3.6rem;
  font-family: 'Poppins',sans-serif;
  line-height: 1.33;
  color: #699eba;
}
@media (max-width:960px) {
  .page-company-index #main .list .item {
    width: 49%;
    margin-left: 2%;
  }
  .page-company-index #main .list .item:nth-child(2n+1) {
    margin-left: 0;
  }
  .page-company-index #main .list .item:nth-child(n+3) {
    margin-top: 2%;
  }
}
@media (max-width:810px) {
  .page-company-index #main .section {
    padding: 50px 0;
  }
  .page-company-index #main .list {
    max-width: 100%;
    width: 510px;
    margin: 0 auto;
  }
  .page-company-index #main .list .item {
    width: 100%;
    margin: 0 !important;
  }
  .page-company-index #main .list .item ~ .item {
    margin-top: 2em !important;
  }
}
@media (max-width:410px) {
  .page-company-index #main .list .item .content {
    background-size: 40px auto;
  }
  .page-company-index #main .list .item .content .title-1 {
    font-size: 1.8rem;
  }
  .page-company-index #main .list .item .content .title-1:before {
    font-size: 3rem;
  }
}

/* ****************************************************************************************************
   * greeting
**************************************************************************************************** */

.page-company-greeting #visual {
  background: url(../images/company/greeting/visual-bg.jpg) center center /cover no-repeat;
}
.page-company-greeting #visual .title-1:before {
  content: 'GREETINGS/IDEAL';
}
.page-company-greeting #main .greeting {
  padding-bottom: 150px;
  background: url("../images/company/greeting/greeting-bg.png") center center /100% auto no-repeat;
}
@media (max-width:768px) {
  .page-company-greeting #main .greeting {
    padding-bottom: 50px;
  }
}
.page-company-greeting #main .greeting .content {
  width: 50%;
}
.page-company-greeting #main .greeting .photo {
  width: 50%;
  text-align: right;
  padding-left: 2em;
}
.page-company-greeting #main .greeting .name {
  text-align: right;
  margin-top: 2em;
}
.page-company-greeting #main .greeting .name img {
  vertical-align: middle;
  margin-left: 1em;
}
@media (max-width:768px) {
  .page-company-greeting #main .greeting .name img {
    height: 2em;
  }
  .page-company-greeting #main .greeting .content,
  .page-company-greeting #main .greeting .photo {
    width: 100%;
  }
  .page-company-greeting #main .greeting .photo {
    text-align: center;
    padding-left: 0;
    margin-bottom: 2em;
    order: -1;
  }
  .page-company-greeting #main .greeting .photo img {
    max-width: 70%;
  }
}

.page-company-greeting #main .policy {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  padding-bottom: 150px;
  background: url("../images/company/greeting/policy-bg.jpg") center center /cover no-repeat;
}
.page-company-greeting #main .policy .title-1 {
  color: #fff;
}
.page-company-greeting #main .policy p {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width:768px) {
  .page-company-greeting #main .policy {
    font-size: 2.4rem;
  }
}
@media (max-width:540px) {
  .page-company-greeting #main .policy {
    font-size: 2.2rem;
  }
}

.page-company-greeting #main .ideal {
  background: #f0f2f3;
}
.page-company-greeting #main .ideal .list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.page-company-greeting #main .ideal .list .item {
  width: 30.56%;
  margin-left: 4.16%;
}
.page-company-greeting #main .ideal .list .item:nth-child(3n+1) {
  margin-left: 0;
}

.page-company-greeting #main .ideal .list .item:nth-child(1) {
  margin-top: 5%;
}
.page-company-greeting #main .ideal .list .item:nth-child(2) {
  margin-top: 2.5%;
}

@media (max-width:1024px) {
  .page-company-greeting #main .ideal .list .item {
    width: 32%;
    margin-left: 2%;
  }
}
@media (min-width:641px) and (max-width:1024px) {
  .page-company-greeting #main .ideal .list .item {
    width: 49%;
    margin: 0 !important;
    margin-left: 2% !important;
  }
  .page-company-greeting #main .ideal .list .item:nth-child(2n+1) {
    margin-left: 0 !important;
  }
  .page-company-greeting #main .ideal .list .item:nth-child(n+3) {
    margin-top: 2% !important;
  }
}
@media (max-width:640px) {
  .page-company-greeting #main .ideal .list {
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
  }
  .page-company-greeting #main .ideal .list .item {
    width: 100%;
    margin-top: 0 !important;
  }
  .page-company-greeting #main .ideal .list .item ~ .item {
    margin-top: 2em !important;
  }
}
.page-company-greeting #main .ideal .list .item .header {
  position: relative;
}
.page-company-greeting #main .ideal .list .item .header img {
  width: 100%;
}
.page-company-greeting #main .ideal .list .item .header .title-1 {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  font-size: 4.8rem;
  font-family: 'Poppins','NotoSansJP',sans-serif;
  text-align: center;
  color: #fff;
  margin-bottom: .25em;
}
.page-company-greeting #main .ideal .list .item .header .title-1:before {
  content: none;
}
.page-company-greeting #main .ideal .list .item .header .title-1:after {
  content: attr(data-txt);
  display: block;
  font-family: 'Poppins',sans-serif;
  font-weight: 500;
  font-style: italic;
  line-height: 1;
  color: #c1cbd5;
  margin-left: -.05em;
  font-size: .5em;
  color: #fff;
}

.page-company-greeting #main .ideal .list .item .content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 8em;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  padding: 1em .5em;
  background: #fff;
}
.page-company-greeting #main .ideal .message {
  margin-top: 2.5em;
}
.page-company-greeting #main .ideal .message strong {
  display: block;
  margin-bottom: 1em;
  font-size: 3.6rem;
  font-weight: 700;
  color: #000;
  line-height: 1.6666;
}
@media (max-width:768px) {
  .page-company-greeting #main .ideal .message strong {
    font-size: 2.8rem;
  }
}

/* ****************************************************************************************************
   * history
**************************************************************************************************** */

.page-company-history #visual {
  background: url("../images/company/history/visual-bg.jpg") center center /cover no-repeat;
}
.page-company-history #visual .title-1:before {
  content: 'HISTORY';
}
.page-company-history .body {
  width: 1080px;
}

/*
.page-company-history #main .history {
  padding: 100px 0;
  background: url(../images/company/history/bg-1.jpg) center center /cover no-repeat;
  background-attachment: fixed;
  margin-top: 100px;
}
*/


.page-company-history #main .history {
  padding: 100px 0;
  margin-top: 100px;
}
.page-company-history #main .history {
  clip-path: inset(0);
}
.page-company-history #main .history::before {
  content: '';
  position: fixed;
  inset: 0;
  /*background: url(../images/company/history/bg-1.jpg) center center /cover no-repeat;*/
  background-image: url(../images/company/history/bg-1.jpg);
    background-size:cover;
    background-position: center center;
    background-repeat: no-repeat;
  z-index: -1;
}
/* iosのみ拡大してしまう為個別対応*/
@supports (-webkit-touch-callout: none) {
  .page-company-history #main .history::before {
    background-size: auto;
    background-position: center top;
  }
}

@media (max-width:768px) {
  .page-company-history #main .history::before {
    background-image: url(../images/company/history/bg-2.jpg);
  }
  .page-company-history #main .history {
    padding: 50px 0;
    margin-top: 2em;
  }
}
.page-company-history #main .history .title-1 {
  text-align: center;
  color: #fff;
}
.page-company-history #main .history .history-list {
  position: relative;
}
.page-company-history #main .history .history-list:before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  width: 2px;
  height: 100%;
  background: #fff;
  margin-left: -1px;
}
.page-company-history #main .history .history-list .row {
  position: relative;
}
.page-company-history #main .history .history-list .row:before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  width: 30px;
  height: 30px;
  background: #fff;
  border: 10px solid var(--c-blue);
  border-radius: 50%;
  transform: translate(-50%, 100%);
}
.page-company-history #main .history .history-list .content {
  width: 45%;
}
.page-company-history #main .history .history-list .row:nth-child(odd) .content {
  margin-left: auto;
}
.page-company-history #main .history .history-list .content .year {
  font-size: 8rem;
  font-family: 'Poppins',sans-serif;
  font-style: italic;
  font-weight: 500;
  color: #c1cbd5;
  line-height: 1;
  text-align: center;
}
.page-company-history #main .history .history-list .content .year-sub {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
}
.page-company-history #main .history .history-list .content .text {
  text-align: center;
  font-size: 1.8rem;
  line-height: 2;
  color: #fff;
  margin-top: 1em;
}
.page-company-history #main .history .history-list .content .photo {
  text-align: center;
  margin-top: 1.5em;
}
@media (max-width:768px) {
  .page-company-history #main .history .history-list .content .year {
    font-size: 6rem;
  }
}
.page-company-history #main .page-footer-nav {
  padding-top: 120px;
}
@media (max-width:768px) {
  .page-company-history #main .page-footer-nav {
    padding-top: 0;
  }
  .page-company-history #main .history .history-list .row:before {
    width: 20px;
    height: 20px;
    border-width: 6px;
  }
  .page-company-history #main .history .history-list .content .year-sub {
    font-size: 1.8rem;
  }
  .page-company-history #main .history .history-list .content .text {
    font-size: 1.6rem;
  }
}
@media (max-width:420px) {
  .page-company-history #main .history .history-list .row:before {
    width: 18px;
    height: 18px;
    border-width: 5px;
  }
  .page-company-history #main .history .history-list .content .year {
    font-size: 5rem;
  }
  .page-company-history #main .history .history-list .content .year-sub {
    font-size: 1.6rem;
  }
  .page-company-history #main .history .history-list .content .text {
    font-size: 1.4rem;
  }
}

/* ****************************************************************************************************
   * office
**************************************************************************************************** */

.page-company-office [pc]{
  display: block;
}
.page-company-office [sp]{
  display: none;
}
@media (max-width:768px) {
  .page-company-office [pc]{
    display: none;
  }
  .page-company-office [sp]{
    display: block;
  }
}

.page-company-office {
  background: #f0f2f3;
}
.page-company-office #visual {
  background: url("../images/company/office/visual-bg.jpg") center center /cover no-repeat;
}
.page-company-office #visual .title-1:before {
  content: 'LIST OF OFFICES';
}
.page-company-office #main .section {
  padding-bottom: 100px;
  background: url(../images/company/common/bg-1.png) center 0 /100% auto no-repeat;
}
.page-company-office #main .section .column ~ .column {
  margin-top: 90px;
}
.page-company-office #main .section .flex-col-2 {
  flex-wrap: wrap;
}
.page-company-office #main .section .content {
  width: calc(50% - 50px);
}
.page-company-office #main .section .map {
  width: 50%;
  aspect-ratio: 54 / 36;
  overflow: hidden;
}
.page-company-office #main .section .map iframe {
  width: 100%;
  height: 100%;
}
@media (max-width:768px) {
  .page-company-office #main .section {
    padding-bottom: 50px;
  }
  .page-company-office #main .section .column ~ .column {
    margin-top: 60px;
  }
  .page-company-office #main .section .content {
    width: 100%;
  }
  .page-company-office #main .section .map {
    width: 100%;
    margin-top: 2em;
  }
}  

.page-company-office #main .section .content .title-2 {
  font-size: 3rem;
}
@media (max-width:768px) {
  .page-company-office #main .section .content .title-2 {
    font-size: 2.4rem;
    margin-bottom: 0;
  }
  .page-company-office #main .section .content .title-2 + * {
    margin-top: .5em;
  }
}

/* ===== タブ ===== */
.page-company-office #main .section .office-tabwrap .tabs {
  display: flex;
  /*border-bottom: 2px solid #dbdee3;*/
  border-bottom: 2px solid #02b1fa;
  gap: 1%;
  padding: 0 1.5%;
}

.page-company-office #main .section .office-tabwrap .tab {
  flex: 1;
  text-align: center;
  padding: 16px 0 12px;
  background: #fff;
  border: 1px solid #dbdee3;
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  cursor: pointer;
  font-size: 0.85em;
  margin-right: -1px;
  color: #000000;
}

.page-company-office #main .section .office-tabwrap .tab.is-active {
  background: #02b1fa;
  color: #fff;
  border-color: #02b1fa;
  position: relative;
  z-index: 1;
  margin-bottom: -1px;
}

/* ===== タブ中身 ===== */
.page-company-office #main .section .office-tabwrap .tab-contents {
  position: relative;
  transition: height 0.25s ease;
  overflow: hidden;
}

.page-company-office #main .section .office-tabwrap .tab-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.page-company-office #main .section .office-tabwrap .tab-content.is-active {
  opacity: 1;
  visibility: visible;
}

.page-company-office #main .section .office-tabwrap .tab-content .office-item:first-child{
  margin-top: 60px;
}

@media (max-width: 768px) {
  .page-company-office #main .section .office-tabwrap .tab-content .office-item .content~.content{
    margin-top: 60px;
  }

  .page-company-office #main .section .office-tabwrap .tab {
    border-radius: 12px 12px 0 0;
    padding: 8px 0 6px;
  }
}



/*本社のみ別処理*/
.page-company-office #main .section #honsya .content{
  width:auto;
}
.page-company-office #honsya .modal-map{
  display: block;
}
.page-company-office #honsya .modal-content {
  width: calc(50% - 50px);
}
.page-company-office #honsya .modal-map {
  width: 50%;
  aspect-ratio: 54 / 36;
  overflow: hidden;
}
.page-company-office #honsya .modal-map iframe {
  width: 100%;
  height: 100%;
}
@media (max-width:768px) {
  .page-company-office #honsya .modal-content {
    width: 100%;
  }
  .page-company-office #honsya .modal-map {
    width: 100%;
    margin-top: 2em;
  }
}


/* モーダル内でだけ表示するもの */
.page-company-office .modal-only{
  display: none !important;
}
.page-company-office #office-modal .modal-inner .modal-only{
  display: block !important;
}
.page-company-office .modal-only-tr{
  display: none !important;
}
.page-company-office #office-modal .modal-inner .modal-only-tr{
  display: table-row !important;
}
@media (max-width: 768px) {
  .page-company-office #office-modal .modal-inner .modal-only-tr{
    display: block !important;
  }
}
.page-company-office .modal-map{
  display: none;
}
.page-company-office #office-modal .modal-inner .modal-map{
  display: block;
}


/* ===== overlay ===== */
.page-company-office #office-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
  z-index: 9999;
}

/* ===== modal ===== */
.page-company-office #office-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 1080px;
  max-height: 80vh;
  transform: translate(-50%, -50%) scale(.98);
  background: #fff;
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 9999;
  overflow: hidden;
}

/* 中身だけスクロール */
.page-company-office #office-modal .modal-inner {
  padding: 32px;
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}


.page-company-office #office-modal .modal-inner .content {
  flex-wrap: wrap;
}
.page-company-office #office-modal .modal-inner .content {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: wrap;
}
.page-company-office #office-modal .modal-inner .content > * { width:47.23% }
.page-company-office #office-modal .modal-inner .content > *:nth-child(n+3) { margin-top:4% }

.page-company-office #office-modal .modal-inner .modal-content {
  width: calc(50% - 50px);
}
.page-company-office #office-modal .modal-inner .modal-map {
  width: 50%;
  aspect-ratio: 54 / 36;
  overflow: hidden;
}
.page-company-office #office-modal .modal-inner .modal-map iframe {
  width: 100%;
  height: 100%;
}
@media (max-width:960px) {

  .page-company-office #office-modal .modal-inner .modal-content {
    width: 100%;
  }
  .page-company-office #office-modal .modal-inner .modal-map {
    width: 100%;
    margin-top: 2em;
  }
}  

.page-company-office #office-modal .modal-inner .modal-content .title-2 {
  font-size: 3rem;
}
@media (max-width:768px) {
  .page-company-office #office-modal .modal-inner .modal-content .title-2 {
    font-size: 2.4rem;
    margin-bottom: 0;
  }
  .page-company-office #office-modal .modal-inner .modal-content .title-2 + * {
    margin-top: .5em;
  }
}

/* MAPボタン */
.page-company-office .office-item table.default td.td-location {
  display: flex;
  align-items: center;
}
.page-company-office .office-item table.default td.td-location .ad {
  flex: 1;
  min-width: 0;
}
.page-company-office .office-item table.default td.td-location .mbtn {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.page-company-office .office-item table.default td.td-location .mbtn a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.page-company-office .office-item table.default td.td-location .mbtn a:hover {
  opacity: 0.8;
}
.page-company-office .office-item table.default td.td-location .mbtn img {
  display: block;
}
.page-company-office #office-modal .modal-inner .modal-content .td-location {
  display: flex;
  align-items: center;
}
.page-company-office #office-modal .modal-inner .modal-content .td-location .ad {
  flex: 1;
  min-width: 0;
}
.page-company-office #office-modal .modal-inner .modal-content .td-location .mbtn {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.page-company-office #office-modal .modal-inner .modal-content .td-location .mbtn a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.page-company-office #office-modal .modal-inner .modal-content .td-location .mbtn a:hover {
  opacity: 0.8;
}
.page-company-office #office-modal .modal-inner .modal-content .td-location .mbtn img {
  display: block;
}

/* 詳細を見る */
.page-company-office #main .section .office-item .content .dbtn{
  margin-top: 1.5em;
}
.page-company-office #main .section .office-item .content .dbtn a:hover{
  opacity: 0.8;
}
/* 詳細を見るはモーダル内では非表示 */
.page-company-office .content .dbtn{
  display: block;
}
.page-company-office #office-modal .modal-inner .content .dbtn{
  display: none;
}


/* 表示状態 */
#office-modal.is-open,
#office-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

#office-modal.is-open {
  transform: translate(-50%, -50%) scale(1);
}

/* close */
.modal-close {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 26px;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 5px;
  z-index: 10000;
  pointer-events: auto;
}

/* 背景ロック */
body.modal-lock {
  overflow: hidden;
}


.page-company-office .division{
  width: 100%;
  text-align: center;
  font-size: 2.2em;
  font-weight: bold;
  border-bottom: solid 2px #c1cbd5;
  margin-top: 60px;
}
@media (max-width:768px){
  .page-company-office .division{
    margin-top: 60px;
  }
}

.page-company-office .office-item table.default tr{
  font-size: 90%;
}
.page-company-office #office-modal .modal-inner .modal-content table.default tr{
  font-size: 90%;
}
@media (max-width:768px){
  .page-company-office .office-item table.default tr{
    font-size: 100%;
  }
  .page-company-office #office-modal .modal-inner .modal-content table.default tr{
    font-size: 100%;
  }
}

.page-company-office #main .office-item{
  margin-top: 60px;
}
.page-company-office #office-modal .modal-inner .office-item{
  margin-top: 0;
}
.page-company-office #main .flex-col-2 > *:nth-child(n+3){
  margin-top: 60px;
}
@media (max-width:768px){
  .page-company-office #main .office-item{
    margin-top: 40px;
  }
  .page-company-office #office-modal .modal-inner .office-item{
    margin-top: 0;
  }
  .page-company-office #main .flex-col-2 > *:nth-child(n+3){
    margin-top: 40px;
  }
}

/* ****************************************************************************************************
   * profile
**************************************************************************************************** */

.page-company-profile {
  background: #f0f2f3;
}
.page-company-profile #visual {
  background: url("../images/company/profile/visual-bg.jpg") center center /cover no-repeat;
}
.page-company-profile #visual .title-1:before {
  content: 'COMPANY PROFILE';
}
.page-company-profile #main .section {
  padding-bottom: 100px;
  background: url(../images/company/common/bg-1.png) center 0 /100% auto no-repeat;
}
.page-company-profile #main .box {
  font-size: 1.8rem;
  padding: 5%;
  background: #fff;
}
.page-company-profile #main .box table tr > * {
  vertical-align: top;
}
@media (max-width:768px) {
  .page-company-profile #main .section {
    padding-bottom: 50px;
  }
  .page-company-profile #main .box {
    font-size: 1.6rem;
  }
}

/*事業所所在地 事業部別*/
.page-company-profile #main .section .d-box~.d-box{
  margin-top: 2.5em;
}
.page-company-profile #main .section .d-box .title {
  font-weight: bold;
  display: inline-block;
  padding: 0 1em;
  color: #fff;
  background: #000000;
}
.page-company-profile #main .section .d-box p{
  margin-left: 1em;
}
.page-company-profile #main .section .d-box:last-child{
  margin-bottom: 1em;
}

@media (max-width:768px){
  .page-company-profile #main .section .d-box:first-child{
    margin-top: 1em;
  }
  .page-company-profile #main .section .d-box:last-child{
    margin-bottom: 1em;
  }
}