@charset "UTF-8";

@font-face {
  font-family: "MyPixelFont";
  src: url(../Best10-FONT/BestTen-DOT.otf);
}

:root {
  --bg-color: #c0c0c0;
  --primary-color: #000000;
  --accent-color: #ffcc00;
  --hover-color: #ffaa00;
  --border-color: #000000;
  --font-family: 'Press Start 2P', cursive;
}

body, button, .filter-buttons, .profile, #modal-title, #modal-description, .modal-extra{
  font-family: "MyPixelFont", cursive;
}/* フォント指定 */

:is(body, a, button){
  letter-spacing: 0.05em;
}/*11/26 452*/

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--primary-color);
  image-rendering: pixelated;
}
a {
  text-decoration: none;
  color: var(--primary-color);
}
ul{
  display: block;
  list-style: disc;
  margin-block-start: 1em;
  margin-block-end: 1em;
  padding-inline-start: 40px;
}
p{
  margin-block-start: 1em;
  margin-block-end: 1em;
}
.hero {
  text-align: center;
  padding: 40px 8px;
  background-color: #88c070;
  border-bottom: 4px solid var(--border-color);
}
h1{
  margin: 10px 0;
  letter-spacing: 0.15em;
}
.hamburger {
  display: none;
}

/* 追加11/26 455行*/
:is(button, .filter-buttons button, .profile-img, .profile-table){
  border: 3px solid var(--border-color);
  box-shadow: 3px 3px 0 var(--border-color);
}

button, .filter-buttons button {
  background: var(--accent-color);
  color: var(--primary-color);
  padding: 10px 15px;
  cursor: pointer;
  text-transform: uppercase;
  margin: 5px;
}

:is(button:hover, .filter-buttons button.active) {
  background: var(--hover-color);
  box-shadow: none;
  transform: translate(3px, 3px);
}

.filter-buttons {
  text-align: center;
  margin: 20px 0;
}



/* プロフィール */
.profile {
  background-color: #e0e0e0;
  width: 90%;
  padding: 0 20px 40px 20px;
  margin: 40px auto;
  border: 4px solid var(--border-color);
  box-shadow: 3px 3px 0 var(--border-color);
  text-align: center;
}
.profile h2 {
  font-size: 1.5rem;
  margin:20px 0 30px 0;
  border: 2px dashed var(--border-color);
  padding: 10px;
  display: inline-block;
  animation: blink 1s step-end infinite;

  /* 試し */
  color: lightgreen;
  text-shadow: 0.1rem 0.1rem red;
}

@keyframes blink {
  50% {
    opacity: 0.5;
  }
}

.profile-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 90%;
  margin: 0 auto;
}

.profile-img {
  height: 150px;
  width: auto;
  object-fit: cover;
  image-rendering: pixelated;
}

.profile-info {
  width: 100%;
}

.profile-table {
  width: 100%;
  line-height: 1.2rem;
  border-collapse: collapse;
  background-color: #fff;
}

.profile-table :is(th, td) {
  border: 1px solid var(--border-color);
  padding: 10px;
  text-align: left;
}
/* リガチャ（合字）で「ff」が非表示になるのを防止 */
.noligature li{
  font-variant-ligatures: none;
  -webkit-font-variant-ligatures: none;
}



/* ポートフォリオ作品 */
.art {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.card {
  width: 300px;
  background: #ffffff;
  border: 3px solid var(--border-color);
  padding: 15px;
  box-shadow: 3px 3px 0 var(--border-color);
  /* 追加 */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--border-color);
}

.card img {
  width: 100%;
  height: 300px;
  image-rendering: pixelated;
  object-fit: contain;
}

.card a h3{
  text-align: center;
  letter-spacing: 0.15em;
}



/* モーダル */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.close {
  position: absolute;
  top: 30px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
.modal-content-wrapper {
  text-align: center;
  color: white;
  max-width: 80%;
  margin: auto auto 100px auto;
}

.modal-img {
  display: block;
  margin: 0 auto 20px;
  height: 60vh;
  width: auto;
  border: 4px solid white;
}

#modal-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

#modal-description {
  font-size: 1rem;
}

.modal-extra {
  font-size: 1.5rem;
  color: #ccc;
  margin-bottom: 50px;
  text-align: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.2); /* 仮背景色 */
  
  /* max-height: 30vh;
  overflow-y: auto; */
  /* max-height: none !important;
  overflow-y: visible; */
}  


/* 追加10/24------------ */
.modal-table {
  margin: 0 auto;
  color: #ccc;
  font-size: 1.5rem;
  border-collapse: collapse;
}

.modal-table  tr{
  border-bottom: 2px dotted;
}
.modal-table  tr:last-of-type{
  border-bottom: none;
}
/* 追加10/24------------ */

.modal-table img {
  max-width: 100%;
  max-height: 200px;
  height: auto;
  display: block;
  margin: auto;
}

.modal-table :is(th, td) {
  padding: 4px;
  border-bottom: 1px dashed #666;
  text-align: left;
}



/* フッター */
footer{
  text-align: center;
  padding: 20px 0;
  background-color: #88c070;
  border-top: 4px solid var(--border-color);
}



/*----- ダークモード -----*/
body.dark-mode {
  --bg-color: #373636;
  --primary-color: #fff;
  --border-color: #fff;
  --bs-color: #000;
  /* --profile-color: #a7a7a7; */
}
body.dark-mode .hero{
  background-color: #242424;
}
body.dark-mode .hero button{
  background-color: #333;
}

/* 追加11/26 */
body.dark-mode :is(.profile, .profile-table, .profile-img, div.filter-buttons button, .card){
  box-shadow: 3px 3px 0 var(--bs-color);
}

body.dark-mode .profile {
  background-color: #2a2a2a;
  color: var(--primary-color);
}

body.dark-mode .profile-table {
  background-color: #444;
  border-color: var(--border-color);
}

body.dark-mode .profile-table :is(th, td) {
  border-color: var(--border-color);
  color: var(--primary-color);
}

body.dark-mode section.portfolio div.filter-buttons button{
  background-color: #333;
}

/* カード（.card）用のダークモード */
body.dark-mode .card {
  background-color: #444;
  border-color: var(--border-color);
}

body.dark-mode .card:hover {
  box-shadow: 6px 6px 0 var(--bs-color);
}

body.dark-mode footer{
  background-color: #242424;
}



/* スマホ用 768以下 */
@media screen and (max-width: 768px) {
  .hero{
    padding: 24px 16px;
  }
  .hero .title h1{
    font-size: 1.2rem;
  }
  .hero nav.nav-btn button{
    padding: 10px 10px;
  }

  

  /*スマホ用プロフィール*/
  .profile :is(th, td){
    display: block;
    border: none;
    text-align: center;
  }
  .profile th{
    width: 20vh;
    margin: 10px auto;
    border: 1px solid var(--border-color);
  }
  .profile td ul{
    list-style: none;
    padding: 0;
  }
  .profile td ul li{
    margin-bottom: 10px;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    text-underline-offset: 5px;
    font-size: 0.8rem;
  }

  /* ボタン */
  .filter-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    padding: 10px;
  }
  .filter-buttons button {
    min-height: 44px;
    font-size: 0.75rem;
  }
  
  /* 作品　スマホ版画像サイズ */
  .card img {
    height: 200px;
  }

  /*スマホ用モーダル*/
  .modal-content-wrapper{
    max-width: 100%;
  }
  .close {
    top: 20px;
    right: 15px;
    font-size: 36px;
  }
  #modal-title {
    font-size: 1.2rem;
  }
  #modal-description {
    font-size: 0.9rem;
  }
  .modal-img{
    height: auto;
    width: 95%;
  }
  .modal-extra{
    margin: 0 auto 50px;
    max-width: 80%;
  }
  .modal-table :is(th, td) {
    display: block;
    text-align: center;
  }
  .modal-table th{
    font-size: 1.5rem;
    background-color: rgba(165, 27, 27, 0.5); /*仮*/
  }
  .modal-table td {
    font-size: 1rem;
    margin: 10px;
  }
}