@charset "UTF-8";
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /*これでスクロールした時に文字が後ろに入り込まないようにする*/
  scroll-margin-top: var(--header_height);
}

/*定数を入れることでscssのいいところを利用できると学んだので利用しました*/
/*定数記載何が違いますか*/
:root {
  --text: #000;
  --a: #001aff;
  --background: #cdcbc3;
  --header_height: 70px;
}

/*htmlでのスクロールがスムーズになると思って記載しています*/
html {
  scroll-behavior: smooth;
}

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

.btn_group {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn {
  display: inline-block;
  /*今回は、display:flex;にしており、height,widthが調整できるため、
  display:inline-block;はなくても正常に動作はするが、
  残していると今後.btnのみで使用するときにあると便利。*/
  padding: 10px;
  border: 1px solid black;
  border-radius: 20px;
  background-color: black;
}

a {
  text-decoration: none;
  color: white;
}

.header {
  width: 100%;
  height: var(--header_height);
  background-color: black;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
}
.header .nav_list {
  height: var(--header_height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.header .nav_list li {
  list-style: none;
}
.header .nav_list li a {
  text-decoration: none;
  color: white;
}
.header .nav_list li a img {
  width: 20px;
  height: auto;
}
.header .hamburger-menu .menu-checkbox {
  display: none;
}
.header .hamburger-menu .menu-btn {
  display: none;
}
.header .hamburger-menu .menu-content {
  display: none;
}
.header .hamburger-menu .menu-content ul {
  display: flex;
  gap: 20px;
  list-style: none;
}
@media (max-width: 768px) {
  .header .hamburger-menu .menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    cursor: pointer;
    position: fixed;
    top: 12px;
    right: 20px;
    z-index: 100;
  }
  .header .hamburger-menu .menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s;
  }
  .header .hamburger-menu .menu-content {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    z-index: 99;
    overflow-y: auto;
    background-color: #333;
  }
  .header .hamburger-menu .menu-content ul {
    display: flex;
    flex-direction: column;
    padding: 80px 20px;
    width: 100%;
    height: auto;
    list-style: none;
  }
  .header .hamburger-menu .menu-content ul li {
    border-bottom: 1px solid #444;
    width: 100%;
    text-align: center;
  }
  .header .hamburger-menu .menu-content ul li a {
    color: white;
    text-decoration: none;
    display: block;
    /*ここのdisplay:block;はなぜ？
    paddingをつけるため？
    インライン要素で幅、高さが指定できないから？*/
    padding: 15px 0;
  }
  .header .hamburger-menu .menu-content ul li img {
    width: 20px;
  }
  .header .hamburger-menu .menu-checkbox:checked ~ .menu-content {
    right: 0;
  }
  .header .hamburger-menu .menu-checkbox:checked ~ .menu-btn span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
    background-color: #fff;
  }
  .header .hamburger-menu .menu-checkbox:checked ~ .menu-btn span:nth-child(2) {
    opacity: 0;
  }
  .header .hamburger-menu .menu-checkbox:checked ~ .menu-btn span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
    background-color: #fff;
  }
}

@media (max-width: 768px) {
  .header .nav_list {
    display: none;
  }
}
.info {
  width: 100%;
  background-color: #cdcbc3;
  padding-top: var(--header_height);
}
.info p {
  text-align: center;
}
.info a {
  color: var(--text);
  text-decoration: none;
}
.info img {
  width: 10px;
}

.hero_iphone {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 600px;
  /*heightの指定はないのはautoで自動で広がると思っています。
  その場合、min-heightがあれば最低限の幅が取れると思うんですが、
  記載した方がいいのでしょうか？*/
  background-image: url(img/iphone-17-pro.png);
  background-repeat: no-repeat;
  background-position: center bottom;
  /*backgrounnd-imageですが、少し画像が大きく、圧迫感を感じます。
  この画像を少し縮小することは可能ですか*/
  background-size: min(600px, 80%);
  margin-bottom: 10px;
}
.hero_iphone .iphone {
  padding-top: 20px;
  /*margin-topにするかどうか*/
  text-align: center;
}

.hero_ipad {
  display: flex;
  justify-content: center;
  background-image: url(img/ipadair.webp);
  background-repeat: no-repeat;
  background-position: center bottom;
  width: 100%;
  min-height: 700px;
  background-size: min(800px, 80%);
  margin-bottom: 10px;
}
.hero_ipad .ipad {
  padding-top: 20px;
  /*margin-topにするかどうか*/
  text-align: center;
}

.hero_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /*アドバイスを参照しました。この記載にすると折り返しは自動。最小の幅は550pxで表示。
  2列入らなければ1行になるのでタブレット以下では1列表記になるということですよね。*/
}
@media (max-width: 768px) {
  .hero_grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
  }
}
.hero_grid {
  gap: 20px;
  margin-bottom: 20px;
}
.hero_grid .hero {
  width: 100%;
  min-height: 500px;
  background-repeat: no-repeat;
  background-position: center bottom;
}
.hero_grid .hero_content {
  text-align: center;
  padding-top: 20px;
}
.hero_grid .hero_macbook {
  background-image: url(img/macbookair.png);
  background-size: min(500px, 80%);
}
.hero_grid .hero_applewatch {
  background-image: url(img/apple-watch.png);
  background-size: min(700px, 80%);
}
.hero_grid .hero_applewatch img {
  width: 20px;
}
.hero_grid .hero_security {
  background-image: url(img/apple_privacy.jpeg);
  background-size: min(500px, 80%);
}
.hero_grid .hero_security .icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  overflow: hidden;
  vertical-align: middle;
}
.hero_grid .hero_security .icon img {
  width: 200%;
  height: 200%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  transform: translate(-25%, -25%);
}
.hero_grid .hero_macbookneo {
  background-image: url(img/macbook_neo.png);
  background-size: min(800px, 90%);
}
.hero_grid .hero_airpods {
  background-image: url(img/airpodspro3.jpg);
  background-size: min(700px, 80%);
}
.hero_grid .hero_tradein {
  background-image: url(img/apple-tradein.png);
  background-size: min(500px, 80%);
}
.hero_grid .hero_tradein img {
  width: 20px;
}

.slider_container {
  display: flex;
  width: 100%;
  overflow: hidden;
}
.slider_container:hover .slider_track {
  animation-play-state: paused;
}
.slider_container:hover {
  /*マウスを重ねた時にスクロールが止まる*/
}
.slider_container .slider_track {
  display: flex;
  gap: 20px;
  padding-right: 20px;
  animation: scroll-left 30s linear infinite;
}
.slider_container .slider_track img {
  width: 300px;
  height: auto;
  /*ここのheight:auto;は必要になりますか
  一つ前ではobject-fit:cover;になっていたのですが*/
  -o-object-fit: contain;
     object-fit: contain;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}
.footer {
  width: min(1200px, 80%);
  margin: 20px auto 0;
}
.footer .footer_container {
  padding-bottom: 20px;
  border-bottom: 1px solid black;
}
.footer .footer_container ol {
  font-size: 10px;
  padding: 0 0 20px 10px;
}
.footer .footer_container p {
  font-size: 10px;
  padding-bottom: 10px;
}
.footer .footer_wrapper {
  display: flex;
  flex-direction: column;
  /*htightが変動するかもしれないが、どのように記載したらいいのかわからず*/
  margin-top: 20px;
  margin-bottom: 20px;
  width: 100%;
  padding-bottom: 20px;
  border-bottom: 1px solid black;
}
.footer .footer_wrapper .footer_menu {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
}
@media (max-width: 768px) {
  .footer .footer_wrapper .footer_menu {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    margin: 0 auto;
    text-align: center;
  }
}
.footer .footer_wrapper .footer_menu .footer_column {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.footer .footer_wrapper .footer_menu ul {
  list-style: none;
  padding-bottom: 20px;
}
.footer .footer_wrapper .footer_menu ul li {
  padding-bottom: 10px;
  font-size: 14px;
}
.footer .footer_wrapper .footer_menu ul li:first-child {
  font-size: 14px;
  font-weight: bold;
}
.footer .footer_wrapper p {
  font-size: 12px;
}
.footer .footer_copyright {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.footer .footer_copyright ul {
  list-style: none;
  display: flex;
}
.footer .footer_copyright ul li {
  padding: 0 10px 0 10px;
  border-right: 1px solid black;
}
.footer .footer_copyright ul li:nth-child(1) {
  border-left: 1px solid black;
}/*# sourceMappingURL=style.css.map */