@charset "utf-8";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.sp {
  font-family: "ヒラギノ角ゴシック", "Hiragino Kaku Gothic", sans-serif;
  background-color: #fff;
  color: #534741;
  line-height: 1.4;
}

a {
  text-decoration: none;
  color: inherit;
}

.iq .footer-sp-img {
  display: none;
}

@media screen and (max-width: 768px) {
  #profile,
  #download,
  #sns {
    scroll-margin-top: 50px;
  }

/* -----------------------------------
   1. ヘッダー
----------------------------------- */
.iq .lp_mv {
  width: 100%;
  padding: 0;
  margin: 0;
  justify-content: center;
  align-items: center;
}

.iq .lp_mv img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

/* -----------------------------------
   2. メニュー
----------------------------------- */
.iq .menu_wrap {
  background-color: #FCCC00;
  margin: 0 calc(50% - 50vw);
  width: 100%;
  height: 128px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.iq .menu {
  width: 900px;
  display: flex;
  justify-content: center;
}

.iq .menu_btn {
  display: inline-block;
  margin: 22.5px;
}

.iq .menu_btn:hover {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

/* -----------------------------------
   3. プロフィール
----------------------------------- */
.iq .profile_wrap {
  background-color: #FFFCF0;
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  padding-bottom: 100px;
  text-align: center;
}

.iq .profile-title {
  font-size: 28px;
  line-height: 1.6;
  font-weight: bold;
  color: #534741;
  display: block;
  margin-top: 60px;
  margin-bottom: 40px;
}

.iq .profile-item {
  font-size: 18px;
  line-height: 2;
  color: #534741;
  margin-top: 10px;
  margin-bottom: 0;
}

.iq .iq-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.iq .iq-tab {
  background-color: #f5f0e8;
  border: none;
  border-radius: 30px;
  padding: 10px 40px;
  font-size: 1.25em;
  color: #7a6b63;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.iq .iq-tab.active {
  background-color: #fe6b11;
  color: #ffffff;
}

.iq .iq-tab.active::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 12px;
  background-color: #fe6b11;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.iq .iq-tab:hover:not(.active) {
  background-color: #ffeade;
  color: #534741;
}

/* ---------- カルーセル共通 ---------- */
.iq .hidden {
  display: none;
}

.iq .iq-carousel {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.iq .carousel-track-container {
  overflow: hidden;
  width: 100%;
}

.iq .carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.iq .carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0 auto;
}

.iq .carousel-slide img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.iq .carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.iq .carousel-button img {
  width: 40px;
  height: auto;
  display: block;
}

.iq .carousel-button.prev {
  left: 10px;
}

.iq .carousel-button.next {
  right: 10px;
}

.iq .carousel-button:hover {
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.iq .profile_text {
  display: block;
  font-size: 18px;
  line-height: 1;
  margin-top: 30px;
  margin-bottom: 20px;
}

/* ---------- アコーディオン ---------- */
.iq .accordion {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 30px;
}

.iq .accordion-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.iq .accordion-button {
  display: flex;
  align-items: center;
  border: none;
  background: url('img/accordion_off.png') no-repeat center center;
  background-size: contain;
  cursor: pointer;
  padding: 0;
  margin: 0 auto;
  transition: background-image 0.3s ease, transform 0.3s ease;
}

.iq .accordion-item.open .accordion-button {
  background-image: url('img/accordion_on.png');
}

.iq .accordion-button:hover {
  transform: scale(1.05);
}

.iq .accordion-button img {
  display: block;
  margin: 0 auto;
}

.iq .profile_iq .accordion .accordion-content picture,
.iq .profile_iq .accordion .accordion-content picture > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.iq .profile_family {
  width: 100%;
  max-width: 1100px;
  background-color: #FFF;
  margin: 70px auto 0 auto;
  border: 5px solid #FCCC00;
  border-radius: 14px;
  padding-bottom: 40px;
  overflow: hidden;
}

.iq .character-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.iq .character-tabs .tab {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.iq .character-tabs .tab img {
  width: 100px;
  height: auto;
  transition: transform 0.2s ease;
}

.iq .character-tabs .tab:hover img {
  transform: scale(1.05);
}

/* -----------------------------------
   ダウンロード・SNS・カード他
----------------------------------- */
.iq section {
  margin-bottom: 100px;
}

.iq .download h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background-color: #FCCC00;
  margin: 20px auto 0;
}

.iq .download {
  text-align: center;
  margin: 0 auto;
}

.iq .image-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.iq .image-grid a {
  display: block;
  width: 150px;
  overflow: hidden;
  transition: transform 0.2s;
}

.iq .image-grid a:hover {
  transform: scale(1.05);
}

.iq .image-grid img {
  width: 100%;
  height: auto;
  display: block;
}

.iq .image-grid.wide {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.iq .image-grid.wide a {
  width: 280px;
  overflow: visible;
  transition: transform 0.2s ease;
}

.iq .image-grid.wide img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.iq .virtual-backgrounds {
  display: grid;
  grid-template-columns: repeat(2, 400px);
  gap: 30px;
}

.iq .virtual-backgrounds a {
  width: 900px;
  transition: transform 0.2s ease;
}

.iq .virtual-backgrounds img {
  width: 100%;
  height: auto;
}

.iq .virtual-backgrounds a:hover {
  transform: scale(1.05);
}

.iq .image-grid.nurie-grid {
  display: grid;
  grid-template-columns: repeat(4, 200px);
  gap: 20px;
  width: fit-content;
  margin: 0 auto;
  justify-content: center;
  justify-items: center;
}

.iq .image-grid.nurie-grid a {
  display: block;
  text-align: center;
  width: 100%;
  transition: transform 0.2s ease;
}

.iq .image-grid.nurie-grid img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.iq .image-grid.nurie-grid a:hover img {
  transform: scale(1.05);
}

.iq .sns-section {
  text-align: center;
}

.iq .sns-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: calc(5 * 200px + 4 * 20px);
  margin: 0 auto;
}

.iq .sns-grid a {
  display: block;
  transition: transform 0.2s ease;
}

.iq .sns-grid a:hover {
  transform: scale(1.05);
}

.iq .sns-grid img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.iq .sns-account {
  display: flex;
  gap: 25px;
  justify-content: center;
  line-height: 0;
  margin-top: 40px;
}

.iq .sns-account img {
  display: block;
  height: auto;
  border: none;
}

.iq .card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 0 auto;
}

.iq .card-link {
  text-decoration: none;
  display: block;
  width: 540px;
  margin-bottom: 40px;
}

.iq .card {
  background-color: #00B900;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
  color: #fff;
  transition: transform 0.3s ease;
}

.iq .thumbnail {
  width: 112px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.iq .card-text {
  text-align: left;
  flex-grow: 1;
  line-height: 1.4;
}

.iq .card-text h3 {
  margin: 0 0 2px;
  color: #fff;
}

.iq .card-text p {
  margin: 0;
  font-size: 1em;
  color: #fff;
}

.iq .external-icon {
  width: 24px;
  height: 24px;
  margin-left: 10px;
  flex-shrink: 0;
}

/* -----------------------------------
   フッター
----------------------------------- */
.iq .footer {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: transparent;
}

.iq .footer-city {
  width: 100%;
  background-color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.iq .footer-city img {
  display: block;
  width: 100%;
  max-width: 1280px;
  height: auto;
  margin: 0 auto;
}

.iq .footer-grass-wrapper {
  width: 100%;
  background-color: #39B54A;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.iq .footer-grass-iq {
  display: block;
  width: 100%;
  max-width: 1280px;
  height: auto;
  margin: 0 auto;
}

/* ===================================
   SP（max-width:768px）まとめ
=================================== */
@media screen and (max-width: 768px) {
  /* 1. ヘッダー */
  .iq .lp_mv {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow: hidden;
    height: auto;
  }
  .iq .lp_mv img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* 2. グリーンバナー */
  .iq .menu_wrap {
    background-color: #FCCC02;
    margin: 0;
    width: 100%;
    height: auto;
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  .iq .menu {
    width: 100%;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  .iq .menu_btn {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0;
  }
  .iq .menu-img {
    width: 90%;
    max-width: 680px;
    display: block;
    margin: 0 auto;
  }

  /* プロフィール上下余白 & 見出し画像 */
  .iq .profile_wrap {
    padding: 40px 0;
  }
  .iq .headline-image,
  .iq .headline-image-2 {
    width: 80%;
    max-width: 300px;
    display: block;
    margin: 0 auto 10px;
  }

  /* プロフィール本体 */
  .iq .profile_iq {
    width: 90%;
    margin: 0 auto;
    padding: 0 16px;
    border-width: 3px;
  }

  /* ファミリー */
  .iq .profile_family {
    width: 90%;
    margin: 40px auto 0 auto;
    padding-bottom: 40px;
    border-width: 3px;
  }
  .iq .profile_family .carousel-button {
    top: 35%;
    transform: translateY(-40%);
  }

  /* profile-title＆tabs */
  .iq .profile-title {
    margin-top: 40px;
    font-size: 24px;
  }
  .iq .iq-tabs {
    gap: 12px;
    margin-bottom: 20px;
  }
  .iq .iq-tab {
    padding: 6px 24px;
    font-size: 18px;
  }
  .iq .iq-tab.active::after {
    bottom: -10px;
    width: 16px;
    height: 10px;
  }

  /* SPカルーセルボタン */
  .iq .carousel-button img {
    width: 30px;
  }
  .iq .carousel-button.prev {
    left: 5px;
  }
  .iq .carousel-button.next {
    right: 5px;
  }
  .iq .carousel-button:hover {
    opacity: 1 !important;
    transition: none !important;
  }

  /* profile-item・image-switch */
  .iq .profile-item {
    width: 90%;
    font-size: 16px;
    line-height: 2;
    margin: 0 auto;
    text-align: center;
  }
  .iq .profile-image {
    width: 90%;
    display: block;
    margin: 0 auto;
  }

  /* accordion */
  .iq .accordion,
  .iq .accordion-item {
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
    margin: 20px 0;
  }
  .iq .accordion-button {
    width: 100%;
    background-size: cover;
    background-position: center;
    display: block;
    padding: 0;
    transition: none;
  }
  .iq .accordion-button picture,
  .iq .accordion-button picture > img {
    width: 100%;
    display: block;
  }
  .iq .accordion-item.open .accordion-button {
    width: 100%;
  }

  /* スライド下余白 */
  .carousel-slide img {
    margin-bottom: 10px;
    width: 80%;
  }

  /* ダウンロード */
  .iq .download {
    padding: 40px 0;
  }
  .iq .download h2 {
    font-size: 1.5em;
    margin-bottom: 30px;
    text-align: center;
    color: #534741;
  }
  .iq section {
    margin-bottom: 50px;
  }

  /* ぬり絵グリッド */
  .iq .image-grid.nurie-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 8px;
  }
  .iq .image-grid.nurie-grid img,
  .iq .image-grid.nurie-grid a {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  /* SNSグリッド */
  .iq .sns-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* SNSアイコン */
  .iq .sns-account img {
    width: 70px;
  }
  .iq .sns-account {
    gap: 16px;
  }

  /* LINEスタンプ */
  .iq .card-container {
    display: grid;
    grid-template-columns: 1fr;
    width: 80%;
    margin: 0 auto 150px;
    box-sizing: border-box;
    gap: 8px;
  }
  .iq .card-link {
    width: 100%;
    margin-bottom: 10px;
  }
  .iq .card {
    padding: 12px;
    gap: 8px;
  }
  .iq .thumbnail {
    width: 40%;
    margin-right: 12px;
  }
  .iq .card-text {
    font-size: 14px;
    line-height: 1.4;
  }

  /* SPフッター切替 */
  .iq .footer-city,
  .iq .footer-grass-wrapper {
    display: none;
  }
  .iq .footer-sp-img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
  }

  /* SP back-to-top */
  .iq #back-to-top {
    width: 80px;
    height: 80px;
    bottom: 40px;
    right: 16px;
  }
  .iq #back-to-top img {
    width: 100%;
    height: auto;
    display: block;
  }
}
