/* 自家製パン手帖 — 小麦色＋深緑（濃紺星空・セピア古道具と差別化） */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --wheat: #fff8f0;
    --wheat2: #f3e8d8;
    --crust: #c49a6c;
    --crust-deep: #a67c4a;
    --leaf: #2d4a3e;
    --leaf-light: #3d6b58;
    --ink: #2a241c;
    --muted: #6b5d4a;
    --line: rgba(45, 74, 62, 0.12);
    --radius-lg: 28px;
    --radius: 16px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: "Noto Sans JP", system-ui, sans-serif;
    background: var(--wheat);
    color: var(--ink);
    line-height: 1.8;
    font-size: 16px;
}

h1, h2, h3 {
    font-family: "Kosugi Maru", "Noto Sans JP", sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
}

a { color: var(--leaf); text-decoration: none; font-weight: 500; }
a:hover { color: var(--leaf-light); }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 1.25rem; }

/* フローティング丸ナビ */
.float-nav {
    position: sticky;
    top: 0.75rem;
    z-index: 300;
    margin: 0 auto 1rem;
    max-width: calc(1000px + 2.5rem);
    padding: 0 1.25rem;
}
.float-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(255, 248, 240, 0.94);
    backdrop-filter: blur(12px);
    border-radius: 999px;
    padding: 0.55rem 1rem 0.55rem 1.25rem;
    box-shadow: 0 8px 32px rgba(42, 36, 28, 0.08);
    border: 1px solid var(--line);
    flex-wrap: wrap;
}
.float-nav__brand {
    font-family: "Kosugi Maru", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
}
.float-nav__brand small { display: block; font-size: 0.65rem; color: var(--muted); font-weight: 400; }

.float-nav__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem;
    align-items: center;
}
.float-nav__a {
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    color: var(--muted);
    border-radius: 999px;
}
.float-nav__a:hover { background: var(--wheat2); color: var(--ink); }
.float-nav__a.is-on { background: var(--leaf); color: #fff; }

.float-nav__toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--wheat2);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.float-nav__toggle span { display: block; width: 18px; height: 2px; background: var(--leaf); }

@media (max-width: 900px) {
    .float-nav__toggle { display: flex; }
    .float-nav__links {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 0.5rem 0 0;
    }
    .float-nav__links.is-open { display: flex; }
    .float-nav__inner { border-radius: 22px; }
}

.hero {
    position: relative;
    border-radius: var(--radius-lg);
    margin: 0 1.25rem 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    min-height: 44vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(42, 36, 28, 0.12);
}
.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(45, 74, 62, 0.55) 0%, rgba(255, 248, 240, 0.75) 100%);
}
.hero__inner { position: relative; padding: 2.25rem 1.75rem 2.5rem; }
.hero__tag { font-size: 0.72rem; letter-spacing: 0.2em; color: #fff; opacity: 0.95; margin-bottom: 0.5rem; }
.hero__h1 { font-size: clamp(1.45rem, 3.2vw, 2rem); color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.2); margin-bottom: 0.65rem; }
.hero__lead { max-width: 46ch; font-size: 0.92rem; color: rgba(255,255,255,0.95); }

.content { padding: 0 0 3.5rem; }

.section__h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--leaf);
}

.pill-grid {
    display: grid;
    gap: 1.1rem;
}
@media (min-width: 700px) {
    .pill-grid { grid-template-columns: repeat(3, 1fr); }
}

.pill-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.pill-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 18px 40px rgba(45, 74, 62, 0.12);
}
.pill-card__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.pill-card__body { padding: 1rem 1.1rem 1.2rem; }
.pill-card__h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.pill-card__p { font-size: 0.86rem; color: var(--muted); }

.article p { margin-bottom: 1rem; }
.article ul { margin: 0 0 1rem 1.2rem; }

.timer-panel {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--wheat2) 0%, #fff 100%);
    border-radius: var(--radius);
    border: 2px dashed var(--crust);
    text-align: center;
}
.timer-panel__display {
    font-family: "Kosugi Maru", monospace;
    font-size: 2rem;
    color: var(--leaf);
    margin: 0.75rem 0;
}
.timer-panel__btn {
    margin: 0.35rem;
    padding: 0.55rem 1.2rem;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.88rem;
    cursor: pointer;
    background: var(--leaf);
    color: #fff;
    transition: background 0.2s, transform 0.15s;
}
.timer-panel__btn:hover { background: var(--leaf-light); }
.timer-panel__btn:active { transform: scale(0.97); }
.timer-panel__btn.secondary { background: var(--crust); color: #fff; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.65rem;
}
.gallery-grid button {
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    border: 2px solid var(--line);
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(42, 36, 28, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: min(880px, 100%); max-height: 85vh; border-radius: var(--radius); }
.lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--crust);
    color: #fff;
    font-size: 1.35rem;
    cursor: pointer;
}

.contact-box {
    background: #fff;
    padding: 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.site-ft {
    border-top: 1px solid var(--line);
    padding: 1.5rem;
    font-size: 0.78rem;
    color: var(--muted);
    text-align: center;
}

.to-top {
    position: fixed;
    bottom: 1.2rem;
    right: 1.2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--crust);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 250;
    font-size: 1.1rem;
}
.to-top.is-visible { opacity: 1; visibility: visible; }

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s var(--ease), transform 0.55s;
}
.reveal.is-inview { opacity: 1; transform: none; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 400;
    padding: 0.5rem 1rem;
    background: var(--leaf);
    color: #fff;
    border-radius: 8px;
}
