/* 世界1周雑貨バイヤーブログ 復元アーカイブ用スタイル
   元ブログのスタイルシート（jm_style.css）の実測値と、保存されていた
   装飾画像（タイトルロゴ・サイド見出しGIF・記事末尾のイラスト帯・
   タイトル下線GIF）の色・寸法をもとに再構成したもの。
   実測値: 全体950px / 記事カラム570px（内側500px・左右padding 35px）/
   サイドバー250px / 日付帯 高さ32px・Arial 10px・白文字・右寄せ /
   記事タイトル 16px bolder / 本文 14px・行間160% /
   写真は黒1px枠＋3px padding / ページャー hover・現在ページは #FCCF00 /
   ロゴの緑は実物GIFの抽出色 #019c42。
   2026-12-04の修正で、緑ナビバーとタイトル帯の緑フレームは撤去し、
   自作の手描き風SVG罫線は通常の実線・点線に置き換えた。
   その後の指示で、日付帯の黒塗りはやめて通常テキスト表示にした。
   さらに訂正指示により、緑ボックス（#019c42 太枠）はサイトロゴではなく
   記事タイトルに適用し、ロゴは白地に余白を付けてそのまま表示する。 */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: #222;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;
  font-size: 13px;
  line-height: 1.6;
}

a { color: #0066ff; text-decoration: none; }
a:hover { color: #f10b82; text-decoration: underline; }

/* ---------- header ---------- */
.site-header {
  background: #fff;
  color: #000;
}
/* 元ページ最上部の細い帯（英字のキャプション） */
.top-strip {
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: #999;
  padding: 5px 0 3px;
}
.header-inner {
  max-width: 950px;
  margin: 0 auto;
  /* 左端を記事カラム（.wrapper の padding-left 50px）に合わせる */
  padding: 12px 15px 12px 50px;
}
.header-logo {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  /* ロゴはボックスに入れず、白地に余白を付けてそのまま表示する。
     ロゴGIF右端の描画罫線が端に張り付いて切れて見えないよう、
     周囲に十分な余白を確保する */
  background: #fff;
  /* 左の余白は記事本文ラッパー（.entry-body-wrap の 35px）に合わせ、
     ロゴ帯の左端が記事タイトルの緑ボックスと揃うようにする */
  padding: 14px 18px 14px 35px;
}
.blog-title {
  margin: 0;
  /* 幅は記事タイトルの緑ボックス（500px）と同一にする */
  flex: 0 1 500px;
  max-width: 100%;
  min-width: 0;
  line-height: 0;
}
.blog-title a { display: block; }
.header-logo img {
  display: block;
  /* ロゴ帯の左右の描画縦線が、下の記事タイトル（緑帯ボックス）の
     両端に一致するよう拡縮・位置調整する。
     ユーザー提供の高解像度ロゴ（title_logo.png、1040×164）で
     左線の中心は21.21px、右線の中心は1017.74px
     （線間隔996.53px）。ボックス幅500pxに線間隔が一致する倍率は
     1040/996.53 → 表示幅はボックス幅の104.36%、
     左線をボックス左端に合わせる左ずらしは -2.13%。
     パーセント指定なのでモバイル（ボックス幅=画面幅-44px）でも
     同じ比率で線とボックス端が揃う */
  width: 104.36%;
  max-width: none;
  margin-left: -2.13%;
  height: auto;
}
.blog-desc {
  margin: 8px 0 0 35px;
  max-width: 500px;
  font-size: 12px;
  color: #666;
}
.header-accent { display: none; }

/* ---------- layout ---------- */
.wrapper {
  max-width: 950px;
  margin: 0 auto;
  padding: 15px 0 10px 50px;
  display: flex;
  gap: 35px;
  align-items: flex-start;
}
.main { flex: 0 1 570px; min-width: 0; max-width: 570px; }
.sidebar { flex: 0 0 250px; width: 250px; margin-top: -160px; }

/* ---------- entries ---------- */
.entry {
  margin-bottom: 30px;
}
.entry-date {
  /* 日付は塗りボックスなしの通常テキスト表示 */
  background: none;
  color: #333;
  font-family: Arial, sans-serif;
  font-size: 10px;
  text-align: right;
  padding: 10px 36px 0;
  height: 42px;
}
.entry-body-wrap { padding: 10px 35px 0; }
.entry-title {
  /* 記事タイトルは、アップロードされた緑帯画像（角丸の緑バンド）を
     背景に敷いて白抜き文字にする。帯の緑は実測 #109e4a で、
     画像が読めない場合のフォールバック色も同色にする。
     上下の点線GIF装飾は廃止した */
  font-size: 16px;
  font-weight: bolder;
  line-height: 1.6;
  margin: 4px 0 0;
  background-color: #109e4a;
  border-radius: 9px;
  color: #fff;
  padding: 15px 14px;
}
.entry-title a { color: #fff; }
.entry-cat { font-size: 12px; color: #666; margin: 6px 0 0; }
.entry-body { margin-top: 20px; font-size: 14px; line-height: 1.6; }
.entry-body p { margin: 0 0 1em; }
.entry-body li { list-style: circle; margin-left: 15px; }
.entry-body blockquote {
  border: 1px dotted #ccc;
  padding: 10px;
  margin: 10px;
}
.entry-body .pict {
  border: 1px solid #000;
  padding: 3px;
  background: #fff;
  max-width: 100%;
  height: auto;
}
.entry-body .emoji {
  border: none;
  padding: 0;
  vertical-align: middle;
}
.entry-author {
  text-align: right;
  font-size: 12px;
  color: #777;
  margin: 18px 0 0;
}
/* 記事末尾のイラスト帯（元の blog_entry_ft.gif） */
.entry-ft {
  margin-top: 8px;
  line-height: 0;
}
.entry-ft img {
  display: block;
  width: 100%;
  height: auto;
}

figure.photo { margin: 14px 0; text-align: center; }
figure.photo img {
  max-width: 100%;
  height: auto;
  border: 1px solid #000;
  padding: 3px;
  background: #fff;
}
/* 復元できなかった写真の案内: 通常の罫線のボックスで明示 */
.photo-missing {
  color: #555;
  font-size: 13.5px;
  font-weight: bold;
  background: #fffbe8;
  border: 2px solid #4a4a4a;
  text-align: center;
  padding: 24px 12px;
  max-width: 480px;
  margin: 14px auto;
}

/* ---------- prev / next navigation (#entryNavi) ---------- */
.entry-navi {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 15px;
  font-size: 13px;
}
.entry-navi a {
  font-weight: bold;
  flex: 0 1 auto;
  background: none;
  border: none;
  color: #0066ff;
  padding: 2px 4px;
  line-height: 1.5;
}
.entry-navi a:hover {
  background: #fccf00;
  text-decoration: none;
  color: #000;
}
.entry-navi .navi-next { text-align: right; }
.navi-label { font-size: 11.5px; color: #555; margin-right: 4px; }
.entry-next-inline { margin: 10px 0 4px; font-size: 13px; }
.entry-next-inline a { font-weight: bold; color: #0066ff; padding: 2px 4px; line-height: 1.5; }
.entry-next-inline a:hover { background: #fccf00; text-decoration: none; color: #000; }

/* ---------- index / lists ---------- */
.intro {
  padding: 4px 35px 14px;
  margin-bottom: 22px;
  font-size: 13.5px;
  border-bottom: 1px dotted #999;
}
.intro p { margin: 0; }
.month-heading, .page-heading {
  font-size: 15px;
  font-weight: bold;
  margin: 22px 0 10px;
  padding: 11px 2px 13px;
  border-top: 1px solid #333;
  border-bottom: 1px dotted #999;
  color: #000;
}
.entry-list { list-style: none; margin: 0 0 8px; padding: 0; }
.entry-item {
  border-bottom: 1px dotted #ccc;
  padding: 7px 2px;
  font-size: 13.5px;
}
.entry-item-date {
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: #777;
  margin-right: 8px;
  white-space: nowrap;
}
.entry-item-title { font-weight: bold; }
.list-cat { font-size: 12px; }
.list-cat a { color: #888; }
.list-photo { font-size: 11.5px; color: #a08c00; }

/* ---------- page navigation（トップページの記事一覧ページ送り） ---------- */
.page-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 0 6px;
  padding-top: 14px;
  border-top: 1px dotted #999;
  font-size: 13.5px;
}
.page-nav a { font-weight: bold; }
.page-nav-prev, .page-nav-spacer { flex: 1; }
.page-nav-next { flex: 1; text-align: right; }
.page-nav-count { color: #777; font-size: 12px; white-space: nowrap; }

/* ---------- sidebar ---------- */
.side-block {
  margin-bottom: 24px;
  border: 1px solid #4a4a4a;
  padding: 13px 13px 15px;
  background: #fff;
}
.side-gif-title {
  margin: 0 0 9px;
  line-height: 0;
}
.side-gif-title img {
  display: block;
  width: 100%;
  height: auto;
}
.side-title {
  margin: 0 0 10px;
  border-top: 1px solid #333;
  border-bottom: 1px dotted #999;
  color: #000;
  font-size: 14px;
  font-weight: bold;
  padding: 9px 2px 11px;
}
.side-body { padding: 2px 2px 0; font-size: 13px; }
.side-body p { margin: 0 0 6px; }
.profile-name { font-weight: bold; font-size: 15px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li {
  padding: 0 0 0 12px;
  margin-bottom: 5px;
  position: relative;
  line-height: 1.55;
}
.side-list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #333;
}
.side-date { color: #999; font-size: 11.5px; }

/* 「最新の記事」ブロックはデスクトップでは表示せず、モバイルでのみ表示する */
@media (min-width: 761px) {
}

/* ---------- calendar （元の .cell 実測: 30px幅・Arial 12px・リンクは太字黒） ---------- */
.cal-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11.5px;
  margin-bottom: 5px;
}
.cal-title { font-weight: bold; font-size: 12.5px; }
.cal-nav { color: #0066ff; white-space: nowrap; }
.cal-nav-none { display: inline-block; min-width: 52px; }
table.cal {
  margin: 0 auto;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 12px;
}
table.cal th {
  font-size: 11px;
  font-weight: normal;
  color: #555;
  padding: 2px 0;
  text-align: center;
}
table.cal th.sun { color: #d33; }
table.cal th.sat { color: #36c; }
table.cal td {
  width: 30px;
  height: 28px;
  text-align: center;
  padding: 0;
  color: #666;
}
table.cal td span, table.cal td a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  margin: 0 auto;
  line-height: 1;
}
table.cal td a {
  color: #000;
  font-weight: bolder;
  text-decoration: none;
  border: 1.5px solid #019c42;
  border-radius: 52% 48% 55% 45% / 48% 55% 45% 52%;
}
table.cal td a:hover {
  background: #e6f7ec;
  color: #000;
  text-decoration: none;
}
table.cal td.cur a {
  background: #fccf00;
  border-color: #000;
}

/* ---------- footer ---------- */
.site-footer {
  max-width: 950px;
  margin: 6px auto 0;
  padding: 22px 20px 30px 50px;
  font-size: 12px;
  color: #777;
  text-align: center;
  border-top: 1px solid #333;
}
.footer-note { font-family: Arial, sans-serif; letter-spacing: 0.06em; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .wrapper { flex-direction: column; padding: 12px 10px 4px; }
  /* ヘッダーにも本文カラムと同じ左右余白を付け、ロゴが画面端に
     張り付いてロゴ端の描画線が切れて見えるのを防ぐ */
  .header-inner { padding: 12px 10px 8px; }
  .header-logo { padding: 10px 12px; }
  .site-footer { padding-left: 20px; }
  .main { max-width: none; width: 100%; }
  .sidebar { flex: none; width: 100%; margin-top: 24px; }
  .blog-title { font-size: 22px; }
  .entry-body-wrap { padding: 10px 12px 0; }
  .entry-date { padding-right: 12px; }
  .intro { padding-left: 12px; padding-right: 12px; }
  .blog-desc { margin-left: 12px; max-width: none; }
  .entry-navi { flex-direction: column; }
  .entry-navi .navi-next { text-align: left; }
  /* タイトルロゴは1段だけ。画面幅より広い場合は縮小して全体を表示する */
  .blog-title { flex: 0 1 500px; max-width: 100%; }
}
