/* ================================
   全体の基本設定
=================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Yu Gothic", "Meiryo", sans-serif;
  color: #f5f5f5;
  background: radial-gradient(circle at top, #333 0, #111 45%, #000 100%);
  line-height: 1.6;
}

/* リンク共通 */
a {
  color: #ffd84a;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* セクション共通 */
section {
  padding: 3rem 1rem;
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.6rem;
  margin: 0 0 0.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-left: 4px solid #ffd84a;
  padding-left: 0.6rem;
}

.section-header p {
  margin: 0.2rem 0 0;
  color: #ccc;
  font-size: 0.95rem;
}

/* ================================
   ヘッダー
=================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid #333;
  backdrop-filter: blur(6px);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-title a {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fefefe;
  text-decoration: none;
}

.global-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.global-nav a {
  font-size: 0.9rem;
  color: #ddd;
  text-decoration: none;
  padding-bottom: 0.1rem;
  border-bottom: 2px solid transparent;
}

.global-nav a:hover {
  border-bottom-color: #ffd84a;
  color: #fff;
}

/* ================================
   ヒーローセクション
=================================== */
.hero {
  padding: 3.5rem 1rem 3rem;
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  gap: 2.5rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 320px;
  min-width: 0;
}

.hero-text h1 {
  font-size: 1.9rem;
  margin: 0 0 1rem;
  letter-spacing: 0.1em;
}

.hero-text p {
  margin: 0 0 1.5rem;
  color: #e0e0e0;
  font-size: 0.98rem;
}

.hero-button {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 1px solid #ffd84a;
  background: linear-gradient(to bottom, #333 0, #111 100%);
  color: #ffd84a;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.6);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.2s ease;
}

.hero-button:hover {
  text-decoration: none;
  background: linear-gradient(to bottom, #444 0, #222 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.hero-image {
  flex: 0 1 380px;
  min-width: 260px;
  justify-self: flex-end;
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid #444;
  background: radial-gradient(circle at top left, #333, #111);
  box-shadow:
    0 0 0 1px #000,
    0 12px 26px rgba(0, 0, 0, 0.9),
    inset 0 0 18px rgba(255, 255, 255, 0.05);
}

/* ================================
   アプリ一覧
=================================== */
.apps {
  background: radial-gradient(circle at top, #222 0, #050505 65%);
}

.app-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.8rem;
}

/* カード本体：黒鉄フレーム風 */
.app-card {
  display: flex;
  gap: 1.2rem;
  padding: 1.1rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #1a1a1a, #050505);
  border: 1px solid #444;
  box-shadow:
    0 0 0 1px #000,
    0 10px 20px rgba(0, 0, 0, 0.8),
    inset 0 0 12px rgba(255, 255, 255, 0.05);
  position: relative;      /* ★ネジを相対配置するため必須 */
  overflow: hidden;
}

/* ネジっぽい装飾（4隅のうち2カ所・対角線上） */
.app-card::before,
.app-card::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 1px solid #888;
  background: radial-gradient(circle at 30% 30%, #ddd, #555 60%, #222 100%);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
  z-index: 5;              /* ★中の画像より前面に出す */
}

/* 左上 */
.app-card::before {
  top: 6px;
  left: 6px;
}

/* 右下 */
.app-card::after {
  bottom: 6px;
  right: 6px;
}

/* Coming soon は少しトーンを落とす */
.app-card--coming-soon {
  opacity: 0.85;
  border-style: dashed;
}

/* カード内レイアウト */
.app-thumbnail {
  flex: 0 0 220px;
}

.app-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #555;
  background: #111;
  object-fit: cover;
}

.app-content {
  flex: 1 1 auto;
  min-width: 0;
}

.app-content h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.app-subtitle {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  color: #ddd;
}

.app-features {
  margin: 0 0 0.6rem;
  padding-left: 1.2rem;
  color: #ccc;
  font-size: 0.9rem;
}

.app-features li + li {
  margin-top: 0.1rem;
}

.app-meta {
  margin: 0.3rem 0 0.7rem;
  font-size: 0.85rem;
  color: #aaa;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ボタン共通 */
.button-primary {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1px solid #ffd84a;
  background: linear-gradient(to bottom, #2e2e2e 0, #111 100%);
  color: #ffd84a;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow:
    0 0 0 1px #000,
    0 2px 6px rgba(0, 0, 0, 0.8);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.2s ease;
}

.button-primary:hover {
  text-decoration: none;
  background: linear-gradient(to bottom, #444 0, #222 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.9);
}

/* ================================
   新着情報
=================================== */
.news {
  background: #080808;
  border-top: 1px solid #262626;
  border-bottom: 1px solid #262626;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  background: linear-gradient(145deg, #111, #060606);
  border: 1px solid #333;
  box-shadow:
    0 0 0 1px #000,
    0 10px 20px rgba(0, 0, 0, 0.8),
    inset 0 0 10px rgba(255, 255, 255, 0.05);
}

.news-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #222;
  font-size: 0.9rem;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item time {
  color: #ccc;
  font-size: 0.88rem;
  min-width: 6.4rem;
}

.news-label {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 0.4rem;
  font-size: 0.75rem;
  background: #ffd84a;
  color: #000;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-item a {
  flex: 1 1 auto;
  min-width: 0;
  color: #f5f5f5;
}

.news-item a:hover {
  text-decoration: underline;
}

.news-more {
  margin-top: 0.8rem;
  text-align: right;
}

.link-more {
  font-size: 0.9rem;
}

/* ================================
   動作環境・注意事項
=================================== */
.requirements {
  background: #050505;
}

.requirements-content h3 {
  margin-top: 0;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.requirements-content ul {
  margin: 0 0 1.2rem;
  padding-left: 1.2rem;
  color: #d0d0d0;
  font-size: 0.95rem;
}

.requirements-content li + li {
  margin-top: 0.2rem;
}

/* ================================
   フッター
=================================== */
.site-footer {
  padding: 2rem 1rem 2.2rem;
  background: #020202;
  border-top: 1px solid #222;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
}

.footer-links {
  margin: 0 0 0.4rem;
}

.footer-links a {
  color: #bbb;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  margin: 0;
}

/* ================================
   レスポンシブ対応
=================================== */
@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .global-nav ul {
    justify-content: flex-start;
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-image {
    align-self: stretch;
  }

  .app-card {
    flex-direction: column;
  }

  .app-thumbnail {
    flex: 0 0 auto;
  }
}

@media (max-width: 600px) {
  section {
    padding: 2.3rem 1rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .site-title a {
    font-size: 1rem;
  }

  .global-nav ul {
    gap: 0.6rem;
  }

  .news-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ================================
   共通情報ページ（how-to）用スタイル
=================================== */

.page-main {
  padding-top: 0.5rem;
}

.page-hero {
  padding: 3.2rem 1rem 2.4rem;
  border-bottom: 1px solid #222;
}

.page-hero--howto {
  background: radial-gradient(circle at top, #262626 0, #060606 60%);
}

.page-hero-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.page-hero-text {
  max-width: 800px;
}

.page-label {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffd84a;
  margin: 0 0 0.2rem;
}

.page-hero-text h1 {
  margin: 0 0 0.6rem;
  font-size: 1.8rem;
  letter-spacing: 0.1em;
}

.page-subtitle {
  margin: 0 0 1rem;
  font-size: 0.96rem;
  color: #e0e0e0;
}

/* ページ内ナビ */
.page-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.page-subnav-link {
  font-size: 0.85rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #444;
  background: linear-gradient(to bottom, #262626 0, #111 100%);
  color: #eee;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-subnav-link:hover {
  background: linear-gradient(to bottom, #3a3a3a 0, #181818 100%);
  border-color: #ffd84a;
  color: #ffd84a;
}

/* 共通セクション */
.page-section {
  padding: 3rem 1rem;
}

.page-section--alt {
  background: #050505;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
}

/* 情報カード・グリッド */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}

.info-card {
  border-radius: 14px;
  border: 1px solid #333;
  background: linear-gradient(145deg, #181818, #050505);
  box-shadow:
    0 0 0 1px #000,
    0 10px 20px rgba(0, 0, 0, 0.85),
    inset 0 0 10px rgba(255, 255, 255, 0.04);
  padding: 1rem 1.1rem;
  font-size: 0.95rem;
}

.info-card h3 {
  margin-top: 0;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.info-card p {
  margin-top: 0;
}

.info-card ol,
.info-card ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.info-card li + li {
  margin-top: 0.2rem;
}

/* 小さなタグ */
.info-tag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: #ffd84a;
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* CSV定義 */
.csv-definition {
  margin: 0.4rem 0 0.6rem;
  padding-left: 0;
}

.csv-definition > div {
  margin-bottom: 0.3rem;
}

.csv-definition dt {
  font-weight: 700;
  font-size: 0.95rem;
}

.csv-definition dd {
  margin: 0.1rem 0 0;
  font-size: 0.9rem;
  color: #ddd;
}

.csv-note {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: #ccc;
}

/* 補足メモ */
.info-note {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: #ccc;
}

/* レスポンシブ調整（共通情報ページ） */
@media (max-width: 900px) {
  .info-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .page-hero {
    padding-top: 3rem;
  }

  .page-subnav {
    gap: 0.4rem;
  }

  .page-subnav-link {
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
  }
}

/* ================================
   開発について / お問い合わせ 用スタイル
=================================== */

/* ヒーロー背景の色違い */
.page-hero--about {
  background: radial-gradient(circle at top, #303030 0, #050505 60%);
}

.page-hero--contact {
  background: radial-gradient(circle at top, #252525 0, #050505 60%);
}

/* about / contact で使う横長カード */
.info-card--wide {
  max-width: 980px;
  margin: 0 auto;
}

/* お問い合わせページ用のメール表示 */
.contact-mail {
  margin: 0.8rem 0;
  font-size: 1rem;
}

.contact-mail a {
  font-weight: 600;
  color: #ffd84a;
}

/* レスポンシブ調整（念のため） */
@media (max-width: 900px) {
  .info-card--wide {
    max-width: 100%;
  }
}

/* ================================
   駅ごとの詳細ページ用スタイル
=================================== */

.station-main {
  padding-top: 0.5rem;
}

/* ヒーロー（駅タイトル） */
.station-hero {
  padding: 3.2rem 1rem 2.4rem;
  background: radial-gradient(circle at top, #222 0, #050505 60%);
  border-bottom: 1px solid #222;
}

.station-hero-inner {
  display: flex;
  gap: 2.5rem;
  max-width: 1080px;
  margin: 0 auto;
  align-items: center;
  flex-wrap: wrap;
}

.station-hero-text {
  flex: 1 1 320px;
  min-width: 0;
}

.station-app-label {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffd84a;
  margin: 0 0 0.2rem;
}

.station-hero-text h1 {
  margin: 0 0 0.6rem;
  font-size: 1.8rem;
  letter-spacing: 0.1em;
}

.station-subtitle {
  margin: 0 0 0.8rem;
  font-size: 0.96rem;
  color: #e0e0e0;
}

.station-meta {
  margin: 0 0 1.2rem;
  font-size: 0.85rem;
  color: #aaa;
}

/* ページ内ナビ */
.station-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.station-subnav-link {
  font-size: 0.85rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #444;
  background: linear-gradient(to bottom, #262626 0, #111 100%);
  color: #eee;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.station-subnav-link:hover {
  background: linear-gradient(to bottom, #3a3a3a 0, #181818 100%);
  border-color: #ffd84a;
  color: #ffd84a;
}

.station-hero-image {
  flex: 0 1 360px;
  min-width: 260px;
}

.station-hero-image img {
  display: block;
  width: 100%;
  border-radius: 16px;
  border: 1px solid #555;
  background: #111;
  box-shadow:
    0 0 0 1px #000,
    0 12px 26px rgba(0, 0, 0, 0.9),
    inset 0 0 18px rgba(255, 255, 255, 0.06);
}

/* ギャラリー */
.station-gallery {
  background: #050505;
}

.station-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.station-shot {
  margin: 0;
  border-radius: 12px;
  border: 1px solid #444;
  background: #111;
  box-shadow:
    0 0 0 1px #000,
    0 8px 16px rgba(0, 0, 0, 0.8),
    inset 0 0 10px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.station-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.station-shot figcaption {
  padding: 0.4rem 0.7rem 0.6rem;
  font-size: 0.85rem;
  color: #ccc;
}

/* 特徴 */
.station-features {
  background: #060606;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
}

.station-features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.station-feature-card {
  padding: 1rem;
  border-radius: 12px;
  background: linear-gradient(145deg, #171717, #050505);
  border: 1px solid #333;
  box-shadow:
    0 0 0 1px #000,
    0 8px 16px rgba(0, 0, 0, 0.8),
    inset 0 0 10px rgba(255, 255, 255, 0.04);
  font-size: 0.95rem;
}

.station-feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.station-feature-card p {
  margin: 0;
}

/* ダウンロード */
.station-download {
  background: #050505;
}

.station-download-panel {
  border-radius: 14px;
  border: 1px solid #444;
  background: linear-gradient(145deg, #151515, #050505);
  box-shadow:
    0 0 0 1px #000,
    0 12px 24px rgba(0, 0, 0, 0.9),
    inset 0 0 12px rgba(255, 255, 255, 0.04);
  padding: 1.2rem 1.3rem 1.1rem;
}

.station-version-row {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.station-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #ffd84a;
  color: #000;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.station-version-text {
  color: #ccc;
}

.station-download-details {
  margin: 0 0 0.8rem;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: #ddd;
}

.station-download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.station-download-note {
  margin: 0;
  font-size: 0.85rem;
  color: #aaa;
}

/* 使い方 */
.station-usage {
  background: #040404;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
}

.station-columns {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.station-column {
  flex: 1 1 260px;
  min-width: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: linear-gradient(145deg, #151515, #050505);
  border: 1px solid #333;
  box-shadow:
    0 0 0 1px #000,
    0 8px 16px rgba(0, 0, 0, 0.85),
    inset 0 0 10px rgba(255, 255, 255, 0.04);
  font-size: 0.95rem;
}

.station-column h3 {
  margin-top: 0;
  font-size: 1rem;
}

.station-column ol,
.station-column ul {
  margin: 0.3rem 0 0;
  padding-left: 1.2rem;
}

.station-column li + li {
  margin-top: 0.2rem;
}

.station-usage-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #ccc;
}

/* FAQ */
.station-faq {
  background: #050505;
}

.faq-list {
  margin: 0;
  padding: 0;
}

.faq-item {
  border-radius: 12px;
  border: 1px solid #333;
  background: linear-gradient(145deg, #151515, #050505);
  box-shadow:
    0 0 0 1px #000,
    0 8px 16px rgba(0, 0, 0, 0.85),
    inset 0 0 10px rgba(255, 255, 255, 0.04);
  padding: 0.7rem 0.9rem;
  font-size: 0.93rem;
}

.faq-item + .faq-item {
  margin-top: 0.7rem;
}

.faq-item dt {
  font-weight: 700;
  margin: 0 0 0.15rem;
}

.faq-item dd {
  margin: 0;
  color: #ddd;
}

/* 更新履歴 */
.station-changelog {
  background: #040404;
  border-top: 1px solid #222;
}

.changelog-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  font-size: 0.93rem;
}

.changelog-list li {
  padding: 0.7rem 0.1rem;
  border-bottom: 1px dashed #333;
}

.changelog-list li:last-child {
  border-bottom: none;
}

.changelog-version {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.3rem;
}

.changelog-version time {
  font-size: 0.85rem;
  color: #ccc;
}

.changelog-list ul {
  margin: 0.1rem 0 0;
  padding-left: 1.1rem;
}

/* レスポンシブ調整（駅詳細ページ） */
@media (max-width: 900px) {
  .station-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .station-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .station-features-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .station-gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .station-download-panel {
    padding: 1rem 0.9rem;
  }

  .station-subnav {
    gap: 0.4rem;
  }

  .station-subnav-link {
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
  }
}