/*
Theme Name: SNS Mobile Theme
Description: スマホ・iPad投稿特化型 SNS風 WordPress テーマ
Version: 0.1
Author: tsukikage
*/
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  background: #f5f5f7;
  color: #111;
}

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

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

/* ==== アプリシェル ==== */
.appShell {
  min-height: 100vh;
  padding-bottom: 80px; /* 下部タブ＋FAB分の余白 */
}

/* ==== ヘッダー ==== */
.appHeader {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffffcc;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e5ea;
}

.appHeaderInner {
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 16px;
}

.appLogo {
  font-size: 18px;
  font-weight: 600;
}

/* ==== タイムライン ==== */
.timeline {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 12px 96px;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 12px 12px 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card .thumb {
  margin-bottom: 8px;
}

.card .thumb img {
  border-radius: 12px;
}

.card .meta time {
  display: block;
  font-size: 11px;
  color: #888;
  margin-bottom: 4px;
}

.card .meta h2 {
  font-size: 16px;
  margin: 0 0 4px;
}

.card .meta p {
  font-size: 14px;
  margin: 0;
  color: #444;
}

/* ==== シングル記事 ==== */
.single {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 12px 96px;
}

.singleArticle {
  background: #fff;
  border-radius: 16px;
  padding: 16px 16px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.singleHeader time {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}

.singleHeader h1 {
  font-size: 20px;
  margin: 0 0 12px;
}

.singleThumb {
  margin: 0 -4px 12px;
}

.singleThumb img {
  border-radius: 14px;
}

.singleBody p {
  font-size: 15px;
  line-height: 1.9;
  margin: 0 0 1em;
}

/* ==== 下部タブナビ ==== */
.appFooter {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
}

.tabNav {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
}

.tabNavItem {
  flex: 1;
  text-align: center;
  padding: 6px 0 4px;
  font-size: 11px;
  color: #777;
}

.tabNavItem.is-active,
.tabNavItem:active {
  color: #111;
  font-weight: 600;
}

.tabNavLabel {
  display: block;
}

/* ==== フローティング投稿ボタン ==== */
.fabPostButton {
  position: fixed;
  right: 16px;
  bottom: 88px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.cardTags {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.cardTag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f2f2f7;
  font-size: 11px;
  color: #555;
}

/* ==== フロント投稿ページ ==== */
.frontPost {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 12px 96px;
}

.frontPostForm {
  background: #fff;
  border-radius: 16px;
  padding: 16px 16px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.frontPostField {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.frontPostLabel {
  color: #555;
}

.frontPostForm textarea,
.frontPostForm input[type="text"] {
  border: 1px solid #e5e5ea;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
  resize: vertical;
}

.frontPostForm input[type="file"] {
  font-size: 13px;
}

.frontPostSubmit {
  margin-top: 8px;
  border: none;
  border-radius: 999px;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  background: #111;
  color: #fff;
  text-align: center;
}

/* 成功・エラーメッセージ */
.snsFrontNotice {
  margin-bottom: 12px;
  font-size: 13px;
  color: #c00;
}

.snsFrontNotice.is-success {
  color: #0a0;
}
