/* 基本的なスタイルリセットと設定 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    color: #333;
    background-color: #f8f9fa;
}

/* ページ全体のコンテナ */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ヘッダーとフッター */
.site-header, .site-footer {
    background-color: #ffffff;
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.site-header h1 {
    margin-top: 0;
    font-size: 2.5em;
    color: #007bff;
}

.site-footer {
    border-top: 1px solid #e9ecef;
    margin-top: 40px;
    font-size: 0.9em;
    color: #6c757d;
}

.site-footer a {
    color: #007bff;
}

/* メインコンテンツ */
main {
    padding: 20px 0;
}

section {
    margin-bottom: 40px;
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    display: inline-block;
}

/* セクションタイトルを中央揃えにするためのラッパー */
section h2 {
    display: block;
    text-align: center;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}
#contact {
    text-align: center;
}

/* アプリ紹介のグリッドレイアウト */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* アプリカードのスタイル */
.app-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.app-icon {
    width: 100px;
    height: 100px;
    border-radius: 22%; /* iOS風の角丸 */
    margin-bottom: 15px;
    background-color: #f0f0f0; /* 画像読み込み中に表示される背景色 */
}

.app-card h3 {
    margin-top: 0;
    font-size: 1.25em;
    min-height: 2.5em; /* タイトルの高さを揃える */
}

/* アプリへのリンク一覧 */
.app-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.app-links li {
    margin-bottom: 10px;
}

.app-links a {
    text-decoration: none;
    color: #007bff;
}

.app-links a:hover {
    text-decoration: underline;
}

/* App Storeへのリンクを目立たせる */
a.app-store-link {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.2s;
}

a.app-store-link:hover {
    background-color: #0056b3;
    color: #fff;
    text-decoration: none;
}
