@charset "UTF-8";

/* =========================================
   共通設定・レイアウト
========================================= */
.potal-front-page {
  font-family: "Zen Kaku Gothic Antique", "Helvetica Neue", Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

.l-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.potal-section {
  padding: 80px 0;
}

.bg-gray {
  background-color: #f7f9fa;
}

/* =========================================
   セクション見出し（英語＋日本語）
========================================= */
.c-section-header {
  text-align: center;
  margin-bottom: 50px;
}

.c-section-header .en {
  font-family: "Montserrat", sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: #ff9800;
  letter-spacing: 0.1em;
  margin: 0;
  line-height: 1;
}

.c-section-header .ja {
  display: block;
  font-size: 14px;
  color: #333;
  margin-top: 10px;
  font-weight: bold;
  letter-spacing: 0.1em;
}
/* 見出しの下に細いラインを追加する装飾 */
.c-section-header .ja::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background-color: #ff9800; /* オレンジ色のライン */
  margin: 10px auto 0;
}
/* =========================================
   1. ヒーロースライダー（大型化）
========================================= */
.potal-hero-area {
  position: relative;
  width: 100%;
  padding: 40px 0; /* スライダー上下の余白 */
  background: #fff;
}

.hero-content {
  position: absolute;
  bottom: 60px;
  left: 8%;
  color: #fff;
  z-index: 2;
  padding-right: 20px;
}

.hero-label {
  display: inline-block;
  background: #0056b3;
  padding: 6px 16px;
  font-size: 14px;
  border-radius: 30px;
  margin-bottom: 15px;
  font-family: "Montserrat", sans-serif;
}

.hero-title {
  font-family: "Shippori Mincho", serif;
  font-size: 36px;
  font-weight: bold;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  line-height: 1.4;
}

/* =========================================
   3. カードデザイン（共通）
========================================= */
.potal-card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.c-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

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

.c-card__thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.c-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.c-card:hover .c-card__thumb img {
  transform: scale(1.05);
}

.c-card__badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #e74c3c;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 4px;
}

.c-card__body {
  padding: 20px;
  flex-grow: 1;
}

.c-card__date {
  font-size: 12px;
  color: #0056b3;
  font-weight: bold;
  margin-bottom: 8px;
}

.c-card__title {
  font-size: 15px;
  font-weight: bold;
  line-height: 1.5;
}

/* もっと見るボタン */
.c-btn-wrap {
  text-align: center;
  margin-top: 50px;
}

.c-btn-viewmore {
  display: inline-block;
  padding: 16px 60px;
  border: 2px solid #333;
  color: #333;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.c-btn-viewmore:hover {
  background: #333;
  color: #fff;
}

/* =========================================
   4. スプリットレイアウト (Model House & Works)
========================================= */
.potal-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.split-title {
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: bold;
  border-bottom: 2px solid #0056b3;
  padding-bottom: 15px;
  margin-bottom: 30px;
}

.potal-card-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 25px;
}

.c-link-arrow {
  display: inline-block;
  font-size: 15px;
  color: #0056b3;
  text-decoration: none;
  font-weight: bold;
}

.c-link-arrow::after {
  content: "\f0da";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-left: 8px;
}

/* =========================================
   5. ガイドバナー
========================================= */
.potal-guide-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.guide-item {
  flex: 1;
  background: #fff;
  padding: 40px 20px;
  text-align: center;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
  border: 1px solid #f0f0f0;
}

.guide-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: #0056b3;
}

.guide-item .icon {
  font-size: 40px;
  color: #0056b3;
  margin-bottom: 20px;
}

.guide-item h4 {
  font-size: 18px;
  font-weight: bold;
}

/* =========================================
   6. インフォメーション (News & Login)
========================================= */
.potal-info-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 50px;
}

.info-title {
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 20px;
  border-bottom: 2px solid #ccc;
  padding-bottom: 10px;
}

.info-news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-news-list li {
  border-bottom: 1px dashed #ddd;
}

.info-news-list a {
  display: flex;
  align-items: center;
  padding: 20px 0;
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
}

.info-news-list a:hover {
  color: #0056b3;
}

.info-news-list time {
  width: 120px;
  flex-shrink: 0;
  font-size: 15px;
  color: #888;
}

.info-news-list .title {
  font-size: 16px;
  font-weight: bold;
}

.info-login {
  background: #fff;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.info-login p {
  font-size: 14px;
  margin-bottom: 25px;
  color: #666;
}

.login-btns {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn-register,
.btn-login {
  display: block;
  text-align: center;
  padding: 15px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: opacity 0.3s;
}

.btn-register {
  background: #e74c3c;
  color: #fff;
}
.btn-login {
  background: #fff;
  color: #333;
  border: 2px solid #ccc;
}

.btn-register:hover,
.btn-login:hover {
  opacity: 0.8;
}

/* =========================================
   レスポンシブ (SP)
========================================= */
@media screen and (max-width: 900px) {
  .l-container {
    padding: 0 20px;
  }
  .hero-title {
    font-size: 22px;
  }
  .potal-card-grid-4 {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .potal-split-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .potal-guide-grid {
    flex-direction: column;
    gap: 15px;
  }
  .potal-info-grid {
    grid-template-columns: 1fr;
  }
  .info-news-list a {
    flex-direction: column;
    align-items: flex-start;
  }
  .info-news-list time {
    margin-bottom: 5px;
  }
}
@media screen and (max-width: 480px) {
  .potal-card-grid-4 {
    grid-template-columns: 1fr;
  }
  .potal-card-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* カード */
.c-card__body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px; /* 要素間の適度な隙間 */
}

/* 日付 */
.c-card__date {
  font-size: 11px;
  color: #999;
  font-family: "Montserrat", sans-serif;
  margin: 0;
}

/* タイトル*/
.c-card__title {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
  color: #333;
  margin: 0;
}

/* 説明文 */
.c-card__excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 0;
  /* 2行表示を超えたら...にする設定 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* カード内の要素間隔を調整 */
.c-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* カード内の会社名エリア */
.c-card__company-name {
  margin-top: auto; /* これにより下端に固定 */
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid #eee;
  font-size: 11px;
  color: #888;
  display: flex;
  align-items: center;
}

.c-card__company-name i {
  margin-right: 5px;
  font-size: 10px;
}

/* カード全体の高さ調整（均等にする） */
.c-card--small {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* タイトルと日付の調整 */
.c-card__title {
  font-size: 15px;
  line-height: 1.4;
  color: #333;
}

/* COMPANYカードの全体設定 */
.c-card--company {
  display: flex;
  flex-direction: column;
  height: 100%; /* 全てのカードの高さを揃える */
}

/* ロゴの表示エリアを正方形に */
.c-card__thumb--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 10px;
}

.c-card__thumb--logo img {
  object-fit: contain; /* ロゴが切れないように */
  width: 80% !important;
}

/* タイトルと説明文の調整 */
.c-card--company .c-card__title {
  font-size: 14px;
  margin-bottom: 5px;
}

/* 抜粋文のデザイン（すっきり見せる） */
.c-card--company .c-card__excerpt {
  font-size: 12px;
  color: #666;
  margin-bottom: auto; /* 下の要素を押し出す */
  padding: 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* 最大3行まで表示 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* COMPANYカードのロゴエリアをさらに大きく */
.c-card--company .c-card__thumb--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 20px; /* 枠と画像の隙間 */
  height: 220px; /* ★ここを大きくするほど画像枠が伸びます */
  width: 100%;
  border-bottom: 1px solid #f0f0f0;
}

/* 画像を枠内に最大化してフィットさせる */
.c-card--company .c-card__thumb--logo img {
  max-width: 100% !important; /* 枠の幅を超えない */
  max-height: 100% !important; /* 枠の高さを超えない */
  width: auto !important; /* 自動調整 */
  height: auto !important; /* 自動調整 */
  object-fit: contain !important; /* 縦横比を維持して枠内に収める */
  display: block;
}

/* カードボディの微調整 */
.c-card--company .c-card__body {
  padding: 15px;
}

/* ラベルの共通ベースデザイン */
.c-card__label {
  position: absolute;
  top: 10px;
  left: 10px; /* 左上 */
  z-index: 10;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.6); /* 半透明ブラックでスッキリ */
  backdrop-filter: blur(4px); /* 軽くぼかしを入れてオシャレに */
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* モデルハウス専用：右上ラベル */
.c-card__label--mh {
  top: 10px;
  right: 10px; /* 右上 */
  left: auto;
  background-color: #0056b3; /* モデルハウスは青系 */
}

/* カテゴリー用ラベル（左上） */
.c-card__label--cat {
  background-color: #e74c3c; /* 実例などは赤系など */
}

/* タイトルエリアの調整 */
.c-card__title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

/* タイトルフォントの調整 */
.c-card__title {
  font-size: 15px !important;
  font-weight: bold;
  color: #333;
  line-height: 1.4;
  margin: 0 !important;
}

/* アイコンの色指定（セクションごとに変えることも可能） */
.c-card__body i {
  font-size: 16px;
  color: #0056b3; /* ブランドカラーの青 */
}

@media screen and (max-width: 800px) {
  /* 全ての c-card を横長に変換 */
  .c-card {
    flex-direction: row; /* 横並びに */
    height: 120px; /* 高さを抑える */
    align-items: center;
    gap: 15px;
    padding: 10px;
  }

  .c-card__thumb {
    width: 100px; /* サムネイルを固定幅に */
    height: 80px;
    flex-shrink: 0;
    aspect-ratio: auto;
  }

  .c-card__body {
    padding: 0;
    overflow: hidden;
  }

  .c-card__title {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .c-card__excerpt {
    display: none; /* スマホの横長リストでは説明文は非表示でスッキリさせる */
  }

  .c-card__company-name {
    margin-top: 5px;
    border-top: none;
  }

  /* グリッドを強制的に1列に */
  .potal-card-grid-4,
  .potal-card-grid-2 {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
}
/* =========================================
   スマホ用：リスト型にする対象を「イベント・MH・WORKS」に絞る
========================================= */
@media screen and (max-width: 800px) {
  /* COMPANY以外のカードを横長にする */
  .potal-card-grid-4 .c-card:not(.c-card--company) {
    flex-direction: row !important;
    height: 120px !important;
    align-items: center !important;
    gap: 15px !important;
    padding: 10px !important;
  }

  /* COMPANYカードは縦並び（グリッド）を維持して画像を見せる */
  .potal-card-grid-4 .c-card--company {
    flex-direction: column !important;
    height: auto !important;
    padding: 10px !important;
    gap: 5px !important;
  }
  .potal-card-grid-4 .c-card--company .c-card__thumb--logo {
    height: 120px !important; /* スマホでの高さ */
    padding: 10px !important;
  }
  .potal-card-grid-4 .c-card--company .c-card__body {
    display: block !important;
    text-align: center !important;
  }
}

@media screen and (max-width: 800px) {
  /* 1. MODEL HOUSE / WORKS の横長リスト */
  .potal-card-grid-4,
  .potal-card-grid-2 {
    display: block !important;
  }

  /* 1. カード全体のレイアウト：高さ変動に変更 */
  .c-card {
    display: flex !important;
    flex-direction: row !important;
    height: auto !important; /* ★固定高さから変動に変更 */
    min-height: 100px !important;
    padding: 10px !important;
    gap: 12px !important;
    margin-bottom: 15px !important;
    width: 100% !important;
    align-items: flex-start !important; /* 上寄せで配置 */
  }

  /* 2. サムネイル */
  .c-card__thumb {
    width: 100px !important;
    height: 80px !important;
    flex-shrink: 0 !important;
  }
  .c-card__thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* スマホでラベルを消す */
  .c-card__badge,
  .c-card__label {
    display: none !important;
  }

  /* 3. ボディ：これがはみ出しの主原因 */
  .c-card__body {
    padding: 0 !important;
    width: calc(100% - 112px) !important; /* ★親の幅からサムネイル分を引く */
    min-width: 0 !important; /* Flexbox内での幅制限 */
  }

  /* 4. テキスト関連の調整 */
  .c-card__title {
    font-size: 14px !important;
    margin-bottom: 5px !important;
    /* 折り返しを許可し、はみ出しを防ぐ */
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .c-card__excerpt {
    display: none !important;
  }

  .c-card__company-name {
    margin-top: 5px !important;
    padding-top: 5px !important;
    font-size: 11px !important;
    border-top: 1px solid #eee;
    display: flex !important;
    align-items: center;
  }
  /* 2. COMPANYセクションの調整 */
  .potal-card-grid-4 .c-card--company {
    display: flex !important;
    flex-direction: row !important;
    height: 80px !important;
    width: 100% !important;
  }

  .potal-card-grid-4 .c-card--company .c-card__thumb--logo {
    height: 100% !important;
    width: 80px !important;
    padding: 5px !important;
    flex-shrink: 0;
  }

  .potal-card-grid-4 .c-card--company .c-card__body {
    padding: 10px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left !important;
  }
}
@media screen and (max-width: 800px) {
  /* 左右の余白を強制的に打ち消す */
  .l-container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* カード幅の微調整 */
  .c-card {
    width: 100% !important;
    box-sizing: border-box !important; /* ★ここが重要 */
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
@media screen and (max-width: 800px) {
  /* 1. 全体的なはみ出し防止 */
  .l-container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
  }

  /* 2. カードのレイアウトを強制的に1列にする */
  .potal-card-grid-4,
  .potal-card-grid-2 {
    display: block !important; /* 縦積み */
  }

  /* 3. カードの外側設定 */
  .c-card {
    display: flex !important;
    flex-direction: row !important;
    height: 100px !important;
    padding: 8px !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
    width: 100% !important; /* 親枠の中に収まるように幅を制御 */
    box-sizing: border-box !important;
  }

  /* 4. サムネイル */
  .c-card__thumb,
  .c-card__thumb--logo {
    width: 90px !important;
    height: 84px !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
  }

  /* 5. ボディの幅を「親からサムネイル分を引いた幅」で固定 */
  .c-card__body {
    padding: 0 !important;
    width: calc(100% - 100px) !important; /* サムネ幅を引いて計算 */
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
}

/* スマホ時の横揺れ・レイアウト崩れを完全に止める */
@media screen and (max-width: 800px) {
  /* MODEL HOUSE と WORKS の左右2列配置をスマホで解除 */
  .potal-split-grid {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 各カラムを幅100%に */
  .split-col {
    width: 100% !important;
    margin-bottom: 40px !important;
    padding: 0 !important;
  }

  /* カードを1列縦積み・はみ出し防止 */
  .potal-card-grid-2 {
    display: block !important;
    width: 100% !important;
  }
}
/* サイト全体の「はみ出し」を封印する最強のCSS */
@media screen and (max-width: 800px) {
  html,
  body {
    width: 100% !important;
    overflow-x: hidden !important;
  }
}

/* スマホ時のスライダー調整 */
@media screen and (max-width: 800px) {
  .potal-hero-area {
    padding: 20px 0 !important;
  }

  .hero-title {
    font-size: 18px !important; /* スマホでタイトルがはみ出さないように */
    padding-right: 15px;
  }

  .hero-label {
    font-size: 10px !important;
    padding: 3px 8px !important;
  }
}

/* Swiper全体を中央寄せ */
.potal-hero-area {
  width: 100%;
  overflow: hidden; /* はみ出し防止 */
  padding: 40px 0;
}

/* スライド同士が重なる部分の微調整 */
.swiper-wrapper {
  align-items: center;
}

/* スライダー内のコンテンツ設定 */
.hero-content {
  position: absolute;
  bottom: 80px; /* 画像の下端から少し浮かす */
  left: 80px; /* 左側に寄せる */
  z-index: 10;
  max-width: 600px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2); /* ほんのりとした影 */
  border-left: 4px solid #0056b3; /* ブランドカラーのアクセント線 */
  backdrop-filter: blur(5px); /* 背景をぼかしてオシャレに */
  transition: all 0.4s ease;
}

/* ラベル（カテゴリ）のスタイル */
.hero-label {
  display: inline-block;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 15px;
  background: #0056b3;
  padding: 4px 12px;
  border-radius: 4px;
}

/* タイトル（キャッチコピー）の調整 */
.hero-title {
  font-family: "Shippori Mincho", serif;
  /* font-size: 42px; から変更：clampで可変サイズにし、スマホで小さく */
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: #fff;
  line-height: 1.4; /* 行間を1.3から1.4に広げて、2行になっても読みやすく */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* 影を少し強めて可読性アップ */
  margin: 0;
  max-width: 90%; /* 右端の隙間を確保してはみ出し防止 */
}

/* スマホ時の調整 */
@media screen and (max-width: 800px) {
  .hero-content {
    bottom: 20px;
    left: 15px;
    padding: 10px;
  }
  .hero-title {
    font-size: 18px !important; /* スマホでは確実に小さく */
    line-height: 1.5;
  }
}
.hero-title {
  /* 読みやすさとバランスを重視した設定 */
  font-family: "Shippori Mincho", serif !important;
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  margin: 0;

  /* ★ここがポイント：単語が途中で切れないようにしつつ改行する */
  word-break: auto-phrase; /* 最新ブラウザ対応 */
  overflow-wrap: break-word;

  /* コンテナの幅を制限して、自然な改行を促す */
  max-width: 500px;
}
/* ラベル部分もMontserratを強制適用 */
.hero-label {
  font-family: "Montserrat", sans-serif !important;
}

/* Messageセクションの崩れ修正 */
.message {
  padding: 80px 0;
  background-color: #fff;
  overflow: hidden; /* 横揺れ防止 */
}

.message_inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.message .text {
  line-height: 2;
  margin: 40px 0;
  color: #555;
}

/* 画像ループ部分の修正 */
.box_img {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 30px;
}

.box_img_inner {
  display: flex !important;
  gap: 20px;
  animation: slide_loop 30s linear infinite;
  width: max-content; /* 中身の幅に合わせる */
}

.box_img_inner .img {
  width: 250px;
  flex-shrink: 0;
}

.box_img_inner .img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* アニメーションの定義（もし古いCSSから消えていれば追加） */
@keyframes slide_loop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
/* Messageセクションのスタイルを元に戻す */
.message_inner {
  max-width: 1200px; /* 元のデザインに合わせる */
  margin: 0 auto;
  text-align: left; /* 文字を左揃えにする */
}

.message_inner .text {
  text-align: left !important;
  line-height: 2;
  color: #555;
  margin: 40px 0;
}

/* 画像ループ部分の安定化 */
.box_img {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}

.box_img_inner {
  display: flex !important;
  animation: slide_loop 20s linear infinite;
  width: max-content;
}

/* 画像のサイズ指定 */
.box_img_inner .img {
  width: 250px;
  padding: 0 10px;
  flex-shrink: 0;
}

.box_img_inner .img img {
  width: 100%;
  height: auto;
  display: block;
}
/* メッセージセクションの高さとレイアウトをリセット */
.message {
  padding: 80px 0 !important;
  background-color: #fff;
  width: 100%;
}
/* メッセージの枠を中央寄せ */
.message_inner {
  max-width: 800px; /* ここで横幅を制限 */
  margin: 0 auto; /* これで画面中央に配置される */
  padding: 0 20px;
}
/* テキスト全体の配置 */
.message .text {
  text-align: left !important;
  margin-left: 24% !important; /* 左から24%の余白 */
  margin-right: 20px !important;
  font-size: 1.8rem !important;
  font-weight: 800 !important;
  line-height: 1.8 !important;
  color: #333 !important;
  margin-top: 40px !important;
  margin-bottom: 40px !important;
}
/* 「イエマチ」の色を強調（指定した色に変更してください） */
.message .text .highlight {
  color: #0056b3 !important; /* 例：青色。オレンジにする場合は #ff9800 */
}
/* スマホでは左寄せを解除して見やすくする */
@media screen and (max-width: 800px) {
  .message .text {
    margin-left: 20px !important;
    margin-right: 20px !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
  }
}
/* 画像ループ部分（改行を防ぐ） */
.box_img {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 30px;
}

.box_img_inner {
  display: flex !important;
  flex-wrap: nowrap !important;
  animation: slide_loop 20s linear infinite;
  width: max-content;
}

.box_img_inner .img {
  width: 250px;
  padding: 0 10px;
  flex-shrink: 0;
}

.box_img_inner .img img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================
   Messageセクション：ゆったりとした高級感あるテキスト配置
========================================= */

.message {
  padding: 60px 0 !important;
  background-color: #fff;
  width: 100%;
}

.message_inner {
  max-width: 1000px !important;
  margin: 0 auto;
  padding: 0 20px;
}

/* ご指定の数値を適用したテキスト設定 */
.message .text {
  text-align: left !important;
  margin-left: 20% !important; /* 左の余白を少し取り、横を広げる */
  margin-right: 15% !important; /* 右の余白 */

  font-size: 1.65rem !important; /* 指定サイズ */
  font-weight: 700 !important;
  line-height: 2.5 !important; /* 指定のゆったりとした行間 */
  color: #333 !important;

  margin-top: 40px !important;
  margin-bottom: 110px !important; /* 指定の下部余白 */
}

/* 強調文字の設定 */
.message .text .highlight {
  color: #0056b3 !important; /* ブランドカラー */
}

/* スマホ表示では少しコンパクトに調整（必要に応じて） */
@media screen and (max-width: 800px) {
  .message .text {
    margin-left: 15px !important;
    margin-right: 15px !important;
    font-size: 1.3rem !important; /* スマホでは少し小さく */
    line-height: 2 !important; /* スマホは行間を少し詰める */
    margin-bottom: 50px !important; /* スマホでは下部余白を小さく */
  }
}

/* =========================================
   Messageセクション 完全リセット＆最適化
========================================= */
/* 背景の巨大な英字（AMS...）などを非表示にして高さをリセット */
.message {
  padding: 100px 0 60px !important; /* 上の余白をしっかり取る */
  background-color: #fff !important;
  width: 100% !important;
  height: auto !important; /* 高さを内容に合わせる */
  min-height: auto !important;
  position: relative;
  overflow: hidden !important;
}

/* 過去の背景テキストを消す（もし疑似要素で出ている場合） */
.message::before,
.message::after {
  display: none !important;
}

.message_inner {
  max-width: 1000px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  display: block !important; /* 縦書きやFlexの干渉をリセット */
}

/* タイトル画像の位置調整 */
.message_inner h2 {
  text-align: center !important;
  margin: 0 auto 50px !important; /* 下にしっかり余白を取る */
  width: 100% !important;
  display: block !important;
}

/* ★テキストの縦書き解除と適正な高さの設定 */
.message .text {
  writing-mode: horizontal-tb !important; /* 縦書き(vertical-rl)を強制解除 */
  -webkit-writing-mode: horizontal-tb !important;

  text-align: left !important;
  margin: 0 auto 60px !important; /* 上を0、下を60pxにして中央に */

  font-size: 1.65rem !important;
  font-weight: 700 !important;
  line-height: 2.2 !important; /* 2.5だと広すぎるため少し調整 */
  color: #333 !important;

  max-width: 700px !important; /* 文字が広がりすぎないように制限 */
  display: block !important;
  height: auto !important; /* 異常な高さをリセット */
}

/* 画像ループ部分の隙間を消す */
.box_img {
  width: 100% !important;
  overflow: hidden !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
}

.box_img_inner {
  display: flex !important;
  flex-wrap: nowrap !important;
  animation: slide_loop 30s linear infinite !important;
  width: max-content !important;
  align-items: center !important;
}

.box_img_inner .img {
  width: 250px !important;
  padding: 0 10px !important;
  margin: 0 !important; /* 余計なマージンを消す */
  flex-shrink: 0 !important;
}

.box_img_inner .img img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  border-radius: 8px !important; /* 角丸でオシャレに */
}

/* スマホ表示の調整 */
@media screen and (max-width: 800px) {
  .message {
    padding: 60px 0 40px !important;
  }
  .message .text {
    font-size: 1.4rem !important;
    line-height: 1.8 !important;
    margin-bottom: 40px !important;
    padding: 0 15px !important;
  }
}

/* =========================================
   CONCEPT SECTION (2カラム・ギャラリー)
========================================= */
.potal-concept-section {
  padding: 100px 0;
  background-color: #fff;
  overflow: hidden;
}

.potal-concept-grid {
  display: flex;
  align-items: center;
  gap: 60px;
}

/* 左：コンテンツ */
.concept-content {
  flex: 1;
}

.concept-title {
  margin-bottom: 40px;
}

.concept-title img {
  max-width: 350px;
  height: auto;
}

.concept-text {
  font-family: "Shippori Mincho", serif;
  font-size: 1.6rem;
  line-height: 2.2;
  color: #333;
  text-align: left;
}

.concept-text .highlight {
  color: #ff9800; /* アクセントのオレンジ */
  font-weight: 800;
}

/* 右：モザイクギャラリー */
.concept-gallery {
  flex: 1;
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  position: relative;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 互い違いに配置してオシャレにする */
.gallery-item.item-1 {
  transform: translateY(0);
}
.gallery-item.item-2 {
  transform: translateY(30px);
}
.gallery-item.item-3 {
  transform: translateY(-30px);
}
.gallery-item.item-4 {
  transform: translateY(0);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* スマホ表示対応 */
@media screen and (max-width: 900px) {
  .potal-concept-section {
    padding: 30px 0;
  }
  .potal-concept-grid {
    flex-direction: column;
    gap: 40px;
  }
  .concept-title {
    text-align: center;
  }
  .concept-title img {
    margin: 0 auto;
  }
  .concept-text {
    font-size: 1.4rem;
    line-height: 1.8;
  }

  .gallery-mosaic {
    padding: 0 20px;
  }
  .gallery-item.item-2,
  .gallery-item.item-3 {
    transform: none; /* スマホでは高低差をなくす */
  }
}

/* 街並みイラストの隙間を完全に無くす設定 */
.potal-town-divider {
  width: 100% !important;
  max-width: none !important; /* 幅の制限を解除 */
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
  background-color: #fff;
  overflow: hidden; /* はみ出し防止 */
}

.potal-town-divider img {
  width: 100% !important; /* 画面幅いっぱいに強制 */
  max-width: none !important; /* 1600pxなどの制限を削除 */
  height: auto;
  display: block;
  border: none;
}

/* スマホでも隙間が出ないように調整 */
@media screen and (max-width: 800px) {
  .potal-town-divider img {
    width: 150% !important; /* スマホでは少し拡大して見やすくする（任意） */
    margin-left: -25%; /* 中央揃え */
  }
}

/* =========================================
   フローティング・アクションナビ (リッチ版)
========================================= */
.floating-action-bar {
  position: fixed;
  z-index: 9999;
}

.fab-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.fab-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.fab-item i {
  font-size: 24px;
  margin-bottom: 5px;
}

.fab-text {
  font-size: 11px;
  font-weight: bold;
  text-align: center;
  line-height: 1.2;
}

/* 個別のカラー設定 */
.fab-calendar a {
  background-color: #e74c3c;
} /* 赤系 */
.fab-document a {
  background-color: #f39c12;
} /* オレンジ/黄系 */
.fab-model a {
  background-color: #0056b3;
} /* 青系 */

.fab-item a:hover {
  filter: brightness(1.1);
  transform: translateY(-3px);
}

/* -------------------------------------
   PC表示 (画面右端に縦並びで固定)
------------------------------------- */
@media screen and (min-width: 801px) {
  .floating-action-bar {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
  }

  .fab-list {
    flex-direction: column; /* 縦に並べる */
    gap: 2px;
  }

  .fab-item a {
    width: 100px;
    height: 100px;
    border-radius: 8px 0 0 8px; /* 左側だけ角丸 */
  }

  .fab-item a:hover {
    transform: translateX(-5px); /* PCでは左に少しスライドしてアピール */
  }
}

/* -------------------------------------
   スマホ表示 (画面下部に横並びで固定)
------------------------------------- */
@media screen and (max-width: 800px) {
  .floating-action-bar {
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
  }

  .fab-list {
    flex-direction: row; /* 横に並べる */
    width: 100%;
  }

  .fab-item {
    flex: 1; /* 3等分する */
  }

  .fab-item a {
    width: 100%;
    height: 60px; /* スマホでは高さを抑える */
    border-radius: 0;
    box-shadow: none;
    border-right: 1px solid rgba(255, 255, 255, 0.2); /* 境界線 */
  }
  .fab-item:last-child a {
    border-right: none;
  }

  .fab-item i {
    font-size: 20px;
    margin-bottom: 2px;
  }
  .fab-text {
    font-size: 10px;
    br {
      display: none;
    } /* スマホでは改行を消して1行にする場合 */
  }

  /* スマホで下部メニューがコンテンツを隠さないように body に余白を確保 */
  body {
    padding-bottom: 60px !important;
  }
}
/* =========================================
   ヒーロースライダー 正常化設定
========================================= */
.potal-hero-area {
  width: 100%;
  overflow: hidden;
  background: #fff;
  padding: 40px 0;
}

.hero-swiper {
  width: 100% !important;
  overflow: visible !important; /* 両脇を見せるために必須 */
}

.swiper-slide {
  width: 75% !important; /* 中央画像の幅 */
  transition:
    transform 0.5s,
    opacity 0.5s;
  opacity: 0.4; /* ★横の画像を少し暗く（薄く）する */
}

.swiper-slide-active {
  opacity: 1; /* ★中央の画像だけハッキリ見せる */
}

.hero-image {
  width: 100% !important;
  height: 450px !important; /* 高さを固定 */
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* スマホ表示の幅調整 */
@media screen and (max-width: 800px) {
  .swiper-slide {
    width: 85% !important; /* スマホではメインを大きく */
  }
  .hero-image {
    height: 300px !important; /* スマホでは低く */
  }
}
@media screen and (max-width: 800px) {
  /* ガイドエリア（3列表示に修正） */
  .potal-guide-grid {
    display: flex !important;
    flex-direction: row !important; /* 横並びに強制 */
    gap: 10px !important; /* 隙間をスマホサイズに最適化 */
    justify-content: space-between;
  }

  .guide-item {
    flex: 1; /* 3つを均等な幅にする */
    padding: 15px 5px !important; /* スマホ用に余白を狭める */
    border-radius: 8px !important;
    /* スマホの小さな画面でも枠が見えるようにする */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
  }

  /* アイコンのサイズ調整 */
  .guide-item .icon {
    font-size: 24px !important; /* アイコンを少し小さく */
    margin-bottom: 8px !important;
  }

  /* テキストのサイズ調整 */
  .guide-item h4 {
    font-size: 11px !important; /* スマホで3列並んでも文字がはみ出さないように */
    line-height: 1.3 !important;
    word-break: auto-phrase;
  }
}

/* PC表示（右端）の縦位置を調整 */
@media screen and (min-width: 801px) {
  .floating-action-bar {
    /* topを50%から大きくすると、下に下がります */
    top: 65% !important;

    /* transformはそのままでOK */
    transform: translateY(-50%) !important;

    right: 0 !important;
  }
}
