@charset "utf-8";

/* Web全体を明朝体ベースにする */
body {
    font-family:
    "Hiragino Mincho ProN",   /* macOS */
    "Hiragino Mincho Pro",
    "Yu Mincho",              /* Windows / iOS */
    "YuMincho",               
    "MS PMincho",             /* Windowsの明朝体 */
    serif;                    /* 予備：明朝系 */
    font-weight: 400;
    line-height: 1.7;
    color: #333;
}
.wrapper {
    padding: 0 5%;
}
html {
    scroll-behavior: smooth;
}
/*ヘッダー*/
.header_container {
    display: flex;
    background-color: rgba(51, 49, 50, 0.8);
    height: 50px;
    padding: 0 5%;
}
#main-menu nav ul {
    display: flex;
}
#main-title {
    color: #f5f5f5;
    line-height: 50px;
    font-weight: bold;
    font-size: 1.2rem;
}
/*ハンバーガーメニュー*/
.btn-menu {
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border: none;
    z-index: 4000;
    position: fixed;
    top: 0;
    right: 10px;
}
.btn-menu span {
    display: block;
    width: 40px;
    height: 2px;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
    background-color: #3a3a3a;
}
/* ×（バツ）に変形 */
.btn-menu.active span:nth-child(1) {
    transform: rotate(30deg) translate(5px, 5px);
  }
  .btn-menu.active span:nth-child(2) {
    opacity: 0;
  }
  .btn-menu.active span:nth-child(3) {
    transform: rotate(-30deg) translate(7.2px, -7.2px);
}
/*モバイルメニュー*/
#menu-panel {
    background-image: url(images/和紙-2.jpg);
    background-size: cover;
    background-position: center;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 3000;
    padding: 6rem 2rem 7rem 2rem;
    width: max(34vw, 20.7rem);
    height: 80vh;
    translate: 100vw;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow:
        5px 10px 34px rgba(0,0,0,0.6),
        1px 1px 4px rgba(0,0,0,0.1);
}
.menu-list {
    list-style: none;
}
.menu-list li {
    margin: 0 0.5rem;
}
.menu-list li a {
    color: #3a3a3a;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bolder;
    line-height: 3rem;
}
.menu-list li a:hover {
    font-size: 1.7rem;
}
/*スライダー*/
.swiper-slide {
    margin: 0 auto;
    display: block;
}
.swiper-slide img {
    width: 100%;
    height: 100vw;
    object-fit: cover;
    display: block;
}
.swiper-wrapper {
    width: 100%;
}
.swiper {
    position: relative;
}
.swiper .swiper-pagination-bullet {
    width: 20px;
    height: 20px;
    background-color: #f5f5f5;
    margin: 7px 7px !important;
}
.slide-text {
    position: absolute;
    top: 40px;
    right: 20px;
    writing-mode: vertical-rl; /* 縦書き */
    font-size: 1rem;
    color: #fff;
    letter-spacing: 0.2em;
    z-index: 2; /* 画像より前に出す */
    text-shadow:
        0 0 6px rgba(0,0,0,0.9),
        1px 1px 4px rgba(0,0,0,0.8),
        -1px -1px 4px rgba(0,0,0,0.8);
}
/*導入部分*/
#introduction {
    margin-bottom: 65px;
    background-image: url(images/top-green.jpg);
    background-size: cover;
}
.introduction-text {
    display: block;
    margin: 2rem auto;
    text-align: center;
    font-size: 1.3rem;
}
.introduction-topimage img {
    width: 100%;
}
.SDGs {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 10px;
    width: 70%;
    margin: 30px auto 0;
}
.SDGs-image img {
    width: 100%;
}
.introduction-description {
    margin: 50px 0;
}
.renewable_container {
    position: relative;
    height: 70vh;
}
.renewable {
    position: absolute;
    width: 40%;
    display: block;
}
.renewable-image {
    position: relative;
}
.renewable-text {
    position: absolute;
    display: block;
    top: 10%;
    left: 50%;
    transform: translate(-50%, 0);
    color: #3a3a3a;
    background-color: #f5f5f5;
    padding: 1.7px 5px;
    border-radius: 8px;
    font-weight: bold;
}
.renewable-image img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid white;
}
.yajirushi-green {
    width: 45px;
    display: block;
    position: absolute;
}
.yajirushi-green img {
    width: 100%;
    height: auto;
}
.renewable-text {
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    white-space: nowrap;
}
#renewable-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 45%;
    position: absolute;
    display: block;
}
#renewable-2 {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}
#renewable-4 {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}
#renewable-3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
#yajirushi-1 {
    top: 27%;
    right: 25%;
    transform: rotate(-30deg);
}
#yajirushi-2 {
    bottom: 27%;
    right: 25%;
    transform: rotate(30deg);
}
#yajirushi-3 {
    bottom: 27%;
    left: 25%;
    transform: rotate(155deg);
}
#yajirushi-4 {
    top: 26%;
    left: 25%;
    transform: rotate(-155deg);
}
/*こだわり*/
#kodawari,
#blog,
.company_container_outer,
#membership {
    background-image: url(images/和紙-2.jpg);
    background-size: cover;
    background-position: center;
    padding-top: 20px;
    padding-bottom: 50px;
}
#kodawari h2,
#works h2,
#blog h2,
footer h2 {
    text-align: center;
    padding: 2rem 0;
}
#kodawari p {
    line-height: 1.9rem;
}
.kodawari_container {
    padding-top: 4rem;
}
.kodawari-heading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.7rem;
}
.kodawari-heading img {
    width: 50px;
    height: 50px;
}
.kodawari-image img {
    width: 100%;
    aspect-ratio: 5/3;
    object-fit: cover;
}
.kodawari-description {
    padding-top: 0.7rem;
    line-height: 2.2rem;
}
/*施工事例*/
#works h2,
#blog h2,
#member h2,
footer h2 {
    line-height: 1.7rem;
}
#works h2 span,
#blog h2 span,
#member h2 span {
    font-size: 0.9rem;
}
.works_container {
    margin-bottom: 80px;
}
.works p {
    background-color: #fffaf0;
    text-align: center;
    border: solid 1px #ffefd5;
    font-weight: bold;
}
.works-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}
.yajirushi {
    text-align: center;
    padding: 0.5rem;
}
.yajirushi img {
    width: 30px;
}
.bottom-position {
    object-position: bottom;
}
.top-position {
    object-position: top;
}
.before-after-description {
    padding-top: 0.4rem;
}
.after-2 {
    margin-top: 1rem;
}
/*ブログ*/
.blog_container {
    padding: 0 5%;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
}
.blog_container a {
    text-decoration: none;
}
.blog-image img {
    width: 100%;
    display: block;
    aspect-ratio: 1/1;
    object-fit: cover;
}
.blog-text {
    line-height: 1.2rem;
    font-size: 0.9rem;
    padding-top: 0.4rem;
}
/*会員ページ*/
#member {
    margin-bottom: 30px;
}
.top-secret {
    padding-bottom: 1rem;
}
.top-secret img {
    width: 50px;
    display: block;
    margin: 0 auto;
}
#member h2 {
    text-align: center;
    padding: 2rem 0 0.3rem;
}
.button {
    text-align: center;
    padding: 2rem 1rem;
}

.button a {
    display: inline-block;
    padding: 0.8rem 2.2rem;
    text-decoration: none;
    color: #fff;
    background-color: #3a3a3a; /* 落ち着いた濃いグレー */
    border: 1px solid #3a3a3a;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    transition: 
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}
/* ホバー時 */
.button a:hover {
    background-color: #fff;
    color: #3a3a3a;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
/* クリック時 */
.button a:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
/*フッター*/
footer {
    padding-top: 30px;
}

.company ul {
    list-style: none;
}
.company_container {
    display: block;
    margin: 0 auto;
}
.company_container_outer h2 {
    line-height: 2rem;
}
.company_container_outer h2 span {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    padding-left: 0.6rem;
    border-left: 3px solid #333;
    margin-bottom: 0.3rem;
}
.company {
    padding-bottom: 1rem;
}
.company ul li a {
    text-decoration: none;
    color: #333;
}
.company ul li a:hover {
    color: black;
}
.company-map iframe {
    display: block;
    width: 100%;
    height: 60vw;
}
.company-label {
    color: white;
    background-color: rgba(51, 51, 51, 0.8);
    font-size: 0.9rem;
    line-height: 1rem;
    padding: 2px 3px;
    margin-right: 0.7rem;
}
.license {
    padding-left: 3.8rem;
    line-height: 1.6rem;
    font-size: 0.9rem;
}
/*フッターメニュー*/
.footer-menu_container {
    background-color: rgba(51, 49, 50, 0.8);
    padding: 40px 0 60px;
}
#footer-menu ul {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0 5px;
    color: white;
}
#footer-menu ul li {
    font-size: 0.7rem;
    list-style: none;
    white-space: nowrap;
}
#footer-menu ul li a {
    text-decoration: none;
    color: white;
}
#footer-menu ul li a:hover {
    color: #ffefd5;
}
#footer-menu ul li+ li {
    border-left: solid 1px;
    padding-left: 0.5rem;
}
#copyright {
    text-align: center;
    padding-top: 1rem;
    font-size: small;
    color: white;
}
/**/
/*会員ページ*/
#membership {
    text-align: center;
}
#membership h1 {
    padding: 1.5rem 0;
}
#membership p {
    display: inline-block;
    text-align: left;
}
/*ギャラリー*/
.gallery_container {
    display: grid;
    gap: 2rem;
}
.gallery-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}
#gallery {
    margin-top: 70px;
    margin-bottom: 50px;
}
.gallery {
    margin-bottom: 40px;
}
.gallery h2 {
    padding-bottom: 0.2rem;
}
.thumbnail_container {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 8px;
}
.thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
    object-fit: cover;
    object-position: center;
}
.thumbnail {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
}
.gallery-text {
    margin-bottom: 0.5rem;
}
/**/
/*ブログ個別ページ*/
#blog-page {
    text-align: center;
}
#blog-page h1 {
    display: inline-block;
    text-align: left;
    padding: 2.5rem 0 1.5rem;
    line-height: 2.1rem;
}
.blog-page-image {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 20px;
    aspect-ratio: 1/1;
}
.blog-page-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blog-page-text {
    display: inline-block;
    text-align: left;
    margin-bottom: 1.5rem;
}
.blog-page-text p {
    margin-bottom: 4rem;
}
/* ブログサイドバー */
.blog-sidebar {
    padding: 2rem 0;
}

/* アーカイブ枠 */
.archive {
    border-left: 2px solid #ddd;
    padding-left: 1.5rem;
    margin-left: 2rem;
}

/* タイトル */
.archive-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

/* リスト */
.archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-list li {
    margin-bottom: 1.2rem;
    line-height: 1.4;
}

/* 日付 */
.archive-date {
    display: block;
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.3rem;
}

/* タイトルリンク */
.archive-list a {
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
}

.archive-list a:hover {
    text-decoration: underline;
}
/**/
/*お知らせ*/
.osirase {
    text-align: center;
    font-size: 1.5rem;
    margin-top: 50px;
}
/**/
/*会員ページ施工事例カテゴリ*/
.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
  }
  
  .filter-btn {
    padding: 8px 16px;
    border: 1px solid #333;
    background: #fff;
    cursor: pointer;
  }
  
  .filter-btn.is-active {
    background: #333;
    color: #fff;
  }
  

@media (max-width: 767px) {
    .pc {
        display: none !important;
    }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .pc {
        display: none;
    }
    #menu-panel {
        width: max(50vw);
    }
    .swiper-slide img {
        height: 60vh;
    }
    .renewable_container {
        width: 90%;
        display: block;
        margin: 100px auto 30px auto;
        height: 50vh;
    }
    .renewable {
        max-width: 25%;
    }
    #renewable-1 {
        max-width: 29%;
    }
    .introduction-description {
        text-align: center;
        margin: 80px 0;
    }
    .introduction-description p {
        display: inline-block;
        text-align: left;
        font-size: 1.1rem;
    }
    .SDGs {
        width: 30%;
    }
    #introduction {
        margin-bottom: 130px;
        background-image: url(images/top-green-pc.jpg);
        background-size: cover;
    }
    .kodawari-heading {
        margin-bottom: 1rem;
    }
    #works {
        padding-top: 20px;
    }
    #member {
        margin-top: 30px;
    }
    .company_container {
        width: 70%;
    }
    .company-map iframe {
        height: 40vw;
    }
}
@media (min-width: 1025px) {
    .mb {
        display: none !important;
    }
    /*メインメニュー*/
    .header_container {
        justify-content: center;
        height: 70px;
        gap: 30%;
        z-index: 1;
    }
    #main-title {
        font-size: 1.7rem;
        line-height: 70px;
        white-space: nowrap;
        z-index: 100;
    }
    #mein-menu {
        z-index: 100;
    }
    #main-menu nav ul {
        display: flex;
        justify-content: center;
        line-height: 70px;
    }
    #main-menu nav ul li {
        list-style: none;
        font-size: 1.3rem;
        white-space: nowrap;
        font-weight: bolder;
        padding: 0 1.5rem;
        height: 60px;
    }
    #main-menu nav ul li a {
        text-decoration: none;
        color: #f5f5f5;
    }
    #main-menu nav ul li a:hover {
        color: white;
    }
    /* 会員ページメニュー（強調） */
    .member-main-menu {
        position: relative;
    }
    
    .member-main-menu a {
        display: inline-block;
        padding: 0.4rem 1.2rem;
        border: 2px solid #cc0600;
        border-radius: 999px; /* ピル型 */
        color: #fff;
        font-weight: bold;
        line-height: 1.4;
        transition: all 0.3s ease;
    }
    
    /* ホバー時 */
    .member-main-menu a:hover {
        background-color: #cc0600;
        color: #fff;
    }
    /*ヘッダーメニュー上部固定*/
    .header_container {
        width: 100%;
        z-index: 1000;
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
    }
    
    /* 固定時 */
    .header_container.is-fixed {
        position: fixed;
        top: 0;
        left: 0;
        background-color: rgba(0,0,0,0.85); /* 背景を付けると読みやすい */
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
    /*スライダー*/
    .swiper {
        padding-top: 70px;
    }
    .swiper-slide img {
        height: 60vh;
    }
    #slide-1 img {
        object-position: 50% 80%;
    }
    #slide-2 img {
        object-position: 50% 8%;
    }
    #slide-3 img {
        object-position: 50% 40%;
    }
    .slide-text {
        font-size: 1.5rem;
        right: 5%;
        top: 10%;
    }
    /*導入部分*/
    #introduction {
        margin-bottom: 130px;
        background-image: url(images/top-green-pc.jpg);
        background-size: cover;
    }
    .introduction_container {
        width: 80%;
        display: block;
        margin: 0 auto;
    }
    .introduction-text {
        font-size: 1.8rem;
        text-align: center;
        line-height: 3.5rem;
        margin: 90px auto 20px;
    }
    .introduction-topimage {
        width: 70%;
        margin: 0 auto;
    }
    .introduction-description {
        text-align: center;
        margin: 80px 0;
    }
    .introduction-description p {
        display: inline-block;
        text-align: left;
        font-size: 1.1rem;
    }
    .SDGs {
        width: 30%;
    }
    .renewable_container {
        width: 60%;
        display: block;
        margin: 100px auto 30px auto;
        height: 50vh;
    }
    .renewable {
        max-width: 25%;
    }
    #renewable-1 {
        max-width: 29%;
    }
    .renewable-text {
        font-size: 1rem;
    }
    .yajirushi-green {
        width: 60px;
    }
    #yajirushi-1 {
        top: 25%;
        right: 25%;
        transform: rotate(-60deg);
    }
    #yajirushi-2 {
        bottom: 30%;
        right: 27%;
        transform: rotate(60deg);
    }
    #yajirushi-3 {
        bottom: 30%;
        left: 27%;
        transform: rotate(125deg);
    }
    #yajirushi-4 {
        top: 25%;
        left: 26%;
        transform: rotate(-125deg);
    }
    /*こだわり*/
    #kodawari {
        text-align: center;
        padding-top: 40px;
        padding-bottom: 70px;
    }
    #kodawari h2,
    #works h2,
    #blog h2,
    footer h2 {
        font-size: 1.8rem;
        padding: 4rem 0;
    }
    #kodawari p {
        display: inline-block;
        text-align: left;
        font-size: 1.1rem;
        line-height: 2.4rem;
    }
    .kodawari_container {
        width: 60%;
        display: flex;
        margin: 0 auto;
        gap: 40px;
        padding-top: 200px;
    }
    .kodawari-heading {
        font-size: 1.5rem;
        flex-direction: row-reverse;
        align-items: flex-start;
    }
    .kodawari-heading img {
        width: 100px;
        height: 100px;
    }
    .kodawari-heading h3 {
        writing-mode: vertical-rl;
    }
    .reverse {
        flex-direction: row-reverse;
    }
    .kodawari {
        margin-top: -80px;
    }
    .kodawari-image {
        padding: 0;
        width: 100%;
    }
    .kodawari-description {
        width: 100%;
        padding: 0.8rem;
    }
    .kodawari-description p {
        font-size: 1.1rem;
        line-height: 2rem;
        display: inline-block;
        text-align: left;
    }
    /*施工事例*/
    #works {
        padding-top: 20px;
    }
    #works h2,
    #blog h2,
    #member h2,
    footer h2 {
        line-height: 2.2rem;
    }
    #works h2 span,
    #blog h2 span,
    #member h2 span {
        font-size: 1.1rem;
    }
    .works_container {
        width: 80%;
        display: block;
        margin: 0 auto 100px;
    }
    .works p {
        font-size: 1.4rem;
    }
    .before-after {
        display: flex;
    }
    .yajirushi {
        display: flex;
        align-items: center;
        padding: 1rem;
    }
    .yajirushi img {
        transform: rotate(-90deg);
        width: 50px;
    }
    .before-after-description {
        text-align: center;
    }
    .before-after-description p {
        display: inline-block;
        text-align: left;
        font-size: 1.2rem;
    }
    .after-2 {
        margin-top: 0;
        margin-left: 1.5rem;
    }
    /*ブログ*/
    .blog_container {
        display: flex;
        justify-content: space-around;
        gap: 30px;
        width: 90%;
        margin: 0 auto;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        padding: 0 0 2rem;
    }
    /* スクロールバーを出したくない場合（任意） */
    .blog_container::-webkit-scrollbar {
        height: 8px;
    }
    .blog_container::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }   
    .blog {
        flex: 0 0 calc((100% - 120px) / 5);
        scroll-snap-align: start;
    }
    .blog-text {
        font-size: 1rem;
        line-height: 1.4rem;
    }
    /*会員ページ*/
    #member {
        width: 70%;
        display: block;
        margin: 0 auto 50px;
    }
    #member h2 {
        font-size: 1.8rem;
        padding-top: 5rem;
    }
    .top-secret {
        padding: 1rem 0 2rem;
    }
    .top-secret img {
        width: 100px;
    }
    #member p {
        font-size: 1.2rem;
    }
    .button a {
        font-size: 1rem;
    }
    /*フッター*/
    .company_container_outer {
        padding-bottom: 100px;
    }
    .company_container {
        display: flex;
        justify-content: center;
        gap: 100px;
        width: 70%;
    }
    .company-map iframe {
        width: 30vw;
        height: 20vw;
    }
    .company ul {
        font-size: 1.2rem;
        line-height: 2.4rem;
    }
    .company-label {
        font-size: 1rem;
        padding: 4px;
    }
    .license {
        padding-left: 4.2rem;
        line-height: 2rem;
        font-size: 1.1rem;
    }
    .company_container_outer h2 {
        line-height: 2.7rem;
    }
    .company_container_outer h2 span {
        font-size: 1rem;
    }
    /*フッターメニュー*/
    .footer-menu_container {
        padding: 80px 0 100px;
    }
    #footer-menu ul {
        gap: 0.8rem;
        align-items: center;
    }
    #footer-menu ul li+ li {
        padding-left: 0.8rem;
    }
    #footer-menu ul li {
        font-size: 1rem;
    }
    /**/
    /*会員ページ*/
    #membership h1 {
        padding: 4rem 0 2rem;
    }
    #membership p {
        font-size: 1.2rem;
        padding-bottom: 2rem;
    }
    /*ギャラリー*/
    .gallery_container {
        grid-template-columns: repeat(2, 1fr);
        gap: 100px;
        margin: 0 30px;
    }
    .gallery-text {
        font-size: 1.1rem;
        padding-top: 0.5rem;
        line-height: 1.7rem;
        margin-bottom: 0.9rem;
    }
    .gallery h2 {
        padding-bottom: 0.3rem;
    }
    .gallery {
        margin-bottom: 0;
    }
    /**/
    /*ブログ個別ページ*/
    .blog-page_outer {
        display: flex;
        width: 70%;
        margin: 0 auto;
    }
    .blog-page_outer main {
        width: 65%;
    }
    .blog-page_outer aside {
        width: 30%;
    }
    #blog-page h1 {
        padding: 4.5rem 0 2.5rem;
    }
    .blog-page-image img {
        aspect-ratio: 4/3;
    }
    .blog-page-text {
        font-size: 1.1rem;
        margin-bottom: 5rem;
    }
    /*サイドバー*/
    .blog-sidebar {
        margin-top: 2rem;
        padding-top: 4rem;
    }
    .archive {
        padding-left: 2.5rem;
    }
    .archive-title {
        font-size: 1.3rem;
        white-space: nowrap;
    }
}