/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
}

h1, h2, h3 {
  margin-bottom: 10px;
}

/* Header */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #fff;
}

.left-logo,
.right-logo {
  height: 80px;
}

nav {
  background-color: #2c3e50;
  text-align: center;
}

nav ul.menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

nav ul.menu > li {
  position: relative;
}

nav ul.menu > li > a {
  display: inline-block;
  padding: 15px 20px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.5em;
}

nav ul.menu li:hover > a {
  background-color: #1a252f;
}

/* Submenu */
nav ul.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #34495e;
  min-width: 180px;
  list-style: none;
  z-index: 1000;
}

nav li.dropdown:hover .submenu {
  display: block;
}

nav ul.submenu li a {
  display: block;
  padding: 10px 15px;
  color: #fff;
  text-decoration: none;
}

nav ul.submenu li a:hover {
  background-color: #2c3e50;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100vw;
  height: 60vh;
  overflow: hidden;
}

.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slideshow 15s infinite;
}

.hero img:nth-child(1) { animation-delay: 0s; }
.hero img:nth-child(2) { animation-delay: 5s; }
.hero img:nth-child(3) { animation-delay: 10s; }

@keyframes slideshow {
  0% { opacity: 0; }
  5% { opacity: 1; }
  30% { opacity: 1; }
  35% { opacity: 0; }
  100% { opacity: 0; }
}

.hero h1 {
  position: absolute;
  z-index: 2;
  color: white;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5em;
}

/* Services Section */
.section-title {
  text-align: center;
  font-size: 2em;
  margin: 20px 0;
  color: #333;
}


.service-wrapper {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 20px;
}

.service {
  flex: 1 1 calc(33.33% - 20px);
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.service img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.service ul {
  margin-top: 15px;
  padding-left: 20px;
}

.service-details {
  text-align: left;
}

.left-aligned-list {
  text-align: left;
  padding-left: 20px;
}

/* Blog Section */
/* index.htmlのLatest Blog */
.index-page #blog .blog-wrapper {
  display: flex;
  justify-content: flex-start; /* 左寄せ */
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.index-page #blog .blog-wrapper .blog-item {
  flex: 0 0 500px; /* 固定幅で並べる */
  max-width: 500px;
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.index-page #blog .blog-wrapper .blog-item img {
  width: 100%;          /* 枠の幅にフィット（400px - padding） */
  height: 300px;        /* 高さを固定 */
  object-fit: cover;    /* トリミングして均一表示 */
  border-radius: 4px;
  margin-bottom: 10px;
}


/* blog.htmlの記事一覧 */
.blog-page #blog .blog-wrapper {
  display: flex;
  justify-content: flex-start; /* 左寄せに変更 */
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.blog-item {
  flex: 1 1 400px; 
  max-width: 540px;
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);

  display: flex;  
  flex-direction: column;
  align-items: center; 
}


.blog-item img {
  width: 480px;
  height: 300px;
  border-radius: 4px;
  margin-bottom: 10px;
  object-fit: cover;  /* 画像が枠に合わせてトリミングされる */
}

.blog-item h3 {
  font-size: 1.2em;
  margin: 0 0 10px 0;
  text-align: center;
}

.blog-item p {
  font-size: 0.95em;
  line-height: 1.5;
  margin: 0;
  text-align: left;
}

@media screen and (max-width: 900px) {
  .blog-item {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

@media screen and (max-width: 600px) {
  .blog-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* About Page Specific Styles */
.about-visual {
  position: relative; /* 位置を設定 */
  width: 100%;
  height: auto;
  display: block;
}

.about-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.overlay-text {
  position: absolute; /* 絶対位置指定 */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* 中央寄せ */
  color: white;
  font-size: 2em;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.member-profile {
  display: flex;
  align-items: flex-start;
  margin-bottom: 60px;
  gap: 40px;
  padding-left: 12vw;
  padding-right: 12vw;
  flex-wrap: wrap;
}

.member-profile img {
  width: 400px;         /* ← 画像サイズを固定（倍） */
  height: auto;         /* 縦横比を維持 */
  margin-left: 0;
  margin-right: 20px;
  flex-shrink: 0;
}

.member-profile div {
  flex: 1;
  word-break: break-word;
  line-height: 1.5;
  min-width: 280px;
}

.trademark-disclaimer {
  padding: 20px;
  /* background-color: #fff; この行を削除またはコメントアウト */
  background-color: #f4f4f4; /* ページ全体の背景色に合わせる */
  color: #333;
  text-align: center;
  margin-bottom: 20px;
  font-size: 0.9em;
}

.about-us-heading {
  text-align: center; /* 中央に配置 */
  margin: 20px 0; /* 上下に適度な余白を追加 */
  font-size: 2em; /* フォントサイズを調整 */
  color: #333; /* テキストカラーを設定 */
}


/* Disclaimer Section */
.disclaimer {
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
  max-width: none; /* 最大幅制限を解除 */
  width: 100%; /* 横幅いっぱいに */
  box-sizing: border-box;
  padding-left: 5vw; /* ビューポート幅の5%を左右の余白に */
  padding-right: 5vw;
  color: #333;
}


/* Contact Section */
#contact {
  padding: 40px 20px;
  background-color: #fff;
  text-align: center;
}

#contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  width: 100%;
  max-width: 600px;
}

.contact-block {
  width: 100%;
  margin-bottom: 20px;
}

#contact-info p {
  margin: 5px 0;
  white-space: nowrap;
}

@media screen and (max-width: 600px) {
  #contact-info p {
    white-space: normal;
  }
}

#contact-info strong {
  font-weight: bold;
}

/* Careers */
.careers-visual {
  width: 100vw; /* ビューポートの幅いっぱいに設定 */
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover; /* 画像をコンテナにフィットさせる */
}


/* Footer */
footer {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 20px;
}
