:root {
    /* Colors */
    --color-primary: #2C3E50;
    /* 知的なネイビー */
    --color-secondary: #F1C40F;
    /* 楽しげなイエロー */
    --color-accent: #E74C3C;
    /* ポップな赤（Netflixカラー意識） */
    --color-bg: #F9FAFB;
    --color-text: #333333;
    --color-text-light: #7F8C8D;
    --color-white: #FFFFFF;
    --color-border: #E0E0E0;

    /* Fonts */
    --font-main: 'Noto Sans JP', sans-serif;
    --font-en: 'Poppins', sans-serif;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.8;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.4;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-en);
}

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

.btn--primary:hover {
    background-color: #F39C12;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(241, 196, 15, 0.4);
}

.btn--outline {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

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

/* Header */
.header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header__logo a {
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.header__logo-dot {
    color: var(--color-secondary);
}

.header__nav {
    display: none;
}

.header__nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.header__nav a {
    font-family: var(--font-en);
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.9rem;
}

.header__nav a:hover,
.header__nav a.active {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-secondary);
}

.header__hamburger {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1002;
}

.header__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    position: absolute;
    transition: all 0.3s ease;
}

.header__hamburger span:nth-child(1) {
    top: 0;
}

.header__hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.header__hamburger span:nth-child(3) {
    bottom: 0;
}

.header__hamburger.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.header__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.header__hamburger.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--color-white);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu nav ul {
    list-style: none;
    text-align: center;
}

.mobile-menu nav li {
    margin: 2rem 0;
}

.mobile-menu nav a {
    font-family: var(--font-en);
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 700;
}

/* Hero Section */
.hero {
    background-color: var(--color-primary);
    background-image: linear-gradient(rgba(20, 10, 40, 0.4), rgba(20, 10, 40, 0.3)), url('../images/disney_christmas_bg.png');
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    padding: var(--spacing-lg) 0;
    position: relative;
    overflow: hidden;
}

/* Snow Animation */
.snow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.snowflake {
    position: absolute;
    top: -10px;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0.8;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-10px) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) translateX(20px);
        opacity: 0.3;
    }
}

.hero__container {
    display: flex;
    flex-direction: column-reverse;
    gap: 2rem;
    align-items: center;
}

.hero__content {
    flex: 1;
    z-index: 1;
}

.hero__title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero__title .highlight {
    color: var(--color-secondary);
    position: relative;
    display: inline-block;
}

.hero__text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero__image {
    flex: 1;
    width: 100%;
    max-width: 500px;
}

.hero__image img {
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Achievement Section */
.achievement {
    padding: 2rem 0;
    margin-top: -3rem;
    /* Heroに少し重ねる */
    position: relative;
    z-index: 10;
}

.achievement__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.achievement__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid var(--color-border);
}

.achievement__item:last-child {
    border-right: none;
}

.achievement__label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.achievement__value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.4;
}

@media (max-width: 600px) {
    .achievement__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .achievement__item {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        padding-bottom: 1rem;
    }

    .achievement__item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* Section Styles */
.section {
    padding: var(--spacing-lg) 0;
}

.section--bg {
    background-color: var(--color-white);
}

.section--dark {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.section__header--left {
    text-align: left;
    margin-bottom: 2rem;
}

.section__title {
    font-family: var(--font-en);
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.section--dark .section__title {
    color: var(--color-white);
}

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

.section--dark .section__subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid var(--color-border);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card__image img {
    transform: scale(1.05);
}

.card__tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-en);
}

.card__content {
    padding: 1.5rem;
}

.card__date {
    font-family: var(--font-en);
    font-size: 0.8rem;
    color: var(--color-text-light);
    display: block;
    margin-bottom: 0.5rem;
}

.card__title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.card__excerpt {
    font-size: 0.9rem;
    color: var(--color-text-light);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.section__footer {
    text-align: center;
}

/* List View (Eiken & Daily) */
.grid-2col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.2s ease;
}

.list-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.list-item__date {
    font-family: var(--font-en);
    font-size: 0.85rem;
    color: var(--color-text-light);
    width: 90px;
    flex-shrink: 0;
}

.list-item__content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-item__title {
    font-size: 1rem;
    font-weight: 500;
    margin-right: 1rem;
}

.arrow {
    color: var(--color-secondary);
    font-weight: 700;
}

/* About Section */
.about-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.about__image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--color-secondary);
    object-fit: cover;
}

.about__content {
    text-align: center;
}

.about__title {
    font-family: var(--font-en);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.about__text {
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.social-icon:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

/* Footer */
.footer {
    background-color: #1a252f;
    color: var(--color-text-light);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.8rem;
}

/* --- Post Detail Page Styles --- */
.post__header {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 4rem 0 6rem;
    text-align: center;
    position: relative;
}

.post__header-container {
    max-width: 800px;
}

.post__meta {
    margin-bottom: 1rem;
    font-family: var(--font-en);
}

.post__tag {
    background-color: var(--color-accent);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 1rem;
}

.post__title {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.post__image {
    margin-top: 2rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: -100px;
    /* Pull content up */
}

.post__content {
    margin-top: 6rem;
    /* Compensate for negative margin */
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.post__body {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.post__body h2 {
    font-size: 1.5rem;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-secondary);
    padding-bottom: 0.5rem;
    margin: 3rem 0 1.5rem;
}

.post__body h2:first-of-type {
    margin-top: 1rem;
}

.post__body p {
    margin-bottom: 1.5rem;
}

.lead {
    font-weight: 500;
    font-size: 1.1rem;
}

/* Episode Box */
.episode-box {
    background-color: var(--color-bg);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--color-primary);
    margin-bottom: 2rem;
}

.episode-box h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.difficulty-level {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
    flex-wrap: wrap;
}

/* Phrase Card */
.phrase-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: #fff;
}

.phrase-card__en {
    font-family: var(--font-en);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.phrase-card__jp {
    color: var(--color-text);
    margin-bottom: 1rem;
}

.phrase-card__note {
    background-color: #FFF9C4;
    /* 薄い黄色 */
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.phrase-card__note .icon {
    margin-right: 0.5rem;
}

.next-action {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-sm);
    text-align: center;
    margin-top: 3rem;
}

.next-action h3 {
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

/* Sidebar Widget */
.sidebar-widget {
    background-color: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

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

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: block;
    padding: 0.5rem;
    border-radius: 4px;
}

.category-list a:hover {
    background-color: var(--color-bg);
    color: var(--color-primary);
}

/* Media Queries */
@media (min-width: 768px) {
    .header__nav {
        display: block;
    }

    .header__hamburger {
        display: none;
    }

    .hero__container {
        flex-direction: row;
    }

    .hero__title {
        font-size: 3.5rem;
    }

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

    .about-grid {
        flex-direction: row;
        text-align: left;
    }

    .about__content {
        text-align: left;
    }

    .social-links {
        justify-content: flex-start;
    }

    .post__content {
        grid-template-columns: 3fr 1fr;
    }
}