/* ===================================================
  Portfolio Site Stylesheet
  - BEMを意識したクラス設計
  - WordPress化を前提（header / sidebar / footer / works-card / section-title）
  - Flexbox中心、Gridは部分使用、position: fixed使用
  - 単位はrem
=================================================== */

/* ---------------------------------------------------
  Reset / Base
--------------------------------------------------- */
/* PC */
.container {
  display: flex;
}

/* スマホ */
@media (max-width: 768px) {
  .container {
    display: block;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-weight: 400;
  color: #4a4a4a;
  background-color: #ffffff;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul,
li {
  list-style: none;
}

/* ---------------------------------------------------
  Variables（CSSカスタムプロパティ）
--------------------------------------------------- */
:root {
  --color-bg: #ffffff;
  --color-bg-soft: #dde8ee; /* 薄いくすみブルー */
  --color-bg-base: #f2f2f2; /* ベースのライトグレー */
  --color-cream: #e6e0ca; /* クリーム（差し色） */
  --color-accent: #5b8aa8; /* くすみブルー */
  --color-accent-dark: #2d5b75; /* 見出し用の濃い青 */
  --color-navy: #061222; /* CONTACT・SKILLS帯などの紺 */
  --color-text: #4a4a4a;
  --color-text-light: #9a9a9a;
  --color-heading: #333333;
  --color-line: #c7d6dd;

  --font-heading: "Cinzel Decorative", "Cormorant Garamond", serif;
  --font-sans: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;

  --sidebar-width: 9rem; /* 144px: SNS WORKSを1行で表示 */
  --content-max-width: 64rem;
}

/* ---------------------------------------------------
  Layout: サイドバー＋メインエリアの土台
--------------------------------------------------- */
.l-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ---------------------------------------------------
  Sidebar（左固定サイドバー）
--------------------------------------------------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0 1.75rem;
  background-color: var(--color-bg);
  border-right: 1px solid var(--color-line);
  z-index: 100;
}

.sidebar__logo img {
  width: 55px;
  transition: all 0.4s ease;
}

.sidebar__logo img:hover {
  transform: rotate(5deg);
  opacity: 0.8;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar__nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.sidebar__nav a {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--color-text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.sidebar__nav a:hover {
  color: var(--color-accent);
  transform: translateX(3px);
}

.sidebar__nav-item {
  /* 横書きのまま、画像のTOP/About/Works/Contact表記に合わせる */
}

.sidebar__nav-link {
  position: relative;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--color-text);
  transition: color 0.3s ease;
  white-space: nowrap;
}

.sidebar__nav-link:hover {
  color: var(--color-accent-dark);
  transform: translateX(4px);
}

.sidebar__nav-link.is-current {
  color: var(--color-accent-dark);
  font-weight: 600;
}


.sidebar__sns {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.sidebar__sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.625rem;
  height: 1.625rem;
  color: var(--color-text);
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.sidebar__sns-link:hover {
  color: var(--color-accent-dark);
  transform: translateY(-4px);
}

.sidebar__sns-icon {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}

/* ---------------------------------------------------
  Main Area（メインエリア：サイドバー分の余白を確保）
--------------------------------------------------- */
.main {
  flex: 1;
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
}

/* ---------------------------------------------------
  Section Title（セクションタイトル横にライン）
--------------------------------------------------- */
.section-title {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.section-title__main {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--color-accent-dark);
  white-space: nowrap;
}

.section-title__line {
  flex: 1;
  height: 1px;
  background-color: var(--color-line);
  max-width: 12rem;
}

/* セクション共通の余白 */
.section {
  padding: 6rem 4.5rem;
}

.section--soft {
  background-color: var(--color-bg-soft);
}

.section__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

/* ---------------------------------------------------
  Works カテゴリ表記 / カテゴリナビ（TOP・カテゴリページ共通）
--------------------------------------------------- */
.works-category {
  margin: 0 0 2.25rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  text-transform: uppercase;
}

/* TOPページ Works セクションのみ見出し直下へ寄せる（従来の見た目を維持） */
#works .works-category {
  margin-top: -1.75rem;
}

.works-category__link {
  color: inherit;
  text-decoration: none;
  padding-bottom: 0.12em;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.works-category__link:hover,
.works-category__link:focus-visible {
  color: var(--color-accent-dark);
  border-bottom-color: var(--color-accent-dark);
}

.works-category__link.is-current {
  color: var(--color-accent-dark);
  border-bottom-color: var(--color-accent-dark);
  cursor: default;
}

@media (max-width: 768px) {
  .works-category {
    margin-bottom: 1.75rem;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
  }

  #works .works-category {
    margin-top: -1rem;
  }
}



/* ---------------------------------------------------
  Main Visual（TOPページ：メインビジュアル）
--------------------------------------------------- */
.mv {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 38rem;
  background-color: var(--color-bg-soft);
  background-image: linear-gradient(135deg, #dde8ee 0%, #b9cdd9 100%);
  overflow: hidden;
}

.mv__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.mv__body {
  position: relative;
  z-index: 1;
  text-align: center;
}

.mv__catch {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-accent-dark);
}

.mv__lead {
  margin-top: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  color: var(--color-accent-dark);
}

/* ---------------------------------------------------
  Works（2列カードレイアウト）
--------------------------------------------------- */
.works-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.works-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.works-card__thumb {
  overflow: hidden;
  background-color: #d6d6d6;
  aspect-ratio: 4 / 3;
}

.works-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.works-card__image--business-card {
  object-position: center;
}

.works-card__image--kisetsu-box {
  object-position: right center;
}

.works-card__image--mellow {
  object-fit: contain;
  background-color: #eef1f4;
}

/* SOBANOMA: 横長モックアップを切らずに、WORKS一覧カードと同程度の存在感で表示。
   thumb の overflow:hidden でカード外へははみ出さない。 */
.works-card__image--sobanoma {
  object-fit: contain;
  object-position: center;
  background-color: #eef1f4;
  transform: scale(1.2);
}

/* MUSEE: モックアップ全体を切らずに contain で収める。余白（レターボックス）は
   モック画像の背景と同じ白に。拡大しないので thumb 外にはみ出さず切れない。
   カードの大きさ・文字位置は共通のまま。 */
.works-card__image--musee {
  object-fit: contain;
  object-position: center;
  background-color: #ffffff;
  transform: scale(1);
}

.works-card__link:hover .works-card__image {
  transform: scale(1.04);
  opacity: 0.9;
}

/* SOBANOMA は通常時の拡大を基準に、hover はごく軽く上乗せ
   （共通の scale(1.04) と競合させないため、この規則を後ろに置く） */
.works-card__link:hover .works-card__image--sobanoma {
  transform: scale(1.24);
  opacity: 0.9;
}

/* MUSEE は hover でも拡大しない（切れ防止）。共通の dim だけ効かせる */
.works-card__link:hover .works-card__image--musee {
  transform: scale(1);
  opacity: 0.9;
}

.works-card__body {
  padding: 0.75rem 1rem;
  background-color: var(--color-bg-soft);
}

.works-card__title {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-heading);
}

.works-card__category {
  margin-top: 0.25rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
}

@media (max-width: 680px) {
  .works-list {
    grid-template-columns: 1fr;
  }
}



/* ---------------------------------------------------
  About（TOPページ内の概要ブロック）
--------------------------------------------------- */
.about-intro {
  display: flex;
  gap: 3.5rem;
  align-items: center;
}

.about-intro__image-wrap {
  position: relative;

  flex: 0 0 11rem;
  width: 11rem;
  height: 11rem;

  padding: 0.5rem;

  border-radius: 50%;
  overflow: visible;
}

.about-intro__image-wrap::before {
  content: "";

  position: absolute;
  inset: 0;

  border: 1px solid rgba(91, 132, 166, 0.5);
  border-radius: 50%;

  transition: all 0.5s ease;
}

.about-intro__image-wrap:hover::before {
  transform: scale(1.08);
  opacity: 0.5;
}

.about-intro__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.about-intro__body {
  flex: 1;
}

.about-intro__name {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-heading);
}

.about-intro__name-en {
  display: block;
  margin-top: 0.375rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  color: var(--color-accent-dark);
}

.about-intro__text {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 2;
  color: var(--color-text);
}

.about-intro__more {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-intro__more-line {
  flex: 1;
  height: 1px;
  max-width: 8rem;
  background-color: var(--color-line);

  transition: all 0.4s ease;
}

.about-intro__button {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-align: center;

  color: var(--color-accent-dark);
  text-decoration: none;

  transition: all 0.4s ease;
}

.about-intro__more:hover .about-intro__button {
  color: var(--color-navy);
  transform: translateX(8px);
  letter-spacing: 0.14em;
}

.about-intro__more:hover .about-intro__more-line {
  max-width: 10rem;
}

/* ---------------------------------------------------
  Skills
--------------------------------------------------- */

.skills {
  margin-top: 2rem;
  padding: 4.5rem 4rem;
  background-color: var(--color-accent);
  border-radius: 1.5rem;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.skills-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.skills-item__icon-svg {
  color: #ffffff;
}

.skills-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);

  box-shadow:
    0 10px 20px rgba(0,0,0,0.12),
    0 3px 8px rgba(0,0,0,0.08);
}

.skills-item__icon-svg {
  width: 50px;
  height: 50px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skills-item__title {
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.skills-item__text {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
}

.skills-item__text {
  min-height: 90px;
}

.skills-item__tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.skills-item__tag {
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  color: var(--color-accent-dark);
  background: #ffffff;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 999px;
}

.skills-sns {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3.25rem;
  padding-top: 3.25rem;
  text-align: center;
}

.skills-sns::before {
  position: absolute;
  top: 0;
  right: 1rem;
  left: 1rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.32);
  content: "";
}

.skills-sns__description {
  width: min(100%, 42rem);
  min-height: 0;
}

.skills-sns__tags {
  flex-wrap: nowrap;
}

.skills-sns__cta {
  display: inline-flex;
  min-width: 18rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.5rem;
  padding: 0.65rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease;
}

.skills-sns__cta:hover,
.skills-sns__cta:focus-visible {
  color: var(--color-accent-dark);
  background-color: #ffffff;
}

.skills-sns__cta:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* ---------------------------------------------------
  Contact
--------------------------------------------------- */

.contact {
  padding: 4rem 2.5rem 1rem;
  background-color: var(--color-navy);
  color: #ffffff;
}

.contact__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.contact__title {
  font-family: "Cinzel Decorative", serif;
  font-size: 2.3rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.contact__email {
  margin-top: 1.5rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.85);
}

.contact__sns {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.contact__sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #ffffff;
  transition: 0.3s;
}

.contact__sns-link:hover {
  opacity: 0.7;
  transform: translateY(-4px);
}

.contact__sns-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.contact__copyright {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.3);

  text-align: center;

  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
}
/* ---------------------------------------------------
  Footer
--------------------------------------------------- */
.footer {
  padding: 1.5rem 4.5rem;
  background-color: var(--color-navy);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer__copyright {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}

/* =====================================================
  ABOUTページ専用
===================================================== */

/* ---------------------------------------------------
  Page Header（ABOUTページ上部の見出し帯）
--------------------------------------------------- */
.page-header {
  padding: 4rem 4.5rem 1rem;
  text-align: center;
}

.page-header__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  letter-spacing: 0.2em;
  color: var(--color-accent-dark);
}

/* ---------------------------------------------------
  Profile
--------------------------------------------------- */

.profile {
  display: flex;
  gap: 4.5rem;
  align-items: center;
}

.profile__image-wrap {
  position: relative;

  flex: 0 0 14rem;
  width: 14rem;
  height: 14rem;
  padding: 0.6rem;
  border-radius: 50%;
  background: #f8f8f8;
  overflow: visible;
}

.profile__image-wrap::before {
  content: "";

  position: absolute;
  inset: 0;

  border: 1px solid rgba(95, 135, 170, 0.45);

  border-radius: 50%;

  transition:
    transform .5s ease,
    opacity .5s ease;
}

.profile__image-wrap:hover::before {
  transform: scale(1.08);
  opacity: .45;
}

.profile__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.profile__body {
  flex: 1;
}

.profile__name {
  font-family: var(--font-sans);
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-heading);
}

.profile__name-en {
  display: block;
  margin-top: 0.5rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--color-accent-dark);
}

.profile__text {
  margin-top: 2rem;
  font-size: 0.95rem;
  line-height: 2.3;
  color: var(--color-text);
}

/* ---------------------------------------------------
  Strengths
--------------------------------------------------- */

.strengths-list {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.strengths-item {
  display: flex;
  align-items: center;
  gap: 3rem;

  padding-bottom: 2.5rem;

  border-bottom: 1px solid rgba(95,135,170,0.35);
}

.strengths-item:last-child {
  border-bottom: none;
}

.strengths-item__number-wrap {
  flex: 0 0 8rem;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* 後で画像を入れるため一旦余白のみ */
.strengths-item__number-circle {
  width: 6rem;
  height: 6rem;
}

.strengths-item__number {
  display: none;
}

.strengths-item__body {
  flex: 1;
}

.strengths-item__title {
  font-family: "Zen Old Mincho", serif;

  font-size: 1.2rem;

  font-weight: 500;

  letter-spacing: 0.08em;

  color: var(--color-heading);

  line-height: 1.8;
}

.strengths-item__text {
  margin-top: 1rem;

  font-size: 0.9rem;

  line-height: 2.2;

  letter-spacing: 0.03em;

  color: rgba(50, 55, 65, 0.9);
}

.strengths-item__number-image {
  width: 130px;
  height: auto;
  transition:
    transform 0.5s ease,
    opacity 0.5s ease;
}


.strengths-item:hover .strengths-item__number-image {
  transform:
    translateY(-3px)
    scale(1.03);
}

/* ---------------------------------------------------
  Biography
--------------------------------------------------- */

.biography-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.biography-item {
  position: relative;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  padding-left: 2rem;
}

/* ドット */
.biography-item::before {
  content: "";
  position: absolute;
  top: 0.9rem;
  left: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--color-accent-dark);
  z-index: 2;
}

/* 縦線 */
.biography-item::after {
  content: "";

  position: absolute;

  top: 1.3rem;
  left: 0.22rem;

  width: 1px;

  height: calc(100% + 2rem);

  background-image:
    linear-gradient(
      to bottom,
      var(--color-accent) 50%,
      transparent 50%
    );

  background-size: 1px 8px;

  opacity: 0.7;
}

/* 最後だけ少し短くする */
.biography-item:last-child::after {
  height: 3rem;
}

.biography-item__year {
  flex: 0 0 5rem;
  font-family: "Cinzel Decorative", serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--color-accent-dark);
  line-height: 1.4;
}

.biography-item__text {
  flex: 1;
  font-size: 0.9rem;
  line-height: 2.1;
  color: rgba(50, 55, 65, 0.9);
}

/* ---------------------------------------------------
  Likes（画像を横並び）
--------------------------------------------------- */
.likes-list {
  display: flex;
  gap: 1.25rem;
}

.likes-item {
  flex: 1;
}

.likes-item__image-wrap {
  overflow: hidden;
  border-radius: 0.25rem;
  aspect-ratio: 3 / 4;
  background-color: var(--color-bg-soft);
}

.likes-item__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.likes-item__caption {
  margin-top: 1rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-accent-dark);
  text-align: center;
  transition: all 0.3s ease;
}

.likes-item:hover .likes-item__caption {
  color: var(--color-heading);

  letter-spacing: 0.12em;
}

.likes-item__image {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.4s ease;
}

.likes-item:hover .likes-item__image {
  transform: scale(1.05);
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*==========================
Loading
==========================*/

#loading{
    position: fixed;
    inset: 0;
    background: #EDF5FB;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;

    opacity: 1;
    visibility: visible;

    transition:
        opacity 1s ease,
        visibility 1s ease;
}

.loading-inner{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
}

.loading-inner img{
    width: 60px;
    height:auto;

    opacity:0;
    transform:translateY(25px);

    animation:logoFade 1.3s ease forwards;
}

.loading-inner p{

    margin-top:18px;

    font-family:"Cormorant Garamond", serif;

    font-size:18px;

    letter-spacing:.35em;

    color:#1E4B73;

    opacity:0;

    animation:textFade .8s ease .6s forwards;
}

#loading.loaded{

    opacity:0;

    visibility:hidden;

}

/* ロゴ */

@keyframes logoFade{

    0%{
        opacity:0;
        transform:translateY(25px);
    }

    100%{
        opacity:1;
        transform:translateY(0);
    }

}

/* テキスト */

@keyframes textFade{

    from{
        opacity:0;
    }

    to{
        opacity:1;
    }

}

/* =====================================================
  Responsive: common / TOP / ABOUT
  767px以下をスマホ表示、480px以下を小型端末として調整
===================================================== */

@media (max-width: 767px) {
  :root {
    --sidebar-width: 0px;
  }

  html {
    scroll-padding-top: 7rem;
  }

  body {
    overflow-x: hidden;
  }

  /* ---------- Common layout ---------- */
  body .l-wrapper {
    display: block;
    width: 100%;
    min-height: 100vh;
  }

  body .sidebar {
    position: sticky;
    top: 0;
    left: auto;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    justify-items: center;
    gap: 0.65rem;
    padding: 0.7rem 1.25rem 0.8rem;
    background-color: rgba(255, 255, 255, 0.97);
    border-right: 0;
    border-bottom: 1px solid var(--color-line);
    z-index: 1000;
  }

  body .sidebar__logo,
  body .sidebar__logo-link {
    display: block;
  }

  body .sidebar__logo img {
    width: 2.65rem;
  }

  body .sidebar__nav {
    display: block;
    width: 100%;
  }

  body .sidebar__nav-list {
    width: min(100%, 27rem);
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  body .sidebar__nav a,
  body .sidebar__nav-link {
    display: block;
    padding: 0.15rem 0.2rem;
    font-size: 0.82rem;
    line-height: 1.4;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  body .sidebar__nav a:hover,
  body .sidebar__nav-link:hover {
    transform: none;
  }

  body .sidebar__sns {
    display: none;
  }

  body .main {
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .section__inner {
    width: 100%;
  }

  .section-title {
    gap: 0.9rem;
    margin-bottom: 2.25rem;
  }

  .section-title__main {
    font-size: clamp(1.65rem, 7vw, 2rem);
    letter-spacing: 0.06em;
  }

  .section-title__line {
    min-width: 0;
    max-width: none;
  }

  .contact {
    padding: 3.5rem 1.5rem 1rem;
  }

  .contact__title {
    font-size: 1.8rem;
  }

  .contact__email {
    font-size: 1rem;
    overflow-wrap: anywhere;
  }

  .footer {
    padding: 1.25rem 1.5rem;
  }

  /* ---------- TOP: main visual ---------- */
  .mv {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    background: var(--color-bg-soft);
  }

  .mv > img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* ---------- TOP: works ---------- */
  .works-list {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .works-card__body {
    padding: 0.9rem 1rem;
  }

  .works-card__title {
    font-size: 0.95rem;
  }

  .works-card__category {
    font-size: 0.75rem;
  }

  /* ---------- TOP: about ---------- */
  .about-intro {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .about-intro__image-wrap {
    flex: 0 0 10rem;
    width: 10rem;
    height: 10rem;
  }

  .about-intro__body {
    width: 100%;
  }

  .about-intro__name,
  .about-intro__name-en {
    text-align: center;
  }

  .about-intro__text {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    line-height: 2;
  }

  .about-intro__more {
    justify-content: center;
    gap: 1rem;
  }

  .about-intro__more-line {
    flex: 0 1 6rem;
  }

  /* ---------- TOP: skills ---------- */
  .skills {
    margin-top: 0;
    height: auto;
    padding: 2.5rem 1.5rem;
    border-radius: 1rem;
  }

  .skills-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .skills-item {
    width: 100%;
    padding: 1.75rem 0;
  }

  .skills-item:first-child {
    padding-top: 0;
  }

  .skills-item:last-child {
    padding-bottom: 0;
  }

  .skills-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  }

  .skills-item__icon {
    width: 6.25rem;
    height: 6.25rem;
  }

  .skills-item__icon-svg {
    width: 2.6rem;
    height: 2.6rem;
  }

  .skills-item__title {
    margin-top: 1.15rem;
    font-size: 1rem;
  }

  .skills-item__text {
    width: min(100%, 17.5rem);
    min-height: 0;
    margin-top: 0.7rem;
    font-size: 0.82rem;
    line-height: 1.9;
  }

  .skills-item__text br {
    display: none;
  }

  .skills-item__tags {
    margin-top: 1.2rem;
  }

  .skills-item__tag {
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
  }

  .skills-sns {
    margin-top: 2rem;
    padding-top: 2.25rem;
  }

  .skills-sns::before {
    right: 7.5%;
    left: 7.5%;
  }

  .skills-sns__description {
    width: min(100%, 17.5rem);
  }

  .skills-sns__tags {
    width: min(100%, 17.5rem);
    flex-wrap: wrap;
  }

  .skills-sns__cta {
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    min-height: 2.75rem;
    padding-inline: 1.1rem;
    font-size: 0.82rem;
  }

  /* ---------- ABOUT: page header / profile ---------- */
  .page-header {
    padding: 2.75rem 1.5rem 0;
  }

  .page-header__title {
    font-size: 1.8rem;
    letter-spacing: 0.14em;
  }

  .profile {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .profile__image-wrap {
    flex: 0 0 11.5rem;
    width: 11.5rem;
    height: 11.5rem;
  }

  .profile__body {
    width: 100%;
  }

  .profile__name,
  .profile__name-en {
    text-align: center;
  }

  .profile__name {
    font-size: 1.45rem;
  }

  .profile__name-en {
    font-size: 1rem;
  }

  .profile__text {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    line-height: 2.1;
  }

  /* ---------- ABOUT: strengths ---------- */
  .strengths-list {
    gap: 2.5rem;
  }

  .strengths-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding-bottom: 2.25rem;
  }

  .strengths-item__number-wrap {
    flex: none;
    width: auto;
    justify-content: flex-start;
  }

  .strengths-item__number-image {
    width: 5rem;
  }

  .strengths-item__title {
    font-size: 1.1rem;
  }

  .strengths-item__text {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    line-height: 2;
  }

  /* ---------- ABOUT: biography ---------- */
  .biography-list {
    gap: 2rem;
  }

  .biography-item {
    display: block;
    padding-left: 1.6rem;
  }

  .biography-item::before {
    top: 0.62rem;
  }

  .biography-item::after {
    top: 1rem;
    height: calc(100% + 1.5rem);
  }

  .biography-item:last-child::after {
    display: none;
  }

  .biography-item__year {
    display: block;
    font-size: 1.2rem;
  }

  .biography-item__text {
    margin-top: 0.55rem;
    font-size: 0.9rem;
    line-height: 2;
  }

  /* ---------- ABOUT: likes ---------- */
  .likes-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1rem;
  }

  .likes-item:last-child:nth-child(odd) {
    width: calc(50% - 0.5rem);
    grid-column: 1 / -1;
    justify-self: center;
  }

  .likes-item__caption {
    margin-top: 0.7rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  html {
    scroll-padding-top: 6.5rem;
  }

  body .sidebar {
    gap: 0.5rem;
    padding: 0.6rem 1rem 0.7rem;
  }

  body .sidebar__logo img {
    width: 2.35rem;
  }

  body .sidebar__nav-list {
    gap: 0.25rem;
  }

  body .sidebar__nav a,
  body .sidebar__nav-link {
    font-size: 0.75rem;
    letter-spacing: 0.02em;
  }

  .section {
    padding: 3.5rem 1.25rem;
  }

  .section-title {
    gap: 0.7rem;
    margin-bottom: 2rem;
  }

  .section-title__main {
    font-size: 1.5rem;
  }

  .skills {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .contact {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .contact__email {
    font-size: 0.9rem;
    letter-spacing: 0.03em;
  }

  .page-header {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .page-header__title {
    font-size: 1.6rem;
  }
}
