@charset "utf-8";

h3 {
    padding: initial;
    margin: initial;
}

.maintopic {
    padding: 65px 0;
}

.subheader_secondtext {
    padding-top: 0;
}



.shalomlink {
    font-size: 1.4rem;
    color: white;
    font-weight: 600;
}

.linkbox {
    margin-top: 15px;
    padding: 5px 15px;
    border-radius: 8px;
    width: 250px;
    transition: 0.5s;
    background-color: #8bd7c0;
    box-shadow: 0 5px 15px -5px rgba(89, 121, 163, 0.8);
}

.linkbox:hover {
    opacity: 0.6;
    transition: 0.5s;
    transform: translate(-4px, -4px);
}



/* ここからメインサービス */

.mainservice_content {
    display: flex;
    justify-content: center;

}

.mainservice_icon {
  width: 37px;
  height: auto;
  padding: 5px 5px 0;
}

.service_logo {
  width: auto;
  height: 22px;
  padding: 2px;
  margin-bottom: 10px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.contentlist {
    width: 100%;
    margin: 10px;
    border-radius: 12px;
    box-shadow: 0 5px 15px -5px rgba(89, 121, 163, 0.8);
    position: relative;
}

.list_item_img img {
    width: 100%;
    max-height: auto;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.list_item_text {
    width: 100%;
    padding: 20px;
}

.list_item_text h3 {
    font-size: 1.8rem;
    padding: 15px 0;
    color: #5884bd;
}

.list_item_text h4 {
    font-size: 1.6rem;
    font-weight: 600;
    padding: 5px 0;
}

.list_item_text p {
    font-size: 1.4rem;
    padding: 5px 0;
}

.list_item_text a {
    margin: 25px 25px;
    color: #ffffff;
    display: block;
    text-align: center;
    background-color: #8BACD7;
    font-weight: 600;
    font-size: 1.6rem;
    padding: 5px 20px 8px;
    border-radius: 10px;
    box-shadow: 0 5px 15px -5px rgba(89, 121, 163, 0.8);
}

.list_item_text a:hover {
    opacity: 0.6;
    transition: 0.5s;
    transform: translate(-4px, -4px);
}


@media screen and (max-width:1024px) {
    .mainservice_content {
        display: block;
        margin-right: 5%;
    }
}

/* ここからその他の業務 */
.other_service {
  border-top: 2px dotted #5C5C5C;
  margin-top: 85px;
}

.other_service h2 {
  padding-bottom: 40px;
}

.flexbox {
  display: flex;
  width: 100%;
  margin: 10px;
  border-radius: 12px;
  box-shadow: 0 5px 15px -5px rgba(89, 121, 163, 0.8);
}

.leftbox {
  width: 35%;
  height: auto;
}

.leftbox img {
  padding: 15px 20px;
  width: 100%;
}

.rightbox {
  width: 100%;
  padding: 15px 20px 30px;
  position: relative;
}

.rightbox h3 {
  font-size: 1.8rem;
  color: #5884bd;
  padding: 10px 0;
}

.rightbox h4 {
  font-size: 1.6rem;
  font-weight: 600;
  padding-top: 10px;
}

.rightbox p {
  font-size: 1.4rem;
  font-weight: 400;
  padding: 15px 0 30px;
}

.other_service_logo {
  width: auto;
  height: 60px;
  padding: 20px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

@media screen and (max-width:1024px) {
    .flexbox {
        display: block;
    }

    .leftbox {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }

    .leftbox img {
        padding: 15px 20px;
        width: 100%;
        height: 100%;
        object-fit: cover;
}

}

/* ここからタブの表示非表示 */

.tab-switch {
  --tab-color:#92bac2;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 100%;
  margin-inline: auto;
  gap: 5px;
  margin-top: 20px;
}

label:hover {
    opacity: 0.6;
    transition: 0.5s;
    transform: translate(-4px, -4px);
    box-shadow: 0 5px 15px -5px rgba(89, 121, 163, 0.8);
}

/* ラジオ非表示 */
.tab-switch input {
  display: none;
}

/* タブボタン */
.tab-switch label {
  padding: 0.7em 1em;
  font-size: 1.2rem;
  background:#eee;
  cursor: pointer;
  order: -1;
  text-align: center;
  border-radius: 5px;
}

/* コンテンツ非表示 */
.tabbox {
  display: none;
  width: 100%;
  padding: 1.5em 0;;
}

/* 選択されたタブ＋コンテンツ表示 */
.tab-switch input:checked + label {
  background: var(--tab-color);
  color: #fff;
}
.tab-switch input:checked + label + .tabbox {
  display: block;
}