/* ========================================
   基本設定
======================================== */

:root {
    --color-main: #3f7d58;
    --color-main-dark: #2f6b57;
    --color-text: #333333;
    --color-bg: #ffffff;
    --color-bg-sub: #f8f6f2;
    --color-line: #d8d3cc;
    --container-width: 1100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--color-text);
    background: var(--color-bg);
    font-family:
        "Yu Gothic",
        "Hiragino Kaku Gothic ProN",
        "Noto Sans JP",
        sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    display: block;
    width: 100%;
    max-width: 100%;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(var(--container-width), calc(100% - 40px));
    margin: 0 auto;
}


/* ========================================
   共通見出し
======================================== */

.section-heading {
    text-align: center;
}

.section-heading p {
    margin-bottom: 8px;
    color: var(--color-main);
    font-size: 14px;
    letter-spacing: 0.18em;
}

.section-heading h2 {
    margin-bottom: 40px;
    font-size: 30px;
    line-height: 1.4;
}


/* ========================================
   ヘッダー
======================================== */

.header {
    position: relative;
    z-index: 100;
    background: #ffffff;
}

.header-inner {
    display: flex;
    min-height: 105px;
    align-items: center;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    width: 111px;
}

.nav {
    margin-left: auto;
}

.nav ul {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav a {
    position: relative;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a::after {
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    width: 0;
    height: 1px;
    margin: auto;
    background: var(--color-main);
    content: "";
    transition: width 0.3s ease;
}

.nav a:hover {
    color: var(--color-main);
}

.nav a:hover::after {
    width: 100%;
}

.contact-btn {
    margin-left: 36px;
    padding: 11px 26px;
    border-radius: 999px;
    background: var(--color-main-dark);
    color: #ffffff;
    font-size: 15px;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.contact-btn:hover {
    opacity: 0.88;
    transform: translateY(-2px);
}


/* ========================================
   ファーストビュー
======================================== */

.fv {
    position: relative;
    height: 700px;
    overflow: hidden;
    background: #e7e2dc;
}

.fv-slider {
    position: absolute;
    inset: 0;
}

.fv-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.fv-slide.is-active {
    opacity: 1;
}

.fv-slide img {
    height: 100%;
    object-fit: cover;
}

.fv::after {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.04);
    content: "";
    pointer-events: none;
}

.fv-text {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: max(7%, calc((100% - var(--container-width)) / 2));
    width: 530px;
    max-width: calc(100% - 40px);
    padding: 46px 50px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(3px);
    transform: translateY(-50%);
}

.fv h1 {
    margin-bottom: 22px;
    font-size: 48px;
    line-height: 1.45;
    letter-spacing: 0.04em;
}

.fv p {
    margin-bottom: 28px;
    font-size: 15px;
    line-height: 2;
}

.fv-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 999px;
    background: var(--color-main-dark);
    color: #ffffff;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.fv-btn:hover {
    opacity: 0.88;
    transform: translateY(-2px);
}

.slider-dots {
    position: absolute;
    z-index: 3;
    bottom: 24px;
    left: 50%;
    display: flex;
    gap: 11px;
    transform: translateX(-50%);
}

.slider-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 1px solid #ffffff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.slider-dot.is-active {
    background: #ffffff;
}


/* ========================================
   ABOUT
======================================== */

.about {
    padding: 95px 0;
    background: var(--color-bg-sub);
    text-align: center;
}

.about-main h3 {
    margin-bottom: 30px;
    font-size: 32px;
    line-height: 1.6;
}

.about-text {
    max-width: 850px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 2.15;
}

.about-data {
    display: flex;
    justify-content: center;
    margin-top: 70px;
}

.about-data-item {
    width: 33.333%;
    padding: 0 35px;
}

.about-data-item + .about-data-item {
    border-left: 1px solid var(--color-line);
}

.about-number {
    margin-bottom: 8px;
    color: var(--color-main);
    font-size: 25px;
    font-weight: 700;
}


/* ========================================
   SERVICE
======================================== */

.service {
    padding: 95px 0;
    background: #ffffff;
    text-align: center;
}

.service .section-heading h2 {
    margin-bottom: 20px;
}

.service-lead {
    margin-bottom: 50px;
    font-size: 15px;
    line-height: 2;
}

.service-list {
    display: flex;
    align-items: stretch;
    gap: 28px;
}

.service-item {
    width: calc((100% - 56px) / 3);
    overflow: hidden;
    padding-bottom: 30px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(48, 39, 31, 0.08);
    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.service-item:hover {
    box-shadow: 0 15px 34px rgba(48, 39, 31, 0.14);
    transform: translateY(-7px);
}

.service-item img {
    height: 240px;
    object-fit: cover;
}

.service-number {
    margin-top: 22px;
    color: var(--color-main);
    font-size: 17px;
    font-weight: 700;
}

.service-item h3 {
    min-height: 60px;
    margin: 8px 20px 13px;
    font-size: 19px;
    line-height: 1.55;
}

.service-item > p:last-child {
    padding: 0 20px;
    font-size: 13px;
    line-height: 1.9;
}

.service-note {
    margin-top: 40px;
    font-size: 12px;
}


/* ========================================
   FLOW
======================================== */

.flow {
    padding: 95px 0;
    background: var(--color-bg-sub);
    text-align: center;
}

.flow-list {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-top: 55px;
}

.flow-list::before {
    position: absolute;
    top: 31px;
    right: 10%;
    left: 10%;
    height: 1px;
    background: rgba(63, 125, 88, 0.38);
    content: "";
}

.flow-item {
    position: relative;
    z-index: 1;
    width: 18%;
}

.flow-number {
    display: flex;
    width: 62px;
    height: 62px;
    margin: 0 auto 20px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-main);
    color: #ffffff;
    font-size: 16px;
}

.flow-item h3 {
    min-height: 54px;
    margin-bottom: 14px;
    font-size: 17px;
    line-height: 1.5;
}

.flow-item p {
    font-size: 13px;
    line-height: 1.9;
}


/* ========================================
   FEATURE
======================================== */

.feature {
    padding: 95px 0;
    background: #ffffff;
    text-align: center;
}

.feature-list {
    display: flex;
    gap: 28px;
    margin-top: 50px;
}

.feature-item {
    width: calc((100% - 56px) / 3);
    min-height: 220px;
    padding: 42px 30px;
    border-radius: 10px;
    background: var(--color-bg-sub);
    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.feature-item:hover {
    box-shadow: 0 12px 30px rgba(48, 39, 31, 0.1);
    transform: translateY(-5px);
}

.feature-item h3 {
    margin-bottom: 20px;
    color: var(--color-main-dark);
    font-size: 21px;
}

.feature-item p {
    font-size: 14px;
    line-height: 2;
}


/* ========================================
   CONTACT
======================================== */

.contact {
    padding: 100px 0;
    background: var(--color-main-dark);
    color: #ffffff;
}

.contact .section-heading p {
    color: #dcece3;
}

.contact .section-heading h2 {
    color: #ffffff;
}

.contact-lead {
    margin: 0 0 55px;
    text-align: center;
    font-size: 15px;
    line-height: 2;
}

.contact-form {
    max-width: 760px;
    margin: 0 auto;
}

.form-item {
    margin-bottom: 26px;
}

.form-item label {
    display: block;
    margin-bottom: 9px;
    font-weight: 700;
}

.form-item label span {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #c95b52;
    color: #ffffff;
    font-size: 11px;
    font-weight: 400;
}

.form-item input,
.form-item textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid transparent;
    border-radius: 7px;
    outline: none;
    background: #ffffff;
    color: #333333;
    font-size: 16px;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.form-item input:focus,
.form-item textarea:focus {
    border-color: #a7cdb7;
    box-shadow: 0 0 0 3px rgba(167, 205, 183, 0.25);
}

.form-item textarea {
    min-height: 180px;
    resize: vertical;
}

.form-btn {
    display: block;
    margin: 48px auto 0;
    padding: 16px 58px;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: var(--color-main-dark);
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.form-btn:hover {
    background: #f2efe9;
    transform: translateY(-3px);
}


/* ========================================
   フッター
======================================== */

.footer {
    padding: 28px 0 14px;
    background: var(--color-main);
    color: #ffffff;
}

.footer-inner {
    display: flex;
    min-height: 105px;
    align-items: center;
    justify-content: space-between;
}

.footer-logo img {
    width: 111px;
}

.footer-info {
    font-size: 13px;
    line-height: 1.9;
}

.footer-company {
    font-weight: 700;
}

.copyright {
    margin-top: 10px;
    text-align: center;
    font-size: 11px;
}


/* ========================================
   タブレット・スマホ用の仮設定
   本格的なスマホ対応は次に調整します
======================================== */

@media (max-width: 900px) {
    .nav {
        display: none;
    }

    .service-list,
    .feature-list {
        gap: 18px;
    }

    .fv-text {
        left: 40px;
    }
}

@media (max-width: 767px) {
    .container {
        width: min(100% - 30px, var(--container-width));
    }

    .header-inner {
        min-height: 80px;
    }

    .logo img {
        width: 85px;
    }

    .contact-btn {
        margin-left: auto;
        padding: 9px 17px;
        font-size: 13px;
    }

    .fv {
        height: 650px;
    }

    .fv-text {
        top: auto;
        bottom: 55px;
        left: 15px;
        width: calc(100% - 30px);
        padding: 28px 24px;
        transform: none;
    }

    .fv h1 {
        font-size: 32px;
    }

    .fv p {
        font-size: 13px;
    }

    .about,
    .service,
    .flow,
    .feature,
    .contact {
        padding: 70px 0;
    }

    .section-heading h2 {
        font-size: 26px;
    }

    .about-main h3 {
        font-size: 25px;
    }

    .about-text br {
        display: none;
    }

    .about-data {
        flex-direction: column;
        gap: 30px;
        margin-top: 50px;
    }

    .about-data-item {
        width: 100%;
    }

    .about-data-item + .about-data-item {
        border-top: 1px solid var(--color-line);
        border-left: 0;
        padding-top: 30px;
    }

    .service-list,
    .feature-list {
        flex-direction: column;
    }

    .service-item,
    .feature-item {
        width: 100%;
    }

    .flow-list {
        flex-direction: column;
        gap: 35px;
    }

    .flow-list::before {
        display: none;
    }

    .flow-item {
        width: 100%;
    }

    .flow-item h3 {
        min-height: auto;
    }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
        text-align: center;
    }
}

/* ========================================
   ハンバーガーメニュー
======================================== */

.hamburger {
    display: none;
    position: relative;
    z-index: 120;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.hamburger span {
    position: absolute;
    left: 8px;
    width: 26px;
    height: 2px;
    background: var(--color-main-dark);
    transition:
        top 0.3s ease,
        transform 0.3s ease,
        opacity 0.3s ease;
}

.hamburger span:nth-child(1) {
    top: 12px;
}

.hamburger span:nth-child(2) {
    top: 20px;
}

.hamburger span:nth-child(3) {
    top: 28px;
}

.hamburger.is-open span:nth-child(1) {
    top: 20px;
    transform: rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
    top: 20px;
    transform: rotate(-45deg);
}

.sp-nav {
    display: none;
}


/* ========================================
   スマホ対応
======================================== */

@media (max-width: 767px) {

    body.is-menu-open {
        overflow: hidden;
    }

    .header {
        position: sticky;
        top: 0;
        z-index: 100;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .header-inner {
        min-height: 76px;
    }

    .logo img {
        width: 82px;
    }

    .nav,
    .contact-btn {
        display: none;
    }

    .hamburger {
        display: block;
        margin-left: auto;
    }

    .sp-nav {
        display: block;
        position: fixed;
        z-index: 110;
        top: 76px;
        right: 0;
        bottom: 0;
        left: 0;
        padding: 40px 25px;
        background: rgba(255, 255, 255, 0.98);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition:
            opacity 0.3s ease,
            visibility 0.3s ease,
            transform 0.3s ease;
    }

    .sp-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .sp-nav ul {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .sp-nav li {
        border-bottom: 1px solid #ded8d1;
    }

    .sp-nav a {
        display: block;
        padding: 18px 10px;
        font-size: 16px;
        font-weight: 700;
    }

    .fv {
        height: 650px;
    }

    .fv-text {
        top: auto;
        bottom: 52px;
        left: 15px;
        width: calc(100% - 30px);
        max-width: none;
        padding: 28px 24px;
        transform: none;
    }

    .fv h1 {
        margin-bottom: 18px;
        font-size: 31px;
        line-height: 1.45;
    }

    .fv p {
        margin-bottom: 22px;
        font-size: 13px;
        line-height: 1.9;
    }

    .fv p br {
        display: none;
    }

    .fv-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .slider-dots {
        bottom: 20px;
    }

    .about,
    .service,
    .flow,
    .feature,
    .contact {
        padding: 65px 0;
    }

    .section-heading h2 {
        margin-bottom: 30px;
        font-size: 25px;
    }

    .about-main h3 {
        font-size: 24px;
        line-height: 1.7;
    }

    .about-text {
        font-size: 14px;
        line-height: 2;
    }

    .about-text br {
        display: none;
    }

    .about-data {
        flex-direction: column;
        gap: 28px;
        margin-top: 45px;
    }

    .about-data-item {
        width: 100%;
        padding: 0;
    }

    .about-data-item + .about-data-item {
        padding-top: 28px;
        border-top: 1px solid var(--color-line);
        border-left: 0;
    }

    .about-number {
        font-size: 22px;
    }

    .service-lead {
        font-size: 14px;
    }

    .service-lead br {
        display: none;
    }

    .service-list {
        flex-direction: column;
        gap: 25px;
    }

    .service-item {
        width: 100%;
    }

    .service-item img {
        height: 230px;
    }

    .service-note {
        line-height: 1.8;
    }

    .flow-list {
        flex-direction: column;
        gap: 35px;
        margin-top: 40px;
    }

    .flow-list::before {
        display: none;
    }

    .flow-item {
        width: 100%;
    }

    .flow-item h3 {
        min-height: auto;
    }

    .feature-list {
        flex-direction: column;
        gap: 22px;
        margin-top: 40px;
    }

    .feature-item {
        width: 100%;
        min-height: auto;
        padding: 35px 25px;
    }

    .contact-lead {
        margin-bottom: 40px;
        font-size: 14px;
    }

    .contact-lead br {
        display: none;
    }

    .form-item input,
    .form-item textarea {
        font-size: 16px;
    }

    .form-btn {
        width: 100%;
        margin-top: 38px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
        min-height: auto;
        padding: 20px 0;
        text-align: center;
    }

    .footer-logo img {
        width: 90px;
    }
}

/* ========================================
   ヘッダー固定・スクロール表示
======================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* メニュー移動時に見出しがヘッダーの下へ隠れないようにする */
#about,
#service,
#flow,
#feature,
#contact {
    scroll-margin-top: 105px;
}

/* 最初は少し下・透明 */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

/* 画面内に入ったとき */
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 動きを減らす設定の人にはアニメーションを使わない */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 767px) {
    #about,
    #service,
    #flow,
    #feature,
    #contact {
        scroll-margin-top: 76px;
    }
}