/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #fff;
}

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

ul {
    list-style: none;
}

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

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

/* アニメーション定義 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

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

/* スクロールアニメーション用クラス */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4a6fa5;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: #3d5a80;
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4a6fa5;
    transition: width 0.3s ease;
}

.nav-list a:hover {
    color: #4a6fa5;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ヒーローセクション */
.hero {
    padding: 180px 20px 100px;
    background: linear-gradient(135deg, #f8fafc 0%, #e8eef5 100%);
    text-align: center;
    overflow: hidden;
}

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

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 25px;
    color: #1e293b;
    animation: fadeInUp 1s ease forwards;
}

.hero-text {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: #4a6fa5;
    color: #fff;
}

.btn-primary:hover {
    background: #3d5a80;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(74, 111, 165, 0.3);
}

.btn-secondary {
    background: #fff;
    color: #4a6fa5;
    border: 2px solid #4a6fa5;
}

.btn-secondary:hover {
    background: #4a6fa5;
    color: #fff;
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.stat {
    text-align: center;
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: scale(1.1);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #4a6fa5;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
}

/* セクション共通 */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: #4a6fa5;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.section-subtitle {
    font-size: 1rem;
    text-align: center;
    color: #64748b;
    margin-bottom: 60px;
}

/* サービスセクション */
.service {
    background: #fff;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: #f8fafc;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    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, #4a6fa5, #6b8cbe);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.2);
    animation: float 2s ease-in-out infinite;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1e293b;
}

.service-card p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.7;
}

/* ポートフォリオセクション */
.portfolio {
    background: #f8fafc;
}

.portfolio-category {
    margin-bottom: 60px;
}

.portfolio-category:last-child {
    margin-bottom: 0;
}

.portfolio-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 30px;
    padding-left: 15px;
    border-left: 4px solid #4a6fa5;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.portfolio-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-placeholder {
    transform: scale(1.1);
}

.portfolio-placeholder.design {
    background: linear-gradient(135deg, #e0e7ef 0%, #c5d1de 100%);
    color: #4a6fa5;
}

.portfolio-name {
    padding: 15px;
    font-size: 0.9rem;
    color: #1e293b;
    font-weight: 500;
    text-align: center;
}

/* 比較セクション */
.comparison {
    background: #fff;
}

.comparison-table {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.comparison-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    background: #1e293b;
    color: #fff;
    font-weight: 600;
}

.comparison-header > div {
    padding: 20px;
    text-align: center;
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.3s ease;
}

.comparison-row:hover {
    background: #f8fafc;
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row > div {
    padding: 18px 20px;
    text-align: center;
}

.comparison-item {
    text-align: left !important;
    font-weight: 500;
    color: #1e293b;
}

.comparison-pro {
    background: #f0fdf4;
    color: #16a34a;
    font-weight: 600;
}

.comparison-normal {
    color: #94a3b8;
}

/* 選ばれる理由セクション */
.reason {
    background: #f8fafc;
}

.reason-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.reason-item {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
}

.reason-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4a6fa5, #6b8cbe);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.reason-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.reason-item:hover::after {
    transform: scaleX(1);
}

.reason-number {
    font-size: 3rem;
    font-weight: 700;
    color: #e2e8f0;
    position: absolute;
    top: 20px;
    right: 30px;
    transition: all 0.3s ease;
}

.reason-item:hover .reason-number {
    color: #4a6fa5;
    transform: scale(1.1);
}

.reason-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
}

.reason-item p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.8;
}

/* お悩みセクション */
.problem {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #fff;
}

.problem .section-title {
    color: #fff;
}

.problem-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.problem-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.problem-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.problem-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(74, 111, 165, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.problem-item p {
    font-size: 1rem;
    color: #e2e8f0;
}

.solution {
    background: #fff;
    border-radius: 20px;
    padding: 50px;
    color: #1e293b;
}

.solution h3 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: #4a6fa5;
    margin-bottom: 40px;
}

.solution-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.step {
    text-align: center;
    position: relative;
}

.step::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -15px;
    width: 30px;
    height: 2px;
    background: #4a6fa5;
}

.step:last-child::after {
    display: none;
}

.step-number {
    display: inline-block;
    background: #4a6fa5;
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(74, 111, 165, 0.4);
}

.step p {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 500;
}

/* メリットセクション */
.merit {
    background: #fff;
}

.merit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.merit-item {
    text-align: center;
    padding: 40px 30px;
    background: #f8fafc;
    border-radius: 16px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.merit-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 111, 165, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.merit-item:hover::before {
    opacity: 1;
}

.merit-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.merit-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.merit-item:hover .merit-icon {
    transform: scale(1.2) rotate(5deg);
}

.merit-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
}

.merit-item p {
    font-size: 0.9rem;
    color: #64748b;
}

/* サポートセクション */
.support {
    background: #f8fafc;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.support-card {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    transition: all 0.4s ease;
    position: relative;
}

.support-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.support-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #4a6fa5;
    transition: color 0.3s ease;
}

.support-card:hover h3 {
    color: #4a6fa5;
}

.support-card p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 20px;
}

.support-card ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.support-card li {
    font-size: 0.9rem;
    color: #1e293b;
    padding-left: 20px;
    position: relative;
    transition: transform 0.3s ease;
}

.support-card li:hover {
    transform: translateX(5px);
}

.support-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #4a6fa5;
    border-radius: 50%;
}

/* その他サービスセクション */
.other-service {
    background: #fff;
}

.other-service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.other-service-card {
    text-align: center;
    padding: 40px 25px;
    background: #f8fafc;
    border-radius: 16px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.other-service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: #4a6fa5;
    transition: width 0.4s ease;
}

.other-service-card:hover::before {
    width: 100%;
}

.other-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.other-service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.other-service-card:hover .other-service-icon {
    transform: scale(1.2);
}

.other-service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
}

.other-service-card p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.7;
}

/* ブログセクション */
.blog {
    background: #f8fafc;
}

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

a.blog-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.blog-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #4a6fa5 0%, #3d5a80 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-icon-wrap {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.4s ease;
}

.blog-card:hover .blog-icon-wrap {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.25);
}

.blog-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4a6fa5 0%, #3d5a80 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-placeholder {
    transform: scale(1.1);
}

.blog-content {
    padding: 25px;
}

.blog-category {
    display: inline-block;
    background: #e0e7ef;
    color: #4a6fa5;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.blog-card:hover .blog-category {
    background: #4a6fa5;
    color: #fff;
}

.blog-meta {
    display: flex;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.blog-read-time {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-read-time::before {
    content: '';
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
}

.blog-points {
    margin: 15px 0 0 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #4a6fa5;
}

.blog-points li {
    font-size: 0.85rem;
    color: #475569;
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    line-height: 1.5;
}

.blog-points li:last-child {
    margin-bottom: 0;
}

.blog-points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4a6fa5;
    font-weight: 700;
}

.blog-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.blog-card:hover h3 {
    color: #4a6fa5;
}

.blog-card p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.7;
}

/* フッター */
.footer {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1e293b;
    padding: 80px 0 30px;
}

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

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: #4a6fa5;
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 30px;
}

.footer-stats {
    display: flex;
    gap: 30px;
}

.footer-stat {
    text-align: center;
}

.footer-stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a6fa5;
}

.footer-stat-label {
    font-size: 0.8rem;
    color: #64748b;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-links-column h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1e293b;
}

.footer-links-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-column a {
    font-size: 0.9rem;
    color: #64748b;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links-column a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #4a6fa5;
    transition: width 0.3s ease;
}

.footer-links-column a:hover {
    color: #4a6fa5;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #cbd5e1;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #64748b;
}

.back-to-top {
    background: #4a6fa5;
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: #3d5a80;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(74, 111, 165, 0.4);
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .service-grid,
    .portfolio-grid,
    .other-service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .step::after {
        display: none;
    }

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

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .nav-list a::after {
        display: none;
    }

    .hero {
        padding: 140px 20px 80px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-text {
        font-size: 1rem;
    }

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

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 2rem;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        margin-bottom: 40px;
    }

    .service-grid,
    .portfolio-grid,
    .reason-grid,
    .merit-grid,
    .support-grid,
    .blog-grid,
    .other-service-grid {
        grid-template-columns: 1fr;
    }

    .comparison-header,
    .comparison-row {
        grid-template-columns: 1.5fr 1fr 1fr;
        font-size: 0.85rem;
    }

    .comparison-header > div,
    .comparison-row > div {
        padding: 12px 8px;
    }

    .problem-list {
        grid-template-columns: 1fr;
    }

    .problem-item:hover {
        transform: translateX(5px);
    }

    .solution {
        padding: 30px 20px;
    }

    .solution-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 40px;
    }

    .footer-stats {
        justify-content: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .comparison-header,
    .comparison-row {
        font-size: 0.75rem;
    }

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

/* ロゴ画像スタイル */
.logo-img {
    height: 40px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo a:hover .logo-img {
    opacity: 0.8;
}

.footer-logo-img {
    height: 80px;
    width: auto;
}

/* ギャラリーグリッド */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s ease;
    background: #f8fafc;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item.show {
    display: block;
    animation: fadeInUp 0.5s ease forwards;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.4s ease;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(74, 111, 165, 0);
    transition: background 0.3s ease;
    z-index: 1;
}

.gallery-item::after {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 3rem;
    color: #fff;
    z-index: 2;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover::before {
    background: rgba(74, 111, 165, 0.4);
}

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.gallery-more {
    text-align: center;
    margin-top: 40px;
}

/* ライトボックス */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    animation: scaleIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2001;
    transition: all 0.3s ease;
    line-height: 1;
}

.lightbox-close:hover {
    color: #4a6fa5;
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    padding: 20px 15px;
    transition: all 0.3s ease;
    z-index: 2001;
}

.lightbox-prev {
    left: 20px;
    border-radius: 0 8px 8px 0;
}

.lightbox-next {
    right: 20px;
    border-radius: 8px 0 0 8px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(74, 111, 165, 0.8);
}

/* レスポンシブ - ギャラリー */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 1.5rem;
        padding: 15px 10px;
    }

    .lightbox-close {
        font-size: 2rem;
        top: 10px;
        right: 15px;
    }

    .logo-img {
        height: 32px;
    }
}

/* Web Works セクション */
.portfolio-category-section {
    margin-bottom: 60px;
}

.portfolio-category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4a6fa5, #3d5a80);
    border-radius: 10px;
    color: #fff;
}

.category-icon svg {
    width: 20px;
    height: 20px;
}

.portfolio-category-desc {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.web-works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.web-work-item {
    display: block;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    text-decoration: none;
}

.web-work-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(74, 111, 165, 0.2);
}

.web-work-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f1f5f9;
}

.web-work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s ease;
}

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

.web-work-info {
    padding: 16px 20px;
}

.web-work-tag {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #4a6fa5, #3d5a80);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 8px;
}

.web-work-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

/* レスポンシブ - Web Works */
@media (max-width: 1200px) {
    .web-works-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .web-works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .web-works-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-category-title {
        font-size: 1.25rem;
    }
}
