/* 海外eSIMナビ 装飾CSS（Cocoon Child） */
:root {
	--esn-navy: #103E59;
	--esn-teal: #15A6A0;
	--esn-bg: #FFFFFF;
	--esn-bg2: #F3F7FA;
	--esn-text: #243746;
	--esn-accent: #F4A340;
	--esn-line: #DCE7EF;
	--esn-teal-l: #E3F5F4;
	--esn-radius: 14px;
}

body { color: var(--esn-text); background: var(--esn-bg); }
a { color: #0F6E8C; }

/* ---------- 1カラム（Cocoon設定「サイドバー非表示」の補助） ---------- */
.no-sidebar .main, .esn-front .main { width: 100%; }
.no-sidebar .sidebar { display: none; }
.content-in.wrap { max-width: 1200px; width: auto; padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
.no-sidebar .main { padding-left: 0; padding-right: 0; border: 0; background: transparent; }
.single .article, .page:not(.home) .article { max-width: 820px; margin-left: auto; margin-right: auto; }
.entry-content { line-height: 1.9; }
.entry-content img, .entry-content iframe { max-width: 100%; height: auto; }
.entry-title { color: var(--esn-navy); line-height: 1.5; }

/* 見出し */
.article h2 { background: var(--esn-navy); color: #fff; border-radius: 10px; padding: 14px 18px; line-height: 1.5; }
.article h3 { border: 0; border-left: 6px solid var(--esn-teal); background: var(--esn-bg2); padding: 10px 14px; border-radius: 0 8px 8px 0; line-height: 1.5; }

/* 表（スマホは横スクロール） */
.entry-content .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.6em; }
.entry-content .wp-block-table table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.94em; }
.entry-content .wp-block-table th { background: var(--esn-navy); color: #fff; font-weight: 700; }
.entry-content .wp-block-table th, .entry-content .wp-block-table td { border: 1px solid var(--esn-line); padding: 10px 12px; vertical-align: top; line-height: 1.7; }
.entry-content .wp-block-table tr:nth-child(even) td { background: var(--esn-bg2); }

/* 画像 */
.entry-content .wp-block-image { margin: 1.6em 0; }
.entry-content .wp-block-image img { border-radius: 10px; border: 1px solid var(--esn-line); aspect-ratio: 16 / 9; object-fit: cover; }
.entry-content .wp-block-image figcaption { font-size: 0.85em; color: #5B6F7D; text-align: center; }

/* PR表記 */
.esn-pr-note { font-size: 0.85em; color: #5B6F7D; background: var(--esn-bg2); padding: 6px 12px; border-radius: 6px; display: inline-block; }

/* 結論・注意ボックス */
.esn-point, .esn-caution { position: relative; border-radius: var(--esn-radius); padding: 18px 18px 18px 58px; margin: 1.6em 0; line-height: 1.8; }
.esn-point { background: var(--esn-teal-l); border: 2px solid var(--esn-teal); }
.esn-caution { background: #FFF6EA; border: 2px solid var(--esn-accent); }
.esn-point::before, .esn-caution::before { position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-weight: 700; text-align: center; line-height: 30px; font-size: 16px; }
.esn-point::before { content: "✓"; background: var(--esn-teal); }
.esn-caution::before { content: "!"; background: var(--esn-accent); }

/* 関連記事ラベル・姉妹サイト */
.esn-related-label { margin: 1.8em 0 0.4em; font-weight: 700; color: var(--esn-navy); font-size: 0.95em; }
.esn-related-label::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--esn-teal); margin-right: 8px; }
.esn-sister-label { margin: 1.8em 0 0.4em; font-weight: 700; color: var(--esn-navy); font-size: 0.95em; }
.esn-sister-label::before { content: "姉妹サイト"; display: inline-block; font-size: 0.78em; color: #fff; background: var(--esn-navy); border-radius: 4px; padding: 1px 8px; margin-right: 8px; }

/* FAQ */
.article h3.esn-faq-q { background: #fff; border: 2px solid var(--esn-line); border-left: 6px solid var(--esn-navy); border-radius: 10px 10px 0 0; margin-bottom: 0; }
.esn-faq-a { border: 2px solid var(--esn-line); border-top: 0; border-radius: 0 0 10px 10px; padding: 14px 16px; margin-top: 0; background: var(--esn-bg2); }

/* ---------- アフィリエイト（PR）ボックス ---------- */
.esn-aff { border: 2px solid var(--esn-line); border-radius: 18px; padding: 0 0 18px; margin: 2.2em 0; background: #fff; overflow: hidden; }
.esn-aff-head { display: flex; align-items: center; gap: 10px; background: var(--esn-navy); color: #fff; font-weight: 700; padding: 12px 18px; line-height: 1.5; }
.esn-pr { flex: none; background: var(--esn-accent); color: var(--esn-navy); font-size: 12px; font-weight: 700; border-radius: 4px; padding: 1px 8px; }
.esn-aff-lead { padding: 14px 18px 0; margin: 0; font-size: 0.95em; }
.esn-aff-fig { margin: 14px 18px 0; }
.esn-aff-fig img { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 10px; border: 1px solid var(--esn-line); display: block; }
.esn-aff-fig figcaption { font-size: 0.82em; color: #5B6F7D; text-align: center; margin-top: 6px; }
.esn-aff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; padding: 14px 18px 0; }
.esn-aff-card { border: 1px solid var(--esn-line); border-top: 5px solid var(--esn-teal); border-radius: 12px; padding: 14px 16px; background: var(--esn-bg2); display: flex; flex-direction: column; min-width: 0; }
.esn-aff-name { font-weight: 700; color: var(--esn-navy); font-size: 1.08em; margin: 0 0 6px; }
.esn-aff-label { display: inline-block; align-self: flex-start; background: var(--esn-teal); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 12px; margin: 0 0 8px; }
.esn-aff-points { list-style: none; margin: 0 0 10px; padding: 0; font-size: 0.93em; line-height: 1.7; }
.esn-aff-points li { position: relative; padding-left: 22px; margin: 0 0 4px; }
.esn-aff-points li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 10px; height: 6px; border-left: 3px solid var(--esn-teal); border-bottom: 3px solid var(--esn-teal); transform: rotate(-45deg); }
.esn-aff-cta { margin: auto 0 0; text-align: center; }
.esn-aff-cta a { display: block; background: var(--esn-accent); color: var(--esn-navy); font-weight: 700; text-decoration: none; border-radius: 999px; padding: 11px 16px; line-height: 1.5; box-shadow: 0 3px 0 #D9862A; word-break: break-word; }
.esn-aff-cta a:hover { opacity: 0.9; }
.esn-aff-cta img[width="1"] { position: absolute; width: 1px; height: 1px; border: 0; }
.esn-aff-banner { text-align: center; padding: 14px 18px 0; }
.esn-aff-banner img { max-width: 100%; height: auto; border: 0; }
.esn-aff-foot { font-size: 0.8em; color: #5B6F7D; padding: 10px 18px 0; margin: 0; }
.esn-aff-shop { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.esn-aff-shop a { display: block; text-align: center; border-radius: 999px; padding: 10px 8px; font-weight: 700; text-decoration: none; color: #fff; }
.esn-aff-shop .esn-amazon { background: #232F3E; }
.esn-aff-shop .esn-rakuten { background: #BF0000; }

/* ---------- トップページ ---------- */
.home .article, .esn-front { max-width: 1200px; margin: 0 auto; }
.esn-hero { position: relative; border-radius: 18px; overflow: hidden; background: var(--esn-navy); margin-bottom: 2em; }
.esn-hero-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.esn-hero-copy { position: absolute; left: 5%; top: 50%; transform: translateY(-50%); max-width: 46%; color: #fff; }
.esn-hero-title, .article .esn-hero-title { background: none; border: 0; padding: 0; color: #fff; font-size: clamp(26px, 3.6vw, 46px); font-weight: 800; line-height: 1.35; margin: 0 0 0.4em; letter-spacing: 0.02em; }
.esn-hero-sub { font-size: clamp(14px, 1.6vw, 20px); line-height: 1.7; margin: 0 0 1.2em; color: #D7F0EE; }
.esn-hero-btn { display: inline-block; background: var(--esn-accent); color: var(--esn-navy); font-weight: 700; padding: 12px 26px; border-radius: 999px; text-decoration: none; }
.esn-br-sp { display: none; }
.esn-front-content > h2, .esn-sec-title { background: none; color: var(--esn-navy); text-align: center; padding: 0; margin: 2.4em 0 0.6em; font-size: 1.5em; border: 0; }
.esn-front-content > h2::after, .esn-sec-title::after { content: ""; display: block; width: 56px; height: 4px; background: var(--esn-teal); border-radius: 2px; margin: 10px auto 0; }
.esn-front-content > p { text-align: center; }
.home .entry-content { max-width: none; }

/* ナビカード */
.esn-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 1em 0 2em; }
.esn-nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; background: var(--esn-bg2); border: 1px solid var(--esn-line); border-radius: var(--esn-radius); padding: 20px 10px; color: var(--esn-navy); font-weight: 700; text-decoration: none; transition: transform .15s, box-shadow .15s; min-height: 120px; }
.esn-nav-item:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(16, 62, 89, .12); }
.esn-nav-item .esn-icon { color: var(--esn-teal); }
.esn-nav-list { grid-template-columns: repeat(2, 1fr); }
.esn-nav-list .esn-nav-item { flex-direction: row; justify-content: flex-start; text-align: left; min-height: 0; padding: 14px 16px; background: #fff; border-left: 5px solid var(--esn-accent); }
.esn-nav-list .esn-icon { width: 28px; height: 28px; flex: none; }

/* 記事カード */
.esn-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 1em 0 2em; }
.esn-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--esn-line); border-radius: var(--esn-radius); overflow: hidden; color: var(--esn-text); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.esn-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16, 62, 89, .12); }
.esn-card-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--esn-bg2); }
.esn-card-img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.esn-card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.esn-card-cat { align-self: flex-start; font-size: 12px; font-weight: 700; color: #fff; background: var(--esn-teal); border-radius: 4px; padding: 1px 8px; }
.entry-content .esn-card-title, .article .esn-card-title { font-size: 1.02em; font-weight: 700; line-height: 1.55; color: var(--esn-navy); margin: 0; padding: 0; background: none; border: 0; }
.esn-card-desc { font-size: 0.88em; line-height: 1.7; color: #4A5E6C; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.esn-card-date { margin-top: auto; font-size: 12px; color: #6C808E; display: flex; gap: 10px; flex-wrap: wrap; }
.esn-cards-list { grid-template-columns: 1fr; }
.esn-cards-list .esn-card { flex-direction: row; }
.esn-cards-list .esn-card-thumb { width: 36%; flex: none; }

/* 旅行準備セクション */
.esn-travel { background: var(--esn-bg2); border-radius: 18px; padding: 8px 20px 20px; margin: 2em 0; }

/* フッター */
.footer { background: var(--esn-navy); }
.footer, .footer a, .footer .copyright { color: #E6EEF3; }
.navi-footer-in > .menu-footer li a { color: #E6EEF3; }

/* ---------- タブレット・スマホ ---------- */
@media screen and (max-width: 1023px) {
	.esn-cards { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 834px) {
	.esn-hero-copy { position: static; transform: none; max-width: none; padding: 20px 18px 24px; }
	.esn-br-sp { display: inline; }
	.esn-nav { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 600px) {
	.esn-cards, .esn-nav-list { grid-template-columns: 1fr; }
	.esn-cards-list .esn-card { flex-direction: column; }
	.esn-cards-list .esn-card-thumb { width: 100%; }
	.esn-aff-grid { grid-template-columns: 1fr; padding: 14px 12px 0; }
	.esn-aff-lead, .esn-aff-foot { padding-left: 12px; padding-right: 12px; }
	.esn-aff-fig { margin: 12px 12px 0; }
	.article h2 { font-size: 1.2em; padding: 12px 14px; }
	.article h3 { font-size: 1.08em; }
	.esn-point, .esn-caution { padding: 14px 14px 14px 52px; }
}

/* サイドバー非表示のため、スマホ下部の「サイドバー」ボタンを隠す */
.mobile-menu-buttons .sidebar-menu-button { display: none; }
/* ヘッダーロゴのサイズ */
.logo-header img.site-logo-image { max-height: 72px; width: auto; }
@media screen and (max-width: 834px) { .logo-header img.site-logo-image { max-height: 48px; } }

/* AdSense */
.esn-ad{margin:2.2em 0;clear:both;overflow:hidden;max-width:100%}
.esn-ad-label{margin:0 0 .4em;font-size:12px;color:#6b7c88;text-align:center;letter-spacing:.05em}
.esn-ad--display ins.adsbygoogle{min-height:100px}
