/* ===== flight.css — mobile-first sky theme ===== */
:root {
  --sky:    #0ea5e9;
  --sky2:   #38bdf8;
  --sky3:   #bae6fd;
  --sky-bg: #f0f9ff;
  --white:  #ffffff;
  --text:   #0f172a;
  --muted:  #64748b;
  --border: #e0f2fe;
  --card:   #ffffff;
  --panel:  #f8fafc;
  --radius: 12px;
  --shadow: 0 1px 6px rgba(14,165,233,0.10);
  --font:   'Noto Sans JP', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  background: var(--sky-bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
  /* 空の薄いテクスチャ */
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(186,230,253,0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 10%, rgba(224,242,254,0.5) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(186,230,253,0.2) 0%, transparent 50%);
}

/* ===== HEADER ===== */
.fj-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-top: 3px solid var(--sky);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(14,165,233,0.08);
}
.fj-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 64px;
  max-width: 1100px;
  margin: 0 auto;
}
.fj-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}
.fj-logo-text {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.fj-logo-flight { color: var(--sky); }
.fj-logo-japan  { color: var(--text); font-weight: 400; font-size: 17px; }
.fj-logo-company {
  font-size: 9px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.fj-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fj-user-name {
  font-size: 12px;
  color: var(--muted);
}
.fj-btn-ghost {
  font-size: 12px;
  color: var(--sky);
  text-decoration: none;
  padding: 5px 10px;
  border: 1px solid var(--sky);
  border-radius: 6px;
  transition: all 0.15s;
}
.fj-btn-ghost:hover { background: var(--sky); color: #fff; }

.fj-btn-post {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--sky);
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.fj-btn-post:hover { background: #0284c7; }

/* ===== NAV ===== */
.fj-nav {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid var(--border);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 4px;
}
.fj-nav::-webkit-scrollbar { display: none; }
.fj-nav-link {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 14px;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
}
.fj-nav-link:hover, .fj-nav-link.active {
  color: var(--sky);
  border-bottom-color: var(--sky);
}

/* ===== HERO IMAGE ===== */
.fj-hero-img {
  width: 100%;
  line-height: 0;
}
.fj-hero-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 360px;
}

/* ===== AD BANNER ===== */
.fj-ad {
  padding: 12px 16px;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== LAYOUT ===== */
.fj-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

@media (min-width: 768px) {
  .fj-main {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    padding: 24px 16px;
    align-items: start;
  }
}

/* ===== SECTION TITLE ===== */
.fj-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.fj-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ===== ARTICLE CARD ===== */
.fj-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.fj-card {
  background: var(--card);
  transition: background 0.15s;
}
.fj-card:hover { background: #f0f9ff; }
.fj-card a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
}
.fj-card-body { flex: 1; min-width: 0; }
.fj-card-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 4px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.fj-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.fj-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--sky);
  background: #e0f2fe;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.fj-card-date {
  font-size: 11px;
  color: var(--muted);
}
.fj-card-author {
  font-size: 11px;
  color: var(--muted);
}
.fj-card-badge {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  background: var(--sky-bg);
  border-radius: 8px;
  padding: 6px 4px;
}
.fj-card-badge-num {
  font-size: 16px;
  font-weight: 700;
  color: var(--sky);
  line-height: 1;
}
.fj-card-badge-lbl {
  font-size: 9px;
  color: var(--muted);
  margin-top: 2px;
}

/* ===== AD BETWEEN CARDS ===== */
.fj-card-ad {
  background: var(--panel);
  padding: 8px;
  text-align: center;
}

/* ===== SIDEBAR ===== */
.fj-sidebar { display: none; }
@media (min-width: 768px) {
  .fj-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
}
.fj-sidebar-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.fj-sidebar-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--sky);
  padding: 10px 14px;
  background: var(--sky-bg);
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.fj-sidebar-body { padding: 14px; }
.fj-side-link {
  display: block;
  padding: 7px 0;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.fj-side-link:last-child { border-bottom: none; }
.fj-side-link:hover { color: var(--sky); }
.fj-side-link i { width: 16px; color: var(--sky); }

/* ===== FAB (モバイル投稿ボタン) ===== */
.fj-fab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  right: 20px;
  bottom: 28px;
  z-index: 200;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--sky), #0284c7);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(14,165,233,0.5);
  transition: transform 0.15s, box-shadow 0.15s;
  animation: fj-fab-pulse 3s ease-in-out infinite;
  gap: 1px;
}
.fj-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(14,165,233,0.65);
  animation: none;
}
.fj-fab-icon { font-size: 22px; line-height: 1; }
.fj-fab-label { font-size: 9px; font-weight: 700; letter-spacing: 0.5px; }

@keyframes fj-fab-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(14,165,233,0.5); }
  50%       { box-shadow: 0 4px 32px rgba(14,165,233,0.75), 0 0 0 8px rgba(14,165,233,0.12); }
}
@media (min-width: 768px) { .fj-fab { display: none; } }

/* ===== EMPTY ===== */
.fj-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--muted);
  font-size: 14px;
}

/* ===== BREADCRUMB ===== */
.fj-breadcrumb {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.fj-breadcrumb a { color: var(--sky); text-decoration: none; }
.fj-breadcrumb a:hover { text-decoration: underline; }

/* ===== THREAD HEAD ===== */
.fj-thread-head {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.fj-thread-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin: 8px 0 10px;
  color: var(--text);
}
.fj-thread-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 12px;
}

/* ===== POST LIST ===== */
.fj-post-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.fj-post {
  background: var(--card);
  padding: 14px 16px;
}
.fj-post--op {
  background: #f0f9ff;
  border-left: 3px solid var(--sky);
}
.fj-post--reply {
  background: #fafbfc;
  padding-left: 28px;
  border-left: 3px solid var(--border);
}
.fj-post-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.fj-post-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--sky);
  min-width: 20px;
}
.fj-post-author {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.fj-post-date {
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
}
.fj-post-op-badge {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: var(--sky);
  padding: 2px 6px;
  border-radius: 4px;
}
.fj-post-reply-btn {
  font-size: 11px;
  color: var(--sky);
  background: #e0f2fe;
  border: none;
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.fj-post-reply-btn:hover { background: var(--sky3); }
.fj-post-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  word-break: break-word;
}
.fj-post-images {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.fj-post-images img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}
@media (min-width: 768px) {
  .fj-post-images img { width: 130px; height: 130px; }
}

/* ===== REPLY FORM ===== */
.fj-reply-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  margin-bottom: 24px;
}
.fj-reply-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}
.fj-reply-to {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #e0f2fe;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--sky);
  margin-bottom: 12px;
}
.fj-reply-to-cancel {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  margin-left: auto;
}
.fj-reply-field {
  margin-bottom: 14px;
}
.fj-reply-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.fj-reply-field input[type="text"],
.fj-reply-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: var(--sky-bg);
  outline: none;
  transition: border-color 0.15s;
}
.fj-reply-field input:focus,
.fj-reply-field textarea:focus { border-color: var(--sky); }
.fj-reply-field textarea { resize: vertical; }
.fj-required {
  color: #ef4444;
  font-size: 10px;
  margin-left: 4px;
}
.fj-file-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sky-bg);
  border: 1px dashed var(--sky);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--sky);
  cursor: pointer;
  transition: background 0.15s;
}
.fj-file-label:hover { background: #e0f2fe; }
.fj-file-label input[type="file"] { display: none; }
.fj-preview-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.fj-preview-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* ===== FOOTER ===== */
.fj-footer {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 30px 16px;
  text-align: center;
  margin-top: 40px;
}
.fj-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.fj-footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
}
.fj-footer-logo-text {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.fj-footer-logo .fj-logo-flight { color: var(--sky); }
.fj-footer-logo .fj-logo-japan  { color: var(--text); font-weight: 400; font-size: 17px; }
.fj-footer-logo-company {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.fj-footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.fj-footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: all 0.15s;
  font-weight: 600;
}
.fj-footer-links a:hover {
  color: var(--sky);
}

.fj-footer-copy {
  font-size: 11px;
  color: var(--muted);
}

/* ===== CHAR COUNT ===== */
.fj-char-count {
  float: right;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}

/* ===== THREADS OPTION ===== */
.fj-threads-opt {
  margin-top: 16px;
  padding: 12px 14px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 10px;
}
.fj-threads-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  font-weight: 400 !important;
  margin: 0 !important;
  cursor: pointer;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.fj-threads-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.fj-threads-icon {
  font-size: 16px;
  font-weight: 900;
  font-style: italic;
  color: #000;
  font-family: Georgia, serif;
}

/* ===== MODAL (投稿フォーム) ===== */
.fj-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  align-items: flex-end;
  justify-content: center;
}
.fj-modal-overlay.open { display: flex; }
@media (min-width: 768px) {
  .fj-modal-overlay { align-items: center; }
}
.fj-modal {
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 24px 20px 32px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
}
@media (min-width: 768px) {
  .fj-modal { border-radius: 16px; }
}
.fj-modal-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}
.fj-modal label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.fj-modal input[type="text"],
.fj-modal textarea,
.fj-modal select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: var(--sky-bg);
  outline: none;
  transition: border-color 0.15s;
}
.fj-modal input:focus,
.fj-modal textarea:focus,
.fj-modal select:focus { border-color: var(--sky); }
.fj-modal textarea { resize: vertical; min-height: 100px; }
.fj-modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.fj-btn-submit {
  flex: 1;
  background: var(--sky);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.fj-btn-submit:hover { background: #0284c7; }
.fj-btn-cancel {
  background: var(--panel);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 14px;
  cursor: pointer;
}
.fj-modal-eyebrow {
  font-size: 11px;
  color: var(--sky);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

/* ===== 投稿完了モーダル ===== */
.fj-done-modal {
  text-align: center;
  padding: 40px 24px;
}
.fj-done-icon {
  font-size: 48px;
  margin-bottom: 12px;
  animation: fj-fly 1.2s ease-out forwards;
}
@keyframes fj-fly {
  from { transform: translateX(-30px) translateY(10px); opacity: 0; }
  to   { transform: translateX(0) translateY(0); opacity: 1; }
}
.fj-done-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.fj-done-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.fj-btn-threads {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  transition: background 0.15s;
}
.fj-btn-threads:hover { background: #222; }
.fj-btn-done-close {
  display: block;
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}

/* ===== 固定ページ（プライバシーポリシー・お問い合わせ） ===== */
.fj-page-main {
  display: block;
  max-width: 800px;
  margin: 0 auto;
}
.fj-page-content {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 32px 28px;
}
.fj-page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--sky);
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--sky3);
}
.fj-page-section {
  margin-bottom: 24px;
}
.fj-page-section h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}
.fj-page-section p,
.fj-page-section ul {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}
.fj-page-section ul {
  padding-left: 20px;
}
.fj-page-updated {
  font-size: 12px;
  color: #94a3b8;
}
.fj-contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.fj-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fj-form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.fj-form-group input,
.fj-form-group textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--sky-bg);
  transition: border-color 0.15s;
}
.fj-form-group input:focus,
.fj-form-group textarea:focus {
  outline: none;
  border-color: var(--sky);
}
.fj-required {
  font-size: 11px;
  color: #ef4444;
  font-weight: 400;
  margin-left: 4px;
}
.fj-form-actions {
  text-align: right;
}

/* ===== マイページ ===== */
.fj-mypage-info {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.fj-mypage-info-row {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.fj-mypage-info-row:last-child {
  border-bottom: none;
}
.fj-mypage-info-label {
  width: 140px;
  flex-shrink: 0;
  color: var(--muted);
  font-weight: 500;
}
.fj-mypage-info-value {
  color: var(--text);
}

/* アラート */
.fj-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
}
.fj-alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.fj-alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

