/* \\\\\\\\\\\\\\\\\\\スマートフォン\\\\\\\\\\\\\\\\\\\ */
@media screen and (max-width: 1000px) {
  html,
  body {
    /* display: flex; */
    width: 100%;
    height: 100%;
    font-size: 100%;
    font-family: "Armata", sans-serif;
    background: #f0f2f2;
  }

  body {
    opacity: 0;
    transition: opacity 0.6s ease;
  }

  body.fade-in {
    opacity: 1;
  }
  a {
    text-decoration: none;
  }
  :root {
    --myblack: #595959;
  }

  .wrap {
    width: 90%;
    margin: 0 auto;
  }
  /* ^^^^^hamburger^^^^^ */
  #hamburger {
    position: fixed;
    width: 40px;
    height: 30px;
    top: 16px;
    right: 30px;
    z-index: 1000;
  }
  .line_item {
    position: absolute;
    background: #595959;
    height: 2px;
    transition: 0.3s;
    display: block;
    width: 40px;
  }

  #l_1 {
    top: 0;
  }
  #l_2 {
    top: 14px;
  }
  #l_3 {
    bottom: 0;
  }

  .l1 {
    top: 0;
    transform: rotate(-45deg);
    margin-top: 14px;
  }
  .l2 {
    opacity: 0;
  }
  .l3 {
    bottom: 0;
    transform: rotate(45deg);
    margin-bottom: 14px;
  }

  h1 {
    margin-top: 2rem;
  }
  #h_top a {
    color: #595959;
  }

  .my_job {
    font-size: 0.75rem;
    line-height: 2.5;
    letter-spacing: 1px;
  }

  .my_name {
    font-size: 1.25rem;
    letter-spacing: 2px;
  }
  #main_nav {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #f0f2f2;
    opacity: 0;
    visibility: collapse;
    transition: 0.3s;
    z-index: 100;
  }
  #nav ul {
    width: 84%;
    margin: 0 auto;
    margin-top: 5rem;
  }
  #nav li {
    display: block;
    text-align: center;

    padding: 0.5rem 0;
    transition: 0.3s;
  }
  .nav_item {
    display: block;
    padding: 0 1rem;
    color: var(--myblack);
  }
  .in {
    visibility: visible;
    opacity: 1;
    z-index: 100;
  }
  .nav_item {
    position: relative;
    padding:0 2rem;

    font-size: 1rem;
    z-index: 1;
    transition: 0.3s;
    letter-spacing: 1px;
    line-height: 2;
    color: #595959;
  }
  a[aria-current="page"] {
    color: #9bb8c3;
    text-decoration: underline;
  }

  .nav_item:hover {
    color: #9bb8c3;
    transition: 0.3s;
  }

  #mv {
    width: 95%;
    margin: 0 auto;
    padding-top: 2rem;
    display: grid;
    gap: 20px;
    overflow-y: scroll; /* 縦スクロール */
  }
  .all_work {
    aspect-ratio: 1/1;
    text-align: center;
    position: relative;
    display: block;
  }
  .all_work img {
    width: 90%;
    height: 90%;
    margin: 10px auto;
    object-fit: contain;
    display: block;
    cursor: pointer;
  }
  .caption {
    display: none;
    margin-top: 8px;
    font-size: 14px;
    color: #595959;
    opacity: 0;
    transition: 0.7s ease;
  }
  .caption_text {
    display: none;  /* 初期状態では非表示 */
    font-size: 14px;
    color: #595959;
    text-align: center;
    margin-top: 8px;
  }

  /* .all_work:hover {
    display: none;
    background-color: #dbe7ec;
    transition: background-color 0.5s ease;
    border-radius: 5px;
  }
  .all_work:hover .caption {
    opacity: 1;
  } */

  /* モーダルチャレンジ */
  .modal {
    display: none; /* 初期状態では非表示 */
    position: fixed; /* 画面に固定 */
    z-index: 1000; /* 他の要素より前面に表示 */
    left: 0;
    top: 0;
    width: 100vw; /* 画面全体の幅 */
    height: 100vh; /* 画面全体の高さ */
    overflow: auto; /* 内容がはみ出す場合にスクロール可能 */
    background-color: #f0f2f2; /* 半透明の黒背景 */
  }
  .modal-content {
    position: relative;
    max-width: 90%; /* 画面の90%にサイズを制限 */
    max-height: 90%; /* 画面の90%に高さを制限 */
    margin: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .modal-content img {
    max-width: 100%;
    max-height: 80vh;
    margin-top: 3rem;
    object-fit: contain; /* 画像の縦横比を保ちながら収める */
    opacity: 0;
    transition: opacity 0.5s ease;
  }
  .modal-content img.fade-in {
    opacity: 1;
  }

  #modalCaption {
    text-align: center;
    color: #595959;
    font-size: 18px;
    background-color: #f0f2f2; /* 半透明の黒背景 */
    border-radius: 5px;

    p:not(:first-of-type) {
      margin-block-start: 1lh;
    }
  }

  .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #595959; /* 明るい灰色 */
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
  }

  .close:hover,
  .close:focus {
    color: #bbb; /* ホバー時の色 */
    text-decoration: none;
    cursor: pointer;
  }

  /* ーーーーーーーーーーーーーーーーーーーーfn */

  footer{
    width: 100%;

  }
  .copyright {
    width: 90%;
    font-size: 0.75rem;
    margin-bottom: 2rem;
    text-align: end;
    color: #595959;
    
  }
}

/* \\\\\\\\\\\\\\\\\\\\\\\PC\\\\\\\\\\\\\\\\\\\\\\\\\\\\ */
@media screen and (min-width: 1000px) {
  html,
  body {
    /* display: flex; */
    width: 100%;
    height: 100%;
    font-size: 100%;
    font-family: "Armata", sans-serif;
    background: #f0f2f2;
  }

  body {
    opacity: 0;
    transition: opacity 0.6s ease;
  }

  body.fade-in {
    opacity: 1;
  }
  a {
    text-decoration: none;
  }
  :root {
    --myblack: #595959;
  }
  .mb_item {
    display: none;
  }

  .wrap {
    width: 90%;
    margin: 0 auto;
  }

  header {
    width: 25%;
    position: fixed;
    top: 3rem;
    border-right: 1px solid #cccccc;
    padding-bottom: 70vh;
  }
  h1 {
    margin-left: 1.5rem;
    margin-bottom: 3rem;
  }
  #h_top a {
    color: #595959;
  }

  .my_job {
    font-size: 0.75rem;
    line-height: 2.5;
    letter-spacing: 1px;
  }

  .my_name {
    font-size: 1.25rem;
    letter-spacing: 2px;
  }
  #nav {
    display: flex;
  }
  .nav_item {
    position: relative;
    padding-left: 2rem;

    font-size: 1rem;
    z-index: 1;
    transition: 0.3s;
    letter-spacing: 1px;
    line-height: 2;
    color: #595959;
  }
  a[aria-current="page"] {
    color: #9bb8c3;
    text-decoration: underline;
  }

  .nav_item:hover {
    color: #9bb8c3;
    transition: 0.3s;
  }

  #mv {
    padding-left: 25%;
    padding-top: 2rem;
    display: grid;
    gap: 20px;
    place-items: center; /* 縦横中央揃え */
    overflow-y: scroll; /* 縦スクロール */
  }
  .all_work {
    width: 500px;
    aspect-ratio: 1/1;
    text-align: center;
    position: relative;
    display: block;
  }
  .all_work img {
    width: 90%;
    height: 90%;
    margin: 10px auto;
    object-fit: contain;
    display: block;
    cursor: pointer;
  }
  .caption {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #595959;
    opacity: 0;
    transition: 0.7s ease;
  }
  .caption_text {
    display: none; /* 初期状態では非表示 */
    font-size: 14px;
    color: #595959;
    text-align: center;
    margin-top: 8px;
  }

  .all_work:hover {
    background-color: #dbe7ec;
    transition: background-color 0.5s ease;
    border-radius: 5px;
  }
  .all_work:hover .caption {
    opacity: 1;
  }

  /* モーダルチャレンジ */
  .modal {
    display: none; /* 初期状態では非表示 */
    position: fixed; /* 画面に固定 */
    z-index: 1; /* 他の要素より前面に表示 */
    left: 0;
    top: 0;
    width: 100vw; /* 画面全体の幅 */
    height: 100vh; /* 画面全体の高さ */
    overflow: auto; /* 内容がはみ出す場合にスクロール可能 */
    background-color: #f0f2f2; /* 半透明の黒背景 */
  }
  .modal-content {
    position: relative;
    max-width: 90%; /* 画面の90%にサイズを制限 */
    max-height: 90%; /* 画面の90%に高さを制限 */
    margin: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain; /* 画像の縦横比を保ちながら収める */
    opacity: 0;
    transition: opacity 0.5s ease;
  }
  .modal-content img.fade-in {
    opacity: 1;
  }

  #modalCaption {
    text-align: center;
    color: #595959;
    font-size: 18px;
    background-color: #f0f2f2; /* 半透明の黒背景 */
    border-radius: 5px;

    /* p:not(:first-of-type) {
      margin-block-start: 1lh;
    } */

    p:nth-of-type(2) {
      margin-block-start: 1lh;
    }
  }

  .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #595959; /* 明るい灰色 */
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
  }

  .close:hover,
  .close:focus {
    color: #bbb; /* ホバー時の色 */
    text-decoration: none;
    cursor: pointer;
  }

  /* ーーーーーーーーーーーーーーーーーーーーfn */

  .copyright {
    font-size: 0.75rem;
    margin-bottom: 3rem;
    text-align: end;
    color: #595959;
  }
}
