*{
    box-sizing: border-box;
}

body{
    background-color: #dcd9dc;
    margin: 0;
    overflow-x: hidden;
    width: 100%;
}

img{
    vertical-align: bottom;
    width: 100%;
}

@media (max-width: 767px) {
    .pc{display: none}
}
@media (min-width: 768px) {
    .sp{display: none}
}

.move-up-on-hover {
  transition: transform 0.3s ease;
}

.move-up-on-hover:hover {
  transform: translateY(-10px);
}

.title{
    margin: 0 auto 8em;
}

.tomica_mv{
    position: relative;
    width: 100%;
    margin: 0 auto;
    z-index: 2;
    margin-bottom: 0;
    margin-top: 40px;
}
@media (max-width: 767px) {
    .tomica_mv{
        margin-top: 40px;
    }
}

  /* ABOUT */
.tomica_about-area{
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 6em 0 10em;
}
@media (max-width: 767px) {
    .tomica_about-area{
        padding: 3em 0 3em;
    }
}

.tomica-view_anchor-area{
    width: 100%;
    padding: 0 2.9166666666666665vw;
    display: -webkit-flex;
	display: flex;
	-webkit-flex-wrap: nowrap;
	flex-wrap: nowrap;
	-webkit-justify-content: space-between;
	justify-content: space-between;
	-webkit-align-items: stretch;
	align-items: stretch;
    margin-top: 8em;
    flex-wrap: wrap;
    justify-content: center;
}
.tomica-view_anchor-btn img{
    width: 100%;
}
.tomica-view_anchor-btn{
    width: 23.44%
}

@media (max-width: 767px) {
    .tomica-view_anchor-area{
        margin-top: 3em;
    }
}

  /* MOVIE */
.tomica_player {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
    background-color: #cccccc;
    border: 1px solid #cccccc;
    padding: 5px;
}

.tomica_player iframe {
    width: 100%;
    height: 562.5px; /* 16:9比率 (1000px × 9 ÷ 16) */
    max-width: 1000px;
}

@media (max-width: 767px) {
    .tomica_player {
        width: 90%;
    }
    .tomica_player iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

  /* HOW TO PLAY */
.tomica-view_howto-area{
    width: 100%;
}
.tomica-view_howto-area .howto-img{
    margin: 5em 0 0;
}
@media (max-width: 767px) {
    .tomica-view_howto-area .howto-img{
        margin: 1em 0 0;
    }
}

/* feature */
.tomica-view_feature{
    margin: 0 0 8em;
}

@media (max-width: 767px) {
    .tomica-view_feature{
        margin: 0;
    }
}

.tab-container {
  max-width: 100%;
  box-sizing: border-box;
  margin: -12em 0 0;
}
@media (max-width: 767px) {
    .tab-container {
        margin: 0;
    }
}

/* タブボタン */
.tab-buttons {
    width: 100%;
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-end;
}

.tab-buttons .tab-btn {
    padding: 0;
    height: auto;
    cursor: pointer;
    transition: opacity 0.3s ease;
}
@media (max-width: 767px) {
    .tab-buttons .tab-btn {
        width: 32.5%;
    }
}

.tab-buttons .tab-btn:first-of-type{
    width: 18%;
}

.tab-buttons .tab-btn:nth-of-type(2){
    width: 29%;
}

.tab-buttons .tab-btn:last-of-type{
    width: 22%;
}

.tab-buttons .tab-btn.active {
    filter: drop-shadow(0 0 10px rgb(255 255 255 / 75%));
    opacity: 1;
}

/* タブコンテンツ */
.tab-content {
    position: relative;
    width: 100%;
}

.tab-content .tab-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}

.tab-content .tab-img.active {
  opacity: 1;
  visibility: visible;
  position: relative; /* 表示中の画像だけ通常フローに */
}



.accordion {
  width: 100%;
}

.accordion-checkbox {
  display: none;
}


/* 購入ボタン */
.tomica_mall-711{
    background-image: url(../img/tomica-view-711_detail-bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    padding: 8em 0;
}

@media (max-width: 767px){
    .tomica_mall-711{
        padding: 2em 0;
    }
}

.tomica_mall-jihanki{
    background-image: url(../img/tomica-view-jihanki_detail-bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    padding: 8em 0;
}

@media (max-width: 767px){
    .tomica_mall-jihanki{
        padding: 2em 0;
    }
}

.tomica_mall-area {
  width: 1000px;
  margin: 0 auto 5em;
  position: relative;
}
@media (max-width: 767px) {
    .tomica_mall-area {
  width: 90%;
  margin: 0 auto 1em;
}
}

.background-image {
  width: 100%;
  height: auto;
  display: block;
}

.btn-container {
  position: absolute;
  bottom: 3%;
  left: 50%;
  transform: translate(-50%, -50%); /* 完全に中央揃え */
  display: flex;
  gap: 10px; /* ボタン間の余白 */
}
@media (max-width: 767px) {
    .btn-container {
        bottom: 0;
    }
}

.btn-light {
    font-size: 30px;
  display: block;
  background-image: url("../img/tomica_konyu-btn.png");
  background-color: transparent;
  border: 0;
  color: #fff;
  font-weight: bold;
  width: 350px;
  height: 48px;
  background-size: cover;
  background-position: center;
  text-align: center;
  line-height: 45px;
}
@media (max-width: 767px) {
    .btn-light {
        font-size: 16px;
        width: 200px;
        height: 29px;
        line-height: 29px;
    }
}

.btn-light:hover {
  opacity: 0.8; /* ホバー時のエフェクト */
    color: #fff;
}

