@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1:wght@100;300;400;500;700;800;900&display=swap');

body {
    word-wrap:break-word;
    -webkit-text-size-adjust: 100%;
    font-family: 'M PLUS 1', sans-serif;
    color:#4B4D4D;
}

h2 img {
    height:47px;
}

a {
    text-decoration: none;
    color:#4B4D4D;
}

a:hover {
    text-decoration: none;
    color:#009844;
}

img {
    max-width: 100%;
}

ul li {
    list-style: none;
    margin-bottom:8px;
    margin-left:0;
}

.cols2 {
    display: flex;
}

.ac {
    text-align: center;
}

.ar {
    text-align: right;
}

.rev {
    flex-direction:row-reverse;
}

.lead {
    color:#009844;
    font-size:19px;
    margin-bottom:38px;
    font-weight: bold;
}

footer {
    background-color:rgba(89, 137, 111, 0.07);
    margin-top:163px;
    padding:20px 0;
}

#main-movie video {
   width:100%;
}

#header-logo {}
#header-title {}
#header-text {}

.drawer {}
#navbar-toggle {}
.navbar-toggle-icon {}
.drawer-name {}
#brickmenu {}

#main-movie {}
#commitment {}
#mission {}
.mission-img {}
#philosophy {}
#policy {}
#location {}
#gmap {}
#contact {}
.mapicon {}
#about {}
.lead {}
.link-btn {}
#safety {}
.rev {}
#recruit {}
#footer-logo {}
#footer-sns {}
#copyright {}

.green {
    color:#59896F;
}

.mapicon img {
    vertical-align: middle;
    width:22px;
    margin-right:10px;
}

.link-btn a {
    background: #019844;
    border-radius: 3px;
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top:43px;
    width:180px;
    text-align:center;
    padding: 14px 0;
    padding-right: 2em;
    color: #fff;
    transition: 0.3s ease-in-out;
    text-decoration: none;
    font-weight: bold;
    
}

.link-btn a:after {
  content: "";
  position: absolute;
  top: 50%;
  bottom: 0;
  right: 2rem;
  font-size: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: right 0.3s;
  width: 6px;
  height: 6px;
  border-top: solid 2px currentColor;
  border-right: solid 2px currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.link-btn a:hover {
  background: #20af6a;
  color: #FFF;
}

.link-btn a:hover:after {
  right: 1.4rem;
}

address {
    font-size:14px;
    text-decoration: none;
    font-style: normal;
}

.colstack h2 {
    text-align: left;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* モーダル本体 */
.popup-content {
    background: white;
    border:#009844 5px solid;
    padding: 20px;
    border-radius: 36px;
    width: 732px;
    padding:69px 90px 62px 90px;
    position: relative;
    text-align: center;
}

/* 閉じるボタン */
.close-btn {
    position: absolute;
    border-radius: 100%;
    color:#fff;
    background: #009844;
    width:74px;
    right: -37px;
    cursor: pointer;
    font-size: 31px;
    font-weight: bold;
    padding-top:18px;
    padding-bottom:24px;
}

/* モーダルが開いたときのスタイル */
.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-title {
    font-size:20px;
    font-weight: bold;
}

.popup-telfax {
    width:380px;
    margin-left:auto;
    margin-right:auto;
    justify-content: space-between;
}

.popup-buttons {
    width:620px;
    margin: 0 auto;
    justify-content: space-between;
}

.popup-buttons .link-btn a {
    width:260px;
    padding-top:25px;
    padding-bottom:25px;
}

.popup-img img {
    border-radius: 20px;
}

@media screen and (min-width: 768px) {
    .pc {
        display: block;
    }

    .sp {
        display: none;
    }

    .pc-cols2 {
        display: flex;
    }

    .pc-ac {
        text-align: center;
    }

    .pc-content {
        width:958px;
        margin-left:auto;
        margin-right:auto;
    }

    body {
        margin:0 auto;
        font-size:16px;
    }

    header {
        height:78px;
        width:1220px;
        margin:0 auto;
        padding-top:9px;
        padding-bottom:8px;
    }

    section {
        margin-top:74px;
    }

    h2 {
        text-align: center;
        margin-bottom:30px;
    }

    p {
        font-size:16px;
        line-height: 30px;
    }

    #header-logo #logo-img {
        width:63px;
        height:63px;
        margin-right:20px;
    }

    #header-inner .elm:first-child {
        margin-right: auto;
    }

    #header-title {
        font-size:20px;
        font-weight: bold;
        margin-top:10px;
    }

    #header-text {
        margin-top:5px;
        font-size:12px;
    }

    #brickmenu {
        display: block;
    }

    #brickmenu ul {
        padding-top: 30px;
        padding-right: 5px;
    }

    #brickmenu ul li {
        display: inline;
        margin-left:44px;
    }

    #brickmenu ul li a {
        text-decoration: none;
        color:#59896F;
        font-size:15px;
        font-weight: bold;

    }

    #commitment p {
        font-size:19px;
        text-align: center;
        line-height: 40px;
        margin-bottom:68px;
    }

    #mission-img-wrap {
        margin-left:20px;
    }

    #mission-img {
        float: right;
        width:267px;
    }

    #mission-name {
        font-size:18px;
        text-align: right;
    }

    #gmap {
        margin-top:50px;
    }

    #contact-list {
        width:840px;
        margin-top:46px;
        margin-left:auto;
        margin-right:auto;
    }

    #contact-list .elm {
        margin-left:2em;
    }

    #contact .elm {
        width:420px;
    }
    #contact h3 {
        font-size:15px;
        font-weight: bold;
        margin-top:30px;
        margin-bottom:20px;
    }

    .colstack {
        width:1280px;
        margin-left:auto;
        margin-right:auto;
    }

    .colstack .elm {
        width:640px;
    }

    .colstack .elm-text {
        width:440px;
        margin-left:173px;
        margin-right:35px;
        text-align: left;
    }

    .rev .elm-text {
        margin-right:173px;
        margin-left:35px;
    }

    #footer-inner {
        width:1040px;
        margin:0 auto;
    }

    #footer-logo .elm img {
        width:74px;
        margin-right:15px;
    }

    #footer-logo-text {
        font-size:20px;
        font-weight: bold;
        margin-bottom:8px;
    }

    #footer-sns {
        margin-top:34px;
        margin-left:88px;
        font-size:12px;
    }

    #footer-sns .elm:first-child {
        margin-right:24px;
    }
    #footer-sns img {
        vertical-align: middle;
        width:30px;
        margin-right:8px;
    }

    #copyright {
        font-size:12px;
        text-align: right;
        margin-top:77px;
    }

    .popup-img {
        margin-bottom:68px;
    }

    .close-btn {
        top: -37px;
    }

    .popup-address {
        margin-bottom:1em;
    }
}

/* スマホ用（767px以下） */
@media screen and (max-width: 767px) {
    .pc {
        display: none;
    }

    .sp {
        display: block;
    }

    .sp-inline {
        display: inline!important;
    }

    #wrap {
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
        width:375px;
    }

    section {
        margin-bottom:80px;
    }

    h2 {
        text-align: center;
        margin-bottom:30px;
    }

    h3 {
        width:300px;
        margin:40px auto 20px auto;
    }

    p {
        line-height: 40px;
    }

    section p,
    section li {
        width:300px;
        margin:0 auto;
        font-size:18px;
        line-height: 40px;
    }

    #logo-img {
        width:63px;
        margin-right:10px;
    }

    #header-inner {
        padding: 9px 0px 8px 12px;

    }

    #header-title {
        margin-top:5px;
        font-size:20px;
        font-weight: bold;
    }

    #header-text {
        margin-top:5px;
        font-size:10px;
    }

    #main-movie {
        margin-bottom:28px;
    }

    #top-img01 {
        margin-top:60px;
    }

    .link-btn a {
        width:300px;
        margin-left:auto;
        margin-right: auto;
    }

    .colstack .elm {
        margin-bottom:52px;
    }

    .colstack h2 {
        width:300px;
        margin-left:auto;
        margin-right:auto;
    }

    #footer-inner {
        padding:28px 15px 32px 15px;
    }

    #footer-inner p {
        line-height: 1em;
    }

    #footer-logo img {
        width:74px;
    }

    #footer-logo .elm:last-child{
        padding-left:15px;
    }

    #footer-logo-text {
        font-size:20px;
        font-weight: bold;
        margin-bottom:8px;
    }

    #footer-sns {
        margin-top:24px;
        margin-left: 103px;
        font-size:12px;
    }

    #footer-sns .elm {
        margin-right: 30px;
    }

    #footer-sns .elm img {
        width:30px;
        margin-right:8px;
        vertical-align: middle;
    }

    addsress {
        font-size:14px;
    }

    #copyright {
        text-align: center;
        font-size:12px;
        margin-top:60px;
    }

    #mission .elm:last-child {
        width:300px;
        margin-left:auto;
        margin-right: auto;
        margin-top:20px;
        text-align: right;
    }

    #mission-img {
        width:120px;
    }

    #mission-name {
        font-size:12px;
        line-height: 16px;
        text-align: right;
    }

    #gmap {
        margin-top:60px;
    }

    .popup-content {
        width:260px;
        padding:30px;
        margin-top:30px;
    }

    .popup-buttons,
    .popup-buttons .link-btn a {
        width:200px;
    }

    .popup-buttons .link-btn a {
        margin-top:20px;
        margin-left:-1em;
    }

    .popup-address,
    .popup-telfax {
        line-height: 1.4em;
        text-align: left;
        margin-bottom:1em;
    }

    .popup-img {
        margin-bottom:12px;
    }

    /* 閉じるボタン */
    .close-btn {
        bottom: -37px;
    }
}
/* ===== トップページ・お知らせセクション ===== */
#top-news {
    text-align: center;
}

.top-news-en {
    font-size: 36px;
    font-weight: bold;
    color: #009844;
    display: block;
}

.top-news-ja {
    font-size: 14px;
    color: #888;
    display: block;
    margin-top: 4px;
    margin-bottom: 30px;
}

.top-news-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.top-news-item {
    width: 280px;
}

.top-news-item a {
    display: block;
    color: #4B4D4D;
    text-decoration: none;
}

.top-news-item a:hover .top-news-title {
    color: #009844;
}

.top-news-img img {
    width: 280px;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
}

.top-news-img--noimg {
    width: 280px;
    height: 180px;
    background: #f0f0f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 14px;
}

.top-news-title {
    margin-top: 12px;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.6em;
    text-align: left;
}

/* ===== お知らせ一覧ページ ===== */
.news-archive-list {
    width: 864px;
    margin: 0 auto;
}

.news-archive-item {
    border-bottom: 1px solid #CDD6DD;
    padding: 20px 0;
}

.news-archive-item a {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    color: #4B4D4D;
    text-decoration: none;
}

.news-archive-item a:hover .news-archive-title {
    color: #009844;
}

.news-archive-img img {
    width: 160px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.news-archive-img--noimg {
    width: 160px;
    height: 100px;
    background: #f0f0f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 12px;
    flex-shrink: 0;
}

.news-archive-body {
    flex: 1;
}

.news-archive-date {
    font-size: 13px;
    color: #888;
    margin-bottom: 6px;
}

.news-archive-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.5em;
}

.news-archive-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6em;
}

/* ページャー */
.news-pager {
    margin-top: 40px;
    text-align: center;
}

.news-pager .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.news-pager .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #CDD6DD;
    border-radius: 4px;
    color: #4B4D4D;
    text-decoration: none;
    font-size: 14px;
}

.news-pager .page-numbers.current {
    background: #009844;
    color: #fff;
    border-color: #009844;
}

.news-pager .page-numbers:hover {
    border-color: #009844;
    color: #009844;
}

/* ===== 投稿個別ページ ===== */
.news-single {
    width: 864px;
    margin: 0 auto;
}

.news-single-date {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
}

.news-single-img {
    margin: 30px auto 40px;
}

.news-single-img img {
    max-width: 100%;
    border-radius: 6px;
}

.news-single-content {
    font-size: 16px;
    line-height: 1.9em;
}

@media screen and (max-width: 767px) {
    .top-news-list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .top-news-item {
        width: 300px;
    }

    .top-news-img img,
    .top-news-img--noimg {
        width: 300px;
    }

    .news-archive-list,
    .news-single {
        width: 300px;
    }

    .news-archive-item a {
        flex-direction: column;
        gap: 12px;
    }

    .news-archive-img img,
    .news-archive-img--noimg {
        width: 100%;
        height: 160px;
    }
}

/* トップページのお知らせ一覧ボタンを中央揃え */
#top-news .link-btn {
    display: flex;
    justify-content: center;
}