/*
Theme Name: ByteCraft Theme
Theme URI: https://bytecraft.co.jp
Description: ByteCraft Inc. 企業サイト用WordPressテーマ - AI×システム開発
Version: 2.0
Author: ByteCraft Inc.
Text Domain: bytecraft
*/

:root {
    --color-bg: #0a0d12;
    --color-surface: rgba(26, 30, 38, 0.6);
    --color-accent: #00e5ff;
    --color-accent-alt: #00b0ff;
    --color-text: #e0e0e0;
    --color-text-light: #fff;
    --color-text-muted: #8899aa;
    --color-border: rgba(255, 255, 255, 0.06);
    --radius-card: 14px;
    --container-max: 1200px;
    --header-height: 72px;
    --transition-default: all 0.3s ease;
}

/* ============================
   リセット & 基本設定
   ============================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-text-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* スクリーンリーダー用非表示テキスト */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* ============================
   共通パーツ
   ============================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ボタンスタイル */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: var(--transition-default);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-alt));
    color: var(--color-bg);
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 229, 255, 0.45);
    color: var(--color-bg);
}

.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border: 1px solid rgba(0, 229, 255, 0.4);
}

.btn-outline:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* セクションヘッダー */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--color-text-light);
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ============================
   ヘッダー
   ============================ */
.site-header {
    background: rgba(10, 13, 18, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    padding: 0 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 72px;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #00e5ff;
    margin: 0;
    letter-spacing: 2px;
}

/* ナビゲーションメニュー */
.main-nav .nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.main-nav .nav-menu li a,
.main-nav a {
    color: #c0cbd8;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.main-nav .nav-menu li a:hover,
.main-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

/* ハンバーガーメニューボタン */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.is-active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.menu-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

/* ============================
   ヒーローセクション
   ============================ */
.hero {
    position: relative;
    padding: 100px 5% 80px;
    background: radial-gradient(ellipse at 30% 50%, rgba(0, 229, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 20%, rgba(0, 112, 255, 0.06) 0%, transparent 50%),
        #0a0d12;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, #0a0d12 100%);
    pointer-events: none;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    width: 100%;
}

/* ヒーローテキスト */
.hero-text {
    flex: 1;
    min-width: 0;
}

.hero-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #00e5ff;
    text-transform: uppercase;
    letter-spacing: 4px;
    padding: 6px 16px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 30px;
    margin-bottom: 28px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-title-line {
    display: block;
    background: linear-gradient(135deg, #fff 0%, #a0c8ff 50%, #00e5ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeSlideUp 0.8s ease forwards;
    opacity: 0;
}

.hero-title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-title-line:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-description {
    font-size: 1.1rem;
    color: #8899aa;
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ヒーロー画像 */
.hero-image-wrapper {
    flex: 1;
    position: relative;
    max-width: 520px;
}

.hero-image-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.hero-image-wrapper img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid rgba(0, 229, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 229, 255, 0.1);
    position: relative;
    z-index: 1;
}

/* ============================
   ソリューションセクション
   ============================ */
.solutions-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #0a0d12 0%, #0e1219 100%);
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.solution-card {
    background: rgba(26, 30, 38, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 32px 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.solution-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 229, 255, 0.08);
}

.solution-card:hover::before {
    opacity: 1;
}

.solution-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00e5ff;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.solution-card:hover .solution-icon {
    background: rgba(0, 229, 255, 0.18);
    transform: scale(1.05);
}

.solution-card-body {
    position: relative;
    z-index: 1;
    flex: 1;
}

.solution-card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.4;
}

.solution-card-body p {
    font-size: 0.88rem;
    color: #8899aa;
    line-height: 1.7;
    margin: 0;
}

.solution-card-footer {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.solution-tag {
    font-size: 0.72rem;
    font-weight: 600;
    color: #00e5ff;
    background: rgba(0, 229, 255, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 229, 255, 0.15);
}

/* ============================
   最新ブログセクション（トップページ）
   ============================ */
.latest-blog-section {
    padding: 100px 0;
    background: #0a0d12;
}

.latest-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.latest-blog-card {
    background: rgba(26, 30, 38, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.latest-blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 229, 255, 0.25);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.latest-blog-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.latest-blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.latest-blog-card:hover .latest-blog-thumb img {
    transform: scale(1.08);
}

.latest-blog-thumb--empty {
    background: linear-gradient(135deg, #1a1e26, #252a34);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2d343f;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.latest-blog-card-body {
    padding: 24px;
}

.latest-blog-date {
    font-size: 0.8rem;
    color: #5a6a7a;
    font-weight: 500;
}

.latest-blog-card-body h3 {
    margin: 10px 0 12px;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
}

.latest-blog-card-body h3 a {
    color: #fff;
    transition: color 0.3s ease;
}

.latest-blog-card-body h3 a:hover {
    color: #00e5ff;
}

.latest-blog-card-body p {
    color: #7a8a9a;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}

.latest-blog-more {
    text-align: center;
    margin-top: 48px;
}

.no-posts-message {
    text-align: center;
    color: #5a6a7a;
    padding: 40px 0;
    font-size: 1rem;
}

/* ============================
   コンテンツエリア（2カラムレイアウト）
   ============================ */
.content-area {
    padding: 60px 0 80px;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

.main-content {
    min-width: 0;
}

/* ============================
   サイドバー
   ============================ */
.sidebar {
    position: sticky;
    top: 96px;
}

.sidebar-widget {
    background: rgba(26, 30, 38, 0.6);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-icon {
    font-size: 1rem;
}

/* 検索フォーム */
.search-form {
    margin: 0;
}

.search-input-wrapper {
    display: flex;
    background: rgba(10, 13, 18, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.08);
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 16px;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
}

.search-input::placeholder {
    color: #4a5568;
}

.search-submit {
    background: none;
    border: none;
    color: #5a6a7a;
    cursor: pointer;
    padding: 12px 16px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.search-submit:hover {
    color: #00e5ff;
}

/* アーカイブリスト */
.archive-list,
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-list li,
.category-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.archive-list li:last-child,
.category-list li:last-child {
    border-bottom: none;
}

.archive-list li a,
.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 4px;
    color: #8899aa;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.archive-list li a:hover,
.category-list li a:hover {
    color: #00e5ff;
    padding-left: 8px;
}

/* ============================
   ブログカード一覧
   ============================ */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-card {
    display: flex;
    background: rgba(26, 30, 38, 0.6);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.blog-card:hover {
    border-color: rgba(0, 229, 255, 0.25);
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.blog-thumb {
    width: 280px;
    min-width: 280px;
    overflow: hidden;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-content {
    padding: 24px 28px;
    flex: 1;
}

.blog-date {
    font-size: 0.8rem;
    color: #5a6a7a;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

.blog-card-content h3 {
    margin: 0 0 12px 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.5;
}

.blog-card-content h3 a {
    color: #fff;
}

.blog-card-content h3 a:hover {
    color: #00e5ff;
}

.blog-card-content p {
    color: #7a8a9a;
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.7;
}

.read-more {
    font-weight: 600;
    font-size: 0.88rem;
    color: #00e5ff;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #fff;
}

/* ============================
   アーカイブ・検索結果ヘッダー
   ============================ */
.archive-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.archive-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #00e5ff;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.archive-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.archive-count {
    color: #5a6a7a;
    font-size: 0.9rem;
}

/* 検索結果なしの場合 */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: rgba(26, 30, 38, 0.6);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.no-results h2 {
    color: #fff;
    margin-bottom: 12px;
}

.no-results p {
    color: #5a6a7a;
    margin-bottom: 24px;
}

/* ============================
   ページネーション
   ============================ */
.pagination {
    margin-top: 48px;
    text-align: center;
}

.pagination .nav-links,
.pagination ul.page-numbers {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    list-style: none;
    /* type=>list用にリセット追加 */
    padding: 0;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: #c0cbd8;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition-default);
    display: block;
    /* <li>内への対応 */
}

.pagination a:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.3);
    color: #00e5ff;
}

.pagination .current {
    background: linear-gradient(135deg, #00e5ff, #00b0ff);
    color: #0a0d12;
    border-color: transparent;
    font-weight: 700;
}

/* ============================
   投稿詳細ページ
   ============================ */
.single-post-container {
    background: rgba(26, 30, 38, 0.6);
    padding: 48px 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.post-date {
    color: #00e5ff;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.post-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 32px;
}

.post-thumbnail {
    margin-bottom: 36px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
}

/* 記事本文 */
.entry-content h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    border-left: 3px solid #00e5ff;
    padding-left: 16px;
    margin-top: 40px;
    margin-bottom: 16px;
}

.entry-content h3 {
    color: #e0e8f0;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
}

.entry-content p {
    margin-bottom: 20px;
    color: #a0b0c0;
    line-height: 1.9;
    font-size: 0.95rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.entry-content li {
    margin-bottom: 8px;
    color: #a0b0c0;
    line-height: 1.7;
}

.entry-content blockquote {
    border-left: 3px solid #00e5ff;
    margin: 24px 0;
    padding: 16px 24px;
    background: rgba(0, 229, 255, 0.04);
    border-radius: 0 8px 8px 0;
    color: #8899aa;
    font-style: italic;
}

.entry-content pre {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.entry-content code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.88rem;
}

.entry-content img {
    border-radius: 10px;
    margin: 20px 0;
}

/* 前後ナビゲーション */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    gap: 16px;
}

.post-navigation a {
    font-weight: 600;
    font-size: 0.88rem;
    color: #00e5ff;
}

.post-navigation a:hover {
    color: #fff;
}

/* ============================
   固定ページコンテンツ
   ============================ */
.page-content {
    max-width: 900px;
    margin: 0 auto;
}

/* 企業情報テーブル */
.company-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(26, 30, 38, 0.6);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.company-table th,
.company-table td {
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px;
    text-align: left;
}

.company-table th {
    background: rgba(0, 229, 255, 0.06);
    color: #00e5ff;
    width: 30%;
    font-weight: 700;
}

.company-table td {
    color: #a0b0c0;
}

.company-table ul {
    margin: 0;
    padding-left: 20px;
}

/* ============================
   フッター
   ============================ */
.site-footer {
    background: #060810;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 60px 5% 40px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: #00e5ff;
    letter-spacing: 2px;
}

.footer-tagline {
    color: #4a5568;
    font-size: 0.85rem;
    margin-top: 8px;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
}

.footer-links a {
    color: #5a6a7a;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00e5ff;
}

.footer-copyright {
    color: #3a4558;
    font-size: 0.8rem;
}

/* ============================
   レスポンシブ対応
   ============================ */

/* タブレット */
@media (max-width: 1024px) {
    .solution-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        order: 1;
    }

    .hero-image-wrapper {
        order: 2;
        max-width: 450px;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .latest-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .layout-with-sidebar {
        grid-template-columns: 1fr 260px;
        gap: 32px;
    }
}

/* スマートフォン */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(10, 13, 18, 0.98);
        backdrop-filter: blur(20px);
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
        z-index: 999;
    }

    .main-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .main-nav .nav-menu {
        flex-direction: column;
        gap: 4px;
    }

    .main-nav .nav-menu li a,
    .main-nav a {
        display: block;
        padding: 14px 16px;
        font-size: 1rem;
    }

    .hero {
        padding: 60px 5% 40px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-label {
        font-size: 0.7rem;
    }

    .solutions-section {
        padding: 60px 0;
    }

    .solution-grid {
        grid-template-columns: 1fr;
    }

    .latest-blog-section {
        padding: 60px 0;
    }

    .latest-blog-grid {
        grid-template-columns: 1fr;
    }

    .layout-with-sidebar {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sidebar {
        position: static;
    }

    .blog-card {
        flex-direction: column;
    }

    .blog-thumb {
        width: 100%;
        min-width: auto;
        height: 200px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .single-post-container {
        padding: 28px 20px;
    }

    .post-title {
        font-size: 1.5rem;
    }

    .archive-title {
        font-size: 1.5rem;
    }

    .post-navigation {
        flex-direction: column;
        gap: 12px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

/* 小さいスマートフォン */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .container {
        padding: 0 16px;
    }
}