body {
  margin: 0;
  padding: 0;
}
/* ヘッダー全体 */
header {
  background-color: #000; /* 黒背景 */
  color: #fff; /* 文字白 */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 50px;
  position: relative;
  z-index: 1000;
  font-family: Arial, sans-serif;
}

/* ロゴ */
.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

/* ナビリンク */
nav {
  display: flex;
  gap: 15px;
}
nav a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  transition: color 0.3s;
}
nav a:hover {
  color: #f0a500; /* ホバー時アクセント色 */
}

/* ドロップダウン親 */
.dropdown {
  position: relative; /* サブメニューの基準 */
  display: inline-block; /* 横並びのため */
}

/* ドロップダウンメニュー */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; /* 親の下に表示 */
  margin-top: -2px;
  left: 0;
  background-color: #111;
  min-width: 150px;
  border-radius: 4px;
  padding: 5px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}
.dropdown-menu li {
  list-style: none;
}
.dropdown-menu li a {
  padding: 8px 15px;
  display: block;
  color: #fff;
  text-decoration: none;
}
.dropdown-menu li a:hover {
  background-color: #333;
}

/* ドロップダウン表示 */
.dropdown:hover .dropdown-menu {
  display: block;
}

/* Heroセクション */
.hero {
  position: relative;
  height: 100vh; /* 画面全体に表示 */
  background-size: cover;
  background-position: center;
  padding-top: 100px; /* ヘッダー分だけ余白を作る */
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
}
.hero-content h1 {
  font-size: 50px;
}
.hero-content p {
  font-size: 30px;
}

/* 題名 */
/* セクション全体 */
.about-section {
  position: relative;
  width: 100%;
  height: 400px; /* 好きな高さに調整 */
  overflow: hidden;
}

/* 画像 */
.about-section .about-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像の縦横比を維持して全体表示 */
  display: block;
}

/* 文字を画像上に重ねる */
.about-section .about-text {
  position: absolute;
  top: 50%; /* セクションの真ん中 */
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff; /* 文字色 */
  text-align: center;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); /* 文字を見やすく */
}

/* 言語切替ボタン */
.lang-switch button {
  background-color: #111;
  color: #fff;
  border: none;
  margin-left: 10px;
  padding: 5px 12px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s;
}
.lang-switch button:hover {
  background-color: #333;
}

/* 最初は英語リンクを非表示 */
.lang-item[data-lang="en"] {
  display: none;
}

/* レスポンシブ対応（簡易） */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  nav {
    flex-direction: column;
    gap: 5px;
  }
  .lang-switch {
    margin-top: 10px;
  }
}

/* -----------------------------------------哲学---------------------------------------------------------------- */
body {
  font-family: "Yu Gothic", "Hiragino Kaku Gothic Pro", sans-serif;
  color: #ffffff;
  margin: 0;
  padding: 0;
}

.company-philosophy {
  background-color: #312b29;
  display: flex;
  justify-content: center; /* 中央寄せ */
  padding: 50px 20px;
}

.philosophy-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 800px; /* 最大幅 */
}

.philosophy-item {
  /* background-color: #1f1f1f;  */
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 12px;
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); */
  text-align: left; /* 左揃え */
}

.philosophy-heading {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.philosophy-tag {
  display: inline-block;
  background-color: #ffff; /* アクセント色 */
  color: #000000;
  padding: 3px 10px;
  border-radius: 5px;
  margin-right: 10px;
  font-size: 1rem;
}

.philosophy-subtitle {
  font-size: 1.4rem;
  font-style: italic;
  margin-bottom: 15px;
  color: #cccccc;
}

.philosophy-text {
  font-size: 1rem;
  line-height: 1.8;
}

/* -----------------------------------------物件---------------------------------------------------------------- */

.property-timeline {
  overflow: hidden;
  background: #f7f7f7;
  padding: 40px 0;
}

.timeline-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.timeline-item {
  min-width: 250px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
  text-align: center;
}

.timeline-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.timeline-item h4 {
  margin: 5px 0;
  font-size: 16px;
  color: #333;
}

.timeline-item p {
  font-size: 14px;
  color: #666;
}

.timeline-items {
  display: flex;
  gap: 40px;
  width: max-content; /* コンテンツ幅に合わせる */
  animation: scroll-left 30s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  } /* 複製分まで流す */
}

/* -----------------------------------------Contact---------------------------------------------------------------- */
/* ===== 全体レイアウト ===== */
.contact {
  display: block;
  text-align: center;
  padding-bottom: 30px;
  background-color: #fff;
}

/* 見出し部分 */
.contact .contact-headline {
  margin-top: 5%;
  color: black;
  font-size: 35px; /* メインの大きさ */
  text-align: center;
  display: inline-block;
  line-height: 1.2em;
}

.contact-headline .main-text {
  font-size: inherit; /* h2のサイズを継承 */
  font-weight: bold;
}

.contact-headline .sub-text {
  font-size: 15px; /* サブタイトルは小さめ */
  display: block;
  margin-top: 5px;
  color: #666;
}

/* ===== 詳細部分のレイアウト ===== */
.contact-detail {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}

.contact-detail > div {
  flex: 1;
  padding: 20px;
  box-sizing: border-box;
  border-right: 1px solid #ccc; /* 縦線の仕切り */
}

.contact-detail > div:last-child {
  border-right: none; /* 最後は線なし */
}

.contact-detail h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #333;
}

.contact-detail p {
  margin: 5px 0;
  font-size: 14px;
  color: #444;
}

/* ===== ボタン ===== */
.btn {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 20px;
  font-size: 14px;
  transition: background 0.3s, color 0.3s;
}

.btn:hover {
  background: #fff;
  color: #000;
  border: 1px solid #000;
}

/* ===== 多言語対応 (英語/日本語の切り替え用) ===== */
.lang-item {
  display: none; /* 初期は非表示 */
}

/* JSで .lang-en / .lang-ja を body に付与して切替 */
body.lang-en .lang-item[data-lang="en"] {
  display: inline;
}

body.lang-en .lang-item[data-lang="ja"] {
  display: none;
}

body.lang-ja .lang-item[data-lang="en"] {
  display: none;
}

body.lang-ja .lang-item[data-lang="ja"] {
  display: inline;
}

/* ブロック要素（pタグ）は block 表示に戻す */
.lang-item[data-lang="en"],
.lang-item[data-lang="ja"] {
  display: none;
}

body.lang-en .lang-item[data-lang="en"],
body.lang-ja .lang-item[data-lang="ja"] {
  display: block;
}

/* ----------------------------------------- Footer ---------------------------------------------------------------- */

.footer {
  background-color: #000;
  color: #fff;
  padding: 30px 40px; /* 左右に少し余白 */
  font-size: 0.9rem;
}

.footer-content {
  text-align: left;
  line-height: 1.6;
}

.footer-content .company-name {
  font-weight: bold;
  font-size: 1rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 10px;
  font-size: 0.8rem;
  color: #ccc;
}
