/* =====================
   共通スタイル
===================== */

/* 全体 */
body {
  margin: 0;
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  background: #F9F8F5;
  color: #473c34;
}

/* セクション共通余白 */
section {
  margin-block: 4rem;
}

/* 画像共通 */
img {
  max-width: 100%;
  height: auto;
 /*  border-radius: 8px;*/
}

/* ボタン系 */
a.button,
button {
  display: inline-block;
  background: var(--nyuts-green);
  color: #fff;
  padding: 0.6em 1.4em;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

/*a.button:hover,
button:hover {
  background: #70b3b1;
} */

/* SNSアイコン共通 */
.social-icons {
  display: flex;
  align-items: center;
  gap: 0.8em;
  font-size: 1.2rem;
}

/* =====================
   Header / Footer 共通
===================== */
/* 共通 */
header, footer {
  font-family: "Montserrat", "Noto Sans JP", sans-serif !important;
  color: #78654a;
  background-color: #EDF6EE;
}

/* HEADER */
.site-header {
  border-bottom: 3px solid #9AC984;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #f9f8f5;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 0.9;
}

/* =====================
   LOGO Styling
===================== */
.logo {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0;
  margin: 0;
}

.logo a {
  display: flex;
  align-items: flex-start;
  text-decoration: none;
  color: #473c34;
  margin-left:1rem;
}

.logo-icon img {
  height: 70px;
  width: auto;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* Nyuts本体 */
.logo-text {
  display: flex;
    flex-direction: column;
    font-family: "FOT-TsukuBRdGothicStd-B", sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    line-height: 0.1;
    color: #7a6c5a;
    font-weight: 400;
    margin-left: -3rem;
    margin-top: 2.1rem;
}

/* サブキャッチコピー */
.logo-sub {
  display: inline-block;
    font-family: "FOT-TsukuBRdGothicStd-B", "Noto Sans JP", sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    color: #7a6c5a;
    line-height: 1.4;
    margin-top: 0.2rem;
    margin-bottom: 0rem;
    margin-left: 1rem;
}

.logo-sub span:first-child {
  color: #4d9d81;
}

.logo-sub span:last-child {
  color: #4FB8CB;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .logo {
    align-items: center;
    gap: 0.4rem;
  }
  .logo-icon img {
    height: 54px;
  }

  .logo-text {
    font-size: 1.2rem;
    margin-left: -1rem;
    margin-top: 1.5rem;
  }

  .logo-sub {
    line-height: 1.4;
    margin-top: 0.3rem;
    display: flex;
    flex-direction: unset;
  }
}

@media (max-width: 480px) {
  .logo {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .logo-text {
    font-size: 1rem;
    align-items: flex-start;
    line-height: 0.5;
  }

  .logo-sub {
    font-size: 0.8rem;
    margin: 0.2rem 0 0;
  }
}

/* =====================
   Navigation
===================== */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0rem;
}

.main-nav a {
  text-decoration: none;
  color: #78654a;
  font-weight: 400;
  transition: 0.2s ease;
}

.main-nav a:hover {
  color: #70b3b1;
}

/* サブナビ */
.sub-nav {
  background: #EDF6EE;
  border-top: 1px solid #e4e1dc;
  border-bottom: 1px solid #e4e1dc;
  justify-content: flex-end;
}

.sub-nav ul {
  list-style: none;
  display: flex;
  justify-content: right;
  gap: 1.5rem;
  margin: 0;
  padding: 0.6rem 0;
  margin-right: 3rem;
}

.sub-nav a {
  color: #5b4d40;
  font-size: 0.95rem;
  text-decoration: none;
  transition: 0.2s;
}

.sub-nav a:hover {
  color: #FFC509;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-primary {
  background-color: #9AC984;
  color: #fff;
  padding: 0.6em 1.4em;
  border-radius: 50px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-primary:hover {
  background-color: #70b3b1;
}

.sns-icons a {
  color: #4d9d81;
  font-size: 1.3rem;
  transition: 0.3s;
}

.sns-icons a:hover {
  color: #FFC509;
}

/* ===============================
   モバイルメニュー
=============================== */

/* モバイルナビボタン - 右上固定 */
.mobile-nav {
  position: fixed;
  display: block;
  top: 3rem;
  right: 0.2rem;
  z-index: 4000;
}

.menu-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle img {
  width: 64px;
  height: auto;
  display: block;
}

/* 展開メニュー全体 */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #F9F8F5;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 3rem 0;
  overflow-y: auto;
  z-index: 2999;
  animation: fadeIn 0.3s ease forwards;
}

.mobile-menu.open {
  display: flex;
}

/* 閉じるボタン - 右上固定 */
.menu-close {
    position: fixed;
    right: 0rem;
    top: 1.7rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 3000;
    -webkit-tap-highlight-color: transparent;
}

.menu-close img,.menu-open img {
  width: 64px;
  height: auto;
  border-style: none;
  background: none !important;
}

button.menu-close {
    background: none;
}

button.menu-open {
  background: none;
}


/* メニュー中身 */
.mobile-menu-inner {
  width: 100%;
  max-width: 100%;
  padding: 0 2rem;
  text-align: left;
}

/* メインメニュー - 2カラム左揃え */
.mobile-menu-main {
  width: 100%;
  margin-top: 4.5rem;
  border-top: 3px solid #9AC984;
}

.mobile-menu-main ul {
    list-style: none;
    padding: 0rem;
    margin: 4rem 3rem;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
    justify-items: start;
}

.mobile-menu-main a {
  color: #473c34;
  font-size: 1.2rem;
  text-decoration: none;
  line-height: 3.4;
  transition: color 0.3s;
  text-align: left;

}

.mobile-menu-main a:hover {
  color: #4d9d81;
}

/* 区切り罫線 */
.menu-divider {
  width: 100%;
  max-width: none;
  margin: 2rem 0;
}

.menu-divider img {
  width: 100%;
  height: auto;
  display: block;
}

/* ショップメニュー - 2カラム左揃え */
.mobile-menu-shop {
  width: 100%;
}

.shop-logo {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 2rem;
}

.shop-logo img {
  width: 90px;
  height: auto;
}

.shop-logo span {
  color: #4fb8cb;
  font-weight: 600;
  font-size: 1rem;
}

.mobile-menu-shop ul {
  list-style: none;
  margin: 1rem;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  justify-items: start;
}

.mobile-menu-shop a {
  color: #473c34;
  font-size: 1.2rem;
  text-decoration: none;
  line-height: 3.4;
  transition: color 0.3s;
  text-align: left;
}

.mobile-menu-shop a:hover {
  color: #4d9d81;
}

/* アクション部分 - 横並び中央揃え */
.mobile-actions {
  margin-top: 2rem;
  text-align: center;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.mobile-actions .btn-primary {
  display: inline-block;
  background: #9AC984;
  color: #fff;
  border-radius: 50px;
  padding: 0.7em 1.6em;
  text-decoration: none;
  margin: 0;
}

.mobile-actions .sns-icons {
  display: flex;
  gap: 1.2rem;
  font-size: 1.5rem;
  margin: 0;
}

.mobile-actions .sns-icons a {
  color: #4d9d81;
  transition: 0.3s;
}

.mobile-actions .sns-icons a:hover {
  color: #9AC984;
}

/* フェードイン */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .main-nav,
  .sub-nav,
  .header-actions {
    display: none !important;
  }

  body.menu-open {
    overflow: hidden;
  }

}

/* タブレット: コンテンツ半分幅 */
@media (min-width: 481px) and (max-width: 1024px) {
  .mobile-menu-inner {
    max-width: 80%;
    padding: 0 3rem;
    margin-top: 1rem;
  }

      .mobile-nav{
    top: 3rem;
}
}

/* スマホ: 全幅だが左右に余白 */
@media (max-width: 480px) {
  .mobile-menu-inner {
    max-width: 100%;
    padding: 0 2rem;
    margin-top: 1rem;
  }
     .mobile-nav{
    top: 3rem;
}
}

@media (min-width: 1025px) {
  .mobile-nav {
    display: none !important;
  }
  .mobile-menu {
    display: none !important;
  }
  .main-nav,
  .sub-nav,
  .header-actions {
    display: flex !important;
  }
}

/* =====================
   Footer Section
===================== */
.site-footer {
  color: #473c34;
  background: #f9f8f5;
  padding: 4rem 1.5rem 2.5rem;
  border-top: 3px solid #9AC984;
  font-family: "Noto Sans JP", sans-serif;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}


.footer-left,
.footer-right {
  flex: 1 1 45%;
  min-width: 320px;
}

/* --- 左右タイトル統一 --- */
.footer-inner section h3 {
  font-size: 1.1rem;
  color: #4d9d81;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-inner section h3 i {
  color: #9ac984;
  font-size: 1.1rem;
}

/* --- 本文テキスト --- */
.footer-inner p,
.footer-inner li {
  color: #78654A;
  line-height: 1.8;
  font-size: 0.95rem;
}

/* --- 左カラム --- */
.footer-about {
    margin-top: 0rem;
}

section.footer-nyuts {
    margin: 0;
}

/* =====================
   Footer Recruit（右カラム）
===================== */
.footer-recruit {
  margin: 0!important; /* 左右を揃える */
}

.footer-recruit h3 {
  color: #4d9d81;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

/* リード部分：カード調 */
.footer-recruit .recruit-lead {
  background: linear-gradient(135deg, #edf6ee 0%, #e6f2e9 100%);
  border: 1px solid #d8e7db;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.4rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.footer-recruit .recruit-lead p {
  margin: 0;
  color: #1D645F;
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-recruit .recruit-lead {
  background: #edf6ee;
  border-left: 4px solid #9ac984;
  border-right: 4px solid #9ac984;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  color: #473c34;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- リンクリスト（円ボタン化＋ホバーアニメーション） --- */
.footer-recruit ul {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.footer-recruit li {
  position: relative;
}

.footer-recruit li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 123px;
  height: 120px;
  border-radius: 50%;
  background: #edf6ee;
  color: #4d9d81;
  text-decoration: none;
  font-size: 1.8rem;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

/* テキスト */
.footer-recruit li a span {
  font-size: 0.8rem;
  color: #4d9d81;           /* 通常時もちゃんと見える色 */
  opacity: 1;               /* 初期から見えるように変更 */
  transform: translateY(0); /* 初期位置で固定 */
  transition: all 0.4s ease;
  margin-top: 0.4rem;
  text-align: center;
}

/* ホバー時のアニメーション（くるっと浮く） */
.footer-recruit li a:hover {
  background: #9ac984;
  color: #F9F8F5;
  transform: translateY(-6px) scale(1.05) rotateX(25deg);
  opacity: 1;
}

/* テキスト出現 */
.footer-recruit li a:hover span {
  opacity: 1;
  transform: translateY(0);
  color: #F9F8F5;
}

/* アイコン上の矢印演出 */
.footer-recruit li a::after {
  content: "\f178"; /* fa-arrow-right */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  bottom: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0);
  transition: all 0.35s ease;
}

.footer-recruit li a:hover::after {
  color: rgba(255,255,255,0.9);
  transform: translate(2px, -2px);
}


/* =====================
   Copyright
===================== */
.copyright {
  text-align: center;
  border-top: 1px solid #dadada;
  margin-top: 3rem;
  padding-top: 1rem;
  color: #777;
  font-size: 0.8rem;
  width: 100%;
}


/* 🌱 小さなアイコン装飾（左右にゆらゆら） */
.copyright::before,
.copyright::after {
  content: "";
  position: absolute;
  top: -0.8rem;
  width: 36px;
  height: 36px;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.8;
  animation: floatIcon 5s ease-in-out infinite;
}
.copyright::before {
  left: 10%;
  background-image: url("../img/icon-leaf-left.svg");
  animation-delay: 0.5s;
}
.copyright::after {
  right: 10%;
  background-image: url("../img/icon-leaf-right.svg");
  animation-delay: 1.8s;
}

/* ゆるやかな浮遊アニメーション */
@keyframes floatIcon {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50% { transform: translateY(-6px); opacity: 1; }
}

/* Nyuts Project名をちょっと強調 */
.copyright strong {
  color: #4d9d81;
  font-weight: 600;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: 2.5rem;
  }
  .footer-left, .footer-right {
    flex: 1 1 100%;
  }
}


/* レスポンシブ */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: 2.5rem;
  }
  .footer-left, .footer-right {
    flex: 1 1 100%;
  }
}


/* --- Base Colors & Typography --- */
body.single-farmers,
body.single-hub_store {
  background-color: #F9F8F5;
  color: #78654a;
  font-family: "Montserrat", "Atkinson Hyperlegible Mono", sans-serif;
  line-height: 1.8;
}

.site-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.page-header, .post-header {
  text-align: center;
  margin-bottom: 2rem;
}

.page-title, .post-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: .5rem;
}

.page-subtitle {
  color: #666;
  font-size: 1rem;
}

.content-wrapper {
  line-height: 1.8;
  font-size: 1rem;
}

.post-list {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.post-item {
  border-bottom: 1px solid #ddd;
  padding-bottom: 1.5rem;
}

.thumb img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.pagination {
  text-align: center;
  margin-top: 2rem;
}

/* =======================================
   Nyuts Base Style
   ======================================= */
body {
  font-family: "Montserrat", sans-serif;
  color: #78654a;
  background: #F9F8F5;
  line-height: 1.8;
}

main.site-main {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 20px;
}

/* --------------------------
  HEROセクション（TOP）
-------------------------- */
.hero-section {
  text-align: center;
  padding: 120px 20px;
  background: linear-gradient(135deg, #f9f9f9, #fff);
}
.hero-title {
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.hero-desc {
  font-size: 1.1rem;
  color: #666;
  margin-top: 10px;
}

/* --------------------------
  ページ共通
-------------------------- */
.page-header {
  text-align: center;
  margin-bottom: 60px;
}
.page-title {
  font-size: 2rem;
  font-weight: 600;
  position: relative;
  display: inline-block;
}
.page-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #000;
  margin: 16px auto 0;
}
.page-desc {
  color: #777;
  font-size: 0.95rem;
  margin-top: 10px;
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

/* --------------------------
  投稿カード（一覧）
-------------------------- */
.post-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.post-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform .2s ease;
  background: #fff;
}
.post-card:hover {
  transform: translateY(-4px);
}
.post-card .thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.post-card .post-info {
  padding: 1rem;
}
.post-card .post-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: .5rem;
}
.post-card .post-date {
  font-size: .85rem;
  color: #777;
}

/* --------------------------
  投稿詳細
-------------------------- */
.post-date {
  color: #999;
  font-size: .9rem;
  display: block;
  margin-bottom: 2rem;
}
.post-content img {
  max-width: 100%;
  border-radius: 8px;
}
.post-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  font-size: 0.9rem;
  color: #666;
}

/* --------------------------
  ページ内容
-------------------------- */
.page-content img {
  max-width: 100%;
  border-radius: 8px;
}

/* --------------------------
  ページネーション
-------------------------- */
.pagination {
  text-align: center;
  margin-top: 60px;
}

@media (max-width: 480px) {
  main.site-main {
    padding: 1rem 0;
  }
}