:root {
    --brown-dark: #4f2f1f;
    --brown: #795036;
    --cream: #fbf7f1;
    --cream-dark: #f2e7da;
    --text: #3b2a20;
    --sub-text: #6f5b4d;
    --white: #ffffff;
    --line: rgba(121, 80, 54, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Hiragino Sans",
        "Yu Gothic",
        sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
}

img {
    display: block;
    max-width: 100%;
}

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

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

/* ヘッダー */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(79, 47, 31, 0.08);
    backdrop-filter: blur(12px);
}

header .container {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    width: 165px;
    height: auto;
}

nav {
    display: flex;
    align-items: center;
    gap: 34px;
    font-size: 15px;
    font-weight: 700;
}

nav a {
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--brown);
}

/* トップ */

.hero {
    overflow: hidden;
    background-image:
        linear-gradient(
            90deg,
            rgba(66, 38, 20, 0.93) 0%,
            rgba(66, 38, 20, 0.74) 45%,
            rgba(66, 38, 20, 0.12) 100%
        ),
        url("images/hero-food.png");
    background-size: cover;
    background-position: center;
}

.hero-content {
    min-height: 700px;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(280px, 0.72fr);
    align-items: center;
    gap: 50px;
}

.hero-text {
    padding: 70px 0;
    color: var(--white);
}

.hero-text h1 {
    margin: 0 0 24px;
    font-size: clamp(40px, 5vw, 66px);
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.hero-text p {
    max-width: 620px;
    margin: 0 0 32px;
    font-size: 18px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.93);
}

.app-button {
    display: inline-flex;
    align-items: center;
    min-height: 58px;
    padding: 13px 22px;
    border-radius: 12px;
    background: #080808;
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.app-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
}

.hero-image {
    align-self: end;
    display: flex;
    justify-content: center;
    padding-top: 46px;
}

.hero-image img {
    width: min(380px, 100%);
    border: 9px solid #161616;
    border-bottom: 0;
    border-radius: 48px 48px 0 0;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

/* 機能紹介 */

#features {
    min-height: 200px;
    padding: 86px 0 96px;
    background: var(--cream);
}

.features-container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.features-heading {
    margin-bottom: 46px;
    text-align: center;
}

.features-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(30px, 4vw, 44px);
}

.features-heading p {
    margin: 0;
    color: var(--sub-text);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.5);
}

.feature-card {
    min-height: 230px;
    padding: 30px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.feature-icon {
    width: 62px;
    height: 62px;
    margin-bottom: 20px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: var(--cream-dark);
    color: var(--brown-dark);
    font-size: 14px;
    font-weight: 800;
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 21px;
}

.feature-card p {
    margin: 0;
    color: var(--sub-text);
    font-size: 15px;
}

footer {
    padding: 54px 20px 40px;
    text-align: center;
    color: var(--white);
    background: linear-gradient(135deg, #4f2f1f, #795036);
}

.footer-logo {
    width: 155px;
    margin: 0 auto 20px;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin: 22px 0;
    font-size: 14px;
}

.copyright {
    color: rgba(255,255,255,0.72);
    font-size: 13px;
}

/* スマホ・タブレット */

@media (max-width: 900px) {
    nav {
        gap: 18px;
        font-size: 13px;
    }

    .hero-content {
        min-height: 610px;
        grid-template-columns:
            minmax(0, 1.05fr)
            minmax(220px, 0.65fr);
        gap: 20px;
    }

    .hero-text h1 {
        font-size: clamp(34px, 6vw, 52px);
    }

    .hero-text p {
        font-size: 15px;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    header .container {
        min-height: 70px;
    }

    .logo {
        width: 135px;
    }

    nav {
        gap: 10px;
        font-size: 10px;
    }

    nav a:nth-child(2) {
        display: none;
    }

    .hero {
        background-position: 62% center;
    }

    .hero-content {
        min-height: auto;
        grid-template-columns:
            minmax(0, 1fr)
            minmax(120px, 0.55fr);
        gap: 10px;
        align-items: end;
    }

    .hero-text {
        padding: 52px 0 60px;
    }

    .hero-text h1 {
        margin-bottom: 16px;
        font-size: clamp(28px, 8vw, 40px);
    }

    .hero-text p {
        margin-bottom: 22px;
        font-size: 12px;
        line-height: 1.8;
    }

    .app-button {
        min-height: 48px;
        padding: 10px 14px;
        font-size: 12px;
    }

    .hero-image {
        padding-top: 42px;
    }

    .hero-image img {
        width: min(180px, 100%);
        border-width: 5px;
        border-radius: 28px 28px 0 0;
    }
}