/*
Theme Name: OSPS
Theme URI: https://osps.jimdosite.com/
Author: OSPS
Author URI: https://osps.jimdosite.com/
Description: Custom WordPress theme for OSPS - Financial support services based in Osaka, Japan.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: osps
Tags: business, corporate, japanese, custom-menu, featured-images, translation-ready
*/

/* Reset & Base */
* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

:root {
    --primary-pink: #FFEBEB;
    --secondary-pink: #F9B8B8;
    --card-pink: #FFD1D1;
    --text-dark: #333333;
    --white: #FFFFFF;
    --black: #000000;
    --headline-font: 'Kosugi Maru', sans-serif;
    --body-font: 'Zen Maru Gothic', sans-serif;
}

body {
    font-family: var(--body-font);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--headline-font);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
}

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

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

/* Header */
.site-header {
    background-color: var(--white);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    pointer-events: auto;
}

.site-header * {
    pointer-events: auto;
}

.header-inner {
    display: flex;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
}

.main-nav {
    margin-right: 20px;
}

.site-logo img {
    height: 50px;
    width: auto;
}

.site-logo .site-name {
    font-family: var(--headline-font);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

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

.main-nav li {
    list-style: none;
}

.main-nav a {
    font-size: 14px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
    color: var(--header-text-color, var(--text-dark));
}

.main-nav a:hover {
    color: var(--secondary-pink);
}

.header-contact-btn {
    display: inline-block;
    background-color: #000000;
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 5px;
    font-size: 14px;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.header-contact-btn:hover {
    color: var(--white) !important;
    opacity: 0.8;
}

.main-nav .current-menu-item a::after,
.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--header-text-color, var(--text-dark));
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px;
    position: relative;
    z-index: 9999;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background-color: var(--header-text-color, var(--text-dark));
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 40px 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--black);
    color: var(--white);
    border-radius: 5px;
    font-size: 14px;
    transition: opacity 0.3s;
}

.btn:hover {
    opacity: 0.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 14px;
    height: 7px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* News Section */
.news-section {
    background-color: var(--primary-pink);
    padding: 60px 0;
}

.news-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.news-header h3 {
    font-size: 24px;
    margin: 0;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.news-item:last-child {
    border-bottom: none;
}

.news-item a {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 15px 0;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

.news-item a:hover {
    opacity: 0.7;
}

.news-item time {
    font-size: 14px;
    color: #666;
    flex-shrink: 0;
}

.news-item-title {
    font-size: 16px;
}

.news-empty {
    font-size: 16px;
    margin: 0;
}

/* Services Section */
.services-section {
    background-color: var(--secondary-pink);
    padding: 60px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background-color: var(--card-pink);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card-content {
    padding: 20px;
}

.service-card h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-card h3 {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

/* Business Section */
.business-section {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.business-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 235, 235, 0.8);
}

.business-content {
    position: relative;
    text-align: center;
}

.business-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.business-content p {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* CTA Section */
.cta-section {
    background-color: #f5f5f5;
    padding: 60px 0;
}

.cta-content {
    text-align: center;
}

.cta-text {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.cta-note {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

/* Contact Section */
.contact-section {
    background-color: var(--white);
    padding: 80px 0;
}

.contact-inner {
    max-width: 600px;
    margin: 0 auto;
}

.contact-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group label .required {
    color: #e74c3c;
    font-size: 12px;
    margin-left: 5px;
}

.form-group input,
.form-group textarea,
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--body-font);
    font-size: 16px;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-pink);
}

.privacy-notice {
    font-size: 14px;
    margin-bottom: 20px;
}

.privacy-notice a {
    color: var(--text-dark);
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--black);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.submit-btn:hover {
    opacity: 0.8;
}

/* Contact Form 7 Styles */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--body-font);
    font-size: 16px;
    margin-bottom: 20px;
}

.wpcf7 input[type="submit"] {
    width: 100%;
    padding: 15px;
    background-color: var(--black);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.wpcf7 input[type="submit"]:hover {
    opacity: 0.8;
}

/* Footer */
.site-footer {
    background-color: var(--white);
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-dark);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-pink);
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    list-style: none;
}

.footer-nav a {
    font-size: 14px;
    color: var(--footer-text-color, var(--text-dark));
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--secondary-pink);
}

.footer-copyright {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero h3 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        position: relative;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 20;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 5;
    }

    .main-nav.active {
        display: block;
    }

    .site-logo {
        max-width: calc(100% - 180px);
        overflow: hidden;
    }

    .header-contact-btn {
        display: inline-block;
        padding: 8px 16px;
        font-size: 12px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }

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

    .hero h1 {
        font-size: 32px;
    }

    .hero h3 {
        font-size: 18px;
    }

    .hero p {
        font-size: 16px;
    }

    .news-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .news-item a {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }

    .business-section {
        background-attachment: scroll;
    }

    .footer-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}
