@font-face {
  font-family: "ethnocentric rg";
  src: url("./fonts/ethnocentric rg.otf") format("otf");
}
@font-face {
    font-family: "SLANT";
    src: url("./fonts/SLANT.TTF") format("ttf");
}

:root {
  --bg-color: #3a3c3f;
  --fg-color: #acad9c;
  --accent-color: #e67650;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  overflow: hidden;
}
nav {
  width: 100%;
  background: var(--bg-color);
  padding: 1rem;
  position: fixed;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}
.logo {
  color: var(--accent-color);
  font-size: 20px;
  font-weight: bold;
  margin-left: 20px;
  cursor: pointer;
}
.accent-color {
  color: var(--accent-color);
}
.about-me {
  margin: 0;
  font-size: 64px;
  color: rgba(0, 0, 0, 0);
  -webkit-text-stroke: var(--fg-color) 1px;
  line-height: 0.6;
  position: absolute;
  left: calc(20vw - 150px);
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center center;
}

/* 2番目のh1タグのスタイルを追加 */
.about-me h1:nth-child(2) {
  color: var(--fg-color);
  -webkit-text-stroke: none;
  margin: 15px 0;
}
h2 {
  margin-bottom: 1rem;
}
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: flex-end;
  flex-grow: 1;
  margin-right: 20px;
}
nav ul li {
  margin: 0 15px;
}
nav ul li a {
  color: var(--fg-color);
  text-decoration: none;
  font-size: 18px;
  cursor: pointer;
}
.container {
  width: 100vw;
  height: 100vh;
  position: relative;
}
.page {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateY(100%);
}
#intro {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-color);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

.intro-text {
  text-align: center;
  line-height: 1.5;
  padding: 0 2rem;
}

.text-line {
  font-size: 5rem;
  font-weight: bold;
  color: var(--fg-color);
  opacity: 0;
  filter: blur(10px);
}
/* #about, #work, #skill, #contact の部分を修正 */
#about {
  background-color: var(--bg-color);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "title content"
    "social social";
  gap: 2rem;
  padding: 2rem 10%;
  min-height: 100vh;
}
#work {
  background-color: var(--bg-color);
}
#skill {
  background-color: var(--bg-color);
}
#contact {
  background-color: var(--bg-color);
}

.skill-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 2rem;
  width: 80%;
  max-width: 800px;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.skill-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 200px;
}

.skill-item i {
  font-size: 3rem;
  transition: transform 0.3s ease;
}

.skill-item:hover i {
  transform: scale(1.1);
}

.skill-item span {
  font-size: 1.2rem;
  color: var(--fg-color);
  width: 100px;
}

.progress-bar {
  flex-grow: 1;
  height: 10px;
  background-color: var(--fg-color);
  border-radius: 5px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background-color: var(--accent-color);
  border-radius: 5px;
  width: 0;
}

/* Contact page styles */
.contact-container {
  width: 80%;
  max-width: 600px;
  padding: 2rem;
}

.contact-container h2 {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  color: var(--fg-color);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 1rem;
  color: var(--fg-color);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 0.8rem;
  border: 2px solid var(--fg-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background-color: var(--bg-color);
  color: var(--fg-color);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  background-color: var(--fg-color);
  color: var(--bg-color);
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  /* margin-top: 1rem; */
}

.submit-btn:hover {
  background-color: var(--accent-color);
}

/* フォームの入力検証スタイル */
.form-group input:invalid,
.form-group textarea:invalid {
  border-color: #ff6b6b;
}

/* プレースホルダーのスタイル */
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
}

.social-links {
  grid-area: social;
  position: static; /* 絶対配置を解除 */
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-links a {
  text-decoration: none;
  color: var(--fg-color);
  transition: all 0.3s ease;
}

.social-links i {
  font-size: 2rem;
}

.social-links a:hover {
  transform: translateY(-5px);
  color: var(--accent-color);
}

/* 各アイコンの個別のホバーカラー */
.social-links a:hover .fa-x-twitter,
.social-links a:hover .fa-instagram,
.social-links a:hover .fa-github {
  color: var(--accent-color);
}

.work-text {
  width: 80vw;
  height: auto;
  transform: translateX(-30%);
  /* position: absolute;
    top: -350px;
    left: -56%; */
}

.work-text text {
  font-size: 150px;
  font-weight: bold;
  fill: none;
  stroke: var(--fg-color);
  stroke-width: 1;
}

/* レスポンシブ対応のためのメディアクエリ */
@media screen and (max-width: 768px) {
  nav {
    flex-direction: row;
    padding: 0.5rem 1rem;
  }

  .logo {
    margin: 0;
  }

  nav ul {
    margin: 0;
    justify-content: center;
  }

  nav ul li {
    margin: 0 10px;
  }

  nav ul li a {
    font-size: 16px;
  }

  /* イントロテキスト */
  .text-line {
    font-size: 2.5rem;
  }

  /* About Me */
  .about-me {
    position: relative;
    left: auto;
    transform: none;
    margin-bottom: 5rem;
    font-size: 32px;
  }

  /* Work テキスト */
  /* .work-text {
        width: 100%;
    left: 0;
    } */

  /* .work-text text {
        font-size: 60px;
    } */

  /* スキルセクション */
  .skill-container {
    width: 90%;
    padding: 1rem;
  }

  .skill-item {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .skill-info {
    width: 100%;
    justify-content: flex-start;
  }

  /* コンタクトフォーム */
  .contact-container {
    width: 90%;
    padding: 1rem;
  }

  .contact-container h2 {
    font-size: 2rem;
  }

  /* ソーシャルリンク */
  .social-links {
    bottom: 1rem;
    right: 1rem;
    gap: 1rem;
  }

  .social-links i {
    font-size: 1.5rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    z-index: 99;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 20px 0;
  }

  .nav-links li a {
    font-size: 24px;
  }

  /* ハンバーガーメニューがアクティブな時のスタイル */
  .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  #about {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "content"
      "social";
    padding: 2rem;
    gap: 2rem;
    min-height: 100vh;
    justify-content: center;
  }

  .about-me {
    transform: none;
    font-size: 48px;
    text-align: center;
    margin-bottom: 2rem;
  }

  .about-content {
    padding: 1rem;
    justify-content: flex-start;
    margin-top: 1rem;
  }

  .about-content p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
  }

  .social-links {
    margin-top: 1rem;
    padding-bottom: 2rem;
  }

  /* 1番目と3番目のh1を非表示 */
  .about-me h1:first-child,
  .about-me h1:last-child {
    display: none;
  }

  /* 2番目のh1のみ表示 */
  .about-me h1:nth-child(2) {
    margin: 0; /* マージンをリセット */
  }
}

/* さらに小さい画面用 */
@media screen and (max-width: 480px) {
  /* 既存のスタイル */
  .text-line {
    font-size: 1.8rem;
  }

  nav ul li {
    margin: 0 5px;
  }

  nav ul li a {
    font-size: 14px;
  }

  .work-text text {
    font-size: 80px;
  }

  /* スキルアイコン */
  .skill-item i {
    font-size: 2rem;
  }

  .skill-item span {
    font-size: 1rem;
  }

  /* プログレスバーの修正 */
  .skill-item {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .skill-info {
    width: 100%;
    justify-content: flex-start;
  }

  .progress-bar {
    width: 100%;
    height: 8px;
  }

  .progress {
    height: 100%;
  }

  /* コンタクトフォーム */
  .form-group label {
    font-size: 0.9rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.6rem;
  }

  .submit-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  #about {
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }

  .about-me {
    font-size: 36px;
    margin-bottom: 5rem;
  }

  .about-content {
    padding: 0.5rem;
    margin-top: 0.5rem;
  }

  .about-content p {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
  }

  .social-links {
    gap: 1.5rem;
    margin-top: 1rem;
    padding-bottom: 1.5rem;
  }

  .social-links i {
    font-size: 1.8rem;
  }
}

/* 高さが低い画面用 */
@media screen and (max-height: 600px) {
  .text-line {
    font-size: 2rem;
  }

  .skill-container {
    gap: 1.5rem;
  }

  .contact-container {
    padding-top: 4rem;
  }

  #about {
    padding: 4rem 2rem;
  }

  .about-me {
    font-size: 36px;
  }

  .about-content p {
    margin-bottom: 1rem;
  }
}

/* ハンバーガーメニューのスタイル */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 100;
  margin-right: 20px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--fg-color);
  transition: all 0.3s ease;
}

/* レスポンシブ対応のためのメディアクエリ */
@media screen and (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    z-index: 99;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 20px 0;
  }

  .nav-links li a {
    font-size: 24px;
  }

  /* ハンバーガーメニューがアクティブな時のスタイル */
  .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* About section base styles */
#about {
  background-color: var(--bg-color);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "title content"
    "social social";
  gap: 2rem;
  padding: 2rem 10%;
  min-height: 100vh;
}

/* About title styles */
.about-me {
  margin: 0;
  font-size: 64px;
  color: rgba(0, 0, 0, 0);
  -webkit-text-stroke: var(--fg-color) 1px;
  line-height: 0.6;
  position: absolute;
  left: calc(20vw - 150px);
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center center;
}

.about-me h1 {
  transition: opacity 0.3s ease;
}

.about-me h1:nth-child(2) {
  color: var(--fg-color);
  -webkit-text-stroke: none;
  margin: 15px 0;
}

/* About content styles */
.about-content {
  grid-area: content;
  width: 100%;
  padding: 2rem;
  color: var(--fg-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  height: 100%;
  margin-top: 8rem;
}

.about-content p {
  margin-bottom: 2rem;
  line-height: 1.8;
  font-size: 1.1rem;
  opacity: 0.9;
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* Social links styles */
.social-links {
  grid-area: social;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-links a {
  text-decoration: none;
  color: var(--fg-color);
  transition: all 0.3s ease;
}

.social-links i {
  font-size: 2rem;
}

.social-links a:hover {
  transform: translateY(-5px);
  color: var(--accent-color);
}

/* Responsive styles */
@media screen and (max-width: 768px) {
  #about {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "content"
      "social";
    padding: 2rem;
    gap: 2rem;
  }

  .about-me {
    position: relative;
    left: auto;
    transform: none;
    font-size: 48px;
    text-align: center;
    margin-bottom: 5rem;
  }

  .about-me h1:first-child,
  .about-me h1:last-child {
    display: none;
  }

  .about-me h1:nth-child(2) {
    margin: 0;
  }

  .about-content {
    padding: 1rem;
    justify-content: flex-start;
    margin-top: 1rem;
  }

  .about-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  .social-links {
    padding-bottom: 2rem;
  }
}

@media screen and (max-width: 480px) {
  #about {
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }

  .about-me {
    font-size: 36px;
  }

  .about-content {
    padding: 0.5rem;
    margin-top: 0.5rem;
  }

  .about-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
  }

  .social-links {
    gap: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .social-links i {
    font-size: 1.8rem;
  }
}

/* Work projects styles */
.work-projects {
  position: absolute;
  right: 5%;
  bottom: 5%;
  display: flex;
  flex-direction: column; /* 縦方向に配置 */
  gap: 1rem; /* 行間を調整 */
  align-items: flex-start; /* 右揃え */
  display: none;
}

.project-title {
  font-size: 4rem;
  color: var(--fg-color);
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1.2; /* 行の高さを調整 */
}

.project-title a {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.project-title:hover {
  color: var(--accent-color);
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .work-projects {
    right: 3%;
    bottom: 3%;
    gap: 0.8rem; /* タブレットサイズでの行間 */
  }

  .project-title {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .work-projects {
    right: 10%;
    bottom: 12%;
    gap: 0.5rem; /* スマホサイズでの行間 */
  }

  .project-title {
    font-size: 2rem;
  }

  .work-text {
    position: absolute;
    top: 20%;
    left: 10%;
  }
  .work-text text {
    font-size: 150px;
  }
}
.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  text-align: center;
  font-size: 1.2rem;
  color: var(--fg-color);
  line-height: 1.6;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}
.contact-info a {
  text-decoration: none;
  color: var(--fg-color);
  transition: color 0.3s ease;
}
.contact-info a:hover {
  color: var(--accent-color);
}