@charset "UTF-8";

body {
    background-color: #f0f8ff;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}
.container {
    max-width: 1080px;
    margin: 0 auto;
}
header {
    background-color: #2e8b57;
    color: white;
    padding: 1rem;
    text-align: center;
}
.site-header a,
.site-header a:visited {
  color: #f8f8f8;     /* 明るい色で固定 */
  text-decoration: none;
}

.site-header a:hover {
  color: #ffffff;     /* ホバー時はさらに白く */
  text-decoration: underline;
}
/*ここまでヘッダー*/





main {
    max-width: 1080px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1 {
    margin: 0;
}

h2 {
    border-left: 5px solid #2e8b57;
    padding-left: 10px;
    color: #2e8b57;
}

.plant-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

ul {
    padding-left: 20px;
}


.amazon-link::after {
  content: " 🛒"; /* お好みの絵文字に。 📦 や 🔗 でもOK */
  font-size: 0.9em;
  text-decoration: none; /* アイコンには下線を引かない */
  display: inline-block;
}


footer {
    text-align: center;
    padding: 1rem;
    background-color: #2e8b57;
    color: white;
    margin-top: 20px;
}

.nav-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    text-decoration: none;
    color: #2e8b57;
    font-weight: bold;
}

.nav-link:hover {
    text-decoration: underline;
}
.site-footer a,
.site-footer a:visited {
  color: #f8f8f8;     /* 明るい白系に固定 */
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;     /* ホバー時はさらに白く */
  text-decoration: underline;
}
.site-footer .footer-note {
  font-size: 0.75rem;     /* 現在の本文より小さく */
  color: #d6c46a;            /* 控えめなグレー */
  line-height: 1.2;       /* 行間を詰める */
  margin-bottom: 4px;     /* タイトルとの隙間を最小限に */
}

/*ここまでフッター*/



  :root {
    --c-muted:#666; --c-border:#ddd; --c-chip-bg:#eef;
    --fs-base:16px;       /* モバイル既定（iOSの自動ズーム回避） */
    --fs-field-pc:13px;   /* PC時の入力フォント */
    --min-col:240px;      /* 4カラム1行に並べたい時の最小列幅 */
  }
  html, body { font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans JP",sans-serif; }
  body { margin:0; padding:16px; line-height:1.6; font-size:var(--fs-base); }
  .wrap { max-width: 1200px; margin: 0 auto; }
  h1 { font-size: 18px; margin: 0 0 8px; }

  /* フィルタ（広い画面では4カラム1行。狭い画面は自動折返し） */
  .filters {
    display: grid; gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(var(--min-col), 1fr));
    align-items: end; margin: 8px 0 12px;
  }
  .field { display: grid; gap: 6px; min-width: 0; }
  .field label { font-weight: 600; }
  .field input[type="text"], .field select {
    width: 100%; max-width: 100%; box-sizing: border-box; display: block;
    padding: 8px; font-size: 1rem;  /* モバイルは16px */
  }
  .muted { color: var(--c-muted); font-size: 12px; line-height: 1.3; word-break: break-word; }

  /* PCでは入力を少し小さく（任意） */
  @media (min-width: 1024px) {
    .field input[type="text"], .field select { font-size: var(--fs-field-pc); }
  }

  /* 結果はフィルタの外＝常にフル幅 */
  .result { margin-top: 12px; }
  table { width: 100%; border-collapse: collapse; }
  th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--c-border); vertical-align: top; }
  .chip { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--c-chip-bg); margin-right: 4px; font-size: 12px; }
  .row { margin-top: 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
  button { padding: 8px 12px; cursor: pointer; }
  .count { font-weight: 600; }

/*ここから表*/
.product-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.product-table th,
.product-table td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  vertical-align: top;
}

.product-table th {
  background: #f5f5f5;
  font-weight: bold;
  text-align: left;
}

.product-table tr:nth-child(even) {
  background: #fafafa;
}


/*ここからスケジュール*/
/* ===== 共通（ベース） ===== */
#schedule {
  width: 100%;
  background: #fff;
  border-collapse: collapse;
  table-layout: fixed;        /* ← 重複していた指定をここだけに集約 */
}
#schedule th, #schedule td {
  border: 1px solid #cbd5d0;
  padding: 10px 8px;
  vertical-align: top;
  font-size: 13px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
#schedule thead th {
  position: sticky; top: 0; z-index: 2;
  background: #eef6f3;
  border-bottom: 2px solid #9fb0aa;
  text-align: left;
}
/* 列幅のベース：3=月、4=作業 */
#schedule th:nth-child(1), #schedule td:nth-child(1) {
  width: 150px; text-align: center; white-space: nowrap;
}
#schedule th:nth-child(2), #schedule td:nth-child(2) {
  width: 120px; text-align: center; white-space: nowrap;
}
#schedule th:nth-child(3), #schedule td:nth-child(3) {
  width: 45px; text-align: center; white-space: nowrap;
}
#schedule th:nth-child(4), #schedule td:nth-child(4) {
  line-height: 1.6;
}
/* 交互色＆ホバー */
#schedule tbody tr:nth-child(even) { background: #fafbfc; }
#schedule tbody tr:hover { background: #f2f8f6; }

/* ===== 詳細OFF：5列目以降を非表示（この一組のみでOK） ===== */
#schedule:not(.show-details) th:nth-child(n+5),
#schedule:not(.show-details) td:nth-child(n+5) { display: none; }

/* ===== 詳細ON：差分（数値列の幅をタイト化） ===== */
#schedule.show-details th:nth-child(6),
#schedule.show-details td:nth-child(6),
#schedule.show-details th:nth-child(7),
#schedule.show-details td:nth-child(7),
#schedule.show-details th:nth-child(8),
#schedule.show-details td:nth-child(8) {
  text-align: right;
  width: 40px; max-width: 40px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.article-layout {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.article-main {
  flex: 1;
  max-width: 720px;
}

.article-sidebar {
  width: 280px;
  flex-shrink: 0;
}

.sidebar-block {
  background: #f7f7f7;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
}

figure img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

figure {
  margin: 1.5rem 0;
  text-align: center;
}

figcaption {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.5rem;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .article-layout {
    flex-direction: column;
  }

  .article-sidebar {
    width: 100%;
  }
}

