
:root {
    --primary: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #C8E6C9;
    --accent: #FF9800;
    --text: #212121;
    --text-secondary: #757575;
    --divider: #BDBDBD;
    --background: #F5F5F5;
    --card: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
header {
    background-color: var(--primary);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

header.hidden {
    transform: translateY(-100%);
}

/* ヘッダーの高さ分のマージンを追加 */
body {
    padding-top: 73px;
}

/* スマホでのヘッダー重複防止 */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 75px;
    }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    font-family:'メイリオ', 'Meiryo', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', sans-serif;
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    background-color: #fff;
    border-radius: 4px;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

nav ul li {
    position: relative;
    white-space: nowrap;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

nav ul li a:hover {
    color: var(--primary-light);
    background-color: rgba(255, 255, 255, 0.1);
}

ドロップダウン矢印
.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow,
.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* ドロップダウンメニュー */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    min-width: 180px;
    z-index: 1000;
    margin-top: 0;
    padding-top: 8px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--divider);
    transition: background-color 0.3s ease;
    border-radius: 0;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: var(--background);
    color: var(--primary);
}

.dropdown:hover .dropdown-toggle,
.dropdown.active .dropdown-toggle {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ユーザーメニュー */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.user-info:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--primary);
    flex-shrink: 0;
}

.user-name {
    white-space: nowrap;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 75%;
    transform: translateX(-50%) translateY(-10px);
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    min-width: 180px;
    z-index: 1000;
    margin-top: 0;
    padding-top: 8px;
    opacity: 0;
    transition: all 0.3s ease;
}

.user-menu:hover .user-dropdown,
.user-menu.active .user-dropdown {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.user-dropdown a {
    display: block;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--divider);
    transition: background-color 0.3s ease;
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a:hover {
    background-color: var(--background);
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), 
    url('/img/header.webp') center/cover no-repeat;
    height: 300px; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    position: relative;
}

/* ヘッダー画像募集メッセージ */
.header-image-request {
    position: absolute;
    bottom: 20px;
    right: 20px;
    transform: rotate(0deg);
    z-index: 4;
}

.header-image-request span {
    display: inline-block;
    color: white;
    font-size: 12px;
    font-family: "Osaka";
    padding: 4px 8px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.header-image-request span:hover {
    transform: scale(1.05) rotate(-3deg);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content {
    max-width: 700px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    background-color: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #F57C00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* 検索セクション */
.search-section {
    background-color: var(--card);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.search-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.search-input {
    flex: 1;
    min-width: 250px;
}

.search-input input {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid var(--divider);
    border-radius: 4px;
    font-size: 1rem;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-select {
    padding: 0.7rem;
    border: 1px solid var(--divider);
    border-radius: 4px;
    background-color: white;
    min-width: 150px;
}

/* サーバーリスト */
.servers-section {
    margin-bottom: 3rem;
    margin-top:3.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.server-card {
    background-color: var(--card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.server-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 順位表示のスタイル - 半円形切り取りデザイン */
.server-rank {
    position: absolute;
    top: 0;
    left: 0;
    width: 35px;
    height: 35px;
    background: rgba(128, 128, 128, 0.8);
    color: white;
    font-weight: bold;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 50%);
    border-radius: 0 0 50% 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.server-image {
    height: 160px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    position: relative;
}

.server-content {
    padding: 1rem;
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.server-title {
    font-size: 1.2rem;
    font-weight: 500;
}

.server-votes {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.server-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 0.5rem;
}

.server-tag {
    background-color: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.server-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    /* -webkit-line-clamp: 3; */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.server-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.server-stats {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.server-stats span {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.server-stats span:before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #4CAF50;
    border-radius: 50%;
    margin-right: 5px;
}

/* オフライン状態のスタイル */
.server-stats span.offline:before {
    background-color: #dc3545;
}


/* 機能紹介セクション */
.features-section {
    padding: 3rem 0;
    background-color: var(--primary-light);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.feature-card {
    background-color: var(--card);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary);
}

.feature-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* CTAセクション */
.cta-section {
    text-align: center;
    padding: 3rem 0;
    background-color: var(--card);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
}

.cta-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-description {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-secondary);
}

/* フッター */
footer {
    background-color: #333;
    color: white;
    padding: 2rem 0 1.5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

/* フッターのドロップダウンメニュー */
.footer-section .dropdown {
    position: relative;
}

.footer-section .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #444;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    min-width: 180px;
    z-index: 1000;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.footer-section .dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.footer-section .dropdown-menu li {
    margin: 0;
}

.footer-section .dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: #ddd;
    text-decoration: none;
    border-bottom: 1px solid #555;
    transition: background-color 0.3s ease;
    border-radius: 0;
}

.footer-section .dropdown-menu a:last-child {
    border-bottom: none;
}

.footer-section .dropdown-menu a:hover {
    background-color: #555;
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #aaa;
}

/* css/style.css の修正部分 */

/* レスポンシブデザインの改善 */
@media (max-width: 768px) {
    /* モバイル版ではカード全体のクリックを無効化 */
    .server-card {
        cursor: default;
    }
    
    /* ヘッダーのモバイル対応 */
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 1.8rem;
        cursor: pointer;
        padding: 8px;
        border-radius: 4px;
        transition: background-color 0.3s ease;
    }

    .mobile-menu-btn:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .header-container {
        position: relative;
        padding: 0 15px;
    }

    .logo {
        font-size: 1.3rem;
        flex: 1;
    }

    .logo-icon {

        width: 28px;
        height: 28px;
    }

    /* ナビゲーションメニューのモバイル対応 */
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100vw;
        margin-left: -15px;
        background-color: var(--primary);
        flex-direction: column;
        padding: 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 0;
        position: relative;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        display: block;
        padding: 1rem 1.5rem;
        border-radius: 0;
        font-size: 1rem;
        font-weight: 500;
        width: 100%;
        box-sizing: border-box;
    }

    /* モバイルでのドロップダウンメニュー */
    .dropdown-menu {
        position: static;
        display: none;
        background-color: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        margin: 0;
        padding: 0;
        opacity: 1;
        transform: none;
        border-radius: 0;
        min-width: auto;
        width: 100%;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dropdown-menu a {
        padding: 0.8rem 2rem;
        color: rgba(255, 255, 255, 0.9);
        border-bottom: none;
        font-size: 0.95rem;
    }

    .dropdown-menu a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
    }

    /* ユーザーメニューのモバイル対応 */
    .user-info {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .user-dropdown {
        position: static;
        background-color: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        margin: 0;
        padding: 0;
        opacity: 1;
        transform: none;
        border-radius: 0;
        min-width: auto;
        width: 100%;
    }

    .user-dropdown a {
        color: rgba(255, 255, 255, 0.9);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 0.8rem 2rem;
        font-size: 0.95rem;
    }

    .user-dropdown a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
    }

    /* ヒーローセクションのモバイル対応 */
    .hero {
        height: 280px;
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }

    .hero p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.2rem;
    }

    .hero .btn {
        display: inline-block;
        margin: 0.3rem;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        min-width: 140px;
        text-align: center;
    }

    /* コンテナのモバイル対応 */
    .container {
        padding: 0 15px;
    }

    /* 検索セクションのモバイル対応 */
    .search-section {
        padding: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .search-container {
        flex-direction: column;
        gap: 10px;
    }

    .search-input {
        min-width: auto;
    }

    .search-input input {
        padding: 0.8rem;
        font-size: 1rem;
        border-radius: 6px;
    }

    .filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .filter-select {
        padding: 0.8rem;
        font-size: 0.95rem;
        min-width: auto;
        border-radius: 6px;
    }

    .search-container .btn {
        grid-column: 1 / -1;
        padding: 0.8rem;
        font-size: 1rem;
        margin-top: 0.5rem;
    }

    /* サーバーグリッドのモバイル対応 */
    .servers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* サーバーカードのモバイル対応 */
    .server-card {
        border-radius: 8px;
    }

    .server-rank {
        width: 25px;
        height: 25px;
        font-size: 0.5rem;
    }

    .server-image {
        height: 100px;
    }

    .server-content {
        padding: 0.7rem;
    }

    .server-title {
        font-size: 0.95rem;
        line-height: 1.2;
    }

    .server-votes {
        font-size: 0.7rem;
        padding: 2px 6px;
    }

    .server-tags {
        margin-bottom: 0.5rem;
    }

    .server-tag {
        font-size: 0.65rem;
        padding: 2px 6px;
    }

    .server-description {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 0.7rem;
        -webkit-line-clamp: 2;
        max-height: 2.6em;
    }

    .server-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .server-stats {
        font-size: 0.75rem;
    }

    /* セクションヘッダーのモバイル対応 */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        margin-bottom: 1.2rem;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .section-header .btn {
        align-self: stretch;
        text-align: center;
        padding: 0.6rem;
    }

    /* 機能紹介セクションのモバイル対応 */
    .features-section {
        padding: 2rem 0;
        margin-bottom: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 1.2rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    /* CTAセクションのモバイル対応 */
    .cta-section {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }

    .cta-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .cta-description {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    /* フッターのモバイル対応 */
    footer {
        padding: 2rem 0 1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 1.5rem;
    }

    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .footer-section ul li {
        margin-bottom: 0.4rem;
    }

    .footer-section ul li a {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .footer-bottom {
        font-size: 0.85rem;
        padding-top: 1rem;
    }

    /* リスト表示のモバイル対応 */
    .servers-list .server-card {
        flex-direction: column;
    }

    .servers-list .server-image {
        width: 100%;
        height: 140px;
    }

    .view-toggle {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }

    .view-toggle button {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
        flex: 1;
        max-width: 120px;
    }

    /* ページネーションのモバイル対応 */
    .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 1rem 0;
    }

    .pagination button {
        min-width: 80px;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* 小さなスマートフォン（320px〜480px）への追加対応 */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero .btn {
        display: block;
        margin: 0.5rem auto;
        width: 200px;
    }

    .filters {
        grid-template-columns: 1fr;
    }
    
    /* 小画面ではサーバーカードを1列に */
    .servers-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* 小画面でのサーバーカード調整 */
    .server-card {
        border-radius: 6px;
    }
    
    .server-image {
        height: 120px;
    }
    
    .server-content {
        padding: 0.6rem;
    }
    
    .server-title {
        font-size: 0.9rem;
    }
    
    .server-description {
        font-size: 0.75rem;
        -webkit-line-clamp: 3;
        max-height: 3.9em;
    }

    .server-card {
        margin-bottom: 10px;
    }

    .cta-title {
        font-size: 1.3rem;
    }

    .feature-card {
        padding: 1rem;
    }
}

/* タッチデバイス用の改善 */
@media (hover: none) and (pointer: coarse) {
    nav ul li a {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .server-card {
        transition: none;
    }

    .server-card:active {
        transform: scale(0.98);
    }
    
    /* ヒーローセクションのボタン改善 */
    .hero .btn {
        min-height: 48px;
        margin: 0.5rem;
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
        border-radius: 6px;
    }
    
    /* もっと見るボタンのタッチ改善 */
    .more-btn-overlay,
    .more-btn {
        min-height: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* セクションヘッダーのボタン改善 */
    .section-header .btn {
        min-height: 44px;
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
    }
    
    /* CTAセクションのボタン改善 */
    .cta-section .btn {
        min-height: 48px;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-radius: 6px;
    }
}

/* スマホでの読みやすさ向上 */
@media (max-width: 768px) {
    /* テキストサイズの自動調整を無効化 */
    body {
        -webkit-text-size-adjust: 100%;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* タップハイライトを無効化 */
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* ヒーローセクションの改善 */
    .hero {
        height: 250px;
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 1.6rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    .hero p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .hero .btn {
        display: inline-block;
        margin: 0.3rem;
        width: auto;
        min-width: 140px;
        text-align: center;
        min-height: 44px;
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* ヘッダー画像募集メッセージの改善 */
    .header-image-request {
        bottom: 15px;
        right: 15px;
    }
    
    .header-image-request span {
        font-size: 10px;
        padding: 3px 6px;
        border-radius: 15px;
    }
    
    /* コンテナの改善 */
    .container {
        padding: 0 15px;
    }
    
    /* サーバーセクションの改善 */
    .servers-section {
        margin-bottom: 2rem;
        margin-top: 2.5rem;
    }
    
    /* セクションヘッダーの改善 */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        margin-bottom: 1.2rem;
    }
    
    .section-header h2 {
        font-size: 1.4rem;
        margin-bottom: 0;
    }
    
    .section-header .btn {
        align-self: stretch;
        text-align: center;
        padding: 0.8rem;
        font-size: 0.95rem;
        min-height: 44px;
    }
    
    /* CTAセクションの改善 */
    .cta-section {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
        border-radius: 6px;
    }
    
    .cta-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .cta-description {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .cta-section .btn {
        display: inline-block;
        margin: 0 auto;
        width: auto;
        min-width: 200px;
        text-align: center;
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    /* より小さな画面での改善 */
    .hero {
        height: 220px;
        padding: 0 10px;
    }
    
    .hero h1 {
        font-size: 1.4rem;
        margin-bottom: 0.6rem;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .hero .btn {
        width: auto;
        min-width: 120px;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        margin: 0.2rem;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .servers-section {
        margin-bottom: 1.5rem;
        margin-top: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .section-header .btn {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    
    .cta-section {
        padding: 1.5rem 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-title {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .cta-description {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    
    .cta-section .btn {
        width: auto;
        min-width: 180px;
        padding: 0.7rem 1.3rem;
        font-size: 0.9rem;
    }
    
    /* ヘッダー画像募集メッセージの小画面対応 */
    .header-image-request {
        bottom: 10px;
        right: 10px;
    }
    
    .header-image-request span {
        font-size: 9px;
        padding: 2px 5px;
        border-radius: 12px;
    }
}