@charset "UTF-8";

html {
  scroll-behavior: smooth;
  letter-spacing: 1px;
}
* {
  font-feature-settings: 'palt';
  box-sizing: border-box;
}
img {
  max-width: 100%;
}
body {
  font-family: sans-serif;
  background: #fff;
  color: #f58220;
  font-size: var(--font-base);
  background-color: #000;
}
a {
  text-decoration: none;
}
.pc {
  display: block;
}
.sp {
  display: none;
}
:root {
  /* フォントサイズ（モバイル〜デスクトップで滑らかに増減） */
  --font-base: clamp(15px, 1.6vw, 18px);
  --font-sm: clamp(12px, 1.3vw, 16px);
  --font-lg: clamp(18px, 2.4vw, 22px);
  --font-xx: clamp(20px, 2.8vw, 30px);
  --font-xl: clamp(24px, 4.8vw, 48px);
  --font-xxl: clamp(28px, 6.2vw, 64px);
}

/* ================= レイアウト ================= */
.layout {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  min-height: 100vh;
  max-width: 1700px;
  margin: 0 auto;
  background-color: #fff;
}

/* ================= 左メイン ================= */
.top img {
  width: 100%;
  display: block;
}

.band {
  text-align: center;
  padding: 2rem 0;
  background: #f58220 url(/free/_img/bg.png);
}
.band img {
  max-width: 600px;
  width: 90%;
}

/* カード一覧 */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

/* ================= カード ================= */
.card {
  height: 100%;
  display: grid;
  grid-template-columns: 110px 1fr 32px;
  align-items: center;
  gap: 18px;
  padding: 18px;
  text-decoration: none;
  color: #111;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  position: relative;
}

/* 市松模様 */
.cards .card:nth-child(4n + 1),
.cards .card:nth-child(4n + 4) {
  background: #f3f3f3;
}
.cards .card:nth-child(4n + 2),
.cards .card:nth-child(4n + 3) {
  background: #fff;
}

/* hover浮き */
.card:hover {
  z-index: 2;
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

/* 丸サムネ */
.thumb {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  background: #ddd;
  border: 1px solid #e9e9e9;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* 丸サムネ2 */
.thumb2 {
  vertical-align: middle;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  background: #ddd;
  display: inline-block;
}
.thumb2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ✅テキスト中央安定 */
.txt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 110px;
  overflow: hidden;
}
.txt h3 {
  font-size: var(--font-lg);
  color: #ff5a00;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.txt p {
  font-size: 13px;
  color: #333;
  margin-top: 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.arrow {
  font-size: 30px;
  color: #999;
  align-self: center;
}

/* ================= 右カラム================= */
.side {
  background: #f58220;
}
.side-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  padding: 18px;
}
.side-box {
  margin-bottom: 18px;
  max-width: 220px;
  margin: 0 auto;
}
.side-box img {
  width: 100%;
}
.side-list {
  list-style: none;
}
.side-list li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}
.side-list a {
  display: block;
  padding: 12px 0;
  font-size: 13px;
  color: #111;
  text-decoration: none;
  transition: padding-left 0.15s ease;
}
.side-list a:hover {
  background: rgba(255, 255, 255, 0.25);
  padding-left: 6px;
}

/* ================= フッター ================= */
.footer_sq {
  display: block;
  width: 150px;
  margin: 0 auto 10px;
}
footer {
  background: #000;
  padding: 3rem 0;
  text-align: center;
  color: #fff;
  font-size: 12px;
}

/*******************************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/
/********************************SP*********************/

@media (max-width: 700px) {
  .pc {
    display: none;
  }
  .sp {
    display: block;
  }
  /* ================= レイアウト ================= */
  .layout {
    grid-template-columns: 1fr 0; /* 1列にする */
    overflow: hidden;
  }
  /* カード一覧 */
  .cards {
    grid-template-columns: 1fr;
  }
  .thumb {
    width: 80px;
    height: 80px;
  }
  .card {
    grid-template-columns: 80px 1fr 28px;
  }
  .txt {
    min-height: 80px;
  }
  .cards .card:nth-child(odd) {
    background: #f3f3f3;
  }
  .cards .card:nth-child(even) {
    background: #fff;
  }
  .card:hover {
    transform: none;
    box-shadow: none;
  }
  .card:active {
    transform: scale(0.99);
  }
  .side-box {
    margin-top: 20px;
    width: 60%;
  }
}
/* AOSコイン動き */
[data-aos='coin-rotate'] {
  transform: perspective(800px) rotateY(180deg) scale(0.5);
  opacity: 0;
  transition-property: transform, opacity;
}
/* AOS発火後 */
[data-aos='coin-rotate'].aos-animate {
  transform: perspective(800px) rotateY(0deg) scale(1);
  opacity: 1;
}
/* TOTOP */
#toTop {
  position: fixed;
  right: 10px;
  bottom: 10px;
  width: 66px;
  height: auto;
  border: none;
  cursor: pointer;
  font-size: 0;
  opacity: 0;
  background: none;
  padding: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
@media (max-width: 700px) {
  #toTop {
    width: 60px;
  }
}
#toTop.is-show {
  z-index: 5;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: all 0.5s;
}
#toTop.is-show:hover {
  transform: translateY(-5px);
}
#toTop img {
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
}
