/*
Theme Name: IKHWAN Business Theme
Description: IKHWANのビジネスサイト用WordPressテーマ。携帯販売、SES事業、不動産事業に対応したレスポンシブデザイン。
Author: IKHWAN Development Team
Version: 1.1.0
Text Domain: ikhwan
License: GPL v2 or later
*/

/* =============================================================================
   Base Styles & Home Page Styles
   ============================================================================= */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", "Meiryo",
        "メイリオ", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

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

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

/* WordPress Core Styles */
.alignleft {
    float: left;
    margin: 0 1rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1rem;
}

.aligncenter {
    display: block;
    margin: 1rem auto;
    text-align: center;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5rem;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.sticky {
    background: #fffbf0;
    border: 1px solid #e6db55;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

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

.main-navigation {
    display: none;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.main-navigation a:hover,
.main-navigation a:focus {
    color: #007bff;
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero Section */
.hero {
    background-image: url(./assets/images/FV2.png);
    background-position: center;
    background-size: 100% 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 0.1em;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: bold;
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #007bff;
}

.cta-button:hover,
.cta-button:focus {
    background: transparent;
    color: #007bff;
    border-color: #007bff;
}

/* Services Section */
.services {
    padding: 4rem 0;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
}

.section-title p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: #007bff;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.service-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Benefits Section */
.benefits {
    padding: 4rem 0;
    background: #f8f9fa;
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.benefits-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
}

.benefits-text p {
    color: #666;
    margin-bottom: 1.5rem;
}

.benefits-image {
    background: #ddd;
    height: 300px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    overflow: hidden;
}

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

/* Blog Section (Home) */
.blog {
    padding: 4rem 0 0;
    background: white;
}

.blog.blog-page {
    padding: 4rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
}

.blog-image {
    height: 200px;
    background: linear-gradient(45deg, #ffd89b, #19547b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    overflow: hidden;
}

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

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.blog-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.blog-title a {
    color: #333;
    transition: color 0.3s ease;
}

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

.blog-excerpt {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.read-more {
    color: #007bff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #0056b3;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Phone-only contact layout */
.contact-phone-only {
    grid-template-columns: 1fr;
    max-width: 1000px;
    margin: 2rem auto 0;
}

@media (min-width: 768px) {
    .contact-phone-only {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-phone-main {
    background: white;
    color: #333;
    border: none;
}

.contact-phone-main .contact-icon {
    background: #007bff;
    color: white;
}

.contact-phone-main h3 {
    color: #333;
}

.contact-phone-main p {
    color: #666;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #007bff;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-item p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Phone number styling */
.phone-number {
    margin: 1.5rem 0;
}

.phone-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: #007bff;
    border: 2px solid #007bff;
    border-radius: 8px;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.phone-link:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: scale(1.05);
}

.business-hours {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.business-hours p {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

/* Company info styling */
.company-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.company-info strong {
    color: #007bff;
    font-size: 1rem;
}

/* Enhanced company details styling */
.company-details {
    text-align: left;
}

.company-basic-info {
    margin-bottom: 2rem;
}

.company-basic-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}

.company-basic-info strong {
    color: #007bff;
    font-size: 1rem;
}

.company-partners,
.company-services {
    margin-bottom: 1.5rem;
}

.company-partners h4,
.company-services h4 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
    text-align: center;
}

.partners-list,
.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.partners-list li,
.services-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.85rem;
    color: #555;
    transition: color 0.3s ease;
}

.partners-list li:last-child,
.services-list li:last-child {
    border-bottom: none;
}

.partners-list li:hover,
.services-list li:hover {
    color: #007bff;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.service-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    color: #555;
}

.service-list li:last-child {
    border-bottom: none;
}

.services-offered {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.services-offered h4 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.contact-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-message {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-phone:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea571 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

.phone-icon {
    font-size: 1.3rem;
}

/* Footer */
.site-footer {
    background: #333;
    color: white;
    padding: 2rem 0 1rem;
    text-align: center;
}

.footer-content {
    margin-bottom: 1rem;
}

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

.footer-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.footer-navigation a {
    color: #ccc;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.site-info {
    color: #ccc;
    font-size: 0.8rem;
    border-top: 1px solid #555;
    padding-top: 1rem;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

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

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

/* Fixed Phone Contact Button */
.phone-contact-fixed {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1001;
}

.phone-contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    animation: phoneCallPulse 2s infinite;
}

.phone-contact-link:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea571 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    animation: none;
}

.phone-text {
    font-size: 0.9rem;
    white-space: nowrap;
}

@keyframes phoneCallPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.scroll-to-top:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.scroll-to-top:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

    .main-navigation {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-content {
        grid-template-columns: 1fr 1fr;
    }

    .contact-item {
        min-height: 400px;
        display: flex;
        flex-direction: column;
    }

    .company-details {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content h2 {
        font-size: 3.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 767px) {
    .contact-phone-only {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-item {
        padding: 1.5rem;
    }

    .phone-link {
        padding: 0.75rem 1.5rem;
        font-size: 1.1rem;
    }

    .cta-phone {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .company-details {
        text-align: center;
    }

    .company-partners h4,
    .company-services h4 {
        text-align: center;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        display: none;
    }

    .main-navigation.is-open {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }

    .phone-contact-fixed {
        bottom: 1rem;
        right: 1rem;
    }

    .phone-contact-link {
        padding: 0.875rem 1.25rem;
    }

    .phone-text {
        display: none;
    }

    .phone-contact-link {
        border-radius: 50%;
        width: 60px;
        height: 60px;
        justify-content: center;
    }

    .scroll-to-top {
        bottom: 5rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0056b3, #004494);
}
