@charset "UTF-8";
#main-visual {
    height: 300px;
    background-color: var(--bg-color);
    background-image: url(../features/img/fv_img.webp);
    display: flex;
    justify-content: center;
    align-items: center;
}

#main-visual h1 {
    font-size: 4rem;
    color: white;
    letter-spacing: 0.2em;
}

@media screen and (max-width: 767px) {
    #main-visual {
        height: 50vw;
    }

    #main-visual h1 {
        font-size: 6vw;
        color: white;
    }
}

.mb2 {
    margin-bottom: 2em;
}

.features_content {
    font-size: clamp(16px,1.8vw,20px);
    letter-spacing: 0.1em;
    font-feature-settings: "palt";
    line-height: 1.5;
}

.features_content:not(:last-child) {
    margin-bottom: 6vw;
}

.features_content h3 {
    background-color: var(--c1);
    text-align: center;
    font-size: 1.4em;
    padding: 0.5em;
}

#keiri .features_content h3 {
    background-color: var(--c2);
}
#senmon .features_content h3 {
    background-color: var(--c3);
}

.content_box {
    background-color: var(--bg);
    padding: 2em;
    display: flex;
    flex-direction: column;
    gap: 4vw;
}

#keiri .content_box {
    background-color: white;
}

.img_content {
    display: flex;
    gap: 2em;
}

.img_content .left {
    width: 40%;
    background-color: var(--dark);
    align-self: flex-start;
    position: relative;
}

.img_content .left::after {
  content: "";
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 25px;
  height: 25px;
  background-color: transparent;
  background-image: 
    linear-gradient(white, white), 
    linear-gradient(white, white);
  background-repeat: no-repeat;
  background-position: center center, center center;
  background-size: 100% 2px, 2px 100%;
  pointer-events: none;
    transition: all 0.2s;
}

.img_content .left:hover::after {
  background-image: 
    linear-gradient(var(--dark), var(--dark)), 
    linear-gradient(var(--dark), var(--dark));
}

.img_content .left.none::after {
    display: none;
}

.img_content .left img {
    width: 100%;
    opacity: 0.5;
}

.img_content .left.none img {
    opacity: 1;
}

.img_content .right {
    flex: 1;
}

.img_content .right h4 {
    font-size: 1.2em;
    border-bottom: 2px solid var(--sub);
    padding-bottom: 0.5em;
    margin-bottom: 0.7em;
}

.img_content .right .dot_list li {
    font-size: 90%;
    text-indent: -1.2em;
    padding-left: 1.2em;
    letter-spacing: 0.05em;
}

.img_content .right .dot_list li:before {
    content: "●";
    color: var(--sub);
    margin-right: 0.2em;
}

.img_content .right .dot_list li:not(:last-child) {
    margin-bottom: 0.5em;
}

/* ----- 専門家 ----- */
.senmon_h4 {
    font-size: 150%;
    display: flex;
    line-height: 1;
    align-items: center;
    margin-bottom: 1em;
}

.senmon_h4 .num {
    color: var(--c3);
    font-size: 150%;
    width: 1.5em;
}

.senmon_h4 .h4 {
    flex: 1;
    border-bottom: 1px solid #333;
    padding-bottom: 0.3em;
}

.h4_sub {
    margin-left: 3.375em;
    text-align: justify;
    margin-bottom: 2em;
}

.senmon_img_box {
    margin-left: 3.375em;
    display: flex;
    justify-content: space-between;
}

.senmon_img_box.single {
    margin-left: 0;
}

.b_wrap {
    background-color: white;
    border: 3px solid var(--c3);
    padding: 1.5em;
}

.senmon_img_box .b_wrap {
    width: 60%;
}

.senmon_img_box.no_img .b_wrap {
    width: 48%;
}

.senmon_img_box .b_wrap .ttl {
    font-size: 120%;
    margin-bottom: 0.8em;
    padding: 0.5em 0 0.5em 0.5em;
    line-height: 1;
    border-left: 0.2em solid var(--c3);
}

.list_box {
    margin-bottom: 4vw;
}

.list_box .ttl {
    font-size: 120%;
    margin-bottom: 0.8em;
    padding: 0.5em 0 0.5em 0.5em;
    line-height: 1;
    border-left: 0.2em solid var(--c3);
}

.indent_list1.wide {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5em 1em;
}

.indent_list1.wide li {
    width: calc(50% - 0.5em);
}

.indent_list1 li {
    text-indent: -1.2em;
    padding-left: 1.2em;
    line-height: 1.5;
}

.indent_list1 li span {
    margin-right: 0.2em;
}

.indent_list1.blu li span {
    color: var(--main);
}

.indent_list1.b_line li:not(:last-child) {
    border-bottom: 1px dotted #aaa;
    padding-bottom: 0.5em;
    margin-bottom: 0.5em;
}

.senmon_img_box > img {
    width: 37%;
    align-self: flex-end;
}

.ttl_box {
    margin-top: 4vw;
}

.ttl_box > .ttl {
    background-color: var(--c3);
    text-align: center;
    font-size: 150%;
    line-height: 1.5;
    padding: 1em 0.5em;
}

.ttl_box .content {
    background-color: white;
    border: 3px solid var(--c3);
    padding: 2em;
}

.bl_ttl {
    font-size: 120%;
    text-align: center;
    color: var(--main);
    margin-bottom: 1em;
}

@media screen and (max-width: 767px) {
    .features_content {
        font-size: clamp(13px, 2vw, 15px);
    }

    .features_content:not(:last-child) {
        margin-bottom: 12vw;
    }

    .features_content h3 {
        font-size: 1.2em;
    }

    .content_box {
        padding: 1.5em;
        gap: 8vw;
    }

    .img_content {
        flex-wrap: wrap;
        gap: 1.5em;
    }

    .img_content .left {
        width: 100%;
    }

    .img_content .right h4 {
        font-size: 1.2em;
        border-bottom: 1px solid var(--sub);
    }

    /* ----- 専門家 ----- */
    .senmon_h4 {
        font-size: 120%;
    }

    .senmon_h4 .num {
        font-size: 130%;
    }

    .h4_sub {
        margin-left:2.34em;
        margin-bottom: 2em;
    }

    .senmon_img_box {
        margin-left: 0em;
        flex-wrap: wrap;
        gap: 1em;
    }

    .b_wrap {
        border: 2px solid var(--c3);
        padding: 1em;
    }

    .senmon_img_box .b_wrap {
        width: 100%;
    }

    .senmon_img_box.no_img .b_wrap {
        width: 100%;
    }

    .senmon_img_box .b_wrap .ttl {
        font-size: 110%;
    }

    .list_box {
        margin-bottom: 8vw;
    }

    .list_box .ttl {
        font-size: 110%;
    }

    .indent_list1.wide li {
        width: 100%;
    }

    .senmon_img_box > img {
        width: 100%;
    }

    .ttl_box {
        margin-top: 8vw;
    }

    .ttl_box > .ttl {
        font-size: 120%;
    }

    .ttl_box .content {
        border: 2px solid var(--c3);
        padding: 1em;
    }

    .bl_ttl {
        font-size: 110%;
        text-align: justify;
    }
}

/* ----- 追加 ----- */
.jirei .ttl {
    line-height: 1;
    font-size: 120%;
    margin-bottom: 1.5em;
    background-color: white;
    padding: 0.5em 0.5em 0.6em;
}

.jirei .ttl span {
    display: inline-block;
}

.jirei .ttl span:nth-child(1) {
    color: var(--main);
    margin-right: 1em;
}

.jirei .img_content:not(:last-child) {
    margin-bottom: 4vw;
}

.jirei .img_content .left {
    width: 50%;
}

.jirei .img_content .left::after {
    display: none;
}

.jirei .img_content .left img {
    opacity: 1;
}

#consulting .flex_box {
    display: flex;
    justify-content: space-between;
}

#consulting .flex_box img {
    width: 30%;
    align-self: flex-start;
    max-width: 350px;
}

.consul_list dt {
    color: var(--main);
    font-size: 90%;
    margin-bottom: 0.5em;
}

.consul_list dt:not(:first-of-type) {
    margin-top: 2em;
}

.consul_list dd {
    line-height: 1.5;
}

.consul_list .dot_list {
    background-color: white;
    padding: 2em;
    border-radius: 1em;
    margin-top: 1em;
    border: 1px solid var(--sub);
}

.consul_list .dot_list li {
    font-size: 90%;
    text-indent: -1.2em;
    padding-left: 1.2em;
    letter-spacing: 0.05em;
}

.consul_list .dot_list li:before {
    content: "●";
    color: var(--sub);
    margin-right: 0.2em;
}

.consul_list .dot_list li:not(:last-child) {
    margin-bottom: 0.5em;
}

/* モーダル追加 */
/* クリックできることを示す */
.modal-trigger {
    cursor: pointer;
    transition: opacity 0.3s;
}
.modal-trigger:hover {
    opacity: 0.8 !important; /* 元のCSSで0.5になっているため調整 */
}

/* モーダル背景 */
.modal {
    display: none; /* 初期状態は非表示 */
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* 背景を少し暗めに */
    backdrop-filter: blur(4px); /* 背景をぼかす（任意） */
}

/* 背景をクリックして閉じるためのクリック判定エリア */
.modal-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    cursor: pointer; /* 背景部分では「閉じる」イメージでポインターを変える */
}

/* コンテンツ（画像/PDF）を包む枠 */
#modal-container {
    width: 90%;
    max-width: 1100px;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* 重要：この枠自体のクリックは透過させ、背後のwrapperに届かせる */
    pointer-events: none; 
}

/* 中身（画像・PDF）はクリックや操作ができるようにする */
#modal-container img,
#modal-container iframe {
    max-width: 100%;
    max-height: 100%;
    pointer-events: auto; /* クリックを有効に戻す */
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    background-color: #fff;
}

#modal-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 閉じるボタン（右上） */
.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 50px;
    font-weight: normal;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
}