/* common */
html {
    font-size: 62.5%;
    background-color: #eeeeee;
}

body {
    font-family: Helvetica , Arial , Verdana , Roboto , "游ゴシック" , "Yu Gothic" , "游ゴシック体" , "YuGothic" , "ヒラギノ角ゴ Pro W3" , "Hiragino Kaku Gothic Pro" , "Meiryo UI" , "メイリオ" , Meiryo , "ＭＳ Ｐゴシック" , "MS PGothic" , sans-serif;
    font-size: 1.4rem;
    letter-spacing: 0.04rem;
    background-image: url(../img/EPKOT_background.png);
    background-repeat: no-repeat;
    background-size: cover;
}

@media screen and (max-width: 425px) {
    body {
        font-size: 1.2rem;
    }
}

#container {
    position: relative;
    margin: 0 auto;
}

.flex {
    display: flex;
}


/* header */
header {
    position: relative;
    height: 150px;
    background-color: #eeeeee;
}

#logo img{
    position: absolute;
    width: 200px;
    top: 45px;
    left: 10%;
    z-index: 1;
}

@media screen and (max-width: 425px) {
    header {
        height: 90px;
    }
    #logo img {
        width: 120px;
        top: 30px;
    }
}

#navi {
    position: absolute;
    top: 65px;
    right: 10%;
}

@media screen and (max-width: 1200px) {
    #navi {
        display: none;
    }

    .btn {
        /* ボタンの配置位置  */
        position: fixed;
        top: 50px;
        right: 5%;
        /* ボタンの大きさ  */
        width: 50px;
        height: 50px;
        /* バーガーの線をボタン範囲の中心に配置 */
        display: flex;
        justify-content: center;
        align-items: center;
        /* 最前面に */
        z-index: 10;
      }

      /***** 真ん中のバーガー線 *****/
      .btn-line {
        /* 線の長さと高さ */
        width: 100%;
        height: 5px;
        /* バーガー線の色 */
        background-color: #333;
        /* バーガー線の位置基準として設定 */
        position: relative;
        transition: .2s;
      }

      /***** 上下のバーガー線 *****/
      .btn-line::before,
      .btn-line::after {
        content: "";
        /* 基準線と同じ大きさと色 */
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: #333;
        transition: .2s;
      }

      .btn-line::before {
        /* 上の線の位置 */
        transform: translateY(-9px);
      }

      .btn-line::after {
        /* 下の線の位置 */
        transform: translateY(9px);
      }

      /***** メニューオープン時 *****/
      .btn-line.open {
        /* 真ん中の線を透明に */
        background-color: transparent;
      }

      .btn-line.open::before,
      .btn-line.open::after {
        content: "";
        transition: .2s;
        background-color: #FFF;
      }

      .btn-line.open::before {
        /* 上の線を傾ける */
        transform: rotate(45deg);
      }

      .btn-line.open::after {
        /* 上の線を傾ける */
        transform: rotate(-45deg);
      }

      /**************** 以下、メニューのスタイリング ****************/
      #sp_navi {
        z-index: 1;
        position: fixed;
        /* メニューの位置マイナス指定で画面外に */
        right: -100%;
        width: 30%;
        height: 100vh;
        /* メニューを縦に */
        display: flex;
        flex-direction: column;
        color: #efefef;
        background-color: rgb(0, 0, 0);
        transition: .3s;
      }

      .menu {
        margin: 100px 0;
      }

      .menu-list {
        width: 100%;
        font-weight: bold;
        font-size: 2rem;
        padding-top: 20px;
        margin-left: 50px;
      }

      .menu-list a {
          color: #fff;
      }

      .sub_menu_list {
        text-align: left;
        margin-left: 65px;
      }

      .sub_menu_list a {
          color: #FFF;
      }

      /***** メニューオープン時位置0にして画面内に *****/
      #sp_navi.open {
        right: 0;
      }

}

@media screen and (max-width: 425px) {
    #navi {
        display: none;
    }

    .btn {
        /* ボタンの配置位置  */
        position: fixed;
        top: 27px;
        right: 5%;
        /* ボタンの大きさ  */
        width: 40px;
        height: 40px;
        /* バーガーの線をボタン範囲の中心に配置 */
        display: flex;
        justify-content: center;
        align-items: center;
        /* 最前面に */
        z-index: 10;
      }

      /***** 真ん中のバーガー線 *****/
      .btn-line {
        /* 線の長さと高さ */
        width: 100%;
        height: 3px;
        /* バーガー線の色 */
        background-color: #333;
        /* バーガー線の位置基準として設定 */
        position: relative;
        transition: .2s;
      }

      /***** 上下のバーガー線 *****/
      .btn-line::before,
      .btn-line::after {
        content: "";
        /* 基準線と同じ大きさと色 */
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: #333;
        transition: .2s;
      }

      .btn-line::before {
        /* 上の線の位置 */
        transform: translateY(-6px);
      }

      .btn-line::after {
        /* 下の線の位置 */
        transform: translateY(6px);
      }

      /***** メニューオープン時 *****/
      .btn-line.open {
        /* 真ん中の線を透明に */
        background-color: transparent;
      }

      .btn-line.open::before,
      .btn-line.open::after {
        content: "";
        transition: .2s;
        background-color: #FFF;
      }

      .btn-line.open::before {
        /* 上の線を傾ける */
        transform: rotate(45deg);
      }

      .btn-line.open::after {
        /* 上の線を傾ける */
        transform: rotate(-45deg);
      }

      /**************** 以下、メニューのスタイリング ****************/
      #sp_navi {
        z-index: 1;
        position: fixed;
        /* メニューの位置マイナス指定で画面外に */
        right: -100%;
        width: 100%;
        height: 100vh;
        /* メニューを縦に */
        display: flex;
        flex-direction: column;
        color: #efefef;
        background-color: rgba(0, 0, 0, 0.8);
        transition: .3s;
      }

      .menu {
        margin: 50px 0;
      }

      .menu-list {
        width: 100%;
        font-weight: bold;
        font-size: 1.8rem;
        /* メニューテキスト位置をリスト内中心に */
        display: flex;
        justify-content: center;
        align-items: center;
        padding-top: 25px;
        margin-left: 0;
      }

      .menu-list a {
          color: #fff;
      }

      .sub_menu_list {
        text-align: center;
        margin-left: 0;
      }

      .sub_menu_list a {
          color: #FFF;
      }

      /***** メニューオープン時位置0にして画面内に *****/
      #sp_navi.open {
        right: 0;
      }

}

@media screen and (min-width: 1200px) {
    #sp_navi {
        display: none;
    }
}

#navi a {
    position: relative;
    display: inline-block;
    font-size: 1.8rem;
    font-weight: bold;
    margin-left: 40px;
    color: black;
    z-index: 1;
}

#navi a:before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: black;
    transition: 0.5s;
    z-index: -1;
}

#navi a:hover {
    color: white;
    transition: 0.5s;
}

#navi a:hover:before {
    width: 100%;
}

.click {
    background-color: black;
    color: white !important;
}

#sub_navi {
    width: 100%;
    height: 100px;
    position: absolute;
    top: 150px;
    left: 0;
    background: black;
}

.sub_navi_inner {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.sub_navi_inner > div {
    align-items: center;
    height: 100px;
    justify-content: center;
}

.sub_navi_inner a {
    text-align: center;
    display: block;
    position: relative;
    padding: 10px 20px;
    color: white;
}

.sub_navi_inner a:not(:last-of-type):after {
    content: "";
    height: 60%;
    width: 1px;
    background: white;
    position: absolute;
    right: 0;
    top: 20%;
}

/* footer */
footer {
    background-color: black;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 85px;
}

.copyright {
    text-align: center;
}

.mobile {
    display: none;
}

@media screen and (max-width: 425px) {
    .mobile {
        display: inline;
    }
}

/* contents */

/* top */

#main {
    margin: 0 auto;
    max-width: 1440px;
}

#top_content {
    padding: 100px 15% 0 15%;
}

#top_content img {
    width: 100%;
    height: auto;
}

#top_content p {
    font-size: 3.6rem;
    font-weight: bold;
    line-height: 6rem;
}

#contents {
    position: relative;
    margin: 140px 15% 75px 15%;
    min-height: 650px;
}

#contents::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 25px;
    display: inline-block;
    width: 2px;
    height: 100%;
    background-color: black;
}

@media screen and (max-width: 425px) {
    #contents {
        min-height: 325px;
    }
    #top_content {
        padding-top: 15px;
    }
    #top_content p {
        font-size: 2.4rem;
        line-height: 4rem;
    }

    #contents {
        margin-top: 40px;
    }

    #contents::before {
        width: 1px;
        top: 10px;
    }
}

/* title */

#contents_title {
    align-items: center;
    /* 回転の基準を1文字目の辺りにする */
    transform-origin: 4% 70% 0;
    transform: rotate( 90deg );
    position: absolute;
    /* 幅での改行を防ぐ */
    white-space: nowrap;
}

#contents_title h2{
    font-family: 'Spartan', sans-serif;
    font-size: 4.8rem;
    font-weight: lighter;
}

#contents_title p {
    font-size: 1.8rem;
    font-weight: 500;
    padding: 15px 0 0 30px;
}

@media screen and (max-width: 425px) {
    #contents_title h2{
        font-size: 2.4rem;
    }

    #contents_title p {
        font-size: 1.2rem;
        padding: 5px 0 0 25px;
    }
}

/* article */

#article {
    padding-left: 120px;
}

.article {
    padding-top: 13px;
}

.article_margin {
    margin-bottom: 40px;
}

@media screen and (max-width: 425px) {
    #article {
        padding-left: 50px;
    }

    .article {
        padding-top: 3px;
    }
}

/* philosophy */

.philosophy h3 {
    font-size: 7.5rem;
}

.philosophy p {
    line-height: 1.8rem;
    padding-left: 3px;
    font-weight: 500;
}

.pc {
    display: none;
}

@media screen and (max-width: 425px) {
    .philosophy h3 {
        font-size: 3.4rem;
    }

    .philosophy p {
        line-height: 1.8rem;
        padding-left: 3px;
        font-weight: 500;
    }

    .pc {
        display: inline;
    }
}

/* slick slider */

.slider_article h3 {
    font-size: 3rem;
    padding-bottom: 20px;
}

.slider_article p {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 15px;
}

@media screen and (max-width: 425px) {
    .slider_article h3 {
        font-size: 2rem;
        padding-bottom: 10px;
    }

    .slider_article p {
        font-size: 1.3rem;
    }
}

/* message */

.message > img {
    width: 100%;
    padding-top: 15px;
}

.message_article p {
    padding-top: 40px;
    font-size: 1.8rem;
    font-weight: 500;
}

.message_article span {
    display: block;
    font-size: 2rem;
    font-weight: 500;
    text-align: right;
    padding-top: 30px;
}

@media screen and (max-width: 425px) {
    .message > img {
        padding-top: 7px;
    }

    .message_article p {
        padding-top: 20px;
        font-size: 1.3rem;
    }

    .message_article span {
        font-size: 1.5rem;
        padding-top: 15px;
    }
}

/* profile */

.profile {
    padding-top: 60px;
}

.profile h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 1px solid black;
    display: inline-block;
}

.profile p {
    font-size: 1.8rem;
    line-height: 3rem;
    font-weight: 500;
}

@media screen and (max-width: 425px) {
    .profile {
        padding-top: 30px;
    }

    .profile h1 {
        font-size: 1.6rem;
    }

    .profile p {
        font-size: 1.3rem;
        line-height: 2rem;
    }
}

/* table form */

.tableform {
    font-size: 1.8rem;
    font-weight: 500;
    text-align: left;
    padding-top: 15px;
}

.tableform table {
    width: 100%;
}

.tableform tr {
    border-top: 1px solid black;
    border-bottom: 1px solid black;
}

.tableform th {
    width: 20%;
    border-top: 2px solid black;
    border-bottom: 2px solid black;
    padding: 20px 0;
}

.tableform td {
    padding: 20px 0;
    overflow: hidden;
}

@media screen and (max-width: 425px) {
    .tableform {
        font-size: 1.4rem;
        padding-top: 8px;
    }

    .tableform th {
        padding: 15px 0;
    }

    .tableform td {
        padding: 15px 0;
    }
}

/* action plan */

.actionplan p {
    font-size: 2rem;
    padding: 20px 0;
}

.actionplan > p > a {
    text-decoration: revert;
}

@media screen and (max-width: 425px) {
    .actionplan p {
        font-size: 1.4rem;
        padding: 7px 0;
    }

    .actionplan > p > a {
        text-decoration: revert;
    }
}

/* security */

.security {
    font-size: 2rem;
    font-weight: 500;
    padding-top: 20px;
}

.security h1{
    font-size: 4rem;
}

.security h2{
    font-size: 2.2rem;
}

ul.security_list {
    list-style: none;
    padding-top: 2rem;
    padding-left: 2rem;
}

@media screen and (max-width: 425px) {
    .security {
        font-size: 1.4rem;
        padding-top: 7px;
    }

    .security h1{
        font-size: 2.8rem;
    }

    .security h2{
        font-size: 1.54rem;
    }

    ul.security_list {
        list-style: none;
        padding-top: 1.4rem;
        padding-left: 1.4rem;
    }
}

/* access */

.access {
    font-size: 2rem;
    font-weight: 500;
    padding-top: 20px;
}

#map {
    margin-top: 20px;
    width: 100%;
    height: 500px;
}

@media screen and (max-width: 425px) {
    .access {
        font-size: 1.4rem;
        padding-top: 7px;
    }

    #map {
        width: 100%;
        height: 300px;
    }
}

/* contact */

.text {
    border: none;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px 20px;
    color: white;
    transition: all .3s;
    font-size: 1.8rem;
}

.textarea > th {
    vertical-align: top;
    padding-top: 20px;
}

.contact > form > p {
    text-align: right;
    padding: 20px 0;
}

.button {
    text-align: center;
}
.button > input {
    padding: 10px 40px;
    border: 1px solid black;
    font-size: 2rem;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
}

@media screen and (max-width: 425px) {
    .text {
        padding: 5px;
        font-size: 1.3rem;
    }

    .button > input {
        font-size: 1.6rem;
        padding: 5px 20px;
    }
}

/* structure */

.structure {
    padding-top: 20px;
}

.structure h1{
    font-size: 4rem;
}

.structure img {
    width: 100%;
    background-color: #ffffff;
}

.message h1 {
    font-size: 32px;
    letter-spacing: 0.05em;
    margin-bottom: 30px;
}

.message p {
    font-size: 15px;
    line-height: 2;
    margin-bottom: 25px;
}

/* セクション文頭を太字にする */
.message p:first-line {
    font-weight: bold;
}
/* ===== business: PDF 2枚目風の一覧 ===== */

.business_detail{
  width: 100%;
  padding: 80px 0 120px;
}

.business_detail_inner{
  width: min(900px, 86%);
  margin: 0 auto;
}

.business_detail_row{
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.business_detail_row:first-child{
  border-top: none;
}

.business_no{
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 999px;
  background: #666;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
}

.business_detail_title{
  margin: 0 0 14px;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.business_detail_list{
  margin: 0;
  padding: 0;
  list-style: none;
}

.business_detail_list li{
  position: relative;
  padding-left: 36px;
  margin: 10px 0;
  line-height: 1.9;
  font-size: 14px;
}

.business_detail_list li::before{
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(0,0,0,0.6);
}

/* SP */
@media screen and (max-width: 768px){
  .business_detail{
    padding: 56px 0 90px;
  }
  .business_detail_row{
    gap: 16px;
    padding: 22px 0;
  }
  .business_detail_title{
    font-size: 16px;
  }
  .business_detail_list li{
    padding-left: 28px;
    font-size: 13px;
  }
}
/* ===== Philosophy "詳細を見る" link ===== */
.philosophy_more a,
.philosophy_more a:link,
.philosophy_more a:visited,
.philosophy_more a:hover,
.philosophy_more a:active {
  color: #000;
  text-decoration: none;
}

.philosophy_more {
  margin-top: 16px;
  text-align: right;
}

.philosophy_more a {
  display: inline-block;
  position: relative;
  padding-right: 18px;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  transition: opacity 0.2s ease;
}

.philosophy_more a::after {
  content: "→";
  position: absolute;
  right: 0;
  top: 0;
}

.philosophy_more a:hover {
  opacity: 0.6;
}
/* ===== philosophy detail: message風（代表挨拶と同系統） ===== */
.philosophy_detail h2{
  font-size: 2rem;
  font-weight: 700;
  margin: 30px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.2);
}

.philosophy_detail p{
  margin-bottom: 22px;
}

/* SP */
@media screen and (max-width: 425px){
  .philosophy_detail h2{
    font-size: 1.6rem;
    margin: 22px 0 10px;
  }
}
/* philosophy詳細では1行目太字を無効化 */
.philosophy_detail p:first-line {
    font-weight: normal;
}
