/*
Theme Name: 食卓家族
Theme URI: https://tabefam.com/
Author: 食卓家族編集部
Description: 食卓家族専用軽量テーマ
Version: 0.1.0
Text Domain: tabefam
*/

:root {
    --tf-bg: #ffffff;
    --tf-text: #222222;
    --tf-muted: #666666;
    --tf-border: #dedede;
    --tf-accent: #e9652c;
    --tf-accent-dark: #bb4519;
    --tf-soft: #fff6ef;
    --tf-max: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--tf-bg);
    color: var(--tf-text);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Helvetica Neue",
        "Hiragino Kaku Gothic ProN",
        "Yu Gothic",
        Meiryo,
        sans-serif;
    font-size: 18px;
    line-height: 1.8;
}

a {
    color: inherit;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.tf-container {
    width: min(calc(100% - 32px), var(--tf-max));
    margin-inline: auto;
}

.tf-header {
    background: #fff;
    border-bottom: 1px solid var(--tf-border);
}

.tf-header__inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.tf-logo {
    text-decoration: none;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .02em;
}

.tf-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.tf-nav a {
    text-decoration: none;
    font-weight: 700;
}

.tf-main {
    min-height: 65vh;
}

.tf-hero {
    padding: 58px 0 48px;
    text-align: center;
}

.tf-hero__eyebrow {
    margin: 0 0 10px;
    color: var(--tf-accent-dark);
    font-weight: 800;
}

.tf-hero h1 {
    max-width: 820px;
    margin: 0 auto 22px;
    font-size: clamp(34px, 7vw, 58px);
    line-height: 1.3;
    letter-spacing: .01em;
}

.tf-hero__lead {
    max-width: 700px;
    margin: 0 auto 28px;
    font-size: clamp(20px, 4vw, 25px);
    font-weight: 700;
    line-height: 1.65;
}

.tf-button {
    display: inline-flex;
    min-height: 64px;
    padding: 14px 30px;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--tf-accent);
    border-radius: 14px;
    background: var(--tf-accent);
    color: #fff;
    text-decoration: none;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.35;
    box-shadow: 0 4px 0 rgba(0,0,0,.12);
}

.tf-button:hover,
.tf-button:focus-visible {
    background: var(--tf-accent-dark);
    border-color: var(--tf-accent-dark);
}

.tf-note {
    margin: 12px 0 0;
    color: var(--tf-muted);
    font-size: 16px;
    font-weight: 700;
}

.tf-section {
    padding: 48px 0;
}

.tf-section--soft {
    background: var(--tf-soft);
}

.tf-section h2 {
    margin: 0;
    text-align: center;
    font-size: clamp(28px, 5vw, 38px);
    line-height: 1.4;
}

.tf-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 860px;
    margin: 30px auto 0;
}

.tf-choice {
    display: block;
    min-height: 180px;
    padding: 28px 20px;
    border: 3px solid var(--tf-border);
    border-radius: 18px;
    background: #fff;
    text-align: center;
    text-decoration: none;
}

.tf-choice:hover,
.tf-choice:focus-visible {
    border-color: var(--tf-accent);
}

.tf-choice__icon {
    display: block;
    margin-bottom: 14px;
    font-size: 50px;
    line-height: 1;
}

.tf-choice__title {
    display: block;
    font-size: 25px;
    font-weight: 900;
}

.tf-choice__sub {
    display: block;
    margin-top: 6px;
    color: var(--tf-muted);
    font-size: 16px;
}

.tf-purpose-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.tf-purpose {
    padding: 24px 12px;
    border: 2px solid var(--tf-border);
    border-radius: 16px;
    background: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 20px;
    font-weight: 900;
}

.tf-purpose span {
    display: block;
    margin-bottom: 6px;
    font-size: 40px;
    line-height: 1.2;
}

.tf-content {
    max-width: 820px;
    margin-inline: auto;
}

.tf-content h1 {
    font-size: clamp(32px, 6vw, 46px);
    line-height: 1.4;
}

.tf-footer {
    padding: 36px 0;
    border-top: 1px solid var(--tf-border);
    color: var(--tf-muted);
    font-size: 15px;
}

@media (max-width: 720px) {
    body {
        font-size: 18px;
    }

    .tf-header__inner {
        min-height: 64px;
    }

    .tf-logo {
        font-size: 24px;
    }

    .tf-nav {
        display: none;
    }

    .tf-hero {
        padding: 40px 0 36px;
    }

    .tf-button {
        width: 100%;
        min-height: 66px;
    }

    .tf-choice-grid {
        grid-template-columns: 1fr;
    }

    .tf-choice {
        min-height: 150px;
    }

    .tf-purpose-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
