:root {
  --primary-color: #1e50a2;
  --secondary-color: #3b82f6;
  --accent-color: #60a5fa;
  --text-color: #333;
  --background-color: #f8fafc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--background-color);
}

/* ヘッダー */
header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  top: 0;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  height: 30px;
  width: auto;
}

.pc-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.pc-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: bold;
  transition: color 0.3s;
}

.pc-nav a:not(.contact-btn):hover {
  color: var(--secondary-color);
}

.contact-btn {
  background-color: var(--primary-color);
  color: #fff !important;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  transition: background-color 0.3s;
}

.contact-btn:hover {
  background-color: var(--secondary-color);
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  position: absolute;
  transition: all 0.3s;
}

.hamburger span:nth-child(1) {
  top: 0;
}
.hamburger span:nth-child(2) {
  top: 9px;
}
.hamburger span:nth-child(3) {
  bottom: 0;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.sp-nav {
  display: none;
  background-color: #fff;
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sp-nav ul {
  list-style: none;
}

.sp-nav li {
  margin-bottom: 1rem;
}

.sp-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: bold;
  display: block;
  padding: 0.5rem 0;
  text-align: center;
}

/* メインビジュアル */
.hero {
  height: 80vh;
  background: linear-gradient(rgba(30, 80, 162, 0.7), rgba(30, 80, 162, 0.7)),
    url("./img/top02.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  margin-top: 60px;
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-text {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
  border-radius: 8px;
}

/* セクションタイトル */
.section-title {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 2rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
}

.section-subtitle {
  text-align: center;
  color: var(--text-color);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* サービス */
.service {
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.service-item:hover {
  transform: translateY(-5px);
}

.service-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-item h3 {
  color: var(--primary-color);
  padding: 1rem;
  margin: 0;
}

.service-item p {
  padding: 0 1rem 1rem;
}

.service-contact {
  margin-top: 2rem;
  text-align: center;
}

.service-contact p {
  margin-bottom: 1rem;
}

.and-more {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.contact-btn-highlight {
  display: inline-block;
  background-color: var(--accent-color);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-btn-highlight:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* 社長案内 */
.message {
  padding: 4rem 1rem;
  background-color: #fff;
}

.message-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.message-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.message-text {
  background-color: #f8fafc;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  line-height: 2;
}

.message-text p {
  margin-bottom: 2rem;
}

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

/* 経営理念 */
.philosophy {
  padding: 4rem 1rem;
  background-color: #fff;
}

.philosophy-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.philosophy-item {
  background-color: #f8fafc;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.philosophy-number {
  background-color: var(--primary-color);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  flex-shrink: 0;
}

.philosophy-item p {
  margin: 0;
  line-height: 2;
  font-size: 1.1rem;
}

/* 会社案内 */
.company {
  padding: 4rem 1rem;
  background-color: #fff;
}

.company-content {
  max-width: 1200px;
  margin: 0 auto;
}

.company-main-info {
  background-color: var(--primary-color);
  color: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.company-main-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.company-main-info p {
  margin-bottom: 0.5rem;
}

.company-main-info i {
  margin-right: 0.5rem;
  width: 20px;
}

.company-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.company-detail-item {
  background-color: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.company-detail-item h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.company-detail-item i {
  margin-right: 0.5rem;
}

.company-detail-item ul {
  list-style-type: none;
  padding-left: 0;
}

.company-detail-item li {
  margin-bottom: 0.5rem;
}

.company-map {
  margin-top: 2rem;
}

.company-map h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.company-map iframe {
  width: 100%;
  height: 450px;
  border-radius: 8px;
}

/* お問い合わせ */
.contact {
  padding: 4rem 1rem;
  background-color: var(--background-color);
}

.contact-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-buttons a {
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s, background-color 0.3s;
}

.contact-buttons a:hover {
  transform: translateY(-2px);
}

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

.contact-buttons .contact-btn:hover {
  background-color: var(--secondary-color);
}

.contact-buttons .phone-btn {
  background-color: #fff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.contact-buttons .phone-btn:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.business-hours {
  margin-top: 2rem;
  text-align: center;
}

.business-hours p {
  margin-bottom: 0.5rem;
}

/* フッター */
footer {
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 2rem;
}

/* トップへ戻るボタン */
.to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--primary-color);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

.to-top:hover {
  background-color: var(--secondary-color);
}

/* レスポンシブ対応 */
@media (max-width: 809px) {
  .pc-nav {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .sp-nav.active {
    display: block;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .company-content {
    grid-template-columns: 1fr;
  }

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

  .contact-buttons {
    flex-direction: column;
  }

  .contact-buttons a {
    width: 100%;
    justify-content: center;
  }

  .company-table,
  .company-table tbody,
  .company-table tr,
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table th {
    text-align: center;
    padding: 0.5rem;
  }

  .company-table td {
    padding: 1rem 0.5rem;
  }

  .company-table tr {
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
  }

  .message-content {
    grid-template-columns: 1fr;
  }

  .message-text {
    padding: 1.5rem;
    text-align: left;
  }

  .philosophy-item {
    padding: 1.5rem;
  }

  .philosophy-item p {
    font-size: 1rem;
  }
}


.company-logo {
  margin-top: 2rem;
  text-align: center;
  background-color: #fffff;
  padding: 2rem;
  border-radius: 8px;
}

.company-logo img {
  max-width: 300px;
  height: auto;
}

@media (max-width: 809px) {
  .company-logo img {
    max-width: 100%;
  }
}
