/* 全体のスタイル */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #F7F9FC; /* 淡い青みがかった白の背景 */
    color: #333333; /* 濃いグレーの文字 */
}

/* 段落のスタイル */
p {
    margin-bottom: 1.2em;
}

/* ヘッダー */
header {
    background: #66B2B2; /* ヘッダーの背景をターコイズブルーに */
    padding: 1.5rem 0;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    color: #FFFFFF !important; /* 白い文字 */
}

nav ul {
    padding: 0;
    list-style: none;
    margin-top: 1rem;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #FFFFFF; /* 白いリンク */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #DDDDDD; /* ホバーで少しグレーがかった色に */
}

/* メインコンテンツ */
main {
    padding: 20px 0;
    max-width: 960px;
    margin: 20px auto;
}

section {
    background: #FFFFFF;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

section h2 {
    color: #66B2B2; /* 見出しの色をターコイズブルーに */
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.faq-item {
    margin-bottom: 15px;
}

.faq-item h3 {
    margin-top: 0;
    color: #559999;
}

.x-link, .detail-link {
    display: inline-block;
    background-color: #66B2B2;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.x-link:hover, .detail-link:hover {
    background-color: #559999;
}

/* アプリのアイコン */
.app-icon {
    width: 100px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
}

/* フッター */
footer {
    text-align: center;
    padding: 20px 0;
    background: #FFFFFF;
    color: #999999;
    margin-top: 20px;
    box-shadow: 0 -1px 3px rgba(0,0,0,0.1);
}

/* ギャラリー */
.gallery {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 1em;
    flex-wrap: wrap;
}

.gallery-img {
    width: 100px;
    height: auto;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

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

/* モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    padding-top: 60px;
    background-color: rgba(0,0,0,0.8);
    text-align: center;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 30px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Stripeボタン */
.button-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.stripe-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #66b2b2;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 25px;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.stripe-button:hover {
    background-color: #559999;
    transform: translateY(-2px);
}

/* 開発中アプリ用のスタイル */
.in-development {
    color: #cc6666;
    background-color: #f5f5f5;
    padding: 8px 16px;
    border-radius: 4px;
    display: inline-block;
}

/* ===============================
   スマートフォン向けスタイル
   =============================== */
@media screen and (max-width: 600px) {
    section {
        text-align: initial;
    }
    
    section h2 {
        text-align: center;
    }
    
    .detail-link, .x-link {
        display: block;
        margin: 0 auto 10px;
        text-align: center;
    }
    
    section p {
        text-align: left;
    }
}


/* 上に戻るボタン */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #66b2b2;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #559999;
    transform: translateY(-2px);
}

/* ===============================
   投稿一覧 (Post List) のスタイル
   =============================== */
.post-list {
    list-style: none; /* 箇条書きの点を非表示に */
    padding: 0;      /* 左側のパディングを削除 */
    margin-top: 15px;
}

.post-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee; /* 区切り線を追加 */
}

.post-list li:last-child {
    border-bottom: none; /* 最後の項目の区切り線は不要 */
}

.post-meta {
    display: block;
    color: #999999; /* 日付の色をフッターと同じ淡いグレーに */
    font-size: 0.85em;
    margin-bottom: 5px;
}

.post-list h3 {
    margin: 0;
    font-size: 1.1em;
}

.post-link {
    color: #559999; /* section h2 の色 (#66B2B2) に近い色をリンクに */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.post-link:hover {
    color: #66B2B2; /* ホバーでサイトのテーマカラーに */
    text-decoration: underline;
}

/* 「すべてを見る」リンクのスタイル */
#updates p a {
    color: #66B2B2;
    text-decoration: underline;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}


/* ===============================
   個別投稿ページ (Post Page) のスタイル
   =============================== */
.post-content {
    /* トップページと同じセクションのスタイルを適用 */
    background: #FFFFFF;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.post-content h1 {
    color: #66B2B2; /* サイトのテーマカラー */
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
    margin-top: 0;
}

.post-content .post-meta {
    color: #999999;
    font-size: 0.9em;
    margin-bottom: 20px;
    display: block;
}

.post-body {
    line-height: 1.8;
}

.post-body p {
    margin-bottom: 1.5em;
}