@charset "utf-8";

/* ----------------病名から探す------------------ */

#search-by-disease {
    padding: 100px 10.4%;
    background: var(--primary-palegreen);
    position: relative;
    z-index: 1;
}

.search-by-disease-summary {
    border-radius: 60px;
    background: var(--primary-white);
    padding: 60px 50px;
}

h2 {
    color: var(--primary-green);
    font-family: "Zen Maru Gothic";
    font-size: 3.6rem;
    font-style: normal;
    font-weight: bold;
    line-height: normal;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-color: #C1DFC4;
    text-decoration-thickness: 10%;
    text-underline-offset: 25%;
    text-underline-position: from-font;
    margin-bottom: 46px;
    margin-left: 5%;
    text-align:start;
}

.item_wrap {
    margin-top: 60px;
}

.tab_btn {
    display: flex;
    width: 100%;
    max-width: 279px;
    padding: 10px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    background: var(--lightgreen, #D2E7CC);
    color: var(--black, #333);
    text-align: center;
    font-family: "Zen Maru Gothic";
    font-size: 3.2rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    cursor: pointer;
}

.colbox_4 {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 10px;
    font-size: 2.0rem;
    font-weight: 500;
    border-radius: 10px;
    border: 2px solid var(--lightgreen, #D2E7CC);
    background: var(--green, #7AA270);
    width: 100%;
    max-width: 316px;
    overflow: hidden;
    color: var(--primary-white);
    margin: 0 auto;
    cursor: pointer;
}

.colbox_4::after {
    content: "";
    width: 14px;
    height: 14px;
    background-color: var(--primary-palegreen);
    position: relative;
    clip-path: polygon(0 0, 0 100%, 100% 50%);
    transition: right .5s ease-in-out;
    margin-left: 8px;
}

.colbox_4:hover {
    background: var(--beige, #FAF3E5);
    color: var(--green, #7AA270);
}

.colbox_4:hover::after {
    background-color: var(--primary-green);
}

.colbox_4 span {
    text-align: center;
    display: inline-block;
}

.tab-disease {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 35px;
    padding: 0;
}
/* ----------------------------------------------------
病名から探すタブレット用（768px〜1024px）
---------------------------------------------------- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    h2 {
    text-align: center;
}
}
/* ----------------------------------------------------
病名から探すスマホ用（〜767px）
---------------------------------------------------- */
@media screen and (max-width: 768px) {
#search-by-disease {
    padding: 58px 0;
}

.search-by-disease-summary {
    border-radius: 30px;
    padding: 30px 5px 60px 5px;
}

h2 {
    font-size: 2.0rem;
    margin-bottom: 30px;
    margin-left: 0;
    text-align: center;
}

.item_wrap {
    margin-top: 30px;
}

.tab_btn {
    font-size: 1.6rem;
}

.colbox_4 {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 10px;
    font-size: 1.6rem;
    font-weight: 500;
    border-radius: 10px;
    border: 2px solid var(--lightgreen, #D2E7CC);
    background: var(--green, #7AA270);
    width: 100%;
    max-width: 316px;
    overflow: hidden;
    color: var(--primary-white);
    margin: 0 auto;
    cursor: pointer;
}

.colbox_4::after {
    content: "";
    width: 14px;
    height: 14px;
    background-color: var(--primary-palegreen);
    position: relative;
    clip-path: polygon(0 0, 0 100%, 100% 50%);
    transition: right .5s ease-in-out;
    margin-left: 8px;
}

.colbox_4:hover {
    background: var(--beige, #FAF3E5);
    color: var(--green, #7AA270);
}

.colbox_4:hover::after {
    background-color: var(--primary-green);
}

.colbox_4 span {
    text-align: center;
    display: inline-block;
}

.sec_box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 37px;
    padding: 0;
}
.tab-disease {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 35px;
    padding: 0;
}

.item_wrap span {
    display: none;
}
}