/* ===== ベース ===== */
body, html {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'MS Sans Serif', 'Times New Roman', serif;
  background: #c0c0c0;
  color: #000;
  line-height: 1.4;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* ===== ヒーロー ===== */
.hero {
  position: relative;
  background: linear-gradient(45deg, #008080 0%, #000080 50%, #800080 100%);
  color: #ffff00;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2em;
  margin: 0;
  border-bottom: 4px solid #000;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle at 50% 50%, #fff 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: 0.1;
  z-index: 1;
}

.hero::after {
  content: '✨ Welcome to hashisato\'s Homepage! ✨';
  position: absolute;
  bottom: 2em;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #00ff00;
  padding: 0.5em 1em;
  border: 2px solid #00ff00;
  font-family: 'Courier New', monospace;
  font-size: 0.8em;
  z-index: 3;
  animation: blink 1s infinite;
}

.hero h1 {
  position: relative;
  z-index: 2;
  color: #ffff00;
  font-size: clamp(3em, 8vw, 5em);
  margin: 0 0 0.5em 0;
  font-weight: bold;
  letter-spacing: 0.2em;
  font-family: 'Times New Roman', serif;
  animation: rainbow 3s infinite;
}

.hero p {
  font-size: clamp(1.1em, 3vw, 1.4em);
  margin: 0;
  font-weight: normal;
  position: relative;
  z-index: 2;
  color: #fff;
  font-family: 'MS Sans Serif', sans-serif;
}

/* ===== メイン ===== */
main {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  padding: 2em;
  background: #c0c0c0;
}

/* ===== 自己紹介セクション ===== */
.about-text {
  background: #fff;
  padding: 2em;
  border: 3px inset #c0c0c0;
  text-align: center;
  margin-bottom: 2em;
  position: relative;
  box-shadow: 2px 2px 0px #808080;
}

.about-text h2 {
  color: #000080;
  font-size: 1.8em;
  margin: 0 0 1em 0;
  font-weight: bold;
  font-family: 'Times New Roman', serif;
  text-decoration: underline;
}

.about-text h2::before {
  content: '◆ ';
  color: #ff0000;
}

.about-text h2::after {
  content: ' ◆';
  color: #ff0000;
}

.about-text p {
  font-size: 1em;
  color: #000;
  margin: 0;
  font-family: 'MS Sans Serif', sans-serif;
}

/* ===== カードリスト ===== */
.card-list {
  display: grid;
  gap: 1.5em;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  max-width: 100%;
}

.card {
  background: #fff;
  border: 3px outset #c0c0c0;
  padding: 1.5em;
  text-align: center;
  box-shadow: 2px 2px 0px #808080;
  transition: none;
  position: relative;
  overflow: hidden;
}

.card:hover {
  border: 3px inset #c0c0c0;
}

.card h2 {
  color: #800000;
  font-size: 1.3em;
  margin: 0 0 1em 0;
  font-weight: bold;
  font-family: 'Times New Roman', serif;
  text-decoration: underline;
}

.card h2::before {
  content: '>> ';
  color: #ff0000;
  font-weight: bold;
}

.card h2::after {
  content: ' <<';
  color: #ff0000;
  font-weight: bold;
}

.card p {
  color: #000;
  margin: 0 0 1.5em 0;
  font-family: 'MS Sans Serif', sans-serif;
  font-size: 0.9em;
}

/* ===== 制作物紹介セクション ===== */
.projects-section {
  background: #fff;
  border: 3px inset #c0c0c0;
  padding: 2em;
  margin: 2em 0;
  box-shadow: 2px 2px 0px #808080;
}

.projects-section h2 {
  color: #000080;
  font-size: 1.8em;
  margin: 0 0 1em 0;
  font-weight: bold;
  font-family: 'Times New Roman', serif;
  text-decoration: underline;
  text-align: center;
}

.projects-section h2::before {
  content: '◆ ';
  color: #00ff00ff;
}

.projects-section h2::after {
  content: ' ◆';
  color: #00ff00ff;
}

.projects-section > p {
  text-align: center;
  color: #000;
  margin-bottom: 2em;
  font-family: 'MS Sans Serif', sans-serif;
}

.projects-list {
  display: grid;
  gap: 1em;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 2em;
}

@media screen and (max-width: 600px) {
  .projects-list {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background: #f0f0f0;
  border: 2px outset #c0c0c0;
  padding: 1.2em;
  box-shadow: 1px 1px 0px #808080;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border: 2px inset #c0c0c0;
}

.project-card h3 {
  color: #800000;
  font-size: 1.1em;
  margin: 0 0 0.8em 0;
  font-weight: bold;
  font-family: 'Times New Roman', serif;
  text-decoration: underline;
}

.project-card p {
  color: #000;
  margin: 0 0 auto 0;
  font-family: 'MS Sans Serif', sans-serif;
  font-size: 0.85em;
  line-height: 1.4;
  flex-grow: 1;
}

.project-card .btn {
  margin-top: 1em;
  align-self: center;
}

/* ===== more-projects（制作物一覧ボタン） ===== */
.more-projects {
  text-align: center;
  background: #e0e0e0;
  border: 2px inset #c0c0c0;
  padding: 1.5em;
  margin-top: 2em;
}

.more-projects p {
  color: #000;
  margin: 0 0 1em 0;
  font-family: 'MS Sans Serif', sans-serif;
}

.more-projects .btn {
  display: block;
  margin: 0 auto;
}

/* ===== ボタン ===== */
.btn {
  display: inline-block;
  padding: 0.5em 1.5em;
  background: #c0c0c0;
  color: #000;
  text-decoration: none;
  border: 2px outset #c0c0c0;
  font-weight: bold;
  transition: none;
  box-shadow: 1px 1px 0px #808080;
  font-family: 'MS Sans Serif', sans-serif;
  font-size: 0.8em;
  text-transform: none;
}

.btn:hover {
  border: 2px inset #c0c0c0;
  background: #808080;
  color: #fff;
}

.btn:active {
  background: #404040;
  color: #fff;
}

.btn-large {
  padding: 0.8em 2em;
  font-size: 1em;
  font-weight: bold;
}

/* ===== フッター ===== */
footer {
  text-align: center;
  color: #000;
  margin: 2em 0 1em 0;
  font-size: 0.8em;
  font-family: 'MS Sans Serif', sans-serif;
  background: #c0c0c0;
  padding: 1em;
  border-top: 2px solid #808080;
}

footer::before {
  content: '★ ';
  color: #ff0000;
}

footer::after {
  content: ' ★';
  color: #ff0000;
}

/* ===== 右クリック・選択・ドラッグ禁止 ===== */
img {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
}

* {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

/* ===== アニメーション ===== */
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.5; }
}

@keyframes rainbow {
  0% { color: #ffff00; }
  16% { color: #ff8000; }
  33% { color: #ff0080; }
  50% { color: #8000ff; }
  66% { color: #0080ff; }
  83% { color: #00ff80; }
  100% { color: #ffff00; }
}

/* ===== レスポンシブデザイン ===== */
@media screen and (max-width: 768px) {
  .hero {
    padding: 1.5em 1em;
  }
  .hero::after {
    font-size: 0.6em;
    padding: 0.4em 0.8em;
    bottom: 1.5em;
  }
  main {
    padding: 1em;
  }
  .about-text {
    padding: 1.5em;
    margin-bottom: 1.5em;
  }
  .about-text h2 {
    font-size: 1.5em;
  }
  .card-list {
    gap: 1em;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .card {
    padding: 1em;
  }
  .card h2 {
    font-size: 1.2em;
  }
  .projects-section {
    padding: 1.5em;
    margin: 1.5em 0;
  }
  .projects-section h2 {
    font-size: 1.5em;
  }
  .project-card {
    padding: 1em;
    min-height: auto;
  }
  .project-card h3 {
    font-size: 1em;
  }
  .project-card p {
    font-size: 0.8em;
  }
}

@media screen and (max-width: 480px) {
  .hero {
    padding: 1em;
  }
  .hero h1 {
    font-size: clamp(2em, 10vw, 3em);
    margin: 0 auto;
    align-self: center;
  }
  .hero p {
    font-size: clamp(0.9em, 4vw, 1.2em);
  }
  .hero::after {
    content: '✨ Welcome! ✨';
    font-size: 0.5em;
    padding: 0.3em 0.6em;
    bottom: 1em;
    border: 1px solid #00ff00;
  }
  main {
    padding: 0.5em;
  }
  .about-text {
    padding: 1em;
  }
  .about-text h2 {
    font-size: 1.3em;
  }
  .card-list {
    gap: 1em;
    grid-template-columns: 1fr;
  }
  .card {
    padding: 1em;
  }
  .card h2 {
    font-size: 1.1em;
  }
  .card p {
    font-size: 0.8em;
    margin: 0 0 1em 0;
  }
  .btn {
    padding: 0.4em 1em;
    font-size: 0.7em;
  }
  .projects-section {
    padding: 1em;
    margin: 1em 0;
  }
  .projects-section h2 {
    font-size: 1.3em;
  }
  .project-card {
    padding: 0.8em;
    min-height: auto;
  }
  .project-card h3 {
    font-size: 0.9em;
  }
  .project-card p {
    font-size: 0.75em;
  }
  .btn-large {
    padding: 0.6em 1.5em;
    font-size: 0.9em;
  }
  footer {
    padding: 0.8em;
    font-size: 0.7em;
  }
}

@media screen and (max-width: 360px) {
  .hero {
    padding: 0.8em;
  }
  .hero h1 {
    font-size: clamp(1.8em, 12vw, 2.5em);
    letter-spacing: 0.1em;
  }
  .hero::after {
    content: '✨';
    font-size: 0.4em;
    padding: 0.2em 0.4em;
    bottom: 0.8em;
  }
  main {
    padding: 0.3em;
  }
  .about-text {
    padding: 0.8em;
  }
  .about-text h2 {
    font-size: 1.2em;
  }
  .about-text p {
    font-size: 0.9em;
  }
  .card {
    padding: 0.8em;
  }
  .card h2 {
    font-size: 1em;
  }
  .card p {
    font-size: 0.75em;
  }
  .btn {
    padding: 0.3em 0.8em;
    font-size: 0.65em;
  }
  .projects-section {
    padding: 0.8em;
  }
  .projects-section h2 {
    font-size: 1.2em;
  }
  .project-card {
    padding: 0.7em;
    min-height: auto;
  }
  .project-card h3 {
    font-size: 0.85em;
  }
  .project-card p {
    font-size: 0.7em;
  }
  .btn-large {
    padding: 0.5em 1.2em;
    font-size: 0.8em;
  }
}

/* ===== アニメーション ===== */
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.5; }
}

@keyframes rainbow {
  0% { color: #ffff00; }
  16% { color: #ff8000; }
  33% { color: #ff0080; }
  50% { color: #8000ff; }
  66% { color: #0080ff; }
  83% { color: #00ff80; }
  100% { color: #ffff00; }
}
