/*
Theme Name: 株式会社4craft
Description: 株式会社4craftのコーポレートWordPressテーマ
Version: 1.0.0
Author: 4craft
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* WordPress body classes */
body.home .hero,
body.front-page .hero {
    display: flex;
}

body.page .hero {
    display: none;
}

body.single .hero {
    display: none;
}

/* Front page specific styles */
body.front-page {
    overflow-x: hidden;
}

body.front-page .hero {
    min-height: 100vh;
}

/* Ensure front-page sections are visible */
body.front-page .services,
body.front-page .works,
body.front-page .about,
body.front-page .careers,
body.front-page .press-releases,
body.front-page .contact {
    display: block;
}

/* WordPress specific resets */
body.admin-bar .navbar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .navbar {
        top: 46px;
    }
}

body.admin-bar .hero {
    padding-top: 152px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .hero {
        padding-top: 166px;
    }
}

/* Remove WordPress default margins */
.wp-block-group,
.wp-block-columns,
.wp-site-blocks,
.wp-block-post-content {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

/* Ensure front-page layout is not affected by block styles */
body.front-page .wp-site-blocks {
    padding: 0 !important;
    margin: 0 !important;
}

body.front-page main {
    padding: 0 !important;
    margin: 0 !important;
}

/* WordPress alignment classes */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

.aligncenter {
    display: block;
    margin: 5px auto;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* WordPress Images */
img {
    height: auto;
    max-width: 100%;
}

.size-auto,
.size-full,
.size-large,
.size-medium,
.size-thumbnail {
    max-width: 100%;
    height: auto;
}

/* WordPress Blocks */
.wp-block-image {
    margin: 0 0 1em 0;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
}

/* WordPress Gallery */
.wp-block-gallery {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.wp-block-gallery .blocks-gallery-item,
.wp-block-gallery .wp-block-image {
    margin: 0 16px 16px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

/* Accessibility improvements */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #333333;
    font-family: 'Noto Sans JP', sans-serif;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 1200px !important;
}

.nav-brand {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    background: transparent !important;
}

.nav-brand a,
.nav-brand .logo-link {
    background: transparent !important;
    display: block !important;
}

.nav-brand .logo,
.nav-brand img,
.nav-brand .custom-logo-link img {
    height: 40px !important;
    width: auto !important;
    max-width: 150px !important;
    object-fit: contain !important;
    display: block !important;
    background: transparent !important;
    mix-blend-mode: normal !important;
}

/* Ensure only one logo shows */
.nav-brand .custom-logo-link {
    display: block !important;
    background: transparent !important;
}

.nav-brand .custom-logo-link + img {
    display: none !important;
}

.nav-brand .logo-link {
    background: transparent !important;
    display: block !important;
}

.nav-links {
    display: flex !important;
    align-items: center !important;
    gap: 2rem !important;
    flex-direction: row !important;
}

.nav-links ul,
.primary-menu {
    list-style: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 2rem !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-direction: row !important;
}

.nav-links li,
.primary-menu li {
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
}

.nav-links a,
.primary-menu a {
    text-decoration: none !important;
    color: #333333 !important;
    font-weight: 500 !important;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
    display: inline-block !important;
    white-space: nowrap !important;
}

.nav-links a:hover,
.primary-menu a:hover {
    color: #FFD200 !important;
}

/* Override WordPress menu defaults */
.nav-links .menu,
.nav-links .menu ul,
.primary-menu {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-links .menu li,
.primary-menu li {
    float: none !important;
    display: inline-block !important;
    margin: 0 !important;
}

.mobile-menu-toggle {
    display: none !important;
    font-size: 1.5rem;
    color: #333333;
    cursor: pointer;
}

/* Force hide mobile menu toggle on desktop */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .nav-links {
        display: flex !important;
        position: static !important;
        background: none !important;
        width: auto !important;
        height: auto !important;
        flex-direction: row !important;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: #FFD200;
    color: #333333;
    border-color: #FFD200;
}

.btn-primary:hover {
    background-color: #e6bd00;
    border-color: #e6bd00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 210, 0, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: #333333;
    border-color: #333333;
}

.btn-outline:hover {
    background-color: #333333;
    color: #ffffff;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    background: linear-gradient(rgba(248, 249, 250, 0.95), rgba(255, 255, 255, 0.95)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    padding: 120px 0 80px !important;
    position: relative;
    width: 100% !important;
    box-sizing: border-box !important;
}

.hero-content {
    max-width: 800px !important;
    margin: 0 auto !important;
    text-align: center !important;
    width: 100% !important;
    padding: 0 20px !important;
}

.logo-container {
    margin-bottom: 3rem !important;
    text-align: center !important;
}

.logo-container {
    margin-bottom: 3rem;
}

.hero-logo {
    max-width: 350px !important;
    height: auto !important;
    margin: 0 auto 2rem auto !important;
    object-fit: contain !important;
    display: block !important;
    text-align: center !important;
    background: transparent !important;
    mix-blend-mode: normal !important;
}

.logo-container {
    background: transparent !important;
}

.hero-headline {
    font-size: 3rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.hero-subtext {
    font-size: 1.2rem;
    color: #666666;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-cta {
    margin-top: 2rem;
}

/* Section Styles */
section {
    padding: 80px 0;
    position: relative;
}

section:first-of-type {
    padding-top: 120px;
}

.section-title {
    text-align: center !important;
    margin-bottom: 4rem !important;
    font-size: 2.5rem !important;
    color: #333333 !important;
    position: relative !important;
    width: 100% !important;
    display: block !important;
}

.section-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: -10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60px !important;
    height: 3px !important;
    background-color: #FFD200 !important;
    display: block !important;
}

/* Services Section */
.services {
    background-color: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

@supports not (display: grid) {
    .services-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .service-card {
        flex: 1;
        min-width: 300px;
        margin-right: 2rem;
        margin-bottom: 2rem;
    }
    
    .service-card:last-child {
        margin-right: 0;
    }
}

.service-card {
    background: #ffffff;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background-color: #FFD200;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: #333333;
    flex-shrink: 0;
}

.service-icon i {
    font-size: 2rem;
    color: #333333;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333333;
}

.service-description {
    color: #666666;
    line-height: 1.6;
}

/* Works Section */
.works {
    background-color: #ffffff;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

@supports not (display: grid) {
    .works-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .work-item {
        flex: 1;
        min-width: 350px;
        margin-right: 1rem;
        margin-bottom: 2rem;
    }
    
    .work-item:nth-child(2n) {
        margin-right: 0;
    }
}

.work-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.work-item:hover {
    transform: translateY(-5px);
}

.work-image {
    position: relative;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-item:hover .work-image img {
    transform: scale(1.05);
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #ffffff;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.work-item:hover .work-overlay {
    transform: translateY(0);
}

.work-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.work-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* About Section */
.about {
    background-color: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.company-info {
    margin: 2rem 0;
}

.info-item {
    display: flex;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.info-item strong {
    min-width: 100px;
    color: #333333;
    font-weight: 600;
}

.info-item span {
    color: #666666;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555555;
}

.about-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-map iframe {
    width: 100%;
    height: 300px;
    border: none;
}

/* Careers Section */
.careers {
    background-color: #ffffff;
    text-align: center;
}

.careers-content {
    max-width: 600px;
    margin: 0 auto;
}

.careers-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555555;
    margin-bottom: 3rem;
}

/* Contact Section */
.contact {
    background-color: #f8f9fa;
}

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

.contact-form {
    background: #ffffff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #333333;
    font-size: 1rem;
    line-height: 1.4;
}

.required {
    color: #dc3545;
    font-weight: 700;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.5;
    transition: all 0.3s ease;
    background: #ffffff;
    min-height: 56px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FFD200;
    box-shadow: 0 0 0 4px rgba(255, 210, 0, 0.15);
    transform: translateY(-1px);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #FFD200;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.7;
    font-size: 1rem !important;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 20px;
    padding-right: 60px;
    height: 56px !important;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-group select:hover {
    border-color: #FFD200;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23333"><path d="M7 10l5 5 5-5z"/></svg>');
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.form-group select:focus {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFD200"><path d="M7 10l5 5 5-5z"/></svg>');
    box-shadow: 0 0 0 4px rgba(255, 210, 0, 0.15);
    transform: translateY(-1px);
}

.form-group select option {
    padding: 16px 20px;
    background: #ffffff;
    color: #333333;
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 400;
    border-bottom: 1px solid #f0f0f0;
}

.form-group select option:hover {
    background-color: #f8f9fa;
    color: #FFD200;
}

.form-group select option:checked {
    background-color: #FFD200;
    color: #333333;
    font-weight: 600;
}

/* Select placeholder styling */
.form-group select:invalid {
    color: #999;
}

.form-group select option[value=""] {
    color: #999;
    font-style: italic;
}

/* Enhanced select container */
.form-group select {
    position: relative;
    background-color: #ffffff;
}

.form-group select::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 210, 0, 0.02), rgba(255, 210, 0, 0.05));
    border-radius: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-group select:hover::before,
.form-group select:focus::before {
    opacity: 1;
}

.privacy-agreement {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #FFD200;
}

.privacy-text {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #555;
    font-size: 0.95rem;
}

.privacy-text a {
    color: #FFD200;
    text-decoration: none;
    font-weight: 600;
}

.privacy-text a:hover {
    text-decoration: underline;
}

.checkbox-group {
    position: relative;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.checkmark {
    flex-shrink: 0;
    height: 20px;
    width: 20px;
    background-color: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    margin-right: 12px;
    margin-top: 2px;
    transition: all 0.3s ease;
    position: relative;
}

.checkbox-label:hover input ~ .checkmark {
    border-color: #FFD200;
}

.checkbox-label input:checked ~ .checkmark {
    background-color: #FFD200;
    border-color: #FFD200;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #333;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
    font-weight: 500;
}

.error-message.show {
    display: block;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.success-message {
    background: #ffffff;
    padding: 4rem 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.success-content i {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1.5rem;
}

.success-content h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.success-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Responsive Form Styles */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .privacy-agreement {
        padding: 1.5rem;
    }
    
    .success-message {
        padding: 3rem 2rem;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 1.5rem;
    }
    
    .success-content i {
        font-size: 3rem;
    }
}

/* ==== 4CRAFT INC. FOOTER STYLES ==== */
.footer-4craft {
    background-color: #111 !important;
    color: #fff !important;
    padding: 3rem 0 !important;
    font-family: 'Noto Sans JP', sans-serif !important;
    width: 100% !important;
    margin: 0 !important;
}

.footer-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.footer-company {
    margin-bottom: 2rem;
}

.footer-company-name {
    font-size: 1.8rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 0.75rem !important;
    color: #fff !important;
    text-align: center !important;
}

.footer-slogan {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #ccc;
    margin-bottom: 0;
}

.footer-nav {
    margin: 2.5rem 0;
}

.footer-nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

.footer-nav-link {
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.05em !important;
    transition: color 0.3s ease !important;
    position: relative !important;
    border: none !important;
    outline: none !important;
}

.footer-nav-link:hover,
.footer-nav-link:visited,
.footer-nav-link:focus,
.footer-nav-link:active {
    color: #ccc !important;
    text-decoration: none !important;
}

.footer-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #fff;
    transition: width 0.3s ease;
}

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

.footer-social {
    margin: 2.5rem 0;
}

.footer-social-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.footer-social-link {
    color: #ccc !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.05em !important;
    transition: color 0.3s ease !important;
    border: none !important;
    outline: none !important;
}

.footer-social-link:hover,
.footer-social-link:visited,
.footer-social-link:focus,
.footer-social-link:active {
    color: #fff !important;
    text-decoration: none !important;
}

.footer-copyright {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.footer-copyright-text {
    font-size: 0.85rem !important;
    font-weight: 300 !important;
    color: #888 !important;
    letter-spacing: 0.03em !important;
}

/* WordPress theme link override */
.footer-4craft a,
.footer-4craft a:link,
.footer-4craft a:visited,
.footer-4craft a:hover,
.footer-4craft a:active {
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.footer-4craft .footer-nav-link,
.footer-4craft .footer-nav-link:link,
.footer-4craft .footer-nav-link:visited {
    color: #fff !important;
}

.footer-4craft .footer-nav-link:hover,
.footer-4craft .footer-nav-link:focus,
.footer-4craft .footer-nav-link:active {
    color: #ccc !important;
}

.footer-4craft .footer-social-link,
.footer-4craft .footer-social-link:link,
.footer-4craft .footer-social-link:visited {
    color: #ccc !important;
}

.footer-4craft .footer-social-link:hover,
.footer-4craft .footer-social-link:focus,
.footer-4craft .footer-social-link:active {
    color: #fff !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .navbar .container {
        flex-wrap: nowrap;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem;
        transition: right 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.mobile-nav-open {
        right: 0;
    }
    
    .nav-links ul,
    .primary-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .nav-links a,
    .primary-menu a {
        padding: 1rem 0;
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-links .btn {
        margin-top: 1rem;
        padding: 12px 24px;
        width: auto;
        border-bottom: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: 80vh;
    }
    
    .hero-headline {
        font-size: 2rem;
    }
    
    .hero-subtext {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* ==== 4CRAFT INC. FOOTER RESPONSIVE (768px and below) ==== */
    .footer-4craft {
        padding: 2.5rem 0;
    }

    .footer-container {
        padding: 0 1.5rem;
    }

    .footer-company-name {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .footer-slogan {
        font-size: 0.9rem;
    }

    .footer-nav-list {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .footer-nav-link {
        font-size: 1rem;
    }

    .footer-social-list {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .footer-social-link {
        font-size: 0.95rem;
    }

    .footer-nav,
    .footer-social {
        margin: 2rem 0;
    }

    .footer-copyright {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 1.8rem;
    }
    
    .hero-subtext {
        font-size: 0.9rem;
    }
    
    .hero-logo {
        max-width: 250px;
    }
    
    .nav-brand .logo,
    .nav-brand img {
        height: 35px;
        max-width: 120px;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

/* Animations and Transitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #FFD200;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

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

/* Utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 2rem; }
.p-4 { padding: 3rem; }

/* ==== PRESS RELEASES - REFINED LAYOUT ==== */
/* Main Press Releases Section */
.press-releases {
    background-color: #ffffff;
    padding: 4rem 0;
}

.press-releases-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Legacy grid for existing content */
.press-releases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* ==== NEW REFINED PRESS RELEASES STYLES ==== */
/* Press Releases – refined list */
.press-wrap { 
    max-width: 760px !important; 
    margin: 0 auto !important; 
    padding: 0 2rem !important;
}

.press-head { 
    margin-bottom: 1.25rem !important; 
    text-align: center !important;
}

.press-title-en { 
    font-size: clamp(28px, 4vw, 36px) !important; 
    line-height: 1.2 !important; 
    margin: 0 !important; 
    font-weight: 700 !important;
    color: #333 !important;
}

.press-title-ja { 
    margin: .25rem 0 0 !important; 
    color: #666 !important; 
    font-size: .95rem !important; 
    font-weight: 400 !important;
}

.press-divider { 
    border: 0 !important; 
    border-top: 1px solid #eee !important; 
    margin: .75rem 0 0 !important; 
    width: 100% !important;
}

.press-list { 
    margin-top: 1rem !important; 
}

.press-item { 
    padding: 1.5rem 0 !important; 
    border-bottom: 1px solid #eee !important; 
}

.press-item:last-child {
    border-bottom: none !important;
}

.press-item-head { 
    position: relative !important; 
    margin-bottom: 0.5rem !important;
}

.press-date { 
    font-size: .92rem !important; 
    color: #777 !important; 
    display: inline-block !important; 
    font-weight: 400 !important;
}

.press-cat { 
    position: absolute !important; 
    right: 0 !important; 
    top: 0 !important; 
    font-size: .8rem !important; 
    color: #999 !important;
    text-transform: uppercase !important; 
    letter-spacing: .06em !important; 
    font-weight: 500 !important;
}

.press-item-title { 
    margin: .5rem 0 0 !important; 
    font-weight: 700 !important; 
    line-height: 1.35 !important; 
    font-size: 1.1rem !important;
}

.press-item-title a { 
    text-decoration: none !important; 
    color: #333 !important;
    transition: color 0.3s ease !important;
}

.press-item-title a:hover { 
    text-decoration: underline !important; 
    color: #5b6bff !important;
}

.press-excerpt { 
    margin: .6rem 0 0 !important; 
    color: #555 !important; 
    font-size: .97rem !important; 
    line-height: 1.7 !important; 
}

.press-more { 
    text-align: center !important; 
    margin-top: 1.25rem !important; 
    padding-top: 1rem !important;
}

.press-more-link { 
    text-decoration: none !important; 
    border-bottom: 1px solid #ddd !important; 
    padding-bottom: .1rem !important; 
    color: #333 !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.press-more-link:hover { 
    border-color: #333 !important; 
    color: #5b6bff !important;
}

/* Mobile responsive */
@media (max-width: 599px) {
    .press-wrap {
        padding: 0 1rem !important;
    }
    
    .press-cat { 
        position: static !important; 
        display: inline-block !important; 
        margin-left: .5rem !important; 
    }
    
    .press-title-en {
        font-size: clamp(24px, 6vw, 28px) !important;
    }
    
    .press-item {
        padding: 1rem 0 !important;
    }
}

/* Legacy press release styles - kept for backward compatibility */
.press-releases-cta {
    text-align: center;
    margin-top: 3rem;
}

.no-press-releases {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
    font-style: italic;
}

/* Press Release Type Colors */
.press-type-product {
    background: #28a745 !important;
    color: white !important;
}

.press-type-business {
    background: #007bff !important;
    color: white !important;
}

.press-type-partnership {
    background: #6f42c1 !important;
    color: white !important;
}

.press-type-award {
    background: #fd7e14 !important;
    color: white !important;
}

.press-type-personnel {
    background: #20c997 !important;
    color: white !important;
}

.press-type-event {
    background: #e83e8c !important;
    color: white !important;
}

.press-type-other {
    background: #6c757d !important;
    color: white !important;
}

/* Make sure press-releases section is visible on front-page */
body.front-page .press-releases {
    display: block;
}

/* Responsive Press Releases */
@media (max-width: 768px) {
    .press-releases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .press-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .press-card-type {
        align-self: flex-start;
    }
}

/* ==== 4CRAFT INC. FOOTER RESPONSIVE (480px and below) ==== */
@media (max-width: 480px) {
    .footer-container {
        padding: 0 1rem;
    }

    .footer-company-name {
        font-size: 1.3rem;
    }

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

    .footer-nav-link,
    .footer-social-link {
        font-size: 0.9rem;
    }
}