:root {
  --mint-pale: #c1d9c6;
  --mint-dark: #8ba994;
  --accent-orange: #e67e22; /* ツールボックスのオレンジ */
  --steel-frame: #b0b8b5;
  --off-white: #fdfaf5;
  --text-main: #2c3e50;
  --shadow-soft: rgba(0, 0, 0, 0.08);
}

body {
  margin: 0;
  background-color: var(--mint-pale);
  color: var(--text-main);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.6;
}

/* --- Navigation --- */
nav {
  position: sticky;
  top: 20px;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 10px;
}

.nav-inner {
  background: var(--off-white);
  border: 4px solid var(--steel-frame);
  border-radius: 50px;
  padding: 5px 30px;
  display: flex;
  gap: 20px;
  box-shadow: 0 10px 20px var(--shadow-soft);
}

.nav-link {
  text-decoration: none;
  color: var(--text-main);
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--accent-orange);
}

/* --- Container & Windows --- */
.container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
}

section {
  background: var(--off-white);
  border-radius: 30px;
  border: 6px solid var(--steel-frame);
  padding: 60px 40px;
  margin-bottom: 60px;
  box-shadow: 15px 15px 0px var(--mint-dark);
  position: relative;
}

/* セクションの見出し */
h2 {
  display: inline-block;
  background: var(--accent-orange);
  color: white;
  padding: 5px 20px;
  border-radius: 8px;
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* --- Hero Section --- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: center;
}

.hero-image {
  width: 100%;
  height: 350px;
  background: var(--mint-dark);
  border-radius: 20px;
  border: 4px solid var(--steel-frame);
  background-image: url(../images/common/Profile-img.png);
}

/* --- Work Grid --- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.work-card {
  background: #eee;
  aspect-ratio: 4/3;
  border-radius: 15px;
  border: 3px solid var(--steel-frame);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
  background-size: cover;
  background-position: center;
}

/* 個別の画像設定 */
.work-01 {
  background-image: url("../images/projects/LakesideVilla-thumbnailimg.png");
}
.work-02 {
  background-image: url("../images/projects/ArchiveCockpit-thumbnailimg.png");
}
.work-03 {
  background-image: url("../images/projects/AudioPlayer-thumbnailimg.png");
}
.work-04 {
  background-image: url("../images/projects/2DCG-thumbnailimg.png");
}
.work-05 {
  background-image: url("../images/projects/Mirai-thumbnailimg.png");
}
.work-06 {
  background-image: url("../images/projects/RetroMusic-thumbnailimg.png");
}

.work-card:hover {
  transform: scale(1.03);
  border-color: var(--accent-orange);
}

.work-info {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  padding: 15px;
  font-size: 0.9rem;
}

/* ポップアップ（モーダル）のスタイル */
.modal {
  display: none; /* 初期状態は非表示 */
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 62, 80, 0.9); /* var(--text-main)に近い色 */
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 80%;
  max-height: 80%;
  border: 6px solid var(--steel-frame);
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* --- Skills (Industrial list) --- */
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  list-style: none;
  padding: 0;
}

.skill-item {
  background: var(--steel-frame);
  color: white;
  padding: 8px 20px;
  border-radius: 5px;
  font-family: monospace;
  display: flex;
  align-items: center;
}

.skill-item::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--accent-orange);
  margin-right: 10px;
  border-radius: 50%;
}

/* --- Open Badge Style --- */
.badge-container {
  margin-top: 50px;
  display: flex;
  justify-content: flex-start;
}

.badge-link {
  text-decoration: none;
  display: block;
  max-width: 400px;
  width: 100%;
}

.badge-plate {
  display: flex;
  align-items: center;
  background: var(--text-main); /* 濃い紺色（スチール風） */
  color: #fff;
  padding: 15px 20px;
  border: 2px solid var(--steel-frame);
  border-radius: 8px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 4px 4px 0px var(--steel-frame);
}

/* ホバー時に浮き上がり、アクセントオレンジが光る */
.badge-link:hover .badge-plate {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--accent-orange);
  border-color: var(--accent-orange);
}

/* 通電ランプのようなステータス表示 */
.badge-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 20px;
  padding-right: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.status-dot {
  width: 10px;
  height: 10px;
  background-color: #2ecc71; /* 認証済みを示すグリーン */
  border-radius: 50%;
  margin-bottom: 5px;
  box-shadow: 0 0 8px #2ecc71;
  animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}

.status-text {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: #bdc3c7;
}

/* テキスト部分 */
.badge-body {
  flex-grow: 1;
}

.badge-title {
  display: block;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: bold;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.badge-sub {
  display: block;
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--steel-frame);
  margin-top: 2px;
}

.badge-arrow {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--steel-frame);
  transition: color 0.3s;
}

.badge-link:hover .badge-arrow {
  color: var(--accent-orange);
}

/* --- Contact Section --- */
.contact-display {
  display: flex;
  justify-content: center;
  padding: 60px 0;
}

.email-link {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--text-main);
  text-decoration: none;
  padding: 15px 40px;
  border: 3px solid var(--steel-frame);
  background-color: var(--off-white);
  border-radius: 4px;
  transition: all 0.3s ease-out;
}

.email-link:hover {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(230, 126, 34, 0.3);
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 40px 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 2px;
  color: var(--mint-dark);
}
Ï

/* --- Scroll Animation --- */
.reveal {
  opacity: 0;
  transform: translateX(-30px);
  transition: 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateX(0);
}
