/* ========================================
   Portfolio - style.css
   モバイルファースト / セクション別整理
======================================== */

/* ----------------------------------------
   1. CSS Variables
---------------------------------------- */
:root {
  /* Colors */
  --color-bg: #ffffff;
  --color-bg-soft: #f4f7fb;
  --color-bg-muted: #e8eef6;
  --color-surface: #ffffff;
  --color-navy: #1a365d;
  --color-navy-deep: #122844;
  --color-accent: #2b7bb9;
  --color-accent-hover: #1f6aa3;
  --color-text: #1c2b3a;
  --color-text-muted: #4a5d73;
  --color-border: #d5deea;
  --color-focus: #2b7bb9;
  --color-white: #ffffff;

  /* Typography */
  --font-sans: "IBM Plex Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-display: "Outfit", "IBM Plex Sans JP", sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;

  /* Layout */
  --container: 68rem;
  --header-height: 4rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --shadow-soft: 0 1px 2px rgba(18, 40, 68, 0.06), 0 8px 24px rgba(18, 40, 68, 0.06);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.35s;
}

/* ----------------------------------------
   2. Reset / Base
---------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(43, 123, 185, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 20%, rgba(26, 54, 93, 0.05), transparent 50%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--color-accent-hover);
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p,
figure,
dl,
dd {
  margin: 0;
}

button,
input,
textarea {
  font: inherit;
}

/* ----------------------------------------
   3. Utilities / Layout
---------------------------------------- */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-3xl);
}

.section-header {
  margin-bottom: var(--space-xl);
  max-width: 40rem;
}

.section-header__label {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.section-header__title {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.section-header__text {
  margin-top: var(--space-md);
  color: var(--color-text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease), border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-navy-deep);
  color: var(--color-white);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn--secondary:hover {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-border);
  min-height: 2.5rem;
  padding-inline: 1.1rem;
}

.btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-hover);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Fade-in（Intersection Observer 用） */
.fade-in {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ----------------------------------------
   4. Header / Navigation
---------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-navy);
  text-decoration: none;
}

.site-logo:hover {
  color: var(--color-accent);
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  cursor: pointer;
}

.menu-toggle__bar {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin-inline: auto;
  background-color: var(--color-navy);
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.global-nav {
  position: fixed;
  inset: var(--header-height) 0 auto 0;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  transform: translateY(-120%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease), visibility var(--duration);
}

.global-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.global-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.global-nav__link {
  display: block;
  padding: 0.75rem 0.5rem;
  color: var(--color-navy);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
}

.global-nav__link:hover,
.global-nav__link.is-active {
  color: var(--color-accent);
  background-color: var(--color-bg-soft);
}

body.is-menu-open {
  overflow: hidden;
}

/* ----------------------------------------
   5. Hero
---------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) calc(var(--space-3xl) / 2);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, rgba(244, 247, 251, 0.95) 0%, rgba(255, 255, 255, 0.4) 45%, transparent 70%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 18px,
      rgba(26, 54, 93, 0.03) 18px,
      rgba(26, 54, 93, 0.03) 19px
    );
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}

.hero__role {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.hero__heading {
  font-size: clamp(1.55rem, 1.15rem + 2vw, 2.35rem);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.45;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-lg);
}

.hero__break {
  display: none;
}

.hero__lead {
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  max-width: 38rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ----------------------------------------
   6. About
---------------------------------------- */
.about {
  background-color: var(--color-bg-soft);
  padding-top: calc(var(--space-3xl) / 2);
}

.about__grid {
  display: grid;
  gap: var(--space-xl);
}

.about__figure {
  width: 100%;
  max-width: 22rem;
  margin-inline: auto;
  justify-self: center;
  min-width: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.about__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background-color: var(--color-bg-muted);
}

.about__name {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-md);
  letter-spacing: 0.04em;
}

.about__summary {
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

.profile-list {
  display: grid;
  gap: var(--space-md);
}

.profile-list__item {
  display: grid;
  gap: 0.2rem;
  padding: var(--space-md);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.profile-list__item dt {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.04em;
}

.profile-list__item dd {
  color: var(--color-text);
  font-weight: 500;
}

/* ----------------------------------------
   7. Skills
---------------------------------------- */
.skills__grid {
  display: grid;
  gap: var(--space-lg);
}

.skill-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
}

.skill-card__title {
  font-size: 1.05rem;
  color: var(--color-navy);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-bg-muted);
}

.skill-card__list {
  display: grid;
  gap: 0.65rem;
}

.skill-card__list > li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  padding-block: 0.35rem;
  border-bottom: 1px dashed var(--color-border);
}

.skill-card__list > li:last-child {
  border-bottom: none;
}

.skill-card__item--detail {
  display: block;
  padding-bottom: 0.75rem;
}

.skill-card__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
}

.skill-card__name {
  font-weight: 600;
  color: var(--color-text);
}

.skill-card__level {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  background-color: var(--color-bg-soft);
  padding: 0.15rem 0.55rem;
  border-radius: 0.25rem;
}

.skill-card__note {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ----------------------------------------
   8. Works
---------------------------------------- */
.works {
  background-color: var(--color-bg-soft);
}

.works__grid {
  display: grid;
  gap: var(--space-xl);
}

.work-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.work-card__figure {
  background-color: var(--color-bg-muted);
}

.work-card__figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.work-card__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-sm);
}

.work-card__title {
  font-size: 1.15rem;
  color: var(--color-navy);
  line-height: 1.45;
}

.work-card__summary {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.work-card__subtitle {
  margin-top: var(--space-xs);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-navy);
}

.work-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: var(--space-sm);
}

.work-card__tags li {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  background-color: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  padding: 0.2rem 0.55rem;
  border-radius: 0.25rem;
}

.work-card__body .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ----------------------------------------
   9. Career / Timeline
---------------------------------------- */
.timeline {
  position: relative;
  display: grid;
  gap: var(--space-xl);
  padding-left: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-border));
}

.timeline__item {
  position: relative;
}

.timeline__marker {
  position: absolute;
  left: -1.28rem;
  top: 0.45rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: var(--color-accent);
  border: 2px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--color-accent);
}

.timeline__card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
}

.timeline__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-sm);
}

.timeline__period {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
}

.timeline__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-white);
  background-color: var(--color-navy);
  padding: 0.15rem 0.55rem;
  border-radius: 0.25rem;
}

.timeline__company {
  font-size: 1.1rem;
  color: var(--color-navy);
  margin-bottom: 0.25rem;
}

.timeline__role {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.timeline__desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ----------------------------------------
   10. Strengths
---------------------------------------- */
.strengths {
  background-color: var(--color-bg-soft);
}

.strengths__intro {
  max-width: 44rem;
  display: grid;
  gap: var(--space-md);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

.strengths__grid {
  display: grid;
  gap: var(--space-lg);
}

.strength-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: var(--space-lg);
}

.strength-card__title {
  font-size: 1.05rem;
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}

.strength-card__text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ----------------------------------------
   11. Goals
---------------------------------------- */
.goals__inner {
  max-width: 44rem;
  padding: var(--space-xl);
  background:
    linear-gradient(135deg, rgba(26, 54, 93, 0.04), rgba(43, 123, 185, 0.06)),
    var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.goals__text {
  color: var(--color-text-muted);
}

/* ----------------------------------------
   12. Contact
---------------------------------------- */
.contact {
  background-color: var(--color-bg-soft);
}

.contact__layout {
  display: grid;
  gap: var(--space-xl);
}

.contact-form {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: grid;
  gap: var(--space-md);
  box-shadow: var(--shadow-soft);
}

.contact-form__note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  background-color: var(--color-bg-soft);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-bg);
  color: var(--color-text);
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  border-color: var(--color-accent);
}

.form-field textarea {
  resize: vertical;
  min-height: 8rem;
}

.wpcf7-list-item {
  margin: 0;
  margin-bottom: .5rem;
}

.wpcf7-list-item input {
  width: auto;
}

/* ----------------------------------------
   13. Footer / Back to top
---------------------------------------- */
.site-footer {
  padding-block: var(--space-xl);
  border-top: 1px solid var(--color-border);
  background-color: var(--color-white);
}

.site-footer__inner {
  text-align: center;
}

.site-footer__copy {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-navy);
  color: var(--color-white);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.back-to-top:hover {
  background-color: var(--color-navy-deep);
}

.back-to-top[hidden] {
  display: none;
}

/* ========================================
   Privacy Policy（モバイルファースト）
======================================== */

.page-content {
  --policy-text-color: #333;
  --policy-heading-color: #1f2937;
  --policy-sub-color: #5f6876;
  --policy-accent-color: #3155d9;
  --policy-border-color: #dfe3e8;
  --policy-background-color: #f6f7f9;
  --policy-content-background: #fff;

  min-height: 100vh;
  padding: 48px 16px;
  background-color: var(--policy-background-color);
  color: var(--policy-text-color);
}

.page-content__inner {
  width: min(100%, 900px);
  margin: 0 auto;
}

.page-content article {
  padding: 36px 20px;
  background-color: var(--policy-content-background);
  border: 1px solid var(--policy-border-color);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgb(0 0 0 / 5%);
}

/* ページタイトル */
.page-content__title {
  margin: 0 0 32px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--policy-heading-color);
  color: var(--policy-heading-color);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

/* 本文全体 */
.page-content__body {
  color: var(--policy-text-color);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.page-content__body > *:first-child {
  margin-top: 0;
}

.page-content__body > *:last-child {
  margin-bottom: 0;
}

/* 見出し */
.page-content__body h1,
.page-content__body h2,
.page-content__body h3 {
  color: var(--policy-heading-color);
  font-weight: 700;
  line-height: 1.5;
  scroll-margin-top: 100px;
}

.page-content__body h1 {
  margin: 64px 0 24px;
  font-size: 30px;
}

.page-content__body h2 {
  margin: 40px 0 16px;
  padding: 10px 12px;
  border-left: 4px solid var(--policy-accent-color);
  background-color: #f2f5ff;
  font-size: 18px;
}

.page-content__body h3 {
  margin: 40px 0 16px;
  font-size: 18px;
}

/* 段落 */
.page-content__body p {
  margin: 0 0 20px;
}

/* リスト */
.page-content__body ul,
.page-content__body ol {
  margin: 0 0 24px;
  padding: 16px 16px 16px 36px;
  background-color: #f8f9fb;
  border-radius: 8px;
}

.page-content__body ul {
  list-style: disc;
}

.page-content__body ol {
  list-style: decimal;
}

.page-content__body li {
  padding-left: 4px;
}

.page-content__body li + li {
  margin-top: 8px;
}

.page-content__body li::marker {
  color: var(--policy-accent-color);
}

/* リンク */
.page-content__body a {
  color: var(--policy-accent-color);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.page-content__body a:hover {
  opacity: 0.7;
}

.page-content__body a:focus-visible {
  outline: 2px solid var(--policy-accent-color);
  outline-offset: 4px;
  border-radius: 2px;
}

/* 強調 */
.page-content__body strong {
  color: var(--policy-heading-color);
  font-weight: 700;
}

/* 区切り線 */
.page-content__body hr {
  margin: 48px 0;
  border: 0;
  border-top: 1px solid var(--policy-border-color);
}

/* 運営者・制定日が入る最後の段落 */
.page-content__body p:last-of-type {
  margin-top: 32px;
  padding: 16px;
  background-color: #f8f9fb;
  border-radius: 8px;
  color: var(--policy-sub-color);
}

/* WordPressブロックの不要な余白を調整 */
.page-content__body .wp-block-heading,
.page-content__body .wp-block-paragraph,
.page-content__body .wp-block-list {
  max-width: none;
}

/* ----------------------------------------
   14. Tablet (768px+)
---------------------------------------- */
@media (min-width: 768px) {
  :root {
    --header-height: 4.25rem;
  }

  .section {
    padding-block: var(--space-4xl);
  }

  .about {
    padding-top: calc(var(--space-4xl) / 2);
  }

  .hero__break {
    display: inline;
  }

  .about__grid {
    grid-template-columns: minmax(14rem, 18rem) 1fr;
    align-items: start;
    gap: var(--space-2xl);
  }

  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .works__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .strengths__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .timeline {
    padding-left: 2rem;
  }

  .timeline__marker {
    left: -1.78rem;
  }

  .back-to-top {
    right: 1.5rem;
    bottom: 1.5rem;
  }

  .page-content {
    padding: 72px 20px;
  }

  .page-content article {
    padding: 48px 36px;
    border-radius: 12px;
  }

  .page-content__title {
    margin-bottom: 40px;
    padding-bottom: 24px;
    font-size: clamp(28px, 4vw, 40px);
  }

  .page-content__body {
    font-size: 16px;
    line-height: 2;
  }

  .page-content__body h2 {
    margin: 48px 0 20px;
    padding: 12px 16px;
    font-size: 20px;
  }

  .page-content__body p {
    margin-bottom: 24px;
  }

  .page-content__body ul,
  .page-content__body ol {
    margin-bottom: 28px;
    padding: 20px 24px 20px 48px;
  }

  .page-content__body p:last-of-type {
    margin-top: 40px;
    padding: 20px 24px;
  }
}

/* ----------------------------------------
   15. Desktop (1024px+)
---------------------------------------- */
@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }

  .global-nav {
    position: static;
    inset: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
    padding: 0;
  }

  .global-nav__list {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }

  .global-nav__link {
    padding: 0.5rem 0.85rem;
    font-size: 0.95rem;
  }

  .works__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-content {
    padding: 96px 24px;
  }

  .page-content article {
    padding: 64px 72px;
    border-radius: 16px;
  }

  .page-content__title {
    margin-bottom: 48px;
  }

  .page-content__body h2 {
    margin: 56px 0 20px;
    font-size: 22px;
  }
}

/* ----------------------------------------
   16. Large Desktop (1440px付近)
---------------------------------------- */
@media (min-width: 1440px) {
  :root {
    --container: 72rem;
  }

  .hero {
    padding-block: 7rem 2.75rem;
  }

  .hero__inner {
    max-width: 50rem;
  }
}
