/* ===========================
   style.css - 共通スタイル
   =========================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #2E7D32;
--primary-light: #66BB6A;
--primary-dark: #1B5E20;
--accent: #A5D6A7;
  --bg: #F5F9FF;
  --surface: #FFFFFF;
  --text: #1A2A3A;
  --text-muted: #6B7C93;
  --border: #D6E4F7;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(25, 118, 210, 0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

/* ===== HEADER ===== */
header {
  background: var(--surface);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--primary); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 14px 36px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(25, 118, 210, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(25, 118, 210, 0.4);
}

.btn-white {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  text-decoration: none;
  padding: 14px 36px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* ===== SECTION COMMON ===== */
section { padding: 80px 24px; }

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 48px;
  color: var(--text);
}

.section-label-center,
.section-title-center {
  text-align: center;
}

.container { max-width: 1100px; margin: 0 auto; }

/* ===== FOOTER ===== */
footer {
  background: #1A2A3A;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 32px 24px;
  font-size: 0.85rem;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin: 0 12px;
  transition: color 0.2s;
}

footer a:hover { color: var(--accent); }

.footer-links { margin-bottom: 12px; }

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .nav-links.open { display: flex; }

  .hamburger { display: flex; }

  section { padding: 60px 24px; }
}


/* ===========================
   index.html 専用スタイル
   =========================== */

/* HERO IMAGE */
.hero-image {
  width: 100%;
  line-height: 0; /* 画像下の余白をなくす */
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* SERVICES */
.services { background: var(--surface); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius) var(--radius) 0 0;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(25, 118, 210, 0.15);
}

.card-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  text-align: center;
  padding: 80px 24px;
}

.cta h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.cta p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .cards { grid-template-columns: 1fr; gap: 20px; }
  .hero { padding: 72px 24px 60px; }
}


/* ===========================
   company.html 専用スタイル
   =========================== */

/* PAGE HERO */
.page-hero {
  background: linear-gradient(135deg, #E3F2FD 0%, #F5F9FF 100%);
  padding: 72px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(128, 216, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

.page-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
}

.page-hero h1 span { color: var(--primary); }

/* MAIN */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

/* TABLE */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 64px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

thead tr {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
}

thead th {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 16px 24px;
  text-align: left;
  letter-spacing: 0.04em;
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

tbody tr:last-child { border-bottom: none; }

tbody tr:hover { background: #EEF6FF; }

tbody th {
  background: #F0F7FF;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 18px 24px;
  width: 200px;
  vertical-align: top;
  white-space: nowrap;
  border-right: 2px solid var(--border);
}

tbody td {
  padding: 18px 24px;
  font-size: 0.92rem;
  color: var(--text);
  vertical-align: top;
}

/* MESSAGE */
.message-section { margin-bottom: 64px; }

.message-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 32px;
  align-items: flex-start;
  border-left: 4px solid var(--primary);
}

.message-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.message-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
}

.message-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.9;
}

.message-card .name {
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

/* MAP */
.map-section { margin-bottom: 0; }

.map-placeholder {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
  border: 2px dashed var(--border);
}

.map-placeholder span { font-size: 2.4rem; }

@media (max-width: 768px) {
  tbody th {
    width: 120px;
    white-space: normal;
    font-size: 0.82rem;
    padding: 14px 16px;
  }

  tbody td { padding: 14px 16px; font-size: 0.88rem; }

  thead th { padding: 14px 16px; }

  .message-card {
    flex-direction: column;
    gap: 16px;
    padding: 28px 24px;
  }

  main { padding: 48px 24px 60px; }
}

.map-image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.map-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.map-address {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text-muted);
  padding: 0 4px;
}

/* ===========================
   recruit.html 専用スタイル
   =========================== */

.recruit-cta { margin-bottom: 0; }

.recruit-cta-box {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 40px;
  text-align: center;
  border-top: 4px solid var(--primary);
}

.recruit-cta-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.btn-recruit {
  font-size: 1rem;
  padding: 16px 48px;
}

@media (max-width: 768px) {
  .recruit-cta-box {
    padding: 32px 24px;
  }

  .btn-recruit {
    display: block;
    text-align: center;
  }
}
