/*
Theme Name: Igokids Theme
Theme URI: https://igokids.com
Author: Igokids Team
Description: Custom landing page theme for Igokids Reborn
Version: 1.0
*/

:root {
    --primary-color: #8BC34A;
    --secondary-color: #689F38;
    --board-color: #DEB887;
    --text-color: #333333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --font-main: 'Inter', 'Noto Sans JP', sans-serif;
    --link-color: #0066CC;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--white);
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--link-color);
}

.logo a,
.main-navigation a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

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

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

/* Hero Section */
.hero-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f0f9eb 0%, #ffffff 100%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-small {
    font-size: 1.5rem;
    font-weight: 400;
    display: block;
    margin-top: 0.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image img {
    max-height: 500px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* News Section */
.news-section {
    padding: 4rem 0;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.news-date {
    font-family: monospace;
    color: #666;
    margin-right: 1.5rem;
    min-width: 100px;
}

.news-title {
    font-weight: 600;
    color: var(--text-color);
}

.news-title:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Intro Section */
.intro-section {
    padding: 4rem 0;
    background-color: #f9f9f9;
    text-align: center;
}

.intro-section p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

/* Features Section */
.features-section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

.feature-block {
    margin-bottom: 4rem;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-block h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--board-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-block ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.feature-block li {
    margin-bottom: 0.5rem;
}

/* Tables */
.feature-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.feature-table th,
.feature-table td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}

.feature-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.table-responsive {
    overflow-x: auto;
}

/* Target Audience & How to Use */
.target-section,
.how-to-section {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.how-to-section {
    background-color: #fff;
}

.features-grid,
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card,
.step-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.step-item {
    background: #f5f5f5;
    color: var(--text-color);
}

.feature-card h3,
.step-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card ul {
    list-style: disc;
    padding-left: 1.5rem;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background-color: #f0f9eb;
    text-align: center;
}

.cta-content {
    margin-bottom: 2rem;
}

.cta-image img {
    max-height: 200px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }
}

/* Improved Title Design */
.entry-title,
.page-title,
.post h1,
.page h1 {
    font-size: 2.2rem;
    /* Slightly smaller for elegance */
    font-weight: 700;
    color: var(--text-color);
    border-bottom: 4px solid var(--primary-color);
    padding: 0 0 0.8rem 0;
    margin-bottom: 2rem;
    background: transparent;
}

/* Responsive adjustment */
@media (max-width: 768px) {

    .entry-title,
    .page-title,
    .post h1,
    .page h1 {
        font-size: 1.8rem;
        padding-bottom: 0.6rem;
        border-bottom-width: 3px;
    }
}

/* Post Content Links */
.entry-content a {
    color: var(--link-color);
    text-decoration: underline;
}

/* Post Content Headers (H2, H3 Design) */
.entry-content h2,
.guild-main-text h2 {
    background: #f0f9eb;
    /* Light green background related to primary color */
    padding: 1rem 1.5rem;
    border-left: 6px solid var(--primary-color);
    border-radius: 4px;
    /* Soften edges */
    color: var(--text-color);
    margin-top: 3.5rem;
    /* More space above */
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    /* Subtle depth */
    position: relative;
}

.entry-content h3,
.guild-main-text h3 {
    padding: 0.5rem 0.5rem 0.5rem 0;
    border-bottom: 2px solid #e0e0e0;
    color: var(--text-color);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
}

.entry-content h3::after,
.guild-main-text h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    /* Overlap the grey border */
    left: 0;
    width: 60px;
    /* Short accent line */
    height: 2px;
    background: var(--primary-color);
}

/* Guild Section */
.guild-section {
    padding: 6rem 0;
    background-color: #f9f9f9;
}

.guild-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.guild-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1 / 1;
    /* Force square */
    display: flex;
    flex-direction: column;
}

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

.guild-image {
    height: 55%;
    width: 100%;
    background-size: cover;
    background-position: center;
}

.guild-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.guild-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.guild-description {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.guild-organizer {
    display: flex;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.organizer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.5rem;
    border: 1px solid var(--board-color);
}

.organizer-info {
    flex: 1;
    overflow: hidden;
}

.organizer-name {
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Pagination */
.guild-pagination {
    margin-top: 3rem;
    text-align: center;
}

.guild-pagination ul {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0;
    list-style: none;
}

.guild-pagination li {
    display: inline-block;
}

.guild-pagination a,
.guild-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.guild-pagination a:hover,
.guild-pagination span.current {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* =========================================
   Guild Concept LP Styles
   ========================================= */
.lp-guild {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #4a4a4a;
    line-height: 1.8;
    background-color: #fcfcf9;
    /* Warm off-white */
}

.lp-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.lp-heading {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: #2c2c2c;
    letter-spacing: 0.1em;
}

.lp-text {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 3rem;
}

.lp-section {
    padding: 80px 0;
}

/* Hero Section */
.lp-hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.lp-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.lp-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay for text readability */
    z-index: 1;
}

.lp-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.05em;
}

.lp-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Intro Section */
.lp-intro {
    background-color: #fff;
}

.lp-guild-types {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.guild-type {
    background: #fdf6e3;
    /* Soft warm background */
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    width: 250px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.guild-type:hover {
    transform: translateY(-5px);
}

.type-icon {
    display: inline-block;
    background: #d4a373;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 1rem;
}

.lp-text-small {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* Contrast Section */
.lp-contrast {
    background-color: #f4f4f4;
}

.lp-lead {
    text-align: center;
    margin-bottom: 3rem;
    font-weight: bold;
}

.lp-contrast-visual {
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.lp-contrast-visual img {
    width: 100%;
    display: block;
}

.lp-contrast-columns {
    display: flex;
    gap: 40px;
    margin-bottom: 3rem;
}

.contrast-col {
    flex: 1;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contrast-col.global {
    border-top: 5px solid #5a9bd5;
    /* Cool blue */
}

.contrast-col.local {
    border-top: 5px solid #e76f51;
    /* Warm orange */
}

.contrast-col h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.contrast-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contrast-col ul li {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.contrast-col ul li:last-child {
    border-bottom: none;
}

.benefit {
    color: #333;
}

.drawback {
    color: #999;
}

.lp-message-box {
    text-align: center;
    background: #fff8e1;
    /* Highlight */
    padding: 2rem;
    border-radius: 8px;
    border-left: 5px solid #f4a261;
}

.lp-message-box strong {
    color: #d35400;
    font-size: 1.2rem;
}

/* Values Section */
.lp-values {
    background-color: #fff;
}

.lp-header-text {
    text-align: center;
    margin-bottom: 4rem;
    color: #666;
}

.lp-value-group {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 6rem;
}

.lp-value-group.reverse {
    flex-direction: row-reverse;
}

/* =========================================
   Function & Usage List Styles
   ========================================= */
.function-section {
    padding: 2rem 0;
}

.function-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.function-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

.function-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.function-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.function-image {
    height: 200px;
    width: 100%;
    background-size: cover;
    background-position: center;
}

.function-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.function-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    border-bottom: none !important;
    /* Override standard H3 styles */
    padding: 0 !important;
}

.function-card:hover .function-title {
    color: var(--primary-color);
}

.function-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lp-value-img {
    flex: 1;
}

.lp-value-img img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.lp-value-content {
    flex: 1;
}

.value-item {
    margin-bottom: 3rem;
}

.value-item:last-child {
    margin-bottom: 0;
}

.value-num {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #fceadc;
    /* Very light orange */
    line-height: 1;
    margin-bottom: -1rem;
    position: relative;
    z-index: 0;
}

.value-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

/* Footer CTA */
.lp-footer {
    background: #264653;
    /* Dark Premium */
    color: #fff;
    text-align: center;
    padding: 6rem 0;
}

.lp-footer p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.lp-btn {
    display: inline-block;
    background: #e9c46a;
    color: #264653;
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.lp-btn:hover {
    background: #f4a261;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .lp-title {
        font-size: 2rem;
    }

    .lp-contrast-columns {
        flex-direction: column;
    }

    .lp-value-group,
    .lp-value-group.reverse {
        flex-direction: column;
        gap: 30px;
    }

    .lp-heading {
        font-size: 1.8rem;
    }
}