/* 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --accent-green: #00a63c;
    --dark-green: #006520;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    color: #000;
    line-height: 1.75;
    background-image: url('../img/background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

p {
    font-size: 16px;
    line-height: 2.3;
}
img {
    max-width: 100%;
}

.vertical-text img {
    max-width: 48px;
    margin-bottom: 32px;
    margin-right: 32px;
}

.section-title {
    font-weight: 700;
    letter-spacing: 0.04em;
}
.container {
    display: block;
    position: relative;
}

/* サイドナビ  */
.side-nav {
    width: 260px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    padding: 0;
    box-sizing: border-box;
}
.side-nav__inner {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 64px 32px 0;
    box-sizing: border-box;
}
.side-nav__logo img {
    width: 100%;
    max-width: 180px;
    margin-bottom: 64px;
}
.side-nav__menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.side-nav__decoration {
    margin-top: auto;
    width: 100%;
    line-height: 0;
}
.side-nav__decoration img {
    width: 100%;
    height: auto;
}
.side-nav__menu li {
    margin-bottom: 24px;
}
.side-nav__menu a {
    text-decoration: none;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: color 0.3s;
    position: relative;
    display: inline-block;
    z-index: 1;
}
.side-nav__menu a:hover {
    color: #2d5a27;
}
/*.side-nav__menu a.is-active {
    color: var(--accent-green);
}*/
.side-nav__menu a::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 4px;
    background-color: var(--accent-green);
    transition: width 0.4s ease-out;
    z-index: -1;
 }
.side-nav__menu a.is-active::after {
    width: 100%;
}

.side-nav__footer {
    position: relative;
    z-index: 2;
    padding: 16px 0 40px;
    display: flex;
    align-items: baseline;
    gap: 16px;
    align-items: center;
    justify-content: flex-start;
}
.side-nav__sns {
    /*margin-top: 16px;*/
}
.side-nav__sns img {
    width: 60px;
    height: auto;
    transition: opacity 0.3s;
}
.side-nav__sns a:hover img {
    opacity: 0.7;
}
.side-nav__decoration {
    margin-top: auto;
    width: 100%;
    line-height: 0;
}
.side-nav__decoration img {
    width: 100%;
    height: auto;
}
.copyright img {
    width: 55%;
}

.main-content {
    margin-left: 260px;
    width: auto;
    min-width: 0;
    flex-grow: 1;
}

/* --- コンテンツ共通設定 --- */
.content-box {
    max-width: 856px;
    margin: 0 auto;
    padding: 80px 0 0;
}

.section-title {
    font-size: 32px;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
    isolation: isolate;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 8px;
    z-index: -1;
    background-color: var(--accent-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-title.is-animated::after {
    transform: scaleX(1);
}

/* --- HERO (縦書きキャッチコピー) --- */
 .hero {
    position: absolute;
    right: 64px;
    top: 280px;
    z-index: 10;
    pointer-events: none;
}

/* --- ABOUT --- */
.about-section {
    position: relative;
}

.about-section__inner {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: wrap;
}

.description {
    flex: 1;
    min-width: 350px;
    padding-top: 56px;
    line-height: 2.3;
}

/* 右側の縦書きとロゴをセットにする親 */
.about-section__inner .right-box .hero__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.vertical-text {
    margin-bottom: 0;
    margin-left: auto;
    margin-right: 40px;
}

.about-logo {
    width: auto;
    margin-bottom: 0;
}

.about-logo img {
    width: 280px;
    z-index: 2;
    position: relative;
}

.about-image {
    width: 100%;
    margin-top: -232px;
}
.about-image img {
    width: 100%;
    height: auto;
}

/* --- ISSUEセクション --- */
.issue-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 48px;
}

.issue-section__inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 40px;
    padding: 80px 32px 0;
}

.issue-section__inner .left-box {
    flex: 0 0 348px;
    width: 100%;
    max-width: 348px;
}

.issue-section__inner .right-box {
    flex: 1 1 0;
    min-width: 0;
}

.issue-text {
    flex: 1;
}

.issue-main-image {
    flex: 1;
    margin: 0;
    margin-bottom: 16px;
}

.issue-main-image img {
    width: 100%;
}

.issue-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.issue-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* --- ACTIONセクション --- */
.action-section {
    margin-top: 80px;
}
.action-section__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background: var(--accent-green);
    padding: 40px 32px 40px;
}

.action-section__inner .left-box {
    max-width: 386px;
}

.action-section__inner .right-box {
    flex: 0 1 288px;
    margin: 0 48px 0 0;
    min-width: 288px;
 }

.action-section .section-title {
    color: #FFF;
    z-index: 1;
    margin-bottom: 24px;
}

.action-section .section-title::after {
    background-color: var(--dark-green);
    z-index: -2;
}

.action-section p {
    color: #FFF;
    margin-bottom: 16px;
}

.action-content {
    display: flex;
    gap: 40px;
    align-items: flex-end;
    margin-bottom: 48px;
}

.action-text {
    flex: 1;
}

.action-person-image {
    position: relative;
    flex: 1;
    margin: 0;
}

.action-person-image img {
    width: 100%;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.action-before-after {
    flex: 0 0 100%;
    width: 100%;
    margin-top: -32px;
}

.action-before-after img {
    width: 100%;
    height: auto;
}


/* --- ACTIVITYセクション (横スクロール) --- */
.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 48px;
}

.activity-section__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 56px 32px 0;
}

.activity-section__inner .section-title {
    margin-bottom: 24px;
}

.activity-section__inner .left-box {
    max-width: 368px;
    flex: 1;
}
.activity-section__inner .right-box {
    flex: 0 0 352px;
    min-width: 352px;
    display: block;
    margin-right: 40px;
}

.activity-header-content {
    flex: 1;
}

.activity-record-image img {
    width: auto;
    height: 176px;
}

.activity-wrapper {
    display: flex;
    width: 100%;
    max-width: 856px;
    height: 240px;
    margin: 8px auto;
    padding: 20px 20px 24px;
    background-image: url('../img/brown.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 856px 496px;
    overflow: hidden;
}

.activity-item {
    width: 160px;
    margin-right: 16px;
    flex-shrink: 0;
}

.activity-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.activity-section p {
    margin-bottom: 16px;
}

/* --- PRODUCTセクション --- */
.product-section {
    margin-top: 80px;
}
.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.product-section__inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 40px;
    background: var(--accent-green);
    padding: 40px;
}

.product-section__inner .left-box {
    max-width: 306px;
}

.product-section .section-title {
    color: #FFF;
    z-index: 1;
    margin-bottom: 16px;
}

.product-section .section-title::after {
    background-color: var(--dark-green);
    z-index: -2;
}

.product-section .section-title img {
    width: 112px;
    display: block;
}

.product-section p {
    color: #FFF;
}

.product-main-image img {
    width: 100%;
}

.product-section a {
    color: #FFF;
    text-decoration: none;
    text-align: right;
    display: block;
    font-size: 20px;
    text-decoration: underline;
    text-decoration-color: #FFF;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 2px;
}

.btn-online {
    display: inline-block;
    background-color: var(--accent-green);
    color: #fff;
    padding: 16px 40px;
    text-decoration: none;
    margin: 32px 0;
    font-weight: bold;
}

.product-store-info {
    position: relative;
    margin-top: 48px;
}

.store-logo {
    position: absolute;
    top: -24px;
    left: -24px;
    width: 80px;
    z-index: 2;
}

.store-image {
    width: 100%;
    filter: grayscale(0.2);
}

/* --- REALESTATEセクション --- */

.realestate-section__inner {
    padding: 40px;
}

.realestate-content {
    display: flex;
    gap: 64px;
    margin-bottom: 64px;
}

.realestate-advertisement {
    flex: 1;
    margin-top: 40px;
}

.realestate-advertisement img {
    width: 100%;
}

.realestate-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 32px 32px 16px;
    margin: -8px 32px 0px;
    border-bottom: 1px solid #000;
}

.realestate-grid img {
    height: 64px;
    width: auto;
}
.contact-info {
    padding: 16px 32px;
    font-size: 20px;
    text-align: center;
}
.contact-info span {
    color: var(--accent-green);
}
.contact-info a {
    color: var(--accent-green);
    text-decoration: none;
}
.gototop {
    text-align: center;
}
.gototop img {
    max-width: 80px;
}
/* --- SP対応 --- */
@media (max-width: 768px) {
    .pc-only { display: none; }
    .section-title {
        font-size: 24px;
        margin-bottom: 24px;
    }
    p {
        margin-bottom: 16px;
    }
    .sp-header {
       display: block;
       position: fixed;
       top: 0;
       left: 0;
       width: 100%;
       height: 70px;
       background: #fff;
       z-index: 1200;
       border-bottom: 1px solid #eee;
   }
   .sp-header__inner {
       display: flex;
       align-items: center;
       justify-content: center;
       height: 100%;
       padding: 0 20px;
   }
   .sp-header__logo {
     margin: 16px 0 0;
    }
   .sp-header__logo img { height: 56px; }
   .menu-trigger {
       position: absolute;
       left: 24px;
       top: 50%;
       transform: translateY(-50%);
       background: none;
       border: none;
       width: 32px;
       height: 24px;
       cursor: pointer;
       padding: 0;
       z-index: 1200;
   }
   .menu-trigger span {
       display: block;
       width: 100%;
       height: 2px;
       background: #333;
       position: absolute;
       left: 0;
       transition: all 0.3s;
   }
   .menu-trigger span:nth-child(1) { top: 0; }
   .menu-trigger span:nth-child(2) { top: 11px; }
   .menu-trigger span:nth-child(3) { bottom: 0; }

   /* 開閉アニメーション */
   .menu-trigger.is-active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
   .menu-trigger.is-active span:nth-child(2) { opacity: 0; }
   .menu-trigger.is-active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

   .side-nav {
       width: 100%;
       transform: translateX(-100%);
       transition: transform 0.4s ease;
       padding-top: 80px;
       background: #fff;
       z-index: 1150;
   }
   .side-nav__inner {
    max-height: 90vh;
   }
   .side-nav.is-open { transform: translateX(0); }
   .side-nav__footer {
        padding: 16px 0 48px;
        gap: 72px;
    }
    .side-nav__sns img {
        width: 36px;
    }
   .main-content {
       margin-left: 0;
       width: 100%;
       padding-top: 70px;
   }
   .hero {
       position: static;
       padding: 40px 0;
       text-align: center;
   }
   .vertical-text {
       position: absolute;
       top: 24px;
       left: 40px;
   }

   .vertical-text img {
        max-width: 24px;
    }

   .content-box {
        padding: 64px 24px;
        display: block;
    }

    .product-content,
    .issue-content,
    .action-content,
    .realestate-content {
        display: block;
    }
    .product-section__inner .left-box {
        max-width: 100%;
    }
    .about-section__inner {
        display: flex;
        flex-direction: column-reverse;
        gap: 0px;
        padding-bottom: 0;
    }

    .about-section__inner .description {
        padding-top: 8px;
        min-width: 100%;
    }

    .about-section__inner .right-box {
        order: 1;
    }
    .about-section__inner .left-box {
        order: 2;
    }

    .about-section__inner .about-logo {
        position: absolute;
        top: 96px;
        right: 24px;
        width: 200px;
    }
    .about-section__inner .about-image {
        order: 3;
        margin-top: 80px;
    }
    .about-image, .issue-grid, .action-grid {
        margin-top: 32px;
    }

    .issue-grid, .action-grid {
        display: flex;
        justify-content: space-between;
        gap: 4px;
    }

    .issue-grid img, .action-grid img {
        max-width: 32%;
    }
    .action-section {
        margin-top: 0;
    }
    .action-section p {
        letter-spacing: -0.011em;
    }
    .action-section__inner .right-box {
        margin: 0;
     }
     .action-grid {
        margin-top: -16px;
    }
     .action-person-image {
        text-align: right;
        margin-top: -8px;
     }
     .action-person-image img.oishikun-1 {
        position: absolute;
        top: 35%;
        left: 0;
        width: 40%;
     }
     .action-person-image img.oishikun-2 {
        position: absolute;
        top: 50%;
        left: 0;
        width: 50%;
     }
     .action-person-image img.oishikun-3 {
        width: 60%;
     }
    .action-before-after {
        margin-top: 24px;
    }
    .action-before-after img.sp-only {
        margin-bottom: 16px;
    }

    .activity-section .content-box {
        padding: 64px 24px 32px;
    }

    .activity-wrapper {
        height: 336px;;
    }
    .activity-header {
        display: block;
    }

    .activity-section__inner .right-box {
        min-width: 100%;
        margin-right: unset;
    }

    .activity-record-image img {
        width: 100%;
        height: auto;
    }

    .activity-record-image {
        margin-top: 24px;
    }

    .activity-item {
        width: 240px;
    }

    .product-section a {
        text-align: center;
        margin-top: 8px;
        font-size: 24px;
    }
    .realestate-grid {
        display: block;
        text-align: center;
    }
    .content-box.realestate-section__inner {
        padding-bottom: 0;
    }
    .contact-info {
        font-size: 16px;
    }
}

@media (min-width: 769px) {
    .sp-header { display: none; }
    .sp-only {display: none;}
}