/*
Theme Name: Cocoon Child
Template:   cocoon-master
Version:    1.1.3
*/

/* ════════════════════════════════════════════
   美食ログ カスタムデザイン
   Black / Gold / Ivory — Cormorant + Josefin
   ════════════════════════════════════════════ */

:root {
  --bg:        #0e0e0e;
  --bg-raised: #161616;
  --bg-card:   #1a1a1a;
  --gold:      #c9a84c;
  --gold-dim:  #8a6d28;
  --rule:      rgba(201,168,76,0.13);
  --rule-mid:  rgba(201,168,76,0.24);
  --text:      #e8e4dc;
  --text-mid:  #9a9488;
  --text-dim:  #5e5a52;
}

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

.gm-body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14px;
  line-height: 1.7;
}
.gm-body a { text-decoration: none; color: var(--text); }
.gm-body a:hover { color: var(--gold); }

.gm-header {
  border-bottom: 1px solid var(--rule-mid);
  padding: 0 2.5rem;
  background: var(--bg);
}
.gm-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0 0.4rem;
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  border-bottom: 1px solid var(--rule);
}
.gm-masthead {
  text-align: center;
  padding: 0.7rem 0 0.9rem;
  position: relative;
}
.gm-masthead::before, .gm-masthead::after {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  margin: 4px 0;
}
.gm-masthead a { color: inherit; text-decoration: none; }
.gm-site-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
  padding-right: 0.55em;
  margin: 0;
  text-shadow: 0 0 50px rgba(201,168,76,0.18);
}
.gm-site-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.07em;
  margin: 4px 0 0;
}
.gm-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.65rem 0;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-top: 1px solid var(--rule);
  overflow-x: auto;
  scrollbar-width: none;
}
.gm-nav::-webkit-scrollbar { display: none; }
.gm-nav a {
  flex-shrink: 0;
  color: var(--text-mid);
  padding: 0 1rem;
  position: relative;
  white-space: nowrap;
}
.gm-nav a:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  height: 10px; width: 1px;
  background: var(--rule-mid);
}
.gm-nav a:hover { color: var(--gold); }

.gm-search-section {
  background: var(--bg-raised);
  border-bottom: 1px solid var(--rule);
  padding: 0.9rem 2.5rem;
}
.gm-search-inner {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
.gm-search-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.gm-field-label {
  font-size: 7px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.gm-search-inner select,
.gm-search-inner input[type="text"] {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule-mid);
  color: var(--text);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 0.35rem 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
}
.gm-search-inner select option { background: #1a1a1a; color: var(--text); }
.gm-search-inner input::placeholder { color: var(--text-dim); }
.gm-search-inner select:focus,
.gm-search-inner input:focus { border-bottom-color: var(--gold); }
.gm-search-btn {
  background: var(--gold);
  border: none;
  color: #0e0e0e;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 8px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  flex-shrink: 0;
  align-self: flex-end;
}
.gm-search-btn:hover { background: #d4af37; }

.gm-chip-strip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 2.5rem;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: wrap;
}
.gm-chip-strip::-webkit-scrollbar { display: none; }
.gm-chip {
  flex-shrink: 0;
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--rule-mid);
  padding: 0.25rem 0.7rem;
  color: var(--text-mid);
  background: transparent;
  white-space: nowrap;
  cursor: pointer;
}
.gm-chip:hover { border-color: var(--gold); color: var(--gold); }
.gm-chip.active { background: var(--gold); color: #0e0e0e; border-color: var(--gold); }
.gm-chip-sep { color: var(--rule-mid); margin: 0 0.2rem; }

.gm-main { padding: 0 2.5rem; }

.gm-feature-grid {
  display: grid;
  grid-template-columns: 1.15fr 1px 1fr 1px 1fr;
  border-bottom: 1px solid var(--rule);
  margin-top: 1.6rem;
}
.gm-col-divider { background: var(--rule); }
.gm-feature-col { padding: 0 1.6rem 1.6rem; }
.gm-feature-col:first-child { padding-left: 0; }
.gm-feature-col:last-child  { padding-right: 0; }
.gm-col-header {
  font-size: 7px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.gm-hero-link { display: block; color: inherit; text-decoration: none; }
.gm-hero-img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
  margin-bottom: 0.85rem;
}
.gm-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: brightness(0.75) contrast(1.05);
  transition: filter 0.3s;
}
.gm-hero-link:hover .gm-hero-img img { filter: brightness(0.85) contrast(1.05); }
.gm-hero-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,14,14,0.55) 0%, transparent 55%);
}
.gm-area-badge {
  position: absolute;
  top: 0.65rem; left: 0.65rem;
  font-size: 7px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.32);
  color: var(--gold);
  padding: 2px 7px;
  z-index: 2;
}
.gm-date-label {
  font-size: 7px;
  letter-spacing: 0.18em;
  color: var(--gold-dim);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}
.gm-article-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 0.4rem;
}
.gm-article-meta {
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 0.6rem;
}
.gm-article-excerpt {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.7;
}

.gm-list { display: flex; flex-direction: column; }
.gm-list-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.7rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--rule);
  color: inherit;
  text-decoration: none;
}
.gm-list-item:first-child { padding-top: 0; }
.gm-list-item:last-child  { border-bottom: none; }
.gm-list-item:hover .gm-list-title { color: var(--gold); }
.gm-thumb {
  width: 64px; height: 64px;
  overflow: hidden;
  background: var(--bg-card);
  flex-shrink: 0;
}
.gm-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: brightness(0.75) contrast(1.05);
}
.gm-list-area {
  font-size: 7px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}
.gm-list-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 0.2rem;
  transition: color 0.15s;
}
.gm-list-meta {
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.gm-main-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 2rem;
}
.gm-content-col { min-width: 0; }

.gm-section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.6rem 0 1.2rem;
}
.gm-section-divider span {
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.gm-section-divider::before, .gm-section-divider::after {
  content: ''; flex: 1;
  height: 1px; background: var(--rule);
}

.gm-result-label {
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--rule);
  padding: 0.7rem 0;
  margin: 1.2rem 0;
}
.gm-result-label span { color: var(--text); }

.gm-no-posts {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--text-mid);
  padding: 2rem 0;
  grid-column: 1 / -1;
}

.gm-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-bottom: 2rem;
}
.gm-card {
  background: var(--bg-card);
  display: block;
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.gm-card:hover { border-bottom-color: var(--gold); }
.gm-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-raised);
}
.gm-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: brightness(0.75) contrast(1.05);
  transition: filter 0.3s;
}
.gm-card:hover .gm-card-img img { filter: brightness(0.88) contrast(1.05); }
.gm-card-body { padding: 0.55rem 0.6rem 0.7rem; }
.gm-card-area {
  font-size: 7px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}
.gm-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.gm-card-meta {
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.gm-pagination { margin-bottom: 2.5rem; }
.gm-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  list-style: none;
  padding: 0; margin: 0;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.gm-pagination .page-numbers li { display: inline; }
.gm-pagination .page-numbers li a,
.gm-pagination .page-numbers li span {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  font-size: 8px;
  letter-spacing: 0.12em;
  border: 1px solid var(--rule-mid);
  color: var(--text-mid);
  background: var(--bg-card);
}
.gm-pagination .page-numbers li a:hover { border-color: var(--gold); color: var(--gold); }
.gm-pagination .page-numbers li span.current {
  background: var(--gold);
  color: #0e0e0e;
  border-color: var(--gold);
}

.gm-sidebar { padding-top: 1.6rem; }
.gm-sidebar-section { margin-bottom: 1.6rem; }
.gm-sidebar-head {
  font-size: 7px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.5rem;
  margin-bottom: 0.7rem;
}
.gm-profile-box {
  border: 1px solid var(--rule-mid);
  padding: 0.85rem;
  background: var(--bg-raised);
}
.gm-profile-avatar { margin-bottom: 0.5rem; }
.gm-profile-avatar img { border-radius: 50%; width: 48px; height: 48px; object-fit: cover; }
.gm-profile-name {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.gm-profile-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.8rem;
  color: var(--text-mid);
  line-height: 1.65;
}
.gm-sidebar-list { display: flex; flex-direction: column; }
.gm-sidebar-item {
  font-size: 9px;
  letter-spacing: 0.07em;
  padding: 0.38rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
}
.gm-sidebar-item:last-child { border-bottom: none; }
.gm-sidebar-item:hover { color: var(--gold); }
.gm-arrow { color: var(--rule-mid); font-size: 0.75rem; }
.gm-genre-tags { display: flex; flex-wrap: wrap; gap: 0.28rem; }
.gm-genre-tag {
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--rule-mid);
  padding: 0.22rem 0.55rem;
  color: var(--text-mid);
  text-decoration: none;
}
.gm-genre-tag:hover { border-color: var(--gold); color: var(--gold); }
.gm-recent-item {
  display: block;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.gm-recent-item:last-child { border-bottom: none; }
.gm-recent-date {
  font-size: 7px;
  color: var(--gold-dim);
  letter-spacing: 0.12em;
  margin-bottom: 1px;
}
.gm-recent-title {
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1.3;
}
.gm-recent-item:hover .gm-recent-title { color: var(--gold); }

.gm-footer {
  border-top: 1px solid var(--rule-mid);
  padding: 1.1rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--bg-raised);
}
.gm-footer a { color: var(--text-dim); }
.gm-footer a:hover { color: var(--gold); }
.gm-footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.35em;
  color: var(--gold);
}

@media (max-width: 767px) {
  .gm-header { padding: 0 14px; }
  .gm-header-top { display: none; }
  .gm-site-title { font-size: 2rem; letter-spacing: 0.4em; }
  .gm-nav { justify-content: flex-start; }
  .gm-nav a { padding: 0 10px; font-size: 8px; }
  .gm-search-section { padding: 10px 14px; }
  .gm-search-inner { flex-wrap: wrap; gap: 8px; }
  .gm-search-field { flex: 1 1 calc(50% - 4px); min-width: 120px; }
  .gm-search-btn { width: 100%; padding: 0.55rem; text-align: center; }
  .gm-chip-strip { padding: 7px 14px; flex-wrap: nowrap; }
  .gm-main { padding: 0 14px; }
  .gm-feature-grid { display: none; }
  .gm-main-layout { grid-template-columns: 1fr; gap: 0; }
  .gm-card-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gm-card-title { font-size: 0.82rem; }
  .gm-card-area  { font-size: 6.5px; }
  .gm-sidebar { padding-top: 0; border-top: 1px solid var(--rule); margin-top: 1rem; }
  .gm-sidebar-section { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
  .gm-sidebar-section:last-child { border-bottom: none; }
  .gm-genre-tags { gap: 0.25rem; }
  .gm-footer { flex-direction: column; gap: 0.4rem; text-align: center; padding: 1rem 14px; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .gm-feature-grid { grid-template-columns: 1fr 1px 1fr; }
  .gm-feature-col:last-child { display: none; }
  .gm-col-divider:last-of-type { display: none; }
  .gm-card-grid { grid-template-columns: repeat(3, 1fr); }
  .gm-main-layout { grid-template-columns: 1fr 180px; }
}

/* ════════════════════════════════
   追加修正: 2026-04
   1. エリア選択リストボックス化
   2. ページネーション横並び修正
   3. スマホタイトル2段表示
   ════════════════════════════════ */

/* ── 1. エリア選択リストボックス ── */
.gm-area-listbox-wrap {
  position: relative;
}
.gm-area-listbox {
  background: var(--bg-raised);
  border: 1px solid var(--rule-mid);
  color: var(--text);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.06em;
  width: 100%;
  height: 130px;
  padding: 4px 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) transparent;
}
.gm-area-listbox option {
  background: var(--bg-raised);
  color: var(--text);
  padding: 3px 8px;
}
.gm-area-listbox optgroup {
  color: var(--gold-dim);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 6px 2px;
}
.gm-area-listbox option:checked,
.gm-area-listbox option:hover {
  background: var(--gold);
  color: #0e0e0e;
}

/* ── 2. ページネーション横並び ── */
.gm-pagination { margin-bottom: 2.5rem; }
.gm-pagination ul.page-numbers {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 0; margin: 0;
  gap: 0.4rem;
}
.gm-pagination ul.page-numbers li {
  display: inline-flex !important;
  flex-shrink: 0;
}
.gm-pagination ul.page-numbers li a,
.gm-pagination ul.page-numbers li span {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  font-size: 8px;
  letter-spacing: 0.12em;
  border: 1px solid var(--rule-mid);
  color: var(--text-mid);
  background: var(--bg-card);
  white-space: nowrap;
}
.gm-pagination ul.page-numbers li a:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.gm-pagination ul.page-numbers li span.current {
  background: var(--gold);
  color: #0e0e0e;
  border-color: var(--gold);
}

/* ── 3. スマホタイトル2段表示 ── */
@media (max-width: 767px) {
  .gm-site-title {
    font-size: 1.6rem !important;
    letter-spacing: 0.3em !important;
    line-height: 1.3 !important;
    word-break: keep-all;
  }
  .gm-title-line {
    display: block;
  }
}
@media (min-width: 768px) {
  .gm-title-line {
    display: inline;
  }
}

/* ── サイドバー エリアリストボックス ── */
.gm-sidebar-area-select {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--rule-mid);
  color: var(--text);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 0.06em;
  padding: 2px 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) var(--bg-raised);
}
.gm-sidebar-area-select option {
  background: var(--bg-raised);
  color: var(--text);
  padding: 3px 8px;
  line-height: 1.8;
}
.gm-sidebar-area-select option:checked,
.gm-sidebar-area-select option:hover {
  background: var(--gold);
  color: #0e0e0e;
}
.gm-sidebar-area-select::-webkit-scrollbar {
  width: 4px;
}
.gm-sidebar-area-select::-webkit-scrollbar-thumb {
  background: var(--gold-dim);
  border-radius: 2px;
}

/* ── ページネーション横並び確定修正 ── */
.gm-pagination ul.page-numbers {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  width: auto !important;
  height: auto !important;
  min-width: 100% !important;
  gap: 0.4rem !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  align-items: center !important;
}
.gm-pagination ul.page-numbers > li {
  display: inline-flex !important;
  width: auto !important;
  height: auto !important;
  flex-shrink: 0 !important;
}
.gm-pagination ul.page-numbers > li > a,
.gm-pagination ul.page-numbers > li > span {
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  min-width: 32px !important;
  padding: 0.35rem 0.8rem !important;
  font-size: 8px !important;
  letter-spacing: 0.12em !important;
  line-height: 1.5 !important;
  border: 1px solid var(--rule-mid) !important;
  color: var(--text-mid) !important;
  background: var(--bg-card) !important;
  white-space: nowrap !important;
  text-align: center !important;
  box-sizing: border-box !important;
}
.gm-pagination ul.page-numbers > li > a:hover {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}
.gm-pagination ul.page-numbers > li > span.current {
  background: var(--gold) !important;
  color: #0e0e0e !important;
  border-color: var(--gold) !important;
}
