@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@400;600;700&family=M+PLUS+Rounded+1c:wght@400;500;700&family=Shippori+Mincho:wght@400;500;600&display=swap');

:root {
    --color-primary: #2d4a3e;
    --color-secondary: #8b7355;
    --color-accent: #c9a87c;
    --color-bg-dark: #1a2f26;
    --color-bg-light: #f5f1eb;
    --color-bg-cream: #faf8f5;
    --color-text-dark: #2c2c2c;
    --color-text-light: #f5f1eb;
    --color-border: #d4cfc7;
    --font-main: 'Noto Sans JP', sans-serif;
    --font-heading: 'Noto Serif JP', serif;
    --font-accent: 'M PLUS Rounded 1c', sans-serif;
    --font-elegant: 'Shippori Mincho', serif;
    --shadow-soft: 0 4px 20px rgba(45, 74, 62, 0.08);
    --shadow-medium: 0 8px 30px rgba(45, 74, 62, 0.12);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-weight: 400;
    line-height: 1.8;
    color: var(--color-text-dark);
    background-color: var(--color-bg-cream);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-primary) 100%);
    box-shadow: var(--shadow-medium);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent);
}

.logo-text {
    font-family: var(--font-elegant);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-light);
    letter-spacing: 0.05em;
}

.logo-text span {
    color: var(--color-accent);
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-light);
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-accent);
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    cursor: pointer;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--color-text-light);
    border-radius: 2px;
    transition: var(--transition);
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, var(--color-bg-dark) 0%, var(--color-primary) 100%);
    padding: 100px 30px 30px;
    transition: right 0.4s ease;
    z-index: 999;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu-links a {
    font-family: var(--font-main);
    font-size: 1.1rem;
    color: var(--color-text-light);
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-links a:hover {
    color: var(--color-accent);
    padding-left: 10px;
}

.mobile-menu-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.mobile-menu-section h4 {
    font-family: var(--font-heading);
    color: var(--color-accent);
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

main {
    margin-top: 80px;
}

.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-bg-dark) 50%, #1a3d35 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/8/82/Kyoto_Banner.jpg/1280px-Kyoto_Banner.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 20px;
    max-width: 800px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero p {
    font-family: var(--font-main);
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--color-accent);
    color: var(--color-text-dark);
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 1rem;
    border-radius: 50px;
    transition: var(--transition);
}

.hero-btn:hover {
    background: var(--color-text-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201, 168, 124, 0.3);
}

.section {
    padding: 80px 0;
}

.section-dark {
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-primary) 100%);
    color: var(--color-text-light);
}

.section-light {
    background: var(--color-bg-light);
}

.section-cream {
    background: var(--color-bg-cream);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
    color: inherit;
}

.section-subtitle {
    font-family: var(--font-main);
    font-size: 1.1rem;
    text-align: center;
    opacity: 0.8;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.article-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.article-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.article-card-content {
    padding: 25px;
}

.article-card-category {
    display: inline-block;
    font-family: var(--font-accent);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-accent);
    background: rgba(201, 168, 124, 0.15);
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.7;
}

.article-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--color-border);
}

.article-card-date {
    font-size: 0.85rem;
    color: #999;
}

.article-card-link {
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-primary);
}

.article-card-link:hover {
    color: var(--color-accent);
}

.featured-section {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.featured-main {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 450px;
}

.featured-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-main-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(transparent, rgba(26, 47, 38, 0.95));
}

.featured-main-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-text-light);
    margin-bottom: 15px;
}

.featured-main-overlay p {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
}

.featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-sidebar-card {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.featured-sidebar-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-medium);
}

.featured-sidebar-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.featured-sidebar-content h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--color-text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.featured-sidebar-content p {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.6;
}

.tips-section {
    background: linear-gradient(180deg, var(--color-bg-light) 0%, var(--color-bg-cream) 100%);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.tip-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid transparent;
}

.tip-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.tip-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-accent);
}

.tip-card h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-text-dark);
    margin-bottom: 10px;
}

.tip-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

.about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-preview-image {
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

.about-preview-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.about-preview-content p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 25px;
    opacity: 0.9;
}

.about-btn {
    display: inline-block;
    padding: 14px 35px;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    font-family: var(--font-main);
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition);
}

.about-btn:hover {
    background: var(--color-accent);
    color: var(--color-text-dark);
}

footer {
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    margin-top: 15px;
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.7;
}

.footer-section h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-bottom a {
    color: var(--color-accent);
}

.page-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-bg-dark) 100%);
    padding: 120px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-text-light);
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.article-content h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-primary);
    margin: 40px 0 20px;
}

.article-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-text-dark);
    margin: 30px 0 15px;
}

.article-content p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 20px;
    color: #444;
}

.article-content ul,
.article-content ol {
    margin: 20px 0 20px 25px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.article-content img {
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: var(--shadow-soft);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 30px;
}

.article-meta span {
    font-size: 0.9rem;
    color: #777;
}

.contact-section {
    padding: 60px 0;
}

.contact-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.contact-intro p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--color-accent);
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card-icon img,
.contact-card-icon svg {
    width: 30px;
    height: 30px;
    color: #fff;
    stroke: #fff;
}

.contact-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-text-dark);
    margin-bottom: 12px;
}

.contact-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact-card a {
    font-size: 0.95rem;
    color: var(--color-primary);
    font-weight: 500;
    word-break: break-all;
}

.contact-card a:hover {
    color: var(--color-accent);
}

.faq-section {
    background: var(--color-bg-light);
    padding: 60px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-soft);
}

.faq-item h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-text-dark);
    margin-bottom: 12px;
}

.faq-item p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.cookie-text p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.6;
}

.cookie-text a {
    color: var(--color-accent);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 25px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-btn-accept {
    background: var(--color-accent);
    color: var(--color-text-dark);
}

.cookie-btn-accept:hover {
    background: var(--color-text-light);
}

.cookie-btn-reject {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--color-text-light);
}

.cookie-btn-reject:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.external-link {
    color: var(--color-primary);
    text-decoration: underline;
}

.external-link:hover {
    color: var(--color-accent);
}

.update-date {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
}

@media (max-width: 1024px) {
    .featured-section {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-preview {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 12px 15px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .hero {
        min-height: 60vh;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .featured-main {
        min-height: 350px;
    }

    .contact-card {
        padding: 30px 20px;
    }
}
