@charset "UTF-8";

body {
  margin: 0;
  background: linear-gradient(to left,
      #4b5320 0 5%,
      #fff 5% 95%,
      #4b5320 95% 100%);
  z-index: 2000;
}

.container {
  width: 90%;
  /* コンテンツ幅も%にして真ん中に寄せる */
  /* max-width: 1200px;    大画面では1200pxで制限 */
  margin: 0 auto;
  background: #fff;

}



/* オーバーレイ */
/* .oya-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); 
} */





.oya-img {
  position: relative;

}

.oya-img h1 {
  position: absolute;
  top: 28%;
  left: 8.5%;
  font-size: 2.2vw;

}

.oya-img p {
  position: absolute;
  top: 43%;
  left: 17.5%;
  font-size: 1.5vw;
}

.oya-img nav {
  position: absolute;
  top: 55%;
  font-size: 1vw;


}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  /* opacity: 0.8; */
}




.nav-links li {
  margin: 20px 20px;
  cursor: pointer;
}

#profile {
  max-width: 1340px;
  margin: 0 auto;
}

.services-inner {
  max-width: 1340px;
  margin: 0 auto;
}

#skills {
  max-width: 1340px;
  margin: 0 auto;
}

.works-inner {
  max-width: 1340px;
  margin: 0 auto;
}

#blog {
  max-width: 1340px;
  margin: 0 auto;
}

#contact {
  max-width: 1340px;
  margin: 0 auto;
}


.profile-items {
  display: flex;
  /* margin-top: 20px;
   background-color: #dad6d6; */
}

.profile-text {
  justify-content: flex-end;
  padding: 5%;
}


.profile-img {
  margin: 5%;
  margin-left: 10%;
  border-radius: 15%;
  width: 325px;
  height: 350px;
  background-image: url(../img/profile1.jpg);
  background-size: cover;
  aspect-ratio: 3/2;
  /* object-position: 50%; */
}

.profile-img:hover {
  background: url(../img/profile2.jpg);
  background-size: cover;
  transition: 0.25s;
}

.myname {
  font-size: 1.5rem;
  font-weight: 550;
  margin-top: 15px;
  margin-bottom: 15px;
}

.myintroduction {
  line-height: 1.6;
  font-size: 1rem;

}


.icons {
  width: 75px;
  /* height: 80px; */
  display: block;
  margin: 0 auto 10px auto;
}

.icons1 {
  width: 80px;
  height: 90px;
  display: block;
  margin: 0 auto 10px auto;
}

#services {
  background-color: #e2e0d4;

}

#service-list {
  display: flex;
  align-items: center;
  /* justify-content: space-around; */
  gap: 20px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}


#service-list h3 {
  margin-bottom: 10px;
  text-align: center;
}

.service-text {
  line-height: 1.6;
  font-size: 1rem;
  padding: 10px;
}

.service-list-contents {
  margin-left: 20px;
  gap: 20px;
  padding: 20px;
}

.service-list-contents:hover {
  transform: translateY(-5px);
  /* 5px持ち上がる */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  /* 影を濃くする */
}

/* Skills */
#skills {
  padding-bottom: 40px;
  background: #f8fafc;
  /* 背景をほんの少し淡くして立体感 */
  text-align: center;
}

/* タイトル */
#skills h2 {
  font-size: 1.8rem;
  margin-bottom: 40px;
  text-align: left;
  color: #2f3847;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

#skills.visible h2 {
  opacity: 1;
  transform: translateY(0);
}

/* スキル一覧レイアウト */
#skills .skill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* 各スキルカード */
#skills .skill-list-contents {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
  flex: 0 1 calc(33.333% - 30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.4, 1);
  opacity: 0;
  transform: translateY(40px);
}

/* 表示時アニメーション */
.skill-list-contents.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ホバーアニメーション */
.skill-list-contents:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* HTML＋CSSアイコンの横並び */
.html-css-kannri {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
}

/* 各スキルタイトル */
.skill-list-contents h4 {
  margin-bottom: 10px;
  text-align: center;
  font-weight: 600;
}

/* ロゴ画像共通アニメーション */
.skill-logo,
.figma-kannri {
  width: 60px;
  height: auto;
  max-width: 80px;
  margin: 10px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s ease;
}

.skill-list-contents.visible .skill-logo,
.skill-list-contents.visible .figma-kannri {
  opacity: 1;
  transform: scale(1);
}

/* テキストフェードイン */
.skill-list-contents p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.6s ease;
}

.skill-list-contents.visible p {
  opacity: 1;
  transform: translateY(0);
}

/* レスポンシブ */
@media (max-width: 768px) {
  #skills .skill-list-contents {
    flex: 0 1 calc(50% - 20px);
  }
}

@media (max-width: 480px) {
  #skills .skill-list-contents {
    flex: 0 1 100%;
  }
}




/* Works */
#works {
  background-color: #e2e0d4;
  padding-bottom: 40px;
  width: 100%;

}

.works-item {
  display: flex;
}

.works-items {
  margin: 40px 40px;
  padding: 20px;

  gap: 20px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
  flex: 1;
  height: 200px;
  width: 200px;
  display: inline-block;
}

/* 画像サイズ調整：カードに完全フィット */
.works-items img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* ← 縦横比維持しつつ全面フィット */
  display: block;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.works-items:hover {
  transform: translateY(-2px);
  /* 5px持ち上がる */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  /* 影を濃くする */
}



/* セクション全体 */


/* 見出し */


/* 補足説明 */
#contact {
  width: 100%;
  margin: 0 auto;
}

#contact p.description {
  font-size: 0.7rem;

  margin-bottom: 30px;
  text-align: center;
}

/* フォーム全体 */
#contact form {
  margin: 0 auto;
  text-align: left;
}

#contact span {
  display: inline-block;
  width: 300px;
  font-weight: 600;
}

/* ラベル */
#contact label {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: #333;
}


/* 入力欄 */
#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
  width: 100%;
  padding: 10px 12px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  box-sizing: border-box;

}

/* テキストエリア */
#contact textarea {
  min-height: 140px;
  resize: vertical;
}

#contact .textarea-label {
  align-items: flex-start;
}

/* ボタン */
#contact button {
  display: block;
  margin: 20px auto 0;
  padding: 10px 30px;
  background: none;
  border: 1px solid #444;
  border-radius: 15px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

#contact button:hover {
  background: #444;
  color: #fff;
}



footer {
  background-color: #e2e0d4;
  color: black;
  text-align: center;
  padding: 10px 0;
  margin-top: 20px;
  font-size: 0.9rem;
  min-height: 300px;
  line-height: 80px;
}

.fotter-nav-links {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  list-style: none;
  cursor: pointer;


}

.fotter-nav-links li {
  margin: 0 auto;
  padding: 5px;
}



.sns-link {
  display: flex;
  justify-content: center;
  gap: 10%;
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 20px;
  margin-top: 30px;
  letter-spacing: 2px;
}

#works h2 {
  padding-top: 30px;
}

#services h2 {
  padding-top: 30px;
  margin-bottom: 0;
}







html {
  scroll-behavior: smooth;
}

nav ul {
  list-style: none;
}

nav a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
}

nav a:hover {
  color: #007acc;
  /* ホバーで色変更 */
}








@media (max-width: 768px) {

  /* プロフィール */
  .profile-items {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-img {
    margin: 0 auto 20px auto;
    width: 250px;
    height: 270px;
  }

  .profile-text {
    padding: 0 20px;
  }

  /* Services */
  #service-list {
    flex-direction: column;
    align-items: center;
  }

  .service-list-contents {
    margin-left: 0;
    max-width: 90%;
    text-align: left;
  }

  .icons,
  .icons1 {
    width: 60px;
    height: auto;
  }

  /* Skills */
  #skills .skill-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  #skills .skill-list-contents {
    flex: 0 1 calc(50% - 20px);
    /* 2列にする */
    margin: 0;
  }

  /* Works */
  .works-items {
    flex: 0 1 100%;
    max-width: 100%;
    margin: 10px auto;
  }

  /* Contact */
  #contact span {
    width: 120px;
    /* PC用より狭くする */
    display: inline-block;
    text-align: left;
  }

  #contact form {
    padding: 0 15px;
  }



  .fotter-nav-links li {
    margin: 0 auto;
    width: 60%;
    font-size: 0.4rem;

  }
}

/* skillsをスマホ幅以上、PC幅以下で2列表示に変更、カード化するが見た目は変えない。 */
/* 769px〜1199px 中間幅対応（Servicesを2列化） */
@media (min-width: 769px) and (max-width: 1000px) {
  #service-list {
    display: flex;
    flex-wrap: wrap;
    /* 折り返し許可 → 2列化 */
    justify-content: center;
    /* 中央寄せ */
    gap: 30px;
    /* 間隔 */
  }

  .service-list-contents {
    flex: 0 1 calc(50% - 30px);
    /* 2列分の幅 */
    background: inherit;
    /* 背景は親と同じ → カード感を消す */
    padding: 10px;
    /* 内側に余白だけ軽く確保 */
    border: none;
    /* 枠線なし */
    box-shadow: none;
    /* 影なし */
    box-sizing: border-box;
  }
}




/* ===== Blog section ===== */
#blog {
  padding: 60px 20px;
  background: #fff;
}

#blog h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

#blog .blog-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

/* カード */
.blog-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
  border-color: transparent;
}

.blog-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.blog-card img {
  width: 100%;
  /* aspect-ratio: 16/9; */
  aspect-ratio: 8/5;
  object-fit: cover;
  display: block
}

.blog-link-img {
  width: 100%;
  aspect-ratio: 8/5;
  object-fit: cover;
  display: block;

}

.blog-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: .85rem;
  color: #666;
  padding: 12px 16px 0;
}

.blog-tag {
  background: #f1f1f1;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: .75rem;
}

.blog-title {
  font-size: 1.05rem;
  line-height: 1.5;
  padding: 8px 16px 0;
}

.blog-excerpt {
  color: #555;
  font-size: .92rem;
  line-height: 1.7;
  padding: 8px 16px 16px;
}

.blog-more {
  font-size: 1rem;
  color: #333;
  padding: 0 16px 18px;
}

.blog-archive-box {
  width: fit-content;
  margin: 36px 0 0 auto;
}


.blog-archive {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
  padding: auto;
  margin-top: 5%;
  background-color: #e2e0d4;

}

/* レスポンシブ（既存方針に合わせて） */
@media (max-width: 1199px) {
  #blog .blog-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  #blog .blog-list {
    grid-template-columns: 1fr;
  }
}



/* ===== 共通：ヘッダーのナビ固定 ===== */


.hero nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 90%;
  margin-right: 0;
  padding-right: 0;
  margin-left: 5%;
  margin-right: 10%;
  background: rgba(255, 255, 255, 0.95);
  /* 半透明の白背景 */
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);

}

/* .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0 auto;
  padding: 10px 20px;
  gap: 20px;
} */

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #007acc;
}


/* PC幅ではハンバーガーを隠す */

/* ===== ファーストビュー背景 ===== */
/* #home .oya-img {
  position: relative;
  width: 100%;
  height: 100vh; /* 常に画面全体の高さに合わせる */
/* background: url("../img/header-bg.jpg.png") no-repeat center center;
  background-size: cover;
} */

#home .oya-img h1,
#home .oya-img p {
  position: absolute;
  /* 見やすさ調整（任意） */
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

#home .oya-img h1 {
  top: 35%;
  left: 8%;
  font-size: 2.75rem;
  color: whitesmoke;
}

#home .oya-img p {
  top: 60%;
  left: 10%;
  color: white;
  font-size: 1.25rem;
}

@media (max-width: 768px) {

  /* ヒーロー部分 */
  #home .oya-img h1 {
    font-size: 1.5rem;
    left: 8.5%;
    top: 40%;
  }

  #home .oya-img p {
    font-size: 0.8rem;
    left: 16%;
    top: 60%;
  }

  .oya-img nav {
    font-size: 0.5vw;
    top: 56%;

  }

  .nav-links li {
    margin: 10px 10px;
    font-size: 0.3rem;
  }
}


/* スマホ用に背景画像を切り替え */
@media (max-width: 768px) {
  #home .oya-img {
    background-size: cover;
  }

  .hero-image {
    height: 100vh;
    width: 100vw;
    object-fit: cover;
  }


}

/* ===== Skills：スマホ幅(≤768px)で1列にする ===== */
@media (max-width: 768px) {

  /* 親：縦積みにして、子が横幅いっぱい使えるようにする */
  #skills .skill-list {
    flex-direction: column;
    align-items: center;
    /* 子の幅を親いっぱいに */
    gap: 16px;
    /* お好みで */
  }

  /* 子（カード）：幅を100%に */
  #skills .skill-list-contents {
    flex: 1 1 100%;
    width: 65%;
    max-width: 65%;
  }
}


/* ===== ハンバーガーメニュー ===== */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}


.oya-img #slider {
  width: 100%;
  height: 100vh;
}

.oya-img .hero-image {
  height: 100vh;
  object-fit: cover;
}


/* ===== Blog詳細ページ single.html ===== */
/* ===== Blog 詳細ページ (single.html) ===== */
.blog-more {
  width: 800px;
  margin: 60px auto;
  padding: 20px;
  background: #fff;
  line-height: 1.8;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

}

.blog-more h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.blog-more .blog-link-img {
  width: 100%;
  margin: 20px 0;
  border-radius: 8px;
}

.blog-more .blog-meta {
  display: flex;
  gap: 15px;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
}

.blog-more .blog-tag {
  background: #f0f0f0;
  color: #333;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.blog-more .blog-title {
  font-size: 1.6rem;
  margin: 15px 0 10px;
  color: #222;
}

.blog-more .blog-excerpt {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #555;
}

.blog-more p {
  margin-bottom: 20px;
  color: #444;
  line-height: 1.9;
}


/* ===== TOPに戻る進捗ボタン ===== */
#scrollTopButton {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 9999;
  display: none;
  /* 初期非表示 */
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#scrollTopButton:hover {
  transform: scale(1.1);
}

#scrollTopButton .arrow {
  position: absolute;
  font-size: 1.4rem;
  color: #333;
  pointer-events: none;
}

/* 円形進捗バー */
.progress-ring__background {
  fill: none;
  stroke: #ddd;
  stroke-width: 4;
}

.progress-ring__circle {
  fill: none;
  stroke: linear-gradient(45deg, #5b8def, #8e44ad);
  stroke: #4b79a1;
  stroke-width: 4;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  stroke-dasharray: 163;
  stroke-dashoffset: 163;
  transition: stroke-dashoffset 0.2s ease;
}

/* 共通設定 */
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0 auto;
  padding: 10px 20px;
  gap: 20px;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #007acc;
}

/* PC時はハンバーガー非表示 */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* ===== スマホ時 ===== */
@media (max-width: 768px) {

  /* ハンバーガー表示 */
  .menu-toggle {
    display: block;
    color: #333;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    z-index: 1100;
  }
}



footer {
  background-color: #e2e0d4;
  color: black;
  text-align: center;
  padding: 20px 0;
  margin-top: 20px;
  font-size: 0.9rem;
  line-height: 1.8;
  overflow-x: hidden;
  /* ← 万一のはみ出し対策 */
}

.fotter-nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  /* ← 一行固定 */
  list-style: none;
  padding: 0;
  margin: 0 auto 10px;
  gap: 12px;
}

.fotter-nav-links li {
  margin: 0;
  padding: 0;
}

.fotter-nav-links a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  /* ← 改行禁止 */
}

.fotter-nav-links a:hover {
  color: #007acc;
}

/* SNSアイコン */
.sns-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.sns-link img {
  width: 30px;
  height: 30px;
  cursor: pointer;
}

/* ===== スマホ対応 ===== */
@media (max-width: 768px) {
  .fotter-nav-links {
    justify-content: space-around;
    /* 均等に配置 */
    gap: 6px;
    /* 間隔を狭く */

  }

  .fotter-nav-links a {
    font-size: 12.5px;
    /* ← フォント縮小で一行収め */
    letter-spacing: -0.3px;
    /* ← 微妙に詰める */
  }

  .sns-link img {
    width: 26px;
    height: 26px;
  }

  footer {
    line-height: 1.6;
    padding: 25px 10px;
  }
}

/* ======= オーバーレイの設定 =======  */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 900;
  /* メニューより下に配置 */
}

/* メニューが開いたときに表示 */
#overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ======= ハンバーガーメニュー統一版 ======= */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    color: #333;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    z-index: 1100;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 60%;
    max-width: 320px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 80px 16px 24px;
    gap: 20px;

    background: transparent;
    /* ← 非表示時は背景なし */
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
    z-index: 1000;
  }

  .nav-links.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    /* ← 開いているときのみ白背景 */
    backdrop-filter: blur(6px);

  }
}

/* ===== ハンバーガーメニューの位置補正 ===== */
.menu-toggle {
  position: fixed;
  /* ← absoluteだと親navに埋もれるため修正 */
  top: 20px;
  right: 25px;
  z-index: 2000;
  /* navより上に出す */
  color: #333;
  cursor: pointer;
}

/* ===============================
   ハンバーガーメニュー最終調整
   =============================== */
/* ===============================
   ハンバーガーメニュー最終版（統合・安定化）
   =============================== */

/* ======= ハンバーガーメニュー（完全修正版） ======= */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
  z-index: 1100;
}

/* スマホ幅で有効化 */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    z-index: 1101;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 60%;
    max-width: 320px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 80px;
    gap: 20px;

    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1100;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  /* オーバーレイ */
  /* #overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1000;
  }

  #overlay.active {
    opacity: 1;
    visibility: visible;
  }
} */

  .nav-links.active {

    width: 25%;
    height: auto;
  }




  /* ===== Lightbox（画像拡大） ===== */
  .modal {
    display: none;
    /* 非表示がデフォルト */
    position: fixed;
    z-index: 4000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    /* 背景を暗く */
    transition: opacity 0.3s ease;
  }

  /* 画像 */
  .modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    animation: zoomIn 0.3s ease;
  }

  /* 閉じるボタン */
  .close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    z-index: 4500;
    transition: color 0.2s ease;
  }

  .close:hover {
    color: #ccc;
  }

  /* 拡大アニメーション */
  @keyframes zoomIn {
    from {
      transform: scale(0.7);
      opacity: 0;
    }

    to {
      transform: scale(1);
      opacity: 1;
    }
  }

  /* スマホ用最適化 */
  @media (max-width: 768px) {
    .modal-content {
      max-width: 90%;
      max-height: 70vh;
    }
  }



  /* ===============================
   Skillsセクション 表示安定化修正版
   =============================== */

  #skills {
    position: relative;
    z-index: 10;
    background: #f8fafc;
    padding: 60px 0;
    min-height: 100vh;
    /* ← 高さを確保（重要） */
    overflow: visible;
  }

  #skills .skill-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    /* ← 各カードの高さを揃える */
    gap: 20px;
    min-height: 300px;
    /* ← 描画スペースを確保 */
  }

  #skills .skill-list-contents {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    flex: 0 1 calc(33.333% - 30px);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
    padding: 25px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.4, 1);
  }

  /* アニメーションで出現する状態 */
  #skills .skill-list-contents.visible {
    opacity: 1 !important;
    transform: translateY(0);
  }

  /* 画像を安全に描画する設定 */
  #skills img {
    display: block;
    width: 60px;
    height: auto;
    max-width: 80px;
    object-fit: contain;
    opacity: 1 !important;
    transform: scale(1) !important;
  }

  /* テキストのフェード補正 */
  #skills h4,
  #skills p {
    opacity: 1 !important;
    transform: none !important;
    color: #222;
    z-index: 15;
  }

  /* デバッグ用（必要なら消してOK） */
  #skills::after {
    content: " ";
    display: block;
    height: 1px;
  }


  /* ===============================
   Skillsセクション PC幅表示補強
   =============================== */

  /* .visible を強制的に最優先にする */
  #skills .skill-list-contents.visible,
  #skills .skill-list-contents.visible * {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }

  /* 768px以上でも常にflex配置で可視化 */
  @media (min-width: 768px) {
    #skills .skill-list {
      display: flex !important;
      flex-wrap: wrap !important;
      justify-content: center !important;
      align-items: center !important;
      gap: 20px !important;
    }

    #skills .skill-list-contents {
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      background: #fff !important;
      box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1) !important;
    }
  }

}

/* ===============================
   Skillsセクション 最終安定バージョン
   =============================== */

/* セクション本体 */
#skills {
  position: relative;
  z-index: 10;
  background: #f8fafc;
  padding: 60px 0;
  min-height: 100vh;
  overflow: visible;
}

/* スキルリスト（PCでも確実に表示） */
#skills .skill-list {

  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 20px !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* スキルカード */
#skills .skill-list-contents {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  flex: 0 1 calc(33.333% - 30px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
  padding: 25px;
  min-height: 250px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.4, 1);
  visibility: visible;
}

/* 表示アニメーション */
#skills .skill-list-contents.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* PC幅専用補強（displayリセット） */
@media (min-width: 768px) {
  #skills .skill-list,
  #skills .skill-list-contents {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}



  /* ===== Lightbox：PC幅用 ===== */
@media (min-width: 769px) {
  /* モーダル背景 */
  .modal {
    display: none;
    position: fixed;
    z-index: 4000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-top: 0;
    background-color: rgba(0, 0, 0, 0.9); /* PCではやや濃く */
    overflow: hidden; /* 背景スクロールを防止 */
  }

  /* 中央配置＋最大サイズ調整 */
  .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    max-width: 60vw;  /* 横幅を抑えて見やすく */
    max-height: 85vh; /* 縦も制限 */
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, opacity 0.3s ease;
    animation: zoomInPC 0.35s ease;
  }

  /* 閉じるボタン */
  .close {
    position: absolute;
    top: 40px;
    right: 60px;
    font-size: 42px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
  }

  .close:hover {
    color: #aaa;
    transform: scale(1.1);
  }

  /* PC専用ズームアニメーション */
  @keyframes zoomInPC {
    from {
      transform: translate(-50%, -50%) scale(0.8);
      opacity: 0;
    }
    to {
      transform: translate(-50%, -50%) scale(1);
      opacity: 1;
    }
  }
}



/* .pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  padding-top: 20px;
}
.pager li {
  margin: 0 10px;
}
.pager li a {
  display: block;
  padding: 9px 14px;
  background: #F9EDE1;
  border-radius: 5px;
  color: #200000;
}
.pager .current a {
  background: #A06020;
  color: #fff;
}
.pager .current a:hover {
  opacity: 1;
  cursor: default;
} */