/*
Theme Name: Yuko portfolio
Theme URI: https://example.com/
Author: Yuko
Description: This is a custom theme for my portfolio site.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* =========================
   カラー変数（全体の色管理用）
========================= */
:root {
  --background-color: #fdfdfd; /* ページ全体の背景色はそのまま */
  --header-bg: #fdfdfd; /* ヘッダー背景：白に近いグレー */
  --text-color: #333333; /* 本文文字色はそのまま */
  --accent-color: #111111; /* アクセント：落ち着いた濃いグレー */
  --accent-hover: #111111; /* ホバー時のアクセント：ほぼ黒 */
  --button-bg: #111111; /* ボタン：濃いグレー */
  --button-hover: #444444; /* ボタンホバー：さらに濃いグレー */
  --footer-bg: #222222; /* フッター背景：濃いグレー */
  --footer-text: #ffffff; /* フッター文字色はそのまま */
}

/* =========================
   全体のリセット
========================= */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: "Noto Sans JP", sans-serif; /* 好きなフォントに調整可能 */
}

/* section {
  padding: 60px 20px;
} */

/* =========================
   ボタン
========================= */

.btn {
  position: relative;
  display: inline-block;
  padding: 15px 30px;
  color: #111; /* 初期文字色 */
  background: #fff; /* 初期背景色 */
  border: #111 1px solid;
  overflow: hidden;
  text-decoration: none;
  z-index: 1;
  transition: color 0.3s ease;
}

.btn:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background: #111; /* ホバー時に広がる色 */
  z-index: -1;
  transition: all 0.5s ease;
}

.btn:hover {
  color: #fff;
}

.btn:hover:after {
  left: 0;
  width: 100%; /* ホバーで背景が右→左に広がる */
}

.btn:active {
  top: 2px; /* 押したときに少し下がる */
}

/* ボタンここまで */


/* =========================
   スクロールでふんわり表示
========================= */
/* ふわっと出したい要素に付ける共通クラス */
.fade-target {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* 画面に入ったら付与されるクラス */
.scroll-fade {
  opacity: 1;
  transform: translateY(0);
}


/* =========================
   トップページ
========================= */

/* =========================
   ヘッダー
========================= */
header {
  width: 100%;
  background-color: var(--header-bg);
  padding: 10px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-logo img {
  height: 50px;
}

.header-menu {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* メニューリンクに下線アニメーションを適用 */
.header-menu li a {
  position: relative;
  text-decoration: none;
  color: var(--text-color);
  font-weight: bold;
  font-size: 16px;
  padding-bottom: 3px; /* 下線との間隔 */
  background-image: linear-gradient(#000, #000);
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: 0 1px;
  transition: background-size 0.3s, background-position 0.3s;
}

.header-menu li a:hover {
  background-position: bottom left;
  background-size: 100% 1px;
}




/* =========================
  メインビジュアルセクション
========================= */
#main-visual {
  position: relative;
  width: 100%;
  max-width: none;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

/* 画像 */
.mainvisual-image {
  width: 100%;
  display: block;
  opacity: 0;
  filter: blur(15px);
  transform: scale(1.05);
  transition: opacity 1.5s ease-out, filter 1.5s ease-out,
    transform 1.5s ease-out;
}

/* JSで body.loaded が付いたら画像フェードイン */
body.loaded .mainvisual-image {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

/* 文字 */
.mainvisual-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 20px);
  color: #f9f9f9;
  font-size: 80px;
  font-weight: bold;
  text-align: center;
  opacity: 0;
  z-index: 10;
  filter: blur(8px); /*文字のにじみの強さ*/
  animation: floatIn 1.5s ease-out forwards;
  animation-delay: 0.3s; /* ほぼ同時に表示 */
}

/* 文字アニメーション */
@keyframes floatIn {
  0% {
    opacity: 0;
    transform: translate(-50%, 20px);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%);
    filter: blur(0);
  }
}

/* =========================
   WORKSセクション
========================= */
#works {
  display: flex;
  flex-direction: column;
  gap: 100px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}

/* WORKS見出しh2の装飾ここから */
#works > h2 {
  position: relative; /* 横線をh2に対して絶対配置するため */
  display: inline-block; /* 横線とタイトルを横並びの感覚で */
  text-align: center;
  font-size: 48px;
  color: var(--accent-color);
  margin-bottom: 10px;
  font-weight: bold;
  padding: 0 80px; /* 横線と文字の間隔 */
}

#works > h2:before,
#works > h2:after {
  content: "";
  position: absolute;
  top: 50%; /* タイトル中央に線を合わせる */
  width: 50px; /* 線の長さ */
  height: 2px; /* 線の太さ */
  background-color: var(--accent-color); /* 線の色 */
}

#works > h2:before {
  left: 0;
}

#works > h2:after {
  right: 0;
}
/* WORKS見出しのh2の装飾ここまで
　 文字の横に-を出すだけなのに長いね */

.work-item {
  display: flex;
  align-items: center;
  gap: 40px;
}

#works .work-text h3 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--accent-color);
}

.work-left .work-text {
  order: 1;
}
.work-left .work-image {
  order: 2;
}
.work-right .work-text {
  order: 2;
}
.work-right .work-image {
  order: 1;
}

/* .work-text, .work-image { flex: 1; /* 横幅を均等に */ max-width 50%; /* 最大幅を半分に制限 */ */ 
.work-image {
   flex: 0 0 50%; /* 幅固定50%にして縮みすぎないように */ 
  } 
.work-text { 
  flex: 1; /* テキストは残りの幅を使う */
  text-align: center; 
}

/* WORKSセクション画像 */
.work-image {
  width: 800px;
  height: 450px;
  overflow: hidden;
  transition: box-shadow 0.5s ease, transform 0.5s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* 通常時の柔らかい影 */
}

/* 画像 */
.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease-out, filter 0.5s ease-out;
  display: block;
}

/* ホバー時 */
.work-image:hover img {
  transform: scale(1.05); /* ズーム感 */
  filter: brightness(1.05); /* 明るく */
}

/* ホバーで親要素にも光の影を追加 */
.work-image:hover {
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.4),
    /* 上から光っぽく */ 0 8px 20px rgba(0, 0, 0, 0.1); /* 元の影も残す */
}

/* =========================
   ABOUTセクション
========================= */
/* ABOUTのh2の装飾ここから */
#about {
  text-align: center;
}

#about h2 {
  position: relative;
  display: inline-block;
  font-size: 48px;
  color: var(--accent-color);
  margin-bottom: 40px;
  font-weight: bold;
  padding: 0 80px;
}

#about h2:before,
#about h2:after {
  content: "";
  position: absolute;
  top: 50%;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
}

#about h2:before {
  left: 0;
}
#about h2:after {
  right: 0;
}
/* ABOUT見出しのh2の装飾ここまで
　 文字の横に-を出すだけなのに長いね */

#about .about-inner img {
  width: 800px; /* 横幅を調整 */
  height: auto; /* 縦横比を維持 */
  display: block;
  margin: 0 auto 20px; /* 中央寄せ＋下マージン */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* 通常時の柔らかい影 */
}

#about .about-inner p {
  text-align: center;
  max-width: 600px;
  margin: 30px auto;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-color);
}

/* =========================
   CONTACTセクション
========================= */
#contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px 20px;
  background-color: var(--background-color);
}

.contact-inner {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* CONTACT見出しh2の装飾ここから */
#contact > h2 {
  position: relative; /* 横線をh2に対して絶対配置するため */
  display: inline-block; /* 横線とタイトルを横並びの感覚で */
  text-align: center;
  font-size: 48px;
  color: var(--accent-color);
  margin-bottom: 20px;
  font-weight: bold;
  padding: 0 80px; /* 横線と文字の間隔 */
}

#contact > h2:before,
#contact > h2:after {
  content: "";
  position: absolute;
  top: 50%; /* タイトル中央に線を合わせる */
  width: 50px; /* 線の長さ */
  height: 2px; /* 線の太さ */
  background-color: var(--accent-color); /* 線の色 */
}

#contact > h2:before {
  left: 0;
}

#contact > h2:after {
  right: 0;
}
/* CONTACT見出しのh2の装飾ここまで
　 文字の横に-を出すだけなのに長いね */

.contact-inner label {
  display: block;
  text-align: left;
  margin-bottom: 5px;
  font-weight: bold;
}

.contact-inner input[type="text"],
.contact-inner input[type="email"],
.contact-inner textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
}

/* Contact Form 7 送信ボタン用 */
.contact-inner input[type="submit"] {
  display: block;
  text-align: center;
  vertical-align: middle;
  width: 200px;
  margin: 20px auto 0;
  padding: 1rem 4rem;
  font-weight: bold;
  font-size: 16px;
  border: 2px solid #111;
  background: #111; /* 背景色 */
  color: #fff; /* 文字色 */
  cursor: pointer;
  transition: 0.5s; /* ホバーの滑らかさ */
}

/* ホバー時に揺れる */
.contact-inner input[type="submit"]:hover {
  animation: move_btn 0.6s infinite; /* ホバー時だけアニメーション */
}

/* 揺れるアニメーション */
@keyframes move_btn {
  0% {
    transform: translate(0px, 0px);
  }
  50% {
    transform: translate(0px, -4px);
  }
  100% {
    transform: translate(0px, 0px);
  }
}

.required-form {
  text-align: right;
}

html {
  scroll-behavior: smooth;
}

.form-note {
  text-align: center;
  max-width: 600px;
  margin: 10px auto 0;
}

/* =========================
   フッター
========================= */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 5px 0;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================
   以下は固定ページのcss
========================= */
/* =========================
   WORKS一覧（page-works-page.php)ページここから
========================= */
#works-archive {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}

/* WORKS見出しh1の装飾 */
#works-archive > h1 {
  position: relative; /* 横線を h1 に対して絶対配置 */
  display: block; /* 横線と文字を横並びの感覚で */
  text-align: center;
  font-size: 48px;
  color: var(--accent-color);
  margin-bottom: 30px;
  font-weight: bold;
  padding: 0 80px; /* 横線と文字の間隔 */
  margin-inline: auto;
  width: fit-content;
}

.works-subtitle {
  font-size: 20px;
  color: #111;
  text-align: center;
  margin-bottom: 40px;
}

#works-archive > h1:before,
#works-archive > h1:after {
  content: "";
  position: absolute;
  top: 50%; /* タイトル中央に線を合わせる */
  width: 50px; /* 線の長さ */
  height: 2px; /* 線の太さ */
  background-color: var(--accent-color); /* 線の色 */
}

#works-archive > h1:before {
  left: 0;
}

#works-archive > h1:after {
  right: 0;
}

/* カードのグリッド（横2枚固定） */
.works-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 横2枚 */
  row-gap: 64px; /* 縦方向 */
  column-gap: 40px; /* 横方向 */
}

/* スマホ対応（1列に折り返す） */
@media (max-width: 768px) {
  .works-list {
    grid-template-columns: 1fr; /* 1列表示 */
    gap: 20px;
  }
}

/* 各カード */
.work-card {
  background-color: #fff;
  border: 1px solid #ddd;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 初期状態：透明＆少し下にずらす */
.work-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* body.loaded がついたらフェードイン */
body.loaded .work-card {
  opacity: 1;
  transform: translateY(0);
}


.work-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.work-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

/* サムネイル */
.work-card img {
  width: 100%;
  height: 300px; /* 画像を少し大きめに */
  object-fit: cover;
  display: block;
}

/* タイトル */
.work-card h2 {
  font-size: 22px; /* 少し大きめ */
  margin: 20px 16px 12px;
  text-align: center;
}

/* 抜粋 */
.work-card p {
  font-size: 16px; /* 読みやすく */
  color: #111;
  margin: 0 16px 20px;
  line-height: 1.6;
  text-align: center;
}

/* スマホ用調整 */
@media (max-width: 768px) {
  #works-archive h1 {
    font-size: 28px;
  }
  .work-card h2 {
    font-size: 20px;
  }
  .work-card p {
    font-size: 14px;
  }
}

/* =========================
   WORKS紹介ページ（single-works.php)ページここから
========================= */
.site-main {
  max-width: 1200px;
  margin: 20px auto;
  padding: px 20px;
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  line-height: 1.7;
}

/* 作品タイトルを横線付きに */
.site-main h1 {
  position: relative; /* 横線を h1 に対して絶対配置 */
  display: block; /* 横線と文字を横並びの感覚で */
  text-align: center;
  font-size: 48px;
  color: var(--accent-color);
  margin-bottom: 30px;
  font-weight: bold;
  padding: 0 80px; /* 横線と文字の間隔 */
  margin-inline: auto;
  width: fit-content;
}

.site-main h1:before,
.site-main h1:after {
  content: "";
  position: absolute;
  top: 50%;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
}

.site-main h1:before {
  left: 0;
}
.site-main h1:after {
  right: 0;
}

/* アイキャッチ画像 */
.work-featured-image {
  margin-bottom: 30px;
  text-align: center;
}

.work-featured-image img {
  max-width: 1000px;
  width: 100%;
  display: block;
  margin: 0 auto;
  height: auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);

  /* フェードイン用 */
  opacity: 0;
  filter: blur(5px);
  transform: scale(1.05);
  transition: opacity 0.6s ease-out, filter 0.6s ease-out,
    transform 0.6s ease-out;
}

/* body.loaded が付いたらフェードイン */
body.loaded .work-featured-image img {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.work-intro {
  text-align: center;
  font-weight: bold;
  font-size: 20px;
}

/* サイトリンクボタン */
.work-site-link {
  text-align: center;
  margin: 30px 0;
}

/* 作品詳細（ACFフィールド・ラベル左・値右） */
.work-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  flex-direction: column;
  margin-top: 60px;
}

/* カード全体 */
.acf-row {
  display: flex;
  flex-direction: column; /* 上下に並べる */
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  gap: 12px; /* アイコン+ラベルと本文の間隔 */
}

.icon-label-wrapper {
  display: flex;
  align-items: center; /* アイコンとラベルを中央揃え */
  gap: 16px;
}

.card-icon {
  position: static; /* 左上固定を解除 */
  width: 100px;
  height: 100px;
}

.acf-row-label {
  margin: 0; /* margin-topは不要 */
  font-weight: 600;
  font-size: 30px;
  border-bottom: #000 solid 3px;
}

.acf-row-value {
  line-height: 1.6;
  padding: 0; /* 上下の余白調整はacf-rowのgapでOK */
}

/* 箇条書きをチェックマークに */
.acf-row-value ul {
  list-style: none;
  padding-left: 0;
}
.acf-row-value ul li::before {
  content: "✔"; /* チェックマーク */
  display: inline-block;
  width: 1em;
  margin-right: 8px;
  flex-shrink: 0; /* チェックマークを縮めない */
  color: var(--accent-color);
}

.acf-row-value ul li {
  display: flex; /* 行内でチェックマークとテキストを横並びにする */
  align-items: flex-start;
  gap: 8px; /* チェックマークとテキストの間隔 */
  word-break: normal; /* 単語途中での折り返しを防ぐ */
}

/* 改行文字に余白をつける */
.acf-row-value br {
  display: block;
  margin-bottom: 0.2em; /* 少し狭め */
}

/* あとがきだけ横幅を広く */
.acf-row-wide {
  grid-column: 1 / -1; /* グリッド全体に広げる場合 */
  
}


/* 前後の作品ナビゲーション */
.work-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
}

.work-navigation a {
  text-decoration: none;
  color: var(--accent-color);
  font-weight: bold;
  transition: color 0.3s ease;
  border-bottom: 2px solid transparent; /* ホバー時用に透明線を追加 */
  transition: border-bottom 0.2s ease;
  font-size: 18px;
}

.work-navigation a:hover {
  color: #000;
  border-bottom-color: currentColor; /* ホバーで文字色に合わせて下線表示 */
}

/* スマホ対応 */
@media (max-width: 768px) {
  .site-main h1 {
    font-size: 36px;
    padding: 0 40px;
  }

  .work-content .acf-row {
    flex-direction: column;
    gap: 6px;
  }

  .work-content .acf-row-label {
    width: 100%;
  }

  .work-content .acf-row-value {
    font-size: 15px;
  }

  .work-navigation {
    flex-direction: column;
    gap: 20px;
  }

  .work-content {
    grid-template-columns: 1fr; /* 1列に変更 */
  }
}

/* =========================
   ABOUTページ
========================= */
/* 全体レイアウト */
.page-about {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: "Noto Sans JP", sans-serif;
  color: #222;
  line-height: 1.8;
}

/* プロフィール画像 */
.page-about .profile-image {
  text-align: center;
  margin-bottom: 20px;
}

/* フェードイン＆ぼかし用 */
.page-about .profile-image img {
  width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;

  /* 初期状態 */
  opacity: 0;
  filter: blur(15px);
  transform: scale(1.05);
  transition: opacity 1.5s ease-out, filter 1.5s ease-out, transform 0.4s ease-out;
}

/* body.loaded が付いたらフェードイン */
body.loaded .page-about .profile-image img {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}


/* 各セクション共通 */
.page-about > div {
  margin-bottom: 20px;
  /* border-top: 1px solid #000; */
  padding-top: 16px;
}

/* 見出し */
.page-about h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  text-transform: uppercase; /* 英字なら水平でかっこいい */
  letter-spacing: 2px;
  text-align: left; /* 左寄せで直線的に */
  position: relative;
}
.page-about h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: #000;
  margin-top: 8px; /* h2の下に水平線 */
}

/* イントロテキストを中央寄せ */
.page-about .intro-text p {
  text-align: center;
}

/* 本文 */
.page-about p {
  font-size: 1rem;
  
}

/* 強み・得意なこと セクション */
.strengths h2 {
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 32px;
}

/* 1つの強み */
.strength {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap; /* スマホで縦並びに */
}

/* 左側の見出し */
.strength-title {
  font-weight: 700;
  font-size: 25px;
  min-width: 180px; /* 左側幅固定 */
  border-left: 8px solid #000;
  padding-left: 12px;
}

/* 右側の文章 */
.strength-text {
  flex: 1;
  font-size: 1rem;
  line-height: 1.6;
}

/* レスポンシブ：スマホでは縦並びに */
@media screen and (max-width: 768px) {
  .strength {
    flex-direction: column;
  }
  .strength-title {
    border-left: none;
    padding-left: 0;
  }
}

/* スキルセクション */
/* 見出し（Webデザイン / 習得中のスキル）の四角 */
.skills li.skills-category {
  font-weight: 700;
  font-size: 18px;
  padding: 8px 16px; /* 内側の余白 */
  border: 2px solid #333; /* 枠線 */
  display: inline-block; /* 文字幅に合わせる */
  margin-bottom: 12px; /* 下に余白 */
  text-align: left;
  margin-top: 10px;
}

/* ul全体の設定 */
.page-about .skills ul {
  display: block; /* ブロック表示にして幅を親に合わせない */
  padding: 0;
  list-style: none;
}

/* li全体の設定 */
.page-about .skills li {
  font-size: 1rem;
  color: #000;
  margin-bottom: 24px; /* li間の余白 */
}

/* スキルタグ */
.skill-tag {
  background-color: #000; /* 黒背景 */
  color: #fff; /* 白文字 */
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block; /* タグ幅を文字幅に合わせる */
  margin-right: 6px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  text-align: left;
}

/* 画像を多用するセクション例（キャリアや目標に写真入れるとき用） */
.page-about .career,
.page-about .goal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}
.page-about .career img,
.page-about .goal img {
  width: 100%;
  height: auto;
  border: 2px solid #000;
}

/* 好きなことセクション */

.hobbies-section {
  margin-top: 32px;
}

.hobbies-section h2 {
  margin-bottom: 16px;
  font-size: 2rem;
}

.hobby-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.hobby-title {
  background-color: #fdfdfd;
  border: 1px solid #000;
  padding: 8px 12px;
  font-weight: bold;
  min-width: 100px; /* 左側の四角の幅 */
  text-align: center;
  margin-right: 12px;
}

.hobby-text {
  flex: 1; /* 右側が自動で残り幅 */
  /* 下線などスタイルを追加したいとき用 */
}

.hobby-gallery {
  display: flex;
  gap: 20px;
  margin-top: 5px;
  justify-content: center;
}

.hobby-photo img,
.hobby-placeholder {
  width: 300px;
  height: 300px;
  object-fit: cover;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 14px;
}

/* 資格セクション */
.certifications-cards {
  display: flex;
  flex-wrap: wrap; /* 幅が足りなくなると自動で改行 */
  gap: 16px; /* カード間の隙間 */
  margin-top: 12px;
  justify-content: center; /* 中央寄せ */
  padding-bottom: 30px;
}

.cert-card {
  background-color: #fdfdfd;
  border: 1px solid #000;
  padding: 12px 16px;
  flex: 0 1 calc(50% - 16px); /* 50%幅 - gap分で2列 */
  text-align: center;
  font-size: 14px;
  box-sizing: border-box; /* padding込みで幅を計算 */
}

.cert-divider {
  text-decoration: underline;
  text-decoration-color: #000;
  text-decoration-thickness: 1px; /* 線の太さ */
}
