/*
Theme Name: Eatransform Ultimate
Theme URI: https://eatransform.net
Author: Eatransform
Description: The perfect blend of warmth, technical sophistication, and mobile excellence for IT companies.
Version: 2.0
*/

@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
    --cream: #f9f6f1;
    --sage: #8b9d83;
    --sage-dark: #6b7d63;
    --tech-blue: #4a7c9e;
    --warm-white: #fffef9;
    --charcoal: #2d2d2d;
    --soft-shadow: rgba(0, 0, 0, 0.08);
}

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

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

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--charcoal);
    background: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Navigation */
nav.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(249, 246, 241, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 157, 131, 0.15);
    transition: all 0.4s ease;
}

nav.main-nav.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.8rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-image {
    height: 60px;
    width: auto;
    max-width: 350px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover .logo-image {
    transform: scale(1.05);
}


/* ナビゲーション全体 */
.nav-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.8rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;  /* 追加 */
}

/* テキストロゴのスタイル */
.logo-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;  /* ロゴが縮まないように */
    max-width: 350px;  /* 最大幅を制限 */
}

.site-title {
    font-size: 28px;  /* 少し小さく */
    font-weight: 700;
    color: var(--tech-blue);
    line-height: 1.2;
    white-space: nowrap;  /* タイトルは改行しない */
}

.site-description {
    font-size: 10px;  /* 説明文を小さく */
    font-weight: 400;
    color: #8b9d83;
    letter-spacing: 0.3px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;  /* 最大2行まで */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo-text:hover .site-title {
    color: #8b9d83;
}

.logo-text:hover .site-description {
    color: var(--tech-blue);
}

/* ナビリンク */
.nav-links {
    display: flex;
    gap: 3.5rem;
    list-style: none;
    align-items: center;
    flex-wrap: nowrap;  /* 折り返さない */
}

/* モバイル対応 */
@media (max-width: 1200px) {
    .site-title {
        font-size: 24px;
    }
	
    
    .site-description {
        font-size: 9px;
        -webkit-line-clamp: 1;  /* モバイルは1行のみ */
    }
    
    .logo-text {
        max-width: 280px;
    }
    
    .nav-links {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-wrapper {
        padding: 1.5rem 2rem;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .logo-text {
        text-align: center;
        align-items: center;
    }
    
    .site-title {
        font-size: 24px;
        text-align: center;
    }
    
    .site-description {
        display: none;
    }
    
    /* ここに閉じ括弧が足りなかった */
}

.nav-links {
    display: flex;
    gap: 3.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--charcoal);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--tech-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(139, 157, 131, 0.3);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 157, 131, 0.4);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-toggle span {
    width: 28px;
    height: 2px;
    background: var(--sage-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}
.hero-badge {
        display: flex;
        margin-left: auto;
        margin-right: auto;
        margin-top: 2rem;  /* 位置を下げる */
        margin-bottom: 2rem;
}


/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 10rem 4rem 4rem;
    background: 
        radial-gradient(circle at 20% 30%, rgba(139, 157, 131, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(74, 124, 158, 0.06) 0%, transparent 50%),
        var(--cream);
    position: relative;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 1s ease-out;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1.5rem;
    background: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sage-dark);
    box-shadow: 0 4px 20px var(--soft-shadow);
    margin-bottom: 2.5rem;
}

.hero h1 {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--sage-dark);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.hero h1 .highlight {
    color: var(--tech-blue);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.15rem;
    color: #666;
    line-height: 1.9;
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 1.3rem 3rem;
    background: linear-gradient(135deg, var(--tech-blue) 0%, #3a6c8e 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 6px 25px rgba(74, 124, 158, 0.35);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(74, 124, 158, 0.45);
}

.btn-secondary {
    padding: 1.3rem 3rem;
    background: white;
    color: var(--sage-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 4px 20px var(--soft-shadow);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}

.hero-visual {
    position: relative;
}

.hero-image {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

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

/* Services */
.services {
    padding: 10rem 4rem;
    background: var(--warm-white);
}

.services-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-label {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--tech-blue);
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 600;
    color: var(--sage-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

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

.service-card {
    background: white;
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 8px 30px var(--soft-shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--sage) 0%, var(--tech-blue) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 100%;
    height: 200px;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    position: relative;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon img {
    transform: scale(1.05);
}

.icon-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 157, 131, 0.3) 0%, rgba(74, 124, 158, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .icon-overlay {
    opacity: 1;
}

.service-card h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--sage-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.service-card p {
    color: #666;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Tech Stack */
.tech-stack {
    padding: 10rem 4rem;
    background: var(--sage-dark);
    color: white;
    position: relative;
}

.tech-stack .section-label {
    color: var(--tech-blue);
}

.tech-stack .section-title {
    color: white;
}

.tech-stack .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto 0;
}

.tech-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.4s ease;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
}

.tech-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--tech-blue);
}

.tech-name {
    font-size: 1rem;
    font-weight: 600;
}

/* About */
.about {
    padding: 10rem 4rem;
    background: var(--cream);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 5rem;
    align-items: start;
}

.about-content h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--sage-dark);
}

.about-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #666;
    margin-bottom: 1.5rem;
}

.about-profile {
    background: white;
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 10px 40px var(--soft-shadow);
}

.profile-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--sage), var(--tech-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: white;
}

.about-profile h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--sage-dark);
}

.about-profile p {
    color: #666;
    margin-bottom: 2rem;
}

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

.social-link {
    width: 50px;
    height: 50px;
    background: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sage-dark);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--tech-blue);
    color: white;
    transform: translateY(-3px);
}

/* CTA */
.final-cta {
    padding: 10rem 4rem;
    background: var(--warm-white);
    text-align: center;
}

.final-cta h2 {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    color: var(--sage-dark);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.final-cta p {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


/* ===============================================
   NEWS SECTION (お知らせ)
   =============================================== */

.news-section {
    padding: 10rem 4rem;
    background: var(--cream);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.news-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 8px 30px var(--soft-shadow);
    transition: all 0.4s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.news-thumbnail {
    display: block;
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-thumbnail img {
    transform: scale(1.08);
}

.news-thumbnail-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 157, 131, 0.9) 0%, rgba(74, 124, 158, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.news-card:hover .news-thumbnail-overlay {
    opacity: 1;
}

.news-thumbnail-overlay i {
    font-size: 2.5rem;
    color: white;
}

.news-no-thumb {
    background: linear-gradient(135deg, var(--sage) 0%, var(--tech-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-no-thumb i {
    font-size: 3.5rem;
    color: white;
    opacity: 0.4;
}

.news-card-content {
    padding: 2.5rem;
}

.news-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
    font-size: 0.85rem;
    color: var(--tech-blue);
    font-weight: 600;
    flex-wrap: wrap;
}

.news-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.news-meta a {
    color: var(--tech-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-meta a:hover {
    color: var(--sage-dark);
}

.news-card-content h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.news-card-content h3 a {
    color: var(--sage-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-content h3 a:hover {
    color: var(--tech-blue);
}

.news-excerpt {
    color: #666;
    line-height: 1.75;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.news-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--tech-blue);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-readmore:hover {
    gap: 0.8rem;
}

.news-readmore i {
    transition: transform 0.3s ease;
}

.news-readmore:hover i {
    transform: translateX(3px);
}

.news-viewall {
    text-align: center;
}

.news-viewall .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
    font-size: 1.1rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: 6rem 2rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .news-thumbnail {
        height: 200px;
    }
    
    .news-card-content {
        padding: 2rem;
    }
}


/* Footer */
/* Footer Visibility */
.footer-desktop {
    display: block;
}

.footer-mobile {
    display: none;
}

/* Footer Visibility - 完全修正 */


footer {
    background: var(--sage-dark);
    color: white;
    padding: 6rem 4rem 3rem;
}

.footer-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-about h4 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-section h5 {
    font-size: 1.0rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }

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

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

    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
	
	
}

@media (max-width: 768px) {
    .nav-wrapper {
        padding: 1.5rem 2rem;
    }
    
    .logo-image,
    .custom-logo {
        height: 48px;
        max-width: 260px;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(249, 246, 241, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 3rem 2rem;
        gap: 2rem;
        transition: left 0.4s ease;
        align-items: flex-start;
        overflow-y: auto;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        width: 100%;
        padding: 1rem 0;
    }
    .nav-links .cta-button {
        width: 100%;
        text-align: center;
        justify-content: center;
        margin-top: 0.5rem;
		padding: 1.0rem 2.5rem;  /* ボタンのサイズを大きく */
    }
	}

@media (max-width: 768px) {
    /* 既存のコード... */
    
    /* Aboutセクション全体を中央揃え */
    .about {
        padding: 6rem 2rem; /* 左右均等に */
        text-align: center;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0;
    }
    
    /* About本文を中央揃え */
    .about-content {
        text-align: center;
        padding: 0;
    }
    
    .about-content h2 {
        text-align: center;
    }
    
    .about-content p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Contactボックスを中央揃え */
    .about-profile {
        margin: 0 auto;
        padding: 3rem;
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        text-align: center;
    }
    
    .profile-icon {
        margin: 0 auto 2rem;
    }
    
    .about-profile h3 {
        text-align: center;
    }
    
    .about-profile p {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }



    .hero,
    .services,
    .tech-stack,
    .about,
    .final-cta {
        padding-left: 2rem;
        padding-right: 2rem;
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

.hero {
    min-height: auto;
    padding-top: 8rem;
    text-align: center;
}

.hero-content {
    text-align: center;
}

.hero-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    text-align: center;
}

.hero-subtitle {
    text-align: center;
}

.hero-description {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-badge {
    margin: 2rem auto 2rem;
}

.hero-actions {
    display: flex !important;
    flex-direction: row !important;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap !important;
}

    .btn-primary,
    .btn-secondary {
        width: 48% !important;
        max-width: 48% !important;
        text-align: center;
        justify-content: center;
        padding: 1rem 0.8rem !important;
        font-size: 0.85rem !important;
        flex-shrink: 0 !important;
    }

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

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

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

@media (max-width: 480px) {
    .logo-image,
    .custom-logo {
        height: 42px;
        max-width: 220px;
    }

    .service-card,
    .about-profile {
        padding: 2rem;
    }

    .service-icon {
        height: 160px;
    }

    .tech-item {
        padding: 2rem 1rem;
    }
}

/* Standard Pages (page.php, single.php, archive.php) */
.standard-page {
    background: var(--cream);
}

/* Page Hero */
.page-hero {
    padding: 15rem 4rem 6rem;
    background: var(--warm-white);
    text-align: center;
}

.page-hero-content h1 {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 600;
    color: var(--sage-dark);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.archive-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 2rem auto 0;
    line-height: 1.8;
}

/* Page Content */
.page-main {
    padding: 8rem 4rem;
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 4rem;
    border-radius: 30px;
    box-shadow: 0 10px 40px var(--soft-shadow);
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--charcoal);
}

.page-content h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--sage-dark);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.page-content h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--sage-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.page-content p {
    margin-bottom: 1.5rem;
}

.page-content ul,
.page-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}


    .post-nav-title {
        font-size: 1.2rem;
    }

/* Mobile Footer - Accordion */
@media (max-width: 768px) {
    footer { padding: 0; }
    .footer-wrapper { padding: 0; }
    .footer-desktop { display: none !important; }
    .footer-mobile { display: block !important; }

    .footer-accordion {
        background: var(--sage-dark);
        padding: 2rem 0;
    }

    .accordion-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .accordion-header {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 2rem 2rem;
        background: transparent;
        border: none;
        color: white;
        cursor: pointer;
    }

    .accordion-item.active .accordion-header {
        background: rgba(255, 255, 255, 0.05);
    }

    .accordion-title {
        display: flex;
        align-items: center;
        gap: 1rem;
        font-size: 1.1rem;
        font-weight: 700;
    }

    .accordion-icon {
        transition: transform 0.3s ease;
    }

    .accordion-item.active .accordion-icon {
        transform: rotate(180deg);
    }

    .accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .accordion-item.active .accordion-content {
        max-height: 1000px;
    }

    .accordion-content h4 {
       margin: 1.5rem 2rem 2rem;  /* 下の余白を2remに増やす */
    }

    .accordion-content p {
        margin: 0 2rem 2rem;
    }

.accordion-content .footer-links {
    padding: 1.5rem 1rem 2rem;  /* 上のパディングを1.5remに増やす */
}
	
	.accordion-content .footer-links li:first-child a {
    margin-top: 0.5rem;  /* 最初のリンクの上に余白を追加 */
}

    .accordion-content .footer-links a {
        display: flex;
        padding: 1.2rem 1rem;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        margin-bottom: 0.8rem;
    }
}

/* ===============================================
   ARCHIVE PAGE (Category)
   =============================================== */

.archive-page {
    background: var(--cream);
    min-height: 100vh;
}

.archive-header {
    padding: 10rem 4rem 4rem;
    background: linear-gradient(135deg, var(--warm-white) 0%, var(--cream) 100%);
    text-align: center;
}

.archive-header-container {
    max-width: 900px;
    margin: 0 auto;
}

.archive-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.5rem;
    background: white;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--tech-blue);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
}

.archive-title {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    color: var(--sage-dark);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.archive-description {
    font-size: 1.15rem;
    color: #666;
    line-height: 1.8;
}

.archive-posts-section {
    padding: 13rem 4rem;
}

.archive-container {
    max-width: 1400px;
    margin: 0 auto;
}

.archive-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.archive-post-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
}

.archive-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
}

.post-card-thumbnail {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    display: block;
}

.post-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.archive-post-card:hover .post-card-thumbnail img {
    transform: scale(1.08);
}

.thumbnail-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 157, 131, 0.9) 0%, rgba(74, 124, 158, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.archive-post-card:hover .thumbnail-overlay {
    opacity: 1;
}

.thumbnail-overlay i {
    font-size: 2.5rem;
    color: white;
}

.post-card-no-thumb {
    background: linear-gradient(135deg, var(--sage) 0%, var(--tech-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-card-no-thumb i {
    font-size: 3.5rem;
    color: white;
    opacity: 0.4;
}

.post-card-content {
    padding: 2rem;
}

.post-card-meta {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
    font-size: 0.85rem;
    color: var(--tech-blue);
    flex-wrap: wrap;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.post-card-meta a {
    color: var(--tech-blue);
    text-decoration: none;
}

.post-card-title {
    font-family: 'Crimson Pro', serif;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
}

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

.post-card-title a:hover {
    color: var(--tech-blue);
}

.post-card-excerpt {
    color: #666;
    line-height: 1.75;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.post-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--tech-blue);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-card-readmore:hover {
    gap: 0.8rem;
}

.archive-pagination {
    text-align: center;
}

.archive-pagination .page-numbers {
    display: inline-flex;
    gap: 0.8rem;
    list-style: none;
}

.archive-pagination a,
.archive-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 1.2rem;
    background: white;
    border-radius: 50px;
    color: var(--sage-dark);
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.archive-pagination a:hover {
    background: var(--tech-blue);
    color: white;
}

.archive-pagination .current {
    background: var(--tech-blue);
    color: white;
}

/* ===============================================
   SINGLE POST (Individual Article)
   =============================================== */

.single-article {
    background: var(--cream);
}

.post-hero-section {
    padding: 10rem 4rem 4rem;
    background: linear-gradient(135deg, var(--warm-white) 0%, rgba(249, 246, 241, 0.5) 100%);
}

.post-hero-container {
    max-width: 900px;
    margin: 0 auto;
}

.post-meta-top {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    font-size: 1rem;
    color: var(--tech-blue);
    flex-wrap: wrap;
    font-weight: 600;
}

.post-meta-top span {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    background: white;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.post-meta-top a {
    color: var(--tech-blue);
    text-decoration: none;
}

.post-main-title {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 600;
    color: var(--sage-dark);
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.post-excerpt {
    font-size: 1.4rem;
    color: #555;
    line-height: 1.75;
}

.post-content-wrapper {
    padding: 4rem;
    background: var(--cream);
}

.post-content-inner {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 4rem;
    border-radius: 30px;
    box-shadow: 0 10px 40px var(--soft-shadow);
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--charcoal);
}

.post-content-inner h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--sage-dark);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.post-content-inner h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--sage-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-content-inner p {
    margin-bottom: 1.5rem;
}

.post-content-inner img {
    max-width: 100%;
    height: auto !important;
    border-radius: 20px;
    margin: 2.5rem auto;
    display: block;
}

.post-content-inner ul,
.post-content-inner ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.post-content-inner li {
    margin-bottom: 0.5rem;
}

.post-content-inner a {
    color: var(--tech-blue);
    text-decoration: underline;
}

.post-content-inner blockquote {
    border-left: 4px solid var(--tech-blue);
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
}

.post-navigation-section {
    padding: 3rem 4rem;
    background: var(--cream);
}

.post-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.post-nav-item {
    background: white;
    padding: 1.8rem 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
}

.post-nav-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.post-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--sage) 0%, var(--tech-blue) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.post-nav-item:hover::before {
    transform: scaleX(1);
}

.nav-direction {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--tech-blue);
}

.nav-post-title {
    font-family: 'Crimson Pro', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sage-dark);
    line-height: 1.4;
}

.post-nav-next .nav-direction {
    justify-content: flex-end;
}

.post-nav-next .nav-post-title {
    text-align: right;
}

.post-nav-placeholder {
    visibility: hidden;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .archive-header {
        padding: 9rem 1.5rem 3rem;
    }
    
    .archive-posts-section {
        padding: 3rem 1.5rem;
    }
    
    .archive-posts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .post-card-thumbnail {
        height: 200px;
    }
    
    .post-hero-section {
        padding: 9rem 1.5rem 3rem;
    }
    
    .post-main-title {
        font-size: 1.6rem;
    }
    
    .post-content-wrapper {
        padding: 3rem 1.5rem;
    }
    
    .post-content-inner {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
        font-size: 1.05rem;
    }
    
    .post-content-inner h2 {
        font-size: 1.8rem;
    }
    
    .post-navigation-section {
        padding: 2rem 1.5rem;
    }
    
    .post-nav-container {
        grid-template-columns: 1fr;
    }
    
    .post-nav-next .nav-direction,
    .post-nav-next .nav-post-title {
        justify-content: flex-start;
        text-align: left;
    }
}

/* ===============================================
   STANDARD PAGE (Fixed Pages)
   =============================================== */

.standard-page {
    background: var(--cream);
    min-height: 100vh;
}

.standard-page .page-hero {
    padding: 12rem 4rem 6rem;
    background: linear-gradient(135deg, var(--warm-white) 0%, var(--cream) 100%);
    text-align: center;
}

.standard-page .page-hero-content h1 {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    color: var(--sage-dark);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.standard-page .page-main {
    padding: 6rem 4rem;
}

.standard-page .page-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 4rem;
    border-radius: 30px;
    box-shadow: 0 10px 40px var(--soft-shadow);
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--charcoal);
}

.standard-page .page-content h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--sage-dark);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.standard-page .page-content h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--sage-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.standard-page .page-content h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--sage-dark);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.standard-page .page-content p {
    margin-bottom: 1.5rem;
}

.standard-page .page-content ul,
.standard-page .page-content ol {
    margin-left: 2.5rem;
    margin-bottom: 2rem;
}

.standard-page .page-content li {
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.standard-page .page-content img {
    max-width: 100%;
    height: auto !important;
    border-radius: 20px;
    margin: 2.5rem auto;
    display: block;
}

.standard-page .page-content a {
    color: var(--tech-blue);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.standard-page .page-content a:hover {
    color: var(--sage-dark);
}

.standard-page .page-content blockquote {
    border-left: 4px solid var(--tech-blue);
    padding-left: 2rem;
    margin: 2.5rem 0;
    font-style: italic;
    color: #666;
}

.standard-page .page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.standard-page .page-content table th {
    background: var(--sage-dark);
    color: white;
    padding: 1rem;
    text-align: left;
}

.standard-page .page-content table td {
    padding: 1rem;
    border-bottom: 1px solid var(--cream);
}

@media (max-width: 768px) {
    .standard-page .page-hero {
        padding: 10rem 1.5rem 4rem;
    }
    
    .standard-page .page-hero-content h1 {
        font-size: 2.2rem;
    }
    
    .standard-page .page-main {
        padding: 4rem 1.5rem;
    }
    
    .standard-page .page-content {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
        font-size: 1.05rem;
    }
    
    .standard-page .page-content h2 {
        font-size: 1.8rem;
    }
    
    .standard-page .page-content h3 {
        font-size: 1.5rem;
    }
}


.mobile-footer-slider {
    display: none;
}

.mobile-footer-slider {
    display: none;
}

.mobile-footer-slider {
    display: none;
}
/* MetaSlider - モバイル専用 */
.mobile-hero-slider {
    display: none;
}

/* MetaSlider - モバイル専用 */
.mobile-hero-slider {
    display: none;
}

/* ヘッダー直下MetaSlider - モバイルのみ */
.header-metaslider {
    display: none;
}
/* ヘッダー直下MetaSlider - モバイルのみ */
.header-metaslider {
    display: none;
}

@media (max-width: 768px) {
    .header-metaslider {
        display: block;
        margin: 80px 0 0 0;
        padding: 0;
        width: 100%;
    }
    
    /* すべての余白を強制削除 */
    .header-metaslider .metaslider,
    .header-metaslider .metaslider *,
    .header-metaslider .flexslider,
    .header-metaslider .slides,
    .header-metaslider ul,
    .header-metaslider li {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* 画像の余白も削除 */
    .header-metaslider img {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Heroセクションとの間隔をゼロに */
    .header-metaslider + #eatransform-modern .hero {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
}

@media (max-width: 768px) {
    /* Heroセクション全体の上の余白を削除 */
    #eatransform-modern {
        padding-top: 0 !important;
    }
    
    .hero {
        padding-top: 2rem !important;  /* 最小限の余白 */
    }
}

#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

#scrollToTop.show {
    opacity: 1;
    visibility: visible;
}

#scrollToTop:hover {
    background: #764ba2;
    transform: translateY(-3px);
}

/* ===============================================
   MOBILE OPTIMIZATION - 完全版
   =============================================== */

@media (max-width: 768px) {
    
    /* Hero Section - モバイル完全最適化 */
    .hero {
        min-height: auto;
        padding: 6rem 1.5rem 4rem !important;
    }
    
    .hero-content {
        display: flex !important;
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .hero-text {
        order: 1;
    }
    
    .hero-visual {
        order: 2;
        max-width: 100%;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.2rem !important;
        margin-bottom: 1.5rem;
        line-height: 1.25;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.7;
    }
    
    .hero-actions {
        flex-direction: column !important;
        width: 100%;
        gap: 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1.2rem 2rem !important;
        font-size: 1rem !important;
        justify-content: center;
    }
    
    .hero-image {
        aspect-ratio: 1;
        border-radius: 20px;
    }
    
    /* Services Section - カード最適化 */
    .services {
        padding: 5rem 1.5rem !important;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-label {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 2rem !important;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .service-icon {
        height: 180px;
        margin-bottom: 1.5rem;
        border-radius: 15px;
    }
    
    .service-card h3 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    /* Tech Stack - 2カラムを3カラムに */
    .tech-stack {
        padding: 5rem 1.5rem !important;
    }
    
    .tech-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem;
        margin-top: 2.5rem;
    }
    
    .tech-item {
        padding: 1.5rem 0.8rem;
        border-radius: 15px;
    }
    
    .tech-item i {
        font-size: 2.2rem;
        margin-bottom: 0.6rem;
    }
    
    .tech-name {
        font-size: 0.85rem;
    }
    
    /* News Section */
    .news-section {
        padding: 5rem 1.5rem !important;
    }
    
    .news-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .news-thumbnail {
        height: 200px;
    }
    
    .news-card-content {
        padding: 1.8rem;
    }
    
    .news-card-content h3 {
        font-size: 1.2rem;
    }
    
    .news-excerpt {
        font-size: 0.9rem;
    }
    
    /* About Section - 中央揃え改善 */
    .about {
        padding: 5rem 1.5rem !important;
        text-align: center;
    }
    
    .about-container {
        grid-template-columns: 1fr !important;
        gap: 2.5rem;
    }
    
    .about-content h2 {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .about-content p {
        font-size: 1rem;
        text-align: center;
        line-height: 1.8;
    }
    
    .about-profile {
        padding: 2.5rem 2rem;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .profile-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin: 0 auto 1.5rem;
    }
    
    .about-profile h3 {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .about-profile p {
        font-size: 0.9rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    /* CTA Section */
    .final-cta {
        padding: 5rem 1.5rem !important;
    }
    
    .final-cta h2 {
        font-size: 2rem !important;
        margin-bottom: 1.5rem;
    }
    
    .final-cta p {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .final-cta .btn-primary {
        width: 100%;
        max-width: 100%;
        padding: 1.2rem 2rem !important;
    }
}

@media (max-width: 480px) {
    /* 超小型デバイス向け追加調整 */
    .hero h1 {
        font-size: 1.8rem !important;
    }
    
    .section-title {
        font-size: 1.8rem !important;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .service-icon {
        height: 150px;
    }
}

/* ===============================================
   SINGLE POST - モバイルメタ情報修正
   =============================================== */

@media (max-width: 768px) {
    .post-meta-top {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 0.8rem !important;
        justify-content: center;
    }
    
    .post-meta-top span {
        flex: 0 1 auto;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .post-meta-top .meta-item {
        display: inline-flex;
    }
}