/* ============================================
   Reset & Base
============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1e5aa8;
  --primary-dark: #143e75;
  --primary-light: #4a82c9;
  --accent: #f5a623;
  --text: #333333;
  --text-light: #666666;
  --bg-light: #f5f8fc;
  --bg-white: #ffffff;
  --border: #e0e6ed;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", "Yu Gothic", sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.75;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

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

/* ============================================
   Header
============================================ */
.site-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-weight: 700;
}

.logo-mark {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 22px;
  font-weight: 900;
}

.logo-text {
  font-size: 18px;
  letter-spacing: 0.05em;
}

.nav-main ul {
  display: flex;
  gap: 28px;
}

.nav-main a {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--primary);
  opacity: 1;
}

.nav-main a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

.btn-contact-header {
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.btn-contact-header:hover {
  background: var(--primary-dark);
  opacity: 1;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* ============================================
   Hero
============================================ */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(20, 62, 117, 0.55), rgba(20, 62, 117, 0.55)),
    linear-gradient(135deg, #4a82c9 0%, #1e5aa8 50%, #143e75 100%);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  text-align: center;
}

.hero-title {
  font-size: clamp(26px, 4.5vw, 44px);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 24px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  margin-bottom: 36px;
  opacity: 0.95;
}

/* ============================================
   Buttons
============================================ */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #d88f10;
  color: #fff;
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-tel {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-tel:hover {
  background: var(--primary);
  color: #fff;
  opacity: 1;
}

/* ============================================
   Sections
============================================ */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 48px;
  line-height: 1.4;
}

.section-title small {
  display: block;
  font-size: 16px;
  color: var(--text-light);
  font-weight: 400;
  margin-top: 8px;
}

/* ============================================
   Company Intro
============================================ */
.company-intro {
  background: var(--bg-light);
}

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

.info-card {
  background: #fff;
  padding: 32px 24px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.info-card h3 {
  color: var(--primary);
  font-size: 18px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
  display: inline-block;
}

.info-card p {
  color: var(--text);
  line-height: 1.8;
}

/* ============================================
   Services
============================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  color: var(--text);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  opacity: 1;
}

.service-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.service-img-1 {
  background-image: linear-gradient(45deg, #7fb3e0, #1e5aa8), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'/>");
  background-blend-mode: overlay;
  background-color: #7fb3e0;
}
.service-img-2 {
  background: linear-gradient(45deg, #f0c27b, #c08558);
}
.service-img-3 {
  background: linear-gradient(45deg, #81d4a0, #3d9970);
}
.service-img-4 {
  background: linear-gradient(45deg, #e8a7c5, #b8588e);
}
.service-img-5 {
  background: linear-gradient(45deg, #f5d77a, #d4a82a);
}
.service-img-6 {
  background: linear-gradient(45deg, #a8b9d8, #5a7ab0);
}

.service-img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-img::after {
  content: attr(data-label);
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.service-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-body h3 {
  color: var(--primary);
  font-size: 20px;
  margin-bottom: 12px;
}

.service-body p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 16px;
}

.more {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}

/* ============================================
   CTA
============================================ */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
}

.cta h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 32px;
  font-weight: 700;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Page Header (sub pages)
============================================ */
.page-header {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 8px;
}

.page-header p {
  font-size: 16px;
  opacity: 0.9;
}

/* ============================================
   Content
============================================ */
.content {
  padding: 60px 0;
}

.content h2 {
  color: var(--primary);
  font-size: 26px;
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 4px solid var(--primary);
}

.content h3 {
  color: var(--primary-dark);
  font-size: 20px;
  margin: 32px 0 12px;
}

.content p {
  margin-bottom: 16px;
  line-height: 1.9;
}

.content ul.bullet {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 24px;
}

.content ul.bullet li {
  margin-bottom: 8px;
}

/* ============================================
   Tel CTA (お問合せは電話のみ)
============================================ */
.tel-cta {
  background: linear-gradient(135deg, var(--bg-light) 0%, #eaf1fb 100%);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 36px 24px;
  text-align: center;
  margin: 28px 0 40px;
  box-shadow: 0 4px 16px rgba(30, 90, 168, 0.08);
}

.tel-cta-lead {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.tel-cta-number {
  display: block;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.03em;
  margin: 8px 0 4px;
  text-decoration: none;
}

.tel-cta-number:hover {
  color: var(--primary-dark);
  opacity: 1;
}

.tel-cta-hours {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.tel-cta .btn {
  min-width: 220px;
}

/* ============================================
   Table
============================================ */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-table th,
.info-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.info-table th {
  background: var(--bg-light);
  color: var(--primary);
  width: 30%;
  font-weight: 600;
}

/* ============================================
   News List
============================================ */
.news-list {
  list-style: none;
  padding: 0;
}

.news-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.news-date {
  color: var(--primary);
  font-weight: 600;
  min-width: 100px;
}

.news-tag {
  background: var(--primary);
  color: #fff;
  padding: 2px 12px;
  border-radius: 12px;
  font-size: 12px;
  align-self: center;
}

/* ============================================
   Contact Form
============================================ */
.form-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--primary);
}

.form-row label .required {
  color: #d9534f;
  font-size: 12px;
  margin-left: 6px;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-row textarea {
  resize: vertical;
  min-height: 140px;
}

.form-submit {
  text-align: center;
  margin-top: 32px;
}

.form-note {
  background: var(--bg-light);
  padding: 16px 20px;
  border-radius: 6px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-light);
}

/* ============================================
   Footer
============================================ */
.site-footer {
  background: #222c3d;
  color: #ccd6e3;
  padding: 60px 0 0;
  margin-top: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-company p {
  font-size: 14px;
  margin-bottom: 4px;
}

.footer-nav ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.footer-nav a {
  color: #ccd6e3;
  font-size: 14px;
}

.footer-nav a:hover {
  color: #fff;
  opacity: 1;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
}

/* ============================================
   Scroll-top Button
============================================ */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--primary-dark);
}

/* ============================================
   Fade-in Animation
============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s, transform 0.6s;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
============================================ */
@media (max-width: 960px) {
  .nav-main {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-200%);
    transition: transform 0.3s;
    z-index: 998;
  }

  .nav-main.is-open {
    transform: translateY(0);
  }

  .nav-main ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
  }

  .nav-main li {
    border-bottom: 1px solid var(--border);
  }

  .nav-main a {
    display: block;
    padding: 16px 24px;
  }

  .nav-main a.active::after {
    display: none;
  }

  .btn-contact-header {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .info-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-nav ul {
    grid-template-columns: repeat(2, 1fr);
  }

  section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 26px;
  }
}

@media (max-width: 600px) {
  .header-inner {
    height: 64px;
  }

  .nav-main {
    top: 64px;
  }

  .logo-text {
    font-size: 15px;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .hero {
    min-height: 420px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}
