/* ===== リセット & ベース ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #c0392b;
  --red-dark: #96281b;
  --dark: #1a1a1a;
  --gray: #555;
  --light-gray: #f5f5f5;
  --border: #e0e0e0;
  --white: #ffffff;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  color: var(--dark);
  line-height: 1.7;
  font-size: 16px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--red);
  margin: 12px auto 0;
}

.section-sub {
  text-align: center;
  color: var(--gray);
  margin-bottom: 48px;
  font-size: 0.95rem;
}

.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 14px 36px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-full { width: 100%; text-align: center; }

/* ===== ナビ ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 8px rgba(0,0,0,0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--red);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--red); }

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 4px;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--red-dark) !important; color: var(--white) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

/* ===== ヒーロー ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('hero.png') center/cover no-repeat;
  padding-top: 64px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20,20,20,0.75) 0%, rgba(20,20,20,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  color: var(--white);
}

.hero-sub {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 2px;
  margin-bottom: 20px;
  letter-spacing: 0.08em;
}

.hero-title {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  opacity: 0.9;
  margin-bottom: 36px;
  line-height: 1.8;
}

/* ===== サービス ===== */
.services {
  padding: 96px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: var(--light-gray);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
  border: 1px solid var(--border);
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-icon { font-size: 2.5rem; margin-bottom: 16px; }

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p { font-size: 0.88rem; color: var(--gray); line-height: 1.7; }

/* ===== 選ばれる理由 ===== */
.reasons {
  padding: 96px 0;
  background: var(--dark);
  color: var(--white);
}

.reasons .section-title { color: var(--white); }

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.reason-item { text-align: center; }

.reason-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  margin-bottom: 12px;
}

.reason-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.reason-item p { font-size: 0.88rem; color: #bbb; line-height: 1.7; }

/* ===== 会社概要 ===== */
.company {
  padding: 96px 0;
  background: var(--light-gray);
}

.company-table-wrap {
  max-width: 700px;
  margin: 48px auto 0;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 8px;
  overflow: hidden;
}

.company-table tr { border-bottom: 1px solid var(--border); }
.company-table tr:last-child { border-bottom: none; }

.company-table th {
  width: 160px;
  background: var(--dark);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
}

.company-table td {
  padding: 16px 24px;
  font-size: 0.92rem;
  color: var(--dark);
  vertical-align: top;
}

/* ===== お問い合わせ ===== */
.contact {
  padding: 96px 0;
  background: var(--white);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
  margin-top: 48px;
}

.contact-phone {
  background: var(--red);
  color: var(--white);
  border-radius: 8px;
  padding: 36px 24px;
  text-align: center;
}

.contact-label { font-size: 0.85rem; opacity: 0.9; margin-bottom: 12px; }

.phone-number {
  display: block;
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 8px;
}

.phone-hours { font-size: 0.8rem; opacity: 0.85; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
}

.required {
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: middle;
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 11px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
  color: var(--dark);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
}

.form-group textarea { resize: vertical; }

/* ===== フッター ===== */
.footer {
  background: var(--dark);
  color: #aaa;
  padding: 40px 0 24px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--white);
}

.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }

.footer-nav a {
  font-size: 0.85rem;
  color: #aaa;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--white); }

.footer-copy {
  font-size: 0.8rem;
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 20px;
}

/* ===== サービスアイコングリッド ===== */
.service-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 48px;
}

.svc-icon-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 28px;
  border-right: 1px solid var(--border);
  border-bottom: none;
  transition: background 0.2s;
  color: var(--dark);
}

.svc-icon-item:last-child { border-right: none; }

.svc-icon-item:hover { background: var(--light-gray); }

.svc-icon-item svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--red);
}

.svc-icon-item span {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

/* ===== サービス詳細セクション ===== */
.service-details { background: var(--white); }

.svc-detail {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.svc-detail:last-child { border-bottom: none; }
.svc-detail:nth-child(even) { background: var(--light-gray); }

.svc-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.svc-detail--reverse .svc-detail-inner {
  direction: rtl;
}

.svc-detail--reverse .svc-detail-text,
.svc-detail--reverse .svc-detail-img {
  direction: ltr;
}

.svc-detail-text h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 16px;
}

.svc-detail-text h3::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 40px; height: 3px;
  background: var(--red);
}

.svc-detail-text p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.85;
  margin-bottom: 12px;
}

.svc-detail-text p:last-child { margin-bottom: 0; }

.svc-detail-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); padding: 16px 24px; gap: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .service-icon-grid { grid-template-columns: 1fr 1fr; }
  .svc-icon-item { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .svc-icon-item:nth-child(2n) { border-right: none; }
  .svc-icon-item:nth-last-child(-n+2) { border-bottom: none; }

  .svc-detail-inner { grid-template-columns: 1fr; gap: 32px; }
  .svc-detail--reverse .svc-detail-inner { direction: ltr; }
  .svc-detail-img img { height: 240px; }

  .reasons-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .company-table th { width: 100px; }
}

@media (max-width: 480px) {
  .service-icon-grid { grid-template-columns: 1fr; }
  .svc-icon-item { border-right: none !important; border-bottom: 1px solid var(--border) !important; }
  .svc-icon-item:last-child { border-bottom: none !important; }
  .hero-title { font-size: 1.6rem; }
}
