body {
  font-family: "Helvetica Neue", sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
}

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

.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  text-align:center;
}
.flex {
display:flex;
  justify-content:space-between;
  align-items:center;
}

header {
  background: linear-gradient(135deg,#1c2740, #0b1326, #111c2f);
  color: #fff;
  padding: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.logo {
  margin: 0;
  font-size: 1.5em;
}

.logo img {
  width:80px;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  padding-bottom: 4px;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background-color: #fff;
  transition: width 0.3s ease-in-out;
}

nav a:hover {
  opacity:0.7;
}

nav a:hover::after {
  width: 100%;
  opacity:0.7;
}

.hero {
  position: relative;
  background: url('hero.jpg') no-repeat center/cover;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 80px);
  max-height: calc(100vh - 80px);
  min-height: calc(100vh - 80px);
  overflow: hidden; /* 念のため */
  z-index: 0;
  animation: zoomHero 4s ease-out forwards;
  background-size: 120%; /* 初期状態を大きめに */
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0; /* top, right, bottom, left: 0 */
  background: rgba(0, 0, 0, 0.4); /* 半透明の黒っぽいグレー */
  z-index: 1;
}

.hero > * {
  position: relative;
  z-index: 2;
}


/* アニメーション定義 */
@keyframes zoomHero {
  0% {
    background-size: 120%;
  }
  100% {
    background-size: 100%;
  }
}


/* アニメーション定義 */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

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


.services, .message-section, .contact {
  padding: 60px 20px;
  background: #f9f9f9;
}

h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
  font-weight: 700;
  color: #0a2440;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 60px;
  height: 3px;
  background: #d4af37; /* ゴールドカラー */
  transform: translateX(-50%);
  border-radius: 2px;
}

.hero h2 {
  font-size: 3em;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5); /* 影で文字くっきり */
  padding-bottom: 0;        /* 下線用の余白もなし */
  position: static;         /* ::after を打ち消す */
  color: #fff;
  display:block;
}

.hero h2::after {
  content: none; /* アンダーラインを消す */
}


.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.service-item {
  flex: 1 1 300px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.message-section {
  background: #ffffff;
  padding: 80px 20px;
}

.message-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

.message-text {
  flex: 1 1 500px;
  font-size: 1.2rem;
  line-height: 2;
  color: #333;
}

.message-text p {
  margin-bottom: 1.5em;
}

.message-text .em {
  color: #007B8A;
  font-weight: bold;
}

.message-image {
  flex: 1 1 300px;
  text-align: center;
}

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


.btn-wrapper {
  margin-top: 30px;
  text-align: center;
}

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  user-select: none;
}

/* メインボタン：会社について詳しく知る */
.btn-primary {
  background: #007B8A;
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 123, 138, 0.4);
}

.btn-primary:hover {
  background: #005e6e;
  box-shadow: 0 6px 16px rgba(0, 94, 110, 0.6);
}

/* セカンダリボタン：お問い合わせ */
.btn-secondary {
  background: #f0f0f0;
  color: #007B8A;
  border: 2px solid #007B8A;
  margin-top:40px;
}

.btn-secondary:hover {
  background: #007B8A;
  color: white;
  border-color: #007B8A;
  box-shadow: 0 6px 16px rgba(0,123,138,0.4);
}

.btn-secondary .arrow-icon {
  display: inline-block;
  vertical-align: middle; /* 中央寄せ */
  margin-left: 8px;
  margin-bottom: 0;      /* 下の余白をなくす */
  /* 必要に応じて上下の微調整 */
  position: relative;
  top: 2px;              /* 上に少し上げる（マイナス値で下げる） */
  transition: transform 0.3s ease;
}


.btn-secondary:hover .arrow-icon {
  transform: translateY(6px);
}


/* メッセージセクション内でのボタン余白調整 */
.message-btn {
  margin-top: 40px;
}
.service-item h3 {
  display: flex;
  align-items: center;
  gap: 10px; /* アイコンとテキストの間隔 */
  font-weight: 700;
  font-size: 1.3rem;
  justify-content:center;
}

.service-item i {
  color: #0a2440; /* ネイビー系カラーで統一 */
  font-size: 1.5rem;
  min-width: 24px; /* サイズを揃える */
  text-align: center;
}

.contact , .company {
  padding-bottom:100px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #ccc;
}

form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  background: #0a2440;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 5px;
  cursor: pointer;
}

footer {
  background: #0a2440;
  color: white;
  text-align: center;
  padding: 20px 0;
}

/* ハンバーガーメニューのスタイル */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 3px;
  background: white;
  border-radius: 2px;
}

.phone {
  display:none;
}

/* モバイル対応 */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    position: fixed;
    top: 60px;
    right: 0;
    background: #0a2440;
    width: 100%;
    display: none;
    padding: 0;
    height:calc(100vh - 60px);
    text-align: center;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index:1500;
  justify-content: flex-start; /* 中央に寄せる */
  align-items: center;
  }

  nav ul.active {
    display: flex;
    opacity: 1;
    transform: translateX(0);
  }

nav li {
  display:block;
  width:100%;
  padding-top:40px;
}

  header {
   position:fixed;
   width:100vw;
   z-index:1000;
  }

  .hero h2 {
   font-size:1.8rem;
   padding-top:40px;
  }

  .phone {
    display:inline;
  }

  .hero {
   height:240px;
   min-height:240px;
   max-height:240px;
   overflow:hidden;
   padding-top:40px;
  background: url('hero.jpg') no-repeat bottom/cover;
  }

  .hamburger {
    display: flex;
  }

  .container.flex {
    flex-wrap: wrap;
  }

  .message-flex {
    flex-direction: column-reverse;
  }

.container {
width:98%;
max-width:100vw;
}

header .container {
 max-width:90%;
}

.btn-secondary {
font-size:0.8rem;
}

  .service-item {
    flex: 1 1 100%;
  }

form {
max-width:90%;
width:90%;
}
}