/* sw.tdjapan.net 共通の見た目（ソフトウェアの紹介サイト）。色は農地管理ソフトの画面に合わせる */
:root {
  --ink: #22281f;
  --text: #3b4035;
  --sub: #686b5d;
  --bg: #faf8f2;
  --paper: #ffffff;
  --soft: #f2efe4;
  --line: #e2dccb;
  --green-900: #1f3324;
  --green-800: #26392b;
  --green-700: #2f5a37;
  --green-600: #3d6b43;
  --green-100: #e7efe1;
  --gold: #c9a646;
  --gold-soft: #f7f0d9;
  --warn: #8a5a00;
  --danger: #b03a2e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 51, 36, 0.12), 0 2px 6px rgba(31, 51, 36, 0.08);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "BIZ UDPGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-600); }
a:hover { color: var(--green-700); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.4; margin: 0; font-weight: 700; letter-spacing: 0.03em; }
/* 見出しは文節で改行し、行の長さをそろえる（最後の 1 文字だけが次の行に残らないように） */
h1, h2, h3 { word-break: auto-phrase; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--paper); padding: 8px 12px; border-radius: 8px; }

/* ---- ヘッダー ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 242, 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--green-800); color: var(--gold);
  display: grid; place-items: center; font-weight: 700; font-size: 13px; letter-spacing: 0.04em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { font-size: 15px; }
.brand-text small { font-size: 11px; color: var(--sub); letter-spacing: 0.06em; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--text); text-decoration: none; font-size: 14px; }
.site-nav a:hover { color: var(--green-600); }
.site-nav .btn { color: #fff; }
@media (max-width: 760px) {
  .site-nav .nav-link { display: none; }
  .brand-text small { display: none; }
}

/* ---- ボタン ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  font-family: inherit; line-height: 1.3; transition: background 0.15s, color 0.15s, transform 0.15s;
}
.btn-primary { background: var(--green-600); color: #fff; }
.btn-primary:hover { background: var(--green-700); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--green-700); border-color: var(--green-600); }
.btn-ghost:hover { background: var(--green-100); color: var(--green-700); }
.btn-gold { background: var(--gold); color: var(--green-900); }
.btn-gold:hover { background: #d8b757; color: var(--green-900); }
.btn-small { padding: 8px 16px; font-size: 14px; }
.btn-large { padding: 16px 30px; font-size: 17px; }

/* ---- 見出し・段 ---- */
.section { padding: 88px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--green-800); color: #e9ecdf; }
.section-dark h2, .section-dark h3 { color: #fff; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--green-600);
  letter-spacing: 0.12em; margin-bottom: 12px;
}
.section-dark .eyebrow { color: var(--gold); }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); }
.section-head p { margin-top: 16px; color: var(--sub); }
.section-dark .section-head p { color: #c7cfbd; }
@media (max-width: 760px) { .section { padding: 64px 0; } .section-head { margin-bottom: 36px; } }

/* ---- 画面の写真 ---- */
.shot { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(31, 51, 36, 0.12); background: var(--paper); }
.shot img { width: 100%; }
.phone {
  border-radius: 30px; overflow: hidden; border: 7px solid #1d211b; background: #1d211b;
  box-shadow: 0 18px 40px rgba(31, 51, 36, 0.28);
}
.phone img { border-radius: 22px; }
figure { margin: 0; }
figcaption { font-size: 13px; color: var(--sub); margin-top: 10px; text-align: center; }

/* ---- カード ---- */
.cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: 0 1px 2px rgba(31, 51, 36, 0.04);
}
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--text); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--green-100); color: var(--green-700);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; }

/* ---- フッター ---- */
.site-footer { background: var(--green-900); color: #b9c3b0; padding: 48px 0 32px; font-size: 14px; }
.site-footer a { color: #e9ecdf; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { background: #34503a; }
.site-footer .brand-text small { color: #93a08a; display: block; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 28px 56px; justify-content: space-between; }
.footer-grid h4 { color: #fff; font-size: 14px; margin-bottom: 10px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; line-height: 2.1; }
.footer-note { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 12px; color: #93a08a; line-height: 1.8; }

/* ---- 汎用 ---- */
.center { text-align: center; }
.muted { color: var(--sub); }
.small { font-size: 13px; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions.center { justify-content: center; }
.tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--gold-soft); color: var(--warn); letter-spacing: 0.05em;
}

/* ---- 文章のページ（個人情報の取り扱いなど） ---- */
.page-head { padding: 56px 0 24px; }
.page-head h1 { font-size: clamp(26px, 3.6vw, 36px); }
.prose { max-width: 780px; }
.prose h2 { font-size: 20px; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.4em; }

/* ---- お問い合わせへの帯（どのページでも使う） ---- */
.cta-band { background: linear-gradient(135deg, var(--green-800), var(--green-700)); color: #e9ecdf; border-radius: 20px; padding: 48px 32px; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); }
.cta-band p { margin: 14px auto 26px; max-width: 640px; color: #d2d9c8; }

/* ---- ソフトの一覧（トップ） ---- */
.top-hero { padding: 72px 0 56px; }
.top-hero h1 { font-size: clamp(28px, 4.2vw, 42px); }
.top-hero p { margin-top: 18px; max-width: 720px; font-size: 17px; }
.product-list { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.product-card {
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 1px 2px rgba(31, 51, 36, 0.04);
  transition: transform 0.15s, box-shadow 0.15s;
}
a.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.product-card .thumb { aspect-ratio: 16 / 10; background: var(--soft); overflow: hidden; border-bottom: 1px solid var(--line); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.product-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card .title { display: flex; align-items: center; gap: 12px; }
.product-card .title img { width: 40px; height: 40px; border-radius: 10px; }
.product-card h3 { font-size: 20px; }
.product-card .for { font-size: 13px; color: var(--green-600); font-weight: 700; }
.product-card p { font-size: 15px; }
.product-card .more { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--green-600); }
.product-card.coming { border-style: dashed; background: transparent; justify-content: center; text-align: center; padding: 36px 28px; box-shadow: none; }
.product-card.coming h3 { font-size: 18px; }

/* ---- お問い合わせフォーム ---- */
.form { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 32px; max-width: 760px; }
.form .row { margin-bottom: 20px; }
.form label.title { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; font-size: 15px; }
.form .req, .form .opt { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 4px; margin-left: 8px; vertical-align: 2px; }
.form .req { background: #fbe4df; color: var(--danger); }
.form .opt { background: var(--soft); color: var(--sub); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fffefb;
  border: 1px solid #cfc8b4; border-radius: 10px; padding: 12px 14px;
}
.form textarea { min-height: 180px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(61, 107, 67, 0.25); border-color: var(--green-600); }
.form .hint { font-size: 13px; color: var(--sub); margin-top: 4px; }
.form .agree { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.form .agree input { margin-top: 7px; width: 18px; height: 18px; flex: none; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .errors { background: #fbe9e5; color: var(--danger); border-radius: 10px; padding: 14px 18px; margin-bottom: 22px; font-size: 15px; }
.form .errors ul { margin: 6px 0 0; padding-left: 1.2em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 640px) { .form { padding: 22px 18px; } .form-grid { grid-template-columns: 1fr; } }
