:root {
    /* Color Palette - Fashionable & Clean */
    --primary-color: #2c3e50;
    /* Dark Slate - Sophisticated */
    --accent-green: #2ecc71;
    /* Habitat Green */
    --accent-blue: #3498db;
    /* Habitat Blue */
    --accent-red: #e74c3c;
    /* Habitat Red */
    --accent-orange: #f39c12;
    /* Habitat Orange */

    --text-color: #4a4a4a;
    --text-light: #888888;
    --bg-color: #fdfdfd;
    /* Almost white */
    --card-bg: #ffffff;
    --border-color: #eaeaea;

    /* Spacing */
    --container-width: 1000px;
    --header-height: 80px;

    /* Shadows - Soft & Airy */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

/* button要素はUAスタイルでfont-familyを継承しない(既定でArial等になる)ため、
   <a>で作った同じ見た目のボタンと字形が食い違って見える。全体で明示的に継承させる。 */
button {
    font-family: inherit;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* --- Accessibility: Visible keyboard focus --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.icon-btn:focus-visible,
.menu-toggle:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    letter-spacing: 0.04em;
}

h3 {
    font-size: 1.3rem;
}

/* Section Title Decoration */
.section-title span {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

/* --- Layout --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Header --- */
.header {
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    transition: box-shadow 0.4s ease, background-color 0.4s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.header-inner {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    /* Adjust based on logo aspect ratio */
    width: auto;
    display: block;
}

.nav-list {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-orange);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.social-icon {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-left: 1rem;
}

.social-icon:hover {
    color: var(--accent-blue);
    transform: translateY(-2px);
}

.btn-login {
    background-color: var(--primary-color);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: var(--shadow-md);
}

.btn-login:hover {
    background-color: #1a252f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* --- Hero Section --- */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes subtitleSlide {
    from {
        opacity: 0;
        letter-spacing: 0.5em;
    }

    to {
        opacity: 1;
        letter-spacing: 0.2em;
    }
}

.hero {
    min-height: 90vh;
    min-height: 90dvh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    letter-spacing: 0.1em;
    font-weight: 800;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: subtitleSlide 1.2s ease-out 0.8s both;
}

/* --- Hero Logos --- */
.hero-logo-main {
    width: 100px;
    height: auto;
    margin-bottom: 0.3rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInScale 1s ease-out 0s both;
}

.hero-subtitle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 3rem;
}

.hero-logo-sub {
    height: 35px;
    width: auto;
    animation: fadeInScale 1s ease-out 0.6s both;
}

.hero-subtitle-wrapper .hero-subtitle {
    margin-bottom: 0;
    line-height: 1;
    display: flex;
    align-items: center;
}

/* --- Sections --- */
section {
    padding: 6rem 0;
}

.bg-white {
    background-color: white;
}

.bg-light {
    background-color: #fafafa;
}

/* Cards */
.info-card,
.activity-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.45s ease;
    border: none;
    overflow: hidden;
}

.info-card {
    padding: 2.5rem;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}


.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.activity-img {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.6s ease;
    overflow: hidden;
}

.activity-card:hover .activity-img {
    transform: scale(1.05);
}

.activity-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.04));
    transition: opacity 0.4s;
}

.activity-content {
    padding: 2rem;
}

.activity-tag {
    display: inline-block;
    background: #f2f0ea;
    color: var(--text-light);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- Contact Form --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

.form-input,
.form-select,
textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #f9f9f9;
    transition: all 0.3s;
}

.form-input:focus,
textarea:focus {
    outline: none;
    background-color: white;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.btn-submit {
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.btn-submit:active {
    transform: translateY(-1px);
}

/* --- Footer --- */
.footer {
    background: var(--primary-color);
    color: #ccc;
    padding: 4rem 0;
    text-align: center;
    border-top: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 1.5rem;
    font-size: 0.9rem;
    position: relative;
    transition: color 0.3s ease;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-links a:hover::after {
    width: 100%;
}

/* --- Dashboard & Admin (Keep functional but clean) --- */
.dashboard-container {
    max-width: 900px;
    margin: 120px auto 60px;
    padding: 0 2rem;
}

.card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    margin-bottom: 2rem;
}

.btn-primary,
.btn-secondary,
.btn-danger {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    line-height: 1.3;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: var(--text-color);
}

.btn-danger {
    background-color: var(--accent-red);
    color: white;
}

/* Event Card Styles */
.welcome-card,
.event-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    margin-bottom: 2rem;
    gap: 2rem;
}

/* Welcome Section Specifics */
.welcome-text {
    flex-shrink: 0;
}

.welcome-label {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.welcome-user {
    font-size: 1.8rem;
    margin: 0;
    line-height: 1.2;
}

/* Header Logout Icon */
.header-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: all 0.3s;
}

.header-logout-btn:hover {
    background-color: var(--accent-red);
    color: white;
    transform: translateY(-2px);
}

/* 2列グリッドで幅を揃える。flex-wrapだと折り返し位置がボタン幅任せになり、
   PCで「2つ/2つ/1つ右寄せ」のような不揃いな並びに見えるため。 */
.welcome-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(170px, 1fr));
    gap: 10px;
    max-width: 420px;
}

/* ボタンが奇数個のとき、最後の1つが片側に孤立しないよう全幅にする（モバイルと同じルール） */
.welcome-actions > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.welcome-actions .btn-primary,
.welcome-actions .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
}

/* Event Info */
.event-info {
    flex: 1;
    min-width: 200px;
}

.event-date {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.event-title-text {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.3;
}

.event-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

/* Icon buttons (edit, archive, copy) */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    color: var(--text-color);
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s;
    gap: 0;
}

.icon-btn span {
    display: none;
}

/* 訪問済みリンクの:visitedはブラウザのUAスタイルが強く効くことがあり、
   同じ.icon-btnでも<a>(編集)だけ<button>(アーカイブ/コピー)と色が食い違って見える。
   実際に訪問済みになりやすい「編集」リンクを名指しで上書きする。 */
a.icon-btn:link,
a.icon-btn:visited {
    color: var(--text-color);
}

.icon-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.event-icons {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
}

.event-actions-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.btn-answer,
.btn-status,
.btn-edit {
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Responsive Styles (Mobile) */
@media (max-width: 768px) {

    .welcome-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 1.2rem;
        gap: 1rem;
    }

    .event-card {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        padding: 1rem 1.2rem;
        gap: 0;
    }

    .event-info {
        margin-bottom: 0.6rem;
    }

    .event-title-text {
        font-size: 1.05rem !important;
        line-height: 1.3;
    }

    .event-date {
        font-size: 0.78rem;
    }

    .welcome-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        max-width: none;
        gap: 0.6rem;
    }

    /* ボタンが奇数個のとき、最後の1つが片側に孤立して空白ができるのを防ぐため全幅にする */
    .welcome-actions > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .event-actions-wrap {
        flex-direction: column;
        gap: 0;
    }

    .event-actions {
        display: flex !important;
        flex-direction: row !important;
        width: 100%;
        gap: 8px;
    }

    .btn-answer,
    .btn-status {
        flex: 1 !important;
        width: auto !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0.5rem 0.5rem;
        font-size: 0.82rem;
        border-radius: 10px;
    }

    .event-icons {
        display: flex;
        justify-content: center;
        gap: 0;
        margin-top: 8px;
    }

    .icon-btn {
        width: auto;
        height: auto;
        border-radius: 0;
        background: none;
        padding: 6px 12px;
        font-size: 0.72rem;
        gap: 4px;
        color: #888;
    }

    a.icon-btn:link,
    a.icon-btn:visited {
        color: #888;
    }

    .icon-btn:hover {
        background: none;
        color: var(--primary-color);
        transform: none;
    }

    .icon-btn span {
        display: inline;
    }

    .icon-btn i {
        font-size: 0.72rem;
    }

    /* Dividers between icon buttons */
    .event-icons .icon-btn+.icon-btn,
    .event-icons .icon-btn+form .icon-btn,
    .event-icons form+.icon-btn,
    .event-icons form+form .icon-btn {
        border-left: 1px solid #e0e0e0;
    }

    .welcome-actions .btn-primary,
    .welcome-actions .btn-secondary {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        text-align: center;
        margin: 0;
        padding: 0.65rem 0.4rem;
        font-size: 0.76rem;
        line-height: 1.2;
        white-space: nowrap;
        box-sizing: border-box;
    }

    .welcome-user {
        font-size: 1.5rem;
    }

    .welcome-label {
        font-size: 0.8rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        padding: 0 1.5rem;
        position: relative;
    }

    .nav-list {
        display: none;
    }

    /* Mobile menu needed later */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--primary-color);
        margin: 5px 0;
        transition: all 0.3s;
    }

    /* Hamburger Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        height: 100dvh;
        background-color: rgba(255, 255, 255, 0.98);
        padding-top: 100px;
        /* 閉じている間は visibility:hidden にして、画面外のリンクにTab/スクリーンリーダーが届かないようにする */
        visibility: hidden;
        transition: right 0.4s ease, visibility 0s linear 0.4s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        gap: 2rem;
    }

    .nav-list.nav-open {
        right: 0;
        visibility: visible;
        transition: right 0.4s ease, visibility 0s;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }
}

/* Hide toggle on desktop */
.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
}

/* --- Page Hero --- */
.page-hero {
    height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 4rem;
    padding-top: var(--header-height);
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* --- Content Sections --- */

.lead-text {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-color);
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: #f8f9fa;
}

/* Three Pillars */

/* --- Domestic Page Specifics --- */

/* Modern Vertical Timeline */

/* Connectors */

/* Responsive Timeline */

/* Horizontal Card Tweaks */

/* Center alignment helper */
.text-center {
    text-align: center;
}

/* Sub-section titles (like Trash Picking, Agri) */

/* Reason Grid */

.reason-num {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(46, 204, 113, 0.2);
    position: absolute;
    top: 10px;
    right: 20px;
}

/* Reason Grid Centered */

/* Horizontal Timeline */

/* Mobile Timeline (Vertical) */

/* Horizontal Card for Domestic Page */

/* Mobile Timeline (Vertical) */

.history-year-group {
    margin-bottom: 3rem;
    position: relative;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.history-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.history-info {
    padding: 1rem;
}

.history-team {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 700;
}

/* FAQ */

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.faq-q {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}

.faq-a {
    padding-left: 2rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }

    .page-hero {
        height: 50vh;
    }
}

/* ==============================
   Scroll Fade-In Animation
   ============================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger children delays */
.stagger-children>*:nth-child(1) {
    transition-delay: 0s;
}

.stagger-children>*:nth-child(2) {
    transition-delay: 0.12s;
}

.stagger-children>*:nth-child(3) {
    transition-delay: 0.24s;
}

.stagger-children>*:nth-child(4) {
    transition-delay: 0.36s;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* ==============================
   Reduced Motion Preference
   ============================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .section-title span::after {
        animation: none;
    }

    .fade-in,
    .fade-in-left,
    .fade-in-right {
        opacity: 1;
        transform: none;
        transition: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
/* 本文へスキップ（キーボード利用者向け。フォーカス時のみ表示） */
.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 2000;
    background: #1a1a1a; color: #fff; padding: .6rem 1rem; border-radius: 6px;
    font-size: .9rem; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 1rem; outline: 2px solid #fff; outline-offset: 2px; }


/* ロゴにマウスを乗せると、ちょこっと揺れる（遊び心。reduced-motion では無効） */
@keyframes logo-wiggle {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(-8deg) scale(1.04); }
    45% { transform: rotate(7deg) scale(1.04); }
    70% { transform: rotate(-3deg); }
}
.logo img { transform-origin: 50% 70%; }
.logo:hover img { animation: logo-wiggle .7s ease; }
@media (prefers-reduced-motion: reduce) { .logo:hover img { animation: none; } }
