body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  /* background-color: #ffffff; */
  background: linear-gradient(#cde5e9, #c3e6d0);
  color: #111;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #1e1e1e;
  color: #fff;
  padding: 1rem 0;
  z-index: 10;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
  display: inline-block;
}

/* 
Fonts
*/
.kiwi-maru-regular {
  font-family: "Kiwi Maru", serif;
  font-weight: 400;
  font-style: normal;
}
.dotgothic16-regular {
  font-family: "DotGothic16", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.kaisei-opti-regular {
  font-family: "Kaisei Opti", serif;
  font-weight: 400;
  font-style: normal;
}
.murecho-regular {
  font-family: "Murecho", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}


nav {
  float: right;
}

nav a {
  margin-left: 1rem;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.intro ,.skills, .wips , .works, .history, .skills, .contact{
  margin: 2rem 0;
}

.hero {
  position: relative;
  width: 100%;
  height: 50vh; /* 高さを画面の50%に抑える */
  min-height: 300px;
  overflow: hidden;
}

/* 背景画像 */
.hero-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* filter: brightness(70%); 少し暗くして文字が読みやすく */
}

/* オーバーレイテキスト */
.hero-overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  top: 50%;
  transform: translateY(-50%);
  padding: 1rem;
  background: rgba(0, 0, 0, 0.4); /* 半透明な黒背景でおしゃれに */
  border-radius: 3px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-overlay h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.hero-overlay p {
  font-size: 1.1rem;
}

/* モバイル向け調整 */
@media (max-width: 768px) {
  .hero {
    height: 40vh;
  }

  .hero-overlay h1 {
    font-size: 1.8rem;
  }

  .hero-overlay p {
    font-size: 1rem;
  }
}

/* 横並び or 縦並びを切り替えるコンテナ */
.intro-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-direction: column; /* ← 初期は縦並び（スマホ用） */
  text-align: center;
}

/* アイコン画像 */
.intro-icon {
  width: 300px;
  height: 300px;
  object-fit: cover;
  transition: filter 0.3s;
  cursor: pointer;
}

/* アニメーション中 */
.intro-icon.animate-hue {
  animation: hueCycle 3s linear;
}

/* 色相をくるくる回すアニメーション */
@keyframes hueCycle {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(2160deg); }
}

.intro-icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.click-label {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #d80c0c;
  font-weight: bold;
  animation: bounce 1.5s infinite;
}

/* 遊び心あるアニメーション（上下にゆらゆら） */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* テキスト部分 */
.intro-text {
  max-width: 600px;
}

/* 横長画面では横並びに変更 */
@media (min-width: 850px) {
  .intro-container {
    flex-direction: row;
    text-align: left;
  }
}

.tags span {
  background-color: #eee;
  color: #333;
  padding: 0.3rem 0.6rem;
  margin: 0.2rem;
  display: inline-block;
  border-radius: 6px;
  font-size: 0.9rem;
  font-style: normal;
}

.project-grid {
  display: grid;
  gap: 1rem;
  /* grid-template-columns: repeat(2, minmax(250px, 1fr)); */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 8px;
  background-color: #f9f9f9;
  position: relative;
}

/* New!! バッジ */
.card.new-badge::after {
  content: "New!!";
  position: absolute;
  top: 0;
  right: 0;
  background-color: #d0094c;
  color: white;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  font-weight: bold;
  border-radius: 0 8px 0 8px;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card h4 {
  margin-top: 0;
}

.card p {
  margin: 0.4rem 0;
  line-height: 1.4;
}

.card a {
  display: inline-block;
  margin-top: 0.5rem;
  background-color: #333;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
}

.card-content {
margin-top: 1rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
}

.content-block {
border-left: 4px solid #ddd;
padding-left: 0.5rem;
}

.content-heading {
font-size: 1rem;
font-weight: 600;
color: #333;
margin-top: 0; 
margin-bottom: 0.3rem;
}

.content-text {
font-size: 0.95rem;
line-height: 1.5;
color: #555;
margin: 0;
font-family: "Murecho", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
}

h2 {
font-size: 2em;
margin-bottom: 20px;
color: #2c3e50;
border-bottom: 2px solid #484848;
padding-bottom: 10px;
}

/* 活動履歴セクションのスタイル */
#history {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* 活動履歴リストのスタイル */
.history-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.history-list li {
  margin-bottom: 20px;
  padding: 15px 15px 15px 15px;
  margin-left: 60px; /* 丸と余白の分 */
  border-left: 4px solid #2b2e30;
  background-color: #f9f9f9;
  border-radius: 4px;
  position: relative;
}

.history-date {
  position: absolute;
  left: -85px; /* 60px幅 + 余白 */
  top: 5px;
  width: 70px;
  height: 70px;
  background-color: #2b2e30;
  color: white;
  font-size: 0.8rem;
  border-radius: 50%;
  text-align: center;
  line-height: 70px;
  font-weight: bold;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

/* タイトルのスタイル */
.history-title {
  display: block;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 5px;
}

/* 概要のスタイル */
.history-desc {
  display: block;
  color: #34495e;
}

/* スキルカードのコンテナ */
.skills-container {
display: flex;
flex-wrap: wrap;
gap: 20px;
}

/* 各スキルカードのスタイル */
.skill-card {
flex: 1 1 calc(50% - 20px);
background-color: #f9f9f9;
padding: 15px;
box-sizing: border-box;
text-align: center;
border: 1px solid #ddd;
border-radius: 8px;
}

.skill-icon {
width: 60px;
height: 60px;
margin-bottom: 10px;
}

.skill-card h3 {
margin: 10px 0;
color: #3498db;
}

.skill-card p {
margin: 5px 0;
}

/* 連絡先情報のコンテナ */
.contact-container {
display: flex;
flex-wrap: wrap;
gap: 20px;
}

/* 各連絡先項目のスタイル */
.contact-item {
flex: 1 1 30%;
display: flex;
align-items: center;
gap: 10px;
}

.contact-item img {
width: 32px;
height: 32px;
}

.contact-item a {
color: #3498db;
text-decoration: none;
font-size: 1.1em;
}

.contact-item a:hover {
text-decoration: underline;
}


.fade-in-on-scroll {
opacity: 0;
transform: translateY(100px) scale(0.9);
transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in-on-scroll.visible {
opacity: 1;
transform: translateY(0) scale(1);
}

.click_a {
  display: inline-block;
  margin-top: 0.5rem;
  background-color: #333;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
}

/*
testここまで
*/

/*////////////////////////////////////////
スライドショーのスタイル
////////////////////////////////////////*/
.slideshow {
  width: 100%;
  position: relative;
  max-width: 85%;
  margin: 20px auto;
  overflow: hidden;
}

.slide {
  display: none;
  width: 100%;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  bottom: 0px;
  width: 20px;
  height: 20px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 20px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 6px;
  z-index: 1;
}
.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.dots {
  text-align: center;
  margin-top: 10px;
  scrollbar-width: none;
}

.dots::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.dot {
  flex: 0 0 auto;
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 4px 3px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #717171;
}

.controller {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

@media (max-width: 600px) {
  .prev, .next {
    font-size: 18px;
    padding: 10px;
  }
}


/* Parrot関係 */
/* 🦜 全体レイアウト */
#parrot-container {
  position: fixed;
  bottom: 20px;
  right: -20px;
  z-index: 1000;
}

/* 🦜 インコ画像：デフォルト設定（PC） */
#parrot {
  width: 200px;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  cursor: pointer;
  transform: translateY(30px); /* 少し下にずらす */
  transition: transform 0.2s;
  filter: saturate(20%);
}

/* 📱 スマホ用サイズ調整 */
@media (max-width: 767px) {
  #parrot {
    width: 128px;
    transform: translateY(30px);
  }
}

/* 📱 タブレット用サイズ調整 */
@media (min-width: 768px) and (max-width: 1024px) {
  #parrot {
    width: 175px;
    transform: translateY(30px);
  }
}