/* ===========================
   Reset & Base
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:    #FAF7F0;
  --amber:    #C4895A;
  --amber-lt: #FDF3EB;
  --amber-bd: #E8C89A;
  --brown:    #3D2B1F;
  --brown-md: #5C4538;
  --brown-lt: #7A6355;
  --sand:     #A89080;
  --border:   #E8DDD3;
  --white:    #ffffff;
  --maker-gm-bg:  #FDF3EB;
  --maker-gm-tx:  #8A5A30;
  --maker-cd-bg:  #EAE8F0;
  --maker-cd-tx:  #534AB7;
  --maker-dl-bg:  #EAF0E8;
  --maker-dl-tx:  #3B6D11;
  --maker-mk-bg:  #E6F1FB;
  --maker-mk-tx:  #185FA5;
  --font: -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

html { font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--brown);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===========================
   Layout
=========================== */
.site-container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* ===========================
   Navigation
=========================== */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .inner {
  display: flex;
  align-items: center;
  height: 52px;
  gap: 0;
}
.site-logo {
  font-size: 14px;
  font-weight: 500;
  color: var(--brown);
  letter-spacing: 0.04em;
  margin-right: 24px;
  white-space: nowrap;
  text-decoration: none;
}
.site-logo em {
  color: var(--amber);
  font-style: normal;
}
.global-nav { display: flex; align-items: center; gap: 0; flex: 1; }
.global-nav a {
  font-size: 12px;
  color: var(--brown-md);
  padding: 0 14px;
  height: 52px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.global-nav a:hover { color: var(--amber); }
.global-nav a.current-menu-item { color: var(--amber); border-bottom-color: var(--amber); }
.global-nav a.nav-highlight {
  background: var(--amber-lt);
  color: var(--amber);
  border-radius: 6px;
  height: 30px;
  padding: 0 12px;
  border-bottom: none;
  margin: auto 0;
}
/* スクロール時のヘッダーシャドウ */
.site-header.scrolled { box-shadow: 0 2px 12px rgba(61,43,31,0.08); }

/* ===========================
   Hero（トップページ）
=========================== */
.hero {
  background: #F5EDE3;
  padding: 32px 20px;
}
.hero .inner {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 24px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}
.hero-eyebrow { font-size: 10px; color: var(--amber); letter-spacing: 0.12em; font-weight: 500; margin-bottom: 8px; }
.hero-title { font-size: 22px; font-weight: 500; line-height: 1.5; margin-bottom: 12px; }
.hero-body { font-size: 13px; color: var(--brown-lt); line-height: 1.85; margin-bottom: 16px; }
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--amber);
  color: var(--cream);
  font-size: 13px;
  padding: 9px 20px;
  border-radius: 24px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.hero-cta:hover { opacity: 0.85; text-decoration: none; }
.hero-illust {
  background: #EDD9C0;
  border-radius: 16px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===========================
   Beginners bar
=========================== */
.beginners-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px;
}
.beginners-bar .inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.b-card { display: flex; align-items: flex-start; gap: 12px; }
.b-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.b-text h3 { font-size: 12px; font-weight: 500; margin-bottom: 3px; color: var(--brown); }
.b-text p { font-size: 11px; color: var(--brown-lt); line-height: 1.6; }

/* ビギナーズバー リンクカード */
.b-card-link {
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  padding: 10px;
  margin: -10px;
  transition: background 0.15s;
}
.b-card-link:hover { background: rgba(196,137,90,0.06); text-decoration: none; }

/* ===========================
   Article Grid（一覧）
=========================== */
.section { padding: 28px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}
.section-head h2 { font-size: 16px; font-weight: 500; }
.section-head .sub { font-size: 11px; color: var(--sand); }
.section-head .more { margin-left: auto; font-size: 11px; color: var(--amber); }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.article-card {
  background: var(--white);
  border-radius: 12px;
  border: 0.5px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.15s;
}
.article-card:hover { box-shadow: 0 2px 12px rgba(61,43,31,0.08); }
.card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #EDD9C0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-body { padding: 12px 14px 14px; }
.card-maker { margin-bottom: 4px; }
.card-title { font-size: 12px; font-weight: 500; line-height: 1.55; color: var(--brown); margin-bottom: 5px; }
.card-meta { font-size: 10px; color: var(--sand); }

/* ===========================
   Maker Badge & Tags
=========================== */
.maker-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
}
.maker-badge.gm { background: var(--maker-gm-bg); color: var(--maker-gm-tx); }
.maker-badge.cd { background: var(--maker-cd-bg); color: var(--maker-cd-tx); }
.maker-badge.dl { background: var(--maker-dl-bg); color: var(--maker-dl-tx); }
.maker-badge.mk { background: var(--maker-mk-bg); color: var(--maker-mk-tx); }

.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 500;
}
.tag.theme  { background: #EAE8F0; color: #534AB7; }
.tag.cask   { background: #EAF0E8; color: #3B6D11; }
.tag.gift   { background: var(--amber-lt); color: var(--maker-gm-tx); }

/* ===========================
   Article Layout（記事ページ）
=========================== */
.article-outer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  padding: 28px 0 48px;
  align-items: start;
}
.breadcrumb { font-size: 11px; color: var(--sand); margin-bottom: 14px; }
.breadcrumb span { color: var(--amber); }
.breadcrumb a { color: var(--sand); }

.article-maker { margin-bottom: 10px; }
.article-title { font-size: 22px; font-weight: 500; line-height: 1.5; margin-bottom: 12px; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 0.5px solid var(--border);
}
.article-meta .date { font-size: 11px; color: var(--sand); margin-left: 4px; }

.eyecatch {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 24px;
  background: #EDD9C0;
}
.eyecatch-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  background: #EDD9C0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

/* ===========================
   Article Body
=========================== */
.article-body { font-size: 14px; color: var(--brown-md); line-height: 1.85; }
.article-body h2 {
  font-size: 18px;
  font-weight: 500;
  color: var(--brown);
  margin: 2rem 0 0.75rem;
  padding-left: 12px;
  border-left: 3px solid var(--amber);
}
.article-body h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--brown);
  margin: 1.5rem 0 0.5rem;
}
.article-body p { margin-bottom: 1rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body strong { font-weight: 500; color: var(--brown); }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 1.5rem 0;
}
.article-body th {
  background: #F5EDE3;
  padding: 8px 12px;
  font-weight: 500;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.article-body td {
  padding: 8px 12px;
  border-bottom: 0.5px solid var(--border);
}

/* ===========================
   Product Card
=========================== */
.product-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin: 14px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.product-thumb {
  width: 64px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}
.product-thumb img { width: 100%; }
.product-thumb-placeholder {
  width: 64px;
  height: 80px;
  border-radius: 8px;
  background: #F5EDE3;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-name { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.product-sub { font-size: 11px; color: var(--sand); margin-bottom: 6px; }
.product-desc { font-size: 13px; color: var(--brown-md); line-height: 1.7; }
.product-links { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.product-link {
  font-size: 11px;
  padding: 5px 14px;
  border-radius: 20px;
  border: 0.5px solid;
  text-decoration: none;
  transition: opacity 0.15s;
}
.product-link:hover { opacity: 0.7; text-decoration: none; }
.product-link.rakuten { border-color: #BF0000; color: #BF0000; }
.product-link.amazon  { border-color: #E47911; color: #E47911; }

/* ===========================
   Flavor Map
=========================== */
.flavor-map-wrap {
  background: #FAF7F0;
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin: 1.5rem 0;
}
.flavor-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.legend-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--brown-md); }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ===========================
   Gift Box
=========================== */
.gift-box {
  background: var(--amber-lt);
  border: 0.5px solid var(--amber-bd);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 2rem 0;
}
.gift-box h2 {
  font-size: 15px;
  font-weight: 500;
  color: var(--brown);
  margin: 0 0 14px;
  padding: 0;
  border: none;
}
.gift-row { margin-bottom: 12px; }
.gift-label { font-size: 11px; color: var(--amber); font-weight: 500; margin-bottom: 3px; }
.gift-text { font-size: 13px; color: var(--brown-md); line-height: 1.75; }
.gift-bullets { font-size: 13px; color: var(--brown-md); line-height: 2; }

/* ===========================
   FAQ
=========================== */
.faq-item { border-top: 0.5px solid var(--border); padding: 14px 0; }
.faq-q {
  font-size: 14px;
  font-weight: 500;
  color: var(--brown);
  margin-bottom: 6px;
  display: flex;
  gap: 8px;
}
.faq-q::before { content: "Q."; color: var(--amber); flex-shrink: 0; }
.faq-a { font-size: 13px; color: var(--brown-md); line-height: 1.75; padding-left: 24px; }

/* ===========================
   Sidebar
=========================== */
.sidebar { position: sticky; top: 68px; }
.sb-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}
.sb-title {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 0.5px solid var(--border);
}
.toc-list { list-style: none; }
.toc-list li a {
  display: block;
  font-size: 11px;
  color: var(--brown-lt);
  padding: 5px 0;
  border-bottom: 0.5px dashed var(--border);
  text-decoration: none;
}
.toc-list li:last-child a { border-bottom: none; }
.toc-list li a:hover, .toc-list li a.active { color: var(--amber); }

.sb-related-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.sb-related-thumb {
  width: 36px; height: 36px;
  border-radius: 6px;
  background: #EDD9C0;
  flex-shrink: 0;
  overflow: hidden;
}
.sb-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sb-related-text { font-size: 11px; color: var(--brown-md); line-height: 1.5; }
.sb-related-text a { color: var(--brown-md); }
.sb-related-text a:hover { color: var(--amber); text-decoration: none; }

.maker-filter { display: flex; flex-wrap: wrap; gap: 6px; }

/* ===========================
   Sidebar WordPress Widgets
=========================== */
.sb-card .widget { font-family: var(--font); }
.sb-card .widget-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--brown);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 0.5px solid var(--border);
}
/* 検索ウィジェット：横一列・角丸 */
.sb-card .widget_search form {
  display: flex;
  gap: 0;
}
.sb-card .widget_search input[type="search"] {
  flex: 1;
  border: 0.5px solid var(--border);
  border-right: none;
  border-radius: 20px 0 0 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-family: var(--font);
  color: var(--brown);
  background: var(--cream);
  outline: none;
  -webkit-appearance: none;
}
.sb-card .widget_search input[type="search"]::placeholder { color: var(--sand); }
.sb-card .widget_search input[type="search"]:focus { border-color: var(--amber); }
.sb-card .widget_search button,
.sb-card .widget_search input[type="submit"] {
  background: var(--amber);
  color: var(--cream);
  border: none;
  border-radius: 0 20px 20px 0;
  padding: 6px 14px;
  font-size: 11px;
  font-family: var(--font);
  cursor: pointer;
  transition: opacity 0.15s;
}
.sb-card .widget_search button:hover,
.sb-card .widget_search input[type="submit"]:hover { opacity: 0.85; }

/* 他のウィジェット共通フォント */
.sb-card .widget ul { list-style: none; }
.sb-card .widget ul li {
  font-size: 11px;
  color: var(--brown-md);
  border-bottom: 0.5px dashed var(--border);
}
.sb-card .widget ul li:last-child { border-bottom: none; }
.sb-card .widget ul li a {
  display: block;
  padding: 5px 0;
  color: var(--brown-md);
  font-size: 11px;
  text-decoration: none;
}
.sb-card .widget ul li a:hover { color: var(--amber); }
.sb-card .widget_recent_entries .post-date {
  font-size: 10px;
  color: var(--sand);
  display: block;
}
.sb-card .widget_categories ul li a,
.sb-card .widget_archive ul li a { color: var(--brown-md); }

/* ===========================
   蒸留所ページ
=========================== */
.distillery-page h1.page-title { font-size: 22px; font-weight: 500; margin: 28px 0 6px; }
.distillery-page .page-lead { font-size: 13px; color: var(--brown-lt); margin-bottom: 32px; }

/* スコットランド地図 */
.scotland-map-wrap {
  background: #F5EDE3;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}
.scotland-map-svg { width: 100%; }
.scotland-map-legend { padding-top: 8px; }
.region-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 4px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.region-legend-item:hover { background: rgba(196,137,90,0.1); text-decoration: none; }
.region-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.region-legend-item .region-name { font-size: 13px; font-weight: 500; color: var(--brown); }
.region-legend-item .region-count { font-size: 11px; color: var(--sand); margin-left: auto; }

/* 地域別蒸留所リスト */
.distillery-region-section { margin-bottom: 40px; }
.distillery-region-section h2 {
  font-size: 16px;
  font-weight: 500;
  color: var(--brown);
  margin-bottom: 16px;
  padding: 10px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.distillery-region-section h2 .region-badge {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.distillery-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.distillery-item {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  transition: box-shadow 0.15s;
}
.distillery-item:hover { box-shadow: 0 2px 10px rgba(61,43,31,0.08); }
.distillery-item a { text-decoration: none; }
.distillery-name { font-size: 12px; font-weight: 500; color: var(--brown); margin-bottom: 2px; }
.distillery-name-en { font-size: 10px; color: var(--sand); margin-bottom: 6px; }
.distillery-article-count { font-size: 10px; color: var(--amber); }

@media (max-width: 768px) {
  .scotland-map-wrap { grid-template-columns: 1fr; }
  .distillery-list { grid-template-columns: repeat(2, 1fr); }
}

/* ===========================
   Footer
=========================== */
.site-footer {
  background: #3D2B1F;
  color: rgba(255,255,255,0.6);
  padding: 32px 20px;
  margin-top: 48px;
}
.site-footer .inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-logo { font-size: 14px; font-weight: 500; color: #FAF7F0; margin-bottom: 6px; }
.footer-logo em { color: var(--amber); font-style: normal; }
.footer-desc { font-size: 11px; line-height: 1.7; }
.footer-nav-title { font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.8); margin-bottom: 8px; }
.footer-nav a { display: block; font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 5px; }
.footer-nav a:hover { color: var(--amber); text-decoration: none; }
.footer-bottom {
  max-width: 960px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 0.5px solid rgba(255,255,255,0.1);
  font-size: 11px;
  text-align: center;
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 768px) {
  .article-outer {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .hero .inner { grid-template-columns: 1fr; }
  .hero-illust { display: none; }
  .beginners-bar .inner { grid-template-columns: 1fr; }
  .site-footer .inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .article-title { font-size: 18px; }
}
