/* reset CSS */
h1,
h2,
h3,
h4,
p,
ul,
li {
  margin: 0;
}
ul {
  padding: 0;
}
li {
  list-style-type: none;
}
h2 {
  padding: 0.4em 0.5em; /*文字の上下 左右の余白*/
  color: #494949; /*文字色*/
  background: #f4f4f4; /*背景色*/
  border-left: solid 5px #7db4e6; /*左線*/
  border-bottom: solid 3px #d7d7d7; /*下線*/
}
h4 {
  font-size: 1.25rem;
  text-align: center;
  border-bottom: 2px solid #555;
}
h3 {
  border-bottom: solid 3px #cce4ff;
  position: relative;
  margin-bottom: 1rem;
}

h3:after {
  position: absolute;
  content: " ";
  display: block;
  border-bottom: solid 3px #5472cd;
  bottom: -3px;
  width: 20%;
}

.wrapper_all {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1%;
  padding-right: 1%;
}

body {
  color: #444;
  background-color: #ddd;
}
a {
  color: #444;
  text-decoration: none;
}

/* header */
header {
  /* max-width: 1500px; */
  margin: 0 auto;
}
header h1 a {
  color: #fefefe;
  font-size: 1.5rem;
}
header h1 a:hover {
  color: #dedede;
}
header img {
  margin-bottom: 8px;
}
@media (max-width: 500px) {
  header img {
    margin-top: 5px;
    margin-bottom: 0;
  }
}

.comp_main {
  padding-left: 12%;
  padding-right: 12%;
}
@media (max-width: 500px) {
  .comp_main {
    padding-left: 3%;
    padding-right: 3%;
    /* height: 100vh; */
  }
}

/* gnav */
.gnav {
  display: flex;
  text-align: center;
}
.gnav li {
  width: 25%;
  padding: 1rem 0;
}
.gnav li a {
  color: #dedede;
  display: block;

  width: 100%;
}
.gnav li a:hover {
  color: #444;
}
.gnav li:hover {
  background-color: #fff;
  transition: all 0.5s;
}

/* mv */
.mv {
  background-image: url(../img/iPhone_mv.jpg);
  background-size: cover;
  background-position: center top;
}

.mv_left {
  /* position: relative;
    top: 10%;
    left: 5%; */
  /* margin-top: 10%; */
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 2%;
}
.mv_right {
  margin-top: 20%;
  /* position: relative;
    top :25%;
    left: 10%; */
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 2%;
}
.mobile_mv_right {
  display: none;
}

@media (max-width: 768px) {
  .mv {
    /* height: 100vh; */
  }

  .mv_right {
    position: static;
    margin-top: 10%;
  }
}
/* main */

@media (max-width: 516px) {
  .data .item {
    margin-bottom: 25px;
  }
}

/* data section */
.data h2 {
  margin: 0 auto;
}

/* grid */
.grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.data table {
  font-size: 0.75rem;
}
@media (max-width: 567px) {
  .data table {
    font-size: 1rem;
  }
}

/* footer */
footer {
  background-color: #efefef;
  font-size: 0.85rem;
  margin-top: auto;
  width: 100%;
  height: 144px;
}
.footer_nav {
  text-align: center;
}

.footer_nav li {
  display: inline;
  border-left: solid 1px #555;
  margin-top: 8px;
  font-size: smaller;
  padding: 8px;
  list-style-type: none;
}

.footer_nav li:last-child {
  border-right: solid 1px #555;
  padding: 8px;
}
.footer_nav li:hover {
  transition: all 0.51s;
  background-color: #fff;
}
.footer_nav a {
  text-decoration: none;
}
@media (max-width: 420px) {
  .footer_content {
    font-size: 0.7rem;
  }
}

/* ハンバーガーメニュー */

.openbtn {
  display: none;
  /*ボタン内側の基点となるためrelativeを指定。
追従するナビゲーションの場合はfixed＋top、rightといった位置をセットで指定*/
  position: relative;
  /* background:#57a2c7; */
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 0px;
}

/*ボタン内側*/
.openbtn span {
  display: inline-block;
  transition: all 0.4s; /*アニメーションの設定*/
  position: absolute;
  left: 14px;
  height: 3px;
  border-radius: 2px;
  background: #fff;
  width: 45%;
}

.openbtn span:nth-of-type(1) {
  top: 15px;
}

.openbtn span:nth-of-type(2) {
  top: 23px;
}

.openbtn span:nth-of-type(3) {
  top: 31px;
}

/*activeクラスが付与されると線が回転して×に*/

.openbtn.active span:nth-of-type(1) {
  top: 18px;
  left: 18px;
  transform: translateY(6px) rotate(-45deg);
  width: 30%;
}

.openbtn.active span:nth-of-type(2) {
  opacity: 0; /*真ん中の線は透過*/
}

.openbtn.active span:nth-of-type(3) {
  top: 30px;
  left: 18px;
  transform: translateY(-6px) rotate(45deg);
  width: 30%;
}
@media (max-width: 576px) {
  .openbtn {
    display: block;
  }
  header .gnav-nav {
    display: none;
  }
}

/* モーダル */
.sp-modal {
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}
.sp-gnav {
  margin: 20% auto;
  width: 50%;
  /* box-shadow: 0 5px 8px 0 rgba(0,0,0,0.2),0 7px 20px 0 rgba(0,0,0,0.17); */
  animation-name: modalopen;
  animation-duration: 1s;
  @keyframes modalopen {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}
.sp-gnav a {
  color: #fefefe;
  font-size: 1.25rem;
}
.sp-gnav a:hover {
  font-weight: bold;
}

.sele_1_hr {
  display: none;
}
@media (max-width: 768px) {
  .sele_1_hr {
    display: block;
  }
}

.release_date_sp {
  display: none;
}
@media (max-width: 600px) {
  .release_date_sp {
    display: block;
  }
  .release_date_pc {
    display: none;
  }
}

/* dataページ */
.table_header {
  font-weight: bold;
  margin-top: 2rem;
  padding: 0.25em 0.5em; /*上下 左右の余白*/
  color: #494949; /*文字色*/
  background: transparent; /*背景透明に*/
  border-left: solid 5px #7db4e6; /*左線*/
}
@media (max-width: 576px) {
  table th {
    font-size: 0.7rem;
  }
  table td {
    font-size: 0.7rem;
  }
  .tra_table_text {
    font-size: 0.6rem;
  }
  .tra_table_tr th {
    font-size: 0.6rem;
  }
}
@media (max-width: 400px) {
  table th {
    font-size: 0.6rem;
  }
  table td {
    font-size: 0.6rem;
  }
  .tra_table_text {
    font-size: 0.6rem;
  }
  .tra_table_tr th {
    font-size: 0.6rem;
  }
}

.loader,
.loader:after {
  border-radius: 50%;
  width: 10em;
  height: 10em;
}
.loader {
  margin: 60px auto;
  font-size: 10px;
  position: relative;
  text-indent: -9999em;
  border-top: 1.1em solid rgba(255, 255, 255, 0.2);
  border-right: 1.1em solid rgba(255, 255, 255, 0.2);
  border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
  border-left: 1.1em solid #ffffff;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation: load8 1.1s infinite linear;
  animation: load8 1.1s infinite linear;
}
@-webkit-keyframes load8 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes load8 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
#loading {
  width: 100vw;
  height: 100vh;
  transition: all 0.5s;
  background-color: rgba(0, 0, 0, 0.3);

  /* 以下のコードを追加 */
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

.loader {
  position: absolute;
  top: 40%;
  left: 47%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
}

@media (max-width: 600px) {
  .loader {
    left: 40%;
  }
}
.loaded {
  opacity: 0;
  visibility: hidden;
}


.other a {
  color: #0000ee;
}


/* --- モダン化・アフィリエイト強調用追加CSS --- */
.card-style {
  background-color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
  padding: 1rem;
  margin-bottom: 2rem;
}

.affiliate-btn {
  display: inline-block;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  text-align: center;
  margin-top: 0.5rem;
  transition: background 0.3s ease;
}
.affiliate-btn:hover {
  background: linear-gradient(135deg, #0056b3, #004080);
  color: #fff;
  text-decoration: none;
}

.bg-section {
  background-color: #f9f9f9;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 2rem;
}

/* --- さらなるモダン化強化スタイル --- */

body.font-noto {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #f0f2f5;
  color: #333;
}

h2, h3 {
  font-weight: 700;
}

.button-wrapper button.selected {
  background-color: #0d6efd !important;
  color: #fff !important;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.view-btn {
  font-weight: bold;
  font-size: 1rem;
}

.data .item {
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.1);
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.data .item:hover {
  transform: translateY(-3px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.table {
  background-color: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  border-left: 6px solid #007bff;
  padding-left: 0.75rem;
  background: none;
  color: #007bff;
}

h3 {
  font-size: 1.25rem;
  color: #222;
}
