/* =====================================
   カラー変数・リセット・共通設定
===================================== */
:root {
  --primary-color: rgba(0,48,135,0.85);
  --secondary-color: rgba(153,153,153,0.60);
  --footer-bg-color: rgba(0,48,135,0.9);
  --text-color: #696969;
  --hover-bg-color: #444;
}

/* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Vegas背景にグラデーション */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}



/* =====================================
   ヘッダーとナビゲーション
===================================== */
/* 固定ヘッダー */
.fixed-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--primary-color);
  z-index: 1000;
  padding: 20px 40px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.logo {
  height: 40px;
  flex-shrink: 0;
}
/* 中央寄せナビメニュー */
.navbar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
}

.menu {
  display: flex;
  list-style: none;
  justify-content: center;
  gap: 20px;
}

.menu > li {
  position: relative;
  padding: 10px;
  color: white;
  cursor: pointer;
}

.menu > li:hover {
  background: var(--hover-bg-color);
}

.menu > li a {
  color: white;
  text-decoration: none;
}
/* プルダウンメニュー */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  background: #555;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 150px;
}

.submenu li a {
  display: block;
  padding: 10px;
  color: white;
  text-decoration: none;
}

.submenu li a:hover {
  background: #666;
}

.dropdown:hover .submenu {
  display: block;
}
/* お問い合わせボタン */
.contact-btn {
  background-color: #f90;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
  flex-shrink: 0;
}

.contact-btn:hover {
  background-color: #e08000;
}

/* =====================================
   ハンバーガー　＋　全画面メニュー
===================================== */
/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2000;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  display: block;
}
/* 全画面メニュー */
.overlay-menu {
  display: none;
  position: fixed;
  z-index: 3000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.95);
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.overlay-menu ul {
  list-style: none;
  padding: 0;
}

.overlay-menu ul li {
  margin: 20px 0;
}

.overlay-menu ul li a {
  color: white;
  font-size: 24px;
  text-decoration: none;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
  z-index: 3001;
}

/* フォーカススタイル */
a:focus, button:focus {
  outline: 3px solid var(--hover-bg-color);
}

/* =====================================
   コンテンツエリア・セクション
===================================== */

/* Vegas背景対象要素 */
#mainimg {
  height: 80vh;
  width: 100%;
  z-index: 0;
}

/* コンテンツエリア */
.content-area {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  position: relative;
  z-index: 10;
}

.content-area h1 {
  font-size: 24px;
letter-spacing: 0.1em;
  margin-bottom: 10px;
}

/* コンテンツブロック共通 Box */
.content-block {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 50px 10px;
  flex-wrap: wrap;
  background: none;
}

/* テキスト */
.content-text {
  flex: 1.5;
  padding: 20px 10px 30px 30px; /* テキストエリアの上下左右に余白 */
  color: var(--text-color);
}

.content-text h3 {
  font-size: 20px;
　letter-spacing: 0.1em;
  margin-bottom: 20px;
}

/* 左画像・右テキスト（通常） */
.left-image {
  flex-direction: row;
}
/* 右画像・左テキスト */
.right-image {
  flex-direction: row-reverse;
}



/* 各ボックス内のレイアウト変更 */
.content-img {
  flex: 1;
}

.content-img img {
  width: 100%; /* 画像の大きさを指定 */
  height: 250px;
}

/* === アパートメントカテゴリ用 グリッドスタイル === */
/* アイテムラップ */
.content {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

/* 各アイテム：PC時は4列 */
.content-item {
  width: calc(25% - 12px);
  background-color: #fafafa;
  padding: 8px;
  border-radius: 8px;
  text-align: left;
  transition: box-shadow 0.3s ease;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.content-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.content-item img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 8px;
}

.content-item .bullet-size {
  color: #444;
  margin-right: 4px;
  font-size: 14px;
}

.content-item .text-size {
  font-size: 14px;
  color: var(--text-color);
  line-height: 1.4;
}

/* =====================================
   タイトル・見出し
===================================== */
/* コンテンツタイトル */
.title_head h1, 
.title_head h2,
 .title_head h3,
 .title_head p {
  color: var(--text-color);
  margin: 0;
  text-align: center;
}

.title_head h1 {
  font-size: 36px;
  margin-top: 30px;
  margin-bottom: 10px;
　letter-spacing: 0.2em;
}
.title_head h2 {
　font-size: 6px;
  margin-bottom: 10px;
  letter-spacing: 0.1em;
}
.title_head p {
　font-size: 4px;
  margin-bottom: 10px;
  letter-spacing: 0.1em;
}
.title_head hr {
  border: none;
  height: 1px;
  background-color: #ccc;
  width: 100%;
  margin: 20px 0;
}

/* =====================================
   新着情報
===================================== */
.news-section {
  margin-top: 40px;
}

.news-section h2 {
  font-size: 20px;
  margin-bottom: 15px;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #ccc;
  font-size: 15px;
}

/* カテゴリアイコン（色別） */
.news-item .category {
  display: inline-block;
  min-width: 100px;
  font-size: 13px;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  text-align: center;
}

.news-item.red .category { background-color: #e74c3c; }
.news-item.blue .category { background-color: #3498db; }
.news-item.yellow .category { background-color: #f1c40f; color: #333; }
.news-item.gray .category { background-color: #7f8c8d; }

.news-item .date { font-size: 13px; color: #666; }

.news-item a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
  flex-grow: 1;
}

.news-item a:hover {
  text-decoration: underline;
}

.show-all-btn {
  margin-top: 15px;
  padding: 8px 16px;
  font-size: 14px;
  border: none;
  background-color: #666;
  color: white;
  cursor: pointer;
  border-radius: 4px;
}

.show-all-btn:hover {
  background-color: var(--hover-bg-color);
}

/* =====================================
   フッター
===================================== */
.site-footer {
  width: 100%;
  font-size: 14px;
  color: #fff;
  z-index: 2;
  position: relative;
}

.footer-links-area {
  background-color: var(--secondary-color);
  padding: 25px 0px;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin: 0;
  padding: 5px 0px;
}

.footer-links li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links li a:hover {
  color: var(--hover-bg-color);
}

/* コピーライト */
.footer-bottom {
  background-color: var(--footer-bg-color);
  text-align: center;
  padding: 15px 10px;
  font-size: 12px;
  color: #aaa;
}

/* =====================================
   画像＋テキスト縦並びセクション
===================================== */
/* 中央画像・下テキスト */
.imgbody {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0;
}

.imgbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 10px;
}

.imgbox p {
  text-align: center;
  font-size: 16px;
  color: var(--text-color);
  margin-top: 20px;
}

/* =====================================
   2×2 ボックスグリッド
===================================== */
.box-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.box-item {
  display: flex;
  flex-direction: column;
  background: #fafafa;
  padding: 15px;
  border-radius: 10px;
}

/* 各ボックス内のレイアウト変更 */
.box-item .content-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.box-item .content-top img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.box-item .content-top h2 {
  flex: 1;
  padding-left: 15px;
  color: #4169e1;
}

.box-item .text {
  margin-top: 15px;
  flex: 1 1 100%;
}

.box-item .text p {
  font-size: 14px;
  color: var(--text-color);
}

/* =====================================
   メディアクエリ
===================================== */

/* スマホ対応：2列×2行 
@media screen and (max-width: 768px) {
  .content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .content-item {
    width: 100%;
  }
}*/

/* =====================================
   メディアクエリ
===================================== */
@media (max-width: 1024px) {
  .content-area { padding: 15px; }
  .content-text h3 { font-size: 18px; }
  .content-block { gap: 20px; margin: 30px 0; }
  .box-item { padding: 10px; }
  .box-item h2 { font-size: 18px; }
}

@media (max-width: 768px) {
  .title_head h1 { font-size: 1.5rem; }
  .title_head h2 { font-size: 1.2rem; }
  .title_head p { font-size: 0.9rem; }
  .content-text p { font-size: 0.8rem; }
  .hamburger { display: flex; }
  .menu,
  .contact-btn { display: none; }
  .box-grid { grid-template-columns: 1fr; }
  .top-visual img,
  #mainimg { height: 250px; }
  .imgbox { padding: 0 10px; }
  .imgbox p { font-size: 0.8rem; }
  .content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
　/* グリッド表示スタイル */
　.container { width: 100%; margin-left: 0;}

  .content-item { width: 100%; }
　.content-item .text-size { font-size: 12px; }
　.content-item .bullet-size { font-size: 10px; }

  .content-area { margin: 5px auto; }
  .content-text h3 { font-size: 16px; }
  .content-text p { font-size: 0.4rem; }
  .content-block { gap: 15px; margin: 20px 0; }

　.category { width:500px;  margin: 0 15px; }

　.image-container {
　　margin-left:10%;
    flex-direction: column;
    gap: 10px;
  }
　.image-container a {width: 360px;}
　.image-container img {width: 380px;}

  /*.box-item { padding: 8px; }
  .box-item h2 { font-size: 16px; }*/

  .content {
    display: grid; 
　　margin-left: -60%;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
　　width: 100%;
  }
  /*.content-item {
    display: flex;
    flex-direction: column;
    align-items: center;
  }*/

}


