@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&family=Noto+Serif+JP:wght@200..900&family=Kosugi+Maru&display=swap');

/*-----------------
 全体共通
------------------*/
* {
    line-height: 1.8;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
html {
    font-size: 100%;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 17px;
    font-weight: 500;
    font-family: "Noto Serif JP", serif;
    background-color: #fff;
    color: #333;
    letter-spacing: 1px;
}
a {
    color: #333;
    text-decoration: underline;
    text-underline-offset: 5px;
    transition: 0.4s;
}
a:hover {
    opacity: 0.7;
}
a[href*="tel:"] {
    text-decoration: none;
}
img {
    max-width: 100%;
    height: auto;
}
main {
    overflow-x: hidden;
}
body:not(.home) main {
    padding: 80px 0;
}
section {
    position: relative;
    padding: 100px 0;
}
.l_cont {
    max-width: 1280px;
    margin: 0 auto;
}
.m_cont {
    max-width: 960px;
    margin: 0 auto;
}
.white_bg {
    max-width: 960px;
    width: 100%;
    padding: 50px 30px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.7);
}
.flex {
    display: flex;
    gap: 50px;
}
.flex .section_area {
    width: 50%;
}
#contact .section_area:not(:last-of-type) {
    margin-bottom: 70px;
}
.res_text {
    text-align: center;
    line-height: 2;
}
[id] {
    scroll-margin-top: 60px;
}
.margin-top {
    margin-top: 50px;
}
@media screen and (max-width: 1340px) {
    .l_cont {
        margin: 0 20px;
    }
}
@media screen and (max-width: 1040px) {
    .m_cont {
        margin: 0 20px;
    }
}
@media screen and (max-width: 960px) {
    .flex {
        flex-direction: column;
        gap: 70px;
    }
    .flex .section_area {
        width: 100%;
    }
}
@media screen and (max-width: 767px) {
    body{
        width: 767px;
        overflow: auto;
    }
}
@media screen and (min-width: 481px) {
    a[href*="tel:"] {
        pointer-events: none;
        cursor: default;
    }
}
@media screen and (max-width: 480px) {
    body{
        width: 100%;
    }
    section {
        padding: 80px 0;
    }
    .white_bg {
        padding: 25px 15px;
    }
    .res_text {
        text-align: left;
        line-height: inherit;
    }
    [id] {
        scroll-margin-top: 50px;
    }
}


/* 見出し */
#page_header {
    position: relative;
    height: 250px;
    background: url(img/mainvisual.webp) center / cover no-repeat;
    margin-top: 60px;
}
#page_header::after {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    content: '';
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}
.page_title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    letter-spacing: 0.2em;
    color: #fff;
    text-align: center;
    width: 100%;
    padding: 0 20px;
    z-index: 1;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.5) 85%,
        transparent 85%,
        transparent 100% 
    );  
}
#blog_header {
    width: 100%;
    height: 100%;
    margin-top: 60px;
}
#blog_header img {
    vertical-align: bottom;
}
hgroup {
    position: relative;
    font-family: 'Noto Sans JP', sans-serif;
    height: 120px;
    margin-bottom: 50px;
}
.l_head {
    position: absolute;
    top: 0;
    width: 400px;
    background-color: #D8DCE8;
    color: #21283E;
    padding: 20px;
    font-size: 1.5em;
    letter-spacing: 0.2em;
    z-index: 1;
}
section:nth-of-type(odd) .l_head {
    left: 0;
}
section:nth-of-type(even) .l_head {
    right: 0;
    text-align: right;
}
.subhead {
    position: absolute;
    top: 40px;
    width: 100%;
    color: #FFF000;
    padding: 20px;
    font-size: 1.2em;
    letter-spacing: 0.2em;
    text-align: center;
}
section:nth-of-type(odd) .subhead {
    right: 0;
    background: linear-gradient(
        to right,
        transparent 0%,   
        transparent 15%,  
        #21283E 15%,      
        #21283E 100%
    );  
}
section:nth-of-type(even) .subhead {
    left: 0;
    background: linear-gradient(
        to right,
        #21283E 0%,
        #21283E 85%,
        transparent 85%,
        transparent 100% 
    );
}
.m_head {
    position: relative;
    margin: 0 auto 30px;
    padding: 10px 1.5em;
    color: #21283E;
    font-size: 1.3em;
    text-align: center;
    letter-spacing: 0.3em;
}
.m_head::before, .m_head::after {
    display: block;
    content: '';
    position: absolute;
    width: 20px;
    height: 30px;
}
.m_head::before {
    top: 0;
    left: 0;
    border-left: 2px solid #D8DCE8;
    border-top: 2px solid #D8DCE8;
}
.m_head::after {
    bottom: 0;
    right: 0;
    border-right: 2px solid #D8DCE8;
    border-bottom: 2px solid #D8DCE8;
}
.s_head {
    position: relative;
    font-size: 1.2em;
    padding-bottom: 5px;
    margin-bottom: 30px;
    overflow: hidden;
}
.s_head::before, .s_head::after {
    position: absolute;
    width: 100%;
    bottom: 0;
    content: '';
}
.s_head::before {
  border-bottom: 2px solid #21283E;
}
.s_head::after {
  border-bottom: 2px solid #D8DCE8;
}

@media screen and (max-width: 1100px) {
    .l_head {
        width: 30%;
    }
}
@media screen and (max-width: 480px) {
    #page_header {
        height: 200px;
        margin-top: 50px;
    }
    .page_title {
        font-size: 1.5em;
    }
    #blog_header {
        margin-top: 50px;
    }
    .l_head {
        top: -5px;
        width: 80%;
        padding: 10px 20px;
        font-size: 1.3em;
    }
    .subhead {
        padding: 25px 20px 15px;
        font-size: 1em;
    }
    section:nth-of-type(odd) .subhead {
        background: linear-gradient(
            to right,
            transparent 0%,   
            transparent 10%,  
            #21283E 10%,      
            #21283E 100%
        );  
    }
    section:nth-of-type(even) .subhead {
        background: linear-gradient(
            to right,
            #21283E 0%,
            #21283E 90%,
            transparent 90%,
            transparent 100% 
        );
    }
    .m_head {
        font-size: 1.1em;
    }
    .s_head {
        font-size: 1em;
    }
}



/* リスト・表 */
.common_dl > div {
    width: 100%;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}
.common_dl dt, .common_dl dd {
    padding: 15px 10px;
}
.common_dl dt {
    width: 200px;
}
.common_dl dd {
    width: 80%;
}
@media screen and (max-width: 480px) {
    .common_dl > div {
        flex-direction: column;
        gap: 5px;
    }
    .common_dl dt, .common_dl dd {
        width: 100%;
    }
    .common_dl dt {
        padding-bottom: 0;
    }
    .common_dl dd {
        padding-top: 0;
    }
}

.common_ul, .common_ol {
    margin-left: 30px;
}
.common_ul li:not(:last-of-type), .common_ol li:not(:last-of-type) {
    margin-bottom: 10px;
}
.common_ul {
    list-style-type: none;
}
.common_ul li {
    position: relative;
    padding-left: 5px;
}
.common_ul li::before {
    display: inline-block;
    content: '';
    position: absolute;
    top: 11px;
    left: -20px;
    width: 10px;
    height: 10px;
    background-color: #21283E;
    transform: rotate(45deg);
}
.common_ol li{
    padding-left: 5px;
}
.common_ol li::marker {
    font-size: 1.1em;
    color: #21283E;
    font-weight: 700;
}
.common_ol li > ol {
    margin-left: 25px;
}

/* 詳細ボタン */
.more_btn {
    position: relative;
    display: block;
    width: 250px;
    background-color: #21283E;
    border-radius: 50px;
    color: #fff;
    padding: 10px;
    margin: 30px auto 0;
    text-align: center;
    text-decoration: none;
    border: 1px solid #21283E;
    transition: 0.4s;
} 
.more_btn:hover {
    opacity: 1;
    background-color: #fff;
    color: #21283E;
}
.more_btn::after {
    display: inline-block;
    content: '';
    width: 8px;
    height: 8px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    margin-left: 10px;
    vertical-align: 1px;
    transition: 0.4s;
}
.more_btn:hover::after {
    transform: rotate(45deg) translate(3px, -3px);
    border-color: #21283E;
}
@media screen and (max-width: 480px) {
    .more_btn {
        width: 100%;
    }    
}

/* パンくずリスト */
#breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
#breadcrumb ul li {
    position: relative;
    padding-right: 20px;
    list-style-type: none;
    font-size: 15px;
}
#breadcrumb ul li:not(:last-child):after {
    position: absolute;
    top: 2px;
    right: 0;
    display: inline-block;
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #21283E;
}


/* ヘッダー */
header {
    width: 100%;
    height: 60px;
    position: fixed;
    top: 0;
    z-index: 15;
    background-color: #21283E;
}
header .l_cont {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}
.logo a {
    display: block;
    font-size: 0.7em;
    color: #FFF000;
    text-decoration: none;
    letter-spacing: 0.1em;
}
@media screen and (max-width: 480px) {
    header {
        height: 50px;
    }
    header .l_cont {
        margin: 0 10px;
    }
    header .logo a {
        font-size: 0.5em;
    }
}

/* グローバルナビメニュー */
.menu ul {
    display: flex;
    gap: 0 20px;
    list-style-type: none;
}
.menu ul li a {
    position: relative;
    display: block;
    font-size: 0.85em;
    color: #fff;
    text-decoration: none;
}
header .menu ul li a::after {
    display: block;
    content: '';
    height: 2px;
    width: 70%;
    background-color: #FFF000;
    position: absolute;
    bottom: -5px;
    left: 15%;
}
header .menu ul li a::after {
    transform: scale(0, 1);
    transition: 0.4s;
}
header .menu ul li a:hover {
    opacity: 1;
}
header .menu ul li a:hover::after {
    transform: scale(1, 1);
}
@media screen and (max-width: 960px) {
    header .menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100%;
        background-color: #21283E;
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition: 0.4s;
        overflow: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    header .menu::-webkit-scrollbar {
        display:none;
    }
    header .menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        transition: 0.4s;
    }
    header .menu ul {
        flex-direction: column;
        align-items: center;
        padding: 100px 50px 50px;
    }
    header .menu ul li {
        width: 100%;
        border-bottom: 1px solid #fff;
    }
    header .menu ul li:first-of-type {
        border-top: 1px solid #fff;
    }
    header .menu ul li a {
        font-size: 1em;
        padding: 25px 10px;
        text-align: center;
    }
    header .menu ul li a::after {
        display: none;
    }
    header .menu ul li a:hover {
        opacity: 0.7;
    }
    header .menu ul li a:hover::after {
        transform: none;
    }
}
@media screen and (max-width: 480px) {
    header .menu {
        width: 100%;
    }
    header .menu ul {
        padding: 70px 20px 50px;
    }
    header .menu ul li a {
        padding: 20px 10px;
    }
}


/* ハンバーガーメニュー */
.hamburger {
    position: fixed;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background-color: transparent;
    border: none;
    transition: 0.4s;
    cursor: pointer;
    z-index: 20;
}
.line {
    display: inline-block;
    position: absolute;
    top: 30px;
    left: 10px;
    width: 35px;
    height: 1px;
    background-color: #fff;
    transition: 0.4s;
}
.line::before, .line::after {
    display: block;
    content: '';
    position: absolute;
    left: 0;
    width: 35px;
    height: 1px;
    background-color: #fff;
    transition: 0.4s;
}
.line::before {
    top: -12px;
}
.line::after {
    bottom: -12px;
}
.hamburger.active .line {
    background: transparent;
    transform: translateX(20px);
}
.hamburger.active .line::before, .hamburger.active .line::after {
    left: 0;
    width: 100%;
}
.hamburger.active .line::before {
    top: -5px;
    transform: translate(-20px,5px) rotate(-45deg) !important;
}
.hamburger.active .line::after {
    top: 5px;
    transform: translate(-20px,-5px) rotate(45deg) !important;
}
@media screen and (min-width: 960px), print {
    .hamburger {
        display: none;
    }
}
@media screen and (max-width: 480px) {
    .hamburger {
        width: 50px;
        height: 50px;
    }
    .line {
        top: 25px;
        left: 12px;
        width: 25px;
    }
    .line::before, .line::after {
        width: 25px;
    }
    .line::before {
        top: -8px;
    }
    .line::after {
        bottom: -8px;
    }    
}


/* トップ画像*/
#mainvisual {
    position: relative;
    width: 100%;
    height: 100dvh;
    background: url(img/mainvisual.webp) no-repeat center / cover;
}
#mainvisual::after {
    display: block;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
}
#mainvisual .white_bg {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -70%);
    z-index: 1;
}
.catchphrase {
    display: block;
    font-weight: 700;
    font-size: 1.5em;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.2) ;
    margin-bottom: 20px;
}
@media screen and (max-width: 1040px) {
    #mainvisual .white_bg {
        width: 95%;
    }
}
@media screen and (max-width: 960px) {
    #mainvisual {
        height: 100vw;
        margin-top: 60px;
    }
}
@media screen and (min-width: 481px) {
    #mainvisual .white_bg br {
        display: none;
    }
}
@media screen and (max-width: 480px) {
    #mainvisual {
        margin-top: 50px;
    }
    #mainvisual .white_bg {
        top: 80%;
        transform: translate(-50%, -80%);
    }
    #mainvisual .white_bg p {
        font-size: 0.8em;
    }
    .catchphrase {
        font-size: 1em;
        margin-bottom: 10px;
    }
}

/* フェードインアニメーション */
.fade-in {
    opacity: 0;
    transition: all 1.5s ease;
    transition-delay: 0.5s;
}
.fade-in.show {
    opacity: 1;
}


/* あいさつ */
#greeting .flex {
    justify-content: center;
    align-items: flex-start;
}
#greeting img {
    width: 300px;
    object-fit: contain;
}
.greet_text {
    width: 70%;
    line-height: 2;
}
@media screen and (max-width: 960px) {
    #greeting .flex {
        flex-direction: column-reverse;
        align-items: center;
        gap: 50px;
    }
    #greeting img {
        width: 500px;
        margin: 0 auto;
    }
    .greet_text {
        width: 90%;
        margin: 0 0 0 auto;
    }
}
@media screen and (max-width: 480px) {
    #greeting img {
        width: 80%;
    }
    .greet_text {
        width: 100%;
        line-height: inherit;
    }
}




/* 更新履歴 */
#news {
    background-color: #F5F6F8;
}
#news::before{
    content: '';
    position: absolute;
    height: 60px;
    width: 100%;
    clip-path: polygon(50% 100%, 100% 0%, 0% 0%); 
    background-color: #fff;
    left: 0;
    top: 0; 
}
#news .section_area {
    display: flex;
    flex-direction: column;
}
.news_list {
    position: relative;
    background-color: #fff;
    padding-bottom: 70px;
    list-style-type: none;
    flex-grow: 1;
}
.home .news_list {
    padding: 30px 50px;
}
.home .news_list::before, .home .news_list::after {
    display: block;
    content: '';
    position: absolute;
    border: 20px solid transparent;
    transform: rotate(45deg);
}
.home .news_list::before {
    top: -20px;
    left: -20px;
    border-right: 20px solid #F5F6F8;
}
.home .news_list::after {
    bottom: -20px;
    right: -20px;
    border-left: 20px solid #F5F6F8;
}
.news_list li {
    padding: 20px 0;
}
.news_list li:not(:last-of-type) {
    border-bottom: 1px solid #333;
}
body:not(.home) .news_list li:first-of-type {
    padding-top: 0;
}
body:not(.home) .news_list li:last-of-type {
    padding-bottom: 0;
}
.news_list li a {
    display: flex;
    gap: 50px;
    text-decoration: none;
    padding: 0 20px;
}
@media screen and (max-width: 480px) {
    #news::before{
        height: 40px;
    }
    .home .news_list {
        padding: 30px 20px;
    }
    .news_list li a {
        flex-direction: column;
        gap: 0;
        padding: 0 10px;
    }
}

  
/* プロフィール */
#profile::before {
    content: '';
    position: absolute;
    height: 200px;
    width: 100%;
    clip-path: polygon(1% 0, 100% 100%, 100% 0);
    background-color: #F5F6F8;
    left: 0;
    top: 0; 
}
#profile::after {
    content: '';
    position: absolute;
    height: 200px;
    width: 100%;
    clip-path: polygon(0 0, 100% 100%, 0 100%);
    background-color: #F5F6F8;
    left: 0;
    bottom: 0; 
    z-index: -1;
}
.prof_card {
    width: 450px;
    background-color: #FDFDFD;
    margin: 0 auto 70px;
    padding: 30px 50px;
    font-weight: 700;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2);
}
.prof_card div {
    text-align: center;
}
.prof_card span {
    display: block;
    font-size: 1.2em;
    letter-spacing: 0.2em;
    margin-bottom: 30px;
}
.prof_card .name {
    width: 100%;
    font-size: 2em;
    letter-spacing: 0.5em;
}
@media screen and (max-width: 480px) {
    #profile::before, #profile::after {
        height: 100px;
    }
    .prof_card {
        width: 100%;
       flex-direction: column;
       gap: 30px;
       padding: 30px 20px;
    }
    .prof_card span {
        font-size: 1em;
        margin-bottom: 15px;
    }
    .prof_card .name {
        font-size: 1.5em;
    }
}



/* 事務所紹介 */
#about::before {
    content: '';
    position: absolute;
    height: 200px;
    width: 100%;
    clip-path: polygon(100% 0, 0 0, 0 100%);
    background-color: #F5F6F8;
    left: 0;
    top: 0; 
}
#about::after {
    content: '';
    position: absolute;
    height: 200px;
    width: 100%;
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
    background-color: #F5F6F8;
    left: 0;
    bottom: 0; 
    z-index: -1;
}
#about .section_area:not(:last-of-type) {
    margin-bottom: 70px;
}
#about iframe {
    margin-top: 50px;
}
@media screen and (max-width: 480px) {
    #about::before, #about::after {
        height: 100px;
    }
    #about iframe {
       height: 400px;
    }
}


/* よくある質問 */
#faq {
    background-color: #F5F6F8;
}
#faq::before, #faq::after {
    border-bottom: 15vw solid #ffff; 
}
.faq_list div {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    padding: 50px;
}
.faq_list div::before, .faq_list div::after {
    display: block;
    content: '';
    position: absolute;
    border: 20px solid transparent;
    transform: rotate(45deg);
}
.faq_list div::before {
    top: -20px;
    left: -20px;
    border-right: 20px solid #F5F6F8;
}
.faq_list div::after {
    bottom: -20px;
    right: -20px;
    border-left: 20px solid #F5F6F8;
}
.faq_list div:not(:last-of-type) {
    margin-bottom: 30px;
}
.faq_list dt, .faq_list dd {
    position: relative;
    padding-left: 30px;
}
.faq_list dt::before, .faq_list dd::before {
    position: absolute;
    left: 0;
    display: inline-block;
    font-size: 1.1em;
    font-weight: 700;
}
.faq_list dt::before {
    content: 'Q.';
    top: -3px;
    color: #385DD7;
}
.faq_list dd::before {
    content: 'A.';
    top: 18px;
    color: #DD3434;
}
@media screen and (max-width: 480px) {
    .faq_list div {
        gap: 0;
        padding: 40px 20px;
    }
    .faq_list dt {
        cursor: pointer;
    }
    .faq_list dt p {
        width: 90%;
    }
    .faq_list div dd {
        overflow: hidden;
        transition: all 0.4s ease;
    }
    .faq_list dd.open {
        opacity: 1;
        visibility: visible;
        padding-top: 20px;
    }
    .faq_arrow, .faq_arrow::after {
        position: absolute;
        width: 15px;
        height: 2px;
        border-radius: 5px;
        background-color: #21283E;
    }
    .faq_arrow {
        top: 15px;
        right: 5px;
        transition: opacity 0.4s ease-in-out;
    }
    .faq_arrow::after {
        display: block;
        content: '';
        top: 0;
        right: 0;
        transform: rotate(90deg); 
        transition: transform 0.4s ease-in-out;
    }
    .faq_arrow.open::before {
        opacity: 0;
    }
    .faq_arrow.open::after {
        transform: rotate(180deg);
    }
}



/* 採用情報 */
#recruit-top::before {
    content: '';
    position: absolute;
    height: 60px;
    width: 100%;
    clip-path: polygon(50% 100%, 100% 0%, 0% 0%); 
    background-color: #F5F6F8;
    left: 0;
    top: 0; 
}
#recruit-top .flex {
    justify-content: center;
    margin-top: 100px;
}
#recruit-top .more_btn {
    margin-top: 50px;
}
#recruit-top img {
    width: 40%;
    object-fit: contain;
}
.fukidashi {
    position: relative;
    width: 45%;
    height: 220px;
    padding: 40px 30px 30px;
    background-color: #F5F6F8;
    border-radius: 10px;
}
.fukidashi::before {
    display: block;
    content: '募集状況';
    background-color: #F5F6F8;
    padding: 10px 20px;
    border-radius: 20px;
    position: absolute;
    top: -30px;
    left: 30px;
    font-size: 1.2em;
    font-family: 'Kosugi Maru', sans-serif;
    letter-spacing: 0.2em;
    -webkit-text-stroke: 3px #fff;
    text-stroke: 3px #fff;
    paint-order: stroke;
}
.fukidashi::after {
    display: block;
    content: '';
    position: absolute;
    top: 50%;
    right: -29px;
    transform: translateY(-50%);
    border: 15px solid transparent;
    border-left: 15px solid #F5F6F8;
}
.fukidashi ul {
    list-style-type: none;
    height: 150px;
    overflow-y: auto;
}
.fukidashi ul::-webkit-scrollbar {
    display:none;
}
.fukidashi ul li:not(:last-of-type) {
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.fukidashi ul li a {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-decoration: none;
    padding: 0 10px;
}
@media screen and (max-width: 960px) {
    #recruit-top .flex {
        flex-direction: row;
        gap: 30px;
    }
}
@media screen and (max-width: 480px) {
    #recruit-top::before {
        height: 40px;
    }
    #recruit-top .flex {
        flex-direction: column;
    }
    #recruit-top img {
        width: 80%;
        margin: 0 auto;
    }
    .fukidashi {
        width: 100%;
        padding: 40px 20px 30px;
    }
    .fukidashi::after {
        position: absolute;
        top: 232px;
        right: 50%;
        transform: translate(50%, -50%);
        border-left: 15px solid transparent;
        border-top: 15px solid #F5F6F8;
    }
}



/* お問い合わせ */
#contact-top {
    position: relative;
    background: url(img/contact.webp) no-repeat center / cover;
}
#contact-top::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 20%;
    top: -1px;
    left: 0;
    background: linear-gradient(360deg, transparent, #ffffff);
}
#contact-top::after {
    display: block;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
}
#contact-top hgroup, #contact-top .m_cont {
    position: relative;
    z-index: 1;
}
#contact-top .white_bg {
    margin-top: 50px;
}
#contact-top .white_bg p{
    margin-bottom: 20px;
}
.contact_num {
    display: block;
    font-size: 2.3em;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #21283E;
}
.tel, .fax {
    position: relative;
}
.tel::before, .fax::before {
    display: inline-block;
    content: '';
    margin-right: 10px;
    width: 40px;
    height: 40px;
    vertical-align: -5px;
}
.tel::before {
    background: url(img/tel.png) center / contain no-repeat;
}
.fax::before {
    background: url(img/fax.png) center / contain no-repeat;
}
.contact_btn {
    display: block;
    position: relative;
    width: 300px;
    background-color: #21283E;
    border: 1px solid #21283E;
    color: #fff;
    padding: 15px 10px;
    margin: 20px auto 0;
    text-decoration: none;
    font-family: 'Noto Serif JP', serif;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.4s;
}
.contact_btn:hover {
    opacity: 1;
    background-color: #fff;
    color: #21283E;
}
.contact_btn::before {
    display: inline-block;
    content: '';
    background: url(img/mail.png) center / contain no-repeat;
    width: 35px;
    height: 35px;
    margin-right: 10px;
    vertical-align: -11px;
    transition: 0.4s;
}
.contact_btn:hover::before {
    background: url(img/mail-hover.png) center / contain no-repeat;
}
@media screen and (min-width: 481px) {
    #contact-top .white_bg p br {
        display: none;
    }    
}
@media screen and (max-width: 480px) {
    .contact_num {
        font-size: 1.5em;
    }
    .tel::before, .fax::before {
        width: 30px;
        height: 30px;
    }
    .contact_btn {
        width: 100%;
    }
}



/* フッター */
footer {
    margin-top: auto;
    padding: 50px 0 0;
    color: #fff;
    background-color: #21283E;
}
footer .flex {
    justify-content: space-between;
}
footer .menu ul {
    flex-wrap: wrap;
    justify-content: flex-end;
}
footer .logo a {
    font-size: 1.5em;
    font-weight: 700;
}
.adress_info p {
    font-size: 0.8em;
    white-space: nowrap;
    margin-top: 10px;
}
.copyright {
    padding: 10px;
    font-size: 0.6em;
    margin-top: 50px;
    text-align: center;
}
@media screen and (max-width: 960px) {
    footer .flex {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }
    footer .logo a {
        text-align: center;
    }
}
@media screen and (max-width: 480px) {
    footer .menu ul {
        justify-content: center;
    }
}


/* ページトップボタン */
.page_top {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 70px;
    height: 70px;
    z-index: 10;
    background-color: #21283E;
}
.arrow {
    position: absolute;
    top: 27px;
    left: 22px;
    display: block;
    width: 70px;
    height: 70px;
    width: 25px;
    height: 25px;
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
    transition: 0.4s;
    transform: rotate(315deg);
}
.page_top:hover {
    opacity: 1;
}
.page_top:hover .arrow {
    transform: rotate(315deg) translate(3px,-3px);
}
@media screen and (max-width: 480px) {
    .page_top {
        width: 50px;
        height: 50px;
    }
    .arrow {
        top: 22px;
        left: 15px;
        width: 20px;
        height: 20px;
    }
}


/* 投稿記事一覧ページ */
article {
    margin-bottom: 70px;
}
.article_title {
    text-align: center;
}
.article_title .m_head {
    display: inline-block;
}
.article_date {
    display: block;
    text-align: right;
    margin-bottom: 30px;
}
.article_text {
    padding: 0 15px;
}
.article_text > ul li, .article_text > ol li {
    margin-left: 25px;
}
.article_text p:not(:last-of-type) {
    margin-bottom: 20px;
}
.article_text p .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.article_text p .alignright {
    display: block;
    margin-left: auto;
}

/* 記事一覧ページネーション */
.nav-links .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 70px;
}
.nav-links .page-numbers li {
    list-style-type: none;
}
.nav-links a.page-numbers,
.nav-links .current,
.nav-links a.prev,
.nav-links a.next {
    position: relative;
    display: block;
    content: '';
    width: 40px;
    height: 40px;
    background-color: #21283E;
    border: 1px solid #21283E;
    color: #fff;
    text-align: center;
    line-height: 40px;
    margin: 0;
    text-decoration: none;
}
.nav-links a.page-numbers:hover {
    opacity: 1;
    background-color: #fff;
    color: #21283E;
}
.nav-links .current {
    background-color: #D8DCE8;
    border-color: #D8DCE8;
    color: #21283E;
}
.nav-links a.prev {
    margin-right: 5px;
}
.nav-links a.next {
    margin-left: 5px;
}
.nav-links .dots {
    margin: 0;
}
.prev_arrow, .next_arrow {
    position: absolute;
    top: 14.5px;
    display: block;
    content: '';
    width: 10px;
    height: 10px;
}
.prev_arrow {
    left: 16px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: rotate(-45deg);
}
.next_arrow {
    right: 15px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
}
.nav-links a.page-numbers:hover .prev_arrow,
.nav-links a.page-numbers:hover .next_arrow {
    border-color: #21283E;
}

/* 個別記事ページネーション */
.article_pagenation {
    display: flex;
    justify-content: space-between;
    gap: 15px 30px;
    margin: 0 auto 70px;
    width: 90%;
}
.nav-prev-link, .nav-next-link {
    position: relative;
    width: auto;
    min-width: 50%;
    display: flex;
    gap: 10px;
    padding: 10px;
    text-decoration: none;
    background-color: #D8DCE8;
}
.article_pagenation:has(.nav-prev-link):not(:has(.nav-next-link)) {
    justify-content: flex-start; 
}
.article_pagenation:has(.nav-next-link):not(:has(.nav-prev-link)) {
    justify-content: flex-end; 
}
.nav-prev-link:hover, .nav-next-link:hover {
    opacity: 1;
}
.nav-next-link {
    text-align: right;
    flex-direction: row-reverse;
}
.nav-prev-title, .nav-next-title {
    font-size: 15px;
    margin: 0;
}
.nav-prev-title {
    padding-left: 20px;
}
.nav-next-title {
    padding-right: 20px;
}
.nav-prev-arrow, .nav-next-arrow {
    position: absolute;
    top: 20.8px;
    width: 8px;
    height: 8px;
    border-top: 2px solid #21283E;
    transition: 0.3s;
}
.nav-next-arrow {
    right: 15px;
    border-right: 2px solid #21283E;
    transform: rotate(45deg);
}
.nav-next-link:hover .nav-next-arrow {
    transform: rotate(45deg) translate(3px, -3px);
}
.nav-prev-arrow {
    left: 15px;
    border-left: 2px solid #21283E;
    transform: rotate(-45deg);
}
.nav-prev-link:hover .nav-prev-arrow {
    transform: rotate(-45deg) translate(-3px, -3px);
}
@media screen and (max-width: 480px) {
    .article_pagenation {
        flex-direction: column;
    }
    .nav-prev-link, .nav-next-link {
        width: 100%;
    }    
}


/* サイドバー */
aside {
    margin: 70px 0;
}
.select_wrapper {
    position: relative;
}
.select_wrapper::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 20px;
    width: 5px;
    height: 5px;
    border-right: 2px solid #21283E;
    border-bottom: 2px solid #21283E;
    transform: rotate(45deg);
}
#archive_list {
    width: 100%;
    height: 45px;
    line-height: 35px;
    padding: 5px 10px;
    background-color: #fff;
    font-size: 0.8em;
    border: 1px solid #21283E;
    border-radius: 3px;
    color: #333;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}


/* お問い合わせフォーム */
#contact .m_cont > p {
    margin-bottom: 70px;
}
#contact .section_area:first-of-type p {
    text-align: center;
    margin-bottom: 20px;
}
#contact .flex {
    justify-content: center;
}
.contact_form div {
    display: flex;
}
.contact_form div:not(:last-of-type) {
    margin-bottom: 10px;
}
.contact_form dt, .contact_form dd {
    padding: 10px;
}
.contact_form dt {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
    font-weight: 700;
}
.contact_form dd {
    width: 80%;
}
.required, .optional {
    display: inline-block;
    color: #fff;
    padding: 2px 5px;
    margin-left: 10px;
    font-size: 0.7em;
    font-weight: normal;
    border-radius: 5px;
    width: 43px;
    text-align: center;
}
.required {
    background-color: #dd2e2e;
}
.optional {
    background-color: #6e6e6e;
}
input[type="text"], input[type="tel"], input[type="email"], textarea {
    width: 100%;
    padding: 5px 10px;
    border: 1px solid #9ba1b3;
    border-radius: 3px;
    font-size: 16px;
    background-color: #f5f9ff;
}
input[type="text"]:focus, input[type="tel"]:focus, input[type="email"]:focus, textarea:focus {
    outline: 2px solid #21283E;
    border: none;
}
input[type="text"], input[type="tel"], input[type="email"] {
    height: 40px;
}
textarea {
    display: block;
    height: 200px;
    font-family: 'Noto Sans JP', sans-serif;
}
.middle-box {
    width: 350px !important;
}
#privacy {
    flex-direction: column;
    background-color: #D8DCE8;
    padding: 20px;
    border-radius: 3px;
    margin-top: 30px;
}
#privacy dt, #privacy dd {
    width: 100%;
}
.privacy {
    border: 1px solid #21283E;
    border-radius: 3px;
    height: 200px;
    padding: 10px;
    overflow: auto;
    margin-top: 20px;
    background-color: #fff;
}
.privacy_check {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    margin: 50px 0;
    font-size: 18px;
}
.privacy_check input{
    width: 18px !important;
    height: 18px !important;
}
.numlist_title {
    font-weight: 700;
}
#contact .contact_btn {
    font-size: 1em;
    margin-top: 50px;
}
@media screen and (max-width: 960px) {
    #contact .flex {
        align-items: center;
        gap: 0;
    }
}
@media screen and (min-width: 481px) {
    #contact .br {
        display: none;
    }
}
@media screen and (max-width: 480px) {
    .middle-box {
        width: 100% !important;
    }
    .contact_form > div {
        flex-direction: column;
        gap: 5px;
    }
    .contact_form dt, .contact_form dd {
        width: 100%;
    }
    .contact_form dt {
        padding-bottom: 0;
    }
    .contact_form dd {
        padding-top: 0;
    }
}


/* contact form */
#contact .wpcf7-list-item {
    display: block;
    margin: 0 auto;
}
#contact .wpcf7-list-item label {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    cursor: pointer;
}
.wpcf7 form .wpcf7-response-output {
    border-color: transparent !important;
    color: #dc3232;
    text-align: center;
}
.wpcf7-not-valid-tip {
    font-size: 15px !important;
}
.wpcf7 form.sent .wpcf7-response-output{
    display: none;
}  

/* reCAPTCHA */
#contact .grecaptcha-badge {
    width: 70px !important;
    visibility: visible;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    left: 4px !important;
  }
 #contact .grecaptcha-badge:hover {
    width: 256px !important;
    visibility: visible;
  }
.grecaptcha-badge {
    visibility: hidden;

}
.grecaptcha-badge:hover {
    visibility: hidden;
}
