/* ============================================
   YLab ホームページ 共通スタイル
   色を変えたいときは、下の :root の値を直す
   ============================================ */
:root {
  --main: #22a06b;        /* メインの色（緑） */
  --main-dark: #17794f;   /* 白い文字をのせる緑・緑の文字（読みやすい濃さ） */
  --accent: #ffd43b;      /* アクセントの色（黄色） */
  --pale: #f1faf4;        /* うすい緑の背景 */
  --text: #1f2d27;        /* 文字の色 */
  --muted: #56675e;       /* うすい文字 */
  --line: #d9eee1;        /* 区切り線 */
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 6px 20px rgba(10, 80, 50, 0.10);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.8;
}
img, svg { max-width: 100%; }
a { color: var(--main-dark); }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 12px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.6rem; font-weight: 900; color: var(--main); text-decoration: none;
  letter-spacing: 0.02em;
}
.logo span { color: var(--main); }
.logo small { font-size: 0.7rem; font-weight: 700; color: var(--muted); line-height: 1.3; }
.header-tel {
  display: none;
  text-decoration: none; color: var(--text); text-align: right; line-height: 1.3;
}
.header-tel strong { display: block; font-size: 1.5rem; color: var(--main-dark); }
.header-tel small { font-size: 0.75rem; color: var(--muted); }

.menu-button {
  border: 0; background: var(--main-dark); color: var(--white);
  border-radius: 12px; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer;
}
.global-nav { display: none; background: var(--pale); border-top: 1px solid var(--line); }
.global-nav.is-open { display: block; }
.global-nav ul { list-style: none; margin: 0; padding: 8px 16px 16px; }
.global-nav a {
  display: block; padding: 10px 4px; border-bottom: 1px dashed var(--line);
  color: var(--text); text-decoration: none; font-weight: 700;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 900; font-size: 1.05rem; text-decoration: none;
  box-shadow: var(--shadow); transition: transform 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-tel { background: var(--main-dark); color: var(--white); }
.btn-form { background: var(--white); color: var(--main-dark); border: 3px solid var(--main); }
.btn-line { background: #06c755; color: var(--white); }

/* ---------- 料金表（草刈り・伐採） ---------- */
.price-table { width: 100%; max-width: 720px; margin: 0 auto; border-collapse: collapse; background: var(--white); }
.price-table th, .price-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
.price-table thead th { background: var(--main-dark); color: var(--white); }
.price-table td:last-child { text-align: right; font-weight: 900; color: var(--main-dark); white-space: nowrap; }

/* ---------- ファーストビュー ---------- */
.hero {
  background: var(--pale);
  border-bottom: 4px solid var(--main);
  padding: 48px 0 52px;
  overflow: hidden;
}
.hero-label { margin: 0 0 8px; color: var(--main-dark); font-weight: 700; letter-spacing: 0.08em; font-size: 0.9rem; }
.hero .container { display: grid; gap: 24px; align-items: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.badge {
  background: var(--white); border: 2px solid var(--main);
  color: var(--main-dark); font-weight: 900; font-size: 0.85rem;
  padding: 2px 12px; border-radius: 999px;
}
.hero h1 { font-size: 1.9rem; line-height: 1.4; margin: 0 0 12px; }
.hero h1 em { font-style: normal; color: var(--main-dark); background: linear-gradient(transparent 60%, var(--accent) 60%); }
.hero p { margin: 0 0 20px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }
.hero-illust { max-width: 420px; margin: 0 auto; }

/* ---------- セクション共通 ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--pale); }
.section-title { text-align: center; margin: 0 0 8px; font-size: 1.6rem; }
.section-title::after {
  content: ""; display: block; width: 40px; height: 3px; margin: 12px auto 0;
  background: var(--main); border-radius: 2px;
}
.section-lead { text-align: center; color: var(--muted); margin: 0 0 32px; }

/* ---------- サービス ---------- */
.service-grid { display: grid; gap: 16px; }
.service-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-decoration: none; color: var(--text);
  box-shadow: var(--shadow); transition: border-color 0.15s, transform 0.15s;
}
.service-card:hover { border-color: var(--main); transform: translateY(-2px); }
.service-icon {
  flex: 0 0 56px; height: 56px; border-radius: 50%;
  background: var(--accent); display: grid; place-items: center;
}
.service-icon svg { width: 32px; height: 32px; }
.service-card h3 { margin: 0 0 4px; font-size: 1.15rem; }
.service-card p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.service-card .more { display: inline-block; margin-top: 6px; color: var(--main-dark); font-weight: 700; font-size: 0.9rem; }
.tag-houjin {
  display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 6px;
  background: var(--text); color: var(--white); font-size: 0.72rem; vertical-align: middle;
}

/* ---------- 選ばれる理由 ---------- */
.reason-grid { display: grid; gap: 16px; }
.reason {
  background: var(--white); border-radius: var(--radius); padding: 22px 20px;
  box-shadow: var(--shadow); position: relative;
}
.reason-num {
  position: absolute; top: -14px; left: 16px;
  background: var(--main-dark); color: var(--white); font-weight: 900;
  border-radius: 999px; padding: 0 12px; font-size: 0.85rem;
}
.reason h3 { margin: 6px 0 6px; font-size: 1.1rem; }
.reason p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- ご依頼の流れ ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: flow; }
.flow li {
  counter-increment: flow;
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px;
}
.flow li::before {
  content: counter(flow);
  flex: 0 0 40px; height: 40px; border-radius: 50%;
  background: var(--main-dark); color: var(--white); font-weight: 900;
  display: grid; place-items: center; font-size: 1.1rem;
}
.flow h3 { margin: 0; font-size: 1.05rem; }
.flow p { margin: 2px 0 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- 対応エリア ---------- */
.area-box {
  background: var(--white); border: 3px solid var(--accent); border-radius: var(--radius);
  padding: 24px; text-align: center; max-width: 640px; margin: 0 auto;
}
.area-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 12px; padding: 0; list-style: none; }
.area-list li {
  background: var(--main-dark); color: var(--white); font-weight: 900;
  padding: 6px 20px; border-radius: 999px; font-size: 1.1rem;
}
.area-box p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- お問い合わせ帯 ---------- */
.cta {
  background: var(--main-dark); color: var(--white); text-align: center; padding: 48px 0;
}
.cta h2 { margin: 0 0 8px; font-size: 1.5rem; }
.cta p { margin: 0 0 20px; }
.cta-tel {
  display: inline-block; background: var(--white); color: var(--main-dark);
  font-size: 1.8rem; font-weight: 900; text-decoration: none;
  padding: 10px 28px; border-radius: 999px; box-shadow: var(--shadow);
}
.cta-hours { display: block; margin-top: 10px; font-size: 0.9rem; }
.cta .btn-form { margin-top: 16px; border-color: var(--white); }

/* ---------- 下のページ（サービスなど）の見出し ---------- */
.page-hero {
  background: var(--pale);
  border-bottom: 4px solid var(--main);
  padding: 32px 0 36px;
}
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin: 0 0 8px; }
.breadcrumb a { color: var(--muted); }
.page-hero h1 { margin: 0 0 8px; font-size: 1.9rem; line-height: 1.4; }
.page-hero p { margin: 0 0 18px; color: var(--muted); }

/* ---------- こんなお悩み（チェックリスト） ---------- */
.check-list {
  list-style: none; margin: 0 auto; padding: 0; max-width: 720px; display: grid; gap: 10px;
}
.check-list li {
  background: var(--white); border: 2px solid var(--line); border-radius: 12px;
  padding: 12px 16px 12px 48px; position: relative; font-weight: 700;
}
.check-list li::before {
  content: "✓"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: var(--text);
  display: grid; place-items: center; font-size: 0.85rem; font-weight: 900;
}
.check-answer {
  max-width: 720px; margin: 20px auto 0; text-align: center;
  font-weight: 900; font-size: 1.15rem; color: var(--main-dark);
}

/* ---------- 対応できる物（タグ） ---------- */
.item-groups { display: grid; gap: 16px; }
.item-group {
  background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.item-group h3 { margin: 0 0 10px; font-size: 1.1rem; color: var(--main-dark); }
.item-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.item-tags li {
  background: var(--pale); border: 1px solid var(--line); border-radius: 999px;
  padding: 2px 14px; font-size: 0.92rem;
}
.note {
  max-width: 720px; margin: 20px auto 0; padding: 14px 18px;
  background: #fffbea; border-left: 6px solid var(--accent); border-radius: 8px;
  font-size: 0.92rem; color: var(--muted);
}
.note p { margin: 0; }

/* ---------- 文章のかたまり ---------- */
.text-block { max-width: 720px; margin: 0 auto; }
.text-block p { margin: 0 0 14px; }

/* ---------- よくある質問 ---------- */
.faq { max-width: 720px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--white); border: 2px solid var(--line); border-radius: 12px; padding: 0 16px;
}
.faq summary {
  cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; position: relative; padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q. "; color: var(--main-dark); font-weight: 900; }
.faq summary::after { content: "＋"; position: absolute; right: 0; color: var(--main-dark); }
.faq details[open] summary::after { content: "－"; }
.faq details p { margin: 0 0 14px; color: var(--muted); }

/* ---------- ほかのサービスへのリンク ---------- */
.other-services { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.other-services a {
  background: var(--white); border: 2px solid var(--main); border-radius: 999px;
  padding: 6px 18px; text-decoration: none; font-weight: 700; color: var(--main-dark);
}
.other-services a:hover { background: var(--main-dark); color: var(--white); }

/* ---------- 料金のページ ---------- */
.price-factors { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.price-factors li {
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
}
.price-factors strong { display: block; color: var(--main-dark); font-size: 1.05rem; }
.price-factors span { color: var(--muted); font-size: 0.92rem; }
.formula {
  max-width: 720px; margin: 0 auto; background: var(--white); border: 3px solid var(--accent);
  border-radius: var(--radius); padding: 20px; text-align: center; font-weight: 900; font-size: 1.1rem;
}
.formula small { display: block; margin-top: 6px; font-weight: 500; font-size: 0.88rem; color: var(--muted); }

/* ---------- 会社概要などの表 ---------- */
.info-table { width: 100%; max-width: 720px; margin: 0 auto; border-collapse: collapse; background: var(--white); }
.info-table th, .info-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.info-table th { width: 32%; color: var(--main-dark); background: var(--pale); font-weight: 700; }
.todo { background: #fff1c2; padding: 0 6px; border-radius: 4px; font-weight: 700; color: #7a5600; }

/* ---------- 文章だけのページ（プライバシーポリシー） ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.2rem; margin: 32px 0 8px; padding-left: 12px; border-left: 6px solid var(--main); }
.prose p, .prose ul { margin: 0 0 12px; }

/* ---------- Googleフォーム（はめ込み） ---------- */
.gform-wrap {
  max-width: 760px; margin: 24px auto 0; background: var(--white);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
/* 高さはフォームの長さに合わせている。質問を増やして下が切れたら数字を大きくする */
.gform-wrap iframe { display: block; width: 100%; height: 2600px; border: 0; }
.gform-note { max-width: 760px; margin: 12px auto 0; font-size: 0.9rem; color: var(--muted); text-align: center; }

/* ---------- お問い合わせフォーム（前の Formspree 版。今は使っていない） ---------- */
.contact-form {
  max-width: 720px; margin: 0 auto; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px 18px; display: grid; gap: 20px;
}
.field { display: grid; gap: 6px; }
.field > label, .field legend { font-weight: 700; }
.field fieldset { border: 0; margin: 0; padding: 0; }
.req, .opt {
  display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 6px;
  font-size: 0.75rem; vertical-align: middle;
}
.req { background: #c0392b; color: var(--white); }
.opt { background: var(--line); color: var(--muted); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"],
.field input[type="date"], .field select, .field textarea {
  width: 100%; font: inherit; padding: 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--white);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--accent); border-color: var(--main); }
.field [aria-invalid="true"] { border-color: #c0392b; }
.field-hint { font-size: 0.85rem; color: var(--muted); margin: 0; }
.field-error { color: #c0392b; font-size: 0.88rem; font-weight: 700; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.choices label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.choices input { width: 20px; height: 20px; accent-color: var(--main-dark); }
.agree { display: flex; gap: 8px; align-items: flex-start; }
.agree input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--main-dark); }
.contact-form button[type="submit"] {
  border: 0; cursor: pointer; font: inherit; font-weight: 900; font-size: 1.1rem;
  background: var(--main-dark); color: var(--white); padding: 16px; border-radius: 999px; box-shadow: var(--shadow);
}
.contact-form button[disabled] { opacity: 0.6; cursor: wait; }
.hp-field { position: absolute; left: -9999px; }
.form-note, .form-status { margin: 0; padding: 12px 16px; border-radius: 10px; font-size: 0.95rem; }
.form-note, .form-status--warn { background: #fff8db; border-left: 6px solid var(--accent); }
.form-status--error { background: #fdecea; border-left: 6px solid #c0392b; }
.form-status--success { background: var(--pale); border-left: 6px solid var(--main); }

/* ---------- 事業内容の一覧 ---------- */
.biz-grid { display: grid; gap: 16px; }
.biz {
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--main);
  border-radius: 10px; padding: 20px;
}
.biz h3 { margin: 0 0 6px; font-size: 1.15rem; }
.biz p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.biz .tag-houjin { margin-left: 6px; }
.more-link { text-align: center; margin: 24px 0 0; }
.more-link a { font-weight: 700; }

/* ---------- 事業内容のページ ---------- */
.biz-detail { max-width: 760px; margin: 0 auto; display: grid; gap: 20px; }
.biz-detail section {
  background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--main);
  border-radius: 10px; padding: 20px 22px; scroll-margin-top: 90px;
}
.biz-detail h2 { margin: 0 0 8px; font-size: 1.25rem; }
.biz-detail p { margin: 0 0 8px; }
.biz-detail p:last-child { margin-bottom: 0; }
.biz-detail .sub { color: var(--muted); font-size: 0.92rem; }

/* ---------- お問い合わせの帯（落ち着いた形） ---------- */
.contact-band { background: var(--pale); border-top: 1px solid var(--line); padding: 48px 0; text-align: center; }
.contact-band h2 { margin: 0 0 8px; font-size: 1.4rem; }
.contact-band p { margin: 0 0 18px; color: var(--muted); }
.contact-band .tel-big { display: block; font-size: 1.8rem; font-weight: 900; color: var(--main-dark); text-decoration: none; }
.contact-band .hours { display: block; margin: 4px 0 18px; font-size: 0.9rem; color: var(--muted); }

/* ---------- フッター ---------- */
.site-footer { background: var(--text); color: #eef7f1; padding: 40px 0 24px; font-size: 0.9rem; }
.site-footer a { color: #eef7f1; }
.footer-grid { display: grid; gap: 24px; }
.footer-logo { font-size: 1.5rem; font-weight: 900; margin: 0 0 6px; }
.footer-logo span { color: var(--main); }
.site-footer dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.site-footer dt { color: #b5cdbf; }
.site-footer dd { margin: 0; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.copyright { text-align: center; margin: 28px 0 0; color: #b5cdbf; font-size: 0.8rem; }

/* ---------- スマホ画面下の固定ボタン ---------- */
.fixed-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.12);
}
.fixed-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 64px; text-decoration: none; font-weight: 900; line-height: 1.2;
}
.fixed-bar small { font-weight: 700; font-size: 0.72rem; }
.fixed-bar .bar-tel { background: var(--main-dark); color: var(--white); }
.fixed-bar .bar-form { background: var(--accent); color: var(--text); }

/* ---------- パソコンなど広い画面 ---------- */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .fixed-bar { display: none; }
  .header-tel { display: block; }
  .hero { padding: 64px 0 72px; }
  .hero .container { grid-template-columns: 1.1fr 0.9fr; }
  .hero h1 { font-size: 2.6rem; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .service-card { flex-direction: column; }
  .reason-grid { grid-template-columns: repeat(3, 1fr); }
  .flow { grid-template-columns: repeat(4, 1fr); }
  .flow li { flex-direction: column; }
  .page-hero { padding: 48px 0 52px; }
  .page-hero h1 { font-size: 2.3rem; }
  .item-groups { grid-template-columns: repeat(2, 1fr); }
  .price-factors { grid-template-columns: repeat(2, 1fr); }
  .biz-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-form { padding: 36px 40px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}
@media (min-width: 1000px) {
  .menu-button { display: none; }
  .global-nav { display: block; background: var(--white); border-top: 1px solid var(--line); }
  .global-nav ul { display: flex; justify-content: center; gap: 4px; padding: 0 16px; }
  .global-nav a { border: 0; padding: 10px 12px; font-size: 0.95rem; }
  .global-nav a:hover { color: var(--main-dark); }
}
