/**
 * るーぷる仙台バリアフリー調査報告書ページ用CSS
 *
 * @package TourCenter
 * @since 1.0.0
 */

/* Variables - サイト全体のグリーン基調に合わせる */
:root {
    --loople-primary: #005a24;
    --loople-secondary: #007a32;
    --loople-accent: #00913b;
    --loople-light-accent: #33a85d;
    --loople-text: #1a1a1a;
    --loople-light-bg: #f8f9fa;
    --loople-white: #ffffff;
    --loople-gray-100: #f5f5f5;
    --loople-gray-200: #e9ecef;
    --loople-gray-300: #dee2e6;
    --loople-gray-600: #6c757d;
    --loople-success: #007a32;
    --loople-warning: #ffc107;
    --loople-danger: #dc3545;
    --loople-shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --loople-shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --loople-shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --loople-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Section */
.loople-hero {
    background: linear-gradient(135deg, rgba(0, 90, 36, 0.95) 0%, rgba(0, 122, 50, 0.95) 100%);
    color: var(--loople-white);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.loople-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0 Q300,60 600,30 T1200,30 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.05)"/></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.5;
}

.loople-hero-content {
    position: relative;
    z-index: 1;
    animation: loopleFadeInUp 1s ease-out;
}

.loople-hero h1 {
    font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 24px;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.2);
    letter-spacing: 0.02em;
}

.loople-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 16px;
    opacity: 0.95;
    font-weight: 500;
}

.loople-hero-date {
    font-size: 1rem;
    opacity: 0.85;
    margin-top: 32px;
}

/* Sticky Navigation */
.loople-nav-sticky {
    position: sticky;
    top: 0;
    background: var(--loople-white);
    box-shadow: var(--loople-shadow-md);
    z-index: 100;
    padding: 16px 0;
}

.loople-nav-content {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--loople-accent) var(--loople-gray-200);
}

.loople-nav-content::-webkit-scrollbar {
    height: 6px;
}

.loople-nav-content::-webkit-scrollbar-track {
    background: var(--loople-gray-200);
    border-radius: 3px;
}

.loople-nav-content::-webkit-scrollbar-thumb {
    background: var(--loople-accent);
    border-radius: 3px;
}

.loople-nav-item {
    display: inline-block;
    padding: 10px 20px;
    background: var(--loople-gray-100);
    color: var(--loople-text);
    text-decoration: none;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--loople-transition);
    border: 2px solid transparent;
}

.loople-nav-item:hover {
    background: var(--loople-primary);
    color: var(--loople-white);
    transform: translateY(-2px);
    box-shadow: var(--loople-shadow-sm);
}

.loople-nav-item.active {
    background: var(--loople-accent);
    color: var(--loople-white);
    border-color: var(--loople-primary);
}

/* Section Styles */
.loople-section {
    padding: 80px 0;
    background: var(--loople-white);
}

.loople-section-alt {
    background: var(--loople-light-bg);
}

.loople-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.loople-section-title {
    font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 900;
    color: var(--loople-primary);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.loople-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--loople-secondary), var(--loople-light-accent));
    border-radius: 2px;
}

.loople-section-description {
    font-size: 1.1rem;
    color: var(--loople-gray-600);
    max-width: 800px;
    margin: 24px auto 0;
    line-height: 1.9;
}

/* Overview Grid */
.loople-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.loople-overview-card {
    background: var(--loople-white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--loople-shadow-sm);
    transition: var(--loople-transition);
    border-left: 4px solid var(--loople-accent);
}

.loople-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--loople-shadow-md);
}

.loople-overview-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--loople-primary);
    margin-bottom: 16px;
}

.loople-overview-card p,
.loople-overview-card ul {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--loople-text);
}

.loople-overview-card ul {
    list-style-position: inside;
    padding-left: 0;
}

.loople-overview-card li {
    margin-bottom: 8px;
    padding-left: 8px;
}

/* Route Map */
.loople-route-map {
    margin-top: 48px;
    text-align: center;
}

.loople-route-map img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--loople-shadow-md);
}

/* Location Card */
.loople-location-section {
    margin-bottom: 60px;
}

.loople-location-section:last-child {
    margin-bottom: 0;
}

.loople-location-card {
    background: var(--loople-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--loople-shadow-md);
    transition: var(--loople-transition);
}

.loople-location-card:hover {
    box-shadow: var(--loople-shadow-lg);
    transform: translateY(-2px);
}

.loople-location-header {
    background: linear-gradient(135deg, var(--loople-primary), var(--loople-accent));
    color: var(--loople-white);
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.loople-location-number {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.loople-location-title {
    flex: 1;
}

.loople-location-title h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 8px;
}

.loople-location-title p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.loople-location-content {
    padding: 40px;
}

/* Photo Grid */
.loople-photo-grid {
    margin-bottom: 24px;
}

.loople-photo-grid img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--loople-shadow-sm);
}

.loople-map-container {
    text-align: center;
    margin-bottom: 32px;
}

.loople-map-container img {
    max-width: 600px;
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--loople-shadow-sm);
}

/* Findings */
.loople-findings {
    background: var(--loople-light-bg);
    border-radius: 12px;
    padding: 28px;
    margin-top: 24px;
}

.loople-findings h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--loople-primary);
    margin-bottom: 16px;
}

.loople-findings h4::before {
    content: '✓ ';
    color: var(--loople-success);
}

.loople-findings ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.loople-findings li {
    padding: 12px 0 12px 32px;
    border-bottom: 1px solid var(--loople-gray-300);
    position: relative;
    line-height: 1.8;
}

.loople-findings li:last-child {
    border-bottom: none;
}

.loople-findings li::before {
    content: '●';
    position: absolute;
    left: 12px;
    color: var(--loople-accent);
    font-size: 0.8rem;
}

.loople-findings li.warning::before {
    content: '⚠️';
    font-size: 1rem;
    left: 8px;
}

.warning-inline {
    color: var(--loople-danger);
    font-weight: 500;
}

/* Summary Content */
.loople-summary-content {
    background: var(--loople-white);
    border-radius: 20px;
    padding: 48px;
    box-shadow: var(--loople-shadow-md);
    border-left: 6px solid var(--loople-secondary);
}

.loople-summary-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--loople-primary);
    margin: 32px 0 16px 0;
}

.loople-summary-content h3:first-child {
    margin-top: 0;
}

.loople-summary-content p {
    font-size: 1.05rem;
    line-height: 2;
    margin-bottom: 20px;
    text-align: justify;
}

/* Back to Top Button */
.loople-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--loople-secondary);
    color: var(--loople-white);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--loople-shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--loople-transition);
    z-index: 99;
}

.loople-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.loople-back-to-top:hover {
    background: var(--loople-primary);
    transform: translateY(-4px);
    box-shadow: var(--loople-shadow-lg);
}

/* Animations */
@keyframes loopleFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Lightbox */
.loople-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loople-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.loople-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: loopleLightboxZoom 0.3s ease;
}

.loople-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.loople-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    background: var(--loople-white);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    color: var(--loople-text);
    transition: var(--loople-transition);
}

.loople-lightbox-close:hover {
    background: var(--loople-accent);
    color: var(--loople-white);
    transform: scale(1.1);
}

.loople-lightbox-caption {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--loople-white);
    font-size: 0.95rem;
    padding: 10px;
}

/* Clickable images */
.loople-photo-grid img,
.loople-map-container img,
.loople-route-map img {
    cursor: zoom-in;
    transition: var(--loople-transition);
}

.loople-photo-grid img:hover,
.loople-map-container img:hover,
.loople-route-map img:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

@keyframes loopleLightboxZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .loople-hero {
        padding: 100px 0 70px;
    }

    .loople-section {
        padding: 60px 0;
    }

    .loople-section-header {
        margin-bottom: 40px;
    }

    .loople-overview-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 24px;
    }

    .loople-overview-card {
        padding: 24px;
    }

    .loople-location-content {
        padding: 32px;
    }

    .loople-location-section {
        margin-bottom: 40px;
    }

    .loople-summary-content {
        padding: 32px;
    }

    .loople-photo-grid img,
    .loople-map-container img,
    .loople-route-map img {
        max-width: 100%;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .loople-hero {
        padding: 80px 0 60px;
    }

    .loople-hero h1 {
        font-size: 1.75rem;
    }

    .loople-hero-subtitle {
        font-size: 0.95rem;
    }

    .loople-section {
        padding: 50px 0;
    }

    .loople-section-header {
        margin-bottom: 32px;
    }

    .loople-section-title {
        font-size: 1.5rem;
    }

    .loople-section-description {
        font-size: 1rem;
    }

    .loople-overview-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .loople-overview-card {
        padding: 20px;
    }

    .loople-location-header {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .loople-location-number {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .loople-location-title h2 {
        font-size: 1.25rem;
    }

    .loople-location-content {
        padding: 20px;
    }

    .loople-location-section {
        margin-bottom: 32px;
    }

    .loople-findings {
        padding: 20px;
    }

    .loople-findings li {
        padding: 10px 0 10px 28px;
        font-size: 0.95rem;
    }

    .loople-summary-content {
        padding: 24px;
        border-left-width: 4px;
    }

    .loople-summary-content h3 {
        font-size: 1.25rem;
        margin: 24px 0 12px 0;
    }

    .loople-summary-content p {
        font-size: 1rem;
        line-height: 1.8;
    }

    .loople-nav-content {
        gap: 8px;
    }

    .loople-nav-item {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .loople-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .loople-route-map {
        margin-top: 32px;
    }

    /* Lightbox Mobile */
    .loople-lightbox-content {
        max-width: 95%;
    }

    .loople-lightbox-close {
        top: -45px;
        width: 40px;
        height: 40px;
        font-size: 28px;
        line-height: 40px;
    }

    .loople-lightbox-caption {
        bottom: -40px;
        font-size: 0.85rem;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .loople-hero {
        padding: 70px 0 50px;
    }

    .loople-hero h1 {
        font-size: 1.5rem;
    }

    .loople-hero-subtitle {
        font-size: 0.9rem;
    }

    .loople-hero-date {
        font-size: 0.85rem;
    }

    .loople-nav-sticky {
        padding: 12px 0;
    }

    .loople-nav-item {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .loople-section {
        padding: 40px 0;
    }

    .loople-section-title {
        font-size: 1.3rem;
    }

    .loople-overview-card {
        padding: 16px;
    }

    .loople-overview-card h3 {
        font-size: 1.1rem;
    }

    .loople-location-header {
        padding: 20px;
    }

    .loople-location-number {
        width: 50px;
        height: 50px;
        font-size: 1.75rem;
    }

    .loople-location-title h2 {
        font-size: 1.1rem;
    }

    .loople-location-content {
        padding: 16px;
    }

    .loople-findings {
        padding: 16px;
    }

    .loople-findings h4 {
        font-size: 1rem;
    }

    .loople-findings li {
        padding: 8px 0 8px 24px;
        font-size: 0.9rem;
    }

    .loople-summary-content {
        padding: 20px;
    }

    .loople-summary-content h3 {
        font-size: 1.1rem;
    }

    .loople-summary-content p {
        font-size: 0.95rem;
    }
}
