@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Shippori+Mincho:wght@400;700;800&display=swap');

:root {
    --default-font-size: 18px;
    --default-font-family: 'Noto Sans JP', sans-serif;
    --default-text-color: #4F4B49;
    --eng-font-family: 'Shippori Mincho', serif;
    --header-height: padding: 1rem 2rem;;
}

/****** 
 共通 
******/
html {
    font-size: var(--default-font-size);
}

body {
    font-size: 1rem;
    letter-spacing: 2px;
    line-height: 1.9;
    color: var(--default-text-color);
}

.container {
    margin-top: 90px;
}

h2 {
    font-size: 2.5rem;
}

h2 span {
    margin-left: 1.5rem;
    font-size: 0.9rem;
    font-family: var(--default-font-family);
}

h2::before {
    display: none;
}

h2.left-border {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: left;
    border-left: 6px solid #81d8d0;
    padding-left: 12px;
}

/* 見出しの水色箱 */
h2.bg-blue-box {
    position: relative;
    z-index: 2;
    color: #fff;
    display: inline-block;
}

h2.bg-blue-box::before,
.service .sbs-left-v-center:nth-of-type(2).bg-blue-box::after {
    content: "";
    display: block;
    position: absolute;
    z-index: -1;
    width: 650px;
    height: 240px;
    background: #7ed6d3;
}

h2.bg-blue-box::before {
    left: 15rem;
    top: -2rem;
}

h3 {
    font-size: 1.5rem;
}

.jpn {
    font-family: var(--default-font-family);
}

.eng {
    font-family: var(--eng-font-family);
}

.t-small {
    font-size: 0.8rem;
}

.btn {
    display: block;
    width: 150px;
    padding: 1rem 0;
    border-radius: 10px;
    background-color: #fff;
    color: var(--default-text-color);
    text-align: center;
}

.b-black-btn {
    display: block;
    width: 160px;
    padding: 0.7rem 0;
    background-color: #fff;
    border: solid 1px var(--default-text-color);
    color: var(--default-text-color);
    font-size: 0.8rem;
    text-align: center;
}

.container > div {
    margin-bottom: 5rem;
}

.inner-container {
    width: 1000px;
}

.container > div.container-block {
    display: block;
}

.text-1 {
    font-size: 2rem;
}

.text-2 {
    margin-bottom: 3rem;
    font-size: 1.6rem;
}

.bg-p {
  padding: 40px 0;
}

.mt-1rem {
    margin-top: 1rem;
}

.mt-2rem {
    margin-top: 2rem;
}

.font-weight-bold {
    font-weight: bold;
}

.layer-top {
    z-index: 2;
}

.mx-auto {
    margin-right: auto;
    margin-left: auto;
}

/* 共通メインビジュアル */
.container > div.mv {
    margin-bottom: 0rem;
}
.mv {
    position: relative;
    height: 280px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mv-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mv-inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.mv-inner h1 {
    text-shadow: 3px 0px #78909C;
}

.mv-inner div {
    -webkit-text-stroke-width: 1px;
    text-shadow: 4px 0px #78909C;
}

.mv-title {
    font-size: 2.5rem;
    font-family: 'Shippori Mincho', serif;
    font-weight: bold;
}

.mv-sub {
    font-size: 1.1rem;
    font-family: 'Noto Sans JP', sans-serif;
}

.page-company .mv-inner,
.page-contact .mv-inner {
    background-color: rgba(226, 226, 226, 0.5);
}


/* パンくずリスト */
.container > div.breadcrumb {
    margin-top: 1.5rem;
    font-size: 0.8rem;
}

.page-recruit .container > div.breadcrumb {
    margin-top: -4rem;
}


.align-start {
    align-items: start;
}

/****** 
 ヘッダー
******/
footer,
header a {
    font-weight: normal;
    font-size: 15px;
}

footer {
    background-color: #81d8d0;
}

header > div.pc {
  background-color: #fff;
  transition: background-color 0.3s ease;
}

header > div.scrolled {
  background-color: #81d8d0;
}

header .header-menu a,
header .header-menu a:visited,
footer a,
footer a:visited {
    color: var(--default-text-color);
}

.header-logo {
    width: 190px;
}

header .header-menu {
    justify-content: end;
}

header .header-menu > a {
    width: auto;
    flex-grow: 0;
    padding: 0rem 2rem;
}

header .scrolled .ruby {
    color: #fff;
}

header [data-active="true"] {
    margin-bottom: -1rem;
    border-top: none;
    border-bottom: solid 3px #000;
}

/****** 
 TOP
******/
.first-view {
    align-items: center;
}

.top-about .b-black-btn {
    margin-top: 4rem;
}

.top-about .sbs-left-v-center {
    gap: 2rem;
}

/* NEWS */
.page-post .container,
.single-post .container {
    margin-top: 150px;
}

.card-lists ul li {
    width: calc((100% - 40px) / 3);
    border: solid 1px #ccc;
}

.card-lists ul li h2 {
    font-size: 1.2rem;
}

.card-lists.has-category .category {
    background-color: #ccc;
}

.card-lists.has-category .category a {
    color: #fff;
}

.card-lists .main-image {
    border-bottom: solid 1px #ccc;
}

.card-lists ul li .title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
}

.card-lists ul li > div > div:nth-child(2) {
    padding: 1rem;
}

.card-lists ul li a > div:last-child {
    padding: 5px 0;
}

.card-lists .category.event {
    background-color: #47C592;
}

.information {
    width: 100%;
}

.information > ul li {
    list-style: none;
}

.information > ul li a > div {
    display: flex;
    gap: 1.5rem;
    justify-content: start;
    align-items: center;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: solid 1px #000;
}

/* 記事カテゴリ */
.information > ul > li .category {
    width: 100px;
    padding: 5px;
    text-align: center;
    background-color: #aaa;
    color: #fff;
}

.information .detail {
    display: block;
    text-align: end;
}

.service > div:not(:last-child) {
    margin-bottom: 7rem;
}

.service > div .summery > div:first-child {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: bold;
}

.service .b-black-btn {
    margin-top: 5rem;
}

/* 水色箱 */
.service .sbs-left-v-center,
.service .sbs-left-v-center {
    position: relative;
    z-index: 2;
}

.service .sbs-left-v-center:nth-of-type(2)::after {
    right: -3rem;
    bottom: -9rem;
    width: 650px;
    height: 40vh;
}
/* Parallax */
.paralax-image {
    background-image: url(../../public/images/goju.png);
}

/****** 
 ABOUT
******/
.page-about .philosophy {
    margin-top: 2.5rem;
    margin-bottom: 6.5rem;
    text-align: center;
}
.page-about .philosophy h2 {
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    font-weight: normal;
}
.page-about .philosophy-lead {
    line-height: 2;
    display: block;
}
.page-about .circles {
    justify-content: center;
    gap: 2rem;
    margin-top: 2.5rem;
}
.page-about .circles > div {
    width: 170px;
    height: 170px;
    border: 1px solid #222;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: #fff;
    padding: 1.2em 0.5em;
}

.page-about .circles > div .circle-title {
    font-size: 1rem;
}

.page-about .circles > div .t-small {
    font-size: 0.7rem;
    color: #444;
    margin-top: 0.3rem;
}
.page-about .message {
    margin-top: 4rem;
}
.page-about .message-title {
    z-index: 2;
    color: #fff;
    display: inline-block;
}
.page-about .message-content {
    z-index: 3;
}
.page-about .message-img {
    z-index: 4;
}

.page-about .message-textarea {
    width: 50%;
    margin: 0 auto;
    font-size: 1rem;
}

.page-about .message-signer {
    text-align: right;
    margin-top: 1.5em;
}
.page-about .message-content {
    align-items: flex-end;
    gap: 2rem;
}

/****** 
 フッター
******/
footer,
footer a {
    color: var(--default-text-color);
}

footer > div:first-child > div:first-child {
    width: 300px;
}

footer > div:first-child > div:last-child > div {
    justify-content: space-between;
}

footer nav {
    margin: 2rem 0;
    justify-content: space-between;
}

footer nav li  {
    list-style: none;
    text-align: center;
}

@media only screen and (max-width: 1200px) {
    header .header-menu a {
        font-size: 14px;
    }

    header .header-menu > a {
        padding: 0rem 1rem;
    }
}

@media only screen and (max-width: 1000px) {
    header .header-menu a {
        font-size: 10px;
    }
}

@media only screen and (max-width: 767px) {
    .container {
        margin-top: 75px;
    }

    .container > div.mv {
        width: auto;
        margin-bottom: 0rem;
        margin-left: -5px;
        margin-right: -5px;
    }

    h2,
    h2.left-border {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    h3 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .inner-container {
        width: 100%;
    }

    .text-2 {
        margin-bottom: 3rem;
        font-size: 1.2rem;
    }

    .m-w-100 {
        width: 100% !important;
    }
    
    .text-bg {
        padding: 1rem 2rem 1rem 2rem;
    }
    
    header,
    footer {
        background-color: #81d8d0;
    }

    header .menu-btn span {
        border-bottom: solid 3px #000;
    } 
    header .mobile-menu nav > ul {
        border: none;
    }

    header .mobile-menu nav > ul > li:first-child {
        border-top: solid 1px #000 !important;
    }

    header .mobile-menu nav > ul > li {
        border-bottom: solid 1px #000 !important;
    }

    header .mobile-menu nav {
        background-color: #81d8d0;
    }

    footer > div.one-column {
        width: 100% !important;
        padding: 0;
    }

    footer nav li {
        text-align: start;
        margin-bottom: 5px;
    }

    footer nav.sbs-center-v-center {
        display: block;
    }
    
    footer nav.sbs-center-v-center li {
        margin-bottom: 5px;
        text-align: start;
    }

    .top-about .sbs-left-v-center {
        flex-direction: column-reverse;
        gap: 1.5rem;
        align-items: stretch;
    }
    .top-about .sbs-left-v-center > .w-500px,
    .top-about .sbs-left-v-center > .p1 {
        width: 100% !important;
        max-width: 100%;
    }
    .top-about .sbs-left-v-center > .p1 img {
        width: 100%;
        height: auto;
        display: block;
    }
    .top-about .b-black-btn.sbs-center {
        margin-top: 1.5rem !important;
    }

    /****** 
     News
    ******/
    .information > ul {
        padding: 0;
    }

    .information > ul li {
        margin-bottom: 20px;
    }

    .information > ul li a > div {
        display: block;
        padding: 0;
    }

    .information > ul li a > div .sbs {
        display: flex !important;
        align-items: center;
    }

    .sbs > div.post-blog-date,
    .information > ul > li .category {
        width: auto;
    }

    .card-lists ul li {
        width: 100% !important;
        margin-bottom: 1.5rem;
    }

    /****** 
     Service
    ******/
    .service h2 {
        padding: 1.5rem 0 1.5rem 1rem;
    }

    .service h2::before {
        left: -1rem;
    }

    .service .sbs-left-v-center:nth-of-type(2).bg-blue-box::after {
        display: none;
    }

    .service .sbs-left-v-center:nth-of-type(2)::after {
        right: 0;
        bottom: -2rem;
    }

    .service .summery h3 {
        margin-top: 0.5rem;
    }

    .service > div:not(:last-child) {
        margin-bottom: 3rem;
    }

    .service .sbs-left-v-center {
        flex-direction: column !important;
        gap: 0rem;
    }

    .service .sbs-left-v-center > div {
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* 2つ目だけ順序を入れ替え（画像を上、テキストを下） */
    .service .sbs-left-v-center:nth-of-type(2) {
        flex-direction: column-reverse !important;
    }

    .service .b-black-btn {
        margin-top: 2rem;
    }
    /****** 
    ABOUT
    ******/
    .mv {
        height: 140px;
    }
    .mv-title {
        font-size: 1.5rem;
    }
    .page-about .message,
    .page-about .philosophy {
        margin-top: 1.5rem;
    }
    .page-about .circles {
        text-align: center;
        gap: 0.7rem;
        align-items: center;
    }
    .page-about .circles > div {
        width: 200px;
        height: 200px;
        margin-right: auto;
        margin-left: auto;
        margin-bottom: 1rem;
        font-size: 0.8rem;
        padding: 0.5em 0.2em;
    }
    .page-about .message-title {
        font-size: 1.3rem;
        padding: 1rem 1rem 1rem 1rem;
    }
    .page-about .message-title::before {
        left: -1rem;
    }
    .page-about .message-content {
        display: block;
    }
    .page-about .philosophy,
    .page-about .circles,
    .page-about .message-content > .p1,
    .page-about .message-content > .message-textarea,
    .page-about .message-signer,
    .page-about .message-img {
        width: 100% !important;
    }
}
