/* =============================================
   はたラボ 共通スタイル v4（Unipos風・温かみ×ビジネス）
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Zen+Maru+Gothic:wght@500;700&display=swap');

:root {
  --key:          #560e00;
  --key-dark:     #3a0900;
  --key-hover:    #6e1200;
  --key-tint:     #f8f0ee;
  --key-tint2:    #f2e4e0;
  --amber:        #c8831a;
  --text:         #1e1612;
  --text-mid:     #5c4a44;
  --text-light:   #9c8880;
  --bg:           #faf8f7;
  --bg-white:     #ffffff;
  --border:       #e6dbd6;
  --border-light: #f0e8e4;
  --radius-s:     4px;
  --radius-m:     8px;
  --radius-l:     14px;
  --shadow-s:     0 1px 4px rgba(30,10,5,0.07);
  --shadow-m:     0 4px 16px rgba(30,10,5,0.09);
  --font:         'Noto Sans JP', "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif;
  --font-logo:    'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  --max:          1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--key); text-decoration: none; transition: color .18s, opacity .18s; }
a:hover { color: var(--key-hover); }
img { max-width: 100%; height: auto; display: block; }

/* =============================================
   ヘッダー
   ============================================= */

.site-header {
  background: transparent;          /* A: 透明 */
  /* background: #fdf8e0; */        /* B: クリーム色（Aが見にくければこちらに切替） */
  border-top: 2px solid var(--key);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
}

.site-logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1;
}

.logo-name {
  font-family: var(--font-logo);
  font-size: 22px;
  font-weight: 700;
  color: var(--key);
  letter-spacing: .04em;
}

.logo-sub {
  font-size: 10px;
  color: var(--text-light);
  letter-spacing: .1em;
  font-weight: 400;
  margin-top: 4px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 2px;
}

.site-nav a {
  display: block;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: var(--radius-s);
  transition: background .16s, color .16s;
}

.site-nav a:hover {
  background: var(--key-tint);
  color: var(--key);
}

/* =============================================
   ヒーロー
   ============================================= */

.hero {
  width: 100%;
  background: var(--key-tint);
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: auto;             /* 縦横比そのまま、クリップなし */
  display: block;
}

/* =============================================
   メインレイアウト
   ============================================= */

.site-main { padding: 52px 0 80px; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 228px;
  gap: 44px;
  align-items: start;
}

/* =============================================
   セクション見出し
   ============================================= */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  display: block;
  width: 4px;
  height: 20px;
  background: var(--key);
  border-radius: 2px;
}

/* =============================================
   PRカード3枚
   ============================================= */

.pr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 44px;
}

.pr-card {
  background: var(--bg-white);
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-s);
  transition: box-shadow .22s, transform .22s;
}

.pr-card:hover {
  box-shadow: var(--shadow-m);
  transform: translateY(-3px);
}

.pr-card .card-img {
  height: 180px;
  overflow: hidden;
  background: #fff;
}

.pr-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .38s;
}

/* 写真画像は枠いっぱいに */
.pr-card .card-img--photo img {
  object-fit: cover;
  object-position: center center;
}

.pr-card:hover .card-img img { transform: scale(1.04); }

.pr-card .card-body {
  padding: 16px 18px 20px;
}

.pr-card .card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--key);
  margin-bottom: 8px;
  line-height: 1.5;
}

.pr-card .card-desc {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 14px;
}

.pr-card .card-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--key);
  border: 1.5px solid var(--border);
  padding: 5px 14px;
  border-radius: var(--radius-s);
  background: var(--bg-white);
  transition: border-color .16s, background .16s, color .16s;
}

.pr-card .card-more::after { content: '→'; font-size: 11px; }

.pr-card .card-more:hover {
  border-color: var(--key);
  background: var(--key-tint);
  color: var(--key);
}

/* =============================================
   記事一覧
   ============================================= */

.section-box {
  background: var(--bg-white);
  border-radius: var(--radius-l);
  border: 1px solid var(--border-light);
  padding: 28px 32px;
  box-shadow: var(--shadow-s);
}

.article-list { list-style: none; }

.article-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  transition: background .14s;
}

.article-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.article-link {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.article-tag {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  color: var(--key);
  background: var(--key-tint);
  padding: 2px 8px;
  border-radius: var(--radius-s);
  margin-top: 3px;
  white-space: nowrap;
  letter-spacing: .03em;
}

.article-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.65;
  transition: color .16s;
}

.article-list li:hover .article-title { color: var(--key); }

.article-list p {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.65;
  margin-top: 3px;
}

/* =============================================
   サイドバー
   ============================================= */

.sidebar {
  position: sticky;
  top: 80px;
}

.side-widget {
  background: var(--bg-white);
  border-radius: var(--radius-l);
  border: 1px solid var(--border-light);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-s);
}

.widget-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.side-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-links a {
  display: block;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: box-shadow .18s, transform .18s;
}

.side-links a:hover {
  box-shadow: var(--shadow-s);
  transform: translateY(-2px);
}

.side-links img { width: 100%; }

/* =============================================
   フッター
   ============================================= */

.pagetop-bar {
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  text-align: center;
  padding: 12px;
}

.pagetop-bar a {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: .1em;
  transition: color .16s;
}

.pagetop-bar a:hover { color: var(--key); }

.site-footer {
  background: var(--key-dark);
  padding: 44px 0 0;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px 36px;
}

.footer-inner dt {
  font-family: var(--font-logo);
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  margin-bottom: 12px;
}

.footer-inner dd {
  font-size: 13px;
  line-height: 2.1;
  color: rgba(255,255,255,.5);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 14px 40px;
  text-align: center;
  border-bottom: 4px solid var(--key);
}

.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.3); }
.footer-bottom a { color: rgba(255,255,255,.3); }
.footer-bottom a:hover { color: rgba(255,255,255,.6); }

/* =============================================
   記事ページ
   ============================================= */

/* タイトル帯（茶色） */
.page-hero {
  background: var(--key);
  padding: 14px 0 16px;
}

.page-hero .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}

.page-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.45;
}

/* パンくず帯（白） */
.page-breadcrumb {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}

.page-breadcrumb .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 7px 40px;
}

.breadcrumb {
  font-size: 11px;
  color: var(--text-light);
  margin: 0;
}

.breadcrumb a { color: var(--text-mid); }
.breadcrumb a:hover { color: var(--key); }
.breadcrumb span { margin: 0 6px; }

.entry-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 40px 80px;
  display: grid;
  grid-template-columns: 1fr 228px;
  gap: 44px;
  align-items: start;
}

.entry-content {
  background: var(--bg-white);
  border-radius: var(--radius-l);
  border: 1px solid var(--border-light);
  padding: 40px 44px;
  box-shadow: var(--shadow-s);
  font-size: 15px;
  line-height: 1.9;
}

.entry-content h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--key);
  border-left: 3px solid var(--key);
  padding: 4px 0 4px 14px;
  margin: 32px 0 14px;
  line-height: 1.55;
}

.entry-content h3 {
  font-size: 15px;
  font-weight: 700;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
  margin: 24px 0 12px;
}

.entry-content p { margin-bottom: 18px; }
.entry-content ul, .entry-content ol { padding-left: 24px; margin-bottom: 18px; }
.entry-content li { margin-bottom: 6px; }
.entry-content img { border-radius: var(--radius-m); margin: 20px 0; max-width: 100% !important; height: auto !important; }

.entry-content table {
  width: 100% !important;
  border-collapse: collapse;
  margin: 20px 0;
  table-layout: fixed;
  word-break: break-all;
  font-size: 14px;
}

.entry-content th, .entry-content td {
  border: 1px solid var(--border);
  padding: 10px 14px;
}

.entry-content th {
  background: var(--key-tint);
  color: var(--key);
  font-weight: 700;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mid);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: var(--radius-s);
  transition: border-color .16s, color .16s, background .16s;
}

.back-link::before { content: '←'; }
.back-link:hover { border-color: var(--key); color: var(--key); background: var(--key-tint); }

/* =============================================
   レスポンシブ
   ============================================= */

@media (max-width: 840px) {
  .container, .entry-wrap {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  .pr-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .header-inner, .footer-inner, .footer-bottom, .page-hero .inner { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 540px) {
  .site-nav { display: none; }
  .logo-name { font-size: 18px; }
  .hero img { max-height: 180px; }
  .entry-content { padding: 24px 20px; }
  .section-box { padding: 20px; }
}
.img-caption-block {
  text-align: center;
  margin: 24px 0;
}

.img-caption-block figcaption {
  font-size: 13px;
  color: var(--text-mid);
  margin-top: 2px;
  font-weight: 700;
}