:root {
    /* メインカラー */
    --color-primary: #1e3a8a;
    --color-secondary: #1d4ed8;

    /* 背景 */
    --color-background: #f9fafb;

    /* テキスト */
    --color-text-primary: #0B3D91;
    --color-text: #333F57;

    /* ロゴ */
    --color-logo-company: #0B3D91;

    /* ヘッダー */
    --color-header-back: #FFFFFF;
    --color-header-text: #4b5563;

    /* セクション背景 */
    --color-section-odd-back: #eef3ff;
    --color-section-even-back: #ffffff;

    /* フッター */
    --color-footer-back: #111827;
    --color-footer-text: #b1b9c9;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP';
    margin: 0;
    min-height: 100%;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        to bottom,
        var(--color-header-back) 0%,
        var(--color-header-back) 50%,
        var(--color-footer-back) 50%,
        var(--color-footer-back) 100%
    );
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
}

h3 {
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
}

p {
    margin: 0;
}

div {
    padding: 0;
    margin: 0;
}


section {
    padding: 2rem;
}

section > .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}


/* セクション背景色 */
section:nth-of-type(odd) {
    background-color: var(--color-section-odd-back);
}

section:nth-of-type(even) {
    background-color: var(--color-section-even-back);
}


/* セクションタイトル */
.section_header {
    text-align: center;
    margin-bottom: 4rem;
}

.section_header p {
    font-size: 1.125rem;
}

.section_header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section_subtitle {
    font-size: 1.25rem;
    color: var(--color-header-text);
}

nav.nav_section {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-header-back);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);

    white-space: nowrap;
}

.button {
    border-radius: 8px;
    padding: 16px 32px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s;
    height: min-content;

    white-space: nowrap;
}


.back_primary {
    background-color: var(--color-primary);
}

.text_primary {
    color: var(--color-primary);
}

.back_secondary {
    background-color: #0f172a;
}

.text_primary {
    color: var(--color-primary);
}

.text_secondary {
    color: #0f172a;
}

.text_blue {
    color: var(--color-secondary);
}

.text_lightgray {
    color: rgb(209 213 219);
}

.text_date {
    color: #6b7280;
    font-size: 0.875rem;
}

p.center {
    text-align: center;
}



/* ================================================= */
/* タグ */
/* ================================================= */
.flex_col_center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ================================================= */
/* タグ */
/* ================================================= */
.tag {
    background: currentColor;
    color: #fff;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.tag.recipe {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
}

.tag.trivia {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.tag.health {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}


/* ================================================= */
/* ボタン */
/* ================================================= */
.button.primary {
    background: var(--color-primary);
    color: #fff;
}

.button.primary:hover {
    background: var(--color-secondary);
}

.button.secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ================================================= */
/* ナビゲーション */
/* ================================================= */
.nav_container {
    position: relative;
    margin: 0 auto;
    padding: 1rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav_logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-logo-company);
    text-decoration: none;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.nav_logo .logo {
    height: 2.2rem;
    width: 2.2rem;
    background: url('/asset/icon/logo.svg') center/cover no-repeat;
}

/* リンク */
nav .header_nav {
    display: flex;
}

.header_nav .nav_link {
    color: var(--color-header-text);
    text-decoration: none;
    transition: color 0.3s;
    padding: 0 1rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.header_nav .nav_link:hover {
    color: #2563eb;
}

/* ハンバーガー */
.nav_toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* ===== レスポンシブ ===== */
@media (max-width: 1024px) {
    .header_nav {
        position: absolute;
        top: 4rem;
        left: 0;
        width: 100%;
        background: var(--color-header-back);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.4s ease;
        z-index: 100;
    }

    .header_nav.show {
        max-height: max-content;
        opacity: 1;
    }

    .nav_link {
        padding: 16px;
        height: 3rem;
        border-bottom: 1px solid #eee;
    }

    .nav_toggle {
        display: block;
        font-size: 1.5rem;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 101;
        position: relative;
    }
}


/* ================================================= */
/* Footer */
/* ================================================= */
.footer {
    background-color: var(--color-footer-back);
    color: var(--color-footer-text);
    padding: 3rem 0;
    font-family: 'Noto Sans JP', sans-serif;
}

.footer_container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer_nav_wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.footer_nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    font-size: 1.125rem;
}

.footer_nav .nav_link {
    color: var(--color-footer-text);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
}

.footer_nav .nav_link:hover {
    color: #ffffff;
}

.footer_info {
    text-align: center;
}

.footer_company {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.footer_copy {
    font-size: 0.875rem;
}