/*
Theme Name: to anyone
Theme URI: https://to-anyone.com/
Author: to anyone inc.
Description: Corporate theme for to anyone inc. - Delivering Japanese culture to the world.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: to-anyone
*/

/* ===== Reset & Base ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

:root {
  /* sticky な nav の概算高さ（padding 22px×2 + ロゴ行）。works詳細の左カラム固定に使用 */
  --nav-height: 67px;
}

body {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', Georgia, serif;
  background: #080808;
  color: #e8e8e4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ===== WordPress Core ===== */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* スキップリンク：フォーカス時のみ表示 */
.skip-link:focus {
  clip: auto;
  width: auto;
  height: auto;
  overflow: visible;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: #e8e8e4;
  color: #0a0a0a;
  font-size: 13px;
  letter-spacing: 0.08em;
}

/* スキップリンクの移動先アンカー */
#content {
  outline: none;
}

.alignleft {
  float: left;
  margin-right: 1.5em;
}

.alignright {
  float: right;
  margin-left: 1.5em;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Navigation ===== */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 36px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.14);
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 8, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo a {
  display: flex;
  align-items: center;
}

.logo-text {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: #e8e8e4;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}

/* Language switch (JA / EN) */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.lang-switch .lang-opt {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease;
}

.lang-switch .lang-opt:hover {
  color: rgba(255, 255, 255, 0.8);
}

.lang-switch .lang-opt.is-active {
  color: #e8e8e4;
}

.lang-switch .lang-sep {
  color: rgba(255, 255, 255, 0.25);
}

.nav-links ul {
  display: flex;
  gap: 26px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-close {
  display: none;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  margin: 5px 0;
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 70vh;
  min-height: 370px;
  background: #0f0f0f;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.13);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  border: none;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
}

.hero-video-bg video,
.hero-video-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  z-index: 1;
}

.hero-bottom {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 36px 34px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.hero-copy h1 {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.6;
  color: #e8e8e4;
}

/* メインコピー：タイプライター（1文字ずつ＋点滅カーソル） */
.hero-copy h1 .char-word {
  display: inline-block;
}

.hero-copy h1 .hero-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 0.04em;
  background: currentColor;
  vertical-align: text-bottom;
  animation: heroCursorBlink 0.6s steps(1, end) infinite;
}

.hero-copy h1 .hero-cursor.is-done {
  animation: none;
  opacity: 0;
  transition: opacity 0.4s 0.5s;
}

@keyframes heroCursorBlink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

/* ===== Scroll reveal（スクロールで一度だけフェードアップ） ===== */
.reveal-ready .reveal,
.reveal-ready .reveal-group .reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-ready .reveal.is-visible,
.reveal-ready .reveal-group.is-visible .reveal-item {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready .reveal,
  .reveal-ready .reveal-group .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.hero-copy p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 10px;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

.hero-contact-btn {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 28px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #e8e8e4;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.hero-contact-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

/* ===== Concept ===== */
.concept {
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.13);
  padding: 88px 36px;
}

.concept-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.concept-quote {
  font-size: 28px;
  font-weight: 300;
  font-style: italic;
  color: #e8e8e4;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}

.concept-body {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 2.2;
  letter-spacing: 0.06em;
}

/* ===== Section Rule (divider) ===== */
.sec-rule {
  display: flex;
  align-items: center;
  padding: 0 36px;
  height: 52px;
  margin-top: 60px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.13);
  gap: 14px;
}

.sec-rule-label {
  font-size: 16px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.sec-rule-line {
  flex: 1;
  height: 0.5px;
  background: transparent;
}

.sec-rule-link {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.3s ease;
  white-space: nowrap;
}

.sec-rule-link:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* ===== About ===== */
.about {
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.13);
  min-height: 320px;
}

.about-text {
  padding: 56px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.about-text > div {
  max-width: 640px;
  width: 100%;
}

.about-en {
  font-size: 21px;
  font-weight: 300;
  line-height: 1.55;
  color: #e8e8e4;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}

.about-ja {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 2.0;
  letter-spacing: 0.06em;
  margin-bottom: 32px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-bottom: 28px;
}

.about-tag {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  padding: 3px 9px;
}

.about-concept-quote {
  font-size: 22px;
  font-weight: 300;
  font-style: italic;
  color: #e8e8e4;
  letter-spacing: 0.02em;
  line-height: 1.4;
  margin-bottom: 24px;
}

.about-concept-body {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 2.2;
  letter-spacing: 0.05em;
  margin-bottom: 28px;
}

.about-concept-body p {
  margin: 0 0 1.4em;
}

.about-concept-body p:last-child {
  margin-bottom: 0;
}

/* ===== Services ===== */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.13);
}

.svc {
  padding: 44px 32px;
  border-right: 0.5px solid rgba(255, 255, 255, 0.13);
}

.svc:last-child {
  border-right: none;
}

.svc-num {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.14em;
  margin-bottom: 24px;
}

.svc-ja {
  font-size: 17px;
  font-weight: 400;
  color: #e8e8e4;
  margin-bottom: 3px;
}

.svc-en {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.16em;
  margin-bottom: 16px;
}

.svc-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.85;
}

.svc-badge {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.45);
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  padding: 3px 8px;
}

/* ===== Works ===== */
#works {
  padding: 8px 28px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.13);
}

.works-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.works-grid::-webkit-scrollbar {
  display: none;
}

.work-item {
  flex: 0 0 calc(100% / 3 - 6px);
  scroll-snap-align: start;
  aspect-ratio: 16/9;
  background: #131313;
  border-radius: 4px;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  position: relative;
  overflow: hidden;
}

.work-item a {
  display: flex;
  align-items: flex-end;
  position: absolute;
  inset: 0;
  padding: 12px;
}

.work-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.work-item:hover img {
  opacity: 0.9;
  transform: scale(1.08);
}

.work-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.15);
}

.work-tag {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 1;
}

/* ===== News ===== */
.news-section {
  padding: 44px 36px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.13);
}

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
}

.sec-head-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.sec-title-ja {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #e8e8e4;
}

.sec-title-en {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.16em;
}

.sec-all {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

.sec-all:hover {
  color: rgba(255, 255, 255, 0.75);
}

.news-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0;
  border-top: 0.5px solid rgba(255, 255, 255, 0.1);
}

.news-row:first-child {
  border-top: none;
}

.news-row a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  width: 100%;
}

.n-date {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  min-width: 70px;
  letter-spacing: 0.04em;
}

.n-cat {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  padding: 2px 7px;
  min-width: 64px;
  text-align: center;
  letter-spacing: 0.08em;
}

.n-title {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  flex: 1;
  line-height: 1.55;
}

.n-ext {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

/* 投稿がまだない場合の表示 */
.news-empty {
  padding: 24px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.06em;
}

/* ===== News archive (list) ===== */
.blog-main {
  padding: 96px 24px 120px;
}

.blog-container {
  max-width: 880px;
  margin: 0 auto;
}

.blog-page-title {
  text-align: center;
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: #e8e8e4;
  margin-bottom: 72px;
}

.news-archive {
  border-top: 0.5px solid rgba(255, 255, 255, 0.12);
}

.news-arc-row {
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.12);
}

.news-arc-link {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 28px 8px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.news-arc-link:hover {
  opacity: 0.6;
}

.news-arc-date {
  flex-shrink: 0;
  width: 100px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
}

.news-arc-title {
  flex: 1;
  font-size: 15px;
  line-height: 1.7;
  color: #e8e8e4;
}

.news-arc-arrow {
  flex-shrink: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  padding-top: 3px;
}

.blog-pagination {
  margin-top: 56px;
  text-align: center;
}

.blog-pagination .page-numbers {
  display: inline-block;
  padding: 6px 12px;
  margin: 0 3px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  border: 0.5px solid rgba(255, 255, 255, 0.18);
}

.blog-pagination .page-numbers.current {
  color: #0a0a0a;
  background: #e8e8e4;
  border-color: #e8e8e4;
}

.blog-pagination .page-numbers:hover {
  color: #e8e8e4;
}

.blog-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  padding: 40px 0;
}

/* ===== 404 page ===== */
.error-404-home {
  text-align: center;
}

@media (max-width: 600px) {
  .blog-main {
    padding: 64px 18px 88px;
  }

  .blog-page-title {
    font-size: 24px;
    margin-bottom: 48px;
  }

  .news-arc-link {
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 20px 4px;
  }

  .news-arc-date {
    width: auto;
    padding-top: 0;
  }

  .news-arc-title {
    flex: 1 1 100%;
    font-size: 14px;
  }

  .news-arc-arrow {
    display: none;
  }

  #works {
    padding: 8px 14px;
  }
  /* カルーセルのカード幅はブレークポイントごとに responsive.css で指定 */
}

/* ===== Contact ===== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.13);
}

.contact-left {
  padding: 80px 40px;
  border-right: 0.5px solid rgba(255, 255, 255, 0.13);
}

.contact-left h2 {
  font-size: 26px;
  font-weight: 300;
  color: #e8e8e4;
  margin-bottom: 14px;
  line-height: 1.35;
}

.contact-left p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.9;
  margin-bottom: 26px;
}

.contact-btn {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.7);
  border: 0.5px solid rgba(255, 255, 255, 0.3);
  padding: 10px 22px;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.5);
}

.contact-right {
  padding: 80px 40px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-logo {
  flex-shrink: 0;
  margin-left: auto;
}

.contact-logo img {
  display: block;
  width: auto;
  height: 120px;
  opacity: 0.85;
}

.c-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
}

.c-val {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
}

.sns-row {
  display: flex;
  gap: 18px;
}

.sns-item {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 1px;
  transition: color 0.3s ease;
}

.sns-item:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== Footer ===== */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 36px;
}

.f-logo {
  font-size: 13px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.35);
}

.f-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.08em;
}

/* ===== Single Post / Archive ===== */
.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 36px;
}

.page-content h1 {
  font-size: 26px;
  font-weight: 300;
  color: #e8e8e4;
  margin-bottom: 12px;
  line-height: 1.4;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.page-content .entry-content {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 2.0;
  letter-spacing: 0.04em;
}

.page-content .entry-content p {
  margin-bottom: 1.5em;
}

.page-content .entry-content h2 {
  font-size: 21px;
  font-weight: 400;
  color: #e8e8e4;
  margin: 2em 0 0.8em;
}

.page-content .entry-content h3 {
  font-size: 16px;
  font-weight: 400;
  color: #e8e8e4;
  margin: 1.5em 0 0.6em;
}

.page-content .entry-content img {
  margin: 1.5em 0;
  border-radius: 2px;
}

.page-content .entry-content a {
  color: rgba(255, 255, 255, 0.75);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.25);
}

/* ===== Back link (single post / 404) ===== */
.back-link {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 40px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #e8e8e4;
}

/* ===== Contact Page — light content area =====
   Only .page-content turns white; the header and footer stay dark. */
.contact-light .page-content {
  background: #fff;
  color: #1a1a1a;
  /* Full-width white band; content stays centered at 720px via the horizontal padding. */
  max-width: none;
  /* This page gets a bit more vertical breathing room than other pages. */
  padding: 96px max(36px, calc((100% - 720px) / 2));
}

.contact-light .page-content h1,
.contact-light .page-content .entry-content,
.contact-light .page-content .entry-content h2,
.contact-light .page-content .entry-content h3 {
  color: #1a1a1a;
}

.contact-light .contact-page-lead {
  color: rgba(0, 0, 0, 0.7);
}

.contact-light .contact-page-lead span[lang="en"] {
  color: rgba(0, 0, 0, 0.5);
}

.contact-light .wpcf7 label {
  color: rgba(0, 0, 0, 0.65);
}

.contact-light .wpcf7 input[type="text"],
.contact-light .wpcf7 input[type="email"],
.contact-light .wpcf7 input[type="tel"],
.contact-light .wpcf7 select,
.contact-light .wpcf7 textarea {
  border-color: rgba(0, 0, 0, 0.25);
  color: #1a1a1a;
}

.contact-light .wpcf7 select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(0,0,0,0.4)' stroke-width='1.2' fill='none'/%3E%3C/svg%3E");
}

.contact-light .wpcf7 input:focus,
.contact-light .wpcf7 select:focus,
.contact-light .wpcf7 textarea:focus {
  border-color: rgba(0, 0, 0, 0.55);
}

.contact-light .wpcf7 input[type="submit"] {
  border-color: rgba(0, 0, 0, 0.35);
  color: rgba(0, 0, 0, 0.75);
}

.contact-light .wpcf7 input[type="submit"]:hover {
  color: #000;
  border-color: rgba(0, 0, 0, 0.6);
}

.contact-light .wpcf7-response-output {
  color: rgba(0, 0, 0, 0.7);
  border-color: rgba(0, 0, 0, 0.15) !important;
}

/* Archive page */
.archive-list {
  padding: 0 36px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 30px 36px;
}

.pagination a,
.pagination span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  padding: 6px 12px;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
}

.pagination .current {
  color: #e8e8e4;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Works archive header */
.works-archive-header {
  padding: 56px 36px 40px;
  text-align: center;
}

.works-archive-header h1 {
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 0.32em;
  color: #e8e8e4;
}

/* Works archive — category tabs */
.works-archive-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  padding: 0 28px 36px;
}

.works-archive-tabs .works-tab {
  position: relative;
  padding: 4px 2px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8c8c88;
  transition: color 0.25s ease;
}

.works-archive-tabs .works-tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #e8e8e4;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.works-archive-tabs .works-tab:hover {
  color: #e8e8e4;
}

.works-archive-tabs .works-tab.is-active {
  color: #e8e8e4;
}

.works-archive-tabs .works-tab.is-active::after,
.works-archive-tabs .works-tab:hover::after {
  transform: scaleX(1);
}

/* Works archive — thumbnail grid (matches front page) */
.works-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 28px 40px;
}

/* Hover: dim image + center title */
.works-archive-grid .work-item a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.works-archive-grid .work-item:hover a::before {
  opacity: 1;
}

.works-archive-grid .work-hover-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  text-align: center;
  font-size: 16px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.works-archive-grid .work-item:hover .work-hover-title {
  opacity: 1;
}

/* Hide bottom tag on hover to avoid duplication */
.works-archive-grid .work-item:hover .work-tag {
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (max-width: 640px) {
  .works-archive-header {
    padding: 36px 20px 28px;
  }

  .works-archive-header h1 {
    font-size: 22px;
  }

  .works-archive-tabs {
    gap: 6px 18px;
    padding: 0 16px 24px;
  }

  .works-archive-tabs .works-tab {
    font-size: 12px;
    letter-spacing: 0.12em;
  }
}

/* ===== Works Single (split layout) ===== */
.works-single {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  max-width: 1100px;
  margin: 0 auto;
}

.works-single-left {
  position: sticky;
  /* nav（sticky）の高さ分だけ下げて、最初から固定された状態にする */
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  padding: 80px 48px 60px;
  box-sizing: border-box;
}

.works-single-cat {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.works-single-title {
  font-size: 22px;
  font-weight: 300;
  color: #e8e8e4;
  letter-spacing: 0.06em;
  line-height: 1.5;
  margin: 0 0 40px;
}

.works-single-role {
  font-size: 16px;
  color: #e8e8e4;
  margin-bottom: 36px;
  line-height: 1.6;
}

.works-role-label {
  font-weight: 300;
}

.works-role-colon {
  margin: 0 2px;
}

.works-role-value {
  font-weight: 300;
}

.works-single-desc {
  margin-bottom: 0;
}

.works-single-desc p {
  font-size: 13px;
  font-weight: 300;
  line-height: 2;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.4em;
}

/* Right side - media */
.works-single-right {
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.works-single-media {
  width: 75%;
}

.works-single-media img {
  width: 100%;
  display: block;
}

.works-single-media.works-video {
  position: relative;
  aspect-ratio: 16/9;
}

.works-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.works-single-media.works-video.works-video-reel {
  position: static;
  aspect-ratio: auto;
  max-width: 360px;
}

.works-video-reel iframe {
  position: static;
  width: 100%;
  height: auto;
  min-height: 640px;
  border: none;
}

.works-single-media video {
  width: 100%;
  display: block;
}

.works-video-wrap {
  position: relative;
}

.works-mute-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  padding: 0;
  transition: background 0.2s;
}

.works-mute-btn:hover {
  background: rgba(0, 0, 0, 0.75);
}

.works-mute-btn svg {
  width: 20px;
  height: 20px;
}

/* ===== Company Page ===== */
.company-page {
  max-width: 760px;
  padding-top: 80px;
}

/* --- Company info section --- */
.company-info {
  margin-bottom: 60px;
}

.company-info-eyebrow {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 32px;
}

.company-table {
  margin-bottom: 0;
}

.company-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.13);
}

.company-row:first-child {
  border-top: 0.5px solid rgba(255, 255, 255, 0.13);
}

.company-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  padding-top: 3px;
}

.company-value {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.9;
}

.company-value-en {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 3px;
  letter-spacing: 0.05em;
}

@media (max-width: 600px) {
  .company-page {
    padding-top: 48px;
  }

  .company-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px 0;
  }

  .company-label {
    color: rgba(255, 255, 255, 0.3);
  }
}

/* ===== Contact Page ===== */
.contact-page-lead {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.9;
  margin-bottom: 40px;
}

.contact-page-lead span[lang="en"] {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* ===== Contact Form 7 Overrides ===== */
.wpcf7 {
  max-width: 100%;
}

.wpcf7 label {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.55);
  display: block;
  margin-bottom: 18px;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  background: transparent;
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  color: #e8e8e4;
  padding: 10px 14px;
  font-size: 15px;
  width: 100%;
  margin-top: 6px;
  outline: none;
  transition: border-color 0.3s ease;
}

.wpcf7 select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(255,255,255,0.4)' stroke-width='1.2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  border-color: rgba(255, 255, 255, 0.45);
}

.wpcf7 textarea {
  min-height: 120px;
  resize: vertical;
}

.wpcf7 input[type="submit"] {
  background: transparent;
  border: 0.5px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
  padding: 10px 22px;
  font-size: 13px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.wpcf7 input[type="submit"]:hover {
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.5);
}

.wpcf7-response-output {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.1) !important;
}
