/* ===== 丸美屋農園 共通CSS ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --green-dark:   #2d5a27;
    --green-mid:    #4a7c42;
    --green-light:  #7db96e;
    --cream:        #fdf8f0;
    --warm-white:   #ffffff;
    --text-dark:    #1e2e1a;
    --text-mid:     #4a5e44;
    --text-light:   #7a8e74;
    --accent-peach: #e8825a;
    --accent-grape: #7c4daa;
    --accent-apple: #c0392b;
    --border:       #dde8d8;
    --shadow-sm:    0 2px 8px rgba(0,0,0,0.07);
    --shadow-md:    0 4px 18px rgba(0,0,0,0.11);
    --radius:       14px;
}

body {
    font-family: 'Hiragino Sans', 'Meiryo', 'Arial', sans-serif;
    line-height: 1.75;
    color: var(--text-dark);
    background: var(--cream);
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
header {
    background: var(--green-dark);
    color: white;
    padding: 0.9rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

.logo { font-size: 1.2rem; font-weight: 700; letter-spacing: 0.03em; white-space: nowrap; text-decoration: none; color: white; }
.logo span { color: var(--green-light); }

.nav-links { display: flex; gap: 0.3rem; flex-wrap: wrap; justify-content: flex-end; }

.nav-link {
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    font-size: 0.84rem;
    padding: 0.38rem 0.8rem;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,0.16); color: white; }

/* ===== FOOTER ===== */
footer {
    background: #111;
    color: rgba(255,255,255,0.48);
    text-align: center;
    padding: 2.2rem 0;
    font-size: 0.8rem;
    margin-top: 0;
}
footer a { color: rgba(255,255,255,0.58); text-decoration: none; }
footer a:hover { color: white; }

.footer-links { display: flex; justify-content: center; gap: 1.4rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
.unsplash-credit { font-size: 0.7rem; color: rgba(255,255,255,0.28); margin-top: 0.45rem; }

/* ===== SECTION ===== */
.section { padding: 4rem 0; }
.section-alt { background: white; }

.section-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.75rem;
}
.section-header h2 { font-size: 1.55rem; font-weight: 700; }
.section-label { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-light); font-weight: 600; }

/* ===== CARDS ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform 0.22s, box-shadow 0.22s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.card-img { width: 100%; height: 190px; object-fit: cover; display: block; }

.card-body { padding: 1.15rem 1.35rem 1.35rem; }

.card-tag {
    display: inline-block;
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 0.18rem 0.6rem; border-radius: 12px; margin-bottom: 0.55rem;
}
.tag-peach  { background: #fde8de; color: var(--accent-peach); }
.tag-grape  { background: #ece0f4; color: var(--accent-grape); }
.tag-apple  { background: #fde0de; color: var(--accent-apple); }
.tag-limited { background: #f0f7e8; color: var(--green-mid); }

.card-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.45rem; }
.card-body p  { font-size: 0.86rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 0.85rem; }

.card-meta { font-size: 0.76rem; color: var(--text-light); display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 0.85rem; }

.btn {
    display: inline-block;
    font-size: 0.82rem; font-weight: 600;
    padding: 0.38rem 1rem; border-radius: 20px;
    text-decoration: none; transition: background 0.2s, color 0.2s;
    border: 1.5px solid currentColor;
}
.btn-green  { color: var(--green-mid); }
.btn-green:hover  { background: var(--green-mid);  color: white; }
.btn-peach  { color: var(--accent-peach); }
.btn-peach:hover  { background: var(--accent-peach); color: white; }
.btn-grape  { color: var(--accent-grape); }
.btn-grape:hover  { background: var(--accent-grape); color: white; }
.btn-apple  { color: var(--accent-apple); }
.btn-apple:hover  { background: var(--accent-apple); color: white; }

/* ===== SEASON BANNER ===== */
.season-banner {
    background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
    color: white; padding: 1.3rem 1.8rem; border-radius: 12px;
    margin-bottom: 2rem; display: flex; align-items: center; gap: 1.1rem;
}
.season-banner .icon { font-size: 1.9rem; flex-shrink: 0; }
.season-banner h3 { font-size: 0.97rem; font-weight: 700; margin-bottom: 0.18rem; }
.season-banner p  { font-size: 0.85rem; opacity: 0.83; }

/* ===== PAGE HERO ===== */
.page-hero {
    position: relative; min-height: 260px;
    display: flex; align-items: flex-end;
    overflow: hidden; background: var(--green-dark);
}
.page-hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0.38;
}
.page-hero-content {
    position: relative; z-index: 1;
    color: white; padding: 2.5rem 0;
}
.page-hero-eyebrow {
    font-size: 0.78rem; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--green-light); margin-bottom: 0.5rem;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.2; }
.page-hero p  { font-size: 1rem; color: rgba(255,255,255,0.78); margin-top: 0.6rem; max-width: 520px; }

/* ===== BACK LINK ===== */
.back-link {
    display: inline-block; font-size: 0.85rem; font-weight: 600;
    color: var(--green-mid); text-decoration: none;
    border: 1.5px solid var(--green-mid); padding: 0.4rem 1rem;
    border-radius: 22px; margin-bottom: 2rem;
    transition: background 0.2s, color 0.2s;
}
.back-link:hover { background: var(--green-mid); color: white; }

/* ===== VARIETY DETAIL ===== */
.variety-detail {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 2.5rem; align-items: start;
    background: white; border-radius: var(--radius);
    padding: 2rem; border: 1px solid var(--border);
    box-shadow: var(--shadow-sm); margin-bottom: 2rem;
}
.variety-detail:nth-child(even) { direction: rtl; }
.variety-detail:nth-child(even) > * { direction: ltr; }

.variety-detail img {
    width: 100%; border-radius: 10px;
    aspect-ratio: 4/3; object-fit: cover;
}
.variety-detail h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.3rem; }
.variety-detail .sub { font-size: 0.82rem; color: var(--text-light); margin-bottom: 0.9rem; }
.variety-detail p { font-size: 0.9rem; color: var(--text-mid); margin-bottom: 0.8rem; }

.detail-list { list-style: none; font-size: 0.86rem; }
.detail-list li { padding: 0.3rem 0; border-bottom: 1px dotted var(--border); color: var(--text-mid); }
.detail-list li:last-child { border-bottom: none; }
.detail-list strong { color: var(--text-dark); margin-right: 0.5em; }

/* ===== INFO BOX ===== */
.info-box {
    background: #f0f7e8; border: 1px solid #c8e0b0;
    border-radius: 10px; padding: 1rem 1.3rem;
    font-size: 0.87rem; color: var(--text-mid);
    margin-bottom: 1.5rem; display: flex; gap: 0.7rem; align-items: flex-start;
}
.info-box .ni { font-size: 1.2rem; flex-shrink: 0; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 1rem; }

details {
    background: white; border: 1px solid var(--border);
    border-radius: 10px; overflow: hidden;
}
details[open] summary { border-bottom: 1px solid var(--border); }
summary {
    padding: 1rem 1.3rem; font-size: 0.93rem; font-weight: 700;
    cursor: pointer; list-style: none; display: flex;
    justify-content: space-between; align-items: center;
    color: var(--text-dark);
}
summary::after { content: '＋'; color: var(--green-mid); font-size: 1.1rem; }
details[open] summary::after { content: '－'; }
.faq-answer { padding: 1rem 1.3rem; font-size: 0.88rem; color: var(--text-mid); line-height: 1.8; }

/* ===== CALENDAR ===== */
.calendar-wrap { overflow-x: auto; }
.calendar-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.83rem; }
.calendar-table th, .calendar-table td {
    border: 1px solid var(--border); padding: 0.5rem 0.4rem; text-align: center;
}
.calendar-table th { background: var(--green-dark); color: white; font-weight: 600; }
.calendar-table td:first-child { text-align: left; font-weight: 600; padding-left: 0.8rem; background: #f8fbf5; white-space: nowrap; }
.cal-peak { background: #4a7c42; color: white; border-radius: 4px; font-size: 0.75rem; }
.cal-early { background: #a8d498; color: #1e2e1a; border-radius: 4px; font-size: 0.75rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .variety-detail { grid-template-columns: 1fr; direction: ltr; }
    .variety-detail:nth-child(even) { direction: ltr; }
    .card-grid { grid-template-columns: 1fr; }
    .season-banner { flex-direction: column; gap: 0.5rem; text-align: center; }
}
@media (max-width: 480px) {
    .logo { font-size: 1rem; }
    .nav-link { font-size: 0.78rem; padding: 0.3rem 0.55rem; }
    .section { padding: 2.5rem 0; }
}
