メニューを切り替える
個人設定メニューを切り替える
個人メニューを切り替える
ログインしていません
編集を行うと、IPアドレスが公開されます。

テンプレート:図鑑/styles.css

提供: 川西図鑑
/* ========================================
   無料版図鑑ページ 全体スタイル
======================================== */

/* ========================================
   上部メインビジュアル
======================================== */
.img-crop {
  width: 100%;
  max-width: 800px;
  height: 400px;
  overflow: hidden;
  position: relative;
  margin: 0 auto 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.img-crop p,
.img-crop span,
.img-crop a {
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  line-height: 0 !important;
}

.crop-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ========================================
   セクション見出し
======================================== */
h4 {
  font-size: 1.4rem;
  color: #d97706;
  border-bottom: 3px solid #f59e0b;
  margin: 40px 0 20px;
  padding-bottom: 10px;
  font-weight: 600;
}

html.skin-theme-clientpref-night h4,
html.skin-theme-clientpref-os h4 {
  color: #fbbf24;
  border-bottom: 3px solid #f59e0b;
}

@media (prefers-color-scheme: dark) {
  html.skin-theme-clientpref-os h4 {
  color: #fbbf24;
  border-bottom: 3px solid #f59e0b;
  }
}

/* ========================================
   テーブルスタイル(基本情報)
======================================== */
.wikitable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.wikitable th {
  background: #f5f5f5;
  color: #333;
  font-weight: 600;
  text-align: left;
  padding: 15px 20px;
  min-width: 120px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.95rem;
}

.wikitable td {
  padding: 15px 20px;
  border-bottom: 1px solid #f0f0f0;
  color: #555;
  line-height: 1.7;
}

.wikitable tr:last-child th,
.wikitable tr:last-child td {
  border-bottom: none;
}

/* ========================================
   テーブルスタイル(基本情報 / ダーク)
======================================== */
html.skin-theme-clientpref-night .wikitable {
  background: #1e1e1e;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

html.skin-theme-clientpref-night .wikitable th {
  background: #2a2a2a;
  color: #e0e0e0;
  border-bottom: 1px solid #3a3a3a;
}

html.skin-theme-clientpref-night .wikitable td {
  color: #cfcfcf;
  border-bottom: 1px solid #2f2f2f;
}

/* ========================================
   テーブルスタイル(基本情報 / 自動)
======================================== */
@media (prefers-color-scheme: dark) {
  html.skin-theme-clientpref-os .wikitable {
    background: #1e1e1e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
  }

  html.skin-theme-clientpref-os .wikitable th {
    background: #2a2a2a;
    color: #e0e0e0;
    border-bottom: 1px solid #3a3a3a;
  }

  html.skin-theme-clientpref-os .wikitable td {
    color: #cfcfcf;
    border-bottom: 1px solid #2f2f2f;
  }
}


/* ========================================
   基本情報
======================================== */
.basic-table {
  margin-bottom: 30px;
}

/* ========================================
   マップ埋め込みエリア
======================================== */
.map-embed {
  position: relative;
  background: #dfe3e8;
  border-radius: 12px;
  overflow: hidden;
  margin: 30px auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 読み込み中のアニメーション */
.map-embed::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    #dfe3e8 0%,
    #f5f5f5 50%,
    #dfe3e8 100%
  );
  animation: shimmer 1.6s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.map-embed.loaded {
  background: none;
}

.map-embed.loaded::before {
  display: none;
}

/* ========================================
   CTAボタン
======================================== */
.cta {
  margin: 30px 0;
  text-align: center;
}

.cta a {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  background: #f59e0b; /* オレンジ */
  color: #fff;
  transition: all 0.3s;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.35);
  font-size: 0.95rem;
}

.cta a:hover {
  background: #d97706; /* 少し濃いオレンジ */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(217, 119, 6, 0.45);
}

.cta a:visited {
  color: #fff;
}


/* ========================================
   セクション別スタイル
======================================== */

/* たばこ・お席・設備・その他のテーブル */
.section-table {
  margin-bottom: 20px;
}

/* ========================================
   レスポンシブ調整
======================================== */
@media screen and (max-width: 768px) {
  .img-crop {
    height: 250px;
  }
  
  .wikitable th {
    min-width: 90px;
    font-size: 0.9rem;
    padding: 12px 15px;
  }
  
  .wikitable td {
    padding: 12px 15px;
    font-size: 0.9rem;
  }
  
  h4 {
    font-size: 1.2rem;
  }
}

/* ========================================
   StreetView / Placeholder
======================================== */
.streetview-placeholder,
.streetview-api-placeholder {
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9rem;
}