@charset "UTF-8";

/* ========================================================
   1. Reset & Base (モダンリセット)
   ======================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  font-size: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #ffffff;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}
a {
  color: #003366;
  text-decoration: none;
  transition: all 0.3s ease;
}
a:hover {
  color: #ff8811;
}

/* ========================================================
   2. Header & Visual (PC版：写真にロゴを重ねるレイアウト)
   ======================================================== */
#site-header {
  width: 100%;
  max-width: 968px;
  margin: 0 auto;
}
.header-visual-wrapper {
  position: relative;
  width: 100%;
  height: 465px; /* PC版の固定高 */
  overflow: hidden;
}

/* スライドショーを背景として配置 */
.hpb-photomotion {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

/* ロゴと連絡先を写真の上に重ねる（画像2枚目の再現） */
.header-overlay-content {
  position: relative;
  z-index: 10;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  text-shadow: 1px 1px 3px rgba(255,255,255,0.8);
}
.seo-title { display: none; }

.logo img {
  max-width: 300px;
  height: auto;
}

/* PC版の電話番号（シンプルに右上に配置） */
.contact-info {
  text-align: right;
}
.contact-lead {
  font-size: 13px;
  margin: 0;
}
.tel-btn {
  text-decoration: none;
  color: #000 !important;
}
.tel-number {
  font-size: 32px;
  font-weight: bold;
  line-height: 1.2;
}
.address {
  font-size: 12px;
  margin: 0;
}

/* ========================================================
   3. Global Navigation (ネイビーの帯メニュー再現)
   ======================================================== */
#global-nav {
  background-color: #003366;
  width: 100%;
  max-width: 968px;
  margin: 0 auto;
}
#global-nav ul {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
}
#global-nav li {
  flex: 1;
  border-right: 1px solid rgba(255,255,255,0.2);
}
#global-nav li:first-child {
  border-left: 1px solid rgba(255,255,255,0.2);
}
#global-nav a {
  display: block;
  text-align: center;
  padding: 12px 5px;
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
}
#global-nav a:hover {
  background-color: #ff8811;
  color: #ffffff;
}

/* ========================================================
   4. Layout (PC 2カラムレイアウト)
   ======================================================== */
#main-wrapper {
  display: flex;
  justify-content: space-between;
  max-width: 968px;
  margin: 30px auto;
  padding: 0 10px;
}
#sidebar {
  width: 260px;
  flex-shrink: 0;
}
#main-content {
  width: 660px;
}

/* ========================================================
   5. Sidebar Styles (元の四角いリストボタン再現)
   ======================================================== */
.sidebar-menu {
  list-style: none;
  padding: 0; margin: 0 0 20px 0;
}
.sidebar-menu li {
  margin-bottom: 8px;
}
.sidebar-menu a {
  display: block;
  padding: 15px;
  border: 1px solid #d9d8d8;
  background-color: #fcfcfc;
  color: #333;
  font-weight: bold;
  font-size: 13px;
  text-align: center;
  border-radius: 2px;
}
.sidebar-menu a:hover {
  background-color: #eee;
}
.sidebar-banner img {
  width: 100%;
}

/* ========================================================
   6. Main Content Intro (オレンジの三角マーク再現)
   ======================================================== */
.intro-lead {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 20px;
}
.intro-image {
  margin: 15px 0;
  text-align: center;
}
.custom-bullet-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 10px 0;
}
.custom-bullet-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  color: #333;
  line-height: 1.4;
}
.custom-bullet-list li::before {
  content: '';
  position: absolute;
  top: 4px; left: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #ff8811;
}

/* ========================================================
   7. Works Slider (施工事例スライダー)
   ======================================================== */
.works-slider-section {
  margin: 50px 0;
}
.section-title {
  font-size: 20px;
  color: #003366;
  border-bottom: 1px solid #003366;
  padding-bottom: 8px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.section-title span {
  font-size: 13px;
  color: #666;
  font-weight: normal;
  margin-left: 15px;
}
.works-more-btn {
  font-size: 13px;
  font-weight: bold;
  float: right;
  margin-top: -40px;
}
.loop-slider-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.loop-slider-track {
  display: flex;
  width: max-content;
  animation: loop-slide 40s linear infinite;
}
.loop-slider-track:hover {
  animation-play-state: paused;
}
.slide-item {
  width: 220px;
  margin-right: 15px;
  flex-shrink: 0;
}
.slide-item .img-box {
  height: 150px;
  overflow: hidden;
  border: 1px solid #ccc;
  margin-bottom: 10px;
}
.slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.slide-item a:hover img {
  transform: scale(1.05);
}
.slide-item .case-title {
  margin: 0; font-size: 13px; font-weight: bold;
}
@keyframes loop-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================================================
   8. Modern News & Info (サムネイル画像付きお知らせ)
   ======================================================== */
.modern-info-section {
  margin-bottom: 50px;
}

.modern-news-list {
  list-style: none; padding: 0; margin: 0 0 20px 0; border-top: 1px solid #eee;
}
.modern-news-list li {
  border-bottom: 1px solid #eee;
}
.modern-news-list a {
  display: flex;
  align-items: flex-start; /* アイテムを上揃えに */
  padding: 20px 10px;
  color: #333;
  gap: 20px; /* 画像とテキストの隙間 */
}
.modern-news-list a:hover {
  background-color: #f9f9f9;
}

/* サムネイル画像エリア */
.news-thumb {
  flex-shrink: 0;
  width: 160px; /* PCでの画像幅 */
  height: 100px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #eee;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.modern-news-list a:hover .news-thumb img {
  transform: scale(1.05);
}

/* テキストエリア */
.news-content {
  flex-grow: 1;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.news-date {
  font-size: 13px; color: #666;
}
.news-badge {
  font-size: 11px; font-weight: bold; color: #fff;
  padding: 3px 8px; border-radius: 12px; line-height: 1;
}
.badge-event { background-color: #ff8811; }
.badge-youtube { background-color: #cd201f; }
.badge-info { background-color: #003366; }

.news-title {
  margin: 0; font-size: 15px; font-weight: bold; line-height: 1.4;
}
.news-desc {
  margin: 8px 0 0 0;
  font-size: 12px;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-more {
  text-align: right; margin-top: 10px; font-size: 13px; font-weight: bold;
}

/* お役立ち情報（横スクロールカード型） */
.modern-cards-wrapper {
  width: 100%;
}
.modern-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.modern-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  color: #333;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.modern-card:hover {
  border-color: #003366;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,51,102,0.1);
}
.modern-card .card-icon {
  font-size: 28px; margin-bottom: 10px;
}
.modern-card .card-img {
  margin: -20px -20px 10px -20px;
  height: 100px; overflow: hidden;
  border-radius: 6px 6px 0 0;
  border-bottom: 1px solid #eee;
}
.modern-card .card-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.modern-card .card-title {
  font-size: 15px; font-weight: bold; margin: 0 0 10px 0;
}
.modern-card .card-desc {
  font-size: 12px; color: #666; margin: 0 0 15px 0; flex-grow: 1;
}
.modern-card .card-link {
  font-size: 12px; font-weight: bold; color: #003366; align-self: flex-start;
}
.page-top-link {
  text-align: right; margin: 30px 0;
}

/* ========================================================
   9. Footer
   ======================================================== */
#site-footer {
  border-top: 1px solid #ccc;
  padding: 20px 0;
  background-color: #f5f5f5;
  margin-top: 40px;
  padding-bottom: 80px;
}
.footer-inner {
  max-width: 968px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
}
.footer-nav {
  list-style: none; margin: 0; padding: 0;
}
.footer-nav a {
  font-size: 13px; color: #333;
}


/* ========================================================
   10. Smartphone Responsive (モバイル対応 - 最終・美調整版)
   ======================================================== */
@media screen and (max-width: 768px) {
  
  /* --- 1. ヘッダー全体の配置調整 --- */
  #site-header {
    width: 100% !important;
    position: relative !important;
  }

  .header-visual-wrapper {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* --- 2. ロゴと連絡先エリア（すべて中央揃えに強制） --- */
  .header-overlay-content {
    order: -1 !important;
    position: relative !important;
    width: 100% !important;
    background-color: #ffffff !important;
    padding: 20px 10px !important; /* 上下の余白を少し広げてゆとりを */
    margin: 0 !important;
    text-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* 子要素を中央へ */
    text-align: center !important;  /* テキストを中央へ */
    z-index: 10 !important;
    box-sizing: border-box !important;
  }

  .logo { 
    margin: 0 0 15px 0 !important; 
    width: 100% !important; 
    text-align: center !important;
  }
  .logo img { 
    max-width: 240px !important; 
    height: auto !important;
    margin: 0 auto !important; 
  }

  /* 「電話でのお問い合わせは」の文字 */
  .contact-lead {
    display: block !important;
    width: 100% !important;
    text-align: center !important; /* 中央揃えを保証 */
    font-size: 13px !important;
    margin: 0 0 10px 0 !important;
    color: #666 !important;
  }

  /* --- 3. 電話ボタン（はみ出し防止とアイコン位置の修正） --- */
  .tel-btn {
    display: inline-flex !important; /* 中身に合わせて幅を広げる */
    justify-content: center !important;
    align-items: center !important;
    background-color: #003366 !important;
    color: #ffffff !important;
    padding: 12px 25px !important; /* 左右に十分な余白を確保 */
    min-width: 280px !important;    /* ボタンが小さくなりすぎないよう最低幅を設定 */
    max-width: 95% !important;     /* 画面からはみ出さない */
    border-radius: 40px !important;
    margin: 0 auto !important;
    text-decoration: none !important;
    white-space: nowrap !important; /* 改行を絶対にさせない */
    box-shadow: 0 4px 10px rgba(0,51,102,0.2) !important;
  }
  
  /* アイコン（受話器）の調整 */
  .tel-btn::before { 
    content: "📞" !important; 
    font-size: 18px !important; 
    margin-right: 10px !important;
    display: inline-block !important;
  }

  .tel-number { 
    font-size: 24px !important; 
    color: #ffffff !important; 
    font-weight: bold !important; 
    letter-spacing: 0.05em !important;
    line-height: 1 !important;
  }

  /* 住所の文字 */
  .address { 
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    font-size: 11px !important; 
    margin: 12px 0 0 0 !important; 
    color: #666 !important; 
  }

  /* --- 4. スライドショー（隙間をゼロに） --- */
  .hpb-photomotion {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    z-index: 1 !important;
    min-height: 0 !important;
  }
  .camera_wrap { margin: 0 !important; padding: 0 !important; width: 100% !important; margin-bottom: 0 !important; }

  /* --- 5. 以降のコンテンツ調整（崩れ防止） --- */
  #main-wrapper {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 25px 15px !important;
    box-sizing: border-box !important;
  }
  #main-content { width: 100% !important; float: none !important; }
  #global-nav, #sidebar { display: none !important; visibility: hidden !important; }

  .modern-news-list a { padding: 15px 5px !important; gap: 12px !important; }
  .news-thumb { width: 90px !important; height: 65px !important; flex-shrink: 0 !important; }
  .news-title { font-size: 13px !important; line-height: 1.4 !important; font-weight: bold !important; }
  .news-desc { display: none !important; }
  .modern-cards-wrapper { margin: 0 -15px !important; padding: 0 15px !important; width: 100vw !important; overflow: hidden !important; }
  .modern-cards-grid { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto !important; padding-bottom: 15px !important; gap: 12px !important; }
  .modern-card { flex: 0 0 82% !important; padding: 15px !important; }
}




/* ========================================================
   11. Floating Menu (スマホ用固定ナビゲーション)
   ======================================================== */
#fixed-bottom-nav-container { pointer-events: none; }
#fixed-bottom-nav {
  position: fixed; bottom: 20px; right: 20px; z-index: 9999;
  display: flex; gap: 15px; align-items: center; pointer-events: auto;
}
#fixed-bottom-nav .nav-item {
  display: flex; justify-content: center; align-items: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3); cursor: pointer; background: #fff;
}
#fixed-bottom-nav .social-btn, #fixed-bottom-nav .menu-toggle-btn {
  width: 50px; height: 50px; border-radius: 50%;
}
#fixed-bottom-nav .social-btn svg { fill: #000; width: 24px; }
#fixed-bottom-nav .contact-btn {
  background-color: #0044cc; color: #fff; font-weight: bold;
  padding: 0 25px; height: 50px; border-radius: 25px;
}
#fixed-bottom-nav .menu-toggle-btn, #mobile-menu-list { display: none; }

@media screen and (max-width: 768px) {
  #fixed-bottom-nav {
    background-color: transparent; box-shadow: none;
    bottom: 15px; right: 0; left: 0; width: 100%;
    justify-content: center; gap: 10px;
  }
  #fixed-bottom-nav .nav-item {
    height: 48px; min-height: 48px; margin: 0; pointer-events: auto;
  }
  #fixed-bottom-nav .social-btn, #fixed-bottom-nav .menu-toggle-btn {
    flex: 0 0 48px; width: 48px; display: flex; flex-direction: column;
  }
  #fixed-bottom-nav .menu-toggle-btn {
    font-size: 9px; color: #333; line-height: 1;
  }
  #fixed-bottom-nav .menu-toggle-btn svg { width: 18px; margin-bottom: 2px; }
  #fixed-bottom-nav .contact-btn {
    flex: none; width: auto; padding: 0 20px; border-radius: 24px; font-size: 15px;
  }
  #mobile-menu-list {
    position: fixed; bottom: 80px; left: 5%; width: 90%;
    background-color: #fff; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 9998; max-height: 70vh; overflow-y: auto; pointer-events: auto;
  }
  .menu-category {
    background-color: #f7f9fc; color: #0044cc; font-weight: bold;
    padding: 15px 20px; font-size: 14px; position: sticky; top: 0; z-index: 2;
  }
  #mobile-menu-list ul { margin: 0; padding: 0; list-style: none; }
  #mobile-menu-list li { border-bottom: 1px solid #f0f0f0; }
  #mobile-menu-list li a {
    display: block; padding: 16px 20px; font-size: 15px; color: #333; position: relative;
  }
  #mobile-menu-list li a::after {
    content: ''; display: block; width: 6px; height: 6px;
    border-top: 2px solid #ccc; border-right: 2px solid #ccc;
    transform: rotate(45deg); position: absolute; right: 20px; top: 50%; margin-top: -4px;
  }
  .menu-close-btn {
    margin: 20px; padding: 12px 0; background-color: #666; color: #fff;
    font-weight: bold; text-align: center; border-radius: 50px; cursor: pointer;
  }
}