/*
Theme Name: Yamato-en
Description: 大和園 公式サイトテーマ — Helleborus & Anemone hupehensis
Theme URI:
Author: Yamato-en
Version: 1.6.0
License: All Rights Reserved
Text Domain: yamato-en
Tags: responsive-layout
*/

/* ============================================================
   GOOGLE FONTS — loaded via functions.php wp_enqueue_style
   Cormorant Garamond 300,400,italic300
   Noto Sans JP 300,400
   ============================================================ */

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

html {
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', Verdana, YuGothic, 'Yu Gothic Medium', 'Hiragino Kaku Gothic Pro', Meiryo, sans-serif;
  font-weight: 300;
  color: #2c2c2a;
  background-color: #faf9f6;
  line-height: 1.8;
  letter-spacing: 0.05em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
a:hover { opacity: 0.65; }

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

ul, ol { list-style: none; }

p { margin-bottom: 1.8em; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.font-serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.text-en {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  letter-spacing: 0.14em;
}

.text-label {
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  color: #888780;
  text-transform: uppercase;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 0.5px solid #d3d1c7;
  transition: background 0.4s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 40px;
}

/* ロゴ */
.site-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: 1.25rem;
  letter-spacing: 0.18em;
  color: #2c2c2a;
  line-height: 1.2;
  flex-shrink: 0;
}
.site-logo span {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.57rem;
  letter-spacing: 0.3em;
  color: #888780;
  margin-top: 3px;
}
.site-logo img {
  max-height: 48px;
  width: auto;
}

/* グローバルナビ */
.global-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.global-nav ul,
.global-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.global-nav a {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: #5f5e5a;
  position: relative;
  padding-bottom: 2px;
}
.global-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 0.5px;
  background: #667534;
  transition: width 0.3s ease;
}
.global-nav a:hover { opacity: 1; color: #2c2c2a; }
.global-nav a:hover::after { width: 100%; background: #667534; }

/* 検索ボタン */
.header-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #888780;
  padding: 4px;
  line-height: 1;
  font-size: 1rem;
  transition: color 0.3s;
}
.header-search-btn:hover { color: #2c2c2a; }

/* ハンバーガー（モバイル） */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 28px;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 0.5px;
  background: #2c2c2a;
  transition: all 0.3s ease;
}

/* モバイルナビ */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: rgba(250, 249, 246, 0.98);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: #2c2c2a;
}

@media (max-width: 768px) {
  .header-inner { padding: 0 20px; }
  .global-nav { display: none; }
  .menu-toggle { display: flex; }
}

/* ============================================================
   HERO — Pattern A（写真左 / テキスト右）
   ============================================================ */
.hero-wrapper {
  margin-top: 72px;
  padding: 32px 32px 40px;
  background: #faf9f6;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 72px - 72px);
  gap: 0;
}

.hero-image {
  position: relative;
  overflow: hidden;
  background: #c5bfb0;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-text {
  background: #faf9f6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 72px;
}

.hero-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  color: #b4b2a9;
  display: block;
  margin-bottom: 36px;
}

.hero-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  font-size: 2rem;
  line-height: 1.75;
  letter-spacing: 0.12em;
  color: #2c2c2a;
  margin-bottom: 40px;
}

.hero-desc {
  font-size: 0.79rem;
  line-height: 2.4;
  letter-spacing: 0.1em;
  color: #888780;
  margin-bottom: 52px;
}

.hero-link {
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  color: #5f5e5a;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero-link::after {
  content: '';
  display: block;
  width: 36px;
  height: 0.5px;
  background: #b4b2a9;
  transition: width 0.4s ease;
}
.hero-link:hover { opacity: 1; }
.hero-link:hover::after { width: 56px; }

@media (max-width: 900px) {
  .hero-wrapper { padding: 20px 20px 24px; }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    outline: 0.5px solid #d3d1c7;
  }
  .hero-image {
    border-right: none;
    border-bottom: 0.5px solid #d3d1c7;
    height: 60vw;
    min-height: 280px;
    max-height: 480px;
  }
  .hero-text {
    padding: 56px 32px;
  }
  .hero-title { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-text { padding: 44px 20px; }
  .hero-title { font-size: 1.3rem; }
}

/* ============================================================
   SECTION HEADER（共通）
   ============================================================ */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 56px 40px 44px;
  border-top: 0.5px solid #d3d1c7;
  margin-top: 0;
}

.section-title-en {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: #2c2c2a;
}

.section-title-ja {
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  color: #888780;
  margin-left: 14px;
}

.section-see-all {
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  color: #888780;
  border-bottom: 0.5px solid #d3d1c7;
  padding-bottom: 2px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .section-header { padding: 52px 20px 32px; }
}

/* ============================================================
   CARD GRID — 投稿一覧（3カラム）
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px 8px 0;
  border-bottom: 0.5px solid #d3d1c7;
  margin-bottom: 40px;
  background: #faf9f6;
}

.card {
  background: #faf9f6;
  display: flex;
  flex-direction: column;
  padding: 5px 5px 0;
  border: 0.5px solid #d3d1c7;
}

.card-thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #d3d1c7;
  position: relative;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.card:hover .card-thumb img { transform: scale(1.04); }

.card-body {
  padding: 14px 8px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-cat {
  font-size: 0.57rem;
  letter-spacing: 0.22em;
  color: #888780;
  display: block;
  margin-bottom: 10px;
}

.card-title {
  font-size: 0.86rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #2c2c2a;
  line-height: 1.75;
  margin-bottom: 12px;
  flex: 1;
}

.card-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: #b4b2a9;
}

/* カードなし（テキストのみ、サムネイルなし） */
.card-text-only .card-thumb { display: none; }
.card-text-only .card-body { padding: 28px 24px 32px; }

@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 1px; }
  .card-body { padding: 10px 12px 16px; }
  .card-title { font-size: 0.75rem; }
  .card-cat { font-size: 0.5rem; }
  .card-date { font-size: 0.55rem; }
}

/* ============================================================
   FEATURED BLOCK（はじめに など大きなフィーチャー）
   ============================================================ */
.featured-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin: 0 32px 40px;
  border: 0.5px solid #d3d1c7;
}

.featured-image {
  background: #888780;
  overflow: hidden;
  position: relative;
  border-right: 0.5px solid #d3d1c7;
}
.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-body {
  background: #fff;
  padding: 64px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-label {
  font-size: 0.57rem;
  letter-spacing: 0.28em;
  color: #b4b2a9;
  display: block;
  margin-bottom: 24px;
}

.featured-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.8rem;
  line-height: 1.55;
  letter-spacing: 0.06em;
  color: #2c2c2a;
  margin-bottom: 28px;
}

.featured-desc {
  font-size: 0.79rem;
  line-height: 2.3;
  letter-spacing: 0.08em;
  color: #5f5e5a;
  margin-bottom: 40px;
}

.featured-link {
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  color: #5f5e5a;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.featured-link::after {
  content: '';
  display: block;
  width: 28px;
  height: 0.5px;
  background: #b4b2a9;
  transition: width 0.4s ease;
}
.featured-link:hover::after { width: 44px; }
.featured-link:hover { opacity: 1; }

@media (max-width: 768px) {
  .featured-block { grid-template-columns: 1fr; margin: 0 20px 24px; border: 0.5px solid #d3d1c7; }
  .featured-image { min-height: 56vw; border-right: none; border-bottom: 0.5px solid #d3d1c7; }
  .featured-body { padding: 44px 28px; }
  .featured-title { font-size: 1.4rem; }
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-wrap {
  margin-top: 72px;
  padding-top: 80px;
}

.single-header {
  max-width: 720px;
  margin: 0 auto 56px;
  padding: 0 40px;
}

.single-cat {
  font-size: 0.57rem;
  letter-spacing: 0.24em;
  color: #888780;
  display: block;
  margin-bottom: 20px;
}

.single-title {
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  line-height: 1.7;
  color: #2c2c2a;
  margin-bottom: 20px;
}

.single-meta {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  color: #b4b2a9;
}

.single-eyecatch {
  width: 100%;
  max-height: 560px;
  overflow: hidden;
  margin-bottom: 72px;
}
.single-eyecatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.single-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 40px 100px;
}

.single-content p {
  font-size: 0.93rem;
  line-height: 2.2;
  letter-spacing: 0.06em;
  color: #2c2c2a;
  margin-bottom: 2em;
}

.single-content h2 {
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: #2c2c2a;
  margin: 3em 0 1.2em;
  padding-bottom: 12px;
  border-bottom: 0.5px solid #d3d1c7;
}

.single-content h3 {
  font-size: 0.93rem;
  letter-spacing: 0.1em;
  color: #2c2c2a;
  margin: 2.4em 0 1em;
}

.single-content img {
  max-width: 100%;
  height: auto;
  margin: 2em 0;
}

.single-content blockquote {
  border-left: 1px solid #d3d1c7;
  padding: 0 0 0 24px;
  margin: 2em 0;
  color: #888780;
  font-style: normal;
}

.single-content a {
  color: #5f5e5a;
  border-bottom: 0.5px solid #d3d1c7;
}

@media (max-width: 768px) {
  .single-header { padding: 0 20px; }
  .single-content { padding: 0 20px 72px; }
  .single-title { font-size: 1.1rem; }
}

/* ============================================================
   固定ページ（page.php）
   ============================================================ */
.page-wrap {
  margin-top: 72px;
  padding: 80px 40px 100px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.page-title-main {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  color: #2c2c2a;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 0.5px solid #d3d1c7;
}

.page-content { font-size: 0.93rem; line-height: 2.2; letter-spacing: 0.06em; }
.page-content p { margin-bottom: 2em; }
.page-content h2 { font-size: 1.1rem; margin: 2.8em 0 1em; letter-spacing: 0.1em; }
.page-content a { color: #5f5e5a; border-bottom: 0.5px solid #d3d1c7; }

@media (max-width: 768px) {
  .page-wrap { padding: 60px 20px 72px; }
}

/* ============================================================
   ARCHIVE（カテゴリー・アーカイブ）
   ============================================================ */
.archive-wrap { margin-top: 72px; }

.archive-header {
  padding: 64px 40px 48px;
  border-bottom: 0.5px solid #d3d1c7;
}

.archive-label {
  font-size: 0.57rem;
  letter-spacing: 0.28em;
  color: #b4b2a9;
  display: block;
  margin-bottom: 12px;
}

.archive-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: #2c2c2a;
}

@media (max-width: 768px) {
  .archive-header { padding: 44px 20px 32px; }
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-wrap {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 56px 40px;
}

.pagination-wrap a,
.pagination-wrap span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  color: #888780;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.5px solid transparent;
  transition: border-color 0.3s, color 0.3s;
}
.pagination-wrap a:hover { color: #2c2c2a; border-color: #d3d1c7; opacity: 1; }
.pagination-wrap .current { color: #2c2c2a; border-color: #d3d1c7; }

/* ============================================================
   お問い合わせフォーム
   ============================================================ */
.contact-wrap {
  margin-top: 72px;
  padding: 80px 40px 100px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form label {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  color: #888780;
  margin-bottom: 8px;
  margin-top: 32px;
}
.contact-form label:first-child { margin-top: 0; }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  background: #fff;
  border: none;
  border-bottom: 0.5px solid #d3d1c7;
  padding: 10px 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  color: #2c2c2a;
  outline: none;
  transition: border-color 0.3s;
  border-radius: 0;
}
.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: #888780; }

.contact-form textarea { height: 180px; resize: vertical; margin-top: 4px; }

.contact-form .submit-btn {
  margin-top: 48px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  color: #5f5e5a;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  transition: opacity 0.3s;
}
.contact-form .submit-btn::after {
  content: '';
  display: block;
  width: 36px;
  height: 0.5px;
  background: #b4b2a9;
  transition: width 0.4s ease;
}
.contact-form .submit-btn:hover::after { width: 56px; }

@media (max-width: 768px) {
  .contact-wrap { padding: 60px 20px 72px; }
}

/* ============================================================
   SEARCH FORM
   ============================================================ */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(250, 249, 246, 0.98);
  z-index: 200;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.search-overlay.is-open { display: flex; }

.search-overlay form {
  width: min(560px, 90vw);
  border-bottom: 0.5px solid #d3d1c7;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 12px;
}

.search-overlay input[type="search"] {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: #2c2c2a;
}
.search-overlay input::placeholder { color: #d3d1c7; }

.search-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #888780;
  font-size: 1rem;
  margin-top: 28px;
  letter-spacing: 0.16em;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  transition: color 0.3s;
}
.search-close:hover { color: #2c2c2a; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  border-top: 0.5px solid #d3d1c7;
  padding: 56px 40px 40px;
  background: #faf9f6;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px 48px;
  max-width: 1240px;
  margin: 0 auto 48px;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: #2c2c2a;
  margin-bottom: 12px;
}
.footer-logo span {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.57rem;
  letter-spacing: 0.28em;
  color: #888780;
  margin-top: 4px;
}
.footer-tagline {
  font-size: 0.64rem;
  line-height: 2;
  letter-spacing: 0.1em;
  color: #b4b2a9;
  margin-top: 20px;
}

.footer-col-title {
  font-size: 0.57rem;
  letter-spacing: 0.28em;
  color: #888780;
  display: block;
  margin-bottom: 20px;
}
.footer-col-links li {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #5f5e5a;
  margin-bottom: 12px;
}
.footer-col-links a { color: #5f5e5a; }
.footer-col-links a:hover { color: #2c2c2a; opacity: 1; }

.footer-copy {
  text-align: center;
  font-size: 0.57rem;
  letter-spacing: 0.18em;
  color: #b4b2a9;
  padding-top: 32px;
  border-top: 0.5px solid #d3d1c7;
  max-width: 1240px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  #site-footer { padding: 44px 20px 32px; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.divider {
  border: none;
  border-top: 0.5px solid #d3d1c7;
  margin: 0;
}

/* WordPress アライン */
.aligncenter { display: block; margin: 2em auto; }
.alignleft  { float: left; margin: 0 2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 2em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.64rem; letter-spacing: 0.12em; color: #b4b2a9; margin-top: 6px; }

/* ============================================================
   PAGE TOP BUTTON
   ============================================================ */
#page-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
  background: none;
  border: 0.5px solid #d3d1c7;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #888780;
  font-size: 0.86rem;
}
#page-top.is-visible { opacity: 1; pointer-events: auto; }
#page-top:hover { color: #2c2c2a; border-color: #888780; }

@media (max-width: 480px) {
  #page-top { bottom: 16px; right: 16px; }
}
