/*!
Theme Name: YuruFX Portal v2
Theme URI: https://mocha-no-fx.com/
Author: Mochachobin
Description: ゆるっとした雰囲気を保ちながら、成約重視のポータルサイト型FXアフィリエイトテーマ
Version: 2.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
Text Domain: yurufx-portal
Domain Path: /languages
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ========== CSS RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after, q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ========== BASE STYLES ========== */
body {
    font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', sans-serif;
    background-color: #F5F5DC;
    color: #5C4033;
    line-height: 1.8;
    font-weight: 400;
    font-size: 16px;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: #5C4033;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.3rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #D2691E;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FF7F50;
}

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

/* ========== HEADER ========== */
.site-header {
    background-color: #FFFFFF;
    border-bottom: 3px solid #EFEBE9;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: #5C4033;
    text-decoration: none;
}

.site-title a:hover {
    color: #FF7F50;
}

.main-navigation ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

.main-navigation a {
    color: #5C4033;
    font-weight: 500;
    font-size: 1rem;
}

.main-navigation a:hover {
    color: #FF7F50;
}

/* ========== HERO SECTION ========== */
.hero-section {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFE4D6 100%);
    padding: 80px 20px;
    text-align: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-visual {
    flex: 1;
    min-width: 250px;
    max-width: 450px;
}

.hero-image {
    width: 100%;
    height: auto;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: #5C4033;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #6B5344;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ========== CTA BUTTONS ========== */
.cta-button {
    display: inline-block;
    padding: 18px 45px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 127, 80, 0.3);
}

.cta-button--primary {
    background-color: #FF7F50;
    color: #FFFFFF;
}

.cta-button--primary:hover {
    background-color: #FF6B3D;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 127, 80, 0.4);
}

.cta-button--secondary {
    background-color: #F0AD4E;
    color: #FFFFFF;
}

.cta-button--secondary:hover {
    background-color: #EC971F;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 173, 78, 0.4);
}

/* ========== MENU GRID SECTION ========== */
.menu-grid-section {
    background-color: #FFFFFF;
    padding: 60px 20px;
    border-top: 2px solid #EFEBE9;
    border-bottom: 2px solid #EFEBE9;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.menu-grid-item {
    background: linear-gradient(135deg, #FFF8E1 0%, #F5F5DC 100%);
    padding: 25px 20px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #5C4033;
    border: 2px solid transparent;
}

.menu-grid-item:hover {
    background: linear-gradient(135deg, #FFE4D6 0%, #FFF8E1 100%);
    transform: translateY(-5px);
    border-color: #FF7F50;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.menu-grid-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.menu-grid-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #5C4033;
}

/* ========== RANKING SECTION ========== */
.ranking-section {
    background-color: #F5F5DC;
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #5C4033;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ranking-item {
    background-color: #FFFFFF;
    border: 3px solid #FFDAB9;
    border-radius: 15px;
    padding: 40px;
    position: relative;
    transition: all 0.3s ease;
}

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

.ranking-item--featured {
    border-color: #FF7F50;
    border-width: 4px;
    background: linear-gradient(135deg, #FFF8E1 0%, #FFFFFF 100%);
}

.ranking-badge {
    position: absolute;
    top: -15px;
    left: 30px;
    background-color: #FF7F50;
    color: #FFFFFF;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
}

.ranking-item--featured .ranking-badge {
    background-color: #D2691E;
}

.ranking-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 15px;
}

.ranking-logo {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    background-color: #F5F5F5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ranking-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-text {
    flex: 1;
}

.ranking-title {
    font-size: 1.5rem;
    color: #D2691E;
    margin-bottom: 1rem;
}

.ranking-description {
    font-size: 1rem;
    color: #6B5344;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.ranking-features {
    list-style: none;
    margin-bottom: 2rem;
}

.ranking-features li {
    padding: 8px 0;
    color: #5C4033;
    font-weight: 500;
}

.ranking-features li:before {
    content: '✓ ';
    color: #FF7F50;
    font-weight: 700;
    margin-right: 8px;
}

/* ========== BLOG SECTION ========== */
.blog-section {
    background-color: #FFFFFF;
    padding: 80px 20px;
    border-top: 2px solid #EFEBE9;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: #F5F5DC;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.blog-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #EFEBE9;
}

.blog-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-thumbnail img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
}

.blog-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #5C4033;
}

.blog-title a {
    color: #5C4033;
    text-decoration: none;
}

.blog-title a:hover {
    color: #FF7F50;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: #6B5344;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.blog-link {
    color: #FF7F50;
    font-weight: 600;
    text-decoration: none;
}

.blog-link:hover {
    color: #D2691E;
}

/* ========== FOOTER ========== */
.site-footer {
    background-color: #5C4033;
    color: #FFFFFF;
    padding: 40px 20px;
    text-align: center;
    border-top: 3px solid #EFEBE9;
}

.site-info {
    font-size: 0.95rem;
}

/* ========== FLOATING FOOTER BUTTON ========== */
.floating-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #FF7F50;
    padding: 12px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    animation: slideUp 0.3s ease;
    display: none;
}

@media (max-width: 768px) {
    .floating-footer {
        display: block;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.floating-footer--hidden {
    display: none !important;
}

.floating-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
}

.floating-cta-text {
    flex: 1;
}

.floating-cta-arrow {
    font-size: 1.2rem;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-content {
        gap: 30px;
    }

    .hero-visual {
        max-width: 100%;
    }

    .hero-text {
        text-align: center;
    }

    .cta-button {
        padding: 15px 35px;
        font-size: 1rem;
    }

    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .menu-grid-item {
        padding: 20px 15px;
    }

    .menu-grid-icon {
        font-size: 2.5rem;
    }

    .menu-grid-text {
        font-size: 0.85rem;
    }

    .ranking-item {
        padding: 25px;
    }

    .ranking-content {
        flex-direction: column;
        gap: 20px;
    }

    .ranking-logo {
        width: 100%;
        height: 200px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .main-navigation ul {
        gap: 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .container {
        width: 95%;
    }

    .site-header {
        padding: 15px 0;
    }

    .site-title {
        font-size: 1.3rem;
    }

    .hero-section {
        padding: 40px 15px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .menu-grid-item {
        padding: 15px 10px;
    }

    .menu-grid-icon {
        font-size: 2rem;
    }

    .menu-grid-text {
        font-size: 0.8rem;
    }

    .ranking-section {
        padding: 40px 15px;
    }

    .ranking-item {
        padding: 20px;
    }

    .ranking-badge {
        font-size: 0.85rem;
        padding: 6px 15px;
    }

    .ranking-title {
        font-size: 1.2rem;
    }

    .ranking-description {
        font-size: 0.9rem;
    }

    .blog-section {
        padding: 40px 15px;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
    }
}
