@charset "UTF-8";

/* service.php specific styles */

/*////////////////////////////////
credo section (as used in service.php for CREDO)
////////////////////////////////*/
#credo-section {
  padding: 120px 0;
  background: url("../img/bg_recruit.jpg") center center / cover no-repeat fixed;
}
#credo-section .area_service {
    max-width: 1024px;
    width: 94%;
    margin: 0 auto;
    padding: 80px 0;
    background: #fff;
}

/* メインの「CREDO」 h4.gothic のスタイル */
#credo-section .area_service h4 {
   font-size: 7rem;
   color: #000000;
   text-align: center;
   margin-bottom: 10px; /* H4とitem_about03の間のマージンを調整 */
}
#credo-section .area_service h4:first-letter {
   font-size: 8rem;
   color: #045484;
}

/* 「クレド」 h3.gothic のスタイル */
#credo-section .area_service h3 { /* service.php の「クレド」h3 に適用 */
    text-align: left;
    font-size: 2.8rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-weight: 600;
    margin: 0 0 15px 0;
}
#credo-section .area_service h3::before {
    content: '';
    display: block;
    width: 4px;
    height: 40px;
    background: #64d4ec;
    margin-right: 16px;
}

/* service.phpのCREDO部分の item_about03 関連コンテナスタイル */
#credo-section .item_about03 {
  max-width: 1024px;
  width: 94%;
  margin: 0 auto;
  padding-top: 0; /* h4からの間隔はh4のmargin-bottomで調整 */
}
#about .item_about03 .flex_about01 {
    display: flex;
    flex-direction: row; /* 左右カラム表示 */
    align-items: flex-start;
    margin-top: 20px;
    justify-content: space-between;
    flex-wrap: wrap; /* SPで折り返す場合 */
}
#about .item_about03 .flex_about01 .left_about01 { /* 「クレド」タイトルと画像エリア */
    display:flex;
    flex-direction: column;
    align-items: flex-start;
    width:48%;
}
#about .item_about03 .flex_about01 .left_about01 .image { /* CREDO画像コンテナ */
    width: 100%;
    max-width: 100%;
    margin-top: 15px;
}
#about .item_about03 .flex_about01 .left_about01 .image img {
    width: 100%;
    height: auto;
    display:block;
}
#about .item_about03 .flex_about01 .right_about01 { /* CREDOテキスト部分 */
    width: 48%;
    font-size: 1.6rem;
    line-height: 1.8;
}


/*////////////////////////////////
item_table (共通テーブルスタイル)
////////////////////////////////*/
.item_table {
  max-width: 768px;
  width: 94%;
  margin: 40px auto 0;
}
.item_table table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
}
.item_table th, .item_table td {
  padding: 24px;
  text-align: left;
  border: 1px solid #ccc;
}
.item_table th {
  width: 30%;
  font-size: 1.7rem;
  vertical-align: middle;
  background-color: #f9f9f9;
}
.item_table td {
  font-size: 1.6rem;
}
.item_table td > span {
  font-weight: bold;
}
.item_table td ul {
  margin-top: 5px;
  margin-bottom: 10px;
  padding-left: 20px;
}
.item_table td ul li {
  margin-bottom: 3px;
}

/*////////////////////////////////
info_table_section (サービス詳細の各セクション)
////////////////////////////////*/
.info_table_section {
    padding: 100px 100px;
    background: url("../img/bg_event_list.jpg") center/cover;
    background-size:100% auto;
}
.info_table_section h2 {
  font-size: 2.2rem;
  text-align: center;
  line-height: 1.5;
  font-weight: normal;
  margin-bottom: 30px;
}
.info_table_section h2::first-line {
  font-size: 3.2rem;
  font-weight: 600;
}
.info_table_section figure {
    text-align: center;
    margin-bottom: 30px;
}
.info_table_section figure img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: inline-block;
}

/*////////////////////////////////
service_list (事業計画セクション)
////////////////////////////////*/
#service_list {
    padding: 100px 100px;
    background: url("../img/bg_service_list.jpg") center/cover;
    background-size:100% auto;
}
#service_list h2 { /* 「事業計画」「主なサービス」タイトル */
  font-size: 2.2rem;
  text-align: center;
  line-height: 1.5;
  font-weight: normal;
  margin-bottom: 20px;
}
#service_list h2::first-line {
  font-size: 3.2rem;
  font-weight: 600;
}
.items3 { /* 事業計画の3カラムレイアウト */
  margin-top:40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.items3 .item {
  width: 30%;
  background: #fff;
  border: 1px solid #eee;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
#service_list .item .item-body {
    padding: 20px;
}
#service_list .item h3 {
    position: relative;
    padding: 1rem 2rem calc(1rem + 10px);
    background: #fbfbfb;
    font-size: 1.8rem;
    border-bottom: 2px solid #000;
}
#service_list .item p {
    margin: 20px 0px 20px;
    font-size: 1.6rem;
    line-height: 1.7;
}

/*////////////////////////////////
guest (歯科医院コンサルティング等セクション)
////////////////////////////////*/
#guest {
    padding: 100px 0;
}
#guest .area_guest {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    background: #fff;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
#guest .area_guest:nth-child(even) {
    flex-direction: row-reverse;
}
#guest .area_guest figure,
#guest .area_guest .right_guest {
    width: calc(100% / 2);
}
#guest .area_guest figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#guest .area_guest .right_guest {
    background: #D9D9D9;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#guest .area_guest .right_guest h3 {
    font-size: 2.6rem;
    font-weight: 300;
    color: #045484;
    margin-bottom: 20px;
}
#guest .area_guest .right_guest h3 span {
    color: #000000;
    font-size: 1.8rem;
    display: block;
    margin-top: 5px;
}
#guest .area_guest .right_guest p {
    font-size: 1.4rem;
    line-height: 1.8;
}

/* ========== Mobile Styles (Consolidated 1024px, 768px and 450px) ========== */

@media screen and (max-width: 1024px) {
    #about .area_service { /* CREDOセクションの .area_service */
        padding: 40px 0;
    }
    #about .area_service h4 { /* CREDO H4 */
        font-size: 5rem;
    }
    #about .area_service h4:first-letter {
        font-size: 6rem; /* SPでは少し控えめに */
    }
    #about .area_service h3 { /* 「クレド」H3 */
        font-size: 2.2rem;
    }
    #about .area_service h3::before {
        height: 32px; /* h3のフォントサイズに合わせる */
    }
    #about .item_about03 .flex_about01 {
        flex-direction: column; /* SPでは縦積みに変更 */
        align-items: center;
    }
    #about .item_about03 .flex_about01 .left_about01,
    #about .item_about03 .flex_about01 .right_about01 {
        width: 100%; /* SPでは幅100% */
        margin-bottom: 20px;
    }
    #about .item_about03 .flex_about01 .left_about01 {
        align-items: center; /* 「クレド」と画像を中央寄せ */
    }


    .info_table_section {
        padding: 40px 0px;
        margin-bottom:40px;
        background: url("../img/bg_recruit.jpg") center/cover;
    }
    #service_list {
        background: url("../img/bg_recruit.jpg") center/cover;
        padding: 40px 0;
    }
    #service_list .item p {
        font-size: 1.4rem;
    }
    #guest {
        padding: 40px 0;
    }
    #guest .area_guest {
        display: block;
    }
    #guest .area_guest figure,
    #guest .area_guest .right_guest {
        max-width: 640px;
        width: 100%;
        margin: 0 auto;
    }
    #guest .area_guest figure img {
        height: auto;
    }
    #guest .area_guest .right_guest {
        padding: 30px;
    }
    #guest .area_guest .right_guest h3 {
        margin-top: 0;
        font-size: 1.8rem;
    }
    #guest .area_guest .right_guest h3 span {
        font-size: 1.4rem;
    }
    #guest .area_guest .right_guest p {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 768px) {
    #about {
      padding-top: 10px;
      padding-bottom: 10px;
    }
    #about .area_service {
        padding: 20px 0;
    }
    #about .area_service h4 { /* CREDO H4 */
        font-size: 3.5rem;
    }
    #about .area_service h4:first-letter {
        font-size: 4.5rem;
    }
    #about .area_service h3 { /* 「クレド」H3 */
        font-size: 2rem;
    }
     #about .area_service h3::before {
        height: 30px;
        margin-right:10px;
    }
    #about .item_about03 {
        margin-top: 20px;
    }
    #about .item_about03 .flex_about01 .left_about01 .image {
        width: 90%; max-width: 400px;
    }
    #about .item_about03 .flex_about01 .right_about01 {
        width: 100%; padding: 15px; font-size:1.5rem;
    }

    .item_table {
        width: 90%;
    }
    .item_table tbody {
        display: block;
        margin-bottom: 40px;
    }
    .item_table th, .item_table td {
        padding: 15px 10px;
        display: block;
        width: 100% !important;
        box-sizing: border-box;
        border-left: none;
        border-right: none;
    }
    .item_table th {
        border-bottom: none;
        font-size: 1.6rem;
        padding: 15px 10px 8px 10px;
        text-align: left;
        background-color: #efefef;
    }
    .item_table td {
        padding: 8px 10px 15px 10px;
        text-align: left;
        font-size: 1.5rem;
    }
    .item_table tr {
        display: block;
        margin-bottom: 10px;
        border: 1px solid #ddd;
    }
    .item_table tr:last-of-type {
        margin-bottom: 0;
    }

    .info_table_section {
        padding: 20px 15px;
    }
    .info_table_section h2 {
        font-size: 1.8rem;
    }
    .info_table_section h2::first-line {
        font-size: 2.4rem;
    }

    #service_list {
        padding: 10px 0 20px;
    }
    #service_list h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    #service_list h2.gothic:nth-of-type(2) {
        margin-top: 20px;
    }
    #service_list h2::first-line {
        font-size: 2.4rem;
    }
    #service_list .items3 .item {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 20px;
    }

    #guest {
        padding: 20px 0;
    }
    #guest .area_guest {
        display: block;
        margin-bottom: 20px;
    }
    #guest .area_guest figure,
    #guest .area_guest .right_guest {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }
    #guest .area_guest .right_guest {
        padding: 20px 15px;
    }
    #guest .area_guest .right_guest h3 {
        margin-top: 0;
        font-size: 1.5rem;
    }
    #guest .area_guest .right_guest h3 span {
        font-size: 1.2rem;
    }
    #guest .area_guest .right_guest p {
        font-size: 1.0rem;
    }
}

@media screen and (max-width: 450px) {
    #about {
      padding: 20px 0;
    }
     #about .area_service h4 { /* CREDO H4 */
        font-size: 3rem;
    }
    #about .area_service h4:first-letter {
        font-size: 4rem;
    }
    #about .area_service h3 { /* 「クレド」H3 */
        font-size: 1.8rem;
    }
     #about .area_service h3::before {
        height: 28px;
    }

    .info_table_section {
        padding: 20px 10px;
    }
    #service_list {
        padding: 10px 0 20px;
    }
    #service_list .items3 .item {
        width: 100%;
    }
}