@charset "UTF-8";
/* ==========================================================================
   フッターのコラムランキング (ef.html のデザイン)
   紙片のコラージュ + 中央にスマホ型のカテゴリー目次
   元に戻すときは ~/revert-footer-column.sh
   ========================================================================== */
/* Inter の @import は削除 (redesign-font.css でサイト全体が Noto Sans JP に統一されていて使っていない。描画を止める原因になっていた) */

.ks_fcr {
  --fcr-bg: #dbdbdb;
  --fcr-paper: #f4f4f4;
  --fcr-paper-2: #f0f0f0;
  --fcr-line: #e0e0e0;
  --fcr-ink: #1a1a1a;
  --fcr-ink-3: #8a8a8a;
  position: relative;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  color: var(--fcr-ink);
  margin: 0 0 48px;
}

/* 背景のグレーと紙のざらつきを画面幅いっぱいに敷く */
.ks_fcr::before,
.ks_fcr_texture {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
}

.ks_fcr::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: var(--fcr-bg);
  z-index: 0;
}

/* 背景を画面幅に広げても横スクロールが出ないように (sticky は効くよう clip を使う) */
footer.footer_bg_config_custom {
  overflow-x: clip;
}

.ks_fcr_paper {
  background-color: var(--fcr-paper);
  -webkit-box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.08);
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--fcr-line);
  color: var(--fcr-ink);
}

/* --- ステージ (左列・スマホ・右列) ---------------------------------------- */

.ks_fcr_stage {
  position: relative;
  z-index: 1;
  padding: 48px 0 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px minmax(0, 1fr);
  -webkit-column-gap: 56px;
  column-gap: 56px;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: start;
}

.ks_fcr_col {
  position: relative;
  z-index: 10;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  min-width: 0;
}

.ks_fcr_col_left {
  grid-column: 1;
  grid-row: 1;
}

.ks_fcr_col_right {
  grid-column: 3;
  grid-row: 1;
}

/* 飾りの紙片 */
.ks_fcr_deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  padding: 16px;
  font-size: 20px;
  line-height: 1.25;
  color: #777777;
  opacity: 0.55;
  -webkit-user-select: none;
  user-select: none;
}

.ks_fcr_vertical {
  position: absolute;
  z-index: 20;
  padding: 8px 12px;
  border: 1px solid #b5b5b5;
  background: #ffffff;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.3em;
  -webkit-writing-mode: vertical-rl;
  writing-mode: vertical-rl;
}

/* 見出しの紙片 */
.ks_fcr_title {
  -ms-flex-item-align: start;
  align-self: flex-start;
  width: 280px;
  max-width: 100%;
  padding: 24px;
  margin: 0 0 40px;
  -webkit-transform: rotate(-1deg);
  transform: rotate(-1deg);
}

.ks_fcr_title_en {
  margin: 0;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.ks_fcr_title_ja {
  -ms-flex-item-align: end;
  align-self: flex-end;
  padding: 16px 20px;
  margin: 0 0 40px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.5;
  -webkit-transform: rotate(1deg);
  transform: rotate(1deg);
}

/* --- カテゴリーの紙片 ---------------------------------------------------- */

.ks_fcr .footer_column_ranking_block {
  position: relative;
  z-index: 10;
  width: 92%;
  max-width: 400px;
  padding: 20px 22px 18px;
  margin: 0 0 36px;
  -webkit-transition: transform 0.25s ease, box-shadow 0.25s ease;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ks_fcr .footer_column_ranking_block:hover {
  -webkit-transform: rotate(0deg) translateY(-3px) !important;
  transform: rotate(0deg) translateY(-3px) !important;
  -webkit-box-shadow: 3px 8px 18px rgba(0, 0, 0, 0.14);
  box-shadow: 3px 8px 18px rgba(0, 0, 0, 0.14);
  z-index: 40;
}

/* 列ごとに少しずつ傾けて左右にずらす (1番目の子は見出し) */
.ks_fcr_col_left .footer_column_ranking_block:nth-child(4n+2) { -webkit-transform: rotate(-0.6deg); transform: rotate(-0.6deg); -ms-flex-item-align: end; align-self: flex-end; }
.ks_fcr_col_left .footer_column_ranking_block:nth-child(4n+3) { -webkit-transform: rotate(0.8deg); transform: rotate(0.8deg); -ms-flex-item-align: start; align-self: flex-start; }
.ks_fcr_col_left .footer_column_ranking_block:nth-child(4n+4) { -webkit-transform: rotate(-0.4deg); transform: rotate(-0.4deg); -ms-flex-item-align: end; align-self: flex-end; }
.ks_fcr_col_left .footer_column_ranking_block:nth-child(4n+5) { -webkit-transform: rotate(1deg); transform: rotate(1deg); -ms-flex-item-align: start; align-self: flex-start; }
.ks_fcr_col_right .footer_column_ranking_block:nth-child(4n+2) { -webkit-transform: rotate(0.7deg); transform: rotate(0.7deg); -ms-flex-item-align: start; align-self: flex-start; }
.ks_fcr_col_right .footer_column_ranking_block:nth-child(4n+3) { -webkit-transform: rotate(-0.8deg); transform: rotate(-0.8deg); -ms-flex-item-align: end; align-self: flex-end; }
.ks_fcr_col_right .footer_column_ranking_block:nth-child(4n+4) { -webkit-transform: rotate(0.5deg); transform: rotate(0.5deg); -ms-flex-item-align: start; align-self: flex-start; }
.ks_fcr_col_right .footer_column_ranking_block:nth-child(4n+5) { -webkit-transform: rotate(-1deg); transform: rotate(-1deg); -ms-flex-item-align: end; align-self: flex-end; }
.ks_fcr_col_right .footer_column_ranking_block:nth-child(2) { margin-top: 60px; }

.ks_fcr .footer_column_ranking_block:nth-child(odd) {
  background-color: var(--fcr-paper);
}

.ks_fcr .footer_column_ranking_block:nth-child(even) {
  background-color: var(--fcr-paper-2);
  border-color: #d6d6d6;
}

.ks_fcr .footer_column_ranking_block > a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.ks_fcr .footer_column_ranking_block_title {
  display: grid;
  grid-template-columns: 16px 1fr;
  -webkit-column-gap: 8px;
  column-gap: 8px;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: start;
  margin: 0 0 12px;
  padding: 0 0 8px;
  border-bottom: 1px solid #000000;
  font-weight: 500;
}

.ks_fcr .footer_column_ranking_block_title img {
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  -webkit-filter: grayscale(1) contrast(1.4);
  filter: grayscale(1) contrast(1.4);
}

.ks_fcr_cat {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.ks_fcr_sub {
  grid-column: 2;
  display: block;
  margin: 2px 0 0;
  font-size: 10px;
  font-weight: 400;
  color: var(--fcr-ink-3);
  letter-spacing: 0.04em;
}

.ks_fcr .footer_column_ranking_block > a:hover .ks_fcr_cat {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ks_fcr .footer_column_ranking_list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: fcr_rank;
}

.ks_fcr .footer_column_ranking_item {
  counter-increment: fcr_rank;
  display: grid;
  grid-template-columns: 22px 1fr;
  -webkit-column-gap: 6px;
  column-gap: 6px;
  margin: 0;
  padding: 6px 0;
  border-top: 1px dashed #cfcfcf;
}

.ks_fcr .footer_column_ranking_item:first-child {
  border-top: 0;
}

.ks_fcr .footer_column_ranking_item::before {
  content: counter(fcr_rank, decimal-leading-zero);
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: var(--fcr-ink-3);
  padding: 2px 0 0;
}

.ks_fcr .footer_column_ranking_link {
  font-size: 12px;
  line-height: 1.6;
  color: #333333;
  text-decoration: none;
}

.ks_fcr .footer_column_ranking_link:hover {
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- 中央のスマホ -------------------------------------------------------- */

.ks_fcr_phone {
  grid-column: 2;
  grid-row: 1;
  position: -webkit-sticky;
  position: sticky;
  top: 110px;
  z-index: 50;
  width: 340px;
  height: 680px;
  margin: 20px 0 0;
  padding: 12px;
  background: #000000;
  border: 6px solid #333333;
  border-radius: 3rem;
  -webkit-box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
}

.ks_fcr_phone_notch {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 20;
  width: 144px;
  height: 28px;
  background: #000000;
  border-radius: 0 0 16px 16px;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}

.ks_fcr_phone_screen {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 72px 0 32px;
  background: #e8e8e8;
  border-radius: 2.5rem;
  overflow-x: hidden;
  overflow-y: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 18px;
  scrollbar-width: none;
}

.ks_fcr_phone_screen::-webkit-scrollbar {
  display: none;
}

.ks_fcr_texture {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0.5;
  pointer-events: none;
}

.ks_fcr_phone_card {
  position: relative;
  width: 91.6%;
  background: var(--fcr-paper-2);
  border: 1px solid #e5e5e5;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ks_fcr_phone_card_en {
  padding: 24px;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
}

.ks_fcr_phone_card_ja {
  padding: 16px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.ks_fcr_phone_card_list {
  padding: 14px 16px;
}

.ks_fcr_phone_cats_title {
  margin: 0 0 6px;
  padding: 0 0 4px;
  border-bottom: 1px solid #000000;
  font-size: 12px;
  font-weight: 700;
}

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

.ks_fcr_phone_cats li + li {
  border-top: 1px dashed #cfcfcf;
}

.ks_fcr_phone_cats a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  color: var(--fcr-ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.ks_fcr_phone_cats a::after {
  content: "→";
  font-size: 11px;
  color: var(--fcr-ink-3);
}

.ks_fcr_phone_cats a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- タブレット以下: スマホと飾りを外し、2列 → 1列 ---------------------- */

@media only screen and (max-width: 1180px) {
  .ks_fcr_stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    -webkit-column-gap: 28px;
    column-gap: 28px;
    padding: 32px 0 64px;
  }

  .ks_fcr_phone,
  .ks_fcr_deco,
  .ks_fcr_vertical {
    display: none;
  }

  .ks_fcr_col_right {
    grid-column: 2;
  }

  .ks_fcr .footer_column_ranking_block {
    width: 100%;
    max-width: none;
  }

  .ks_fcr_col_right .footer_column_ranking_block:nth-child(2) {
    margin-top: 0;
  }
}

@media only screen and (max-width: 680px) {
  .ks_fcr_stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .ks_fcr_col_left,
  .ks_fcr_col_right {
    grid-column: 1;
    grid-row: auto;
  }

  .ks_fcr_title,
  .ks_fcr_title_ja {
    margin: 0 0 20px;
  }

  .ks_fcr_title {
    width: auto;
  }

  .ks_fcr_title_en {
    font-size: 26px;
  }

  .ks_fcr_title_ja {
    margin: 0 0 32px;
  }

  .ks_fcr .footer_column_ranking_block {
    margin: 0 0 24px;
  }
}
