/* ===========================
   さくら法務ニュース スタイル
   =========================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pink-light:   #fff0f3;
  --pink-soft:    #fde8ed;
  --pink-mid:     #fac8d4;
  --pink-accent:  #e8829a;
  --pink-dark:    #c4607a;
  --white:        #ffffff;
  --bg:           #fafafa;
  --text-dark:    #2d2d2d;
  --text-mid:     #555;
  --text-light:   #888;
  --radius:       10px;

  /* カテゴリーカラー */
  --col-sozoku:  #7b5ea7;
  --col-zairyu:  #2a7d9c;
  --col-tokutei: #c4607a;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.8;
  font-size: 15px;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* --- カテゴリータグ --- */
.tag-sozoku  { background: #f0ebf8; color: var(--col-sozoku);  border: 1px solid #c9b8e8; }
.tag-zairyu  { background: #e8f4f8; color: var(--col-zairyu);  border: 1px solid #a8d4e0; }
.tag-tokutei { background: var(--pink-soft); color: var(--col-tokutei); border: 1px solid var(--pink-mid); }

.tag-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.tag-sozoku-dot  { background: var(--col-sozoku); }
.tag-zairyu-dot  { background: var(--col-zairyu); }
.tag-tokutei-dot { background: var(--col-tokutei); }
.tag-updates-dot { background: #888; }

.card-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 50px;
  letter-spacing: 0.05em;
}

/* ===========================
   ヘッダー
   =========================== */
.news-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--pink-mid);
  transition: box-shadow 0.2s;
}
.news-header.scrolled { box-shadow: 0 2px 16px rgba(196,96,122,0.12); }

.news-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

/* ロゴ＋スマホ専用ボタンのまとめWrapper */
.logo-with-sp-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  flex: 1;
}

/* スマホ専用：事務所ページボタン（PCでは非表示） */
.header-office-btn-sp {
  display: none;
}

.news-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.news-logo-text { display: flex; flex-direction: column; }
.news-logo-main {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
}
.news-logo-sub { font-size: 10px; color: var(--text-light); }
.logo-mark-sakura {
  height: 36px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.news-last-updated {
  font-size: 10px;
  color: var(--text-light);
  white-space: nowrap;
  padding: 0 14px;
  border-left: 1px solid var(--pink-mid);
  border-right: 1px solid var(--pink-mid);
  line-height: 1.3;
  text-align: center;
  flex-shrink: 0;
}

.news-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.nav-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.nav-tag:hover { opacity: 0.75; }
.nav-office {
  font-size: 12px;
  color: var(--pink-dark);
  border: 1.5px solid var(--pink-dark);
  padding: 5px 14px;
  border-radius: 50px;
  white-space: nowrap;
  transition: all 0.2s;
}
.nav-office:hover { background: var(--pink-dark); color: white; }

/* 英語・中国語版：ナビラベルが長いため文字サイズ・余白を縮小して1行に収める */
html[lang="en"] .news-nav,
html[lang="zh"] .news-nav {
  gap: 4px;
}
html[lang="en"] .nav-tag,
html[lang="en"] .nav-office,
html[lang="zh"] .nav-tag,
html[lang="zh"] .nav-office {
  font-size: 11px;
  padding: 4px 9px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--pink-dark); border-radius: 2px; }

.mobile-nav {
  display: none;
  position: fixed;
  top: 68px;
  left: 0; right: 0;
  background: white;
  border-bottom: 2px solid var(--pink-mid);
  z-index: 99;
  padding: 12px 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 15px;
  border-bottom: 1px solid var(--pink-soft);
  color: var(--text-dark);
}
.mobile-nav a:hover { background: var(--pink-soft); }

/* ===========================
   ヒーロー
   =========================== */
.news-hero {
  background: linear-gradient(135deg, var(--pink-light) 0%, #fff5f7 50%, #f0ebf8 100%);
  padding: 72px 0 60px;
  text-align: center;
}
.hero-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--pink-accent);
  background: white;
  display: inline-block;
  padding: 4px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
  border: 1px solid var(--pink-mid);
}
.news-hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(24px, 4vw, 40px);
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 18px;
}
.news-hero h1 span { color: var(--pink-dark); }
.hero-desc { font-size: 15px; color: var(--text-mid); margin-bottom: 28px; line-height: 2; }
.hero-tags { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-tag {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 50px;
  border: 1.5px solid;
}
.hero-tag.tag-sozoku  { color: var(--col-sozoku); border-color: var(--col-sozoku); background: #f0ebf8; }
.hero-tag.tag-zairyu  { color: var(--col-zairyu); border-color: var(--col-zairyu); background: #e8f4f8; }
.hero-tag.tag-tokutei { color: var(--col-tokutei); border-color: var(--col-tokutei); background: var(--pink-soft); }

/* ===========================
   セクション共通
   =========================== */
.section { padding: 72px 0; }
.section-alt { background: white; }

.section-label-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}
.section-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  background: var(--pink-soft);
  color: var(--pink-dark);
  padding: 4px 14px;
  border-radius: 50px;
  white-space: nowrap;
}
.badge-sozoku  { background: #f0ebf8; color: var(--col-sozoku); }
.badge-zairyu  { background: #e8f4f8; color: var(--col-zairyu); }
.badge-tokutei { background: var(--pink-soft); color: var(--col-tokutei); }

.section-label-row h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  color: var(--text-dark);
}

/* ===========================
   注目記事
   =========================== */
.pickup-section { background: white; }
.pickup-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: stretch;
}

.pickup-card {
  background: var(--pink-light);
  border: 1px solid var(--pink-mid);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pickup-main h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  color: var(--text-dark);
  line-height: 1.6;
}
.pickup-main p { font-size: 14px; color: var(--text-mid); line-height: 1.9; flex: 1; }

.pickup-sub {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pickup-card-sm {
  background: white;
  border: 1px solid var(--pink-mid);
  border-radius: 12px;
  padding: 18px 20px;
  flex: 1;
}
.pickup-card-sm h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.6;
  margin: 8px 0 6px;
}

.card-date { font-size: 12px; color: var(--text-light); }
.read-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pink-dark);
  padding: 8px 20px;
  border: 1.5px solid var(--pink-dark);
  border-radius: 50px;
  transition: all 0.2s;
  align-self: flex-start;
}
.read-more:hover { background: var(--pink-dark); color: white; }
.read-more-sm {
  font-size: 12px;
  font-weight: 700;
  color: var(--pink-dark);
}
.read-more-sm:hover { text-decoration: underline; }

/* ===========================
   記事グリッド
   =========================== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.article-card {
  background: white;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s;
}
.article-card:hover {
  box-shadow: 0 6px 24px rgba(196,96,122,0.12);
  transform: translateY(-2px);
  border-color: var(--pink-mid);
}

.card-meta { display: flex; align-items: center; gap: 10px; }
.article-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.6;
}
.article-card h3 a:hover { color: var(--pink-dark); }
.article-card p { font-size: 13px; color: var(--text-mid); line-height: 1.85; flex: 1; }

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}
.read-time { font-size: 11px; color: var(--text-light); }

.more-link-row { text-align: center; margin-top: 32px; }
.btn-more {
  display: inline-block;
  padding: 12px 32px;
  border: 2px solid var(--pink-dark);
  color: var(--pink-dark);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s;
}
.btn-more:hover { background: var(--pink-dark); color: white; }

/* ===========================
   最新記事 + サイドバー
   =========================== */
.latest-section { background: var(--pink-light); }
.latest-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.latest-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.latest-list li {
  display: flex;
  align-items: baseline;
  gap: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--pink-mid);
  flex-wrap: nowrap;
}
/* カテゴリータグ：固定幅で左揃え統一 */
.latest-list .card-cat {
  min-width: 76px;
  width: 76px;
  flex-shrink: 0;
  text-align: center;
  margin-right: 12px;
}
/* 日付：固定幅で開始位置を統一 */
.latest-date {
  font-size: 12px;
  color: var(--text-light);
  white-space: nowrap;
  min-width: 76px;
  width: 76px;
  flex-shrink: 0;
  margin-right: 12px;
}
/* 見出し：残りのスペースを使用、開始位置統一 */
.latest-list li a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  flex: 1;
}
.latest-list li a:hover { color: var(--pink-dark); }

/* サイドバー */
.sidebar { display: flex; flex-direction: column; gap: 20px; }

.sidebar-card {
  background: white;
  border: 1px solid var(--pink-mid);
  border-radius: 14px;
  padding: 24px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pink-soft);
}
.sidebar-logo strong { font-size: 14px; display: block; }
.sidebar-logo small { font-size: 11px; color: var(--text-light); }

.sidebar-card p { font-size: 13px; color: var(--text-mid); margin-bottom: 14px; line-height: 1.8; }

.sidebar-info {
  font-size: 12.5px;
  margin-bottom: 16px;
}
.sidebar-info li {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--pink-soft);
}
.sidebar-info li:last-child { border-bottom: none; }
.sidebar-info li span:first-child { color: var(--pink-dark); font-weight: 700; white-space: nowrap; width: 50px; }
/* 英語・中国語版：ラベル列を広げて重なりを防止 */
html[lang="en"] .sidebar-info li span:first-child,
html[lang="zh"] .sidebar-info li span:first-child {
  width: 104px;
  min-width: 104px;
}
.sidebar-info li a { color: var(--pink-dark); font-weight: 700; font-size: 14px; }

.sidebar-btn {
  display: block;
  text-align: center;
  background: var(--pink-dark);
  color: white;
  padding: 11px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s;
}
.sidebar-btn:hover { background: #a34060; }

.category-card h4,
.consult-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--pink-mid);
}

.category-list { display: flex; flex-direction: column; gap: 4px; }
.category-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  transition: background 0.15s;
}
.category-list li a:hover { background: var(--pink-soft); }
.category-list li a em {
  margin-left: auto;
  font-style: normal;
  font-size: 11px;
  color: var(--text-light);
}

.consult-card { background: linear-gradient(135deg, var(--pink-soft), var(--pink-light)); }
.sidebar-tel {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--pink-dark);
  text-align: center;
  margin: 8px 0 4px;
  letter-spacing: 0.05em;
}
.consult-card small { display: block; text-align: center; font-size: 12px; color: var(--text-light); }

/* ===========================
   フッター
   =========================== */
.news-footer {
  background: #2d2d2d;
  color: #bbb;
  padding: 40px 0 24px;
}
.footer-inner { display: flex; flex-direction: column; gap: 20px; }
.footer-logo-row { display: flex; align-items: center; gap: 12px; }
.footer-site-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  font-weight: 600;
  color: white;
  display: block;
}
.footer-office { font-size: 11px; color: #888; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-nav a { font-size: 13px; color: #bbb; transition: color 0.2s; }
.footer-nav a:hover { color: var(--pink-accent); }
.footer-copy {
  font-size: 11px;
  color: #666;
  padding-top: 16px;
  border-top: 1px solid #444;
  line-height: 1.8;
}

/* ===========================
   レスポンシブ
   =========================== */
/* ===========================
   記事ページ
   =========================== */
.article-main { padding: 48px 0 72px; }

.article-breadcrumb { font-size: 12px; color: var(--text-light); margin-bottom: 20px; }
.article-breadcrumb a { color: var(--pink-dark); }
.article-breadcrumb a:hover { text-decoration: underline; }

.article-header-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.article-date { font-size: 13px; color: var(--text-light); }

.article-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--text-dark);
  line-height: 1.55;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--pink-mid);
}

.article-body { min-width: 0; }
.article-content { color: var(--text-mid); font-size: 15px; line-height: 1.95; }
.article-content h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  color: var(--text-dark);
  margin: 36px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--pink-accent);
  line-height: 1.5;
}
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol { margin: 0 0 16px 1.4em; padding: 0; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 6px; }

.info-box {
  background: var(--pink-light);
  border: 1.5px solid var(--pink-mid);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.85;
}
.info-box strong { color: var(--pink-dark); display: block; margin-bottom: 6px; }

.check-list { list-style: none !important; margin-left: 0 !important; }
.check-list li { padding-left: 1.4em; position: relative; }
.check-list li::before { content: '✓'; color: var(--pink-dark); font-weight: 700; position: absolute; left: 0; }

.article-cta {
  background: linear-gradient(135deg, var(--pink-soft), var(--pink-light));
  border: 1.5px solid var(--pink-mid);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  margin: 40px 0 24px;
}
.article-cta p { font-size: 14px; color: var(--text-mid); margin-bottom: 16px; }
.btn-consult {
  display: inline-block;
  background: var(--pink-dark);
  color: white;
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s;
}
.btn-consult:hover { background: #a34060; }

.btn-back {
  display: inline-block;
  font-size: 13px;
  color: var(--pink-dark);
  border: 1.5px solid var(--pink-mid);
  padding: 9px 22px;
  border-radius: 50px;
  transition: all 0.2s;
}
.btn-back:hover { background: var(--pink-soft); border-color: var(--pink-accent); }

/* ===========================
   言語切り替え
   =========================== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: 10px;
  padding-left: 12px;
  border-left: 1px solid var(--pink-mid);
}
.lang-btn {
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--pink-dark);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.lang-btn:hover {
  background: var(--pink-soft);
  border-color: var(--pink-mid);
  color: var(--pink-dark);
}
.lang-btn.lang-active {
  background: var(--pink-dark);
  color: var(--white);
  border-color: var(--pink-dark);
}

/* ===========================
   レスポンシブ
   =========================== */
@media (max-width: 900px) {
  .news-nav { display: none; }
  .news-last-updated { display: none; }
  .lang-switcher { display: none; }
  .hamburger { display: flex; }
  .news-logo-sub { display: none; }
  .logo-mark-sakura {
    height: 29px !important;
    width: auto !important;
  }

  /* スマホ：ロゴ+ボタンWrapperを横幅いっぱいに広げてボタンを右端へ */
  .logo-with-sp-btn {
    flex: 1;
    justify-content: space-between;
    margin-right: 12px;
  }

  /* スマホ：事務所ページボタンを表示 */
  .header-office-btn-sp {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--pink-dark);
    border: 1.5px solid var(--pink-dark);
    padding: 5px 10px;
    border-radius: 50px;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.3;
  }
  .header-office-btn-sp:hover {
    background: var(--pink-dark);
    color: white;
  }

  .pickup-grid { grid-template-columns: 1fr; }
  .latest-wrapper { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .news-hero { padding: 56px 0 40px; }
  .section { padding: 48px 0; }
  .hero-tags { flex-direction: column; align-items: center; }
}
