/* ============================================================
   YOSTABI — style_europe.css
   記事ページ専用スタイル（トップページのデザインシステムと整合）
   ============================================================ */

/* ── CSS変数（トップページと統一） ── */
:root {
  --primary:       #070264;
  --primary-soft:  #385ec7;
  --primary-light: #809bec;
  --accent:        #ffaf3a;
  --light:         #FFF5F3;
  --cream:         #fff9ef;
  --sky:           #d8e3ff;
  --dark:          #103741;
  --text:          #222;
  --muted:         #6b6b6b;
  --shadow-sm:     0 2px 6px rgba(0,0,0,.06);
  --shadow-md:     0 8px 18px rgba(7,2,100,.12);
  --shadow-lg:     0 14px 28px rgba(7,2,100,.18);
  --radius:        12px;
  --radius-sm:     6px;
}

/* ── リセット ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(1200px 800px at 10% -10%, #ffe8c2 0%, transparent 60%),
    radial-gradient(1000px 700px at 110% 110%, #c9d4f4 0%, transparent 55%),
    linear-gradient(180deg, var(--cream) 0%, #fff 40%, var(--sky) 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* フォーカスアクセシビリティ */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── カスタムインライン要素 ── */
yel, .yel {
  background: linear-gradient(transparent 55%, #fff174 55%);
  padding: 0 2px;
}
lib, .lib {
  background: linear-gradient(transparent 55%, #a8dcf887 55%);
  padding: 0 2px;
}
blue, .blue { color: #0a3bd0; }

/* ── クリアフィックス ── */
.clearfix::after { content: ""; display: block; clear: both; }

/* ============================================================
   LAYOUT
   ============================================================ */
#wrapper {
  width: 100%;
  max-width: 880px;
  padding: 0 16px 20px;
  margin: 0 auto 20px;
  background: rgba(255,255,255,.96);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  /* コピー禁止 */
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

#wrapper div { margin-top: 10px; margin-bottom: 10px; }

.inner { margin: 10px auto 0; }

/* ============================================================
   ナビバー（Bootstrap 5 スティッキー） — トップページと統一
   ============================================================ */
.article-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(7,2,100,.1);
  padding: 0 20px;
}
.article-navbar .navbar-brand {
  font-family: 'Caveat', 'Noto Sans JP', cursive;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
}
.article-navbar .navbar-brand:hover { color: var(--primary-soft); }
.article-navbar .nav-link {
  color: var(--dark);
  font-weight: 500;
  padding: 28px 14px;
  transition: color .25s;
}
.article-navbar .nav-link:hover,
.article-navbar .nav-link.active { color: var(--primary); }
.article-navbar .dropdown-menu {
  border: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-md);
}
@media (max-width: 991.98px) {
  .article-navbar .nav-link { padding: 10px 0; }
  .article-navbar .navbar-nav { margin-top: 12px; border-top: 1px solid #eee; }
}

/* ── ドロップダウン矢印 (FA6) ── */
.article-navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 4px;
  transition: transform .3s;
}
.article-navbar .dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(-180deg);
}

/* ============================================================
   HEADER (ブログ名エリア)
   ============================================================ */
#header {
  overflow: hidden;
  padding: 0;
}
#header p {
  padding: 44px 0 16px;
  font-size: 180%;
  font-weight: bold;
  text-align: center;
  position: relative;
}
#header p::before {
  content: url(https://yostabi.com/img/imagelogo_middle.png);
  position: absolute;
  top: 10px;
  right: 40px;
  display: inline-block;
  border-radius: 50%;
}
#header p a {
  text-decoration: none;
  font-family: 'Caveat', cursive;
  color: var(--primary);
}
#favicon { width: 24px; border-radius: 50%; }

/* ── アフィリエイト広告表示 ── */
.greeting {
  max-width: 850px;
  width: 90%;
  margin: 0 auto;
  color: var(--primary);
  font-size: 80%;
}

/* ── パンくずリスト ── */
.breadcrumb {
  max-width: 850px;
  width: 90%;
  margin: 6px auto 0;
  padding: .5em 1em;
  list-style: none;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  overflow: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.breadcrumb::-webkit-scrollbar { display: none; }
.breadcrumb li {
  display: inline;
  font-size: 90%;
}
.breadcrumb li::after {
  font-family: FontAwesome;
  content: '\f101';
  padding: 0 .2em;
  color: #555;
}
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb li a {
  text-decoration: none;
  color: var(--primary);
}
.breadcrumb li a:hover { text-decoration: underline; }

/* ============================================================
   固定ボタン（トップへ / ホームへ）
   ============================================================ */
.fixed_topbutton {
  position: fixed;
  bottom: 56px;
  right: 12px;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 600;
  border: 1.5px solid var(--primary);
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background .25s;
  padding: 0;
}
.fixed_topbutton:hover { background: var(--sky); }
.fixed_topbutton a { color: var(--primary); display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

.fixed_button {
  position: fixed;
  bottom: 8px;
  right: 12px;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 600;
  border: 1.5px solid var(--primary);
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background .25s;
  padding: 0;
}
.fixed_button:hover { background: var(--sky); }
.fixed_button a { color: var(--primary); display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

/* ── 最終更新日 ── */
#update_date {
  font-weight: 600;
  font-size: 85%;
  float: right;
  color: var(--primary);
}

/* ============================================================
   ARTICLE TITLE AREA
   ============================================================ */
#theme {
  font-size: 17px;
  font-weight: 700;
  position: relative;
  padding-top: 4px;
}

/* 国旗・ビジュアル画像 */
img#flag {
  position: absolute;
  top: -30px;
  left: 215px;
  width: 45px;
  border-radius: var(--radius-sm);
}

/* ふわふわアニメーション */
.fuwafuwa {
  animation: fuwafuwa 2s ease-in-out infinite alternate;
  display: inline-block;
}
@keyframes fuwafuwa {
  from { transform: rotate(-3deg); }
  to   { transform: rotate( 3deg); }
}
@media (max-width: 644px) {
  @keyframes fuwafuwa {
    from { transform: rotate( 0deg); }
    50%  { transform: rotate(-5deg); }
    to   { transform: rotate( 0deg); }
  }
}

/* ============================================================
   HEADINGS
   ============================================================ */
h1 {
  font-size: 20px;
  font-weight: 800;
  padding: 10px 0 6px;
  font-family: 'Noto Sans JP', sans-serif;
}

h2 {
  font-size: 18px;
  margin-top: 24px;
  position: relative;
  padding: 8px 12px 8px 4px; /* JS が上書き */
  background: rgba(56,94,199,.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  border-left: 4px solid var(--primary-soft);
  overflow: visible;
}
/* 番号バッジ（.h2-sub 以外の span のみ対象） */
h2 > span:not(.h2-sub):not(.h2-text) {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  padding: 0 14px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  color: #fff;
  background: var(--primary-soft);
  font-weight: 700;
}
h2 > span:not(.h2-sub):not(.h2-text)::after {
  position: absolute;
  top: calc(50% - 8px);
  right: -13px;
  width: 0; height: 0;
  content: '';
  border-width: 8px 0 8px 14px;
  border-style: solid;
  border-color: transparent transparent transparent var(--primary-soft);
  z-index: 1;
}
/* h2 キャッチコピー */
.h2-sub {
  display: block;
  padding: 2px 12px 6px 0;
  background: none;
  color: var(--primary-soft);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.5;
}
.h2-sub::after { content: none; }
@media (max-width: 644px) {
  .h2-sub { font-size: .68rem; }
}

h3 {
  font-size: 15px;
  font-weight: 700;
  padding: 6px 0 5px 10px;
  border-left: 3px solid var(--accent);
  color: var(--primary);
  margin-top: 8px;
}

/* ============================================================
   h4 — h3の子見出し（控えめ・丸ドット＋底線）
   ============================================================ */
h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  padding: 5px 0 5px 22px;
  margin-top: 6px;
  border-bottom: 1px dashed rgba(56,94,199,.35);
  position: relative;
}
h4::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
h4 blue, h4 .blue { color: var(--primary-soft); }
h4 u { text-decoration: none; }

/* ============================================================
   BODY TEXT / SENTENCE BOX
   ============================================================ */
#intro { padding-top: 6px; }

.sentence {
  background: rgba(75,106,201,.05);
  border: 1px solid #d8e0f5;
  border-radius: 0 var(--radius-sm) var(--radius-sm) var(--radius-sm);
  padding: 16px 12px 12px 14px;
}

li { margin-left: 20px; line-height: 1.9; }

/* ============================================================
   目次（AGENDA）— リッチデザイン
   ============================================================ */
#agenda {
  background: linear-gradient(135deg, rgba(7,2,100,.04) 0%, rgba(56,94,199,.06) 100%);
  border: 1px solid rgba(7,2,100,.15);
  border-left: 5px solid var(--primary-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-md);
  padding: 16px 16px 12px;
  width: 94%;
  margin: 0 auto;
}
#agenda > p {
  font-weight: 800;
  color: var(--primary);
  font-size: 105%;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(7,2,100,.2);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
#agenda > p::before {
  content: '📋';
  font-size: 1.1em;
}
#agenda nav {
  margin-top: 3px;
  margin-left: 2px;
}
#agenda nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--primary);
  font-size: 91%;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  transition: background .2s, color .2s, transform .15s;
}
#agenda nav a:hover {
  background: rgba(56,94,199,.12);
  color: var(--primary-soft);
  transform: translateX(3px);
}
#agenda nav a .agenda-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px; height: 20px;
  background: var(--primary-soft);
  color: #fff;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   POINTボックス（旧 .money）— 吹き出しバッジ型で強調
   ============================================================ */
#wrapper .money {
  position: relative;
  max-width: 92%;
  margin: 52px auto 16px;
  padding: 22px 18px 14px;
  background: var(--cream);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  color: var(--text);
  font-size: .95rem;
}
/* 吹き出しバッジ（見出し） */
.money-badge {
  position: absolute;
  top: -14px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 16px;
  background: var(--accent);
  color: #3a2600;
  font-size: .85rem;
  font-weight: 800;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
  white-space: nowrap;
}
.money-badge i { font-size: .95rem; }
/* リスト */
.money-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.money-list li {
  position: relative;
  margin: 0;
  padding: 6px 0 6px 26px;
  line-height: 1.6;
  border-top: 1px dashed rgba(186,117,23,.25);
}
.money-list li:first-child { border-top: none; }
.money-list li::before {
  content: "\f00c"; /* check */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 2px;
  top: 8px;
  font-size: .78rem;
  color: var(--accent);
}
@media (max-width: 644px) {
  .money { max-width: 100%; }
}

/* ============================================================
   一覧表（TABLE）
   ============================================================ */
.table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
}
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}
.table > table th,
.table > table td {
  border: 1px solid #d0d8f0;
  padding: 10px 12px;
  white-space: nowrap;
  font-size: 13px;
}
.table > table th {
  background: rgba(56,94,199,.18);
  font-weight: 700;
  color: var(--primary);
}
.table a { text-decoration: none; color: var(--primary-soft); }
.table tr:nth-of-type(1)   { background: rgba(155,190,255,.65); }
.table tr:nth-of-type(2n+3){ background: rgba(155,190,255,.2); }
.tablecenter td { text-align: center; }
@media (max-width: 644px) {
  .table { font-size: 12px; }
}

/* ── スケジュール見出しラベル ── */
.schedule-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--primary);
  background: linear-gradient(135deg, rgba(7,2,100,.06), rgba(56,94,199,.1));
  border-left: 4px solid var(--primary-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 7px 16px 7px 12px;
  margin-bottom: 4px;
}

/* ============================================================
   リッチスケジュール表（カード風タイムライン装飾）
   ============================================================ */
.schedule-rich {
  border: 1px solid #dce3f7;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background: #fff;
}
.schedule-rich > table th,
.schedule-rich > table td { border: none; }

/* 区切りは行下ボーダーで（罫線を減らして軽やかに） */
.schedule-rich > table tr {
  border-bottom: 1px solid #eef1fb;
}
/* ヘッダー行 */
.schedule-rich > table tr:first-child {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
}
.schedule-rich > table tr:first-child th {
  color: #fff;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 12px 14px;
  white-space: nowrap;
}
/* ゼブラを上書きして上品なトーンに（ヘッダー=first-childは除外） */
.schedule-rich > table tr:nth-of-type(2n+3) { background: transparent; }
.schedule-rich > table tr:nth-of-type(2n+2) { background: rgba(216,227,255,.28); }
.schedule-rich > table tr:not(:first-child):hover { background: rgba(255,175,58,.1); }

/* 日付セル：バッジ風 */
.schedule-rich > table td:first-child {
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  white-space: nowrap;
  vertical-align: top;
  width: 84px;
  border-right: 2px solid #e4e9fa;
  background: rgba(56,94,199,.05);
}
/* 内容セル */
.schedule-rich > table td:last-child {
  white-space: normal;
  line-height: 1.7;
  padding: 12px 14px;
}
/* 移動の矢印を見やすく */
.schedule-rich > table td:last-child {
  word-break: break-word;
}
@media (max-width: 644px) {
  .schedule-rich > table td:first-child { width: 64px; font-size: 12px; }
}

/* ============================================================
   ボタン019（リンクボタン）— リッチ・立体・クリック誘導
   ============================================================ */
.button019 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 12px 0;
}
.button019 a {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: auto;
  max-width: 90%;
  padding: 10px 40px 10px 38px;
  background: linear-gradient(135deg, #0090c8 0%, #0075a9 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: .88rem;
  line-height: 1.4;
  text-align: center;
  border: none;
  border-radius: 999px;
  box-shadow: 0 4px 0 #005a82, 0 6px 12px rgba(0,90,130,.32);
  transition: transform .12s ease, box-shadow .12s ease, filter .2s ease;
}
/* 左：外部リンクアイコン */
.button019 a::before {
  content: "\f35d"; /* up-right from square (FA6) */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .82rem;
  opacity: .9;
}
/* 右：丸い矢印チップ */
.button019 a::after {
  content: "\f054"; /* chevron-right (FA6) */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  font-size: .62rem;
  background: rgba(255,255,255,.22);
  border-radius: 50%;
  transition: background .2s, transform .2s;
}
.button019 a:hover {
  filter: brightness(1.06);
  transform: translateY(2px);
  box-shadow: 0 2px 0 #005a82, 0 4px 8px rgba(0,90,130,.28);
}
.button019 a:hover::after {
  background: rgba(255,255,255,.4);
  transform: translateY(-50%) translateX(2px);
}
.button019 a:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 #005a82, 0 2px 6px rgba(0,90,130,.25);
}
@media (max-width: 644px) {
  .button019 a {
    font-size: .8rem;
    padding: 9px 34px 9px 32px;
    max-width: 94%;
  }
  .button019 a::before { left: 12px; font-size: .75rem; }
  .button019 a::after { right: 10px; width: 18px; height: 18px; }
}

/* ============================================================
   関連記事カード — リッチ・クリック誘導・レスポンシブ
   ============================================================ */
.related_article {
  width: 92%;
  max-width: 800px;
  margin: 18px auto 26px;
}
.related_article_h2 { padding: 8px 12px; }

/* h2本文テキスト */
.h2-text {
  display: block;
  font-weight: 700;
  line-height: 1.4;
}

.related_article article {
  background: #fff;
  padding: 14px 16px 14px 14px;
  font-weight: 700;
  font-size: .98rem;
  line-height: 1.5;
  color: var(--primary);
  border-radius: var(--radius);
  border: 1px solid #e2e8fa;
  border-left: 5px solid var(--primary-soft);
  box-shadow: var(--shadow-md);
  margin-top: 10px;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
/* カード全体をクリック領域に */
.related_article article a {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.related_article article:hover {
  transform: translateY(-3px);
  border-left-color: var(--accent);
  box-shadow: var(--shadow-lg);
}
/* 見出し（記事タイトル行：article 直下のテキスト + caret アイコン） */
.related_article article > i.fa-caret-right {
  color: var(--primary-soft);
}
/* 本文ブロック：サムネ＋説明 */
.related_article div {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  gap: 12px;
  margin-top: 10px;
}
.related_article p { margin: 0; }
/* サムネを包む <p>（最初のp） */
.related_article div > p:first-child {
  flex: 0 0 auto;
  margin: 0;
  line-height: 0;
}
/* 説明文の <p>（2番目） */
.related_article div > p:last-child {
  flex: 1 1 auto;
  font-size: .82rem;
  font-weight: 400;
  line-height: 1.65;
  color: #333;
  margin: 0;
}
/* サムネイル：大きめ・角丸・ホバーでズーム */
.related_article_pic {
  width: 132px;
  height: 92px;
  object-fit: cover;
  border: none;
  border-radius: var(--radius-sm);
  background: #000;
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease;
  display: block;
}
.related_article article:hover .related_article_pic {
  transform: scale(1.05);
}
/* 「この記事を読む」をボタン風チップに見せる（<blue>内テキスト） */
.related_article blue {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  color: var(--primary-soft);
  font-weight: 700;
  font-size: .8rem;
}
.related_article article:hover blue { color: var(--accent); }

@media (max-width: 520px) {
  .related_article div { flex-direction: column; align-items: stretch; gap: 8px; }
  .related_article div > p:first-child { flex: none; }
  .related_article_pic { width: 100%; height: 160px; }
}

/* ============================================================
   写真 / イメージ — 縦横・デバイス問わず全体表示
   ============================================================ */
.photo_center_smartphone {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 640px;
  margin: 12px auto;
  /* 画像の縦横が分からなくても破綻しないよう、コンテナ高さは画像に追従 */
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid #d8e0f5;
  box-shadow: var(--shadow-sm);
  background: #eef1f8;
}
/* メイン画像：全体を必ず表示（切れない）。縦長は高さ上限で間延び防止 */
.photo_center_smartphone img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;        /* 縦長写真がビューポートを占有しすぎない */
  object-fit: contain;
  pointer-events: none;
  position: relative;
  z-index: 1;
}
/* 余白埋め：同じ画像をぼかして背景に敷く（contain の左右/上下余白を上品に） */
.photo_center_smartphone::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;     /* JSで各imgのsrcを設定 */
  background-size: cover;
  background-position: center;
  filter: blur(22px) brightness(.9);
  transform: scale(1.15);
  z-index: 0;
}
/* キャプション：中央ではなく右下に控えめに配置（縦写真でも視認性◎） */
.photo_center_smartphone p {
  position: absolute;
  right: 8px;
  bottom: 6px;
  margin: 0; padding: 2px 8px;
  font-size: 11px;
  line-height: 1.3;
  text-align: right;
  color: rgba(255,255,255,.92);
  background: rgba(0,0,0,.35);
  border-radius: 6px;
  backdrop-filter: blur(2px);
  pointer-events: none;
  z-index: 2;
}
.photo_center_smartphone p br { display: none; }

.img_fit { object-fit: contain; }
.image_align {
  width: 100%;
  max-width: 640px;
  height: auto;
  border-radius: 0;
  border: none;
  display: block;
  box-sizing: border-box;
}

.ref > p { text-align: center; font-size: 80%; }

iframe {
  display: block;
  max-width: 100%;
  margin: 12px auto;
  border-radius: var(--radius-sm);
  border: 1px solid #d8e0f5;
}

/* ============================================================
   アフィリエイトバナー
   ============================================================ */
.affiliate {
  display: flex;
  justify-content: center;
  margin: 16px auto;
}
.affiliate img {
  width: 98%;
  max-width: 470px;
  height: auto;
}

/* ============================================================
   INTRO（ブログ筆者紹介）
   ============================================================ */
.flex {
  max-width: 800px;
  width: 88%;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.flex .image { flex-shrink: 0; }
.image > img {
  border-radius: 50%;
  width: 100px; height: 100px;
  border: 2px solid var(--primary);
  object-fit: cover;
}
.flex .right { flex: 1; }
.flex .title { font-weight: 700; font-size: 15px; margin: 0; }
.flex .text  { font-weight: 500; margin: 8px 0 0; }

/* ── SNSボタン ── */
.ul-center { display: flex; align-items: center; flex-direction: column; }
.wp-sns { text-align: center; padding: 16px 0 0; list-style: none; display: flex; gap: 6px; }
.wp-sns li {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--primary);
  border-radius: 50%;
  width: 40px; height: 40px;
  transition: background .2s, top .15s;
  position: relative;
}
.wp-sns li:hover { background: var(--sky); top: 1px; }
.wp-sns li a i { font-size: 18px; color: var(--primary); }

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  clear: both;
  width: 100%;
  text-align: center;
  font-size: 13px;
  padding: 20px 0;
  color: var(--primary);
}

/* ============================================================
   ボーダーユーティリティ
   ============================================================ */
.wrapsquare { padding: 10px; border: 1px solid #3b3b3b; }
.borderradiusbottom { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }

/* ============================================================
   Googleアイコン / Appleアイコン
   ============================================================ */
img#google { width: 160px; }
img#apple  { width: 160px; }
@media (max-width: 644px) {
  img#google, img#apple { width: 120px; }
}

/* ============================================================
   訪問国カードグリッド
   ============================================================ */
.country-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 14px 0 4px;
}
.country-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e2e8fa;
  border-left: 4px solid var(--primary-soft);
  border-radius: var(--radius-sm);
  padding: 10px 12px 10px 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.country-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--accent);
}
.country-card__no {
  position: absolute;
  top: 6px; right: 8px;
  font-size: .7rem;
  font-weight: 800;
  color: #c2cbe8;
  letter-spacing: .05em;
}
.country-card__flag {
  font-size: 1.7rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.15));
}
.country-card__body { min-width: 0; }
.country-card__name {
  font-weight: 800;
  font-size: .98rem;
  color: var(--primary);
  margin: 0;
  line-height: 1.3;
}
.country-card__cities {
  font-size: .76rem;
  color: var(--muted);
  margin: 2px 0 0;
  line-height: 1.45;
}
@media (max-width: 480px) {
  .country-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   こんな方におすすめ チェックリスト
   ============================================================ */
.reader-box {
  background: linear-gradient(135deg, rgba(255,175,58,.08), rgba(56,94,199,.07));
  border: 1px solid #e2e8fa;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 18px 20px 16px;
  margin: 14px 0;
}
.reader-box__head {
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--primary);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px dashed rgba(7,2,100,.18);
}
.reader-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 18px;
  margin: 0;
  padding: 0;
}
.reader-list li {
  position: relative;
  margin: 0;
  padding-left: 26px;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}
.reader-list li::before {
  content: "\2713"; /* ✓ checkmark (unicode, always available) */
  position: absolute;
  left: 0; top: 2px;
  width: 18px; height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary-soft);
  border-radius: 50%;
}
@media (max-width: 560px) {
  .reader-list { grid-template-columns: 1fr; }
}

/* ============================================================
   自動段落化（data-autop）— 本文を空行区切りで段落化
   ============================================================ */
[data-autop] > p {
  margin: 0 0 1.1em;
}
[data-autop] > p:last-child { margin-bottom: 0; }

/* ============================================================
   MEDIA QUERIES
   ============================================================ */
@media (max-width: 959px) {
  #wrapper, .inner { width: 100%; }
  #header { width: 96%; padding: 0 2%; }
}

@media (max-width: 644px) {
  #header { text-align: center; background-image: none; }
  #header p::before {
    content: url(https://yostabi.com/img/imagelogo_small.png);
    position: absolute;
    top: 0;
    left: -250px;
  }
  .photo_center_smartphone {
    width: 94%;
    margin: 12px auto;
  }
  .photo_center_smartphone img { max-height: 78vh; }
  iframe { width: 82%; margin: 0 auto; }
  .flex { flex-direction: column; align-items: center; }
  .image > img { width: 80px; height: 80px; }
  #agenda { width: 100%; }
}
