/* 有限会社ティムコーポレーション 2026-10-24 */
:root {
  --green: #5aa469;
  --green-dark: #3d7d4b;
  --green-light: #eef6ef;
  --gray: #555;
  --text: #333;
  --line: #ddd;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; color: var(--text); background: #fff; font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif; line-height: 1.8; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 720px; }
.center { text-align: center; }
.sp { display: none; }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo img { width: 120px; }
.header-contact { display: flex; flex-direction: column; line-height: 1.3; font-size: 13px; color: var(--gray); }
.header-contact .tel { font-weight: bold; color: var(--text); text-decoration: none; font-size: 15px; }
.site-nav { margin-left: auto; display: flex; gap: 20px; }
.site-nav a { color: var(--text); text-decoration: none; font-size: 15px; }
.site-nav a:hover { color: var(--green-dark); }
.nav-toggle, .nav-button { display: none; }

/* トップ */
.hero { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff;
  background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), url(../img/hero.jpg) center / cover no-repeat; padding: 60px 16px; }
.hero-company { font-size: 18px; letter-spacing: .1em; margin: 0 0 12px; }
.hero h1 { font-size: 34px; margin: 0 0 16px; line-height: 1.5; }
.hero p { font-size: 18px; }

.btn { display: inline-block; background: var(--green); color: #fff; text-decoration: none; padding: 12px 36px; border-radius: 40px; border: 0; font-size: 16px; cursor: pointer; }
.btn:hover { background: var(--green-dark); }

/* 区切り */
.section { padding: 72px 0; }
.section-alt { background: var(--green-light); }
.section-title { text-align: center; font-size: 28px; margin: 0 0 40px; }
.section-title span { display: block; font-size: 13px; color: var(--green-dark); letter-spacing: .2em; text-transform: uppercase; font-weight: normal; }
.sub-title { font-size: 20px; margin: 48px 0 16px; border-left: 5px solid var(--green); padding-left: 12px; }

/* 事業 */
.biz { display: grid; grid-template-columns: 2fr 3fr; gap: 32px; align-items: start; margin-bottom: 48px; }
.biz img { border-radius: 8px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.biz h3 { margin: 0 0 8px; font-size: 22px; color: var(--green-dark); }
.biz h4 { margin: 8px 0 4px; }
.biz p { margin: 0 0 12px; }
.biz-links { list-style: none; padding: 0; margin: 12px 0 0; }
.biz-links li { margin: 6px 0; }
.biz-links a { display: inline-block; padding: 6px 14px; border: 1px solid var(--green); border-radius: 20px; text-decoration: none; font-size: 15px; }
.biz-links a:hover { background: var(--green); color: #fff; }
.biz-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dots { margin: 0; padding-left: 1.2em; }

/* 会社情報 */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.about-photo { border-radius: 8px; }
.about h3, .message h3 { font-size: 22px; color: var(--green-dark); margin: 0 0 12px; }
.message { display: grid; grid-template-columns: 200px 1fr; gap: 32px; margin-top: 56px; background: #fff; padding: 32px; border-radius: 8px; }
.president { border-radius: 8px; }
.sign { text-align: right; font-weight: bold; }
.outline { width: 100%; border-collapse: collapse; background: #fff; }
.outline th, .outline td { border: 1px solid var(--line); padding: 12px 16px; text-align: left; vertical-align: top; }
.outline th { width: 9em; background: #f7f7f7; white-space: nowrap; }
.outline ol { margin: 0; padding-left: 1.6em; }

/* フォーム */
.form label { display: block; margin-bottom: 18px; font-weight: bold; }
.form input, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font-size: 16px; border: 1px solid #bbb; border-radius: 6px; font-family: inherit; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--green); border-color: var(--green); }
.req, .opt { font-size: 12px; font-weight: normal; margin-left: 8px; padding: 1px 8px; border-radius: 4px; color: #fff; background: #c0392b; }
.opt { background: #888; }
.note { font-size: 14px; color: var(--gray); }
.form .btn { display: block; margin: 0 auto; min-width: 240px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 地図 */
.map { margin-top: 24px; position: relative; padding-top: 50%; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }

/* 送信後などの画面 */
.result { text-align: center; }
.result h1 { font-size: 26px; color: var(--green-dark); }
.errors { text-align: left; display: inline-block; color: #c0392b; }

.site-footer { background: #333; color: #ddd; text-align: center; padding: 20px 16px; font-size: 13px; }
.site-footer p { margin: 0; }

/* スマホ */
@media (max-width: 800px) {
  .sp { display: inline; }
  .header-inner { flex-wrap: wrap; min-height: 56px; gap: 10px; }
  .logo img { width: 96px; }
  .header-contact { font-size: 12px; }
  .header-contact .tel { font-size: 14px; }
  .nav-button { display: block; margin-left: auto; width: 40px; height: 40px; position: relative; cursor: pointer; }
  .nav-button span, .nav-button span::before, .nav-button span::after { position: absolute; left: 8px; width: 24px; height: 2px; background: var(--text); content: ""; }
  .nav-button span { top: 19px; }
  .nav-button span::before { top: -7px; left: 0; }
  .nav-button span::after { top: 7px; left: 0; }
  .site-nav { display: none; width: 100%; flex-direction: column; gap: 0; margin: 0; }
  .site-nav a { padding: 12px 4px; border-top: 1px solid var(--line); }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .hero { min-height: 60vh; }
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 16px; }
  .section { padding: 52px 0; }
  .section-title { font-size: 24px; margin-bottom: 28px; }
  .biz, .about, .message, .biz-cols { grid-template-columns: 1fr; gap: 16px; }
  .message { padding: 20px; }
  .president { width: 160px; margin: 0 auto; }
  .outline th, .outline td { display: block; width: 100%; }
  .outline th { border-bottom: 0; }
  .map { padding-top: 75%; }
}

