@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=M+PLUS+Rounded+1c:wght@400;500;700&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap');

:root {
    --primary-color: #1a365d;
    --secondary-color: #2d5a87;
    --accent-color: #e8a838;
    --dark-bg: #0f2137;
    --light-bg: #f5f7fa;
    --card-bg: #ffffff;
    --text-dark: #1a202c;
    --text-light: #718096;
    --border-color: #e2e8f0;
    --gradient-1: linear-gradient(135deg, #1a365d 0%, #2d5a87 100%);
    --gradient-2: linear-gradient(135deg, #0f2137 0%, #1a365d 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', 'M PLUS Rounded 1c', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--light-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-dark);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
}

.header-main {
    background: var(--gradient-2);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-custom {
    padding: 0.75rem 0;
}

.navbar-brand-custom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: #ffffff !important;
    letter-spacing: 0.02em;
}

.navbar-brand-custom:hover {
    color: var(--accent-color) !important;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
}

.brand-text-primary {
    color: var(--accent-color);
}

.brand-text-secondary {
    color: #ffffff;
    font-weight: 400;
}

.navbar-nav-custom .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.6rem 1.1rem !important;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav-custom .nav-link:hover,
.navbar-nav-custom .nav-link.active {
    color: #ffffff !important;
}

.navbar-nav-custom .nav-link:hover::after,
.navbar-nav-custom .nav-link.active::after {
    width: 70%;
}

.navbar-toggler-custom {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.4rem 0.65rem;
}

.navbar-toggler-custom:focus {
    box-shadow: 0 0 0 2px rgba(232, 168, 56, 0.25);
}

.navbar-toggler-icon-custom {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.hero-section {
    background: var(--gradient-2);
    padding: 5rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(232, 168, 56, 0.08) 0%, transparent 70%);
    transform: rotate(-15deg);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(232, 168, 56, 0.15);
    border: 1px solid rgba(232, 168, 56, 0.3);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
}

.article-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.article-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-card-img img {
    transform: scale(1.08);
}

.article-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-color);
    color: #ffffff;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.article-card-title a {
    color: inherit;
}

.article-card-title a:hover {
    color: var(--secondary-color);
}

.article-card-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    flex: 1;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.article-card-meta svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.feature-box {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: #ffffff;
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.contact-hero {
    background: var(--gradient-2);
    padding: 4rem 0;
    text-align: center;
}

.contact-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.contact-hero-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    font-style: italic;
}

.contact-section {
    padding: 4rem 0;
    background: var(--light-bg);
}

.contact-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
}

.contact-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.contact-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.contact-card-icon svg {
    width: 28px;
    height: 28px;
    color: #ffffff;
}

.contact-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.contact-card-text {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.contact-card-link {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 0.95rem;
    word-break: break-all;
}

.contact-card-link:hover {
    color: var(--accent-color);
}

.faq-section {
    padding: 4rem 0;
    background: #ffffff;
}

.faq-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-dark);
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-question {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

.about-hero {
    background: var(--gradient-2);
    padding: 4rem 0;
    text-align: center;
}

.about-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.about-hero-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
}

.about-section {
    padding: 4rem 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 2;
    margin-bottom: 1.5rem;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.about-list li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
    color: var(--text-dark);
}

.about-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
}

.article-hero {
    background: var(--gradient-2);
    padding: 4rem 0;
}

.article-hero-category {
    display: inline-block;
    background: var(--accent-color);
    color: #ffffff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.article-hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.article-hero-meta svg {
    width: 18px;
    height: 18px;
    margin-right: 0.4rem;
    opacity: 0.8;
}

.article-content {
    padding: 4rem 0;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
}

.article-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--text-dark);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.article-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    color: var(--text-dark);
}

.article-body p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 2;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.article-body img {
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

.article-body blockquote {
    background: var(--light-bg);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-light);
}

.article-body a {
    color: var(--secondary-color);
    border-bottom: 1px solid transparent;
}

.article-body a:hover {
    border-bottom-color: var(--accent-color);
}

.related-articles {
    background: var(--light-bg);
    padding: 4rem 0;
}

.related-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.policy-hero {
    background: var(--gradient-2);
    padding: 4rem 0;
    text-align: center;
}

.policy-hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.policy-section {
    padding: 4rem 0;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
}

.policy-content h2 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-dark);
}

.policy-content p {
    color: var(--text-dark);
    line-height: 1.9;
    margin-bottom: 1rem;
}

.policy-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.policy-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.footer-main {
    background: var(--dark-bg);
    color: rgba(255, 255, 255, 0.75);
    padding: 4rem 0 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.footer-brand-text {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #ffffff;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 300px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-bg);
    padding: 1.25rem;
    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 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
    min-width: 280px;
}

.cookie-text a {
    color: var(--accent-color);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-cookie {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-cookie-accept {
    background: var(--accent-color);
    color: #ffffff;
}

.btn-cookie-accept:hover {
    background: #d49730;
}

.btn-cookie-reject {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-cookie-reject:hover {
    background: rgba(255, 255, 255, 0.1);
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    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(--accent-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-primary-custom {
    background: var(--accent-color);
    color: #ffffff;
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-custom:hover {
    background: #d49730;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-outline-custom {
    background: transparent;
    color: var(--secondary-color);
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    font-weight: 500;
    border: 2px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--secondary-color);
    color: #ffffff;
}

.update-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(232, 168, 56, 0.1);
    color: var(--accent-color);
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.spec-table th,
.spec-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.spec-table th {
    background: var(--light-bg);
    font-weight: 600;
    color: var(--text-dark);
}

.spec-table tr:last-child td {
    border-bottom: none;
}

.rating-stars {
    display: inline-flex;
    gap: 0.2rem;
    color: var(--accent-color);
}

.external-link {
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.external-link svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 991.98px) {
    .navbar-collapse-custom {
        background: var(--dark-bg);
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 12px;
    }

    .navbar-nav-custom .nav-link {
        padding: 0.8rem 1rem !important;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.65rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 3rem 0 4rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .contact-hero-title,
    .about-hero-title,
    .policy-hero-title {
        font-size: 1.85rem;
    }

    .article-hero-title {
        font-size: 1.65rem;
    }

    .contact-card {
        padding: 1.75rem 1.5rem;
    }

    .feature-box {
        padding: 1.5rem;
    }

    .footer-main {
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-desc {
        max-width: 100%;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
        width: 100%;
    }

    .btn-cookie {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 15px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .article-card-body {
        padding: 1.25rem;
    }

    .article-card-title {
        font-size: 1.05rem;
    }
}
