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

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo-section {
    flex: 1;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.site-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1;
    margin: 0;
}

.initial {
    color: #e74c3c;
    font-size: 2.2rem;
}

.lowercase {
    color: #2c3e50;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #3498db;
}

/* Main Content */
.main {
    margin-top: 80px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 33vh;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    margin: 0 -10vw;
    width: calc(100% + 20vw);
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
}

/* 左側：ビジネスシーン（台形形状、緑ラインまで拡張） */
.hero-left {
    flex: 1;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.3) 0%, rgba(139, 0, 0, 0.4) 100%);
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 40% 0, 100% 100%, 0 100%);
}

.hero-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center left/cover;
    opacity: 0.6;
    z-index: 1;
}

/* 右側：都市夜景（台形形状、緑ラインまで縮小） */
.hero-right {
    flex: 1;
    background: linear-gradient(135deg, rgba(0, 50, 100, 0.4) 0%, rgba(0, 20, 40, 0.6) 100%);
    position: relative;
    overflow: hidden;
    clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1519501025264-65ba15a82390?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center top/cover;
    opacity: 0.7;
    z-index: 1;
}

/* 赤線で左右を分ける（緑ライン位置） */
.hero-divider {
    position: absolute;
    top: 0;
    left: 40%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #e74c3c, #c0392b);
    z-index: 2;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

/* ネットワークエフェクト */
.network-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%),
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: networkPulse 4s ease-in-out infinite;
}

.network-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    animation: networkLines 8s linear infinite;
}

.network-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    animation: networkGlow 6s ease-in-out infinite alternate;
}

@keyframes networkLines {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes networkGlow {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

@keyframes networkPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.quote-carousel {
    position: relative;
    max-width: 1200px;
    width: 100%;
    text-align: center;
    color: white;
    padding: 0 3rem;
}

.quote-slide {
    display: none;
    animation: slideInFromLeft 1s ease-in-out;
    white-space: normal;
    overflow: visible;
}

.quote-slide.active {
    display: block;
}

.quote-slide h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 300;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.02em;
    max-width: 100%;
    word-wrap: break-word;
}

.quote-slide p {
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.01em;
    margin: 0;
}

/* 左から右に流れるアニメーション */
@keyframes slideInFromLeft {
    from { 
        opacity: 0; 
        transform: translateX(-100px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 4;
    backdrop-filter: blur(10px);
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 2rem;
}

.carousel-next {
    right: 2rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hero {
        height: 30vh;
        margin: 0 -5vw;
        width: calc(100% + 10vw);
    }
    
    .hero-left {
        clip-path: polygon(0 0, 45% 0, 100% 100%, 0 100%);
    }
    
    .hero-right {
        clip-path: polygon(45% 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .hero-divider {
        left: 45%;
    }
    
    .quote-slide h2 {
        font-size: 1.6rem;
        line-height: 1.4;
    }
    
    .quote-slide p {
        font-size: 0.9rem;
    }
    
    .carousel-arrow {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .carousel-prev {
        left: 1rem;
    }
    
    .carousel-next {
        right: 1rem;
    }
    
    .quote-carousel {
        padding: 0 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 25vh;
        margin: 0 -3vw;
        width: calc(100% + 6vw);
    }
    
    .hero-left {
        clip-path: polygon(0 0, 50% 0, 100% 100%, 0 100%);
    }
    
    .hero-right {
        clip-path: polygon(50% 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .hero-divider {
        left: 50%;
    }
    
    .quote-slide h2 {
        font-size: 1.2rem;
        line-height: 1.5;
    }
    
    .quote-slide p {
        font-size: 0.8rem;
    }
    
    .carousel-arrow {
        display: none;
    }
    
    .quote-carousel {
        padding: 0 1rem;
    }
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.faq-description {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #666;
}

.search-container {
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
}

.search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-box input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.search-box button {
    padding: 1rem 2rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: #2980b9;
}

.search-results {
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
}

.search-results.show {
    display: block;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.search-result-excerpt {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.search-result-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

.search-result-category {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 12px;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #666;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 0;
}

.faq-toggle {
    font-size: 1.5rem;
    color: #3498db;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: #666;
    margin-bottom: 1rem;
}

.article-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.article-link:hover {
    text-decoration: underline;
}

/* Recent Posts Section */
.recent-posts {
    padding: 4rem 0;
    background: white;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #3498db;
    background: white;
    color: #3498db;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tab-btn.active,
.tab-btn:hover {
    background: #3498db;
    color: white;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

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

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

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-category {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.post-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.post-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #999;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.contact-form {
    margin-top: 1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #2980b9;
}

.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.submit-btn:disabled:hover {
    background-color: #ccc;
}

/* チェックボックススタイル */
.checkbox-group {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
    position: relative;
    padding-left: 35px;
}

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

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

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

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

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

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

/* フォームメッセージスタイル */
.form-message {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Thank youメッセージスタイル */
.thank-you-message {
    text-align: center;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    animation: checkmarkPulse 0.6s ease-in-out;
}

@keyframes checkmarkPulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.thank-you-message h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.thank-you-message p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.close-thank-you-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-thank-you-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #c0392b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav ul {
        gap: 1rem;
    }
    
    .quote-slide h2 {
        font-size: 1.8rem;
    }
    
    .quote-slide p {
        font-size: 1rem;
    }
    
    .carousel-arrow {
        display: none;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .tab-btn {
        white-space: nowrap;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        height: 70vh;
    }
    
    .quote-slide h2 {
        font-size: 1.5rem;
    }
    
    .faq-section h2 {
        font-size: 2rem;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .initial {
    font-size: 1.8rem;
    }
}