/*
Theme Name: okamoto-kaigo
Theme URI: https://kaigo.monster
Author: Okamoto
Author URI: https://kaigo.monster
Description: やみつき通所介護のための、新聞風＋自由HTML/CSS/JS対応のオリジナルテーマ。
Version: 1.0
Text Domain: okamoto-kaigo
*/

/* ===== リセット系 ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
  color: #111;
  background: #f0f0f0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== ヘッダーメニュー骨 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo a {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.main-nav {
  display: flex;
  gap: 16px;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
}

.main-nav a {
  font-size: 0.9rem;
}

/* ハンバーガー */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* スマホメニュー */
.mobile-menu {
  display: none;
}

.mobile-menu-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 16px 16px;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu li + li {
  margin-top: 8px;
}

/* ===== レイアウト（本文＋サイドバー） ===== */
.layout-two-column {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  gap: 24px;
  padding: 24px 16px 40px;
}

.content-area {
  flex: 1 1 auto;
}

.sidebar {
  flex: 0 0 260px;
}

.widget {
  background: #faf5eb;
  border: 1px solid #ddd0b5;
  padding: 12px 12px 16px;
  margin-bottom: 16px;
}

.widget-title {
  font-size: 0.95rem;
  margin: 0 0 8px;
  border-bottom: 1px solid #ddd0b5;
  padding-bottom: 4px;
}

/* ===== フッター ===== */
.site-footer {
  margin-top: 40px;
  padding: 24px 16px;
  font-size: 0.8rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid #ddd;
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

.footer-widget-area {
  flex: 1 1 260px;
}

/* ===== 新聞背景（投稿用） ===== */
.news-bg {
  background: #f6f1e8;
  min-height: 100vh;
  padding: 24px 0 40px;
}

.news-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
  background: #faf5eb;
  border: 1px solid #ddd0b5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 投稿一覧（サムネ＋タイトルのみ縦並び・シンプル） */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-item {
  border-bottom: 1px solid #ddd0b5;
  padding-bottom: 10px;
}

.news-link {
  display: flex;
  gap: 14px;
  align-items: center;
}

.news-thumb {
  flex: 0 0 140px;
  border-radius: 4px;
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 90px;
  object-fit: cover;
}

.news-title {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

/* 個別記事 */
.single-article {
  max-width: 720px;
  margin: 0 auto;
}

.single-header {
  margin-bottom: 16px;
}

.single-title {
  font-size: 1.9rem;
  line-height: 1.25;
  margin: 0 0 16px;
}

.single-body {
  font-size: 1rem;
  line-height: 1.8;
}

/* 固定ページ（自由デザイン用ベース） */
.page-main {
  background: #ffffff;
  min-height: 100vh;
  padding: 24px 0 40px;
}

.page-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
  background: #ffffff;
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .mobile-menu {
    display: none;
  }

  .mobile-menu.is-open {
    display: block;
  }

  .layout-two-column {
    flex-direction: column;
    padding: 16px 12px 32px;
  }

  .sidebar {
    flex-basis: auto;
  }

  .news-link {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-thumb {
    width: 100%;
    flex: initial;
  }

  .news-thumb img {
    height: auto;
  }
}

/* ハンバーガー開閉アニメーション */
.hamburger.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
