/* ========== 横スクロール防止 ========== */
html, body { overflow-x: hidden; }
#outer-wrap, #wrap { overflow-x: hidden; max-width: 100%; }
.elementor-section.elementor-section-full_width,
.elementor-element { max-width: 100%; }

/* ========== ページ全体の横幅制限（自然なレイアウト・ヘッダー境目を明確に） ========== */
#wrap {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
body {
  background-color: #f0f0f0;
}

/* 本文テキストの余白（左端ぎりぎりを解消） */
#main .elementor-container {
  padding-left: 32px !important;
  padding-right: 32px !important;
  max-width: 100%;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  #main .elementor-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}
/* カルーセルセクションはコンテナ内で収める */
.elementor-widget-image-carousel .elementor-widget-container { overflow: hidden; }

/**
 * ヘッダー適正化スタイル
 * フッター色（#2b499d）を使用、左に会社名・右にナビ
 */
#site-header {
  background: #2b499d !important;
  background-image: none !important;
  padding: 0;
  min-height: 56px;
}
#site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  min-height: 56px;
}
#site-logo {
  flex-shrink: 0;
}
#site-logo .custom-logo-link {
  display: block;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 1.25rem;
  font-weight: bold;
}
#site-logo img {
  display: none;
}
#site-logo .custom-logo-link::before {
  content: "アサヒゴウセン";
}
#site-navigation-wrap {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
#site-navigation {
  display: block;
}
#menu-nav {
  display: flex !important;
  flex-wrap: wrap;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0.5em 1.5em;
  justify-content: flex-end;
}
#menu-nav li {
  margin: 0 !important;
  padding: 0 !important;
}
#menu-nav li a,
#menu-nav .menu-link {
  color: #fff !important;
  text-decoration: none !important;
}
#menu-nav li a:hover,
#menu-nav .menu-link:hover {
  color: #afd8d8 !important;
}
.search-toggle-li {
  display: none;
}
#searchform-dropdown {
  display: none;
}
.oceanwp-mobile-menu-icon {
  display: none;
}
#mobile-dropdown {
  display: none;
}

/* ヘッダー動画エリア：外部CSSのオーバーレイ（ASAHIGOUSEN等）を無効化し見切れを防止 */
.overlay-header-media {
  display: none !important;
}

/* ========== ヘッダー動画の音声コントロール ========== */
#header-video-wrap {
  position: relative;
}
#header-video-controls {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 24px;
  z-index: 5;
}
.header-video-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
}
.header-video-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.header-video-volume {
  width: 80px;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  outline: none;
}
.header-video-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s;
}
.header-video-volume::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}
.header-video-volume::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

/* ========== フッター適正化（一般的なフッターレイアウト） ========== */
#footer {
  margin-top: auto;
}
#footer-inner {
  background: #2b499d;
}
/* フッター内クイックリンク（当社の強み・設備紹介・当社のものづくり・展開分野） */
#footer-quick-links {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 12px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
#footer-quick-links nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}
#footer-quick-links a {
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 0.9375rem;
}
#footer-quick-links a:hover {
  color: #afd8d8 !important;
}
/* 本文エリアの4リンクセクションを非表示（フッターへ移動したため） */
[data-id="98d3c66"] {
  display: none !important;
}
#footer-widgets {
  padding: 10px 20px !important;
  margin: 0 !important;
  max-width: 1200px;
  margin-left: auto !important;
  margin-right: auto !important;
}
/* ロゴ画像・JQUALITYバナー等は非表示 */
#media_image-2,
#media_image-3,
#footer-widgets .footer-box.col-2,
#footer-widgets .footer-box.span_1_of_2:last-child {
  display: none !important;
}
.footer-widgets-inner {
  display: block !important;
}
#footer-widgets .footer-box {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
}
#footer-widgets .widget_text,
#footer-widgets .textwidget {
  color: #fff !important;
  font-size: 0.9375rem;
  line-height: 1.6;
}
#footer-widgets .widget_text p,
#footer-widgets .textwidget p {
  margin: 0 !important;
}
#footer-widgets .widget_text a,
#footer-widgets .textwidget a {
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
#footer-widgets .widget_text a:hover,
#footer-widgets .textwidget a:hover {
  color: #afd8d8 !important;
}
#footer-bottom {
  background: #2b499d !important;
  padding: 12px 20px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
#footer-bottom-inner {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto !important;
}
#footer-bottom-menu .menu {
  display: flex !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 1rem;
}
#footer-bottom-menu .menu li {
  margin: 0 !important;
}
#footer-bottom-menu a {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none;
  font-size: 0.875rem;
}
#footer-bottom-menu a:hover {
  color: #afd8d8 !important;
}
#copyright {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.8125rem;
  margin: 0 !important;
}

/* ========== 画像カルーセル（Swiper）レイアウト修正 ========== */
.elementor-image-carousel-wrapper.swiper {
  overflow: hidden;
  width: 100%;
}
.elementor-image-carousel-wrapper .swiper-wrapper {
  display: flex;
  align-items: stretch;
}
/* 5枚表示 → 各スライドを高さ固定・object-fit: cover で統一 */
.elementor-image-carousel-wrapper .swiper-slide {
  height: 200px;
  overflow: hidden;
}
.elementor-image-carousel-wrapper .swiper-slide-inner {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.elementor-image-carousel-wrapper .swiper-slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* ナビゲーションボタン */
.elementor-swiper-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
}
.elementor-swiper-button-prev { left: 8px; }
.elementor-swiper-button-next { right: 8px; }
/* ページネーション */
.swiper-pagination {
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 10;
}
.swiper-pagination-bullet {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  margin: 0 3px;
  cursor: pointer;
}
.swiper-pagination-bullet-active {
  background: #fff;
}

/* ========== フル幅ヒーロー画像（工場・編み機）の適正表示 ========== */
/* 画像右側の余白をカットし、左側の写真部分を適正サイズで表示 */
[data-id="d154bc9"] .elementor-widget-image .elementor-widget-container,
[data-id="66f403e"] .elementor-widget-container {
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
[data-id="d154bc9"] .elementor-widget-image img,
[data-id="66f403e"] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
}

/* ========== 記事ページのサムネイル画像を画面幅に収める ========== */
.single .thumbnail img,
article .thumbnail img.wp-post-image {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
}

/* ========== お知らせ一覧（/info）をリスト風に ========== */
/* アイキャッチ画像は非表示（従来は各記事ブロック上部に大きく表示していた） */
body.page-info-list #blog-entries .blog-entry .thumbnail {
  display: none !important;
}
body.page-info-list #blog-entries .blog-entry {
  border-bottom: 1px solid #e2e6ea;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}
body.page-info-list #blog-entries .blog-entry:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
body.page-info-list #blog-entries .blog-entry-inner {
  padding-top: 0;
}
body.page-info-list #blog-entries .blog-entry-readmore {
  margin-top: 0.5rem;
}
body.page-info-list #blog-entries .readmore-plain {
  color: #2b499d;
  font-weight: 600;
}
body.page-info-list #recent-posts-2 ul li {
  color: #333;
}
/* お知らせ：INFORMATION の省エネ法定期報告のみリンクを維持 */
body.page-info-list #recent-posts-2 ul li a {
  color: #0f2766;
  text-decoration: underline;
  font-weight: 600;
}
body.page-info-list #recent-posts-2 ul li a:hover {
  color: #1e73be;
}
/* お知らせ：メインの記事一覧を空にしたときの余白調整 */
#blog-entries.page-info-no-posts {
  min-height: 0;
  padding: 0;
}
#right-sidebar-inner #media_image-4 {
  margin-top: 1.25rem;
}

/* ========== お問い合わせフォーム ========== */
/* 入力部分をページ中央に配置、白いカード風パネル */
body.page-id-1171 [data-id="1205ca26"] .elementor-container {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  padding: 40px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* 送信ボタンを大きく */
.wpcf7-form input[type="submit"],
.wpcf7-submit {
  min-width: 200px !important;
  padding: 14px 32px !important;
  font-size: 1.1rem !important;
  font-weight: bold !important;
  cursor: pointer !important;
  border-radius: 4px !important;
}
