@charset "utf-8";

/* base */
:root {
    --main-color: #F1F3F7;
    --blue: #295093;
    --black: #000000;
    --white: #ffffff;

    --font-xl: clamp(24px, 3.4vw, 40px);
    --font-lg: clamp(20px, 2.6vw, 32px);
    --font-md: clamp(22px, 2vw, 24px);
    --font-base: clamp(14px, 1.2vw, 16px);
    --font-sm: 12px;

    --header-h: 72px;
    --header-bar-h: 8px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
}

html,
body {
    overflow-x: hidden;
}

main {
    flex: 1;
}

.inner {
    width: min(1200px, 92%);
    margin: 0 auto;
}

section {
    padding: 6vw 0;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

li {
    list-style: none;
}

h1,
h2,
h3,
p,
a,
li {
    font-family: "Noto Sans", "Noto Sans JP", sans-serif;
    font-weight: 400;
    font-style: normal;
}

h1 {
    font-size: var(--font-xl);
    line-height: 1.5;
}

h2 {
    font-size: var(--font-lg);
    line-height: 1.3;
}

h3,
.btn {
    font-size: var(--font-md);
    line-height: 1.5;
}

p,
li,
a {
    font-size: var(--font-base);
    line-height: 1.5;
}

/* section header */
.header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 3px solid #000;
    align-items: end;
    margin-bottom: 32px;
}

section h2 {
    margin-bottom: 5px;
}

section h2 span {
    font-size: var(--font-base);
}

/* btn */
.header_contact .button {
    display: inline-flex;
    padding: 10px 20px;
    background: var(--blue);
    border-radius: 8px;
    color: #fff;
    border: 2px solid transparent;
}

body .btn {
    display: flex;
    /* width: min(480px, 100%); */
    height: 72px;
    background-color: var(--blue);
    color: var(--white);
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    border: 2px solid transparent;
    font-size: clamp(22px, 2vw, 24px);
}

.wp-block-button__link:hover,
body .btn:hover,
.header_contact .button:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: var(--blue);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* click arrow */
.click::after {
    margin-left: 8px;
    content: ">";
}

.click:hover {
    opacity: 0.7;
}

/* header */
.nav_header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    z-index: 1000;
    background-color: var(--white);
    border-bottom: 1px solid #eee;
    position: fixed;
}

.header_inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    gap: 16px;
}

.header_nav {
    display: flex;
    gap: 32px;
}

.header_nav ul {
    display: flex;
    gap: 32px;
}

.header_nav a,
.header_logo a {
    display: block;
    position: relative;
    line-height: 1.2;
    padding-bottom: 6px;
}

.header_logo a {
    font-size: var(--font-md);
}

.header_nav a::after,
.header_logo a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--black);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header_nav a:hover::after,
.header_logo a:hover::after {
    opacity: 1;
}

.header_bar {
    height: 8px;
    background-color: var(--blue);
}

/* hamburger (PCでは隠す) */
.hamburger_btn {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    padding: 0;
}

.hamburger_btn span {
    display: block;
    height: 2px;
    background: #000;
    margin: 8px 0;
}

/* MV */
.mv {
    width: 100%;
    background: var(--main-color);
    padding: clamp(48px, 5vw, 64px);
    margin-top: 32px;
}

.mv_inner {
    width: min(1200px, 92%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1.4fr;
    grid-template-areas:
        "text pic"
        "btn  pic";
    gap: clamp(16px, 3vw, 40px);
    align-items: center;
}

.mv_text {
    grid-area: text;
}

.mv_pic {
    grid-area: pic;
}

.mv_button {
    grid-area: btn;
}

.mv_title {
    line-height: 1.25;
    letter-spacing: 0.02em;
}

.mv_item h3 {
    margin-top: 8px;
    color: rgba(0, 0, 0, 0.75);
}

.mv_button {
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
}

.mv_button .btn {
    width: 240px;
    height: 72px;
    margin: 0;
}

.mv_pic {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    min-height: clamp(260px, 34vw, 520px);
    background: #ddd;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}

.slider {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s;
}

.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* NEWS */
.news {
    padding-bottom: 80px;
}

.news .card_list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    justify-content: center;
    align-items: stretch;
    gap: 32px;
}

.news .card_list img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: 8px;
}

.news_list p {
    margin: 8px 0 8px;
    min-height: 3.2em;
}

.news_item:hover .news_list p {
    text-decoration: underline;
}

.cardList_item img:hover {
    transform: scale(1.03);
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

/* reason */
.reason {
    padding: 3vw 0;
}

/* SERVICE */
.service .card_list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 32px;
    text-align: center;
}

.service_item {
    padding: 32px 24px;
    border: 3px solid var(--blue);
    border-radius: 32px;
}

.service_item img {
    margin: 0 auto 0.5rem;
    border-radius: 8px;
}

.service_item h3 {
    margin-top: 0;
    border-bottom: 3px solid #000;
}

.service_list p {
    text-align: left;
}

/* FOOTER */
.footer_btn {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.footer_btn h2 {
    border-bottom: 3px solid #000;
    margin-bottom: 32px;
}

.footer_cta_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px;
}

.footer_content {
    background: url("../img/contact.png") center/cover no-repeat;
}

.footer_entry {
    background: url("../img/recruit.png") center/cover no-repeat;
}

.footer_bar {
    height: 32px;
    background-color: #D9D9D9;
}

.footer_inner {
    background-color: #1f4ea1;
    padding: 24px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.footer_inner h3,
.footer_inner p,
.footer_inner li,
.footer_inner a {
    color: var(--white);
}

.footer_nav a {
    position: relative;
    padding-bottom: 4px;
}

.footer_nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer_nav a:hover::after {
    opacity: 1;
}

/* contact */
.form {
    max-width: 800px;
    width: 100%;
    margin: auto
}

.form_group {
    padding: 30px 0;
    border-bottom: 1px dotted #ccc
}

.form_group:last-child {
    border-bottom: 0;
    padding-bottom: 0
}

.form_group label {
    font-weight: bold;
    font-size: 16px
}

.form_group label span {
    font-size: 16px;
    font-weight: bold;
    color: #D93B00
}

.form_group>div input,
.form_group>div textarea {
    padding: 10px;
    font-size: 16px;
    width: 100%
}

.form_btn {
    margin: auto;
    max-width: 80%
}

.form_btn input {
    color: var(--white);
    background-color: var(--blue);
    border-color: var(--blue);
}

.form_btn-back {
    margin: auto;
    max-width: 80%;
    padding-top: 30px
}

.form_btn-back input {
    color: #000;
    background-color: #fff;
    border-color: #ccc
}

.form input[type="radio"] {
    width: 24px;
    height: 24px;
}


/* レスポンシブ対応 */
@media (max-width: 768px) {
    .header_nav {
        display: none;
    }

    .hamburger_btn {
        display: block;
    }

    .header_nav.open {
        display: block;
        position: fixed;
        top: calc(var(--header-h) + var(--header-bar-h));
        left: 0;
        width: 100%;
        background: #fff;
        padding: 16px;
        border-bottom: 1px solid #eee;
        z-index: 99999;
    }

    .header_nav.open ul {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin: 0;
        padding: 0;
    }

    .header_nav.open a {
        display: block;
        padding: 12px 8px;
    }

    .mv_inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "text"
            "pic"
            "btn";
        align-items: start;
    }

    .mv_text {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mv_item {
        order: 1;
        padding-bottom: 24px;
    }

    .mv_pic {
        order: 2;
        min-height: 360px;
    }

    .mv_button {
        order: 3;
        flex-direction: column;
    }

    .mv_button .btn {
        width: 100%;
        min-width: clamp(280px, 75vw, 480px);
        height: 56px;
        margin: 0 auto;

    }

    body .btn {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
        height: 56px;
    }

    .slider,
    .slider img {
        width: 100%;
        height: 100%;
    }

    .slider img {
        object-fit: cover;
    }

    .news .card_list,
    .service .card_list,
    .footer_btn {
        grid-template-columns: 1fr;
    }

    .news_item,
    .service_item {
        width: 100%;
    }

    .footer_inner {
        flex-direction: column;
        text-align: center;
    }
}