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

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

/* Color Variables */
:root {
    --primary-color: #1B365D;
    --secondary-color: #333333;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
}

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

/* Header */
header {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

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

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 120px;
    width: auto;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-desktop a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-desktop a:hover,
.nav-desktop a.active {
    color: var(--primary-color);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #0f2847;
    color: var(--white) !important;
}

.btn-primary:link,
.btn-primary:visited,
.btn-primary:active {
    color: var(--white) !important;
}

.btn-submit {
    background: var(--white) !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-submit:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-button {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    background: none;
    border: none;
    color: var(--gray-700);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    background: var(--white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: absolute;
    width: 100%;
    top: 100%;
    left: 0;
    z-index: 1000;
}

.mobile-menu.hidden {
    display: none;
}

.mobile-menu-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--gray-700);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(27, 54, 93, 0.75) 0%, rgba(44, 82, 130, 0.65) 100%), url('images/modern-office-hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    flex-shrink: 0;
}

.profile-image-large {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 8px solid var(--white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-white {
    background: var(--white);
}

.section-gray {
    background: var(--gray-50);
}

.section-tech {
    background: linear-gradient(135deg, rgba(27, 54, 93, 0.05) 0%, rgba(44, 82, 130, 0.05) 100%), 
                radial-gradient(circle at 20% 50%, rgba(27, 54, 93, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(44, 82, 130, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(27, 54, 93, 0.08) 0%, transparent 50%);
    background-color: var(--white);
    position: relative;
}

.section-tech > .container {
    position: relative;
    z-index: 1;
}

.section-tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(27, 54, 93, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(27, 54, 93, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.section-primary {
    background: var(--primary-color);
    color: var(--white);
}

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

.section-title h2 {
    font-size: 2.25rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-primary .section-title h2 {
    color: var(--white);
}

.section-title p {
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.section-primary .section-title p {
    color: rgba(255, 255, 255, 0.9);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

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

/* Cards */
.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(27, 54, 93, 0.1);
}

.card-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(27, 54, 93, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

/* Blog content h3 styling */
article h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.375rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Blog content list styling */
article ul, article ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

article ul li, article ol li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

article ul {
    list-style-type: disc;
}

article ol {
    list-style-type: decimal;
}

/* Nested lists */
article ul ul, article ol ol, article ul ol, article ol ul {
    margin: 0.25rem 0;
    padding-left: 1.5rem;
}

.card p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

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

/* Stats/Counter */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s;
}

.stat-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-number {
    font-size: 2.25rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    color: var(--gray-600);
    margin-top: 0.5rem;
}

/* Skills */
.skill-item {
    margin-bottom: 1.5rem;
}

.skill-header {
    display: flex;
    justify-content: between;
    margin-bottom: 0.5rem;
}

.skill-name {
    color: var(--gray-700);
}

.skill-percentage {
    color: var(--gray-600);
}

.skill-bar-container {
    width: 100%;
    height: 10px;
    background: var(--gray-200);
    border-radius: 5px;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0;
    transition: width 1.5s ease-out;
    border-radius: 5px;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.about-image {
    flex: 0 0 300px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    font-size: 2.25rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.profile-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: rgba(27, 54, 93, 0.1);
    color: var(--primary-color);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

/* Form */
.form {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

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

.form-label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.required {
    color: #ef4444;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(27, 54, 93, 0.1);
}

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

.form-row {
    display: grid;
    gap: 1.5rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox {
    width: 1rem;
    height: 1rem;
}

/* Footer */
footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: color 0.3s;
}

.social-link:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
    text-center;
    color: var(--gray-500);
}

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

/* Icons (Simple text-based replacements) */
.icon::before {
    margin-right: 0.5rem;
}

.icon-ai::before { content: "◦"; }
.icon-cloud::before { content: "◦"; }
.icon-code::before { content: "◦"; }
.icon-team::before { content: "◦"; }
.icon-mail::before { content: "✉"; }
.icon-phone::before { content: "☎"; }
.icon-location::before { content: "⌖"; }
.icon-star::before { content: "★"; }
.icon-arrow-right::before { content: "→"; }
.icon-menu::before { content: "☰"; }
.icon-close::before { content: "✕"; }

/* Blog Section Styles */
/* デスクトップ版ブログカード */
.blog-grid-desktop {
    display: block;
}

.blog-list-mobile {
    display: none;
}

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

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

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

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-date {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin: 0 0 0.75rem 0;
}

.blog-card-title {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    line-height: 1.4;
    font-weight: 600;
}

.blog-card-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #2c5282;
}

.blog-card-description {
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    font-style: italic;
}

/* モバイル版ブログリスト */
.blog-mobile-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.blog-item-mobile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-item-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blog-item-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.blog-item-content {
    flex-grow: 1;
}

.blog-item-date {
    color: var(--gray-500);
    font-size: 0.8rem;
    margin: 0 0 0.25rem 0;
}

.blog-item-title {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 600;
}

.blog-item-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-item-title a:hover {
    color: #2c5282;
}

.blog-item-description {
    color: var(--gray-600);
    font-style: italic;
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
}

.blog-more-button {
    text-align: center;
    margin-top: 2rem;
}

/* Mobile Profile Section */
.hero-profile-mobile {
    display: none;
}

.profile-image-mobile {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    margin: 0 auto 1rem;
}

.hero-profile-info-mobile {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-profile-info-mobile h2 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-profile-info-mobile .title {
    color: #64ffda;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-profile-info-mobile .birth {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .mobile-menu-button {
        display: block;
        flex-shrink: 0;
        margin-left: auto;
    }
    
    .product-banner {
        max-width: 70% !important;
        margin: 1rem 0 !important;
        flex-shrink: 1 !important;
    }
    
    .new-badge {
        display: none !important;
    }
    
    .hero-profile-mobile {
        display: block !important;
        text-align: center;
        margin: 2rem 0;
    }
    
    .hero-image {
        display: none;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        flex: none;
        width: 100%;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-image-large {
        width: 200px;
        height: 200px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    /* モバイル版ブログ表示 */
    .blog-grid-desktop {
        display: none;
    }
    
    .blog-list-mobile {
        display: block;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }

.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.opacity-90 { opacity: 0.9; }