/* フェードアップ（PC時のみ）、共通CSSに置くと一部動作しない */
@media screen and (min-width: 768px) {
  .u-fade {
    opacity: 0;
    transition: all 2s;
  }
  .u-fade.is-scroll {
    opacity: 1;    
  }
  .u-fade-4item {
    opacity: 0;
    transform: translate(0, 40px);
    transition: all 2s ease;
  }
  .u-fade-4item:nth-of-type(4n+1) {
    transition: all 500ms;
  }
  .u-fade-4item:nth-of-type(4n+2) {
    transition: all 1000ms;
  }
  .u-fade-4item:nth-of-type(4n+3) {
    transition: all 1500ms;
  }
  .u-fade-4item:nth-of-type(4n+4) {
    transition: all 2000ms;
  }
  .u-fade-4item.is-scroll {
    opacity: 1;
    transform: translate(0, 0);
  }
}

/* slickアニメーション用（PC時のみ） */
@media screen and (min-width: 768px) {
  #slider div img {
    margin: 0 auto;
    transform: scale(1.1);
    transition: 9s ease-out;
  }
  #slider div.is-animation img{
    transform: scale(1);
  }
}
/* スライドショー */
#slider {
  background-color: #fff;
  margin: 0 auto 40px;
  opacity: 0;
  transition: opacity 0.3s ease 0s;
}
@media screen and (min-width: 768px) {
  #slider {
    margin: 0 auto 70px;
    max-width: 1920px;
  }
}
#slider.slick-initialized {
  opacity: 1;
}
#slider .slick-slide {
  position: relative;
  transition: opacity 2s ease 0s !important;
}
#slider .slick-slide > a {
  pointer-events: none;
}
#slider .slick-slide a:hover {
  opacity: 1;
}
@media screen and (min-width: 768px) {
  #slider .slick-slide img {
    max-width: 100%;
    height: auto;
  }
}
/* スライドショーのドットのサイズ */
#slider .slick-dots {
  position: static;
  margin-top: 5px;
}
@media screen and (min-width: 768px) {
  #slider .slick-dots {
    position: absolute;
    bottom: 10px;
    margin-top: 0;
  }
}
#slider .slick-dots li {
  margin: 0 2px;
}
#slider .slick-dots li button::before {
  color: var(--mv-dot-button-color);
  content: "●";
  font-size: 16px;
  opacity: 0.8;
}
#slider .slick-dots li.slick-active button::before {
  color: var(--mv-dot-button-color-active);
  content: "●";
  font-size: 16px;
}

/* スライドショーのキャプション */
.p-mv-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--general-background-color-gray);
  margin-right: 20px;
  padding: 5px;
  width: 100%;
  transition: all 0.3s ease;
}
@media screen and (min-width: 768px) {
  .p-mv-caption {
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    background: transparent;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
    opacity: 0;
  }
}
@media screen and (min-width: 1200px) {
  .p-mv-caption {
    padding: 0;
  }
}
@media screen and (min-width: 768px) {
  .slick-active .p-mv-caption {
    animation: fadeCaption 1.5s ease-in 0.5s normal both;
  }
  @keyframes fadeCaption {
    0% { opacity: 0; transform: translateY(-40%);}
    100% { opacity: 1; transform: translateY(-50%);}
  }
}
.p-mv-caption__ttl {
  color: var(--general-text-color);
  font-size: var(--mv-caption-font-size-sp);
  font-weight: var(--mv-caption-font-weight-sp);
  margin-right: 10px;
}
@media screen and (min-width: 768px) {
  .p-mv-caption__ttl {
    color: var(--mv-caption-text-color);
    font-family: var(--mv-caption-font-family);
    font-size: var(--mv-caption-font-size-pc);
    font-weight: var(--mv-caption-font-weight-pc);
    filter: drop-shadow(10px 10px 10px rgba(0, 0, 0, 0.3));
    margin-right: 0;
  }
}
.p-mv-caption__link {
  display: inline-block;
  line-height: 1;
  margin-top: 0;
}
@media screen and (min-width: 768px) {
  .p-mv-caption__link {
    margin-top: 30px;
  }
}
@media screen and (min-width: 768px) {
  .slick-active .p-mv-caption__link {
    animation: fadeLink 0.3s ease-in 2s normal both;
  }
  @keyframes fadeLink {
    0% { opacity: 0; }
    100% { opacity: 1;}
  }
}
.p-mv-caption__link a {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 4px;
  color: var(--general-text-color);
  font-size: 12px;
  padding: 8px 12px;
}
@media screen and (min-width: 768px) {
  .p-mv-caption__link a {
    background: var(--mv-button-background-color);
    color: var(--mv-button-text-color);
    font-size: 16px;
    padding: 8px 20px;
  }
}
.p-mv-caption__link a:hover {
  background: var(--mv-button-background-color-hover);
  color: var(--mv-button-text-color-hover);
}
/***** 以下はサンプル用に追加したCSS、必須ではありません *****/
/* お知らせ */
.p-info h2 {
  font-weight: 500;
  border-bottom: 1px solid #000;
  margin-bottom: 20px;
  text-align: center;
}
.p-info ul {
  list-style: square;
  padding-left: 16px;
}
.p-info .c-bg-gray {
  background: #eee;
  border-radius: var(--item-border-radius);
  margin-top: 30px;
  padding: 20px;
}

/* カテゴリーの電球 */
.c-category-list .c-bulb {
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

/* 店長エリア */
.p-manager {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #333333;
  /*filter: grayscale(0.7);*/
  padding: 30px 0 10px;
  max-width: 1000px; /* 最大幅を1000pxに設定 */
}
@media screen and (min-width: 768px) {
  .p-manager {
    padding: 30px 0 10px;  
  }
}
.p-manager-in {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-align: center;
}
.p-manager h2 {
  font-family: var(--manager-name-font-family);
  font-size: var(--manager-name-font-size-sp);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
}
@media screen and (min-width: 768px) {
  .p-manager h2 {
    font-size: var(--manager-name-font-size-pc);
  }
}
.p-manager-in__memo {
  margin: 10px 0 10px; 
}
.p-manager strong {
  text-decoration: underline;
}

/* 店長エリアのボタン */
.c-btn-view {
  border: 1px solid #fff;
  border-radius: 25px;
  color: #fff;
  padding: 10px 30px;
}
.c-btn-view:hover {
  background: var(--general-background-color);
  border: 1px solid var(--general-background-color);
  color: #fff;
  opacity: 1;
}


/* フリースペース */
.p-freespace .c-heading__right {
  display: flex;
}
.p-freespace .c-heading__right-txt {
  border-bottom: 1px solid var(--general-text-color);
  margin-top: 3px;
}
.p-freespace .c-col-3 {
  background: #eee;
  border-radius: var(--item-border-radius);
  height: 240px;
  padding: 20px;
}
.p-freespace .c-col-3 p {
  font-size: 40px;
  font-family: var(--manager-name-font-family);
  font-weight: 700;
  color: #fff;
}



/* 202503追記 */
.top_banner {
	margin-left: auto;
	margin-right: auto;
	padding:10px;
  display: block; /* ブロック要素に変更 */
  text-align: center; /* コンテンツを中央寄せ */
}

.top_banner a {
    display: inline-block; /* aタグをインラインブロック要素にする */
    margin: auto; /* 中央寄せ */
    width: auto;
    max-width: 100%; /* 親要素を超えない */
}

.top_banner img{
  margin: auto;
  display: block;
  max-width: 100%; /* 画像の最大幅を調整 */
  width: auto; /* 画像の幅を自動設定 */
}

.reasons-container {
  display: flex;
  flex-direction: column; /* 縦並びにする */
  align-items: center; /* 中央揃えにする */
  max-width: 1000px; /* 最大幅を1000pxに設定 */
  margin: 20px auto; /* 上下左右に余白を追加 */
  padding: 0 20px; /* 左右に20pxの余白を追加 */
  text-align: center; /* 全体の中央揃え */
  box-sizing: border-box; /* 幅にpaddingを含める */
}

.reason {
  width: 100%; /* 各要素の幅を100%にする */
  margin-bottom: 20px;
  padding: 20px; /* 要素内の余白 */
  border: 1px solid #ccc; /* 枠線を追加 */
  box-sizing: border-box; /* 幅にpaddingとborderを含める */
}

.reason-content {
  display: flex; /* 画像とテキストを横並びにする */
  align-items: center; /* 垂直方向に中央揃えにする */
  justify-content: center; /* 水平方向に中央揃えにする */
}

.reason img {
  max-width: 30%; /* 画像の最大幅を30%にする */
  height: auto;
  margin-right: 20px; /* 画像とテキストの間に余白を追加 */
}

.text-content {
  flex-grow: 1; /* テキスト部分が残りのスペースを埋める */
  text-align: left; /* テキストは左揃え */
}

.reason h2, .reason h3 {
  margin-bottom: 10px;
}

.additional-text-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: left;
}

.additional-text-container p {
  font-size: 14px; /* フォントサイズを少し小さく */
  line-height: 1.6; /* 行間を広げる */
  color: #333; /* テキストの色 */
  letter-spacing: 0.5px; /* 字間を少し調整 */
}

.additional-text-container strong {
  font-size: 16px; /* 太字部分のフォントサイズを調整 */
  color: #000; /* 太字部分の色を調整 */
}

/* レスポンシブ対応 (例) */
@media (max-width: 768px) {
  .reasons-container {
    width: 90%; /* 画面幅に合わせて調整 */
    padding: 0 10px; /* 左右の余白を調整 */
  }

  .reason-content {
    flex-direction: column; /* 縦並びにする */
    align-items: center; /* 中央揃えにする */
  }

  .reason img {
    max-width: 100%; /* 画像の最大幅を100%にする */
    margin-right: 0;
    margin-bottom: 10px;
  }

  .text-content {
    text-align: center; /* テキストは中央揃え */
  }
  
    .additional-text-container {
    padding: 0 10px; /* 画面幅に合わせて左右のpaddingを調整 */
  }

  .additional-text-container p {
    font-size: 13px; /* スマホ用にフォントサイズをさらに小さく */
  }
  .additional-text-container strong {
    font-size: 14px; /* 太字部分のフォントサイズを調整 */
  }
}
/* 202502追記終了 */

.link-button {
  text-align: center; /* リンクを中央揃えにする */
  margin-top: 20px; /* 上部に余白を追加 */
  margin-bottom: 20px; /* 下部に余白を追加 */
}

.link-button a {
  display: inline-block; /* ブロック要素として表示 */
  background-color: #f0f0f0; /* 背景色を設定 */
  color: #333; /* 文字色を設定 */
  padding: 10px 20px; /* 内側の余白を設定 */
  border-radius: 5px; /* 角を丸くする */
  text-decoration: none; /* 下線を消す */
  border: 1px solid #ccc; /* 枠線を追加 */
  transition: background-color 0.3s ease; /* ホバー時のアニメーションを設定 */
}

.link-button a:hover {
  background-color: #e0e0e0; /* ホバー時の背景色を変更 */
}

/* 202506業種別ランキング */
.ranking-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
}

.rank-item {
  flex: 1 1 220px;
  background: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  font-size: 14px;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s ease;
}

.rank-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 8px;
}

.rank-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media screen and (max-width: 768px) {
  .ranking-list {
    flex-direction: column;
    gap: 12px;
  }
  .rank-item {
    width: 100%;
  }
}

/* 業種別ランキング コンテナ */
.industry-ranking-container {
  max-width: 960px; /* 最大幅を960pxに設定 */
  margin-left: auto;  /* 左マージンを自動に設定して中央揃え */
  margin-right: auto; /* 右マージンを自動に設定して中央揃え */
  padding-left: 15px; /* 画面幅が狭い場合に左右に余白を追加 */
  padding-right: 15px;/* 画面幅が狭い場合に左右に余白を追加 */
  margin-bottom: 40px; /* 下部にマージンを追加（必要に応じて調整） */
}

/* 業種別ランキング内の各セクションのマージン調整 */
.industry-ranking-container .industry-section {
   margin-bottom: 40px; /* セクション間のマージン */
}
.industry-ranking-container .industry-section:last-child {
   margin-bottom: 0; /* 最後のセクションの下マージンは不要 */
}

/* 業種別ランキング内の画像スタイル（必要であれば調整） */
.industry-ranking-container .section-image img {
   width: 100%; /* コンテナ幅に合わせる */
   height: auto;
   display: block;
}

/* スマートフォン表示時の業種別ランキングコンテナの余白調整 */
@media screen and (max-width: 767px) {
  .section-image {
    margin: auto;
    display: block;
    max-width: 95%; /* 画像の最大幅を調整 */
    width: auto; /* 画像の幅を自動設定 */
  }
}

/* メニューリストのスタイル調整 */
.menu-list ul {
  list-style-type: disc; /* 箇条書きのマーカーを表示 */
  padding-left: 20px;    /* 左側のパディング（インデント） */
  margin-bottom: 20px;   /* 下のランキングリストとの間に余白を追加 */
  text-align: left;      /* テキストを左揃えに */
}


/* ランキングアイコンを目立たせるためのスタイル */
.rank-item p {
  display: flex; /* アイコンとテキストを適切に配置するため */
  align-items: center; /* アイコンとテキストを垂直方向中央揃え */
}

.rank-badge {
  display: inline-flex; /* 中のテキスト（絵文字）を中央揃えにするため */
  justify-content: center;
  align-items: center;
  min-width: 28px; /* 最小幅を確保 */
  height: 28px; /* バッジの高さ */
  padding: 0 8px; /* 横方向のパディング */
  border-radius: 50%; /* 円形にする */
  font-size: 16px; /* 数字のサイズ */
  margin-right: 8px; /* テキストとの間隔 */
  font-weight: bold;
  line-height: 28px; /* 高さと合わせる */
  box-sizing: border-box;
}

/* 1位のスタイル */
.ranking-list > .rank-item:nth-child(1) .rank-badge { background-color: #ffd700; color: #333; /* 金色背景、濃い文字色 */ }
/* 2位のスタイル */
.ranking-list > .rank-item:nth-child(2) .rank-badge { background-color: #c0c0c0; color: #333; /* 銀色背景、濃い文字色 */ }
/* 3位のスタイル */
.ranking-list > .rank-item:nth-child(3) .rank-badge { background-color: #cd7f32; color: #fff; /* 銅色背景、白文字 */ }