/*
Theme Name: 介護ブログ
Theme URI:
Author: CDO
Description: 介護施設向け活動記録ブログテーマ（ヘルパーステーション・放課後デイサービス・生活介護事業・グループホーム）
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kaigo-blog
*/

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

body {
  font-family: 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic UI', sans-serif;
  background-color: #FDF9F3;
  color: #333;
  overflow-x: hidden;
  line-height: 1.7;
}

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

/* ===== HEADER ===== */
header {
  background: #FDF9F3;
  padding: 30px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo img { height: 48px; width: auto; display: block; }
.logo-text {
  font-size: 16px;
  font-weight: bold;
  color: #555;
}

nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 14px;
}
nav a {
  text-decoration: none;
  color: #555;
  transition: color 0.2s;
}
nav a:hover { color: #E8856A; }

.nav-contact {
  border: 1.5px solid #E8856A;
  border-radius: 50px;
  padding: 7px 20px;
  color: #E8856A !important;
  transition: background 0.2s, color 0.2s;
}
.nav-contact:hover {
  background: #E8856A;
  color: white !important;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 201;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #555;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 199;
}
.nav-overlay.open { display: block; }

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 240px;
  height: 100vh;
  background: #fff;
  z-index: 200;
  padding: 72px 28px 32px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -4px 0 20px rgba(0,0,0,0.12);
  overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer a {
  display: block;
  padding: 15px 0;
  font-size: 15px;
  font-weight: 500;
  color: #222;
  text-decoration: none;
  border-bottom: 1px solid #e8e0d8;
  transition: color 0.2s;
}
.nav-drawer a:hover { color: #E8856A; }
.nav-drawer .nav-contact {
  margin-top: 20px;
  text-align: center;
  border: 1.5px solid #E8856A !important;
  border-radius: 50px;
  padding: 11px 20px;
  color: #E8856A !important;
  font-weight: 600;
}

@media (max-width: 768px) {
  header { padding: 12px 20px !important; }
  header nav { display: none; }
  .hamburger { display: flex; }
}

/* ===== SECTION ===== */
.section {
  padding: 56px 56px;
  position: relative;
}

.section-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 28px;
  padding-left: 14px;
  border-left: 4px solid #F4A07A;
  line-height: 1;
}

/* ===== CATEGORY TAGS ===== */
.tag {
  display: inline-block;
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 8px;
  text-decoration: none;
}
.tag-afterschool { background: #FFD6E0; color: #C0607A; }
.tag-helper      { background: #C8E6F5; color: #4A8AB8; }
.tag-living      { background: #C8EAC8; color: #3E8A3E; }
.tag-group       { background: #FFF0B3; color: #A07830; }

/* ===== CARDS ===== */
.card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.card-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #e8e8e8, #d8d8d8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #bbb;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body { padding: 16px 18px 18px; }
.card-title {
  font-size: 15px;
  font-weight: bold;
  color: #333;
  line-height: 1.55;
  margin-bottom: 6px;
}
.card-date { font-size: 12px; color: #bbb; }

/* ===== SLIDER ===== */
.slider-overflow { overflow: hidden; }
.slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.slide-card {
  min-width: calc(33.333% - 14px);
  flex-shrink: 0;
}
.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}
.slider-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #ddd;
  background: white;
  cursor: pointer;
  font-size: 14px;
  color: #777;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}
.slider-btn:hover { border-color: #E8856A; color: #E8856A; }
.dots { display: flex; gap: 7px; align-items: center; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.dot.active { background: #E8856A; transform: scale(1.2); }

/* ===== FILTER ===== */
.filter-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.filter-btn {
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 13px;
  cursor: pointer;
  border: 1.5px solid #ddd;
  background: white;
  color: #555;
  font-family: inherit;
  transition: all 0.2s;
}
.filter-btn.active {
  background: #2D2D2D;
  border-color: #2D2D2D;
  color: white;
}
.filter-btn:hover:not(.active) { border-color: #999; color: #333; }

/* ===== CARD GRID ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card-grid .card.hidden { display: none; }

/* ===== MORE BUTTON ===== */
.more-wrap { text-align: center; margin-top: 36px; }
.more-btn {
  border: 1.5px solid #ccc;
  border-radius: 50px;
  padding: 11px 40px;
  font-size: 14px;
  color: #666;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.more-btn:hover { border-color: #E8856A; color: #E8856A; }

/* ===== DECORATIVE ===== */
.deco-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.deco-triangle {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  width: 0; height: 0;
}
.section > *:not(.deco-circle):not(.deco-triangle),
.contact-section > *:not(.deco-circle) {
  position: relative;
  z-index: 1;
}

/* ===== CONTACT ===== */
.contact-section {
  padding: 64px 56px 72px;
  position: relative;
}
.contact-title {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.contact-desc {
  text-align: center;
  font-size: 13px;
  color: #999;
  margin-bottom: 36px;
}
.contact-card {
  background: white;
  border-radius: 20px;
  padding: 40px 48px;
  max-width: 580px;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: bold;
  color: #444;
  margin-bottom: 8px;
}
.form-required {
  background: #FFD6E0;
  color: #C0607A;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: bold;
}
.form-input, .form-textarea {
  width: 100%;
  border: 1.5px solid #EBEBEB;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  background: #FAFAFA;
  color: #333;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: #F4A07A;
  box-shadow: 0 0 0 3px rgba(244,160,122,0.12);
}
.form-textarea { height: 130px; resize: vertical; }
::placeholder { color: #ccc; }
.form-check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #666;
  margin-bottom: 26px;
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 16px; height: 16px;
  cursor: pointer;
  accent-color: #E8856A;
}
.submit-btn {
  display: block;
  width: 180px;
  margin: 0 auto;
  background: #FFD6E0;
  color: #C0607A;
  border: none;
  border-radius: 50px;
  padding: 13px 0;
  font-size: 15px;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 14px rgba(192,96,122,0.2);
}
.submit-btn:hover { opacity: 0.88; transform: translateY(-1px); }

.contact-sent {
  text-align: center;
  padding: 48px 32px;
  background: white;
  border-radius: 20px;
  max-width: 580px;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.contact-sent .sent-icon {
  font-size: 48px;
  margin-bottom: 20px;
}
.contact-sent .sent-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 12px;
}
.contact-sent .sent-text {
  font-size: 14px;
  color: #888;
  line-height: 1.8;
  margin-bottom: 28px;
}
.contact-sent .sent-back {
  display: inline-block;
  border: 1.5px solid #E8856A;
  border-radius: 50px;
  padding: 10px 32px;
  font-size: 14px;
  color: #E8856A;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.contact-sent .sent-back:hover {
  background: #E8856A;
  color: white;
}

/* ===== SINGLE POST ===== */
.single-wrap {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  padding: 40px 56px 64px;
}
.breadcrumb {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 20px;
}
.breadcrumb a { color: #aaa; text-decoration: none; }
.breadcrumb a:hover { color: #E8856A; }
.breadcrumb span { margin: 0 6px; }

.single-eyecatch {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  height: 360px;
  background: #e8e8e8;
}
.single-eyecatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.single-meta { margin-bottom: 16px; }
.single-title {
  font-size: 22px;
  font-weight: bold;
  line-height: 1.5;
  margin-bottom: 8px;
  color: #333;
}
.single-date { font-size: 12px; color: #bbb; }
.single-content {
  font-size: 15px;
  line-height: 1.9;
  color: #444;
  border-top: 1px solid #eee;
  padding-top: 24px;
}
.single-content p { margin-bottom: 1.4em; }
.single-content img {
  border-radius: 10px;
  margin: 16px 0;
}
.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-size: 13px;
}
.post-nav a { color: #E8856A; text-decoration: none; }
.post-nav a:hover { text-decoration: underline; }

/* Sidebar */
.sidebar-box {
  background: white;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.sidebar-box-title {
  font-size: 13px;
  font-weight: bold;
  color: #555;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #F4A07A;
}
.sidebar-cat-item {
  font-size: 13px;
  color: #555;
  padding: 6px 0;
  border-bottom: 1px dashed #eee;
  display: flex;
  justify-content: space-between;
}
.sidebar-cat-item:last-child { border-bottom: none; }
.sidebar-cat-item a { color: #555; text-decoration: none; }
.sidebar-cat-item a:hover { color: #E8856A; }
.sidebar-recent-item {
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
  line-height: 1.5;
}
.sidebar-recent-item:last-child { border-bottom: none; }
.sidebar-recent-item a { color: #555; text-decoration: none; }
.sidebar-recent-item a:hover { color: #E8856A; }
.sidebar-recent-date { font-size: 11px; color: #bbb; margin-top: 2px; }

/* ===== ARCHIVE / CATEGORY ===== */
.archive-header {
  padding: 40px 56px 0;
}
.archive-title {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  padding-left: 14px;
  border-left: 4px solid #F4A07A;
  margin-bottom: 8px;
}
.archive-desc { font-size: 13px; color: #999; }
.archive-grid-wrap { padding: 32px 56px 64px; }

/* ===== PAGINATION ===== */
.pagination {
  text-align: center;
  margin-top: 40px;
}
.pagination .page-numbers {
  display: inline-block;
  padding: 7px 13px;
  margin: 0 3px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 13px;
  color: #555;
  text-decoration: none;
  transition: all 0.2s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: #E8856A;
  border-color: #E8856A;
  color: white;
}

/* ===== STATIC PAGE ===== */
.page-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 24px;
}
.page-title-heading {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  padding-left: 14px;
  border-left: 4px solid #F4A07A;
  margin-bottom: 32px;
}
.page-content {
  font-size: 15px;
  line-height: 1.9;
  color: #444;
}
.page-content h2 {
  font-size: 17px;
  font-weight: bold;
  color: #444;
  margin: 28px 0 10px;
  padding-left: 10px;
  border-left: 3px solid #7DBB8A;
}
.page-content p { margin-bottom: 1.2em; }

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(180deg, #FDF9F3 0%, #F5EDE0 100%);
  padding: 36px 56px 28px;
  font-size: 13px;
  color: #999;
  border-top: 1px solid rgba(0,0,0,0.04);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
footer a { color: #777; text-decoration: none; transition: color 0.2s; }
footer a:hover { color: #E8856A; }
.footer-copy {
  text-align: center;
  font-size: 12px;
  color: #bbb;
  line-height: 1.8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .single-wrap { grid-template-columns: 1fr; padding: 24px 20px; }
  .sidebar { display: none; }
}
@media (max-width: 768px) {
  header { padding: 14px 20px; }
  nav { gap: 16px; font-size: 13px; }
  .section { padding: 40px 20px; }
  .contact-section { padding: 48px 20px; }
  .archive-grid-wrap { padding-left: 20px; padding-right: 20px; }
  .archive-header { padding: 28px 20px 0; }
  footer { padding: 18px 20px; font-size: 12px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .slide-card { min-width: calc(50% - 10px); }
  .contact-card { padding: 28px 24px; }
}
@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .slide-card { min-width: 80%; }
  nav a:not(.nav-contact):not(:last-of-type) { display: none; }
}
