:root {
    --primary-blue: #00aaff;
    --text-main: #1a1f26;
    --text-sub: #64748b;
    --bg-light: #ffffff;
    --bg-sub: #f8fafc;
    --border: #e2e8f0;
    --header-height: 70px;
    --font-en: 'Inter', sans-serif;
    --font-ja: 'Noto Sans JP', sans-serif;
    --marker-color: rgba(0, 170, 255, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: var(--font-ja);
    line-height: 1.8;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

hr {
    border: 0;
    border-top: 2px solid var(--bg-sub);
    margin: 6rem 0;
}

.text-wrap {
    display: inline-block;
    white-space: nowrap;
}

/* Header */
header {
    position: fixed;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1100;
}

.logo-group img {
    height: 32px;
}

.logo-group span {
    font-family: var(--font-en);
    font-weight: 900;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-main);
}

.nav-link:hover {
    color: var(--primary-blue);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-main);
    margin: 5px 0;
    transition: 0.3s;
}

/* --- Global Footer --- */
footer {
    background: #000;
    color: #fff;
    padding: 60px 20px 40px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.footer-info {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 30px;
}

.footer-logo span {
    font-family: var(--font-en);
    font-weight: 900;
    font-size: 1.2rem;
}

.footer-info p {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.link-group h4 {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.link-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-group li {
    margin-bottom: 8px;
}

.link-group a {
    font-size: 0.8rem;
    color: #cbd5e1;
}

.link-group a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 30px;
    border-top: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 0.75rem;
    color: #64748b;
}

@media (max-width: 550px) {
    .footer-bottom {
        justify-content: center;
        text-align: center;
    }
}

/* Common */
.marker-linear {
    position: relative;
    z-index: 1;
    padding: 0 4px;
}

.marker-linear::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 0;
    height: 16px;
    background-color: var(--marker-color);
    z-index: -1;
    transition: width 0.8s ease-out 1s;
}

.aos-animate .marker-linear::after {
    width: 100%;
}

.btn-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: 0.2s;
}

.btn-en {
    font-family: var(--font-en);
    font-size: 0.7rem;
    font-weight: 800;
    opacity: 0.6;
    letter-spacing: 0.05em;
}

.btn-ja {
    font-size: 0.9rem;
    font-weight: 900;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-light);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    }

    .nav-menu.active {
        right: 0;
    }
}

/* --- Hamburger Animation --- */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* モバイルメニューの背景を少し透過させて高級感を出す */
@media (max-width: 768px) {
    .nav-menu {
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    }

    .nav-link {
        font-size: 1.2rem !important;
        padding: 10px 0;
    }
}

/* News Section Layout */
.news-section {
    padding: 100px 25px;
    background-color: var(--bg-light);
}

.news-container {
    max-width: 900px;
    margin: 0 auto;
}

.news-header {
    margin-bottom: 40px;
}

.news-category {
    color: var(--primary-blue);
    font-family: var(--font-en);
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    display: block;
}

.news-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-top: 5px;
}

/* News List Style (Simple & Modern) */
.news-list {
    border-top: 1px solid var(--border);
}

.news-item-link {
    display: flex;
    align-items: center;
    padding: 25px 10px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.news-item-link:hover {
    background: #fff;
    padding-left: 20px;
    color: var(--primary-blue);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 200px;
    /* 日付とタグの幅を確保 */
}

.news-date {
    font-family: var(--font-en);
    font-size: 0.9rem;
    color: var(--text-sub);
    font-weight: 500;
}

.news-tag {
    background: #f1f5f9;
    color: var(--text-sub);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    transition: 0.3s;
}

.news-item-link:hover .news-tag {
    background: var(--primary-blue);
    color: #fff;
}

.news-item-title {
    font-size: 1.05rem;
    font-weight: 700;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-arrow {
    margin-left: 20px;
    opacity: 0;
    transform: translateX(-10px);
    transition: 0.3s;
}

.news-item-link:hover .news-arrow {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .news-item-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .news-meta {
        min-width: auto;
    }

    .news-item-title {
        white-space: normal;
    }

    .news-arrow {
        display: none;
    }
}