

.hero-inner {
    width: 100%;
    height: 40vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-image: url('/wp-content/themes/fix-jpn/assets/image/top/hero_bg.jpg');
    background-size: cover;
}
@media (max-width: 768px) {
    .hero-inner {
        width: 100%;
        height: 290px;
        background-image: url('/wp-content/themes/fix-jpn/assets/image/top/hero_bg_sp.jpg');
        background-size: cover;
    }
}

.hero-title-snslinks {
    height: 50px;
}
.hero-title-snslinks a {
    display: none;
}
@media (max-width: 768px) {
    .hero-title-snslinks {
        height: 50px;
    }
    .hero-title-snslinks a {
        display: inline-block;
        margin-right: 12px;
    }
}
.hero-title {
    height: 80px;
    display: block;
    text-align: center;
}
@media (max-width: 768px) {
    .hero-title {
        height: 40px;
    }  
}

.hero-title-bottom > * {
    display: none;
}
@media (max-width: 768px) {
    .hero-title-bottom > * {
        display: block;
    }
}


.card {
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}
@media (max-width: 768px) {
    .card {
        text-align: left;
    }
}
.card p.section-text-first {
    margin: 2em auto 1.2em auto;
    font-size: 22px;
}
.card p {
    display: block;
    max-width: 800px;
    margin: 0 auto 0.2em auto;
}
.card p.section-text-top {
    margin: 2em auto 1.2em auto;
}

.card p.section-text-president {
    position: relative;
    display: block;
    width: 150px;
    margin: 2em 11% 0 auto;
    text-align: right;
}
.section-text-president-position {
    display: inline-block;
    width: 160px;
    text-align: center;
}
.section-text-president-name {
    display: inline-block;
    width: 160px;
    margin-top: 0.2em;
    font-size: 34px;
    text-align: center;
}

/* --------------------
    About
-------------------- */
.about {
}
.about .container {
}
.about .container .card {
    background: var(--bg-light);
}

/* --------------------
    Instagram
-------------------- */
.instagram {

}

.insta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.instagram .container {
    background: var(--bg-beige);
}

.section-title-instagram {
    top: -6.4rem;
    margin-bottom: -6.4rem;
}

@media (max-width: 768px) {
    .section-title-instagram {
        top: -3.4rem;
        margin-bottom: -3.4rem;
    }
    .section-title-news {
        top: -3.4rem;
        margin-bottom: -3.4rem;
    }
}
.section-title-news img {
    max-width: 50%;
}

.section-intermission {
    padding: 60px 16px;
    width: 100%;
    text-align: center;
}
.section-intermission-container {
    display: flex;
    justify-content: space-around;
    margin: 0 auto 40px auto;
    width: 100%;
    max-width: 1100px;
}
.section-intermission img {
    max-width: 95%;
}
.section-intermission img.section-intermission-image2 {
    width: 47%;
}
@media (max-width: 768px) {
    .section-intermission {
        padding: 0 0 10px 0;
        width: 100%;
        max-width: 524px;
        text-align: center;
    }
    .section-intermission img {
        justify-content: space-around;
        width: 90%;
        max-width: 90%;
    }
}

/* --------------------
    Service
-------------------- */
.service {
}
.service .container {
    background: var(--bg-beige);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}
@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}
.service-item img {
    margin-bottom: 12px;
}

/* --------------------
    News
-------------------- */
.news {
}
.news .container {
    background: var(--bg-beige);
}
@media (max-width: 768px) {
    .news .card {
        padding: 24px 18px;
    }
}

.news-list {
    padding: 1rem 2rem;
    list-style: none;
}
@media (max-width: 768px) {
    .news-list {
        margin: 0 0 1.5em 0em;
        padding: 1rem 0.25rem;
    }
}

.news-list li {
    display: flex;
    justify-content: space-between;
    padding: 3rem 3% 1.5rem 3%;
    border-bottom: 1px solid #555;
    font-size: 16px;
}
.news-item {
    display: block;
    padding: 5% 5%;
}
.news-item-link {
    display: flex;
    justify-content: space-between;
    width: 100%;
}
.news-item a, .news-item a:visited {
    color: black;
}

.news-item span {
    display: inline-block;
    text-align: left;
}

.news-item .news-item-date {
    margin-right: 2rem;
}
.news-item .news-item-type {
    width: 125px;
    text-align: center;
    border: 1px solid #333;
    border-radius: 15px;
}
.news-item .news-item-title {
    margin-left: 2rem;
}
.news-item .news-item-toright {
    width: 50px;
}
.news-item .news-item-toright img {
    height: 16px;
}

@media (max-width: 768px) {
    .news-list li {
        padding: 3rem 3% 1.0rem 3%;
    }
    .news-item .news-item-title {
        width: 100%;
        max-width: 100%;
        margin-top: 0.6em;
        margin-left: 0rem;
        font-size: 18px;
    }
    .news-item .news-item-type {
        background-color: #FFF;
    }
    .news-item .news-item-title {
        width: 70%;
        max-width: 80%;
        margin-left: 2rem;
    }
    .news-item .news-item-toright img {
        position: relative;
        top: 10px;
        height: 21px;
    }
}



/* --------------------
    Company
-------------------- */
.company {
}
.company .container {
    background: var(--bg-light);
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}
@media (max-width: 768px) {
    .company-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* --------------------
    Contact
-------------------- */
.contact {
    position: static;
    color: #fff;
}
.contact-container {
    position: relative;
    left: 0.10%;
    max-width: 1100px;
    height: 494px;
    margin: 0 auto;
    background: url("/wp-content/themes/fix-jpn/assets/image/top/contact_bg.jpg") center/cover no-repeat;
    color: #fff;
}
@media (max-width: 768px) {
    .contact-container {
        height: 260px;
        background: url("/wp-content/themes/fix-jpn/assets/image/top/contact_bg_sp.jpg") center/cover no-repeat;
    }
}
.contact::after {
    content: "";
    position: absolute;
    inset: 0;
}

.contact-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.section-title-contact {
    top: -2rem;
    margin-bottom: -2rem;
}
@media (max-width: 768px) {
    .section-title-contact {
        max-width: 55%;
        top: -1.5rem;
        margin-bottom: -1.5rem;
    }
}
.contact-buttons {
    margin-top: 5.5rem;
}
.contact-button {
    margin: 35px auto 20px auto;
}
.contact-link-tel {
    display: inline-block;
}
@media (max-width: 768px) {
    .contact-buttons {
        margin-top: 1.5rem;
    }
    .contact-button {
        height: 41px;
        max-width: 70%;
        margin: 5px auto 15px auto;
    }
    .contact-button img {
        height: 41px;
    }
}