/*
Theme Name: 初めての就労移行ナビ
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: 障がい者の就職・転職を支援するアフィリエイトサイト向けのWordPressテーマ。信頼感と安心感を重視したデザインで、就労移行支援サービスの情報を提供します。完全レスポンシブ対応でスマートフォンやタブレットにも最適化されています。
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: employment-support
Tags: accessibility, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready, responsive-layout, mobile-first
*/

:root {
    --primary-navy: #2c4a6b;
    --primary-blue: #4a7ba7;
    --accent-green: #6b9080;
    --accent-warm: #d4a574;
    --bg-cream: #f8f6f1;
    --bg-light: #ffffff;
    --text-dark: #2d3748;
    --text-medium: #4a5568;
    --text-light: #718096;
    --border-color: #e2dfd8;
}

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-dark);
    line-height: 1.8;
    background-color: var(--bg-cream);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
    color: white;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title,
.logo {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.site-title a {
    color: white;
    text-decoration: none;
}

.header-nav a,
.main-navigation a {
    color: white;
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: opacity 0.3s;
}

.header-nav a:hover,
.main-navigation a:hover {
    opacity: 0.8;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle:hover {
    opacity: 0.8;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .header-container {
        position: relative;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-navy);
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

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

    .main-navigation a,
    .header-nav a {
        display: block;
        margin: 0;
        padding: 0.75rem 2rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .main-navigation a:last-child {
        border-bottom: none;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(255,255,255,0.98)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%234a7ba7" opacity="0.05" width="1200" height="400"/><circle cx="100" cy="100" r="60" fill="%236b9080" opacity="0.1"/><circle cx="1100" cy="300" r="80" fill="%23d4a574" opacity="0.1"/></svg>');
    padding: 5rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-family: 'Noto Serif JP', serif;
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 3rem;
    line-height: 1.9;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-green) 0%, #5a8070 100%);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 144, 128, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 144, 128, 0.4);
}

/* Features Section */
.features {
    padding: 4rem 2rem;
    background: var(--bg-light);
    width: 100%;
    overflow-x: hidden;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    overflow-x: hidden;
}

.section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 2rem;
    color: var(--primary-navy);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--accent-green), var(--accent-warm));
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
    max-width: 100%;
}

.feature-card {
    background: var(--bg-cream);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease-out backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card:hover {
    border-color: var(--accent-green);
    box-shadow: 0 8px 25px rgba(107, 144, 128, 0.15);
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.feature-card h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.3rem;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-medium);
    line-height: 1.8;
}

/* Main Content Navigation */
.main-nav {
    padding: 5rem 2rem;
    background: var(--bg-cream);
    width: 100%;
    overflow-x: hidden;
}

.main-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    overflow-x: hidden;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    width: 100%;
    max-width: 100%;
}

.nav-card {
    background: var(--bg-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
    animation: slideIn 0.6s ease-out backwards;
}

.nav-card:nth-child(1) { animation-delay: 0.1s; }
.nav-card:nth-child(2) { animation-delay: 0.2s; }
.nav-card:nth-child(3) { animation-delay: 0.3s; }
.nav-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.nav-card-header {
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
    color: white;
    position: relative;
    overflow: hidden;
}

.nav-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.nav-card-number {
    font-family: 'Noto Serif JP', serif;
    font-size: 3rem;
    font-weight: 700;
    opacity: 0.3;
    position: relative;
}

.nav-card h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.5rem;
    margin-top: 0.5rem;
    position: relative;
}

.nav-card-body {
    padding: 2rem;
}

.nav-card-body p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.nav-card-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.nav-card-link:hover {
    color: var(--accent-green);
    transform: translateX(5px);
}

.nav-card-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: margin-left 0.3s;
}

.nav-card-link:hover::after {
    margin-left: 1rem;
}

/* Trust Section */
.trust-section {
    padding: 4rem 2rem;
    background: var(--bg-light);
    text-align: center;
    width: 100%;
    overflow-x: hidden;
}

.trust-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    overflow-x: hidden;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.trust-badge {
    text-align: center;
}

.trust-badge-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-warm));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.trust-badge h4 {
    font-family: 'Noto Serif JP', serif;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.trust-badge p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Footer */
footer,
.site-footer {
    background: var(--primary-navy);
    color: rgba(255,255,255,0.8);
    padding: 3rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* WordPress specific styles */
.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.entry-content {
    line-height: 1.8;
    color: var(--text-dark);
}

/* Policy Pages Styling */
.page .site-content {
    background: var(--bg-light);
    padding: 4rem 2rem;
}

.page .entry-content {
    max-width: 800px;
    margin: 0 auto;
}

.page .entry-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.page .entry-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

/* Policy Intro Box - Green Left Border */
.entry-content > div:first-of-type {
    background: var(--bg-cream) !important;
    padding: 2rem !important;
    border-left: 4px solid var(--accent-green) !important;
    margin-bottom: 2.5rem !important;
    line-height: 1.9 !important;
    border-radius: 0 4px 4px 0 !important;
}

/* Section Headings */
.entry-content h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.5rem;
    color: var(--primary-navy);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--accent-green);
    font-weight: 700;
}

.entry-content h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.25rem;
    color: var(--primary-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Content Styling */
.entry-content p {
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1rem;
}

.entry-content ul {
    margin: 1.5rem 0 2rem 2.5rem;
    line-height: 1.9;
}

.entry-content li {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    padding-left: 0.5rem;
}

.entry-content li::marker {
    color: var(--accent-green);
}

/* Footer Info Box */
.entry-content hr {
    margin: 4rem 0 3rem 0;
    border: none;
    border-top: 2px solid var(--border-color);
}

.entry-content div[style*="text-align: center"],
.entry-content > div:last-of-type {
    background: var(--bg-cream) !important;
    padding: 2rem !important;
    border-radius: 8px !important;
    margin-top: 2rem !important;
    border: 2px solid var(--border-color) !important;
}

.entry-content div[style*="text-align: center"] p {
    margin: 0.5rem 0;
    color: var(--text-medium);
}

/* Responsive for Policy Pages */
@media (max-width: 768px) {
    .page .site-content {
        padding: 2rem 1.5rem;
    }

    .page .entry-title {
        font-size: 1.8rem;
    }

    .entry-content h2 {
        font-size: 1.3rem;
        margin-top: 2rem;
    }

    .entry-content h3 {
        font-size: 1.1rem;
    }

    .entry-content > div:first-of-type {
        padding: 1.5rem !important;
    }

    .entry-content ul {
        margin-left: 1.5rem;
    }
}

@media (max-width: 480px) {
    .page .site-content {
        padding: 1.5rem 1rem;
    }

    .page .entry-title {
        font-size: 1.5rem;
    }

    .entry-content h2 {
        font-size: 1.2rem;
    }

    .entry-content > div:first-of-type {
        padding: 1.25rem !important;
    }
}

/* Responsive Design - Mobile First Approach */

/* Tablet: 768px - 1024px */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 1.5rem;
    }

    .features-grid,
    .nav-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .hero {
        padding: 4rem 1.5rem;
    }

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

    .section-title {
        font-size: 1.75rem;
    }
}

/* Mobile: 480px - 768px */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    /* Header - Mobile Navigation */
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .site-title,
    .logo {
        font-size: 1.3rem;
        text-align: center;
    }

    .header-nav,
    .main-navigation {
        display: none; /* ハンバーガーメニューを実装する場合はJSで制御 */
    }

    /* Hero Section */
    .hero {
        padding: 3rem 1.5rem;
    }

    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

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

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        line-height: 1.7;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }

    /* Features Section */
    .features {
        padding: 3rem 1.5rem;
    }

    .features-container {
        padding: 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-left: 0;
        margin-right: 0;
    }

    .feature-card {
        padding: 2rem 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }

    /* Main Navigation Cards */
    .main-nav {
        padding: 3rem 1.5rem;
    }

    .main-nav-container {
        padding: 0;
    }

    .nav-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-left: 0;
        margin-right: 0;
    }

    .nav-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .nav-card-header {
        padding: 1.5rem;
    }

    .nav-card-number {
        font-size: 2.5rem;
    }

    .nav-card h3 {
        font-size: 1.3rem;
    }

    .nav-card-body {
        padding: 1.5rem;
    }

    .nav-card-body p {
        font-size: 0.95rem;
    }

    /* Trust Section */
    .trust-section {
        padding: 3rem 1.5rem;
    }

    .trust-badges {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .trust-badge {
        max-width: 300px;
    }

    .trust-badge-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    /* Footer */
    footer,
    .site-footer {
        padding: 2rem 1.5rem 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-copyright {
        font-size: 0.85rem;
    }

    /* WordPress Content */
    .site-content {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
}

/* Small Mobile: 320px - 480px */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .features,
    .main-nav,
    .trust-section {
        padding: 2rem 1rem;
    }

    .features-container,
    .main-nav-container,
    .trust-container {
        padding: 0;
    }

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

    .hero h1 br {
        display: none; /* 改行を無効化してテキストを自然に折り返す */
    }

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

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

    .cta-button {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 100%;
    }

    .feature-card,
    .nav-card-body {
        padding: 1.5rem 1rem;
    }

    .nav-card-header {
        padding: 1.25rem;
    }

    .nav-card-number {
        font-size: 2rem;
    }

    .nav-card h3 {
        font-size: 1.2rem;
    }

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

    .trust-badge-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 2rem 1.5rem;
    }

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

    .features,
    .main-nav,
    .trust-section {
        padding: 2rem 1.5rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* タッチデバイス用：タップ領域を拡大 */
    .cta-button,
    .nav-card-link {
        min-height: 44px; /* タッチターゲットの最小サイズ */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-card {
        /* タッチデバイスではホバー効果を無効化 */
        transform: none !important;
    }

    .nav-card:active {
        opacity: 0.9;
    }
}