body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #f4faff;
  color: #333;
  overflow-x: hidden;
}

main {
  min-height:100vh;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.site-header {
background: linear-gradient(90deg, #ffffff, #f8f9fa);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 5px 5% 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* 影で奥行き */
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #b2ebf2, #00bcd4, #0288d1);
}

.logo {
  font-size: 1.8em;
  font-weight: 700;
  color: #0077b6;
  margin: 0;
  z-index: 1002;
  position: relative;
}

.main-nav {
  position: relative;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  margin: 0;
  flex-direction: row;
  justify-content:center;
}

.main-nav li {
  position: relative;
  padding:0 10px;
border-left:1px solid #eee;
border-size:50%;
}

.submenu ul {
  display: none;
position: fixed;
left:0;
width: 100vw;
  background: #e0f7ff;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  flex-direction: column;
  box-sizing: border-box;  /* パディング含めて幅を調整 */
  z-index: 999;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex; /* 常にblockにしておく */
}

.submenu ul:not(.show) {
  /* showクラスがない時は透明でクリック不可にして目立たなく */
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

.submenu.show ul {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  height: auto;
  overflow: visible;
}

.label-ja {
  font-size: 1rem;
  color:#0077b6;
}

.label-en {
  font-size: 0.7rem;
  color: #2299e8;
  font-weight: normal;
  line-height: 1;
  margin-top: 2px;
}

.main-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 32px; /* ← 文字幅広く */
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 100%;
  height: 2px;
  background-color: #00aaff; /* ボーダー色（青） */
  transition: transform 0.3s ease;
}

.main-nav a:hover,
.main-nav a:hover .label-ja,
.main-nav a:hover .label-en {
  color: #00aaff;
}

.main-nav a:hover::after {
  transform: translateX(-50%) scaleX(1); /* 下線を表示 */
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  z-index: 1001;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: #0077b6;
  transition: all 0.3s ease;
}

.hamburger.active div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active div:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


.contact-section {
  background: #f4faff; /* サイト全体に馴染む淡い色 */
  color: #0077b6;
  padding: 100px 20px;
  text-align: center;
}

.contact-container {
  max-width: 700px;
  margin: 0 auto;
}

.contact-section h2 {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 60px;
}

.contact-phone {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-weight: 600;
  margin-bottom: 60px;
  gap: 20px;
  color: #0077b6;
}

.contact-phone i {
  font-size: 2.4em;
  background: #00bcd4;
  color: white;
  padding: 18px;
  border-radius: 50%;
}

.contact-button {
  display: inline-block;
  background-color: #0077b6;
  color: white;
  padding: 20px 60px;
  border-radius: 50px;
  font-size: 1.4em;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.2s, background 0.3s;
}

.contact-button:hover {
  background: #00bcd4;
  transform: translateY(-4px);
}

.about-section {
  background-color: #f9fcff;
  padding: 60px 20px;
}

.about-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.about-text {
  flex: 1 1 400px;
}

.about-text h2 {
  font-size: 2.5em;
  color: #0077b6;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1.2em;
  color: #333;
  line-height: 1.8;
  margin-bottom: 15px;
}

.about-image {
  flex: 1 1 400px;
}

.about-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* スマホ対応 */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
  }
  .about-image, .about-text {
    flex: 1 1 100%;
  }
}

.service-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center; /* 中央揃え */
  text-align: center;  /* 文字も中央揃え */
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-card .service-icon {
  font-size: 3em;
  color: #0077b6;
  margin-bottom: 15px;
  display: flex;
  justify-content: center; /* 横方向センタリング */
  align-items: center;     /* 縦方向センタリング */
}
.service-card h3 .note {
  display: block;  /* ブロックにすることで改行 */
  font-size: 0.9em;
  margin-top: 5px;
}

.map-container {
  width: 100%;
  height: 400px; /* PC用の高さ */
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-top: 20px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  .map-container {
    height: 300px; /* スマホ用に少し低くする */
  }
}





@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

.main-nav ul {
  display: none;
  flex-direction: column;
  background: #e0f7ff;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  padding: 80px 20px 20px 20px;
  border-left: 1px solid #b2ebf2;
  z-index: 1000;
  box-sizing: border-box;
  align-items: flex-start;
}

.main-nav.active ul {
  display: flex;
}

.main-nav li {
  width: 100%;
}

.submenu ul {
  display: none!important;
  flex-direction: column;
  background: none;
  box-shadow: none;
  position: static;
  width: 100%;
  height:auto;
  border-left:none;
  padding: 15px;
}

.submenu.show ul {
  display: flex!important;
}

  .intro-section h2 {
    font-size: 1.5em;
  }

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

  .contact-button {
    width: 100%;
  }
}

.intro-section {
  position: relative;
  height: 500px;
  display: flex;
  justify-content: left;
  align-items: center;
  text-align: left;
  overflow: hidden;
  padding: 0 20px;
}


.intro-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  animation: backgroundSlide 24s infinite;
  z-index: -1;
}

@keyframes backgroundSlide {
  0% { background-image: url('img/image1.jpg'); }
  33% { background-image: url('img/image2.jpg'); }
  66% { background-image: url('img/image3.jpg'); }
  100% { background-image: url('img/image1.jpg'); }
}



.intro-section h2 {
  font-size: 3em;
text-shadow: 2px 2px 3px #111;
color:#fff;
/*  color: #03045e;*/
/*  background: rgba(255, 255, 255, 0.8);*/
  padding: 1em;
  border-radius: 10px;
}

.services-section {
  background-color: #f1faff;
  padding: 60px 20px;
}

.services-section h2 {
  text-align: center;
  font-size: 1.8em;
  color: #0077b6;
  margin-bottom: 40px;
}

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

.service-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  color: #03045e;
}

.location-section,
.contact-section {
  padding: 60px 20px;
  text-align: center;
}

.location-section h2 {
  font-size:2.8em;
  color: #0077b6;
}

.contact-button {
  display: inline-block;
  background-color: #0077b6;
  color: white;
  padding: 16px 34px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 20px;
  font-weight: bold;
  font-size: 1.2em;
  box-shadow: 0 4px 10px rgba(0, 119, 182, 0.3);
  transition: background-color 0.3s;
}

.contact-button:hover {
  background-color: #023e8a;
}

.site-footer {
  background-color: #bde0fe;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9em;
  color: #333;
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.5em;
  }

  .intro-section {
    height: 400px;
  }

  .intro-section h2 {
    font-size: 1.2em;
    padding: 0.8em;
  }

  .site-header {
    padding: 10px 5%;
  }
}

/* JavaScript 用のクラスは外部スクリプトで制御 */