@charset "UTF-8";
/* 下層ページ（2026リニューアル：大正モダン×渾天儀）。共通の部品は css/site.css、動きは js/site.js。
   記事・固定ページ・お問い合わせは、赤黒の地に紙を1枚置いて墨色で組む。動きの決まりは MOTION.md の P 系 */

.o-flow {
  --paper-rule: rgba(110, 70, 40, 0.28);
  --paper-brass: #8a6526; /* 紙の上の真鍮（明るい真鍮は紙の上では読みにくい） */
  --paper-link: #7a1f1a; /* ベルモットの赤 */
}

/* ---- ページの頭：パンくず＋見出し ---- */
.page-head {
  padding-top: clamp(3rem, 2rem + 4vw, 6rem);
}
.page-head .o-heading {
  margin: 1.5rem 0 0;
}
.page-head__lead {
  max-width: 40em;
  margin-top: 2rem;
  color: var(--o-muted);
}
.page-head__lead p {
  margin: 0;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0;
  margin: 0;
  padding: 0;
  color: var(--o-muted);
  font-size: 1rem;
  letter-spacing: 0.06em;
  list-style: none;
}
.breadcrumb__item:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1.25rem;
  height: 1px;
  margin: 0 0.75rem;
  vertical-align: 0.3em;
  background: var(--o-brass-soft);
}
.breadcrumb__link {
  color: var(--o-muted);
  text-decoration: none;
}
.breadcrumb__link:hover {
  color: var(--o-brass);
}
.breadcrumb__current {
  color: var(--o-text);
}

/* ---- 記事 ---- */
.article {
  padding-top: clamp(3rem, 2rem + 4vw, 6rem);
}
.article__head {
  max-width: 52rem;
  margin: 2rem 0 clamp(2rem, 1.5rem + 2vw, 3rem);
}
.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0 0 1rem !important;
  color: var(--o-brass);
  font: 400 1.0625rem / 1.6 var(--o-display);
  letter-spacing: 0.1em;
}
.article__meta a {
  color: var(--o-brass);
  text-decoration: none;
  border-bottom: 1px solid var(--o-brass-soft);
}
.article__title {
  margin: 0;
  color: var(--o-text);
  font: 700 clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem) / 1.45 var(--o-body);
  letter-spacing: 0.04em;
}

/* ---- 紙：タイプライターから送り出されるように上から現れる。上端に真鍮の押さえ ---- */
.paper {
  position: relative;
  max-width: 52rem;
  padding: clamp(1.75rem, 1rem + 4vw, 4.5rem) clamp(1.25rem, 0.5rem + 4vw, 4.5rem) clamp(2.5rem, 1.5rem + 4vw, 5rem);
  color: var(--o-ink);
  background-color: var(--o-paper);
  background-image: var(--o-noise);
  border-radius: 2px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.paper::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -14px;
  right: -14px;
  height: 6px;
  background: linear-gradient(to bottom, #e2c27a, var(--o-brass) 45%, #7d5c22);
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.has-motion .paper {
  clip-path: inset(-12px -16px 100% -16px);
}
.has-motion .paper.is-drawn {
  clip-path: inset(-12px -16px -80px -16px);
  transition: clip-path 1.4s var(--o-ease);
}
.paper__eyecatch {
  margin: 0 0 clamp(2rem, 1.5rem + 2vw, 3rem);
}
.paper__eyecatch-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--paper-rule);
}
.paper__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 3rem 0 0;
  padding: 1.5rem 0 0;
  list-style: none;
  border-top: 1px solid var(--paper-rule);
}
.paper__tags a {
  color: var(--paper-link);
  text-decoration: none;
}
.paper__tags a:hover {
  text-decoration: underline;
}

/* ---- 本文（紙の上の墨色の組版） ---- */
.entry {
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 2;
  overflow-wrap: anywhere;
}
.entry > * + * {
  margin-top: 1.5em;
}
.entry p {
  margin: 0;
}
.entry > p + p {
  margin-top: 1.25em;
}
.entry a {
  color: var(--paper-link);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.entry a:hover {
  text-decoration-thickness: 2px;
}
.entry h2,
.entry h3,
.entry h4 {
  color: var(--o-ink);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
}
/* h2：上下に細い2本線（アール・デコの枠） */
.entry h2 {
  margin: 3.5em 0 1.25em;
  padding: 0.75em 0;
  font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.625rem);
  border-top: 3px double var(--paper-brass);
  border-bottom: 1px solid var(--paper-rule);
}
.entry h3 {
  margin: 2.75em 0 1em;
  padding-left: 1rem;
  font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.3125rem);
  border-left: 3px solid var(--paper-brass);
}
.entry h4 {
  margin: 2.25em 0 0.75em;
  font-size: 1.125rem;
}
.entry ul,
.entry ol {
  padding-left: 1.5em;
}
.entry li + li {
  margin-top: 0.4em;
}
.entry ul li::marker {
  color: var(--paper-brass);
}
.entry strong {
  font-weight: 700;
}
.entry img {
  max-width: 100%;
  height: auto;
}
.entry figure {
  margin-left: 0;
  margin-right: 0;
}
.entry figcaption {
  margin-top: 0.5rem;
  color: var(--o-ink-muted);
  font-size: 1rem;
}
.entry video {
  display: block;
  width: 100%;
}
.entry blockquote {
  margin: 2em 0;
  padding: 0.5em 0 0.5em 1.5em;
  color: var(--o-ink-muted);
  border-left: 1px solid var(--paper-brass);
}
.entry hr,
.entry .wp-block-separator {
  width: 6rem;
  height: 0;
  margin: 3em auto;
  border: 0;
  border-top: 1px solid var(--paper-brass);
  opacity: 1;
}
.entry table {
  width: 100%;
  border-collapse: collapse;
}
.entry th,
.entry td {
  padding: 0.75em 1em;
  text-align: left;
  border-bottom: 1px solid var(--paper-rule);
}
.entry code {
  padding: 0.1em 0.35em;
  font-size: 0.95em;
  background: rgba(110, 70, 40, 0.1);
  border-radius: 2px;
}
.entry pre {
  padding: 1.25em 1.5em;
  overflow-x: auto;
  color: var(--o-text);
  font-size: 1rem;
  line-height: 1.8;
  background: var(--o-bg);
  border-radius: 2px;
}
.entry pre code {
  padding: 0;
  background: none;
}
.entry .wp-block-media-text {
  gap: 2rem;
}
.entry .wp-block-media-text__content {
  padding: 0;
}
.page-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

/* ---- 前後の記事（真鍮の銘板） ---- */
.article-pager .plaque__link {
  min-height: 160px;
}
.plaque__note--title {
  color: var(--o-text);
  font-size: 1.0625rem;
  font-weight: 700;
}

/* ---- 記事一覧：目録カードを並べる ---- */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(1.25rem, 0.8rem + 1.6vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.archive__empty {
  color: var(--o-muted);
}

/* 目録棚の引き出しのラベル（カテゴリー・タグの切り替え） */
.drawer-tabs {
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}
.drawer-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.drawer-tabs__link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 1.25rem;
  color: var(--o-text);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 1px solid var(--o-brass-soft);
  transition: border-color 0.3s linear, color 0.3s linear;
}
.drawer-tabs__link:hover {
  color: var(--o-brass);
  border-color: var(--o-brass);
}
.drawer-tabs__link[aria-current="page"] {
  color: var(--o-bg);
  background: var(--o-brass);
  border-color: var(--o-brass);
}

/* ページ送り */
.o-pagination {
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.o-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.o-pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 48px;
  padding: 0 0.75rem;
  color: var(--o-text);
  font: 400 1.25rem / 1 var(--o-display);
  text-decoration: none;
  border: 1px solid var(--o-brass-soft);
  border-radius: 50%;
}
.o-pagination a.page-numbers:hover {
  color: var(--o-brass);
  border-color: var(--o-brass);
}
.o-pagination .page-numbers.current {
  color: var(--o-bg);
  background: var(--o-brass);
  border-color: var(--o-brass);
}
.o-pagination .page-numbers.dots {
  border: 0;
}

/* ---- ブログの入口：カテゴリーを目録棚の引き出しとして並べる。
   枠が描き出され、マウスを乗せると引き出しが手前に少し出る ---- */
.drawers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
  perspective: 900px;
}
.drawer__link {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  padding: 2.25rem 1rem 2.5rem;
  color: var(--o-text);
  text-decoration: none;
  background: var(--o-surface);
  transition: transform 0.45s var(--o-ease), box-shadow 0.45s var(--o-ease);
}
.drawer__link:hover,
.drawer__link:focus-visible {
  transform: translateZ(28px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.55);
}
.drawer__frame {
  position: absolute;
  inset: 0;
  border: 1px solid var(--o-brass);
  pointer-events: none;
}
.drawer__frame::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--o-brass-soft);
}
.has-motion .drawer__frame {
  clip-path: inset(0 100% 100% 0);
}
.has-motion .drawer.is-drawn .drawer__frame {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s var(--o-ease) calc(var(--i, 0) * 0.08s);
}
/* ラベル差し：真鍮の小さな枠の中に名前 */
.drawer__label {
  padding: 0.25rem 1rem;
  font: 400 1.375rem / 1.4 var(--o-display);
  letter-spacing: 0.08em;
  border: 1px solid var(--o-brass);
  border-radius: 2px;
}
.drawer__count {
  color: var(--o-muted);
  font-size: 1rem;
}
/* 取っ手 */
.drawer__pull {
  width: 3rem;
  height: 0.6rem;
  margin-top: 0.75rem;
  border: 1px solid var(--o-brass);
  border-top: 0;
  border-radius: 0 0 1rem 1rem;
}

/* ---- About ---- */
.about-profile__body {
  max-width: 40em;
}
.about-roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 4つなので 4列か2列（3＋1にしない） */
  gap: 1rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}
.about-roles__item {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 96px;
  padding: 1.25rem 1rem;
  text-align: center;
  background: var(--o-surface);
}
/* 肩書きは途中で折り返さない（「エグゼクティブディレクター」が最長） */
.about-roles__item .plaque__name {
  font: 500 1.0625rem / 1.5 var(--o-body);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.about-skills__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 2rem + 4vw, 6rem);
  align-items: start;
}
.skill-orbit {
  position: sticky; /* 右の一覧が長いので、読んでいる間は輪を画面に残す */
  top: 12vh;
  max-width: 520px;
  margin: 0;
}
.skill-orbit__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.skill-orbit__ring {
  fill: none;
  stroke: var(--o-brass-soft);
  stroke-width: 1;
}
.skill-orbit__ring:first-of-type {
  stroke: var(--o-brass);
}
.skill-orbit__core {
  fill: var(--o-brass);
}
/* 輪に沿った文字（飾り。内容は右の一覧と同じ）。外の輪から交互に逆向きにゆっくり回る */
.skill-orbit__text {
  fill: var(--o-text);
  font-family: var(--o-display);
}
.skill-orbit__text--1 {
  fill: var(--o-muted);
}
.skill-orbit__text--2 {
  fill: var(--o-brass);
}
.skill-orbit__spin {
  transform-origin: 200px 200px;
  animation: skill-orbit-spin 160s linear infinite;
}
.skill-orbit__spin--1 {
  animation-duration: 120s;
  animation-direction: reverse;
}
.skill-orbit__spin--2 {
  animation-duration: 90s;
}
.skill-orbit:hover .skill-orbit__spin {
  animation-play-state: paused;
}
@keyframes skill-orbit-spin {
  to {
    transform: rotate(360deg);
  }
}
.has-motion .skill-orbit__ring {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
}
.has-motion .skill-orbit.is-drawn .skill-orbit__ring {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.6s var(--o-ease);
}
.has-motion .skill-orbit.is-drawn .skill-orbit__ring:nth-of-type(2) {
  transition-delay: 0.2s;
}
.has-motion .skill-orbit.is-drawn .skill-orbit__ring:nth-of-type(3) {
  transition-delay: 0.4s;
}
.has-motion .skill-orbit.is-drawn .skill-orbit__ring:nth-of-type(4) {
  transition-delay: 0.6s;
}
.about-skills__list {
  display: grid;
  gap: 1.5rem;
  margin: 0;
}
.about-skills__list dt {
  color: var(--o-brass);
  letter-spacing: 0.1em;
}
.about-skills__list dd {
  margin: 0.25rem 0 0;
}
.about-links .ledger__what {
  overflow-wrap: anywhere;
}

/* ---- お問い合わせ：紙の上のフォーム。入力欄は罫線だけ ---- */
.contact__brands {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin: 0 0 clamp(2.5rem, 2rem + 2vw, 4rem);
  padding: 0;
  font: 400 1.25rem / 1.6 var(--o-display);
  letter-spacing: 0.08em;
  list-style: none;
}
.contact__brands a {
  color: var(--o-brass);
  text-decoration: none;
}
.contact__brands a:hover {
  color: var(--o-text);
}
.paper--form {
  max-width: 44rem;
}
.paper--form form > p {
  margin: 0 0 2rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.paper--form .wpcf7-form-control-wrap {
  position: relative;
  display: block;
  margin-top: 0.5rem;
}
.paper--form input[type="text"],
.paper--form input[type="email"],
.paper--form textarea {
  display: block;
  width: 100%;
  padding: 0.5rem 0;
  color: var(--o-ink);
  font: 400 1.0625rem / 1.8 var(--o-body);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--paper-rule);
  border-radius: 0;
  outline: none;
}
.paper--form textarea {
  min-height: 12rem;
  padding: 0;
  resize: vertical;
  /* 罫線の便箋 */
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(1.8em - 1px), var(--paper-rule) calc(1.8em - 1px) 1.8em);
  background-attachment: local;
  line-height: 1.8;
}
/* 入力欄を選ぶと、罫線の上を真鍮の線が左から右へ引かれる */
.paper--form .wpcf7-form-control-wrap:has(input, textarea)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--paper-brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--o-ease);
  pointer-events: none;
}
.paper--form .wpcf7-form-control-wrap:has(input:focus, textarea:focus)::after {
  transform: scaleX(1);
}
.paper--form .wpcf7-form-control-wrap:has(.wpcf7-radio, .wpcf7-acceptance)::after {
  content: none;
}
.paper--form .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-weight: 400;
}
.paper--form .wpcf7-list-item {
  margin: 0;
}
.paper--form input[type="radio"],
.paper--form input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0 0.5rem 0 0;
  vertical-align: -0.15em;
  accent-color: var(--paper-link);
}
.paper--form .wpcf7-acceptance {
  display: inline-block;
  margin-left: 0.75rem;
}
.paper--form .wpcf7-submit {
  display: block;
  width: min(300px, 100%);
  min-height: 64px;
  margin-top: 1rem;
  color: var(--o-text);
  font: 700 1.125rem / 1 var(--o-body);
  letter-spacing: 0.24em;
  background: var(--o-bg);
  border: 1px solid var(--paper-brass);
  box-shadow: inset 0 0 0 4px var(--o-bg), inset 0 0 0 5px var(--o-brass-soft);
  cursor: pointer;
  transition: color 0.3s linear;
}
.paper--form .wpcf7-submit:hover {
  color: var(--o-brass);
}
.paper--form .wpcf7-submit:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.paper--form .wpcf7-not-valid-tip {
  margin-top: 0.5rem;
  color: var(--paper-link);
  font-size: 1rem;
}
.paper--form .wpcf7-response-output {
  margin: 1.5rem 0 0 !important;
  padding: 1rem 1.25rem !important;
  font-size: 1rem;
  border: 1px solid var(--paper-brass) !important;
}
.paper--form .wpcf7-spinner {
  margin: 1rem 0 0;
}
/* フォームの中の注記（CF7側で12pxの指定があっても16pxにする） */
.paper--form form > p[style] {
  font-size: 1rem !important;
  font-weight: 400;
  color: var(--o-ink-muted);
}

/* ---- 段組みの切り替え ---- */
@media (min-width: 1300px) {
  .about-roles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .about-roles {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 900px) {
  .about-skills__body {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 768px) {
  .paper::before {
    left: -6px;
    right: -6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .has-motion .paper,
  .has-motion .drawer__frame {
    clip-path: none !important;
  }
  .has-motion .skill-orbit__ring {
    stroke-dashoffset: 0 !important;
  }
  .skill-orbit__spin {
    animation: none;
  }
  .drawer__link,
  .paper--form .wpcf7-form-control-wrap::after {
    transition: none;
  }
}
