/*　command shift R ： cssファイルの再読み込み */
/* ========================================
   Base
======================================== */

:root {
    --green-main: #2f7d32;
    --green-dark: #1f5f25;
    --green-light: #eef7ef;
    --green-pale: #f7fbf7;

    --text-main: #222222;
    --text-sub: #555555;

    --background: #ffffff;
    --border: #e5e5e5;

    --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Helvetica Neue",
        "Hiragino Kaku Gothic ProN",
        "Yu Gothic",
        sans-serif;

    font-size: 16px;
    line-height: 1.8;

    color: var(--text-main);
    background: var(--background);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}


/* ========================================
   Header
======================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
}


.header-inner {
    min-height: 86px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}

.site-logo {
    display: flex;
    align-items: center;

    width: 160px;
    height: 78px;

    overflow: hidden;
}

.site-logo-image {
    display: block;

    width: 160px;
    max-width: none;
    height: auto;

    transform: translateY(0px);
}

.menu-toggle {
    display: none;
}

.global-nav {
    display: flex;
    align-items: center;
    gap: 28px;

    font-size: 15px;
    font-weight: 600;
}

.global-nav a {
    position: relative;
    padding: 8px 0;
}

.global-nav a::after {
    content: "";
    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    background: var(--green-main);

    transition: width 0.25s ease;
}

.global-nav a:hover::after {
    width: 100%;
}


/* ========================================
   Hero
======================================== */

.hero {
    padding: 100px 0 90px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #ffffff 55%,
            #f2f8f2 100%
        );
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;

    align-items: center;
    gap: 50px;
}
.hero-text h1 {
    margin: 10px 0 28px;

    font-size: clamp(36px, 3.8vw, 54px);
    line-height: 1.35;
    letter-spacing: -0.03em;
}
.section-label {
    margin: 0 0 8px;

    color: var(--green-main);

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.hero-description {
    max-width: 650px;

    margin: 0 0 32px;

    color: var(--text-sub);

    font-size: 18px;
    line-height: 1.9;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 0 26px;

    border-radius: 999px;

    font-weight: 700;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #ffffff;
    background: var(--green-main);

    box-shadow: 0 8px 20px rgba(47, 125, 50, 0.22);
}

.button-secondary {
    border: 1px solid #cfcfcf;
    background: #ffffff;
}

.hero-visual {
    min-height: 430px;
}

.hero-image {
    display: block;
    width: 100%;
    height: 430px;

    object-fit: cover;
    object-position: center;

    border-radius: 28px;
    box-shadow: var(--shadow);
}

/* ========================================
   Common Section
======================================== */

.section {
    padding: 100px 0;
}

.section h2 {
    margin: 6px 0 16px;

    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.35;
}

.section-intro {
    max-width: 760px;

    margin: 0 0 44px;

    color: var(--text-sub);

    font-size: 17px;
}

.card {
    border: 1px solid var(--border);
    border-radius: 20px;

    padding: 26px;

    background: #ffffff;

    box-shadow: var(--shadow);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 12px;

    font-size: 21px;
}

.card p {
    margin-bottom: 0;

    color: var(--text-sub);
}


/* ========================================
   Apps
======================================== */

.apps-section {
    background: var(--green-pale);
}
.featured-app-heading {
    margin-bottom: 20px;
}

/* ----------------------------------------
   主力アプリ
---------------------------------------- */

.featured-apps {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 30px;

    margin-top: 44px;
}

.featured-app-card {
    display: flex;
    flex-direction: column;

    padding: 30px;
}

.featured-app-media {
    margin-bottom: 26px;
}

.featured-app-content {
    flex: 1;
}

.app-category {
    margin: 0 0 6px !important;

    color: var(--green-main) !important;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.featured-app-card h3 {
    margin: 0 0 16px;

    font-size: 26px;
    line-height: 1.4;
}

.featured-app-card p {
    margin-top: 0;
    margin-bottom: 14px;

    line-height: 1.9;
}


/* ----------------------------------------
   仮画像
   後でiPhoneモックやPDF画像へ差し替える
---------------------------------------- */

.image-placeholder {
    min-height: 300px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    color: #6b7d6d;

    font-weight: 700;

    background:
        linear-gradient(
            135deg,
            #f4f4f4,
            #e8efe9
        );
}


/* ----------------------------------------
   土質ボーリング柱状図
   iPhone画面 + PDF完成例
---------------------------------------- */

.boring-media {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;

    gap: 16px;
}

.boring-media .image-placeholder {
    min-height: 300px;
}

.pdf-placeholder {
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #edf3ee
        );

    border: 1px solid var(--border);
}

.app-highlight {
    padding: 16px 18px;

    border-left: 4px solid var(--green-main);
    border-radius: 0 10px 10px 0;

    color: var(--green-dark) !important;

    font-weight: 600;

    background: var(--green-light);
}


/* ----------------------------------------
   その他の業務アプリ開発例
---------------------------------------- */

.other-app {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;

    align-items: center;

    gap: 42px;

    margin-top: 42px;
    padding: 34px 38px;

    border: 1px solid var(--border);
    border-radius: 20px;

    background: #ffffff;

    box-shadow: var(--shadow);
}

.other-app-text h3 {
    margin: 4px 0 14px;

    font-size: 24px;
}

.other-app-text p {
    margin-top: 0;
    margin-bottom: 12px;

    color: var(--text-sub);

    line-height: 1.9;
}

.other-app-visual {
    width: 100%;
}

.small-placeholder {
    min-height: 190px;
}
/* ========================================
   Works
======================================== */

.works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 24px;

    margin-top: 40px;
}

.works-grid .card {
    min-height: 220px;
}


/* ========================================
   About
======================================== */

.about-section {
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f4f9f4 100%
        );
}

.about-section .container {
    max-width: 900px;
}

.about-section p {
    font-size: 17px;
}

.text-link {
    display: inline-block;

    margin-top: 18px;

    color: var(--green-main);

    font-weight: 700;
}


/* ========================================
   Contact
======================================== */

.contact-section {
    text-align: center;

    background: var(--green-light);
}

.contact-section .container {
    max-width: 800px;
}

.contact-mail {
    margin-top: 24px;

    color: var(--green-dark);

    font-size: 21px;
    font-weight: 700;
}


/* ========================================
   Footer
======================================== */

.site-footer {
    padding: 46px 0 30px;

    color: #ffffff;
    background: var(--green-dark);
}

.footer-logo {
    margin: 0 0 18px;

    font-size: 24px;
    font-weight: 700;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;

    gap: 24px;

    margin-bottom: 26px;
}

.footer-links a {
    opacity: 0.92;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.copyright {
    margin: 0;

    font-size: 13px;
    opacity: 0.75;
}


/* ========================================
   Tablet
======================================== */

@media (max-width: 700px) {

    .header-inner {
        min-height: 74px;
    }

    .global-nav {
        gap: 16px;

        font-size: 14px;
    }

    .hero {
        padding: 70px 0;
    }

    .hero-inner {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .hero-visual {
        min-height: 320px;
    }

    .hero-image {
        min-height: 320px;
    }

    .featured-apps {
        grid-template-columns: 1fr;
    }

    .boring-media {
        grid-template-columns: 1fr 1fr;
    }

    .other-app {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .small-placeholder {
        min-height: 220px;
    }

    .works-grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* ========================================
   Smartphone
======================================== */

@media (max-width: 520px) {

    .container {
        width: min(100% - 32px, 1200px);
    }

    .site-header {
        position: static;
    }

    .header-inner {
        position: relative;

        min-height: 76px;
        padding: 10px 0;

        flex-direction: row;
        align-items: center;
        justify-content: space-between;

        gap: 20px;
    }

    .site-logo-image {
        width: 120px;
    }

    .site-logo {
        width: 120px;
        height: 62px;
    }

    .site-logo-image {
        width: 120px;
        transform: translateY(0px);
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;

        width: 44px;
        height: 44px;

        padding: 8px;

        border: 0;
        border-radius: 10px;

        background: transparent;

        cursor: pointer;
    }

    .menu-toggle span {
        display: block;

        width: 100%;
        height: 2px;

        border-radius: 999px;

        background: var(--text-main);

        transition:
            transform 0.25s ease,
            opacity 0.25s ease;
    }

    .global-nav {
        position: absolute;

        top: 100%;
        left: 0;

        width: 100%;

        display: none;
        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 8px 16px 16px;

        background: #ffffff;

        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);

        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);

        font-size: 15px;
    }

    .global-nav.is-open {
        display: flex;
    }

    .global-nav a {
        width: 100%;

        padding: 12px 4px;

        border-bottom: 1px solid #eeeeee;
    }

    .global-nav a:last-child {
        border-bottom: 0;
    }

    .global-nav a::after {
        display: none;
    }

    .menu-toggle.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    .hero {
        padding: 46px 0 56px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-text h1 {
        font-size: 34px;
        line-height: 1.4;
        letter-spacing: -0.02em;
    }

    .hero-description {
        font-size: 16px;
        line-height: 1.9;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .button {
        width: 100%;
    }

    .hero-visual {
        min-height: auto;
    }

    .hero-image {
        height: 250px;
        object-fit: cover;
        object-position: center;
    }

    .section {
        padding: 64px 0;
    }

    .section h2 {
        font-size: 32px;
    }

    .section-intro {
        font-size: 16px;
    }


    .works-grid {
        grid-template-columns: 1fr;
    }

    .image-placeholder {
        min-height: 180px;
    }

    .featured-apps {
        grid-template-columns: 1fr;
        gap: 22px;

        margin-top: 30px;
    }

    .featured-app-card {
        padding: 22px;
    }

    .featured-app-card h3 {
        font-size: 23px;
    }

    .image-placeholder {
        min-height: 220px;
    }

    .boring-media {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .boring-media .image-placeholder {
        min-height: 220px;
    }

    .app-highlight {
        padding: 14px 16px;
    }

    .other-app {
        grid-template-columns: 1fr;

        gap: 20px;

        margin-top: 28px;
        padding: 24px 22px;
    }

    .other-app-text h3 {
        font-size: 22px;
    }

    .small-placeholder {
        min-height: 180px;
    }
}

.app-mock-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 24px;
}
.pdf-preview-link {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
    min-height: 300px;

    overflow: hidden;

    border-radius: 18px;
}

.app-pdf-preview {
    display: block;

    width: 100%;
    height: 300px;

    object-fit: contain;

    background: #ffffff;
}

.pdf-preview-caption {
    position: absolute;

    right: 12px;
    bottom: 12px;

    padding: 6px 12px;

    border-radius: 999px;

    color: #ffffff;
    background: rgba(31, 95, 37, 0.88);

    font-size: 12px;
    font-weight: 700;
}

.boring-media .app-mock-image {
    width: 112%;
    max-width: none;
}
.app-store-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 14px;
    padding: 10px 18px;

    border-radius: 999px;

    color: #ffffff;
    background: var(--green-main);

    font-size: 14px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.app-store-link:hover {
    transform: translateY(-2px);
    background: var(--green-dark);
}

/* ========================================
   Privacy Policy
======================================== */

.privacy-header {
    padding: 56px 20px;

    text-align: center;

    color: #ffffff;
    background: var(--green-main);
}

.privacy-header h1 {
    margin: 0;

    font-size: 36px;
}

.privacy-section {
    background: var(--green-pale);
}

.privacy-container {
    max-width: 900px;

    margin: 0 auto;
    padding: 42px 24px;
}

.privacy-container h2 {
    margin-top: 0;
    margin-bottom: 18px;

    font-size: 24px;
}

.privacy-container p {
    margin: 0 0 18px;

    color: var(--text-sub);

    line-height: 1.9;
}

.privacy-container a {
    color: var(--green-main);

    font-weight: 700;
}

.privacy-container a:hover {
    text-decoration: underline;
}

.privacy-back-link {
    margin-top: 34px !important;
}
