
:root {
    --primary-color: #FF6600; 
    --secondary-color: #007BFF; 
    --text-color: #333;
    --light-gray: #f4f4f4;
    --dark-gray: #222;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--dark-gray);
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}


h2 .section-title-icon {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
}

h2 .section-title-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    background-color: #fff;
    border-radius: 50%;
}



.main-header {
    background-color: var(--dark-gray);
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2em;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: #fff;
    font-weight: 700;
    font-size: 1.1em;
    position: relative;
}


.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
    width: 100%;
}


.hero-section {
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.4)), url('https://via.placeholder.com/1920x800?text=Dragon+Ball+Background') no-repeat center center/cover;
    color: #fff;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 50px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.hero-content h2 {
    font-size: 4em;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 30px;
    line-height: 1.5;
}

.hero-image {
    position: absolute;
    right: 50px;
    bottom: -50px; 
    z-index: 0;
}


.hero-image img {
    max-height: 600px;
    filter: drop-shadow(5px 5px 15px rgba(255, 102, 0, 0.5));
    animation: floatImage 3s ease-in-out infinite alternate;
}

@keyframes floatImage {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}



.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.4);
}

.btn-primary:hover {
    background-color: #fff;
    color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(255, 102, 0, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-top: 20px;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-primary2, .btn-secondary2 {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-primary2 {
    color: black;
    box-shadow: 0 5px 15px white;
}

.btn-primary2:hover {
    background-color: white;
    color: white;
    box-shadow: 0 8px 20px white;
}

.btn-secondary2 {
    background-color: transparent;
    color: white;
    border: 2px solid ;
    margin-top: 20px;
}

.btn-secondary2:hover {
    background-color: white;
    color: white;
}

.btn-primary3, .btn-secondary3 {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-primary3{
    color: white;
    box-shadow: 0 5px 15px #333;
}

.btn-primary3{
    background-color: #333;
    color: white;
    box-shadow: 0 8px 20px #333;
}

.btn-secondary3 {
    background-color: transparent;
    color: white;
    border: 2px solid ;
    margin-top: 20px;
}

.btn-secondary3:hover {
    background-color: #333;
    color: #333;
}


.text-center {
    text-align: center;
}


.news-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-item{
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-item p.news-date {
    font-size: 0.9em;
    color: #888;
    padding: 15px 20px 5px;
}

.news-item h3 {
    font-size: 1.3em;
    padding: 0 20px 20px;
    margin-bottom: 0;
    color: var(--dark-gray);
}


.characters-section {
    padding: 80px 0;
    background-color: var(--dark-gray);
    color: #fff;
}

.characters-section h2 {
    color: #fff;
}


.characters-slider {
    display: flex;
    overflow-x: auto; 
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px; 
    gap: 20px;
}

.character-card {
    flex: 0 0 auto;
    width: 220px;
    background-color: #333;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}


.character-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.character-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary-color);
}

.character-card h3 {
    color: #fff;
    margin: 15px 0;
    font-size: 1.2em;
}


.main-footer {
    background-color: var(--dark-gray);
    color: #bbb;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #444;
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        text-align: center;
    }

    .main-nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav ul li {
        margin: 5px 10px;
    }

    .hero-section {
        flex-direction: column;
        height: auto;
        padding: 50px 20px;
        text-align: center;
    }

    .hero-content h2 {
        font-size: 3em;
    }

    .hero-image {
        position: static;
        margin-top: 20px;
    }

    .hero-image img {
        max-height: 400px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .character-card {
        width: 180px; 
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5em;
    }

    .main-nav ul li a {
        font-size: 1em;
    }

    .hero-content h2 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1.2em;
    }

    h2 {
        font-size: 2em;
    }
}