/*
-------------------------------------------
CSS リセットとカスタムプロパティ (Variables)
-------------------------------------------
*/
:root {
  --color-bg-main: #ffffff;
  --color-primary: #2c3e50;
  --color-secondary: #bdc3c7;
  --color-accent: #007aff;
  --color-text-light: #f7f7f7;
  --color-text-dark: #333333;
  --color-grid: rgba(189, 195, 199, 0.2);
  --grid-size: 50px;
  --max-width: 1200px;
  --header-height: 80px;
  --content-width: 900px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-bg-main);
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* 共通セクションスタイル */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px 40px;
  position: relative;
  z-index: 5;
  background-color: rgba(255, 255, 255, 0.8);
}

.content-page-wrap {
  position: relative;
  min-height: calc(100vh - var(--header-height));
}

/* TOPセクション */
#top {
  background-color: rgba(255, 255, 255, 0.8);
  background-image: linear-gradient(to right, var(--color-grid) 1px, transparent 1px), linear-gradient(to bottom, var(--color-grid) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}

.section-title {
  font-size: 2.8rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 60px;
  border-bottom: 3px solid var(--color-accent);
  position: relative;
  z-index: 5;
  display: inline-block;
  padding-bottom: 10px;
}

/*
-------------------------------------------
ヘッダー（グローバルナビゲーション）
-------------------------------------------
*/
.header {
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
}

.logo {
  margin: 0;
  line-height: 0;
}

.logo a {
  font-weight: 700;
  color: var(--color-primary);
  height: 100%;
  display: block;
}

.logo img {
  height: 100%;
  max-height: 65px;
  width: auto;
  display: block;
  object-fit: contain;
  padding: 10px 0;
}

/* ナビゲーションメニュー */
.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-menu a {
  font-size: 1rem;
  color: var(--color-primary);
  padding: 5px 0;
  transition:
    color 0.3s,
    border-bottom 0.3s;
  border-bottom: 2px solid transparent;
  font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* ハンバーガーメニュー */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
  padding: 5px;
  z-index: 1010;
}

/*
-------------------------------------------
メインコンテンツ
-------------------------------------------
*/

/* ヒーローセクション: TOPセクションの背景とレイアウト */
#top {
  color: var(--color-primary);
  min-height: 100vh;
  padding-top: var(--header-height);
  padding-bottom: 0;
  padding-left: 40px;
  padding-right: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: none;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: left;
  padding-left: 0;
  position: relative;
}

#top h1 {
  font-size: 5rem;
  margin-bottom: 10px;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.2;
  letter-spacing: -1px;
}

#top p {
  font-size: 1.5rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-top: 20px;
  text-align: right;
  width: 100%;
}

.about-container {
  position: relative;
  z-index: 5;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.profile-photo-area {
  flex-shrink: 0;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.profile-photo-area .profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-text-content {
  flex-grow: 1;
  text-align: left;
}

.about-text-content h3 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
  padding-bottom: 5px;
}

.about-text-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.about-button-container {
  margin-top: 30px;
  text-align: center;
  display: block;
}

.skill-area h4 {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-top: 30px;
  margin-bottom: 15px;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.skill-item {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.3s;
}

/* CONTACTセクション */
#contact .content-placeholder {
  display: none;
}

.contact-area {
  max-width: 600px;
  margin: 0 auto;
  background-color: #f7f7f7;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.contact-message {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 30px;
  line-height: 1.8;
}

.contact-buttons-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1rem;
  min-width: 200px;
}

/* プライマリーボタン */
.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  background-color: var(--color-primary);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-weight: 600;
}

.primary-button::after {
  content: "";
  width: 1em;
  height: 1em;
  display: inline-block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: -0.15em;
  margin-left: 12px;
  transition: transform 0.3s ease;
  will-change: transform;
}

.primary-button:hover {
  background-color: var(--color-accent);
  transition: transform 0.3s ease;
}

.primary-button:hover::after {
  background-color: var(--color-accent);
  transform: translate(3px, -3px);
}

/* セカンダリーボタン */
.secondary-button {
  background-color: var(--color-bg-main);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.secondary-button:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

/*
-------------------------------------------
WORKSスタイル
-------------------------------------------
*/

.works-grid {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.work-card {
  background-color: #ffffff;
  border: 1px solid var(--color-secondary);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    opacity 0.5s ease-out,
    height 0.4s ease-in-out,
    margin 0.4s ease-in-out,
    padding 0.4s ease-in-out;
  text-align: center;
  opacity: 0;
}

.work-card.fade-in {
  opacity: 1;
}

.work-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.work-card.is-hidden {
  opacity: 0 !important;
  height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: none !important;
}

.work-card-link {
  display: block;
  color: var(--color-primary);
}

.work-image-container {
  background-color: var(--color-bg-main);
  border-bottom: 1px solid var(--color-secondary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-image-container .work-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

#works.section .work-image-container {
  height: 280px;
}

.content-papge-wrap #works.section .work-image-container {
  height: 200px;
}

#works.section .work-card .work-image-placeholder {
  height: 280px;
}

.content-page-wrap #works.section .work-card .work-image-placeholder {
  height: 200px;
}

.work-image-placeholder {
  background-color: var(--color-bg-main);
  border-bottom: 1px solid var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-secondary);
  font-weight: 600;
  overflow: hidden;
}

.work-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 枠いっぱいに綺麗に収める */
}

.work-content {
  padding: 20px 15px;
}

.work-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--color-primary);
}

.content-page-wrap .work-title {
  font-size: 1.2rem;
}

.work-category {
  font-size: 0.9rem;
  color: var(--color-accent);
  margin-bottom: 15px;
  display: block;
}

.detail-button {
  display: inline-block;
  background-color: var(--color-accent);
  color: #ffffff;
  padding: 10px 25px;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.detail-button:hover {
  background-color: #0056b3;
}

.content-page-wrap .detail-button {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/*
-------------------------------------------
WORKS一覧ページ専用スタイル (work.html固有)
-------------------------------------------
*/

/* フィルタリングエリア */
.filter-buttons {
  text-align: center;
  margin-bottom: 40px;
}

.filter-buttons button {
  background-color: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.3s,
    color 0.3s,
    transform 0.2s;
}

.filter-buttons button:hover {
  background-color: #a9b7c0;
  transform: translateY(-2px);
}

.filter-buttons button.active {
  background-color: var(--color-accent);
  color: var(--color-text-light);
  box-shadow: 0 2px 5px rgba(0, 122, 255, 0.4);
}

/*
-------------------------------------------
作品詳細ページ専用スタイル (detail.html固有)
-------------------------------------------
*/
.work-detail-container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px 0px 20px;
  z-index: 5;
  position: relative;
  text-align: center;
}

/* 戻るボタンのラッパー */
.back-to-list {
  text-align: left;
  margin-top: 60px;
  /* margin-bottom: 40px; */
  /* padding-top: 20px; */
}

.back-to-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-weight: 600;
  transition:
    color 0.3s,
    transform 0.3s;
}

.back-to-list a:hover {
  color: var(--color-accent);
  transform: translateX(-5px);
}

/* 詳細ページのメインタイトル */
.detail-title {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 10px;
  line-height: 1.2;
}

.detail-category {
  display: block;
  font-size: 1.1rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 80px;
}

/* メイン画像 */
.detail-main-image {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 2rem;
  overflow: hidden; /* はみ出しをカット */
  /* height: 400px; */
  /* background-color: var(--color-secondary); */
  margin-bottom: 80px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.8rem;
  font-weight: 700;
}

/* プロジェクトサマリーテーブル */
.detail-summary {
  text-align: left;
  margin-bottom: 80px;
  border: 1px solid var(--color-secondary);
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
}

.detail-summary table {
  width: 100%;
  border-collapse: collapse;
}

.detail-summary th,
.detail-summary td {
  padding: 15px;
  border-bottom: 1px solid var(--color-secondary);
}

.detail-summary th {
  width: 30%;
  background-color: #f7f7f7;
  color: var(--color-primary);
  text-align: left;
  font-weight: 600;
  border-right: 1px solid var(--color-secondary);
}

.detail-summary td {
  width: 70%;
  text-align: left;
}

.detail-summary tr:last-child th,
.detail-summary tr:last-child td {
  border-bottom: none;
}

/* 詳細コンテンツ */
.detail-content {
  text-align: left;
  margin-bottom: 60px;
}

.detail-content h3 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-top: 40px;
  margin-bottom: 20px;
  border-left: 5px solid var(--color-accent);
  padding-left: 15px;
}

.detail-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* 詳細コンテンツ内の画像 */
.detail-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 外部サイトへのリンクボタン */
.external-links {
  text-align: center;
  margin-top: 50px;
}

.external-links a {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 15px 40px;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 10px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.external-links a:hover {
  background-color: var(--color-accent);
  transform: translateY(-2px);
}

/* --- 作品詳細ページの画像スタイル --- */
.detail-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.detail-text-area {
  max-width: var(--content-width);
  margin: 6rem auto; /* 上下の余白を大幅に広げ、ゆとりを持たせる */
  padding: 0 1rem;
}

/* 各セクションのレイアウト */
.detail-text-area section {
  margin-bottom: 8rem;
  opacity: 0.9;
}

/* 見出し */
.detail-text-area h2 {
  text-align: left;
  font-size: 1.4rem;
  margin: 3rem 0 1.2rem;
  color: var(--color-primary);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-text-area h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--color-secondary);
  opacity: 0.3;
}

/* 本文テキスト：可読性と質感を両立 */
.detail-text-area p {
  margin-bottom: 2rem;
  color: var(--color-primary);
  font-weight: 300; /* 細めのウェイトで知的な印象に */
}

.process-list {
  list-style: none; /* 黒丸を消す */
  padding: 0; /* 左の余白をリセット */
  margin: 0;
}

.process-list li {
  position: relative;
  padding-left: 1.5rem; /* 行頭マーク用の余白 */
  line-height: 2; /* 他の段落(p)と高さを合わせる */
  margin-bottom: 0.8rem;
  color: var(--color-text-dark);
}

/* 行頭に控えめなアクセント（細い横棒）を入れ、リストとしての認識性を保つ */
.process-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1em;
  width: 0.6rem;
  height: 1px;
  background-color: var(--color-secondary); /* 目立ちすぎないグレー */
}

.duplex-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.duplex-links .primary-button {
  min-width: 250px;
  text-align: center;
}

/*
-------------------------------------------
フッター
-------------------------------------------
*/
.footer {
  background-color: var(--color-primary);
  color: var(--color-secondary);
  padding: 50px 40px;
  text-align: center;
  font-size: 0.9rem;
  border-top: 5px solid var(--color-accent);
  position: relative;
  z-index: 5;
}

/* PC: 左右分割のための新しいラッパー */
.footer-main-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(189, 195, 199, 0.2);
  margin-bottom: 20px;
}

/* ロゴ画像の調整 */
.footer-logo-link {
  display: block;
}

.footer-logo-img {
  height: 100%;
  max-height: 65px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ナビゲーションの調整 */
.footer-nav {
  margin-bottom: 0;
}

.footer-nav-list {
  display: flex;
  gap: 30px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--color-secondary);
  font-size: 1rem;
  transition: color 0.3s;
  padding: 5px 10px;
}

.footer-nav a:hover {
  color: #ffffff;
}

/* コピーライトの調整 */
.footer-copyright {
  margin: 5px 0 0;
  font-size: 0.85rem;
  color: var(--color-secondary);
}

/*
-------------------------------------------
上に戻るボタン (Scroll to Top Button)
-------------------------------------------
*/
#scrollToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border-radius: 50%;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.3s,
    visibility 0.3s,
    transform 0.3s;
  z-index: 990;
}

#scrollToTop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scrollToTop:hover {
  background-color: var(--color-accent);
  transform: translateY(-2px);
}

/*
-------------------------------------------
バブルアニメーション (共通)
-------------------------------------------
*/
#bubble-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  bottom: 0;
  height: auto;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

/* work.html, detail.html のバブルコンテナの調整 */
.content-page-wrap #bubble-container {
  /* height: 100%;
  bottom: unset; */
  position: fixed; /* 画面に固定 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* 背景の一番後ろ */
  pointer-events: none;
}

.bubble {
  position: absolute;
  bottom: -100px;
  border-radius: 50%;
  opacity: 0;
  animation: bubble-up linear infinite;
}

@keyframes bubble-up {
  0% {
    transform: translateY(0) scale(0.5);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-200vh) scale(1.2);
    opacity: 0;
  }
}

.about-section-wrapper {
  /* padding-bottom: 60px; */
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.profile-section-content .concept-text {
  line-height: 1.7;
  margin-bottom: 3rem;
}

.profile-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.profile-item {
  flex-basis: calc(50% - 10px);
  padding: 20px;
  border: 1px solid var(--color-grid);
  background-color: #ffffff;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.profile-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.profile-item h3 {
  font-size: 1.05rem;
  color: #3498db;
  border-bottom: 1px solid var(--color-secondary);
  padding-bottom: 5px;
  margin-bottom: 0.8rem;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.profile-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.profile-item .concept-text {
  line-height: 1.7;
  margin-bottom: 0;
}

.profile-item .concept-text p {
  font-size: 0.95rem;
  text-align: justify;
}

.concept-logo-img {
  display: block;
  margin: 0 auto;
  max-width: 750px;
  width: 90%;
  height: auto;
}

/* --- スキルグラフ内のアイコン画像のレスポンシブ対応 --- */
.pb-rating-graph__item1 img {
  max-width: 100%; /* 親要素の div を超えないようにする */
  height: auto; /* 縦横比を維持 */
}

/* ------------------------------------------- */
/* サイトコンセプトエリア */
/* ------------------------------------------- */

.content-page-wrap #about {
  /* background-color: transparent; */
  /* padding-top: 5rem; */
  padding-bottom: 5rem;
}

/* サイトコンセプトエリア (カード) */
.site-concept-area {
  background-color: var(--color-bg-main);
  max-width: var(--content-width);
  /* margin: 0 auto 5rem; */
  padding: 3rem 4rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.site-concept-title {
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  /* border-bottom: 3px solid var(--color-accent); */
  padding-bottom: 0.75rem;
  display: inline-block;
}

.site-concept-text {
  line-height: 2;
  color: var(--color-text-dark);
  font-size: 1rem;
  margin-bottom: 3rem;
}

.concept-text {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
  color: var(--color-text-dark);
}

.concept-text p {
  margin-bottom: 1.5rem;
}

.concept-text p:last-child {
  margin-bottom: 0;
}

.section-subtitle {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 5rem;
  margin-bottom: 3rem;
  padding-top: 0;
}

/*
-------------------------------------------
ABOUTページ: HISTORYセクションのスタイル (タイムライン)
-------------------------------------------
*/

/* セクション全体のサブタイトルスタイル */
.section-subtitle {
  text-align: center;
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-bottom: 40px;
}
.section-subtitle span {
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 3px;
  letter-spacing: 0.05em;
}

/* タイムラインのメイン構造 */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 20px;
  overflow-x: hidden;
}

/* タイムラインの中央線（縦線） */
.timeline::after {
  content: "";
  position: absolute;
  width: 4px;
  background-color: #95a5a6;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  z-index: 1;
}

/* 各タイムラインアイテムの配置 */
.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  z-index: 2;
}

/* 左側のアイテム (中央線の左側) */
.timeline-left {
  left: 0;
}

/* 右側のアイテム (中央線の右側) */
.timeline-right {
  left: 50%;
}

/* 各アイテムのコンテンツボックス */
.timeline-content {
  padding: 20px 30px;
  background-color: var(--color-bg-main);
  position: relative;
  border: 1px solid var(--color-grid);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* 丸いアイコン（点） */
.timeline-item::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  /* background-color: var(--color-primary); */
  background-color: var(--color-accent);
  border: 3px solid #ffffff;
  top: 31px;
  border-radius: 50%;
  z-index: 10;
}

/* 左側アイテムの丸いアイコン位置 */
.timeline-left::after {
  right: -10.5px;
}

/* 右側アイテムの丸いアイコン位置 */
.timeline-right::after {
  left: -10.5px;
}

/* 左側アイテムの横線（ブリッジ） */
.timeline-left .timeline-content::before {
  content: " ";
  height: 2px;
  position: absolute;
  top: 29px;
  width: 40px;
  z-index: 5;
  right: -40px;
  background-color: var(--color-accent);
  border: none;
}

/* 右側アイテムの横線（ブリッジ） */
.timeline-right .timeline-content::before {
  content: " ";
  height: 2px;
  position: absolute;
  top: 29px;
  width: 40px;
  z-index: 5;
  left: -40px;
  background-color: var(--color-accent);
  border: none;
}

/* 見出しのスタイル調整 */
.timeline-content h3 {
  font-size: 1.15rem;
  color: var(--color-text-dark);
  margin-bottom: 10px;
  font-weight: bold;
}

.timeline-content p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ------------------------------------------- */
/* 経験・スキルセクション */
/* ------------------------------------------- */

/* 評価グラフ (pb-rating-graph) */
.pb-rating-graph {
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.07);
  max-width: 850px;
  margin: 0 auto 2em !important;
  padding: 2.5em 2em !important;
  color: var(--color-text-dark);
  background: #fafafa;
}
.pb-rating-graph ul {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}
.pb-rating-graph ul li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.pb-rating-graph ul li:before {
  content: unset !important;
}
.pb-rating-graph__label {
  background: #71828a; /* Grayish Blue - Fixed value for a label */
  color: var(--color-text-light);
  display: inline-block;
  padding: 6px 15px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
}
.pb-rating-graph__wrap {
  display: flex;
  margin: 20px 0;
  align-items: center;
}
.pb-rating-graph li:last-child .pb-rating-graph__wrap {
  margin: 20px 0 0;
}
.pb-rating-graph__axis {
  width: 70%;
  margin-top: 0;
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-grow: 1;
  height: 50px;
  align-items: flex-start;
}
.pb-rating-graph__axis:before {
  content: "";
  display: inline-block;
  height: 5px;
  background: var(--color-secondary);
  width: 100%;
  position: absolute;
  top: 25px;
  transform: translateY(-50%);
  border-radius: 2.5px;
}
.pb-rating-graph__basis {
  width: 15%;
  color: #71828a;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
}
.pb-rating-graph__basis-inner {
  display: inline-block;
  text-align: left;
}
.pb-rating-graph__wrap .pb-rating-graph__basis:first-of-type {
  text-align: right;
  padding-right: 15px;
}
.pb-rating-graph__wrap .pb-rating-graph__basis:last-of-type {
  text-align: left;
  padding-left: 15px;
}
.pb-rating-graph__scale {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  width: 20px;
  position: relative;
  margin-top: 15px !important;
}
.pb-rating-graph__scale:before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-secondary);
  margin-bottom: 5px;
}
.pb-rating-graph__axis:after,
.pb-rating-graph__scale:after {
  content: unset !important;
}
.pb-rating-graph .pb-rating-graph__scale .pb-rating-graph__item {
  width: 42px;
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #777;
  text-align: center;
  padding-top: 0;
  margin-top: 0;
}

.pb-rating-graph__scale[data-check="true"]:before {
  background-color: var(--color-accent);
}
.pb-rating-graph__scale[data-check="true"] .pb-rating-graph__item {
  color: var(--color-accent);
}

.pb-rating-graph__icon {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.pb-rating-graph__item1 {
  flex-shrink: 0;
  margin-right: 20px;
}

.pb-rating-graph__item2 {
  flex-grow: 1;
  margin-top: 0;
}

.tx-r {
  text-align: right;
}
.mt20 {
  margin-top: 20px;
}
.ft-s {
  font-size: 0.75em;
  color: #888;
}

/* Skill Summaryセクションのスタイル */
.skill-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.skill-summary-item {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.skill-summary-item:hover {
  transform: translateY(-5px);
}

.skill-summary-item .icon {
  font-size: 3em;
  color: var(--color-accent);
  margin-bottom: 15px;
}

.skill-summary-item h3 {
  margin-top: 0;
  font-size: 1.4em;
  color: var(--color-primary);
}

.skill-summary-item p {
  font-size: 0.9em;
  color: #666;
}

/* ------------------------------------------- */
/* STRENGTHS
/* ------------------------------------------- */

.strengths-list-container {
  max-width: var(--content-width);
  margin: 0 auto;
}

.strengths-item {
  background-color: var(--color-bg-main);
  border: 1px solid var(--color-grid);
  padding: 2rem 2rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.strengths-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.strengths-text {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-text-dark);
  line-height: 1.8;
  margin: 0;
  text-align: center;
}

/* 強調文字 */
.strengths-text strong {
  font-weight: 700;
  /* 強調色をアクセントカラーからメインカラーに戻し、落ち着いたトーンに */
  color: var(--color-primary);
}

/*
-------------------------------------------
レスポンシブ：タブレット (max-width: 1024px)
-------------------------------------------
*/

@media screen and (max-width: 1024px) {
  .section {
    padding: 80px 30px;
  }

  .nav-container {
    padding: 0 30px;
  }

  /* index.html 固有 */
  #top {
    min-height: 80vh;
    --grid-size: 40px;
  }

  .hero-content {
    padding-left: 60px;
  }

  #top h1 {
    font-size: 4rem;
  }

  #top p {
    font-size: 1.2rem;
    text-align: right;
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  #scrollToTop {
    width: 45px;
    height: 45px;
    bottom: 25px;
    right: 25px;
    font-size: 1.3rem;
  }

  /* work.html, detail.html 共通 */
  .content-page-wrap #works.section .work-image-placeholder,
  .content-page-wrap #works.section .work-image-container {
    height: 180px;
  }

  /* detail.html 固有 */
  .work-detail-container {
    max-width: var(--content-width) !important;
    margin: 0 auto;
    padding: 0;
    background-color: rgba(255, 255, 255, 0.7); /* 白背景を70%透過 */
    backdrop-filter: blur(5px); /* 背景を少しぼかして透明感を演出 */
    border-radius: 15px;
    position: relative;
    z-index: 5; /* バブルより上に表示 */
  }

  .detail-title {
    font-size: 2.5rem;
  }

  .detail-main-image {
    height: 300px;
  }

  .skill-summary-grid {
    grid-template-columns: repeat(2, 1fr); /* タブレットで2列 */
    gap: 20px;
  }
}

/*
-------------------------------------------
レスポンシブ：スマートフォン (max-width: 767px)
-------------------------------------------
*/

@media screen and (max-width: 767px) {
  :root {
    --header-height: 60px;
  }

  .section {
    padding: 60px 20px;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .nav-container {
    padding: 0 20px;
  }

  .menu-toggle {
    display: block;
    font-size: 1.5rem;
    z-index: 1001;
    padding: 10px;
    line-height: 1;
    color: var(--color-primary);
  }

  .menu-toggle.is-active {
    color: var(--color-text-light); /* 白 */
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    height: 100%;
    background-color: var(--color-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    box-shadow: none;
    display: flex;
  }

  .nav-menu.is-open {
    transform: translateX(0);
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.15);
  }

  .nav-menu a {
    color: var(--color-text-light);
    font-size: 1.5rem;
    padding: 10px 0;
    width: 80%;
    text-align: center;
    border-bottom: 2px solid var(--color-secondary);
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
  }

  #top {
    min-height: 70vh;
    --grid-size: 30px;
    justify-content: center;
  }

  .hero-content {
    padding-left: 20px;
    padding-right: 20px;
    text-align: left;
    max-width: 100%;
  }

  #top h1 {
    font-size: 2.5rem;
    text-align: left;
  }

  #top p {
    font-size: 1rem;
    text-align: left;
    margin-top: 10px;
  }

  .about-container {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .filter-buttons button {
    padding: 8px 15px;
    font-size: 0.9rem;
  }

  .detail-title {
    font-size: 1.8rem;
  }

  .detail-category {
    font-size: 0.9rem;
    margin-bottom: 40px;
  }

  .detail-main-image {
    height: 200px;
    font-size: 1.2rem;
    margin-bottom: 40px;
  }

  .detail-img {
    border-radius: 8px;
  }

  .detail-summary {
    margin-bottom: 40px;
  }

  .detail-summary th,
  .detail-summary td {
    display: block;
    width: 100%;
  }

  .detail-summary th,
  .detail-summary tr:last-child th {
    background-color: #f7f7f7;
    border-right: none;
    border-bottom: 1px solid #ddd;
    font-size: 0.9rem;
    text-align: left;
    padding: 0.8rem;
  }

  .detail-summary td,
  .detail-summary tr:last-child td {
    padding-top: 5px;
    border-bottom: 1px solid #ddd;
    font-size: 1rem;
  }

  .detail-content h3 {
    font-size: 1.5rem;
  }

  .detail-content p {
    font-size: 1rem;
  }

  .back-to-list {
    margin-top: 40px;
  }

  .external-links a {
    padding: 10px 20px;
    font-size: 1rem;
    margin: 5px 0;
    display: block;
  }

  .contact-area {
    padding: 30px 20px;
  }
  .contact-buttons-container {
    flex-direction: column;
    gap: 15px;
  }
  .contact-button {
    width: 100%;
    min-width: unset;
  }

  .duplex-links {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .duplex-links .primary-button {
    width: 100%;
    max-width: 300px;
  }

  .detail-text-area {
    max-width: var(--content-width);
    margin: 3rem auto;
    line-height: 1.8;
    color: var(--color-text-dark);
  }

  .detail-text-area section {
    margin-bottom: 4rem;
  }

  .detail-text-area h2 {
    font-size: 1.5rem;
    /* color: var(--color-primary); */
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
  }

  .detail-text-area p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    text-align: justify;
  }

  .contact-button {
    width: 100%;
    text-align: center;
  }

  .primary-button {
    justify-content: center;
  }

  .footer-main-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 30px;
  }

  .footer-logo-link {
    margin-bottom: 20px;
  }

  .footer-logo-img {
    height: 35px;
    margin: 0 auto;
  }

  .footer-nav-list {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  #scrollToTop {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
    font-size: 1.2rem;
  }

  .logo img {
    max-height: 40px;
    padding: 5px 0;
  }

  .profile-grid {
    gap: 15px;
  }
  .profile-item {
    flex-basis: 100%;
  }

  .content-page-wrap #about {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  /*  */
  .site-concept-area {
    padding: 2rem 2rem;
    /* margin-bottom: 3rem; */
    border-radius: 8px;
  }

  .site-concept-title {
    font-size: 1.4rem;
    padding-bottom: 0.5rem;
  }

  .section-subtitle {
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
  }

  /* タイムライン */
  .timeline::after {
    left: 20px;
  }

  .timeline-item {
    padding: 10px 10px 10px 45px;
    width: 100%;
    left: 0;
  }

  .timeline-item::after {
    left: 17.5px;
    right: auto;
  }

  .timeline-item .timeline-content::before {
    display: none;
  }

  /* 評価グラフ */
  .pb-rating-graph {
    padding: 1.5em 1em !important;
  }

  .pb-rating-graph__icon {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .pb-rating-graph__item1 {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .pb-rating-graph__item2 {
    text-align: left;
  }

  .pb-rating-graph__wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .pb-rating-graph__basis {
    display: none;
  }

  .pb-rating-graph__axis {
    width: 100%;
    margin-top: 0;
  }

  .pb-rating-graph__scale {
    margin-top: 15px !important;
  }

  .skill-summary-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  /* 強み */
  .strengths-item {
    padding: 1.25rem 1.5rem;
    margin-bottom: 20px;
  }

  .strengths-text {
    font-size: 1rem;
  }
}
