/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'NotoSansJP_400Regular', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
}

:root {
    --primary-color: #3d5a40;
    --primary-light: #588157;
    --primary-dark: #2d4a2e;
    --secondary-color: #a68a64;
    --accent-color: #c1666b;
    --text-dark: #333333;
    --text-light: #6b6b6b;
    --bg-light: #faf8f3;
    --bg-white: #ffffff;
    --border-color: #d4cfc4;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}

/* Header */
.header {
    background-color: #1a3a2a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f5f0e8;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: none;
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
}

.logo:hover {
    color: #ffffff;
}

.nav {
    display: none;
    gap: 2rem;
    align-items: center;
    color: rgba(255, 255, 255, 0.75);
}

.nav a,
.nav button {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.nav a:hover,
.nav button:hover {
    color: #ffffff;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #f5f0e8;
    transition: all 0.3s;
}

.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);
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.hero-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.cta-button {
    background-color: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.cta-button.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Current Status */
.current-status {
    padding: 2rem 0;
    background-color: var(--bg-light);
}

.status-card {
    background-color: var(--bg-white);
    border-radius: 4px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-icon {
    font-size: 2rem;
    text-align: center;
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.status-info h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.status-date {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.countdown {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    justify-content: center;
}

.countdown-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-color);
}

.countdown-label {
    font-size: 1rem;
    color: var(--text-light);
}

.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    font-size: 0.85rem;
}

.status-pending {
    background-color: #e3f2fd;
    color: #1976d2;
}

/* Features Section */
.features {
    padding: 3rem 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.section-subtitle {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-card {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* How To Use Section */
.how-to-use {
    padding: 3rem 0;
    background-color: var(--bg-white);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.step-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-4px);
}

.step-icon {
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.landing-step-label {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.step-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Timeline Section */
.timeline-section {
    padding: 3rem 0;
    background-color: var(--bg-light);
}

.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline-item {
    position: relative;
    padding: 0 0 2rem 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 20px;
    bottom: -10px;
    width: 1px;
    background-color: var(--border-color);
}

.timeline-item:last-child::before {
    display: none;
}

.landing-timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: 2px solid var(--bg-white);
}

.timeline-item.active .landing-timeline-marker {
    background-color: var(--accent-color);
}

.landing-timeline-content {
    background-color: var(--bg-white);
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.timeline-item.active .landing-timeline-content {
    border-left: 3px solid var(--accent-color);
}

.landing-timeline-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.landing-timeline-content h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
    font-weight: 600;
}

.landing-timeline-content p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Status Management */
.status-management {
    padding: 3rem 0;
}

.status-flow {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.status-step {
    background-color: var(--bg-white);
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-align: center;
    width: 100%;
    max-width: 180px;
}

.status-step.current {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 auto 0.75rem;
}

.status-step.current .step-number {
    background-color: white;
    color: var(--primary-color);
}

.landing-status-step-label {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.step-desc {
    font-size: 0.8rem;
}

.status-arrow {
    font-size: 1.5rem;
    color: var(--border-color);
    transform: rotate(90deg);
}

/* About Section */
.about {
    padding: 3rem 0;
    background-color: var(--bg-light);
}

.about-content {
    max-width: 800px;
}

.about-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text-dark);
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.cta-section p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-content > .footer-section:first-child {
    grid-column: 1 / -1;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-section p {
    font-size: 0.85rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.25rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.85rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.8rem;
}

/* Small Phone */
@media (max-width: 479px) {
    .container {
        padding: 6px 16px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .about-content br {
        display: none;
    }
}

/* Mobile Navigation */
@media (max-width: 767px) {
    .nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #1a3a2a;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        gap: 1rem;
    }
}

/* Status Badge Styles */
.status-active {
    background-color: #c8e6c9;
    color: #2e7d32;
}

.status-submitted {
    background-color: #fff9c4;
    color: #f57f17;
}

.status-completed {
    background-color: #e1bee7;
    color: #6a1b9a;
}

/* Icon Adjustments */
.check-icon svg {
    color: white;
}

/* Responsive Design - Tablet */
@media (min-width: 768px) {
    .nav {
        display: flex;
    }

    .menu-toggle {
        display: none;
    }

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

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .status-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .status-info {
        flex: 1;
        text-align: left;
    }

    .countdown {
        justify-content: flex-start;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .status-flow {
        flex-direction: row;
        justify-content: center;
    }

    .status-arrow {
        transform: rotate(0deg);
    }

    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .footer-content > .footer-section:first-child {
        grid-column: auto;
    }

    .footer-section h3,
    .footer-section h4 {
        margin-bottom: 1rem;
        font-size: revert;
    }

    .footer-section p,
    .footer-section a {
        font-size: revert;
    }

    .footer-section ul li {
        margin-bottom: 0.5rem;
    }

    .footer-bottom {
        padding-top: 2rem;
        font-size: revert;
    }
}

/* Responsive Design - Desktop */
@media (min-width: 1024px) {
    .hero {
        padding: 4rem 0;
    }

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

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .section-title {
        font-size: 1.6rem;
    }

    .timeline-item {
        padding-left: 2.5rem;
    }
}


/* Calendar Styles */
.calendar {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.5rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.calendar-nav-btn {
    background: none;
    border: 1px solid var(--border-color);
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.calendar-nav-btn:hover {
    background-color: var(--bg-light);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 4px;
}

.calendar-weekday {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    padding: 0.5rem 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.calendar-cell.empty {
    background-color: transparent;
}

.calendar-cell.today {
    font-weight: 700;
    color: var(--primary-color);
}

.calendar-cell.today .day-number {
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-cell.highlight {
    background-color: rgba(193, 102, 107, 0.15);
}

.calendar-cell.highlight-start {
    border-left: 3px solid var(--accent-color);
}

.calendar-cell.highlight-end {
    border-right: 3px solid var(--accent-color);
}

.calendar-cell.renewal-date {
    background-color: rgba(61, 90, 64, 0.15);
    font-weight: 600;
}

.day-number {
    display: block;
}

.calendar-legend {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

.legend-color.highlight-color {
    background-color: rgba(193, 102, 107, 0.3);
    border: 2px solid var(--accent-color);
}

.legend-color.renewal-color {
    background-color: rgba(61, 90, 64, 0.3);
}

.legend-text {
    font-size: 0.85rem;
    color: var(--text-light);
}

.legend-color.today-color {
    background-color: #ff6b35;
}

/* Year Calendar */
.year-calendar {
    width: 100%;
}

.year-calendar-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.year-calendar-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
}

.year-calendar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    width: 100%;
}

@media (min-width: 768px) {
    .year-calendar-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .year-calendar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.mini-calendar {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem;
    transition: all 0.2s;
    min-width: 0;
}

.mini-calendar:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.mini-calendar.important {
    border: 2px solid var(--primary-color);
    background-color: white;
}

.mini-calendar.important:hover {
    box-shadow: 0 4px 12px rgba(61, 90, 64, 0.2);
}

.mini-calendar-header {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.mini-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 0.5rem;
}

.mini-calendar-weekday {
    font-size: 0.65rem;
    text-align: center;
    color: var(--text-light);
    padding: 0.25rem 0;
    font-weight: 500;
}

.mini-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.mini-calendar-cell {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    border-radius: 2px;
    color: var(--text-dark);
    min-height: 0;
    min-width: 0;
}

.mini-calendar-cell.empty {
    visibility: hidden;
}

.mini-calendar-cell.today {
    background-color: #ff6b35;
    color: white;
    font-weight: 600;
}

.mini-calendar-cell.highlight {
    background-color: rgba(212, 166, 116, 0.3);
}

.mini-calendar-cell.highlight-start,
.mini-calendar-cell.highlight-end {
    background-color: rgba(212, 166, 116, 0.6);
    font-weight: 600;
}

.mini-calendar-cell.renewal-date {
    background-color: rgba(61, 90, 64, 0.3);
    font-weight: 600;
    position: relative;
}

.mini-calendar-cell.renewal-date::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Common Page Styles */
.page-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.page-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.section-header {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn-danger {
    background-color: #d32f2f;
    color: white;
    border-color: #d32f2f;
}

.btn-danger:hover {
    background-color: #b71c1c;
    border-color: #b71c1c;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Form Styles */
.form-section {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 2rem;
}

.form-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-help {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

/* Register Page */
.register-page {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.register-content {
    max-width: 700px;
    margin: 0 auto;
}

.register-form {
    margin-top: 2rem;
}

/* Dashboard Page */
.dashboard-page {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.dashboard-status-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.status-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
}

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

.period-dates {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .period-dates {
        font-size: 1.5rem;
    }
}

.countdown-large {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
}

.countdown-text {
    font-size: 1rem;
}

@media (min-width: 768px) {
    .countdown-number {
        font-size: 3.5rem;
    }

    .countdown-text {
        font-size: 1.2rem;
    }
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.dashboard-section {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.dashboard-section.full-width {
    grid-column: 1 / -1;
}

.calendar-back-btn {
    margin-bottom: 1.5rem;
}

.dashboard-timeline {
    position: relative;
}

.timeline-today {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.timeline-event {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--bg-light);
    border-left: 3px solid var(--border-color);
    border-radius: 4px;
}

.timeline-event:last-child {
    margin-bottom: 0;
}

.timeline-event.active {
    border-left-color: var(--accent-color);
    background-color: #fff3e0;
}

.dashboard-timeline-marker {
    flex-shrink: 0;
    color: var(--primary-color);
}

.timeline-event.active .dashboard-timeline-marker {
    color: var(--accent-color);
}

.dashboard-timeline-content {
    flex: 1;
    min-width: 0;
}

.dashboard-timeline-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.dashboard-timeline-date {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.dashboard-timeline-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.important-dates-card {
    background-color: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
}

.date-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-item:last-child {
    border-bottom: none;
}

.date-item.highlight {
    background-color: #fff3e0;
}

.date-label {
    font-weight: 500;
    color: var(--text-dark);
}

.date-value {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-star {
    color: #ffa726;
}

.quick-actions {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Application Period Page */
.application-period-page {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.period-header {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ff8a65 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.period-alert h1 {
    color: white;
}

.period-countdown {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.progress-section {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 2rem;
}

.progress-bar-container {
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background-color: var(--bg-light);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
}

.todo-section {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 2rem;
}

.todo-list {
    margin-top: 1.5rem;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 4px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.todo-item:hover {
    background-color: #e8e8e8;
}

.todo-item.completed {
    opacity: 0.6;
}

.todo-checkbox {
    flex-shrink: 0;
}

.check-icon-completed {
    color: var(--primary-color);
}

.check-icon-uncompleted {
    color: var(--text-light);
}

.todo-icon {
    flex-shrink: 0;
    color: var(--primary-color);
}

.todo-text {
    flex: 1;
    color: var(--text-dark);
}

.todo-item.completed .todo-text {
    text-decoration: line-through;
}

.notice-section {
    background-color: #fff3e0;
    padding: 1.5rem;
    border: 1px solid #ffe0b2;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.notice-card ul {
    margin-left: 1.5rem;
    color: var(--text-dark);
    line-height: 1.8;
}

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

/* History Page */
.history-page {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.next-renewal-section {
    margin-bottom: 3rem;
}

.next-renewal-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
}

.renewal-icon {
    color: var(--primary-color);
    text-align: center;
}

.renewal-info {
    flex: 1;
}

.renewal-date,
.renewal-period {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.renewal-countdown {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 1rem;
}

.status-upcoming {
    background-color: #e3f2fd;
    color: #1976d2;
}

.history-section {
    margin-bottom: 3rem;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.history-card {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.history-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.completed-icon {
    color: var(--primary-color);
}

.history-title h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.history-details {
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bg-light);
}

.detail-label {
    width: 120px;
    font-weight: 500;
    color: var(--text-dark);
}

.detail-value {
    color: var(--text-light);
}

.history-documents h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.document-list {
    margin-left: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

.history-notes {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 4px;
}

.history-notes h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.history-notes p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.stats-section {
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.stat-card {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Settings Page */
.settings-page {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.settings-section {
    margin-bottom: 3rem;
}

.settings-card {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.subsection-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.gun-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 4px;
    margin-bottom: 1rem;
}

.gun-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gun-details p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.danger-zone {
    border-top: 2px solid #ffcdd2;
    padding-top: 2rem;
}

.danger-text {
    color: #d32f2f;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Notifications Page */
.notifications-page {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.unread-badge {
    background-color: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.notifications-actions {
    margin-bottom: 2rem;
}

.notifications-list {
    max-width: 800px;
}

.notification-group {
    margin-bottom: 2rem;
}

.group-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 1rem;
    position: relative;
    transition: background-color 0.2s;
}

.notification-item.unread {
    background-color: #f0f7ff;
    border-left: 4px solid var(--primary-color);
}

.notification-item.unread:hover {
    cursor: pointer;
    background-color: #e3f2fd;
}

.notification-icon {
    flex-shrink: 0;
}

.notification-icon-alert {
    color: var(--accent-color);
}

.notification-icon-success {
    color: var(--primary-color);
}

.notification-icon-info {
    color: #1976d2;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.notification-message {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.notification-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

.notification-delete {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.notification-delete:hover {
    background-color: #ffebee;
    color: #d32f2f;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.empty-state svg {
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive - Tablet */
@media (min-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }

    .action-buttons {
        flex-direction: row;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .next-renewal-card {
        flex-direction: row;
        align-items: center;
    }

    .hero-buttons .cta-button {
        text-align: center;
    }
}

/* Responsive - Desktop */
@media (min-width: 1024px) {
    .register-content {
        max-width: 800px;
    }

    .dashboard-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* ================================
   狩猟記録・弾薬帳簿・レポート
   ================================ */

/* 共通ページヘッダー */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* フィルターセクション */
.filter-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 8px;
}

.filter-icon {
    color: var(--text-light);
    font-size: 1.2rem;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-white);
    font-size: 0.9rem;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 狩猟記録ページ */
.hunting-page {
    padding: 2rem 0;
    min-height: calc(100vh - 160px);
}

.hunting-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hunting-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hunting-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    border-left: 4px solid var(--primary-color);
}

.hunting-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.hunting-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.hunting-weather {
    font-size: 0.9rem;
    color: var(--text-light);
}

.hunting-card-body {
    margin-bottom: 1rem;
}

.hunting-animal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.animal-icon {
    font-size: 1.25rem;
}

.animal-name {
    font-weight: 600;
    color: var(--text-dark);
}

.animal-gender {
    color: var(--text-light);
    font-size: 0.9rem;
}

.animal-count {
    background-color: var(--primary-light);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.hunting-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.hunting-memo {
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.hunting-companions {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.hunting-card-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* 弾薬帳簿ページ */
.ammunition-page {
    padding: 2rem 0;
    min-height: calc(100vh - 160px);
}

.ammunition-balance-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1.5rem;
}

.balance-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.balance-number {
    font-size: 3rem;
    font-weight: 700;
}

.balance-number span {
    font-size: 1.25rem;
    font-weight: 400;
}

.ammunition-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ammunition-stats .stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.ammunition-stats .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-card.stat-in .stat-icon {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.stat-card.stat-out .stat-icon {
    background-color: #e3f2fd;
    color: #1976d2;
}

.ammunition-stats .stat-content {
    flex: 1;
}

.ammunition-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ammunition-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
}

.ammunition-card.in {
    border-left: 4px solid #4CAF50;
}

.ammunition-card.out {
    border-left: 4px solid #2196F3;
}

.ammunition-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.ammunition-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.ammunition-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.ammunition-badge.in {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.ammunition-badge.out {
    background-color: #e3f2fd;
    color: #1976d2;
}

.ammunition-card-body {
    margin-bottom: 1rem;
}

.ammunition-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.ammunition-type .type-icon {
    font-size: 1.25rem;
}

.ammunition-type .type-label {
    font-weight: 600;
    font-size: 1.1rem;
}

.ammunition-quantity {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.quantity-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.quantity-value.in {
    color: #2e7d32;
}

.quantity-value.out {
    color: #1976d2;
}

.quantity-unit {
    color: var(--text-light);
}

.quantity-balance {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-left: auto;
}

.ammunition-location,
.ammunition-target,
.ammunition-supplier {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.ammunition-memo {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.ammunition-card-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* モーダル */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background-color: var(--bg-white);
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.25rem;
}

.modal-close:hover {
    color: var(--text-dark);
}

/* フォーム拡張 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    cursor: pointer;
}

.type-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.type-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-white);
    cursor: pointer;
    transition: all 0.2s;
}

.type-button:hover {
    border-color: var(--primary-color);
}

.type-button.active {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
}

.type-button .type-icon {
    font-size: 1.25rem;
}

.type-button .type-label {
    font-size: 0.75rem;
}

.quantity-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-input-group .form-input {
    width: 120px;
}

.quantity-input-group .quantity-unit {
    color: var(--text-light);
}

/* レポートページ */
.reports-page {
    padding: 2rem 0;
    min-height: calc(100vh - 160px);
}

.period-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 8px;
}

.view-mode-buttons {
    display: flex;
    gap: 0.5rem;
}

.view-mode-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-white);
    cursor: pointer;
    transition: all 0.2s;
}

.view-mode-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.period-navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background-color: var(--bg-light);
}

.period-label {
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 120px;
    text-align: center;
}

.report-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.report-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 1rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.report-tab:hover {
    color: var(--text-dark);
}

.report-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.report-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.report-section {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.report-section .section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.breakdown-section {
    margin-top: 1.5rem;
}

.breakdown-section h3 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-label {
    color: var(--text-dark);
}

.breakdown-value {
    font-weight: 600;
    color: var(--primary-color);
}

/* 詳細リスト */
.detail-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 1rem;
    padding: 0.75rem;
    background-color: var(--bg-light);
    border-radius: 4px;
    align-items: center;
}

.detail-item.in {
    border-left: 3px solid #4CAF50;
}

.detail-item.out {
    border-left: 3px solid #2196F3;
}

.detail-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.detail-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.detail-animal,
.detail-type {
    font-weight: 500;
}

.detail-count,
.detail-quantity {
    color: var(--primary-color);
    font-weight: 600;
}

.detail-quantity.in {
    color: #2e7d32;
}

.detail-quantity.out {
    color: #1976d2;
}

.detail-location,
.detail-balance {
    color: var(--text-light);
    font-size: 0.85rem;
}

.empty-message {
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
}

/* 棒グラフ */
.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 200px;
    padding: 1rem 0;
}

.bar-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.bar-wrapper {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.bar {
    width: 80%;
    max-width: 40px;
    border-radius: 4px 4px 0 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 0.25rem;
    min-height: 4px;
}

.bar.hunting {
    background-color: var(--primary-color);
}

.bar.ammunition {
    background-color: #2196F3;
}

.bar-value {
    font-size: 0.75rem;
    color: white;
    font-weight: 600;
}

.bar-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* 円グラフ凡例 */
.pie-chart-container {
    padding: 1rem 0;
}

.pie-legend {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
}

.legend-label {
    flex: 1;
}

.legend-value {
    font-weight: 600;
    color: var(--text-dark);
}

.chart-note {
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
}

/* 火薬表示 */
.ammunition-gunpowder {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}

.gunpowder-total {
    margin-left: auto;
    font-weight: 600;
    color: var(--accent-color);
}

/* レポート - 残弾数バナー */
.current-balance-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.balance-title {
    font-size: 0.9rem;
    opacity: 0.9;
}

.balance-value {
    font-size: 1.5rem;
    font-weight: 700;
}

/* レポート - 火薬使用量セクション */
.gunpowder-section {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #fff3e0;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
}

.gunpowder-section h3 {
    font-size: 0.9rem;
    color: #e65100;
    margin-bottom: 0.75rem;
}

.gunpowder-stats {
    display: flex;
    gap: 2rem;
}

.gunpowder-stat {
    display: flex;
    flex-direction: column;
}

.gunpowder-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e65100;
}

.gunpowder-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* 一斉検査用レポート */
.inspection-report {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.inspection-header {
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.inspection-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.inspection-period {
    font-size: 0.95rem;
    color: var(--text-light);
}

.inspection-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.inspection-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.inspection-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.inspection-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.inspection-stat-row:last-child {
    border-bottom: none;
}

.inspection-label {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 140px;
}

.inspection-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.inspection-value.highlight {
    font-size: 1.3rem;
    color: var(--accent-color);
}

.inspection-breakdown {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.inspection-animal-row {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    font-size: 0.95rem;
}

.inspection-empty {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.9rem;
}

.inspection-note {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #856404;
}

.inspection-total {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left-color: #4caf50;
}

.inspection-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px dashed #e0e0e0;
}

.print-button {
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.print-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 印刷用スタイル */
@media print {
    .page-header,
    .period-selector,
    .report-tabs,
    .inspection-actions,
    header,
    footer {
        display: none !important;
    }

    .inspection-report {
        box-shadow: none;
        padding: 0;
    }

    .inspection-section {
        page-break-inside: avoid;
        background: white;
        border: 1px solid #ccc;
    }
}

/* レスポンシブ */
@media (min-width: 768px) {
    .hunting-stats,
    .ammunition-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .type-buttons {
        grid-template-columns: repeat(6, 1fr);
    }

    .detail-item {
        grid-template-columns: 80px 1fr auto;
    }
}

@media (min-width: 1024px) {
    .hunting-page,
    .ammunition-page,
    .reports-page {
        padding: 3rem 0;
    }

    .hunting-list,
    .ammunition-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}
