/* ========================================
   DangoCraftStudio
   Main Stylesheet
======================================== */


/* ========================================
   Variables
======================================== */

:root {
    --primary: #db7718;
    --primary-hover: #b65d22;

    --text: #202124;
    --subtext: #6b7280;

    --background: #ffffff;
    --background-soft: #f7f8fc;

    --border: #e7e9ef;

    --header-height: 72px;

    --container-width: 1120px;
}


/* ========================================
   Reset
======================================== */

* {
    margin: 0;
    padding: 0;

    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Noto Sans JP",
        sans-serif;

    color: var(--text);

    background: var(--background);

    line-height: 1.7;
}


a {
    color: inherit;

    text-decoration: none;
}


button {
    font: inherit;
}


/* ========================================
   Common
======================================== */

.container {
    width: min(
        var(--container-width),
        88%
    );

    margin: 0 auto;
}


.section-label {
    display: block;

    color: var(--primary);

    font-size: 0.78rem;

    font-weight: 800;

    letter-spacing: 0.14em;

    margin-bottom: 8px;
}


.section-title {
    font-size: clamp(
        2.2rem,
        5vw,
        3.5rem
    );

    line-height: 1.15;

    letter-spacing: -0.05em;
}


/* ========================================
   Header
======================================== */

.header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: var(--header-height);

    z-index: 1000;

    background:
        rgba(255, 255, 255, 0.9);

    backdrop-filter:
        blur(16px);

    border-bottom:
        1px solid rgba(0, 0, 0, 0.05);
}


.header-container {
    width: min(
        var(--container-width),
        88%
    );

    height: 100%;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.logo {
    font-size: 1.1rem;

    font-weight: 800;

    letter-spacing: -0.04em;
}


/* Navigation */

.navigation {
    display: flex;

    align-items: center;

    gap: 30px;
}


.nav-link {
    position: relative;

    color: var(--subtext);

    font-size: 0.9rem;

    transition:
        color 0.2s ease;
}

.btn-link {
    position: relative;

    color: var(--subtext);

    font-size: 0.9rem;

    transition:
        color 0.2s ease;
}

.nav-link::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: var(--primary);

    border-radius: 10px;

    transition:
        width 0.2s ease;
}

.btn-link::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: var(--primary);

    border-radius: 10px;

    transition:
        width 0.2s ease;
}


.nav-link:hover {
    color: var(--text);
}

.btn-link:hover {
    color: var(--text);
}


.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-link:hover::after,
.btn-link.active::after {
    width: 100%;
}


.nav-link.active {
    color: var(--text);

    font-weight: 700;
}

.btn-link.active {
    color: var(--text);

    font-weight: 700;
}


/* Mobile Menu Button */

.menu-button {
    display: none;

    border: none;

    background: transparent;

    font-size: 1.5rem;

    cursor: pointer;

    color: var(--text);
}


/* ========================================
   Hero
======================================== */

.hero {
    padding-top:
        var(--header-height);
}


.hero-slideshow {
    position: relative;

    width: 100%;

    height: min(
        680px,
        calc(100vh - var(--header-height))
    );

    min-height: 520px;

    overflow: hidden;

    background:
        #f3f4f8;
}


/* Slide */

.hero-slide {
    position: absolute;

    inset: 0;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.8s ease;
}


.hero-slide.active {
    opacity: 1;

    pointer-events: auto;
}


/* ========================================
   Slide Backgrounds
   後でここを画像に変更できる！
======================================== */


/* Slide 1 */

.hero-slide:nth-child(1) {
    background:
        linear-gradient(
            135deg,
            #f0efff,
            #f8f8ff
        );
}


/* Slide 2 */

.hero-slide:nth-child(2) {
    background:
        linear-gradient(
            135deg,
            #eceaff,
            #f8f8ff
        );
    background-image: url("../assets/Modray.png");
    background-size: cover;
    background-position: center;
}


/* Slide 3 */

.hero-slide:nth-child(3) {
    background:
        linear-gradient(
            135deg,
            #e8f8f1,
            #f7fffb
        );
    background-image: url("../assets/modrinth.png");
    background-size: cover;
    background-position: center;
}


/* Slide 4 */

.hero-slide:nth-child(4) {
    background:
        linear-gradient(
            135deg,
            #fff1e5,
            #fffaf6
            
        );
        background-image: url("../assets/DangoSMP.jpg");
        background-size: cover;
        background-position: center;
}


/* ========================================
   Hero Overlay
======================================== */

.hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.95),
            rgba(255, 255, 255, 0.55),
            rgba(255, 255, 255, 0.1)
        );
}


/* ========================================
   Hero Content
======================================== */

.hero-content {
    position: relative;

    z-index: 2;

    width: min(
        var(--container-width),
        88%
    );

    height: 100%;

    margin: 0 auto;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: flex-start;
}


.hero-label {
    display: inline-flex;

    padding:
        6px 13px;

    border-radius: 999px;

    background:
        rgba(99, 91, 255, 0.1);

    color: var(--primary);

    font-size: 0.78rem;

    font-weight: 800;

    margin-bottom: 18px;
}


.hero-content h1 {
    max-width: 850px;

    font-size: clamp(
        3rem,
        7vw,
        6.5rem
    );

    line-height: 1.02;

    letter-spacing: -0.065em;

    font-weight: 800;
}


.hero-content p {
    max-width: 500px;

    margin-top: 22px;

    color: var(--subtext);

    font-size: 1.05rem;
}


/* Hero Button */

.hero-button {
    display: inline-flex;

    align-items: center;

    margin-top: 30px;

    padding:
        12px 20px;

    border-radius: 10px;

    background: var(--primary);

    color: white;

    font-size: 0.95rem;

    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.hero-button:hover {
    background:
        var(--primary-hover);

    transform:
        translateY(-2px);

    box-shadow:
        0 10px 25px
        rgba(99, 91, 255, 0.25);
}


/* ========================================
   Hero Dots
======================================== */

.hero-dots {
    position: absolute;

    right: 7%;

    bottom: 28px;

    z-index: 10;

    display: flex;

    gap: 9px;
}


.hero-dot {
    width: 8px;
    height: 8px;

    padding: 0;

    border: none;

    border-radius: 999px;

    background:
        rgba(32, 33, 36, 0.25);

    cursor: pointer;

    transition:
        width 0.25s ease,
        background 0.25s ease;
}


.hero-dot.active {
    width: 28px;

    background:
        var(--primary);
}


/* ========================================
   Introduction
======================================== */

.introduction {
    padding:
        150px 0;
}


.introduction h2 {
    font-size: clamp(
        2.8rem,
        6vw,
        5rem
    );

    line-height: 1.1;

    letter-spacing: -0.06em;
}


.catch-copy {
    margin-top: 10px;

    color: var(--primary);

    font-size: clamp(
        1.2rem,
        2.5vw,
        1.8rem
    );

    font-weight: 700;
}


.introduction-text {
    max-width: 650px;

    margin-top: 30px;

    color: var(--subtext);

    font-size: 1rem;
}


/* ========================================
   Pages
======================================== */

.pages {
    padding:
        120px 0;

    background:
        var(--background-soft);
}


.page-list {
    margin-top: 80px;

    display: flex;

    flex-direction: column;

    gap: 100px;
}


/* Page Item */

.page-item {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    align-items: center;

    gap: 70px;

    min-height: 360px;
}


/* ========================================
   Page Image
======================================== */

.page-image {
    width: 100%;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    border-radius: 22px;

    background: white;

    border:
        1px solid var(--border);
}


.image-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #eeedff,
            #fafaff
        );

    color: var(--primary);

    font-size: 1.5rem;

    font-weight: 800;

    letter-spacing: -0.03em;
}


/* Different Placeholder */

.page-item:nth-child(2)
.image-placeholder {
    background:
        linear-gradient(
            135deg,
            #e9f8f2,
            #f7fffb
        );

    color:
        #1ca778;
}


.page-item:nth-child(3)
.image-placeholder {
    background:
        linear-gradient(
            135deg,
            #fff1e6,
            #fffaf6
        );

    color:
        #e68a36;
}


/* ========================================
   Page Content
======================================== */

.page-content {
    max-width: 500px;
}


.page-number {
    color: #9ca3af;

    font-size: 0.8rem;

    font-weight: 700;

    letter-spacing: 0.12em;
}


.page-content h3 {
    margin-top: 8px;

    font-size: clamp(
        2rem,
        4vw,
        3rem
    );

    line-height: 1.15;

    letter-spacing: -0.05em;
}


.page-content p {
    margin-top: 16px;

    color: var(--subtext);

    font-size: 1rem;
}


/* Page Link */

.page-link {
    display: inline-flex;

    margin-top: 28px;

    color: var(--primary);

    font-weight: 700;

    transition:
        transform 0.2s ease;
}


.page-link:hover {
    transform:
        translateX(-5px);
}


/* Right Side Page Link */

.page-item-right
.page-link:hover {
    transform:
        translateX(5px);
}


/* ========================================
   News
======================================== */

.news {
    padding:
        120px 0;
}


.news-list {
    margin-top: 55px;

    border-top:
        1px solid var(--border);
}


.news-item {
    display: grid;

    grid-template-columns:
        140px
        1fr
        auto;

    align-items: center;

    gap: 25px;

    padding:
        25px 5px;

    border-bottom:
        1px solid var(--border);

    transition:
        background 0.2s ease,
        padding 0.2s ease;
}


.news-item:hover {
    padding-left: 15px;

    background:
        #fafaff;
}


.news-item time {
    color: #9ca3af;

    font-size: 0.85rem;
}


.news-title {
    font-size: 1rem;

    font-weight: 600;
}


.news-arrow {
    color: var(--primary);

    font-size: 1.2rem;

    transition:
        transform 0.2s ease;
}


.news-item:hover
.news-arrow {
    transform:
        translateX(5px);
}


/* News More */

.news-more {
    display: inline-flex;

    margin-top: 35px;

    color: var(--primary);

    font-weight: 700;

    transition:
        transform 0.2s ease;
}


.news-more:hover {
    transform:
        translateX(5px);
}


/* ========================================
   Footer
======================================== */

.footer {
    padding-top: 80px;

    background:
        var(--background-soft);

    border-top:
        1px solid var(--border);
}


.footer-container {
    display: flex;

    justify-content: space-between;

    gap: 60px;

    padding-bottom: 70px;
}


/* Footer Brand */

.footer-brand {
    max-width: 350px;
}


.footer-logo {
    font-size: 1.25rem;

    font-weight: 800;

    letter-spacing: -0.04em;
}


.footer-brand p {
    margin-top: 12px;

    color: var(--subtext);

    font-size: 0.9rem;
}


/* Footer Links */

.footer-links {
    display: flex;

    gap: 80px;
}


.footer-link-group {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


.footer-link-group h3 {
    margin-bottom: 5px;

    font-size: 0.9rem;
}


.footer-link-group a {
    color: var(--subtext);

    font-size: 0.9rem;

    transition:
        color 0.2s ease;
}


.footer-link-group a:hover {
    color: var(--primary);
}


/* Footer Bottom */

.footer-bottom {
    padding:
        25px 0;

    border-top:
        1px solid var(--border);

    color: #9ca3af;

    font-size: 0.8rem;
}


/* ========================================
   Responsive
======================================== */

@media (
    max-width: 800px
) {


    /* Header */

    .navigation {
        display: none;
    }


    .menu-button {
        display: block;
    }


    /* Hero */

    .hero-slideshow {
        height: 600px;

        min-height: 0;
    }


    .hero-content h1 {
        font-size: clamp(
            3rem,
            13vw,
            5rem
        );
    }


    .hero-content p {
        font-size: 0.95rem;
    }


    .hero-dots {
        right: 6%;

        bottom: 22px;
    }


    /* Introduction */

    .introduction {
        padding:
            100px 0;
    }


    /* Pages */

    .pages {
        padding:
            90px 0;
    }


    .page-list {
        margin-top: 60px;

        gap: 70px;
    }


    .page-item {
        grid-template-columns:
            1fr;

        gap: 30px;
    }


    /* 右側の項目も
       スマホでは画像 → テキスト */

    .page-item-right
    .page-image {
        order: 1;
    }


    .page-item-right
    .page-content {
        order: 2;
    }


    /* Link */

    .page-link:hover,
    .page-item-right
    .page-link:hover {
        transform: none;
    }


    /* News */

    .news {
        padding:
            90px 0;
    }


    .news-item {
        grid-template-columns:
            1fr
            auto;

        gap: 10px;

        padding:
            22px 0;
    }


    .news-item time {
        grid-column:
            1 / 2;
    }


    .news-title {
        grid-column:
            1 / 2;
    }


    .news-arrow {
        grid-column:
            2;

        grid-row:
            1 / 3;
    }


    .news-item:hover {
        padding-left: 0;
    }


    /* Footer */

    .footer-container {
        flex-direction: column;

        gap: 50px;
    }


    .footer-links {
        gap: 50px;
    }

    .navigation.open {
    display: flex;

    position: absolute;

    top: 72px;
    left: 0;

    width: 100%;

    flex-direction: column;

    align-items: flex-start;

    gap: 0;

    padding: 15px 6% 25px;

    background: white;

    border-bottom:
        1px solid var(--border);

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, 0.05);
}

.navigation.open .nav-link {
    width: 100%;

    padding: 12px 0;
}

.navigation.open .btn-link {
    width: 100%;

    padding: 12px 0;
}

.navigation.open .nav-link::after {
    display: none;
}

.navigation.open .btn-link::after {
    display: none;
}


@media (
    max-width: 480px
) {

    .header-container,
    .container,
    .hero-content {
        width: 90%;
    }


    .hero-content h1 {
        letter-spacing:
            -0.055em;
    }


    .page-content h3 {
        font-size: 2.2rem;
    }


    .footer-links {
        flex-direction: column;

        gap: 35px;
    }

}}

/* ========================================
   Language Selector
======================================== */

.language-selector {
    position: relative;
}


.language-button {
    display: flex;

    align-items: center;

    gap: 7px;

    padding: 8px 12px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: white;

    color: var(--text);

    font-family: inherit;

    font-size: 14px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}


.language-button:hover {
    background: #f7f7f7;

    border-color: #ccc;
}


.language-arrow {
    font-size: 13px;

    margin-left: 2px;
}


/* Dropdown */

.language-menu {
    position: absolute;

    top: calc(100% + 8px);

    right: 0;

    min-width: 170px;

    padding: 6px;

    background: white;

    border: 1px solid var(--border);

    border-radius: 12px;

    box-shadow:
        0 12px 30px
        rgba(0, 0, 0, 0.08);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-5px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;

    z-index: 100;
}


.language-menu.open {
    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);
}


/* Language option */

.language-option {
    display: block;

    width: 100%;

    padding: 9px 11px;

    border: none;

    border-radius: 8px;

    background: transparent;

    text-align: left;

    font-family: inherit;

    font-size: 14px;

    cursor: pointer;

    transition:
        background 0.15s ease;
}


.language-option:hover {
    background: #f3f3f3;
}