/**
 * UQモバイル カスタマイズ CSS
 * SWELLテーマとの統合に最適化されたスタイル
 */

@charset "utf-8";


body {
  background: linear-gradient(150deg, #ffffff 0%, #ffffff 10%, #e0f8ff 25%, #fafeff 30%, #e0f8ff 40%, #fff3f9 60%, #fff3f9 100%);
}

.menu-item {
  font-weight: bold;
  font-size: 16px;
}

.-series-right .c-gnavWrap {
  margin-left: 0;
}

.l-content {
  padding-top: 0 !important;
  margin-bottom: 0 !important;
}

/* ===============================================
投稿ページの白い背景と角丸設定
=============================================== */
/* 投稿ページのメインコンテンツエリア */
.single-post .l-mainContent__inner,
.single .l-mainContent__inner,
.archive .l-mainContent__inner,
.blog .l-mainContent__inner,
.search .l-mainContent__inner,
.category .l-mainContent__inner,
.tag .l-mainContent__inner {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin: 50px auto;
  padding: 30px;
  max-width: 1200px;
  position: relative;
  z-index: 2;
}

/* 投稿タイトル部分の背景調整 */
.single-post .p-articleHead,
.single .p-articleHead,
.archive .p-articleHead,
.blog .p-articleHead,
.search .p-articleHead,
.category .p-articleHead,
.tag .p-articleHead {
  background-color: #fff;
  border-radius: 10px 10px 0 0;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
}

/* 投稿コンテンツ部分の背景調整 */
.single-post .entry-content,
.single .entry-content,
.archive .entry-content,
.blog .entry-content,
.search .entry-content,
.category .entry-content,
.tag .entry-content {
  background-color: #fff;
  border-radius: 0 0 10px 10px;
  padding: 0;
}

/* スマホでの調整 */
@media screen and (max-width: 784px) {
  .single-post .l-mainContent__inner,
  .single .l-mainContent__inner,
  .archive .l-mainContent__inner,
  .blog .l-mainContent__inner,
  .search .l-mainContent__inner,
  .category .l-mainContent__inner,
  .tag .l-mainContent__inner {
    margin: 30px 10px;
    padding: 20px;
    border-radius: 10px;
  }

  .single-post .p-articleHead,
  .single .p-articleHead,
  .archive .p-articleHead,
  .blog .p-articleHead,
  .search .p-articleHead,
  .category .p-articleHead,
  .tag .p-articleHead {
    margin: -20px 0px 20px 0px;
    padding: 15px 0;
    border-radius: 10px 10px 0 0;
  }
}

/* より小さいスマホでの調整 */
@media screen and (max-width: 480px) {
  .single-post .l-mainContent__inner,
  .single .l-mainContent__inner,
  .archive .l-mainContent__inner,
  .blog .l-mainContent__inner,
  .search .l-mainContent__inner,
  .category .l-mainContent__inner,
  .tag .l-mainContent__inner {
    margin: 20px 5px;
    padding: 15px;
    border-radius: 8px;
  }

  .single-post .p-articleHead,
  .single .p-articleHead,
  .archive .p-articleHead,
  .blog .p-articleHead,
  .search .p-articleHead,
  .category .p-articleHead,
  .tag .p-articleHead {
    margin: -15px 0px 15px 0px;
    padding: 10px 0;
    border-radius: 8px 8px 0 0;
  }
}

/* ===============================================
スマホ、タブレットでのWordPressページ余白設定
=============================================== */

@media screen and (max-width: 1023px) {
  /* WordPressのメインコンテンツエリア */
  main,
  .main-content,
  .content-area,
  .site-content {
    padding: 20px 10px !important;
    margin: 0;
  }

  /* WordPressの投稿・ページコンテンツ */
  .entry-content,
  .post-content,
  .page-content {
      padding: 20px 10px !important;
    margin: 0;
  }

  /* WordPressの投稿一覧 */
  .posts-list,
  .blog-posts,
  .archive-posts {
    padding: 20px 10px !important;
    margin: 0;
  }

  /* WordPressの投稿詳細 */
  .single-post .entry-content,
  .single-page .entry-content {
    padding: 20px 10px !important;
    margin: 0;
  }

  /* WordPressのアーカイブページ */
  .archive .entry-content,
  .search .entry-content {
    padding: 20px 10px !important;
    margin: 0;
  }
}

/* スマホでのbody余白設定 */
@media screen and (max-width: 784px) {
  /* WordPressのメインコンテンツエリア */
  main,
  .main-content,
  .content-area,
  .site-content {
    padding: 20px 10px !important;
    margin: 0;
  }

  /* WordPressの投稿・ページコンテンツ */
  .entry-content,
  .post-content,
  .page-content {
      padding: 20px 10px !important;
    margin: 0;
  }

  /* WordPressの投稿一覧 */
  .posts-list,
  .blog-posts,
  .archive-posts {
    padding: 20px 10px !important;
    margin: 0;
  }

  /* WordPressの投稿詳細 */
  .single-post .entry-content,
  .single-page .entry-content {
    padding: 20px 10px !important;
    margin: 0;
  }

  /* WordPressのアーカイブページ */
  .archive .entry-content,
  .search .entry-content {
    padding: 20px 10px !important;
    margin: 0;
  }
}

/* ===============================================
ヘッダーのレイアウト修正
=============================================== */

l-header__gnav {
  font-weight: bold;
  font-size: 16px;
}

.wp-block-column p a:hover {
  opacity: 0.7;
}

#cta-note {
  margin-top: -20px;
  font-size: 11px;
}

/* PC用：ヘッダーロゴを非表示、中央寄せ、サイズ調整 */
@media screen and (min-width: 1024px) {
  /* .l-header__logo {
    display: none !important;
  } */

  /* ヘッダー全体のサイズと中央寄せ */
  .l-header {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* ヘッダー内側のコンテナ調整 */
  .l-header__inner {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
  }

  /* ナビゲーションを中央に配置 */
  .l-header__gnav {
    flex: 1;
    display: flex;
    justify-content: center;
  }

  /* お申し込みボタンを右端に配置 */
  .w-header {
    flex: 0 0 auto;
    margin-left: auto;
  }

  /* PC用：ナビゲーションメニューのフォントサイズ設定 */
  .c-gnav > .menu-item > a .ttl {
    font-size: 16px !important;
  }
}

/* タブレット・スマホ用：レイアウト調整 */
@media screen and (max-width: 1023px) {
  /* ヘッダー全体の背景と高さ設定 */
  .l-header {
    background: #fff;
    height: 65px;
  }

  /* メニューボタンを非表示 */
  /* .l-header__menuBtn {
    display: none !important;
  } */

  /* ナビゲーションを非表示 */
  /* .l-header__gnav {
    display: none !important;
  } */

  /* ヘッダーロゴを非表示 */
  /* .l-header__logo {
    display: none !important;
  } */

  /* ヘッダー全体のレイアウト調整 */
  .l-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 100%;
  }

  /* お申し込みボタンを左側に配置 */
  .l-header__customBtn {
    display: flex !important;
    justify-content: flex-start;
    align-items: center;
    flex: 0 0 auto;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* カスタムカートボタンのスタイル */
  .cart-btn {
    display: table-cell !important;
    vertical-align: middle;
    font-size: 10px;
    color: #0092d7;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .cart-btn a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #0092d7;
    transition: all 0.2s ease;
    white-space: nowrap;
    padding: 8px;
  }

  .cart-btn a:hover {
    opacity: 0.7;
    text-decoration: none;
    color: #0092d7;
  }

  .cart-btn .cart-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    margin-bottom: 2px;
  }

  .cart-btn span {
    font-size: 10px;
    color: #0092d7;
    text-align: center;
    line-height: 1.2;
  }
}

/* スマホ用の追加調整 */
@media screen and (max-width: 767px) {
  .l-header__inner {
    padding: 0 15px;
  }

  /* カスタムカートボタンのサイズ調整 */
  .cart-btn .cart-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
  }

  .cart-btn span {
    font-size: 9px;
  }
}

/* より小さいスマホ用の調整 */
@media screen and (max-width: 480px) {
  .cart-btn .cart-icon {
    width: 28px;
    height: 28px;
  }

  .cart-btn span {
    font-size: 8px;
  }
}

/* ===============================================
フッターリンクの横並びスタイル
=============================================== */

/* スマホフッターを非表示 */
.footer.sp {
  display: none !important;
}

#footer {
  font-size: 13px;
}

/* l-footer__footを非表示 */
.l-footer__foot {
  display: none !important;
}

/* フッター内のリンクを横並びに配置 */
.footer .information .data {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* リンク間に区切り文字（｜）を追加 */
.footer .information .data li:not(:last-child)::after {
  content: "｜";
  margin-left: 20px;
  color: #333;
}

/* フッター全体のレイアウト調整 */
.footer .information {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

/* 左側のリンクエリア */
.footer .information .data {
  flex: 0 0 auto;
  justify-content: center;
}

/* 右側のコピーライト */
.footer .information .copyright {
  flex: 0 0 auto;
  margin: 0;
  text-align: center;
  color: #333;
}

/* タブレット・スマホ用フッター */
@media screen and (max-width: 1023px) {
  /* PCフッターを非表示 */
  .footer.pc {
    display: none !important;
  }

  .l-container {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  /* スマホフッターを表示 */
  .footer.sp {
    display: block !important;
    background: #fff;
    padding: 20px 0;
  }

  /* フッターロゴ */
  .footer-logo {
    text-align: center;
    margin-bottom: 20px;
  }

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

  /* 会社ナビゲーション */
  .company-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    margin-bottom: 20px;
  }

  .company-nav li:not(:last-child)::after {
    content: "｜";
    margin-left: 20px;
    color: #333;
  }

  .company-nav a {
    text-decoration: none;
    color: #3aabe0;
    font-size: 14px;
  }

  .company-nav a:hover {
    opacity: 0.7;
  }

  /* コピーライト */
  .footer.sp .copy {
    padding: 10px 0;
    background: #1c3d80;
    text-align: center;
    font-size: 1rem;
    color: #fff;
    margin: 0;
  }
}

/* スマートフォン用の調整 */
@media screen and (max-width: 767px) {

  .l-container {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  .footer .information {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }

  .footer .information .data {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .footer .information .data li:not(:last-child)::after {
    margin-left: 10px;
  }

  .footer .information .copyright {
    text-align: center;
  }

  /* スマホフッターの調整 */
  .footer.sp {
    padding: 15px 0;
  }

  .company-nav {
    gap: 15px;
    margin-bottom: 15px;
  }

  .company-nav a {
    font-size: 12px;
  }

  .company-nav li:not(:last-child)::after {
    margin-left: 15px;
  }

  .footer.sp .copy {
    font-size: 0.9rem;
  }
}

/* ===============================================
lum-lightbox: 画像を中央に表示
=============================================== */
.lum-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lum-lightbox-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.lum-lightbox-image-wrapper,
.lum-lightbox-position-helper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
}

.lum-lightbox img.lum-img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-radius: 6px;
}

body.lum-lightbox-open {
  overflow: hidden;
}
