@charset "UTF-8";
/* =======================================================
   Global Tokens, Breakpoints, Reset
   ======================================================= */
:root {
  --primary-color: #B9003B;
  --secondary-color: #2d2d2d;
  --tertiary-color: #21586b;
  --text-color: #1f1f1f;
  --green: #419768;
  --gold: #A49749;
  --white: #ffffff;
  --black: #111;
  --bg: #faf3e3;
  --bg2: #eee;
  --cover: rgba(0, 0, 0, 0.3);
  --header-height: 100px;
  /* Advanced Shadows */
  --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-colored: 0 20px 40px rgba(99, 102, 241, 0.3);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.6);
  /* Typography */
  --font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-family-serif: "Noto Sans Serif", Georgia, serif;
  --font-family-display: "Noto Sans JP", Georgia, serif;
  --font-family-montserrat: "Montserrat", sans-serif;
  --fa: "Font Awesome 5 Free";
  --font-size-base: 16px;
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;
  --spacing-5xl: 8rem;
  /* Layout */
  --container-max-width: 1440px;
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --border-radius-xl: 30px;
  --border-radius-full: 50%;
  /* Transitions */
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Breakpoints - より実用的なブレークポイントに改善 */
/* =======================================================
     Reset & Base
     ======================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-base);
  line-height: 2;
  color: var(--text-color);
  background: var(--white);
  overflow-x: hidden;
  position: relative;
  font-weight: 400;
  letter-spacing: 0.01em;
  padding-top: var(--header-height);
}
body.hidden {
  overflow: hidden;
}
@media screen and (max-width: 486px) {
  body {
    font-size: 13px;
  }
}

/* アンカー(#id)にスクロールした時のズレ補正 */
section[id],
[id][role=region] {
  scroll-margin-top: calc(var(--header-height) + 12px);
  /* 少し余白を足して見やすく */
}

/* スマホでヘッダー高が変わる場合は上書き */
@media screen and (max-width: 486px) {
  :root {
    --header-height: 72px;
  }
  /* 例: モバイルで72pxなら */
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
img.border {
  border: 1px solid #ccc;
}
img.border-purple {
  border: 1px solid #6b4ca5;
}

iframe {
  width: 100%;
  height: 450px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul,
ol {
  list-style: none;
}

address {
  font-style: normal;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
}

.site-title,
.logo {
  font-family: var(--font-family-display);
  letter-spacing: 0.04em;
}

/* =======================================================
     Utilities & Components
     ======================================================= */
.sp-only {
  display: none;
}
@media screen and (max-width: 767px) {
  .sp-only .sp-only {
    display: block;
  }
}

.u-container {
  width: min(100% - 2rem, var(--container-max-width));
  margin-inline: auto;
  padding: 0 1rem;
}
@media screen and (max-width: 767px) {
  .u-container {
    width: calc(100% - 1rem);
    padding: 0 0.5rem;
  }
}

/* Divider */
.hr,
.c-divider {
  width: 100%;
  height: 1px;
  background: #e5e5e5;
  margin: var(--spacing-xl) 0;
}

/* Buttons */
.c-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
  border: 2px solid transparent;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  /* 丸ボタン（参考の Load More 風） */
}
@media screen and (max-width: 767px) {
  .c-button {
    padding: 0.6rem 1.2rem;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
  }
}
.c-button--primary {
  background: var(--black);
  color: #fff;
}
.c-button--primary:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-medium);
}
.c-button--outline {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.c-button--outline:hover {
  background: var(--primary-color);
  color: #fff;
}
.c-button--ghost {
  background: transparent;
  color: var(--text-color);
  border: 2px dashed var(--bg2);
}
.c-button--ghost:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.c-button--pill, .works__actions .c-button--ghost {
  padding: 0.9rem 2.4rem;
  border-radius: 9999px;
  background: linear-gradient(#111, #222);
  border: 1px solid #111;
  color: #fff;
  letter-spacing: 0.08em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset;
}
.c-button--pill:hover, .works__actions .c-button--ghost:hover {
  transform: translateY(-1px);
}

/* セクション共通見出し（中央・細線） */
.c-section-title {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}
@media screen and (max-width: 767px) {
  .c-section-title {
    margin-bottom: var(--spacing-xl);
  }
}
.c-section-title__en {
  font-family: var(--font-family-montserrat);
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: 0.08em;
}
@media screen and (max-width: 767px) {
  .c-section-title__en {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
  }
}
.c-section-title__ja {
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  color: #777;
  margin-top: 0.25rem;
  letter-spacing: 0.2em;
}
@media screen and (max-width: 767px) {
  .c-section-title__ja {
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
  }
}
.c-section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  background: #dcdcdc;
  margin: 0.9rem auto 0;
}
@media screen and (max-width: 767px) {
  .c-section-title::after {
    width: 40px;
    margin: 0.7rem auto 0;
  }
}

.primary-heading {
  text-align: center;
  margin-bottom: 50px;
}
.primary-heading__label {
  font-weight: 400;
  font-size: 3rem;
  line-height: 1;
}
.primary-heading__title {
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.08em;
}
.primary-heading__description {
  margin-top: 1rem;
}

/* =======================================================
     Site Header
======================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}
.site-header__inner {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}
@media screen and (max-width: 991px) {
  .site-header__inner {
    height: 80px;
    padding: 0 1.5rem;
  }
}
@media screen and (max-width: 767px) {
  .site-header__inner {
    height: 70px;
    padding: 0 1rem;
  }
}
.site-header__brand {
  font-family: var(--font-family-montserrat);
  font-weight: 600;
  font-size: 2rem;
  color: var(--black);
  transition: var(--transition);
}
@media screen and (max-width: 991px) {
  .site-header__brand {
    font-size: 1.8rem;
  }
}
@media screen and (max-width: 767px) {
  .site-header__brand {
    font-size: 1.5rem;
  }
}
.site-header__brand:hover {
  color: var(--primary-color);
}
.site-header__nav .nav__menu {
  display: flex;
  gap: 2rem;
}
@media screen and (max-width: 991px) {
  .site-header__nav .nav__menu {
    gap: 1.5rem;
  }
}

/* ========== Hamburger (responsive) ========== */
/* ボタン */
.site-header__toggle {
  display: none;
  /* PCでは非表示 */
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
  /* 開いたときに×化 */
}
@media screen and (max-width: 767px) {
  .site-header__toggle {
    width: 40px;
    height: 40px;
  }
}
.site-header__toggle:hover {
  background: var(--bg);
  border-color: var(--primary-color);
}
.site-header__toggle .menu-toggle__bar {
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--black);
  transition: var(--transition);
  border-radius: 1px;
}
@media screen and (max-width: 767px) {
  .site-header__toggle .menu-toggle__bar {
    width: 20px;
  }
}
.site-header__toggle .menu-toggle__bar:nth-child(1) {
  transform: translateY(-7px);
}
.site-header__toggle .menu-toggle__bar:nth-child(2) {
  transform: translateY(0);
}
.site-header__toggle .menu-toggle__bar:nth-child(3) {
  transform: translateY(7px);
}
.site-header__toggle[aria-expanded=true] .menu-toggle__bar:nth-child(1) {
  transform: rotate(45deg);
}
.site-header__toggle[aria-expanded=true] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}
.site-header__toggle[aria-expanded=true] .menu-toggle__bar:nth-child(3) {
  transform: rotate(-45deg);
}

/* ナビ本体（PCは通常表示・SPはドロワー） */
.site-nav {
  position: static;
}

/* SPドロワー */
@media screen and (max-width: 991px) {
  .site-header__toggle {
    display: inline-flex;
  }
  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 0 auto;
    /* ヘッダーの下から全画面 */
    width: 100%;
    transform: translateX(100%);
    transition: var(--transition);
    z-index: 99;
    /* パネル */
    /* オーバーレイ */
  }
  .site-nav .site-header__nav {
    position: absolute;
    right: 0;
    top: 0;
    width: min(85vw, 380px);
    height: calc(100vh - var(--header-height));
    background: #fff;
    border-left: 1px solid #eee;
    padding: 1.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow-large);
  }
  .site-nav .site-header__nav .nav__menu {
    display: grid;
    gap: 0.5rem;
  }
  .site-nav .site-header__nav .nav__menu li a {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
  }
  .site-nav .site-header__nav .nav__menu li a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
  }
  .site-nav .site-nav__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }
  .site-nav.is-open {
    transform: translateX(0);
  }
  .site-nav.is-open .site-nav__overlay {
    opacity: 1;
    pointer-events: auto;
  }
  /* PC時の横並びを打ち消し（すでにPC用があるためSPでは不要） */
  .site-header__nav .nav__menu {
    display: block;
    gap: 0;
  }
}
/* PC時のヘッダー右側ナビ（既存） */
.site-header__nav .nav__menu {
  display: flex;
  gap: 2rem;
}

/* =======================================================
     Site Footer
======================================================= */
.site-footer {
  padding: 2rem 0;
  text-align: center;
  font-size: 12px;
  color: #666;
}
.site-footer__copy {
  text-align: center;
}

/* =======================================================
     Sections (BEM)
     ======================================================= */
/* Hero（参考寄せ：中央配置・白背景・下線・イラスト非表示） */
.hero {
  background: #fff;
  height: 80vh;
  max-height: 800px;
  position: relative;
}
@media screen and (max-width: 1199px) {
  .hero {
    height: 70vh;
    max-height: 600px;
  }
}
@media screen and (max-width: 767px) {
  .hero {
    height: 60vh;
    max-height: 500px;
  }
}
.hero__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.25rem;
  height: 100%;
}
.hero__brand {
  font-family: var(--font-family-montserrat);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1;
}
@media screen and (max-width: 767px) {
  .hero__brand {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
}
.hero__brand__text {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  letter-spacing: 0.08em;
  font-weight: 400;
  font-family: var(--font-family);
  margin-bottom: 2rem;
}
@media screen and (max-width: 767px) {
  .hero__brand__text {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 1.5rem;
  }
}
.hero__title {
  font-weight: 600;
  font-size: clamp(1.2rem, 5vw, 2rem);
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}
@media screen and (max-width: 767px) {
  .hero__title {
    font-size: clamp(1rem, 4vw, 1.5rem);
  }
}
.hero__subtitle {
  margin-bottom: 1.5rem;
  font-size: clamp(1rem, 3vw, 1.1rem);
}
@media screen and (max-width: 767px) {
  .hero__subtitle {
    margin-bottom: 1rem;
  }
}
.hero__actions {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  justify-content: center;
}
.hero__illustration {
  display: none;
}

.message {
  padding: var(--spacing-4xl) 0;
  border-top: 1px solid var(--black);
}
@media screen and (max-width: 1199px) {
  .message {
    padding: var(--spacing-3xl) 0;
  }
}
@media screen and (max-width: 767px) {
  .message {
    padding: var(--spacing-2xl) 0;
  }
}
.message__inner {
  max-width: 1080px;
}
.message__content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;
}
@media screen and (max-width: 991px) {
  .message__content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}
@media screen and (max-width: 767px) {
  .message__content {
    gap: 1rem;
  }
}
.message__img {
  width: 200px;
  border-radius: 50%;
  overflow: hidden;
}
@media screen and (max-width: 767px) {
  .message__img {
    width: 150px;
  }
}
.message__text {
  flex: 1;
}
@media screen and (max-width: 767px) {
  .message__text {
    text-align: left;
  }
}
.message__text p:not(:last-child) {
  margin-bottom: 1rem;
}
.message__title {
  font-family: var(--font-family-montserrat);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 1.6rem;
  margin-bottom: 2rem;
  position: relative;
  text-align: center;
}

/* Services（白カード・極薄ボーダー・影なし） */
.services {
  padding: var(--spacing-4xl) 0;
  background: #fff;
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
}
.services__title {
  text-align: center;
  font-family: var(--font-family-montserrat);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 1.6rem;
  margin-bottom: 2rem;
  position: relative;
}
.services__title::after {
  content: "";
  width: 56px;
  height: 1px;
  background: #ddd;
  display: block;
  margin: 0.9rem auto 0;
}
.services__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media screen and (max-width: 1199px) {
  .services__list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 767px) {
  .services__list {
    grid-template-columns: 1fr;
  }
}
.services__item {
  padding: 2rem;
}
@media screen and (max-width: 1199px) {
  .services__item {
    padding: 1.5rem;
  }
}
@media screen and (max-width: 767px) {
  .services__item {
    padding: 1.25rem;
  }
}
.services__item:not(:last-child) {
  border-right: 1px solid var(--black);
}
@media screen and (max-width: 1199px) {
  .services__item:not(:last-child):nth-child(2n) {
    border-right: none;
  }
}
@media screen and (max-width: 767px) {
  .services__item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--black);
  }
}

/* サービス アイコン（丸背景 + 中央寄せ + ホバーでわずかにトーン変化） */
.service-card {
  /* ホバー時は枠色だけ少し濃くする */
}
.service-card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--spacing-md);
  border-radius: var(--border-radius-full);
  background: #fff;
  border: 1px solid var(--black);
}
.service-card__icon i {
  font-size: 22px;
  color: var(--black);
  line-height: 1;
}
.service-card__title {
  text-align: center;
  margin-bottom: 1rem;
}
.service-card:hover {
  border-color: #dcdcdc;
}

/* もしブランドカラー版にしたい場合（黒丸→グラデ丸）：
.service-card__icon {
  background: linear-gradient(180deg, var(--primary-color), var(--tertiary-color));
}
*/
/* Works（3列 / 4:3 / タイトル小さめ / 丸い“もっと見る”） */
.works {
  padding: var(--spacing-4xl) 0;
  background: #fafafa;
  border-top: 1px solid #eee;
  border-bottom: 1px solid var(--black);
}
.works__title {
  text-align: center;
  font-family: var(--font-family-montserrat);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 1.6rem;
  margin-bottom: 2rem;
  position: relative;
}
.works__title::after {
  content: "";
  width: 56px;
  height: 1px;
  background: #ddd;
  display: block;
  margin: 0.9rem auto 0;
}
.works__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  align-items: stretch;
}
@media screen and (max-width: 1199px) {
  .works__grid {
    gap: 1.5rem;
  }
}
@media screen and (max-width: 767px) {
  .works__grid {
    gap: 1rem;
  }
}
.works__grid > .work-card {
  grid-column: span 4;
  display: flex;
}
@media screen and (max-width: 1199px) {
  .works__grid > .work-card {
    grid-column: span 6;
  }
}
@media screen and (max-width: 991px) {
  .works__grid > .work-card {
    grid-column: span 6;
  }
}
@media screen and (max-width: 767px) {
  .works__grid > .work-card {
    grid-column: 1/-1;
  }
}
.works__filter {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}
@media screen and (max-width: 767px) {
  .works__filter {
    margin-bottom: var(--spacing-xl);
  }
}
.works__actions {
  text-align: center;
  margin-top: var(--spacing-2xl);
  /* HTML変更なしで丸ボタン化 */
}
.works__pagination {
  text-align: center;
  margin-top: var(--spacing-2xl);
}
@media screen and (max-width: 767px) {
  .works__pagination {
    margin-top: var(--spacing-xl);
  }
}

.work-card {
  border: 1px solid #eaeaea;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
  height: 100%;
}
.work-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}
.work-card__link {
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}
.work-card__thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f4f4f5;
  position: relative;
}
.work-card__img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  -o-object-position: center top;
     object-position: center top;
  transition: transform 0.6s ease;
}
.work-card:hover .work-card__img {
  transform: scale(1.03);
}
.work-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
@media screen and (max-width: 767px) {
  .work-card__body {
    padding: 1rem;
  }
}
.work-card__title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 0;
  color: var(--text-color);
  flex-shrink: 0;
}
@media screen and (max-width: 767px) {
  .work-card__title {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
}
.work-card__title a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}
.work-card__title a:hover {
  color: var(--primary-color);
}
.work-card__excerpt {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}
@media screen and (max-width: 767px) {
  .work-card__excerpt {
    font-size: 0.85rem;
    margin-top: 0.375rem;
    margin-bottom: 0.75rem;
  }
}
.work-card__skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  list-style: none;
  padding: 0;
  flex-shrink: 0;
}
@media screen and (max-width: 767px) {
  .work-card__skills-list {
    gap: 0.375rem;
  }
}
.work-card__skills-item {
  margin: 0;
}
.work-card__skills-link {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  color: var(--text-color);
  background: var(--bg);
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}
@media screen and (max-width: 767px) {
  .work-card__skills-link {
    padding: 0.25rem 0.7rem;
    font-size: 0.75rem;
  }
}

/* Term List (スキルフィルター) */
.term-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media screen and (max-width: 767px) {
  .term-list {
    gap: 0.375rem;
  }
}
.term-list li {
  margin: 0;
}
.term-list a {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--text-color);
  background: var(--white);
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
@media screen and (max-width: 767px) {
  .term-list a {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
}
.term-list a:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  transform: translateY(-1px);
}
.term-list a.current, .term-list a:focus {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

/* =======================================================
     Portfolio Archive Page & Skill Taxonomy Page
======================================================= */
.portfolio-archive,
.tax-skill {
  padding: var(--spacing-4xl) 0;
  background: #fafafa;
}
.portfolio-archive__header,
.tax-skill__header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}
@media screen and (max-width: 767px) {
  .portfolio-archive__header,
.tax-skill__header {
    margin-bottom: var(--spacing-2xl);
  }
}
.portfolio-archive__title,
.tax-skill__title {
  font-family: var(--font-family-montserrat);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--text-color);
}
@media screen and (max-width: 767px) {
  .portfolio-archive__title,
.tax-skill__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
  }
}
.portfolio-archive__description,
.tax-skill__description {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}
@media screen and (max-width: 767px) {
  .portfolio-archive__description,
.tax-skill__description {
    font-size: 1rem;
  }
}
.portfolio-archive__grid,
.tax-skill__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
@media screen and (max-width: 1199px) {
  .portfolio-archive__grid,
.tax-skill__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}
@media screen and (max-width: 767px) {
  .portfolio-archive__grid,
.tax-skill__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
.portfolio-archive__pagination,
.tax-skill__pagination {
  margin-top: var(--spacing-3xl);
  text-align: center;
}
@media screen and (max-width: 767px) {
  .portfolio-archive__pagination,
.tax-skill__pagination {
    margin-top: var(--spacing-2xl);
  }
}

/* Profile / Skills（画像左・テキスト右、チップ・チェック記号） */
.profile {
  padding: var(--spacing-4xl) 0;
  background: #fff;
}
.profile__content {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 4rem;
}
@media screen and (max-width: 1199px) {
  .profile__content {
    gap: 3rem;
  }
}
@media screen and (max-width: 991px) {
  .profile__content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
}
@media screen and (max-width: 767px) {
  .profile__content {
    gap: 1.5rem;
  }
}
.profile .profile__icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}
@media screen and (max-width: 767px) {
  .profile .profile__icons {
    gap: 0.75rem;
    margin-top: 1rem;
  }
}
.profile .profile__icons .profile__icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e5e5;
  border-radius: var(--border-radius-full);
  background: #fff;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}
@media screen and (max-width: 767px) {
  .profile .profile__icons .profile__icon {
    width: 70px;
    height: 70px;
  }
}
.profile .profile__icons .profile__icon i {
  font-size: 28px;
  color: var(--text-color);
}
@media screen and (max-width: 767px) {
  .profile .profile__icons .profile__icon i {
    font-size: 24px;
  }
}
.profile .profile__icons .profile__icon:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}
.profile .profile__icons .profile__icon:hover i {
  color: var(--primary-color);
}
.profile__title {
  text-align: center;
  font-family: var(--font-family-montserrat);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 1.6rem;
  margin-bottom: 2rem;
  position: relative;
}
.profile__title::after {
  content: "";
  width: 56px;
  height: 1px;
  background: #ddd;
  display: block;
  margin: 0.9rem auto 0;
}
.profile__img {
  width: 100%;
  border-radius: 0;
  box-shadow: var(--shadow-light);
}
.profile__lead {
  margin-bottom: var(--spacing-xl);
  color: #777;
}

.skills {
  /* Font Awesome のチェック（読み込み必須） */
}
.skills__title {
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}
.skills__group {
  margin-bottom: var(--spacing-lg);
}
.skills__group-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.skills__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.95rem;
}
.skills__item::before {
  content: "\f00c";
  font-family: var(--fa);
  font-weight: 900;
  margin-right: 0.35rem;
  color: var(--green);
}

/* 任意：タグチップ */
.c-chip {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  color: #666;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  background: #fff;
}

/* Merits（白い丸角の横長カード + 左に金の丸） */
.merits {
  padding: var(--spacing-4xl) 0;
  background: #f6f7f8;
}
.merits__title {
  text-align: center;
  font-family: var(--font-family-montserrat);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 1.6rem;
  margin-bottom: 2rem;
  position: relative;
}
.merits__title::after {
  content: "";
  width: 56px;
  height: 1px;
  background: #ddd;
  display: block;
  margin: 0.9rem auto 0;
}
.merits__list {
  display: grid;
  gap: 1rem;
  max-width: 840px;
  margin: 0 auto;
}
.merits__item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  box-shadow: none;
}
.merits__icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
}
.merits__text {
  font-weight: 600;
  color: #333;
}

.contact-cta {
  background-color: var(--black);
}
.contact-cta__inner {
  max-width: 840px;
}
.contact-cta .primary-heading {
  color: var(--white);
}
.contact-cta__content {
  color: var(--white);
}
.contact-cta__text {
  margin-bottom: 2rem;
}
.contact-cta__actions .wpcf7-form {
  color: var(--white);
}
.contact-cta__actions .wpcf7-form input[type=text],
.contact-cta__actions .wpcf7-form input[type=email],
.contact-cta__actions .wpcf7-form input[type=tel],
.contact-cta__actions .wpcf7-form textarea {
  background-color: var(--white);
  color: var(--black);
  width: 100%;
  font-size: 1rem;
  padding: 20px;
  border: none;
}
.contact-cta__actions .wpcf7-form .wpcf7-not-valid-tip {
  color: var(--white);
}
.contact-cta__actions .wpcf7-form .submit {
  display: block;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: 60px;
  padding: 10px 20px;
  width: 300px;
}

/* Helper spacing */
.services,
.works,
.profile,
.merits,
.contact-cta {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
@media screen and (max-width: 1199px) {
  .services,
.works,
.profile,
.merits,
.contact-cta {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}
@media screen and (max-width: 767px) {
  .services,
.works,
.profile,
.merits,
.contact-cta {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* Footer mini nav（必要なら） */
.footer-nav {
  border-top: 1px solid #eee;
  padding: 1.25rem 0;
  text-align: center;
}
.footer-nav__list {
  display: inline-flex;
  gap: 1.25rem;
  font-size: 0.86rem;
  color: #666;
}
.footer-nav__link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.c-panel {
  font-size: 0.9rem;
  line-height: 1.6;
  background: #2b2b2b;
  padding: 1.2rem;
  border-radius: 6px;
  max-height: 180px;
  /* 長文ならスクロール可にする */
  overflow-y: auto;
}
.c-panel h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.c-panel h4 {
  font-size: 0.95rem;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}
.c-panel p {
  margin-bottom: 0.5rem;
}
.c-panel__label {
  display: flex;
  gap: 15px;
}

.c-check {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.c-check .wpcf7-form-control-wrap {
  display: block;
  margin: 1.5rem 0;
  text-align: center;
  width: 100%;
}
.c-check .wpcf7-form-control-wrap .wpcf7-list-item {
  margin: 0;
  display: block;
  width: 100%;
}
.c-check .wpcf7-form-control-wrap .wpcf7-list-item span {
  position: relative;
  display: block;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  padding-left: 20px;
  margin: 0 auto;
}
.c-check .wpcf7-form-control-wrap .wpcf7-list-item span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-color: var(--white);
}
.c-check .wpcf7-form-control-wrap .wpcf7-list-item span::after {
  content: "\f00c";
  font-family: var(--fa);
  font-weight: 900;
  color: var(--black);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
}
.c-check .wpcf7-form-control-wrap input {
  display: none;
}
.c-check .wpcf7-form-control-wrap input:checked + span::after {
  opacity: 1;
}

.c-form__row {
  margin-bottom: 2rem;
}
.c-form__label {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 0.5rem;
}
.c-form__label .is-required {
  background-color: #fff;
  color: var(--black);
  padding: 5px 10px;
  line-height: 1;
  font-size: 12px;
}

/* ===== Single Portfolio ===== */
.l-container,
.container {
  /* あなたのテーマのコンテナに合わせて */
  width: min(100% - 2rem, var(--container-max-width));
  margin-inline: auto;
}

.single-portfolio {
  padding-block: 3rem;
  padding-top: 5rem;
  max-width: 860px;
  margin: 0 auto;
  width: 96%;
}
.single-portfolio__header {
  margin-bottom: 1.25rem;
}
.single-portfolio__title {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
.single-portfolio__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: 0.9rem;
}
.single-portfolio__skills .single-portfolio__skill {
  padding: 0.2rem 0.6rem;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  background: #fff;
}
.single-portfolio__thumb {
  aspect-ratio: 16/9;
  background: #f5f5f5;
  overflow: hidden;
  margin-bottom: 50px;
}
.single-portfolio__thumb.is-noimage {
  display: grid;
  place-items: center;
}
.single-portfolio__img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center top;
     object-position: center top;
}
.single-portfolio__meta {
  align-self: start;
  border: 1px solid #eee;
  padding: 1.25rem;
  border-radius: 8px;
  background: #fff;
}
.single-portfolio__meta-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.single-portfolio__cta {
  margin-top: 1rem;
}

/* 定義リスト（行レイアウト） */
.meta-list {
  display: grid;
  gap: 0.75rem;
}
.meta-list__row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.75rem;
}
@media screen and (max-width: 486px) {
  .meta-list__row {
    grid-template-columns: 1fr;
  }
}
.meta-list__term {
  color: #666;
  font-weight: 600;
}
.meta-list__desc {
  word-break: break-word;
}
.meta-list__link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eee;
}
.post-nav a {
  text-decoration: underline;
  text-underline-offset: 3px;
}