/*
Theme Name: My Custom Theme
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: レスポンシブ対応のカスタムWordPressテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: my-theme
*/

/* ===== リセット & ベース ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  background: #fff;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== CSS 変数 ===== */
:root {
  --color-primary:#1E97AE;
  --color-accent:  #f59e0b;
  --color-bg:      #f8fafc;
  --color-text:    #1e293b;
  --color-muted:   #64748b;
  --max-width:     1100px;
  --radius:        8px;
  --transition:    0.25s ease;
}

/* ===== レイアウト ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.section { padding-block: 4rem; }
.section--gray { background: var(--color-bg); }
.grid-2 { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ===== ボタン ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition);
}
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: #1d4ed8; }
.btn--outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn--outline:hover { background: var(--color-primary); color: #fff; }

/* ===== カード ===== */
.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow var(--transition);
}
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }

/* ===== セクション見出し ===== */
.section-heading { text-align: center; margin-bottom: 2.5rem; }
.section-heading h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--color-text); }
.section-heading p  { color: var(--color-muted); margin-top: 0.5rem; }

/* ===== ヘッダー ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
  padding-block: 0.5rem;
}
.logo { display: flex; align-items: center; text-decoration: none; gap: 0.75rem; }
.logo-img { height: 112px; width: auto; display: block; }
.logo-name { font-family: 'Kiwi Maru', serif; font-size: 1.1rem; font-weight: 700; color: #1a1209; line-height: 1.6; }
.nav-links { display: flex; gap: 2rem; font-weight: 500; }
.nav-links a:hover { color: var(--color-primary); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--color-text); border-radius: 2px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .site-header .container { padding-block: 0.2rem; }
  .hamburger { display: flex; margin-left: auto; }
  .logo-img { height: 90px; }
  .logo-name { font-size: 0.8rem; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
  }
  .nav-links.open {
    display: flex;
    padding-block: 0.5rem;
  }
  .nav-links a { display: block; padding: 1rem 1.25rem; border-top: 1px solid #f1f5f9; }
  .nav-links a:first-child { border-top: none; }
}

/* ===== ヒーロー ===== */
.hero {
  padding-block: 5rem;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  text-align: center;
}
.hero h1 {
  font-family: 'Kiwi Maru', serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 550;
  color: var(--color-text);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.3rem;
  color: var(--color-muted);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 2rem;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== 特徴セクション ===== */
.feature-icon { font-size: 6rem; margin-bottom: 0.75rem; text-align: center; display: flex; justify-content: center; color: var(--color-primary); }
.feature-icon img { width: 75%; height: auto; }
.feature-card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; text-align: center; }
.feature-card p  { color: var(--color-muted); font-size: 0.9375rem; }

/* ===== ブログカード（トップページ用） ===== */
.blog-card { display: flex; gap: 1.25rem; align-items: flex-start; }
.blog-card-img {
  width: 120px; min-width: 120px; height: 90px;
  border-radius: var(--radius);
  background: #e2e8f0;
  overflow: hidden;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { flex: 1; }
.blog-card-meta { font-size: 0.8125rem; color: var(--color-muted); margin-bottom: 0.4rem; }
.blog-card-title { font-size: 1rem; font-weight: 700; color: var(--color-text); margin-bottom: 0.5rem; line-height: 1.4; }
.blog-card-excerpt { font-size: 0.875rem; color: var(--color-muted); }
.blog-card + .blog-card { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid #e2e8f0; }
.blog-card-title a:hover { color: var(--color-primary); }
.blog-more { text-align: center; margin-top: 2rem; }
@media (max-width: 480px) {
  .blog-card { flex-direction: column; }
  .blog-card-img { width: 100%; height: 160px; min-width: unset; }
}

/* ===== CTA ===== */
.cta-section {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding-block: 4rem;
}
.cta-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
.cta-section p  { opacity: 0.85; margin-bottom: 2rem; max-width: 540px; margin-inline: auto; }
.cta-section .btn--outline { border-color: #fff; color: #fff; }
.cta-section .btn--outline:hover { background: #fff; color: var(--color-primary); }

/* ===== パンくずリスト ===== */
.breadcrumb { padding: 1rem 0; font-size: 0.875rem; color: var(--color-muted); }
.breadcrumb a { color: var(--color-primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin-inline: 0.5rem; }

/* ===== ページヘッダー ===== */
.page-header {
  background: var(--color-bg);
  padding-block: 3rem;
  border-bottom: 1px solid #e2e8f0;
}
.page-header h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); color: var(--color-text); margin-bottom: 0.5rem; }
.page-header p { color: var(--color-muted); }

/* ===== ブログ一覧レイアウト ===== */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding-block: 3rem;
  align-items: start;
  min-width: 0;
}
.blog-layout > * { min-width: 0; }
@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
}

/* ===== 投稿カード（一覧） ===== */
.post-list { display: flex; flex-direction: column; gap: 1.5rem; }
.post-card {
  display: flex;
  gap: 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: box-shadow var(--transition);
}
.post-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.post-thumb {
  width: 140px; min-width: 140px; height: 100px;
  border-radius: var(--radius);
  background: #e2e8f0;
  overflow: hidden;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { flex: 1; }
.post-meta {
  display: flex; gap: 0.75rem; align-items: center;
  font-size: 0.8125rem; color: var(--color-muted);
  margin-bottom: 0.5rem; flex-wrap: wrap;
}
.post-category {
  background: #eff6ff; color: var(--color-primary);
  padding: 0.15rem 0.6rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 500;
}
.post-title { font-size: 1.0625rem; font-weight: 700; color: var(--color-text); line-height: 1.4; margin-bottom: 0.5rem; }
.post-title a:hover { color: var(--color-primary); }
.post-excerpt { font-size: 0.875rem; color: var(--color-muted); }
.post-readmore { display: inline-block; margin-top: 0.75rem; font-size: 0.875rem; font-weight: 500; color: var(--color-primary); }
.post-readmore:hover { text-decoration: underline; }
@media (max-width: 500px) {
  .post-card { flex-direction: column; }
  .post-thumb { width: 100%; height: 180px; min-width: unset; }
}

/* ===== ページネーション ===== */
.pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius); border: 1px solid #e2e8f0;
  font-size: 0.9375rem; color: var(--color-text);
  transition: background var(--transition), color var(--transition);
}
.pagination a:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.pagination .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); font-weight: 700; }

/* ===== サイドバー ===== */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget { background: var(--color-bg); border-radius: var(--radius); padding: 1.25rem; }
.sidebar-widget h3 {
  font-size: 0.9375rem; font-weight: 700; color: var(--color-text);
  margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary); display: inline-block;
}
.search-box { display: flex; gap: 0.5rem; }
.search-box input {
  flex: 1; padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0; border-radius: var(--radius);
  font-size: 0.9rem; font-family: inherit; outline: none;
}
.search-box input:focus { border-color: var(--color-primary); }
.search-box button {
  padding: 0.5rem 1rem; background: var(--color-primary); color: #fff;
  border: none; border-radius: var(--radius); cursor: pointer;
  font-size: 0.875rem; font-family: inherit;
}
.category-list { display: flex; flex-direction: column; gap: 0.4rem; }
.category-list a {
  display: flex; justify-content: space-between;
  font-size: 0.9rem; color: var(--color-text);
  padding: 0.3rem 0; border-bottom: 1px dashed #e2e8f0;
}
.category-list a:hover { color: var(--color-primary); }
.category-list span { color: var(--color-muted); font-size: 0.8rem; }
.recent-list { display: flex; flex-direction: column; gap: 0.75rem; }
.recent-item { display: flex; gap: 0.75rem; align-items: center; }
.recent-thumb { width: 56px; min-width: 56px; height: 44px; border-radius: 4px; background: #e2e8f0; overflow: hidden; }
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-title { font-size: 0.8125rem; line-height: 1.4; color: var(--color-text); }
.recent-title a:hover { color: var(--color-primary); }
.recent-date { font-size: 0.75rem; color: var(--color-muted); }

/* ===== 記事詳細 ===== */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding-block: 2.5rem;
  align-items: start;
  min-width: 0;
}
.post-layout > * { min-width: 0; }
@media (max-width: 900px) { .post-layout { grid-template-columns: 1fr; } }
.post-header { margin-bottom: 2rem; }
.post-title-large {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700; color: var(--color-text);
  line-height: 1.35; margin-bottom: 1.25rem;
}
.post-eyecatch {
  width: 100%; height: 340px;
  background: #e2e8f0; border-radius: var(--radius);
  overflow: hidden; margin-bottom: 2.5rem;
}
.post-eyecatch img { width: 100%; height: 100%; object-fit: cover; }
.post-content { color: var(--color-text); }
.post-content h2 {
  font-size: 1.375rem; font-weight: 700;
  margin-top: 2.5rem; margin-bottom: 1rem;
  padding-left: 0.875rem;
  border-left: 4px solid var(--color-primary);
}
.post-content h3 { font-size: 1.125rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.75rem; }
.post-content p { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { margin: 1rem 0 1.25rem 1.5rem; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 0.4rem; }
.post-content a { color: var(--color-primary); text-decoration: underline; }
.post-content blockquote { border-left: 4px solid #e2e8f0; padding-left: 1.25rem; color: var(--color-muted); margin: 1.5rem 0; font-style: italic; }
.post-content pre { background: #1e293b; color: #e2e8f0; padding: 1.25rem; border-radius: var(--radius); overflow-x: auto; font-size: 0.875rem; margin: 1.5rem 0; }
.post-content code { background: #f1f5f9; padding: 0.15em 0.4em; border-radius: 4px; font-size: 0.875em; font-family: monospace; }
.post-content pre code { background: none; padding: 0; }
.post-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #e2e8f0; }
.post-tags a {
  background: var(--color-bg); border: 1px solid #e2e8f0; border-radius: 999px;
  padding: 0.25rem 0.85rem; font-size: 0.8125rem; color: var(--color-muted);
  transition: background var(--transition), color var(--transition);
}
.post-tags a:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.post-share { margin-top: 2rem; padding: 1.25rem; background: var(--color-bg); border-radius: var(--radius); }
.post-share p { font-size: 0.875rem; font-weight: 700; color: var(--color-text); margin-bottom: 0.75rem; }
.share-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.share-btn { display: inline-block; padding: 0.4rem 1rem; border-radius: var(--radius); font-size: 0.8125rem; font-weight: 700; cursor: pointer; }
.share-btn--x { background: #000; color: #fff; }
.share-btn--fb { background: #1877f2; color: #fff; }
.share-btn--line { background: #06c755; color: #fff; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.post-nav a {
  display: block; background: var(--color-bg); border: 1px solid #e2e8f0;
  border-radius: var(--radius); padding: 1rem; font-size: 0.875rem;
  color: var(--color-text); transition: border-color var(--transition);
}
.post-nav a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.post-nav .nav-label { font-size: 0.75rem; color: var(--color-muted); display: block; margin-bottom: 0.35rem; }
.post-nav .prev { text-align: left; }
.post-nav .next { text-align: right; }
@media (max-width: 500px) { .post-nav { grid-template-columns: 1fr; } }

/* ===== 目次 ===== */
.toc { background: #fff; border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 1.25rem; }
.toc h3 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--color-text); }
.toc ol { list-style: decimal; padding-left: 1.25rem; }
.toc li { font-size: 0.875rem; margin-bottom: 0.4rem; }
.toc a { color: var(--color-primary); }
.toc a:hover { text-decoration: underline; }

/* ===== ヒーロー（背景画像対応） ===== */
.hero--bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* 背景画像がない場合のフォールバック */
  background-color: #1e293b;
}
.hero--bg .hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.hero--bg .hero__content {
  position: relative;
  z-index: 1;
}
.hero--bg h1,
.hero--bg p {
  color: #fff;
}
.hero--bg .btn--outline {
  border-color: #fff;
  color: #fff;
}
.hero--bg .btn--outline:hover {
  background: #fff;
  color: var(--color-text);
}

/* ===== 活動説明（センター寄せ） ===== */
.section--intro { background: #fff; }
.intro-text {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
.intro-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-text);
  margin-bottom: 1.25rem;
}
.intro-text p {
  color: var(--color-muted);
  margin-bottom: 1rem;
  line-height: 1.9;
}

/* ===== お問い合わせカード ===== */
.contact-card { text-align: center; }
.contact-icon { font-size: 2rem; margin-bottom: 0.75rem; color: #5C3317; }
.contact-card h3 { font-size: 1.125rem; margin-bottom: 0.75rem; color: var(--color-text); }
.contact-card p { color: var(--color-muted); font-size: 0.9375rem; line-height: 1.8; }
.contact-card--donation {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-card--donation h3 { margin-bottom: 0; }
.contact-card--donation p  { margin: 0; }

/* ===== フッター ===== */
.site-footer { background: var(--color-text); color: #94a3b8; padding-block: 2.5rem; font-size: 0.875rem; }
.footer-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a:hover { color: #fff; }
@media (max-width: 600px) {
  .section { padding-block: 2.5rem; }
  .hero { padding-block: 3rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ===== 私たちについてページ ===== */
.page-hero {
  padding-block: 4rem;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  text-align: center;
}
.page-hero h1 {
  font-family: 'Kiwi Maru', serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #1a1209;
  margin-bottom: 0.75rem;
}
.page-hero p { color: var(--color-muted); font-size: 1.05rem; }

.about-mission {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  font-size: 1.05rem;
  line-height: 2;
  color: var(--color-text);
}

.about-mission h3 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.about-mission p{
  text-align: left;
}

.about-activity-card { text-align: center; }
.about-activity-icon {
  font-size: 3rem;
  color: #5C3317;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}
.about-activity-card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.about-activity-card p  { color: var(--color-muted); font-size: 0.9375rem; line-height: 1.8; }

.about-table-wrap { max-width: 720px; margin-inline: auto; }
.about-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.about-table th,
.about-table td { padding: 1rem 1.25rem; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: top; }
.about-table th { width: 30%; color: #5C3317; font-weight: 700; white-space: nowrap; }
.about-table td a { color: var(--color-primary); }
@media (max-width: 600px) {
  .about-table th,
  .about-table td { display: block; width: 100%; }
  .about-table th { border-bottom: none; padding-bottom: 0.25rem; }
}
.about-table-wrap h4{  font-size: 1.7rem; margin:1.5rem; }
.about-cta {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  text-align: center;
}
.about-cta h2 {
  font-family: 'Kiwi Maru', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
  color: #1a1209;
}
.about-cta p { color: var(--color-muted); margin-bottom: 1.5rem; }

.contact-single { display: flex; justify-content: center; }
.contact-single .contact-card { max-width: 400px; width: 100%; }

.btn--blog { border-color: #1E97AE; color: #1E97AE; }
.btn--blog:hover { background: #1E97AE; color: #fff; }

.link {
  color: #1E97AE;
  text-decoration: underline;
}
.link:hover {
  color: #166e80;
}

a.feature-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.feature-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }

#sanctuary,
#food-empowerment {
  scroll-margin-top: 150px;
}