@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,200&display=swap');

@font-face {
    font-family: 'jost';
    src: url('https://kokyujene.super-hiko14.com/fonts/Jost-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'jost';
    src: url('https://kokyujene.super-hiko14.com/fonts/Jost.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'zenkaku';
    src: url('https://kokyujene.super-hiko14.com/fonts/zenkaku.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'zenkaku';
    src: url('https://kokyujene.super-hiko14.com/fonts/zenkaku-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

* {
  font-family: 'jost', 'zenkaku', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  background-color: #fff;
  color: #000;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-text-size-adjust: 100%;
}

a {
  text-decoration: none;
  color: inherit;
  -webkit-touch-callout: none;
}

/* Dark mode */
html[data-theme="dark"] body {
  background-color: #080808;
  color: #d0d0d0;
}

html[data-theme="dark"] .sub-title {
  color: #777;
}

html[data-theme="dark"] .description {
  color: #bbb;
}

html[data-theme="dark"] .game-item,
html[data-theme="dark"] .lang-item {
  background-color: #1a1a1a;
  color: #d0d0d0;
}

html[data-theme="dark"] .game-item:hover,
html[data-theme="dark"] .lang-item:hover {
  background-color: #252525;
}

html[data-theme="dark"] .tool-item {
  background-color: transparent;
  border-bottom-color: #1e1e1e;
}

html[data-theme="dark"] .tool-list .tool-item:first-child {
  border-top-color: #1e1e1e;
}

html[data-theme="dark"] .tool-item:hover {
  background-color: #0e0e0e;
}

html[data-theme="dark"] .tool-item-arrow {
  color: #333;
}

html[data-theme="dark"] .tool-item:hover .tool-item-arrow {
  color: #6ddbb0;
}

html[data-theme="dark"] .tool-item-description {
  color: #bbb;
}

html[data-theme="dark"] .nav-button {
  color: #444;
}

html[data-theme="dark"] .nav-button:hover {
  color: #777;
}

html[data-theme="dark"] .footer {
  color: #555;
}

html[data-theme="dark"] .footer-top {
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

html[data-theme="dark"] .footer-nav-label {
  color: #555;
}

html[data-theme="dark"] .footer-nav-group a {
  color: #666;
}

html[data-theme="dark"] .footer-nav-group a:hover {
  color: #bbb;
}

html[data-theme="dark"] .footer-bottom {
  color: #444;
}

html[data-theme="dark"] .footer-credit-label {
  color: #676767;
}

html[data-theme="dark"] .footer-credit-main {
  color: #ffffff;
}

html[data-theme="dark"] .scroll-indicator {
  color: #333;
}

html[data-theme="dark"] .scroll-indicator .line {
  background: linear-gradient(to bottom, #333, transparent);
}

html[data-theme="dark"] .scroll-indicator .line::after {
  background: #080808;
}

html[data-theme="dark"] .search-box input {
  background-color: #1a1a1a;
  color: #d0d0d0;
  border-color: #333;
}

html[data-theme="dark"] .filter-btn,
html[data-theme="dark"] .sort-btn {
  background-color: #1a1a1a;
  color: #d0d0d0;
}

html[data-theme="dark"] .filter-btn:hover,
html[data-theme="dark"] .sort-btn:hover {
  background-color: #252525;
}

html[data-theme="dark"] .filter-btn.active,
html[data-theme="dark"] .sort-btn.active {
  background-color: #d0d0d0;
  color: #080808;
}

html[data-theme="dark"] .blog-item {
  background-color: #111;
  border-color: #222;
}

html[data-theme="dark"] .blog-item:hover {
  background-color: #181818;
}

html[data-theme="dark"] .blog-item-category {
  background-color: #d0d0d0;
  color: #080808;
}

html[data-theme="dark"] .blog-breadcrumb,
html[data-theme="dark"] .blog-breadcrumb a {
  color: #777;
}

html[data-theme="dark"] .blog-breadcrumb a:hover {
  color: #d0d0d0;
}

html[data-theme="dark"] a {
  color: inherit;
}

html[data-theme="dark"] .blog-content h2 {
  border-bottom-color: #222;
}

html[data-theme="dark"] .blog-content pre {
  background-color: #111;
}

html[data-theme="dark"] .no-results {
  color: #555;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 45vh;
}

.box {
  margin-bottom: 80vh;
  text-align: center;
  opacity: 1;
  transform: translateY(0);
  padding: 32px 24px;
  box-sizing: border-box;
  width: min(800px, 92vw); /* ボックスの最大幅を制限 */
  background: none; /* 個別のbox背景を削除 */
  backdrop-filter: none;
  border: none;
  border-radius: 24px;
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-animate .box {
  opacity: 0;
  transform: translateY(60px);
}

.js-animate .box.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ヒーロー要素のスタッガー登場 */
.profile-hero > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.box.is-visible .profile-hero > * {
  opacity: 1;
  transform: translateY(0);
}

.box.is-visible .profile-hero-avatar-wrap { transition-delay: 0.1s; }
.box.is-visible .profile-hero-name { transition-delay: 0.2s; }
.box.is-visible .profile-hero-bio { transition-delay: 0.3s; }
.box.is-visible .profile-hero-meta { transition-delay: 0.4s; }

.title { 
  font-size: 2rem; 
  margin: 0; 
}

.sub-title { 
  font-size: 1rem; 
  color: gray; 
  margin-top: 10px; 
}

.section-title { 
  font-size: 1.5rem; 
  margin: 0; 
}

.description { 
  font-size: 1.1rem; 
  line-height: 1.8; 
  max-width: 600px; 
  margin: 0 auto; 
}

.game-list,
.lang-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  max-width: 700px;
  margin: 0 auto;
}

.tool-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
  margin-top: 30px;
}

a {
  text-decoration: none !important;
  color: inherit;
  position: relative;
  display: inline-block;
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #275766, #baffc0);
  transition: width 0.3s ease, left 0.3s ease;
}

a:hover::after {
  width: 100%;
  left: 0;
}

.game-item,
.lang-item {
  background-color: #f0f0f0;
  border-radius: 20px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tool-item {
  position: relative;
  border-radius: 0;
  padding: 24px 8px;
  text-align: left;
  transition: background-color 0.3s ease, transform 0.3s ease, padding-left 0.3s ease;
  cursor: pointer;
  border: none;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  margin: 0;
  overflow: hidden;
  background-color: transparent;
}

.tool-list .tool-item:first-child {
  border-top: 1px solid #e8e8e8;
}

.tool-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, #275766 0%, #baffc0 100%);
  transition: height 0.35s ease;
  border-radius: 0 2px 2px 0;
}

.tool-item:hover::before {
  height: 100%;
}

.tool-item::after {
  display: none;
}

.tool-item:hover {
  background-color: #f7f7f7;
  padding-left: 14px;
}

.tool-item-inner {
  flex: 1;
  min-width: 0;
}

.tool-item-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #ccc;
  transition: color 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.tool-item-arrow svg {
  width: 100%;
  height: 100%;
}

.tool-item:hover .tool-item-arrow {
  color: #275766;
  transform: translateX(4px);
}

.tool-item-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.tool-item-description {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.game-item a {
  padding: 10px 20px;
}

.game-item a::after {
  bottom: 8px;
  left: 50%;
}

.game-item a:hover::after {
  width: calc(100% - 40px);
  left: 20px;
}

.lang-item {
  padding: 10px 20px;
}

.game-item:hover,
.lang-item:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

.lang-item small {
  font-size: 0.75rem;
  color: #666;
  margin-left: 5px;
}

.footer {
  font-size: 0.85rem;
  color: #999;
  margin-top: 20px;
  padding: 0 20px;
  position: relative;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 800px;
  margin: 0 auto 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-nav {
  display: flex;
  gap: 48px;
}

.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 2px;
}

.footer-nav-group a {
  font-size: 0.85rem;
  color: #888;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav-group a::after {
  display: none;
}

.footer-nav-group a:hover {
  color: #333;
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  font-size: 0.75rem;
  color: #bbb;
  margin-bottom: 5vw;
}

.footer-credit {
  margin-top: 6vw;
  text-align: center;
  -webkit-font-smoothing: antialiased;
}

.footer-credit-label {
  font-family: 'Google Sans Flex', 'zenkaku', sans-serif;
  font-size: 5.4vw;
  font-weight: 100;
  color: #676767;
  margin-bottom: 1.5vw;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.footer-credit-main {
  font-family: "jost", sans-serif;
  font-size: 13vw;
  font-weight: 400;
  color: #000000;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  white-space: nowrap;
  max-width: 100%;
}

.footer-credit-dot {
  display: inline-block;
  background: linear-gradient(315deg, #275766 15%, #baffc0 33%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  font-size: 13vw;
}

.footer-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.theme-toggle,
.scroll-to-top {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.7;
  width: 40px;
  height: 40px;
}

.theme-toggle:hover,
.scroll-to-top:hover {
  transform: scale(1.1);
  opacity: 1;
}

.theme-toggle img,
.scroll-to-top img {
  grid-area: 1/1;
  width: 24px;
  height: 24px;
}

.theme-icon-light,
.scroll-icon-light {
  display: block;
}

.theme-icon-dark,
.scroll-icon-dark {
  display: none;
}

html[data-theme="dark"] .theme-icon-light,
html[data-theme="dark"] .scroll-icon-light {
  display: none;
}

html[data-theme="dark"] .theme-icon-dark,
html[data-theme="dark"] .scroll-icon-dark {
  display: block;
}

html[data-theme="dark"] .scroll-icon-light {
  display: none;
}

html[data-theme="dark"] .scroll-icon-dark {
  display: block;
}

.nav-buttons {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.nav-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  padding: 4px 8px;
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

.nav-button .nav-label {
  font-size: 0.6rem;
  letter-spacing: 0.04em;
}

.nav-button::after {
  display: none;
}

.nav-button:hover {
  color: #888;
  background: none;
  transform: none;
}

.scroll-indicator {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  color: #ccc;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
}

.scroll-indicator .line {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, #ccc, transparent);
  position: relative;
  overflow: hidden;
}

.scroll-indicator .line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  animation: scroll-line 2.5s cubic-bezier(0.15, 0, 0.45, 1) infinite;
}

@keyframes scroll-line {
  0% { transform: translateY(-100%); }
  50% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* Blog page styles */
.blog-page .box {
  margin-bottom: 50px;
  opacity: 1;
  transform: translateY(0);
}

.blog-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.search-box {
  width: 100%;
  max-width: 500px;
}

.search-box input {
  width: 100%;
  padding: 12px 20px;
  border: 1px solid #ddd;
  border-radius: 25px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.search-box input:focus {
  border-color: #999;
}

.filter-buttons,
.sort-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn,
.sort-btn {
  background-color: #f0f0f0;
  border: none;
  border-radius: 20px;
  padding: 10px 25px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'jost', 'zenkaku', sans-serif;
}

.filter-btn:hover,
.sort-btn:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

.filter-btn.active,
.sort-btn.active {
  background-color: #333;
  color: white;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.blog-item {
  background-color: #f9f9f9;
  border-radius: 15px;
  padding: 25px;
  text-align: left;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid #eee;
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-item::after {
  display: none;
}

.blog-item:hover {
  background-color: #f0f0f0;
  transform: translateY(-3px);
}

.blog-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 15px;
  flex-wrap: wrap;
}

.blog-item-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin: 0;
}

.blog-item-category {
  background-color: #333;
  color: white;
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.blog-item-date {
  color: #999;
  font-size: 0.9rem;
  margin-top: 5px;
}

.blog-item-excerpt {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 10px;
}

.no-results {
  text-align: center;
  color: #999;
  font-size: 1.1rem;
  padding: 40px;
}

/* モバイル対応 */
@media screen and (max-width: 768px) {

  .box {
    margin-bottom: 50vh;
  }
  
  .blog-controls {
    padding: 0 10px;
  }

  .blog-item {
    padding: 20px;
  }

  .blog-item-title {
    font-size: 1.1rem;
  }

  .blog-item-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-buttons,
  .sort-buttons {
    width: 100%;
  }

  .filter-btn,
  .sort-btn {
    flex: 1;
    min-width: 80px;
  }

  .title {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .description {
    font-size: 1rem;
  }

  .game-item,
  .lang-item {
    font-size: 0.85rem;
    padding: 8px 15px;
  }

  .tool-item {
    padding: 18px 6px;
  }

  .tool-item-title {
    font-size: 1.05rem;
  }

  .game-item a {
    padding: 8px 15px;
  }

  .game-item a::after {
    bottom: 6px;
  }

  .game-item a:hover::after {
    width: calc(100% - 30px);
    left: 15px;
  }

  .blog-content {
    padding: 0 10px;
  }

  .blog-content h2 {
    font-size: 1.3rem;
  }

  .blog-content h3 {
    font-size: 1.1rem;
  }

  .footer-top {
    flex-direction: column;
    gap: 24px;
  }

  .footer-controls {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .theme-toggle img,
  .scroll-to-top img {
    width: 20px;
    height: 20px;
  }

  .nav-buttons {
    gap: 16px;
  }

  .nav-button {
    font-size: 0.7rem;
  }
}

@media screen and (max-width: 380px) {
  .title {
    font-size: 1.4rem;
  }
}

/* Blog post page styles */
.blog-breadcrumb {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 20px;
}

.blog-breadcrumb a {
  color: #666;
  text-decoration: none;
}

.blog-breadcrumb a:hover {
  color: #333;
}

.blog-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  line-height: 1.8;
}

.blog-content h2 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

.blog-content h3 {
  font-size: 1.2rem;
  margin-top: 30px;
  margin-bottom: 10px;
}

.blog-content p {
  margin-bottom: 20px;
}

.blog-content ul,
.blog-content ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.blog-content li {
  margin-bottom: 10px;
}

.blog-content pre {
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 15px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.blog-content code {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.error-code {
  font-size: 6rem;
  font-weight: bold;
  margin: 0;
  line-height: 1;
  opacity: 0.2;
}

.error-title {
  font-size: 2rem;
  margin: 20px 0 10px;
}

.error-description {
  font-size: 1rem;
  color: #999;
  margin: 10px 0 40px;
}

.error-box {
  text-align: center;
  margin-top: 100px;
}

html[data-theme="dark"] .error-description {
  color: #777;
}

@media (max-width: 768px) {
  .error-code {
    font-size: 4rem;
  }

  .error-title {
    font-size: 1.5rem;
  }

  .error-box {
    margin-top: 60px;
  }
}

.profile-section {
  text-align: center;
  margin-bottom: 40px;
}

.profile-image {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 22px;
  display: block;
  transition: transform 0.3s ease;
}

.profile-image:hover {
  animation: swing 0.8s ease-in-out both;
  transform-origin: top center;
}

@keyframes swing {
  20% { transform: rotate(15deg); }
  40% { transform: rotate(-10deg); }
  60% { transform: rotate(5deg); }
  80% { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}


.profile-name {
  font-size: 1.9rem;
  margin: 8px 0 6px;
  letter-spacing: -0.01em;
}

.profile-role {
  color: #aaa;
  font-size: 0.88rem;
  margin: 4px 0 0 0;
  line-height: 1.6;
}

.tab-menu {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 32px 0;
  flex-wrap: wrap;
}

.tab-item {
  background-color: transparent;
  color: #999;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 8px 24px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
  font-family: 'jost', 'zenkaku', sans-serif;
  letter-spacing: 0.02em;
}

.tab-item:hover {
  color: inherit;
  border-color: #aaa;
}

.tab-item.active {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #275766 0%, #baffc0 100%) border-box;
  border: 1.5px solid transparent;
  color: #275766;
}

html[data-theme="dark"] .tab-item {
  background-color: transparent;
  color: #555;
  border-color: #1e1e1e;
}

html[data-theme="dark"] .tab-item:hover {
  color: #d0d0d0;
  border-color: #444;
}

html[data-theme="dark"] .tab-item.active {
  background:
    linear-gradient(#080808, #080808) padding-box,
    linear-gradient(135deg, #275766 0%, #baffc0 100%) border-box;
  border: 1.5px solid transparent;
  color: #baffc0;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 25px auto;
  max-width: 640px;
}

.info-item {
  text-align: center;
  padding: 20px 15px;
}

.info-grid + .info-item {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 20px 15px;
}

.info-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  background: linear-gradient(135deg, #275766 0%, #baffc0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: 0.6;
}

.info-value {
  font-size: 1.05rem;
  line-height: 1.6;
}

.link-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 28px auto 0;
  max-width: 520px;
}

.link-row {
  display: flex;
  align-items: center;
  padding: 18px 10px;
  border-bottom: 1px solid #eee;
  position: relative;
  transition: padding-left 0.3s ease, background-color 0.3s ease;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

@media (hover: hover) {
  .link-row:hover {
    padding-left: 18px;
  }
}

.link-row::after {
  display: none;
}

.link-grid .link-row:first-child {
  border-top: 1px solid #eee;
}

.link-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0;
  background: linear-gradient(180deg, #275766, #baffc0);
  transition: height 0.35s ease;
}

.link-row:hover::before {
  height: 100%;
}

.link-row-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.link-platform {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #bbb;
  transition: color 0.3s ease;
}

.link-row:hover .link-platform {
  color: #888;
}

.link-handle {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
}

.link-row-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: #ccc;
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.3s ease;
  margin-left: 16px;
}

.link-row-arrow svg {
  width: 100%;
  height: 100%;
}

.link-row:hover .link-row-arrow {
  transform: translate(2px, -2px);
  color: #888;
}

html[data-theme="dark"] .link-row {
  border-bottom-color: #1e1e1e;
}

html[data-theme="dark"] .link-grid .link-row:first-child {
  border-top-color: #1e1e1e;
}

html[data-theme="dark"] .link-platform {
  color: #444;
}

html[data-theme="dark"] .link-row:hover .link-platform {
  color: #666;
}

html[data-theme="dark"] .link-row-arrow {
  color: #333;
}

html[data-theme="dark"] .link-row:hover .link-row-arrow {
  color: #666;
}

.note-text {
  font-size: 0.82rem;
  color: #bbb;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.link_yt {
  color: #f07090;
}

.link_x {
  color: #8ed4ee;
}

.link_steam {
  color: #6699dd;
}

.link_xbox {
  color: #7ac97a;
}

@media (max-width: 768px) {
  .profile-image {
    width: 100px;
    height: 100px;
  }

  .profile-name {
    font-size: 1.45rem;
  }

  .profile-role {
    font-size: 0.82rem;
  }

  .tab-menu {
    gap: 8px;
  }

  .tab-item {
    padding: 7px 16px;
    font-size: 0.82rem;
  }

  .info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .info-item {
    padding: 12px 14px;
  }

  .info-grid + .info-item {
    padding: 12px 14px;
  }

  .info-label {
    font-size: 0.65rem;
  }

  .info-value {
    font-size: 0.95rem;
  }

  .link-grid {
    max-width: 100%;
  }

  .link-row {
    padding: 14px 8px;
  }

  .link-handle {
    font-size: 0.95rem;
  }

  .link-row-arrow {
    font-size: 0.9rem;
    margin-left: 10px;
  }

  .note-text {
    font-size: 0.78rem;
  }
}

/* =====================
   Diary page styles
   ===================== */

.diary-container {
  padding-top: 40vh;
}

.diary-header-box {
  margin-bottom: 20vh;
}

.diary-eyebrow,
.page-eyebrow {
  font-size: 0.8rem;
  color: #aaa;
  letter-spacing: 0.15em;
  margin: 0 0 12px;
  text-transform: lowercase;
}

html[data-theme="dark"] .diary-eyebrow,
html[data-theme="dark"] .page-eyebrow {
  color: #555;
}

.diary-title-dot,
.title-dot {
  display: inline-block;
  background: linear-gradient(315deg, #275766 15%, #baffc0 33%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.diary-entries-box {
  width: 90%;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  margin-bottom: 30vh;
}

.diary-month-group {
  margin-bottom: 80px;
  position: relative;
}

.diary-month-label {
  font-family: 'jost', 'zenkaku', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c0c0c0;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.diary-month-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, #e4e4e4, transparent);
}

html[data-theme="dark"] .diary-month-label::after {
  background: linear-gradient(to right, #252525, transparent);
}

html[data-theme="dark"] .diary-month-label {
  color: #383838;
}

.diary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.diary-entry {
  display: flex;
  align-items: flex-start;
  padding: 13px 10px 13px 0;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
  transition: padding-left 0.22s ease, background-color 0.22s ease;
}

.diary-entry:first-child {
  border-top: 1px solid #f0f0f0;
}

.diary-entry::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #275766, #baffc0);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.22s ease;
  border-radius: 1px;
}

.diary-date {
  font-family: 'jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #d0d0d0;
  width: 38px;
  flex-shrink: 0;
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  transition: color 0.22s ease;
}

html[data-theme="dark"] .diary-date {
  color: #383838;
}

html[data-theme="dark"] .diary-entry {
  border-bottom-color: #141414;
}

html[data-theme="dark"] .diary-entry:first-child {
  border-top-color: #141414;
}

.diary-text {
  font-size: 0.975rem;
  line-height: 1.72;
  color: #2e2e2e;
  overflow-wrap: anywhere;
  flex: 1;
  transition: color 0.22s ease;
}

html[data-theme="dark"] .diary-text {
  color: #828282;
}

.diary-text a {
  color: inherit;
  border-bottom: 1px solid currentColor;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

.diary-text a::after {
  display: none;
}

.diary-text a:hover {
  opacity: 1;
}

/* ホバー：マウス環境のみ */
@media (hover: hover) and (pointer: fine) {
  .diary-entry:hover {
    padding-left: 12px;
    background-color: #fafafa;
  }

  .diary-entry:hover::before {
    transform: scaleY(1);
  }

  .diary-entry:hover .diary-date {
    color: #999;
  }

  html[data-theme="dark"] .diary-entry:hover {
    background-color: #0c0c0c;
  }

  html[data-theme="dark"] .diary-entry:hover .diary-date {
    color: #555;
  }

  html[data-theme="dark"] .diary-entry:hover .diary-text {
    color: #aaa;
  }
}

/* モバイル対応 */
@media (max-width: 768px) {
  .diary-container {
    padding-top: 30vh;
  }

  .diary-entries-box {
    width: 88%;
  }

  .diary-month-label {
    font-size: 0.68rem;
    margin-bottom: 16px;
  }

  .diary-entry {
    padding: 11px 8px 11px 0;
  }

  .diary-entry:hover {
    padding-left: 10px;
  }

  .diary-date {
    width: 34px;
    font-size: 0.75rem;
  }

  .diary-text {
    font-size: 0.93rem;
  }
}

/* ===========================
   Link Hub
   =========================== */

.link-hub {
  display: flex;
  flex-direction: column;
  width: min(700px, 90vw);
  margin: 0 auto;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid #e8e8e8;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: gap 0.3s ease;
  cursor: pointer;
}

.link-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #275766, #baffc0);
  transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.link-card:hover::after {
  width: 100%;
}

.link-card:hover {
  gap: 30px;
}

.link-hub .link-card:first-child {
  border-top: 1px solid #e8e8e8;
}

.link-card-num {
  font-family: 'Jost', 'zenkaku', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #ccc;
  flex-shrink: 0;
  width: 24px;
  transition: color 0.3s ease;
  line-height: 1;
}

.link-card:hover .link-card-num {
  color: #3a8895;
}

.link-card-body {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.link-card-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin: 0 0 5px 0;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
}

.link-card-domain {
  font-family: 'Jost', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #aaa;
  margin: 0;
  overflow-wrap: break-word;
  word-break: break-all;
}

.link-card-arrow {
  font-size: 1.1rem;
  color: #ccc;
  flex-shrink: 0;
  transition: color 0.3s ease, transform 0.3s ease;
}

.link-card:hover .link-card-arrow {
  color: #275766;
  transform: translateX(4px);
}

/* Link Hub — Dark mode */
html[data-theme="dark"] .link-card {
  border-color: #1e1e1e;
}

html[data-theme="dark"] .link-hub .link-card:first-child {
  border-top-color: #1e1e1e;
}

html[data-theme="dark"] .link-card::after {
  background: linear-gradient(90deg, #275766, #baffc0);
}

html[data-theme="dark"] .link-card-num {
  color: #333;
}

html[data-theme="dark"] .link-card-domain {
  color: #555;
}

html[data-theme="dark"] .link-card-arrow {
  color: #333;
}

html[data-theme="dark"] .link-card:hover .link-card-arrow {
  color: #6ddbb0;
}

/* Link Hub — Mobile */
@media screen and (max-width: 768px) {
  .link-card {
    gap: 14px;
    padding: 20px 0;
  }

  .link-card:hover {
    gap: 18px;
  }

  .link-card-title {
    font-size: 1rem;
  }

  .link-card-domain {
    font-size: 0.72rem;
  }

  .link-card-num {
    font-size: 0.68rem;
    width: 18px;
  }

  .link-card-arrow {
    font-size: 0.9rem;
  }
}

/* =====================
   Profile Hero
   ===================== */

.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.profile-hero-avatar-wrap {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #e8e8e8;
  flex-shrink: 0;
}

.profile-hero-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-hero-name {
  font-family: 'Jost', sans-serif;
  font-size: 2.2rem;
  font-weight: 400;
  margin: 0;
  line-height: 1.1;
}

.profile-hero-bio {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.7;
  margin: 4px 0 8px;
  max-width: 440px;
  word-break: break-word;
  font-weight: 450;
  letter-spacing: 0.01em;
}

.profile-hero-bio a {
  color: inherit;
  font-weight: inherit;
}

.profile-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.profile-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: #888;
  background: #f5f5f5;
  border-radius: 20px;
  padding: 5px 13px;
  line-height: 1;
  letter-spacing: 0.02em;
}

/* Profile social list */
.profile-social-list {
  display: flex;
  flex-direction: column;
  width: min(520px, 94vw); /* 広めに少し調整 */
  margin: 32px auto 0;
  gap: 12px; /* カード間に隙間 */
  padding: 0; /* 余計なパディングをリセット */
}

.social-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px; /* 余白を左右に広げる */
  border: 1px solid rgba(0, 0, 0, 0.04); /* 全体を囲う */
  border-radius: 20px; /* 角を丸く */
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: transform 0.15s ease-out, background 0.15s ease-out, border 0.15s ease-out, border-top-color 0.15s ease-out, gap 0.15s ease-out, opacity 0.6s ease-out;
  overflow: hidden;
}

.js-animate .social-card {
  opacity: 0;
  transform: scale(0.95);
}

.box.is-visible .social-card {
  opacity: 1;
  transform: scale(1);
}

/* SNSカードのスタッガー登場 */
.box.is-visible .social-card:nth-child(n) { transition-delay: 0s; }

.profile-social-list .social-card:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.profile-social-list .social-card:first-child:hover {
  border-top-color: rgba(39, 87, 102, 0.3);
}

.social-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px; /* 少し太めに */
  background: linear-gradient(90deg, #275766, #baffc0);
  transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.social-card:hover::after {
  width: 100%;
}

.social-card:hover {
  transform: translateY(-6px) scale(1.02); /* 少し浮かせて拡大 */
  background: rgba(0, 0, 0, 0.01);
  border-color: rgba(39, 87, 102, 0.3);
}

.social-card-icon-wrap {
  width: 48px; /* 少しだけ大きく */
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #f7f7f7;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.social-card:hover .social-card-icon-wrap {
  transform: scale(1.05); /* アイコンも少し強調 */
}

.social-icon {
  width: 24px; /* 少し大きく */
  height: 24px;
  object-fit: contain;
}

/* 白アイコン: ライトモードでは黒に反転 */
.social-icon--invert-light {
  filter: invert(1);
}

/* 黒アイコン: ダークモードで白に反転 */
.social-icon--invert-dark {
  filter: none;
}

.social-card-info {
  flex: 1;
  min-width: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.social-card-name {
  font-size: 1.05rem; /* ちょっとだけ大きく */
  font-weight: 600;
  line-height: 1.2;
}

.social-card-handle {
  font-family: 'Jost', 'zenkaku' monospace;
  font-size: 0.82rem; /* 少し大きく */
  color: #adb5bd;
  letter-spacing: 0.02em;
}

/* Discord stats badge */
.discord-stats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: 0.72rem;
  color: #adb5bd;
  letter-spacing: 0.01em;
}

.discord-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.discord-stat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #23a55a;
  flex-shrink: 0;
}

.discord-stat-sep {
  color: #ced4da;
  font-size: 0.8rem;
}

html[data-theme="dark"] .discord-stats {
  color: #6c757d;
}

html[data-theme="dark"] .discord-stat-sep {
  color: #343a40;
}
/* YouTube subscriber stats badge */
.yt-stats {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  font-size: 0.72rem;
  color: #adb5bd;
  letter-spacing: 0.01em;
}

.yt-stats-icon {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  opacity: 0.6;
}

html[data-theme="dark"] .yt-stats {
  color: #6c757d;
}


.social-card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #dee2e6;
  flex-shrink: 0;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-card-arrow svg {
  width: 100%;
  height: 100%;
}

.social-card:hover .social-card-arrow {
  color: #275766;
  transform: translate(2px, -2px);
}

/* Profile Hero — Dark mode */
html[data-theme="dark"] .profile-hero-avatar-wrap {
  border-color: #2a2a2a;
}

html[data-theme="dark"] .profile-hero-bio {
  color: #777;
}

html[data-theme="dark"] .profile-hero-bio a {
  color: inherit;
  font-weight: inherit;
}

html[data-theme="dark"] .profile-meta-badge {
  background: #1a1a1a;
  color: #666;
}

html[data-theme="dark"] .social-card {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

html[data-theme="dark"] .social-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(109, 219, 176, 0.4);
}

html[data-theme="dark"] .profile-social-list .social-card:first-child {
  border-top-color: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .profile-social-list .social-card:first-child:hover {
  border-top-color: rgba(109, 219, 176, 0.4);
}

html[data-theme="dark"] .social-card-icon-wrap {
  background: #1e1e1e;
}

html[data-theme="dark"] .social-icon--invert-light {
  filter: none;
}

html[data-theme="dark"] .social-icon--invert-dark {
  filter: invert(1);
}

html[data-theme="dark"] .social-card-handle {
  color: #555;
}

html[data-theme="dark"] .social-card-arrow {
  color: #333;
}

html[data-theme="dark"] .social-card:hover .social-card-arrow {
  color: #6ddbb0;
}

/* ===== 高級ジェネ セクション ===== */
.hiko-box {
  padding: 0;
  overflow: hidden;
}

.hiko-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 36px;
}

.hiko-hero .profile-hero {
  position: relative;
  z-index: 1;
}

.hiko-hero .profile-hero-name {
  color: #fff;
}

.hiko-hero .profile-hero-bio {
  color: rgba(255,255,255,0.8);
}

.hiko-hero .profile-hero-avatar-wrap {
  border-color: rgba(255,255,255,0.4);
}

.hiko-hero .profile-meta-badge {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
}

.hiko-box .profile-social-list {
  padding: 16px;
  margin: 0 auto !important;
}

.kj-box {
  padding: 0;
  overflow: hidden;
}

.kj-section {
  display: flex;
  flex-direction: column;
}

.kj-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 36px;
}

.kj-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.kj-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 100%);
}

.kj-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-align: center;
}

.kj-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.4);
  flex-shrink: 0;
}

.icon-maru {
  border-radius: 50%;
}

.kj-title {
  font-family: 'jost', 'zenkaku', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.01em;
}

.kj-desc {
  font-family: 'jost', 'zenkaku', sans-serif;
  font-size: 0.92rem;
  opacity: 0.8;
  margin: 0;
  color: #fff;
}

.kj-link-list {
  padding: 16px;
  margin: 0 auto !important;
}

@media screen and (max-width: 768px) {
  .kj-hero {
    height: 140px;
  }

  .kj-link-list {
    padding: 12px;
  }
}

/* GitHub calendar card */
.social-card--github {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  gap: 0;
}

.social-card--github:hover {
  gap: 0;
}

.social-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-card-top::after {
  display: none;
}

.social-card--github .social-card-arrow {
  margin-left: auto;
  flex-shrink: 0;
}

.github-calendar-wrap {
  padding: 4px 18px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative; /* ポップオーバーの基準 */
}

.calendar {
  line-height: 0;
}

.calendar-info-toggle {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #8b949e;
  opacity: 0.6;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

.calendar-info-toggle:hover {
  opacity: 1;
}

.calendar-legend-popover {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(30, 30, 30, 0.9);
  backdrop-filter: blur(8px);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 10;
}

html[data-theme="light"] .calendar-legend-popover {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.calendar-legend-popover.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.calendar-legend {
  display: flex;
  line-height: 0;
}

.legend-label {
  font-size: 11px;
  color: #8b949e;
  font-family: inherit;
  white-space: nowrap;
}

/* Profile Hero — Mobile */
@media screen and (max-width: 768px) {
  .profile-social-list {
    width: calc(100% - 32px); /* 左右に16pxずつの余白を確保 */
    max-width: 520px;
    margin: 24px auto 0;
  }

  .social-card {
    gap: 12px;
    padding: 16px 20px; /* 右側の余白をしっかり確保 */
    width: 100%;
    box-sizing: border-box;
    border-radius: 16px;
  }

  .social-card--github {
    padding: 0;
  }

  .social-card-top {
    padding: 14px 16px;
    gap: 12px;
  }

  .github-calendar-wrap {
    padding: 4px 14px 14px;
  }

  .social-card-info {
    flex: 1;
    min-width: 0; /* 折り返し防止 */
  }

  .profile-hero-name {
    font-size: 1.7rem;
  }

  .profile-hero-bio {
    font-size: 0.92rem;
  }

  .social-card-name {
    font-size: 0.92rem;
  }

  /* 重複した定義を削除 */

  .social-card-handle {
    font-size: 0.75rem;
  }

  .social-card-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .social-icon {
    width: 20px;
    height: 20px;
  }

  .social-card-arrow {
    width: 14px;
    height: 14px;
  }
}

/* =====================
   Legal page styles
   ===================== */

.legal-page.container {
  padding-top: 18vh;
}

.legal-page .box {
  margin-bottom: 12vh;
  text-align: left;
  max-width: 720px;
  width: 100%;
}

.legal-page .box:first-child,
.legal-page .box:last-child {
  text-align: center;
}

.legal-section-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin: 0 0 16px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8e8e8;
}

html[data-theme="dark"] .legal-section-title {
  border-bottom-color: #222;
}

.legal-text {
  font-size: 1rem;
  line-height: 2;
  margin: 0;
  color: inherit;
}

.legal-text + .legal-text {
  margin-top: 10px;
}

.legal-note {
  font-size: 0.9rem;
  color: #888;
  margin-top: 14px;
  line-height: 1.8;
}

.legal-date {
  font-size: 0.95rem;
  color: #888;
  margin: 20px 0 6px;
}

.legal-lead {
  font-size: 1rem;
  line-height: 1.9;
  color: #666;
  max-width: 680px;
  margin: 16px auto 0;
  text-align: left;
}

html[data-theme="dark"] .legal-lead {
  color: #bbb;
}

.back-button-wrap {
  margin-bottom: 20px;
}

.legal-nav-buttons {
  margin-bottom: 40px;
}

.external-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.external-list li {
  font-size: 1rem;
  line-height: 1.8;
}

@media screen and (max-width: 768px) {
  .legal-page.container {
    padding-top: 10vh;
  }

  .legal-page .box {
    margin-bottom: 8vh;
  }
}

/* =====================
   Birthday Section Styles
   ===================== */

.birthday-section {
  background: linear-gradient(135deg, #fff5e6 0%, #ffe8d6 100%);
  border-radius: 12px;
  padding: 40px;
}

html[data-theme="dark"] .birthday-section {
  background: linear-gradient(135deg, #2a2410 0%, #1f1a0f 100%);
}

.birthday-content {
  margin: 20px 0;
  text-align: left;
  font-size: 1.1rem;
}

.today-date {
  margin-bottom: 20px;
  font-size: 1rem;
}

.date-label {
  font-weight: bold;
  color: #666;
  display: inline-block;
  min-width: 80px;
}

html[data-theme="dark"] .date-label {
  color: #aaa;
}

.date-value {
  font-family: 'Google Sans Flex', 'jost', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: #d4a574;
}

html[data-theme="dark"] .date-value {
  color: #e8c59e;
}

.birthday-message {
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 16px 0;
  color: #333;
  padding: 16px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  border-left: 4px solid #d4a574;
}

html[data-theme="dark"] .birthday-message {
  background-color: rgba(30, 26, 15, 0.8);
  color: #d0d0d0;
  border-left-color: #e8c59e;
}

.days-counter {
  font-size: 1rem;
  margin-top: 16px;
  color: #666;
  font-style: italic;
}

html[data-theme="dark"] .days-counter {
  color: #aaa;
}

@media screen and (max-width: 768px) {
  .birthday-section {
    padding: 24px;
  }

  .birthday-content {
    font-size: 1rem;
  }

  .birthday-message {
    font-size: 1rem;
    padding: 12px;
  }
}

/* =========================================
   Page transition progress bar
   ========================================= */

#nav-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #275766 0%, #baffc0 50%, #275766 100%);
  background-size: 200% 100%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: none;
}

/* 到着時: 開始状態 (山形が長い)を表現 */
#nav-progress.nav-progress-arrive-start {
  opacity: 1;
  width: 0;
  transition: none;
}

/* 到着時: 0→100%を素早く埋める */
#nav-progress.nav-progress-arrive {
  opacity: 1;
  width: 100%;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  animation: nav-progress-shimmer 1.2s linear infinite;
}

/* 到着完了後: フェードアウト */
#nav-progress.nav-progress-arrive.nav-progress-arrive-done {
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: none;
}

@keyframes nav-progress-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* =========================================
   Site Navigation (Hamburger Menu)
   ========================================= */

.site-nav {
  position: fixed;
  top: 82vh;
  right: max(16px, calc((100vw - 680px) / 2));
  z-index: 1000;
  transition: top 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Toggle button ---- */
.site-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 0, 0, 0.09);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.25s ease;
  padding: 0;
  position: relative;
  z-index: 1;
}

.site-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 0, 0, 0.14);
}

.site-nav-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(39, 87, 102, 0.6);
  box-shadow: 0 0 0 2px rgba(186, 255, 192, 0.1);
}

.site-nav-toggle span {
  display: block;
  height: 1.5px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.32s ease,
              width 0.32s ease;
  transform-origin: center;
}

.site-nav-toggle span:nth-child(1) { width: 18px; }
.site-nav-toggle span:nth-child(2) { width: 11px; }
.site-nav-toggle span:nth-child(3) { width: 18px; }

.site-nav-toggle[aria-expanded="true"] span:nth-child(1) {
  width: 18px;
  transform: translateY(6.5px) rotate(45deg);
}
.site-nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.site-nav-toggle[aria-expanded="true"] span:nth-child(3) {
  width: 18px;
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---- Drawer ---- */
.site-nav-drawer {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 248px;
  background: rgba(252, 252, 252, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(39, 87, 102, 0.1);
  border-radius: 18px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px) scale(0.96);
  transform-origin: top right;
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

/* グラデーションのアクセントライン（上端） */
.site-nav-drawer::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #275766 0%, #baffc0 100%);
}

.site-nav-drawer[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* PCのみ最大高さを制限（デスクトップ向け） */
@media (min-width: 769px) {
  .site-nav-drawer {
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
  }
}

/* モバイルは最大高さ制限を無効化 */
@media (max-width: 768px) {
  .site-nav-drawer {
    max-height: none;
    overflow: visible;
  }
}

/* =====================
   お問い合わせページ
   ===================== */

/* フォームスタイル */
.contact-form {
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
}

html[data-theme="dark"] .form-label {
  color: #ddd;
}

.required-mark {
  color: #d9465f;
  font-weight: 600;
}

.form-input,
.form-textarea {
  padding: 10px 14px;
  border: 1px solid #d0d0d0;
  border-radius: 24px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: #333;
  transition: all 0.2s ease;
}

html[data-theme="dark"] .form-input,
html[data-theme="dark"] .form-textarea {
  background: #1e1e1e;
  border-color: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #6ddbb0;
}

html[data-theme="dark"] .form-input:focus,
html[data-theme="dark"] .form-textarea:focus {
  outline: none;
  border-color: #2e5a68;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #999;
}

html[data-theme="dark"] .form-input::placeholder,
html[data-theme="dark"] .form-textarea::placeholder {
  color: #666;
}

.form-textarea {
  resize: none;
  min-height: 110px;
  line-height: 1.5;
  overflow: hidden;
}

.form-error {
  display: block;
  color: #d946a6;
  font-size: 13px;
  margin-top: 6px;
  min-height: 18px;
}

html[data-theme="dark"] .form-error {
  color: #ff6b9d;
}

/* フォームアクション */
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  justify-content: center;
}

.submit-button,
.reset-button {
  padding: 10px 28px;
  min-width: 120px;
  border: none;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.submit-button {
  background: #275766;
  color: #fff;
}

.submit-button:hover:not(:disabled) {
  background: #1f4251;
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.reset-button {
  background: #f0f0f0;
  color: #333;
}

html[data-theme="dark"] .reset-button {
  background: #2a2a2a;
  color: #ddd;
}

.reset-button:hover:not(:disabled) {
  background: #e8e8e8;
}

html[data-theme="dark"] .reset-button:hover:not(:disabled) {
  background: #1b1b1b;
}

.reset-button:active:not(:disabled) {
  transform: translateY(0);
}

/* フォームステータスメッセージ */
.form-status {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
  display: none;
}

.form-status:not(:empty) {
  display: block;
}

.form-status--success {
  background: #d4edda;
  color: #155724;
}

html[data-theme="dark"] .form-status--success {
  background: rgba(109, 219, 176, 0.15);
  color: #6ddbb0;
}

.form-status--error {
  background: #f8d7da;
  color: #721c24;
}

html[data-theme="dark"] .form-status--error {
  background: rgba(255, 107, 157, 0.15);
  color: #ff6b9d;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .form-group {
    margin-bottom: 20px;
  }

  .form-input,
  .form-textarea {
    padding: 9px 12px;
    font-size: 16px;
  }

  .form-actions {
    flex-direction: column-reverse;
    gap: 10px;
    margin-top: 28px;
  }

  .submit-button,
  .reset-button {
    width: 100%;
    padding: 11px 20px;
  }

  .form-status {
    margin-top: 18px;
    padding: 12px 14px;
    font-size: 13px;
  }
}

/* CSSカウンターで番号を自動付与 */
.site-nav-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav-drawer > ul {
  padding: 6px 0 10px;
  counter-reset: nav-num;
}

.site-nav-drawer > ul > li {
  counter-increment: nav-num;
  position: relative;
  margin-bottom: 2px;
}

/* ホバー時の左グラデーションライン */
.site-nav-drawer > ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(to bottom, #275766, #baffc0);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
  z-index: 1;
}

.site-nav-drawer > ul > li:has(> a:hover)::before {
  opacity: 1;
}

.site-nav-drawer > ul > li > a {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  color: #111;
  text-decoration: none;
  gap: 8px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

/* 番号（CSSカウンター） */
.site-nav-drawer > ul > li > a::before {
  content: counter(nav-num, decimal-leading-zero);
  font-size: 0.62rem;
  color: #ccc;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  min-width: 18px;
  transition: color 0.18s ease;
}

.site-nav-drawer > ul > li > a:hover {
  background: rgba(0, 0, 0, 0.03);
}

.site-nav-drawer > ul > li > a:hover::before {
  color: #999;
}

/* グローバルa::afterのアンダーライン無効化 */
.site-nav-drawer > ul > li > a::after {
  display: none !important;
}

/* ---- アイテムのスタガーアニメーション ---- */
@keyframes navItemIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.site-nav-drawer[aria-hidden="false"] > ul > li {
  animation: navItemIn 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.site-nav-drawer[aria-hidden="false"] > ul > li:nth-child(1) { animation-delay: 0.07s; }
.site-nav-drawer[aria-hidden="false"] > ul > li:nth-child(2) { animation-delay: 0.11s; }
.site-nav-drawer[aria-hidden="false"] > ul > li:nth-child(3) { animation-delay: 0.15s; }
.site-nav-drawer[aria-hidden="false"] > ul > li:nth-child(4) { animation-delay: 0.19s; }
.site-nav-drawer[aria-hidden="false"] > ul > li:nth-child(5) { animation-delay: 0.23s; }
.site-nav-drawer[aria-hidden="false"] > ul > li:nth-child(6) { animation-delay: 0.27s; }

.site-nav-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.site-nav-item-title {
  font-size: 0.88rem;
  font-weight: normal;
  letter-spacing: 0.04em;
  color: #111;
}

.site-nav-item-domain {
  font-size: 0.67rem;
  color: #bbb;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 172px;
}

.site-nav-item-arrow {
  font-size: 0.72rem;
  color: #275766;
  flex-shrink: 0;
  transition: color 0.18s ease, transform 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  overflow: visible;
  padding: 0;
  margin: 0;
  border: 1px solid transparent;
  transform: rotate(0deg);
}

.site-nav-item-arrow.is-open {
  transform: rotate(180deg);
}

.site-nav-item-arrow svg {
  width: 14px !important;
  height: 14px !important;
  display: block;
  stroke: currentColor;
  overflow: visible;
  color: inherit;
}

.site-nav-item-arrow.is-current-page {
  cursor: pointer;
}

.site-nav-drawer > ul > li > a:hover .site-nav-item-arrow {
  color: #275766;
}

.site-nav-drawer > ul > li > a:hover .site-nav-item-arrow:not(.is-open) {
  transform: translateY(2px);
}

.site-nav-drawer > ul > li > a:hover .site-nav-item-arrow.is-open {
  transform: translateY(2px) rotate(180deg);
}

.site-nav-drawer > ul > li > a[aria-current="page"]:hover .site-nav-item-arrow {
  transform: translateY(3px);
}

html[data-theme="dark"] .site-nav-drawer > ul > li > a:hover .site-nav-item-arrow {
  color: #6ddbb0;
}

html[data-theme="dark"] .site-nav-drawer > ul > li > a:hover .site-nav-item-arrow:not(.is-open) {
  transform: translateY(2px);
}

html[data-theme="dark"] .site-nav-drawer > ul > li > a:hover .site-nav-item-arrow.is-open {
  transform: translateY(2px) rotate(180deg);
}

html[data-theme="dark"] .site-nav-drawer > ul > li > a[aria-current="page"]:hover .site-nav-item-arrow {
  transform: translateY(3px);
}

.site-nav-drawer > ul > li > a:hover .site-nav-item-title {
  color: #000;
}

/* ---- Current page (aria-current) ---- */
.site-nav-drawer > ul > li > a[aria-current="page"] {
  cursor: default;
}

/* 番号だけ #275766→#baffc0 グラデーション */
.site-nav-drawer > ul > li > a[aria-current="page"]::before {
  background: linear-gradient(135deg, #275766 0%, #baffc0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.site-nav-drawer > ul > li:has(> a[aria-current="page"])::before {
  background: linear-gradient(to bottom, #275766, #baffc0);
  opacity: 1;
}

/* ---- Submenu (accordion) ---- */
.site-nav-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.01);
  max-height: 0;
  overflow: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: max-height 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.26s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), padding 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0;
}

.site-nav-submenu.is-open {
  padding: 2px 0 6px;
  max-height: 420px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.site-nav-submenu li {
  position: relative;
}

.site-nav-submenu li a {
  display: flex;
  align-items: center;
  padding: 12px 16px 12px 34px;
  color: #666;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  position: relative;
}

.site-nav-submenu li a::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  background-repeat: no-repeat;
  background-size: 12px 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 1v10M1 6h8' fill='none' stroke='%23b7bcc2' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.site-nav-submenu li:last-child a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 2v8h8' fill='none' stroke='%23b7bcc2' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.site-nav-submenu li a:hover {
  background: rgba(39, 87, 102, 0.08);
  color: #275766;
  transform: translateX(2px);
}

html[data-theme="dark"] .site-nav-submenu {
  background: rgba(255, 255, 255, 0.02);
}

html[data-theme="dark"] .site-nav-submenu li a {
  color: #999;
}

html[data-theme="dark"] .site-nav-submenu li a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 1v10M1 6h8' fill='none' stroke='%23515a60' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

html[data-theme="dark"] .site-nav-submenu li:last-child a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 2v8h8' fill='none' stroke='%23515a60' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

html[data-theme="dark"] .site-nav-submenu li a:hover {
  background: rgba(106, 219, 176, 0.1);
  color: #6ddbb0;
}

/* ---- Dark mode ---- */
html[data-theme="dark"] .site-nav-toggle {
  background: rgba(12, 12, 12, 0.82);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .site-nav-toggle:hover {
  background: rgba(22, 22, 22, 0.96);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .site-nav-toggle[aria-expanded="true"] {
  background: rgba(22, 22, 22, 0.96);
  border-color: rgba(109, 219, 176, 0.4);
  box-shadow: 0 0 0 2px rgba(186, 255, 192, 0.08);
}

html[data-theme="dark"] .site-nav-toggle span {
  background: #c8c8c8;
}

html[data-theme="dark"] .site-nav-drawer {
  background: rgba(10, 10, 10, 0.88);
  border-color: rgba(186, 255, 192, 0.1);
}

html[data-theme="dark"] .site-nav-drawer::before {
  opacity: 1;
}

html[data-theme="dark"] .site-nav-drawer ul li a {
  color: #d0d0d0;
}

html[data-theme="dark"] .site-nav-drawer ul li a:hover {
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .site-nav-item-title {
  color: #c8c8c8;
}

html[data-theme="dark"] .site-nav-item-domain {
  color: #444;
}

html[data-theme="dark"] .site-nav-item-arrow {
  color: #3a3a3a;
}

html[data-theme="dark"] .site-nav-drawer ul li a:hover .site-nav-item-arrow {
  color: #6ddbb0;
}

html[data-theme="dark"] .site-nav-drawer ul li a::before {
  color: #333;
}

html[data-theme="dark"] .site-nav-drawer ul li a:hover::before {
  color: #666;
}

html[data-theme="dark"] .site-nav-drawer ul li a:hover .site-nav-item-title {
  color: #e0e0e0;
}

html[data-theme="dark"] .site-nav-drawer ul li a[aria-current="page"] {
  cursor: default;
}

html[data-theme="dark"] .site-nav-drawer ul li a[aria-current="page"]::before {
  background: linear-gradient(135deg, #275766 0%, #baffc0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@media screen and (max-width: 680px) {
  .site-nav {
    right: 16px !important;
    top: 16px !important;
    transition: none !important;
  }

  /* 全画面ドロワー */
  .site-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-width: unset;
    border-radius: 0;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transform: translateY(-100%) scale(1);
    transform-origin: top right;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }

  .site-nav-drawer::before {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
  }

  .site-nav-drawer[aria-hidden="false"] {
    transform: translateY(0) scale(1);
  }

  .site-nav-drawer > ul {
    padding: 0;
    counter-reset: nav-num;
  }

  .site-nav-drawer > ul > li {
    counter-increment: nav-num;
  }

  .site-nav-drawer > ul > li > a {
    padding: 32px 40px;
    gap: 16px;
  }

  .site-nav-submenu li a {
    padding: 16px 40px 16px 44px;
  }

  .site-nav-drawer > ul > li::before {
    top: 10px;
    bottom: 10px;
    width: 3px;
  }

  .site-nav-drawer > ul > li > a::before {
    font-size: 0.7rem;
    min-width: 24px;
  }

  .site-nav-item-title {
    font-size: 1.3rem;
    letter-spacing: 0.06em;
  }

  .site-nav-item-domain {
    font-size: 0.75rem;
    max-width: none;
  }

  .site-nav-item-arrow {
    font-size: 0.9rem;
  }

  /* モバイル用スタガーアニメーション（左から） */
  @keyframes navItemInMobile {
    from {
      opacity: 0;
      transform: translateX(-16px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .site-nav-drawer[aria-hidden="false"] > ul > li {
    animation: navItemInMobile 0.24s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  }
  .site-nav-drawer[aria-hidden="false"] > ul > li:nth-child(1) { animation-delay: 0.12s; }
  .site-nav-drawer[aria-hidden="false"] > ul > li:nth-child(2) { animation-delay: 0.17s; }
  .site-nav-drawer[aria-hidden="false"] > ul > li:nth-child(3) { animation-delay: 0.22s; }
  .site-nav-drawer[aria-hidden="false"] > ul > li:nth-child(4) { animation-delay: 0.27s; }
  .site-nav-drawer[aria-hidden="false"] > ul > li:nth-child(5) { animation-delay: 0.32s; }
  .site-nav-drawer[aria-hidden="false"] > ul > li:nth-child(6) { animation-delay: 0.37s; }

  /* ダークモード全画面 */
  html[data-theme="dark"] .site-nav-drawer {
    background: rgba(8, 8, 8, 0.94);
  }
}

/* =========================================
   Site Navigation - Enhanced UI (v2)
   ========================================= */

/* ---- Toggle button tooltip ---- */
.site-nav-toggle::after {
  content: 'MENU';
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  color: rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.site-nav-toggle:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.site-nav-toggle[aria-expanded="true"]::after {
  display: none;
}

/* ---- Backdrop overlay ---- */
.site-nav-backdrop {
  position: fixed;
  inset: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  transition: opacity 0.28s ease;
  -webkit-tap-highlight-color: transparent;
}

.site-nav-backdrop.is-visible {
  background: rgba(0, 0, 0, 0.22);
  opacity: 1;
  pointer-events: auto;
}

/* ---- Drawer header ---- */
.site-nav-drawer-header {
  display: flex;
  align-items: center;
  padding: 11px 14px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.site-nav-drawer-brand {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: #bbb;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
  user-select: none;
}

.site-nav-drawer-brand svg {
  opacity: 0.5;
  flex-shrink: 0;
}

/* ---- Nav item icons ---- */
.site-nav-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  flex-shrink: 0;
  transition: background 0.18s ease;
}

.site-nav-item-icon svg {
  width: 13px;
  height: 13px;
  color: #999;
  fill: currentColor;
  transition: color 0.18s ease;
  flex-shrink: 0;
}

.site-nav-drawer ul li a:hover .site-nav-item-icon {
  background: rgba(109, 219, 176, 0.12);
}

.site-nav-drawer ul li a:hover .site-nav-item-icon svg {
  color: #275766;
}

.site-nav-drawer ul li a[aria-current="page"] .site-nav-item-icon {
  background: linear-gradient(135deg, rgba(39, 87, 102, 0.12) 0%, rgba(186, 255, 192, 0.12) 100%);
}

.site-nav-drawer ul li a[aria-current="page"] .site-nav-item-icon svg {
  color: #275766;
}

html[data-theme="dark"] .site-nav-drawer ul li a[aria-current="page"] .site-nav-item-icon svg {
  color: #6ddbb0;
}

/* ---- Focus trap visible focus ---- */
.site-nav-drawer a:focus-visible,
.site-nav-drawer button:focus-visible {
  outline: 2px solid #2e5a68;
  outline-offset: 2px;
  border-radius: 4px;
}

html[data-theme="dark"] .site-nav-drawer a:focus-visible,
html[data-theme="dark"] .site-nav-drawer button:focus-visible {
  outline: 2px solid #6ddbb0;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Scroll lock ---- */
body.site-nav-open {
  overflow: hidden;
}

/* ---- Dark mode additions ---- */
html[data-theme="dark"] .site-nav-toggle::after {
  background: rgba(18, 18, 18, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.3);
}

html[data-theme="dark"] .site-nav-backdrop.is-visible {
  background: rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .site-nav-drawer-header {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .site-nav-drawer-brand {
  color: #444;
}

html[data-theme="dark"] .site-nav-item-icon {
  background: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .site-nav-item-icon svg {
  color: #555;
}

html[data-theme="dark"] .site-nav-drawer ul li a:hover .site-nav-item-icon {
  background: rgba(109, 219, 176, 0.08);
}

html[data-theme="dark"] .site-nav-drawer ul li a[aria-current="page"] .site-nav-item-icon {
  background: linear-gradient(135deg, rgba(39, 87, 102, 0.15) 0%, rgba(186, 255, 192, 0.1) 100%);
}

html[data-theme="dark"] .site-nav-drawer ul li a[aria-current="page"] .site-nav-item-icon svg {
  color: #8ee8b8;
}

/* ---- Mobile additions ---- */
@media screen and (max-width: 680px) {
  .site-nav-toggle::after {
    display: none;
  }

  .site-nav-backdrop {
    display: none;
  }

  .site-nav-drawer-header {
    padding: 28px 40px 20px;
  }

  .site-nav-drawer-brand {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }

  .site-nav-drawer-brand svg {
    width: 14px;
    height: 14px;
  }

  .site-nav-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .site-nav-item-icon svg {
    width: 17px;
    height: 17px;
  }
}
