/* =================================================
 * GoodFor Media - こめと、くらし。
 * Style for /media/ section (independent visual brand)
 * v0.1.0
 * ================================================= */

/* Reset (media scope only) */
.gfm-root,
.gfm-root * {
  margin: 0; padding: 0; box-sizing: border-box;
}

.gfm-root {
  --bg: #FAF7F2;
  --bg-warm: #F2EDE4;
  --bg-card: #FFFFFF;
  --text: #2B2520;
  --text-sub: #6B5D52;
  --text-light: #9A8E82;
  --accent: #A67C52;
  --accent-deep: #7A5A38;
  --sage: #8B9A7D;
  --border: #E8E2D8;
  --price: #C8553D;

  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

.gfm-root .serif { font-family: 'Noto Serif JP', serif; }
.gfm-root .latin { font-family: 'Cormorant Garamond', serif; font-style: italic; }
.gfm-root a { color: inherit; text-decoration: none; }
.gfm-root img { display: block; max-width: 100%; height: auto; }

/* ===== Top Bar ===== */
.gfm-topbar {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
  font-size: 11px;
  text-align: center;
  color: var(--text-sub);
  letter-spacing: 0.08em;
}

/* ===== Header ===== */
.gfm-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 20px 0 16px;
  text-align: center;
}
.gfm-logo {
  font-family: 'Noto Serif JP', serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text);
  margin-bottom: 4px;
  display: block;
}
.gfm-logo-en {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.2em;
}
.gfm-nav {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 36px;
  font-size: 13px;
  letter-spacing: 0.1em;
  flex-wrap: wrap;
}
.gfm-nav a {
  color: var(--text);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.gfm-nav a:hover { border-bottom-color: var(--accent); }
.gfm-nav .en {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 10px;
  color: var(--text-light);
  text-align: center;
  margin-top: 2px;
}

/* Containers */
.gfm-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.gfm-narrow    { max-width: 980px;  margin: 0 auto; padding: 0 24px; }
.gfm-article-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ===== Hero ===== */
.gfm-hero { padding: 56px 0 72px; background: var(--bg); }
.gfm-hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
}
.gfm-hero-img { aspect-ratio: 4/3; overflow: hidden; background: #ddd; }
.gfm-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.gfm-hero-text .gfm-cat {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.gfm-hero-text h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.gfm-hero-text .gfm-lead {
  color: var(--text-sub);
  font-size: 14px;
  margin-bottom: 28px;
  line-height: 1.9;
}
.gfm-meta {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.1em;
}
.gfm-meta .dot { margin: 0 8px; }

/* ===== Section ===== */
.gfm-section { padding: 64px 0; }
.gfm-section-head { text-align: center; margin-bottom: 48px; }
.gfm-section-head .en {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--accent);
  font-size: 22px;
  margin-bottom: 8px;
}
.gfm-section-head h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.15em;
}
.gfm-section-head p {
  color: var(--text-sub);
  font-size: 13px;
  margin-top: 12px;
}

/* ===== Article Grid ===== */
.gfm-articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
.gfm-article-card .img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 16px;
  background: #ddd;
}
.gfm-article-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.gfm-article-card:hover img { transform: scale(1.03); }
.gfm-article-card .cat {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.gfm-article-card h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 10px;
}
.gfm-article-card .excerpt {
  color: var(--text-sub);
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 12px;
}

/* ===== Feature Banner ===== */
.gfm-feature { background: var(--bg-warm); padding: 80px 0; }
.gfm-feature-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.gfm-feature-inner .img-wrap { aspect-ratio: 5/4; overflow: hidden; background: #ccc; }
.gfm-feature-tag {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}
.gfm-feature h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 24px;
}
.gfm-feature p {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 32px;
}

/* Buttons */
.gfm-btn {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.2em;
  transition: all 0.2s;
  cursor: pointer;
  font-family: inherit;
}
.gfm-btn:hover { background: var(--text); color: var(--bg); }
.gfm-btn-filled { background: var(--text); color: var(--bg); }
.gfm-btn-filled:hover { background: transparent; color: var(--text); }

/* ===== Recipes (4 col) ===== */
.gfm-recipes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.gfm-recipe-card .img-wrap { aspect-ratio: 1/1; overflow: hidden; margin-bottom: 12px; }
.gfm-recipe-card img { width: 100%; height: 100%; object-fit: cover; }
.gfm-recipe-card .time {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.gfm-recipe-card h4 {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  font-weight: 500;
  margin: 4px 0;
  line-height: 1.5;
}
.gfm-recipe-card .author { font-size: 11px; color: var(--text-light); }

/* ===== Column ===== */
.gfm-column-section { background: var(--bg-warm); padding: 80px 0; }
.gfm-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.gfm-column-card {
  background: var(--bg-card);
  padding: 36px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.gfm-column-card .avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--border);
}
.gfm-column-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.gfm-column-card .label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.15em;
  margin-bottom: 6px;
}
.gfm-column-card h4 {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 10px;
}
.gfm-column-card .excerpt { color: var(--text-sub); font-size: 12px; line-height: 1.9; }
.gfm-column-card .author { font-size: 11px; color: var(--text-light); margin-top: 10px; }

/* ===== Newsletter ===== */
.gfm-newsletter { background: var(--bg); padding: 96px 0; text-align: center; }
.gfm-newsletter .en {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--accent);
  font-size: 24px;
  margin-bottom: 12px;
}
.gfm-newsletter h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 16px;
}
.gfm-newsletter p {
  color: var(--text-sub);
  font-size: 13px;
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.9;
}
.gfm-newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid var(--text);
}
.gfm-newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}
.gfm-newsletter-form button {
  padding: 14px 28px;
  background: var(--text);
  color: var(--bg);
  border: none;
  font-size: 12px;
  letter-spacing: 0.2em;
  cursor: pointer;
  font-family: inherit;
}

/* ===== Footer ===== */
.gfm-footer { background: var(--text); color: var(--bg); padding: 64px 0 32px; }
.gfm-footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.gfm-footer .gfm-logo { color: var(--bg); margin-bottom: 12px; }
.gfm-footer .gfm-logo-en { color: rgba(250,247,242,0.5); }
.gfm-footer h5 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  margin-bottom: 16px;
  color: rgba(250,247,242,0.7);
  letter-spacing: 0.15em;
}
.gfm-footer ul { list-style: none; }
.gfm-footer ul li { font-size: 12px; margin-bottom: 10px; color: rgba(250,247,242,0.8); }
.gfm-footer ul li a:hover { color: var(--bg); }
.gfm-footer-bottom {
  border-top: 1px solid rgba(250,247,242,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(250,247,242,0.5);
}
.gfm-footer-desc {
  font-size: 12px;
  color: rgba(250,247,242,0.6);
  line-height: 1.9;
  margin-top: 12px;
  max-width: 320px;
}

/* ===== Single article ===== */
.gfm-single-hero { padding: 56px 0 32px; text-align: center; }
.gfm-single-hero .gfm-cat {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.2em;
  margin-bottom: 18px;
}
.gfm-single-hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.gfm-single-thumb { margin: 32px 0 48px; }
.gfm-single-thumb img { width: 100%; height: auto; max-height: 540px; object-fit: cover; }
.gfm-content { font-size: 15px; line-height: 2.0; color: var(--text); }
.gfm-content h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px; font-weight: 500;
  margin: 48px 0 18px; line-height: 1.5;
}
.gfm-content h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px; font-weight: 500;
  margin: 36px 0 14px;
}
.gfm-content p { margin: 16px 0; }
.gfm-content img { margin: 24px 0; }
.gfm-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 24px;
  margin: 28px 0;
  color: var(--text-sub);
  font-family: 'Noto Serif JP', serif;
  font-style: italic;
}
.gfm-content ul, .gfm-content ol { margin: 16px 0 16px 24px; }
.gfm-content li { margin: 8px 0; }

/* ===== Archive / Category ===== */
.gfm-archive-header {
  text-align: center;
  padding: 64px 0 32px;
  background: var(--bg);
}
.gfm-archive-header .en {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--accent);
  font-size: 24px;
  margin-bottom: 10px;
}
.gfm-archive-header h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.15em;
}
.gfm-pagination {
  text-align: center;
  margin: 48px 0 64px;
  font-size: 13px;
  letter-spacing: 0.1em;
}
.gfm-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 4px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}
.gfm-pagination .current {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ===== Empty state ===== */
.gfm-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-sub);
}
.gfm-empty h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .gfm-hero-inner, .gfm-feature-inner { grid-template-columns: 1fr; gap: 32px; }
  .gfm-articles, .gfm-recipes { grid-template-columns: repeat(2, 1fr); }
  .gfm-columns { grid-template-columns: 1fr; }
  .gfm-footer-inner { grid-template-columns: 1fr 1fr; }
  .gfm-nav { gap: 18px; padding: 0 16px; }
  .gfm-hero-text h1 { font-size: 24px; }
  .gfm-feature h2 { font-size: 22px; }
  .gfm-single-hero h1 { font-size: 22px; }
}
@media (max-width: 560px) {
  .gfm-articles, .gfm-recipes { grid-template-columns: 1fr 1fr; gap: 20px; }
  .gfm-footer-inner { grid-template-columns: 1fr; }
}
