/*
Theme Name: HAN-OKU
Theme URI: https://han-oku.com
Author: HAN-OKU
Author URI: https://han-oku.com
Description: 「間」「余白」「無駄」をデザインするHAN-OKUのための、モノクロームの1ページ建築サイト。スクロール連動アニメーションとミニマルなタイポグラフィを特徴とします。
Version: 1.5.2
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: han-oku
Tags: one-page, minimalist, monochrome, japanese, architecture
*/

:root {
  --ink: #0a0a0a;
  --paper: #f5f3ee;
  --paper-pure: #ffffff;
  --ash: #4a4a4a;
  --stone: #a8a5a0;
  --mist: #e8e6e1;
  --line: rgba(10, 10, 10, 0.12);

  --font-display: "Big Shoulders Display", "Shippori Mincho", serif;
  --font-serif: "Cormorant Garamond", "Shippori Mincho", serif;
  --font-jp: "Shippori Mincho", "Noto Serif JP", serif;
  --font-jp-sans: "Noto Sans JP", sans-serif;

  --ease: cubic-bezier(0.6, 0.05, 0.05, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-jp);
  background: var(--paper);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

/* === Custom cursor (dot + trailing ring for better visibility) === */
/* Two-layer system:
   - .cursor       = small dot, follows mouse instantly (precision)
   - .cursor-ring  = larger ring, follows with slight delay (visibility)
   JS sets the transform directly (translate to position + center offset).
*/
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transition: width 0.25s var(--ease), height 0.25s var(--ease), opacity 0.3s var(--ease);
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), border-width 0.3s var(--ease), opacity 0.3s var(--ease), background 0.3s var(--ease);
  mix-blend-mode: difference;
  will-change: transform;
  background: transparent;
}

/* Hover state: dot shrinks, ring expands and lightly fills */
.cursor.hover {
  width: 6px; height: 6px;
}
.cursor-ring.hover {
  width: 56px; height: 56px;
  border-width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* Hide while loader is visible */
.loader:not(.hidden) ~ .cursor,
.loader:not(.hidden) ~ .cursor-ring {
  opacity: 0;
}

@media (max-width: 768px), (hover: none) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
}

/* === Loader === */
.loader {
  position: fixed; inset: 0;
  background: var(--ink);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-mark {
  display: flex; gap: 4px;
  animation: pulse 1.4s ease-in-out infinite;
}
.loader-mark span {
  display: block;
  background: var(--paper);
}
.loader-mark span:nth-child(1) { width: 8px; height: 24px; }
.loader-mark span:nth-child(2) { width: 16px; height: 48px; border: 2px solid var(--paper); background: transparent; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.4; transform: translateY(-4px); }
}

/* === Navigation === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  mix-blend-mode: difference;
  color: var(--paper);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.15em;
  font-size: 14px;
  color: inherit;
  text-decoration: none;
}
.nav-logo svg { width: 16px; height: 24px; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links {
  display: flex; gap: 32px;
  font-family: var(--font-jp-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.nav-links a {
  color: inherit;
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

/* === Language switcher === */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.lang-switch-btn {
  color: inherit;
  text-decoration: none;
  padding: 4px 6px;
  opacity: 0.45;
  transition: opacity 0.3s var(--ease);
  position: relative;
}
.lang-switch-btn:hover { opacity: 0.8; }
.lang-switch-btn.is-active {
  opacity: 1;
}
.lang-switch-btn.is-active::after {
  content: '';
  position: absolute;
  left: 6px; right: 6px;
  bottom: 0;
  height: 1px;
  background: currentColor;
}
.lang-switch-divider {
  opacity: 0.3;
  font-weight: 300;
}

@media (max-width: 768px) {
  .nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .nav-right { gap: 0; }
}

/* === Scroll progress (architectural ruler) === */
.scroll-ruler {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 240px;
  background: var(--line);
  z-index: 50;
}
.scroll-ruler::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: var(--scroll-progress, 0%);
  background: var(--ink);
  transition: height 0.1s linear;
}
.scroll-ruler-label {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ash);
  writing-mode: vertical-rl;
}
@media (max-width: 1024px) { .scroll-ruler { display: none; } }

/* === Section numbers === */
.section-num {
  position: absolute;
  top: 80px;
  left: 48px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--ash);
  font-weight: 400;
}
.section-num::before {
  content: '';
  display: inline-block;
  width: 32px; height: 1px;
  background: var(--ash);
  vertical-align: middle;
  margin-right: 12px;
}

/* === HERO === */
.hero {
  height: 100vh;
  min-height: 700px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 48px;
}

.hero-bg-line {
  position: absolute;
  background: var(--line);
}
.hero-bg-line.v { width: 1px; top: 0; bottom: 0; }
.hero-bg-line.h { height: 1px; left: 0; right: 0; }
.hero-bg-line.v1 { left: 16.66%; }
.hero-bg-line.v2 { left: 50%; }
.hero-bg-line.v3 { left: 83.33%; }
.hero-bg-line.h1 { top: 25%; }
.hero-bg-line.h2 { top: 75%; }

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  font-family: var(--font-jp-sans);
  font-size: 11px;
  letter-spacing: 0.5em;
  margin-bottom: 32px;
  color: var(--ash);
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.4s forwards;
}

.hero-mark {
  width: 80px;
  margin: 0 auto 24px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.6s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(60px, 13vw, 200px);
  letter-spacing: 0.05em;
  line-height: 0.9;
  display: flex;
  justify-content: center;
  gap: 0.06em;
  margin-bottom: 16px;
}
.hero-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(60%);
  animation: letterReveal 1s var(--ease) forwards;
}
.hero-title span:nth-child(1) { animation-delay: 0.8s; }
.hero-title span:nth-child(2) { animation-delay: 0.85s; }
.hero-title span:nth-child(3) { animation-delay: 0.9s; }
.hero-title span:nth-child(4) { animation-delay: 1.0s; }
.hero-title span:nth-child(5) { animation-delay: 1.05s; }
.hero-title span:nth-child(6) { animation-delay: 1.1s; }
.hero-title span:nth-child(7) { animation-delay: 1.15s; }

.hero-jp {
  font-family: var(--font-jp);
  font-size: 14px;
  letter-spacing: 0.8em;
  color: var(--ash);
  margin-bottom: 64px;
  padding-left: 0.8em;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.4s forwards;
}

.hero-tag {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(14px, 2vw, 18px);
  color: var(--ash);
  letter-spacing: 0.05em;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.6s forwards;
}

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--ash);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.8s forwards;
}
.scroll-cue::after {
  content: '';
  width: 1px; height: 56px;
  background: var(--ash);
  animation: scrollLine 2s var(--ease-soft) infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes letterReveal {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* === Section base === */
.section {
  position: relative;
  padding: 160px 48px;
}
@media (max-width: 768px) {
  .section { padding: 100px 24px; }
  .section-num { left: 24px; top: 60px; }
}

/* === Reveal animations === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

/* === Philosophy === */
.philosophy {
  background: var(--paper);
}
.philosophy-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
.philosophy-label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--ash);
  position: sticky;
  top: 120px;
}
.philosophy-label span {
  display: block;
  font-family: var(--font-jp);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-top: 16px;
  line-height: 1.4;
}
.philosophy-text {
  font-family: var(--font-jp);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 2;
  font-weight: 400;
  letter-spacing: 0.05em;
}
.philosophy-text p { margin-bottom: 1.5em; }
.philosophy-text p:last-child { margin-bottom: 0; }
.philosophy-text em {
  font-style: normal;
  font-weight: 700;
  position: relative;
}

@media (max-width: 768px) {
  .philosophy-inner { grid-template-columns: 1fr; gap: 40px; }
  .philosophy-label { position: static; }
}

/* === The Four "間" === */
.ma {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.ma-header {
  max-width: 1400px;
  margin: 0 auto 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
}
.ma-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 88px);
  letter-spacing: 0.02em;
  line-height: 0.95;
}
.ma-title-jp {
  display: block;
  font-family: var(--font-jp);
  font-size: 0.3em;
  letter-spacing: 0.4em;
  color: var(--stone);
  margin-bottom: 0.6em;
  font-weight: 400;
}
.ma-intro {
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 2;
  color: var(--stone);
  max-width: 380px;
  justify-self: end;
}

.ma-list {
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid rgba(245, 243, 238, 0.15);
}
.ma-item {
  display: grid;
  grid-template-columns: 100px 1fr 2fr 1fr;
  gap: 40px;
  padding: 56px 0;
  border-bottom: 1px solid rgba(245, 243, 238, 0.15);
  align-items: center;
  transition: padding 0.6s var(--ease);
  cursor: pointer;
  position: relative;
}
.ma-item:hover { padding-left: 24px; }
.ma-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 100%;
  background: var(--paper);
  opacity: 0.03;
  transition: width 0.6s var(--ease);
}
.ma-item:hover::before { width: 100%; }
.ma-num {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--stone);
}
.ma-jp {
  font-family: var(--font-jp);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
}
.ma-desc {
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: 1.9;
  color: var(--stone);
}
.ma-en {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--stone);
  text-align: right;
}

@media (max-width: 1024px) {
  .ma-item { grid-template-columns: 60px 1fr; gap: 24px; }
  .ma-desc, .ma-en { grid-column: 2; text-align: left; }
  .ma-header { grid-template-columns: 1fr; gap: 32px; }
  .ma-intro { justify-self: start; }
}

/* === About === */
.about {
  background: var(--paper-pure);
  position: relative;
}
.about-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.about-quote {
  font-family: var(--font-jp);
  font-size: clamp(22px, 3vw, 36px);
  line-height: 2;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 56px;
}
.about-quote strong {
  font-weight: 800;
  display: inline-block;
  position: relative;
}
.about-mark-large {
  width: 60px;
  margin: 0 auto 56px;
  opacity: 0.15;
}

/* === Company Info === */
.company {
  background: var(--paper);
  position: relative;
}
.company-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.company-header {
  margin-bottom: 80px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.company-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 88px);
  letter-spacing: 0.02em;
  line-height: 0.95;
}
.company-title-jp {
  display: block;
  font-family: var(--font-jp);
  font-size: 0.3em;
  letter-spacing: 0.4em;
  color: var(--ash);
  margin-bottom: 0.6em;
  font-weight: 400;
}
.company-list {
  display: flex;
  flex-direction: column;
}
.company-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: padding 0.5s var(--ease);
}
.company-row:hover { padding-left: 16px; }
.company-row dt {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--font-display);
}
.company-label-num {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--ash);
  font-weight: 400;
}
.company-label-en {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.company-label-jp {
  font-family: var(--font-jp);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ash);
  font-weight: 400;
}
.company-row dd {
  font-family: var(--font-jp-sans), "Helvetica Neue", "Arial", sans-serif;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-weight: 400;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum", "tnum";
}
.company-row dd a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.3s var(--ease);
}
.company-row dd a:hover {
  border-bottom-color: var(--ink);
}
.company-zip {
  display: inline-block;
  font-family: var(--font-jp-sans), sans-serif;
  font-size: 0.85em;
  letter-spacing: 0.08em;
  color: var(--ash);
  margin-right: 14px;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum", "tnum";
}

/* === Services === */
.services {
  background: var(--paper);
  position: relative;
}
.services-header {
  max-width: 1400px;
  margin: 0 auto 80px;
}
.services-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 88px);
  letter-spacing: 0.02em;
  line-height: 0.95;
}
.services-title-jp {
  display: block;
  font-family: var(--font-jp);
  font-size: 0.3em;
  letter-spacing: 0.4em;
  color: var(--ash);
  margin-bottom: 0.6em;
  font-weight: 400;
}

.services-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service {
  background: var(--paper);
  padding: 64px 48px;
  position: relative;
  transition: background 0.5s var(--ease);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.service:hover {
  background: var(--ink);
  color: var(--paper);
}
.service:hover .service-num,
.service:hover .service-tag { color: var(--stone); }
.service-num {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--ash);
  transition: color 0.5s var(--ease);
}
.service-title {
  font-family: var(--font-jp);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.4;
  margin: 24px 0;
}
.service-title em {
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 0.6em;
  color: var(--ash);
  margin-left: 8px;
  font-weight: 400;
  transition: color 0.5s var(--ease);
}
.service:hover .service-title em { color: var(--stone); }
.service-tag {
  font-family: var(--font-jp-sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ash);
  transition: color 0.5s var(--ease);
}
.service-tag::before {
  content: '— ';
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .service { padding: 48px 32px; min-height: auto; }
}

/* === Vision === */
.vision {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 200px 48px;
}
.vision-text {
  font-family: var(--font-jp);
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.8;
  font-weight: 400;
  letter-spacing: 0.08em;
  max-width: 1000px;
  margin: 0 auto;
}
.vision-text strong { font-weight: 800; }
.vision-en {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(16px, 1.5vw, 22px);
  color: var(--stone);
  margin-top: 48px;
  letter-spacing: 0.05em;
}

/* === Recruit === */
.recruit {
  background: var(--paper);
  padding: 160px 48px;
}
.recruit-header {
  max-width: 1400px;
  margin: 0 auto 80px;
  text-align: center;
}
.recruit-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--ash);
  margin-bottom: 24px;
}
.recruit-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 8vw, 120px);
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin-bottom: 32px;
}
.recruit-sub {
  font-family: var(--font-jp);
  font-size: 18px;
  line-height: 1.9;
  max-width: 600px;
  margin: 0 auto;
}

.recruit-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.recruit-card {
  background: var(--paper);
  padding: 64px 48px;
  position: relative;
}
.recruit-card-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--ash);
  margin-bottom: 16px;
}
.recruit-card-title {
  font-family: var(--font-jp);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 32px;
}
.recruit-card-body {
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: 1.9;
  color: var(--ash);
  margin-bottom: 32px;
}
.recruit-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 3vw, 48px);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.recruit-price-suffix {
  font-size: 0.4em;
  letter-spacing: 0.1em;
  margin-left: 0.4em;
}
.recruit-price-note {
  font-family: var(--font-jp-sans);
  font-size: 13px;
  color: var(--ash);
  letter-spacing: 0.1em;
}
@media (max-width: 768px) {
  .recruit-grid { grid-template-columns: 1fr; }
  .recruit-card { padding: 48px 32px; }
}

/* === Contact / Footer === */
.contact {
  background: var(--ink);
  color: var(--paper);
  padding: 120px 48px 40px;
}
.contact-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.contact-cta {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(60px, 12vw, 200px);
  letter-spacing: 0.01em;
  line-height: 0.9;
  margin-bottom: 80px;
  display: block;
  color: var(--paper);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.contact-cta-text { display: block; transition: transform 0.6s var(--ease); }
.contact-cta:hover .contact-cta-text { transform: translateX(2vw); }
.contact-cta::after {
  content: '↗';
  position: absolute;
  top: 0; right: 0;
  font-size: 0.5em;
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.contact-cta:hover::after { opacity: 1; transform: translateX(0); }

.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-top: 48px;
  border-top: 1px solid rgba(245, 243, 238, 0.2);
}
.contact-block-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--stone);
  margin-bottom: 16px;
}
.contact-block-content {
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: 1.8;
}
.contact-block-content a { color: inherit; text-decoration: none; }
.contact-block-content a:hover { text-decoration: underline; }

.footer-bottom {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid rgba(245, 243, 238, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--stone);
}
.footer-mark { display: flex; align-items: center; gap: 12px; }
.footer-mark svg { width: 14px; height: 21px; }

@media (max-width: 768px) {
  .contact-info { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* === Selection === */
::selection { background: var(--ink); color: var(--paper); }

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   BLOG / JOURNAL — Index, Single Post, Archives, Search, 404
   ============================================================ */

/* === Blog Hero (shared with archive/search) === */
.blog-hero {
  position: relative;
  padding: 200px 48px 120px;
  overflow: hidden;
  background: var(--paper);
}
.blog-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.blog-hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(56px, 11vw, 160px);
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin-bottom: 24px;
}
.blog-hero-tag {
  font-family: var(--font-jp);
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.85;
  letter-spacing: 0.03em;
  max-width: 640px;
  color: var(--ash);
}

@media (max-width: 768px) {
  .blog-hero { padding: 140px 20px 64px; }
  .blog-hero-title { font-size: 48px; margin-bottom: 16px; }
  .blog-hero-tag { font-size: 15px; line-height: 1.75; }
}


/* === Blog List Section === */
.blog-list-section {
  padding: 80px 48px 160px;
  background: var(--paper);
}
.blog-list {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px 40px;
}
@media (max-width: 768px) {
  .blog-list-section { padding: 48px 20px 96px; }
  .blog-list { grid-template-columns: 1fr; gap: 56px; }
}


/* === Post Card === */
.post-card {
  position: relative;
}
.post-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.post-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--mist);
  overflow: hidden;
  margin-bottom: 24px;
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.post-card-link:hover .post-card-image img {
  transform: scale(1.04);
}
.post-card-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--ink);
  color: var(--paper);
}
.post-card-image-placeholder svg {
  width: 48px;
  height: 72px;
}
.post-card-body {}
.post-card-meta {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--ash);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}
.post-card-cat-divider { opacity: 0.4; }
.post-card-cat { color: var(--ink); font-weight: 700; }
.post-card-title {
  font-family: var(--font-jp);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
  color: var(--ink);
  transition: opacity 0.3s var(--ease);
}
.post-card-link:hover .post-card-title { opacity: 0.65; }
.post-card-excerpt {
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: 1.85;
  color: var(--ash);
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
.post-card-readmore {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--ink);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  display: inline-block;
}

@media (max-width: 768px) {
  .post-card-image { aspect-ratio: 16 / 10; margin-bottom: 18px; }
  .post-card-title { font-size: 20px; }
  .post-card-excerpt { font-size: 14px; line-height: 1.75; }
}


/* === Pagination === */
.blog-pagination,
.post-pagination-nav {
  max-width: 1200px;
  margin: 96px auto 0;
}
.blog-pagination .nav-links {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  font-size: 12px;
  text-transform: uppercase;
}
.blog-pagination a,
.blog-pagination .page-numbers {
  color: inherit;
  text-decoration: none;
  padding: 10px 14px;
  border: 1px solid var(--line);
  transition: all 0.3s var(--ease);
  min-width: 40px;
  text-align: center;
}
.blog-pagination a:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.blog-pagination .current {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}


/* === Single Post === */
.single-post {
  background: var(--paper);
  padding-top: 160px;
}

.single-post-header {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 48px;
  text-align: center;
  margin-bottom: 64px;
}
.single-post-meta-top {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--ash);
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  gap: 14px;
  align-items: center;
  text-transform: uppercase;
}
.single-post-cat {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.3s var(--ease);
}
.single-post-cat:hover { border-color: var(--ink); }
.single-post-title {
  font-family: var(--font-jp);
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.35;
  letter-spacing: 0.03em;
  margin-bottom: 28px;
}
.single-post-excerpt {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.7;
  color: var(--ash);
  max-width: 640px;
  margin: 0 auto;
}

.single-post-featured {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 80px;
  padding: 0 48px;
}
.single-post-featured img {
  width: 100%;
  height: auto;
  display: block;
}

.single-post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 48px;
  font-family: var(--font-jp);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.95;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.single-post-content > * + * { margin-top: 1.6em; }
.single-post-content h2 {
  font-family: var(--font-jp);
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: 0.02em;
  line-height: 1.45;
  margin-top: 2.5em;
  padding-top: 1em;
  border-top: 1px solid var(--line);
}
.single-post-content h3 {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: 0.02em;
  margin-top: 2em;
}
.single-post-content h4 {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  margin-top: 1.8em;
}
.single-post-content p {
  margin-top: 1.4em;
}
.single-post-content a {
  color: inherit;
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
  transition: opacity 0.3s var(--ease);
}
.single-post-content a:hover { opacity: 0.6; }
.single-post-content blockquote {
  border-left: 2px solid var(--ink);
  padding: 4px 0 4px 24px;
  margin: 2em 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.7;
  color: var(--ash);
}
.single-post-content ul,
.single-post-content ol {
  padding-left: 1.4em;
  margin-top: 1.2em;
}
.single-post-content li {
  margin-top: 0.6em;
}
.single-post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2em auto;
}
.single-post-content figure {
  margin: 2.5em 0;
}
.single-post-content figure img {
  margin: 0 auto;
}
.single-post-content figcaption {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ash);
  text-align: center;
  margin-top: 12px;
  text-transform: uppercase;
}
.single-post-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--mist);
  padding: 2px 6px;
  border-radius: 2px;
}
.single-post-content pre {
  background: var(--ink);
  color: var(--paper);
  padding: 24px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
  margin: 2em 0;
}
.single-post-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}
.single-post-content hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 3em auto;
  max-width: 80px;
}
.single-post-content .alignwide {
  max-width: calc(100% + 200px);
  margin-left: -100px;
  margin-right: -100px;
}
.single-post-content .alignfull {
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

@media (max-width: 768px) {
  .single-post { padding-top: 100px; }
  .single-post-header { padding: 0 20px; margin-bottom: 40px; }
  .single-post-meta-top { font-size: 10px; gap: 8px; margin-bottom: 16px; }
  .single-post-title { font-size: 26px; line-height: 1.4; margin-bottom: 18px; }
  .single-post-excerpt { font-size: 15px; }
  .single-post-featured { padding: 0 20px; margin-bottom: 48px; }
  .single-post-content { padding: 0 24px; font-size: 16px; line-height: 1.85; }
  .single-post-content .alignwide,
  .single-post-content .alignfull {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}


/* === Single Post Footer (tags, share) === */
.single-post-footer {
  max-width: 720px;
  margin: 80px auto 0;
  padding: 40px 48px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.single-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-family: var(--font-jp-sans);
  font-size: 12px;
}
.single-post-tags a {
  color: var(--ash);
  text-decoration: none;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 0.3s var(--ease);
}
.single-post-tags a:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.single-post-tags a::before { content: '#'; opacity: 0.4; margin-right: 2px; }

.single-post-share {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.25em;
}
.single-post-share-label {
  color: var(--ash);
  text-transform: uppercase;
}
.single-post-share a {
  color: var(--ink);
  text-decoration: none;
  padding: 4px 8px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s var(--ease);
}
.single-post-share a:hover { border-color: var(--ink); }

@media (max-width: 768px) {
  .single-post-footer { padding: 32px 24px 0; margin-top: 56px; flex-direction: column; gap: 24px; }
}


/* === Prev/Next Post Nav === */
.post-pagination-nav {
  max-width: 1200px;
  margin: 96px auto 0;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  border-top: 1px solid var(--line);
  padding-top: 48px;
}
.post-pagination-prev,
.post-pagination-next {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  padding: 24px 0;
  transition: opacity 0.3s var(--ease);
}
.post-pagination-prev { text-align: left; }
.post-pagination-next { text-align: right; }
.post-pagination-prev:hover,
.post-pagination-next:hover { opacity: 0.6; }
.post-pagination-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--ash);
  text-transform: uppercase;
}
.post-pagination-title {
  font-family: var(--font-jp);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--ink);
}
@media (max-width: 768px) {
  .post-pagination-nav { padding: 32px 24px 0; gap: 24px; margin-top: 56px; grid-template-columns: 1fr; }
  .post-pagination-next { text-align: left; }
  .post-pagination-title { font-size: 15px; }
}


/* === Related Posts === */
.related-posts {
  max-width: 1400px;
  margin: 120px auto 0;
  padding: 96px 48px 0;
  border-top: 1px solid var(--line);
}
.related-posts-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 64px;
  text-align: center;
}
.related-posts-eyebrow {
  display: block;
  font-family: var(--font-jp-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.4em;
  color: var(--ash);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.related-posts-list {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 40px !important;
}
@media (max-width: 1024px) {
  .related-posts-list { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 768px) {
  .related-posts { padding: 64px 24px 0; margin-top: 80px; }
  .related-posts-title { font-size: 28px; margin-bottom: 40px; }
  .related-posts-list { grid-template-columns: 1fr !important; gap: 48px !important; }
}


/* === Back to Blog === */
.back-to-blog-wrap {
  text-align: center;
  padding: 80px 24px;
  background: var(--paper);
}
.back-to-blog {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s var(--ease);
  text-transform: uppercase;
}
.back-to-blog:hover { border-color: var(--ink); }


/* === Static Page === */
.static-page {
  background: var(--paper);
  padding-top: 160px;
}
.static-page-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 48px;
  text-align: center;
  margin-bottom: 56px;
}
.static-page-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: 0.02em;
  line-height: 1;
}
.static-page-featured {
  max-width: 1400px;
  margin: 0 auto 64px;
  padding: 0 48px;
}
.static-page-featured img {
  width: 100%;
  height: auto;
}
@media (max-width: 768px) {
  .static-page { padding-top: 100px; }
  .static-page-header { padding: 0 24px; margin-bottom: 32px; }
  .static-page-title { font-size: 32px; }
  .static-page-featured { padding: 0 20px; margin-bottom: 40px; }
}


/* === Search Form === */
.search-form {
  display: flex;
  align-items: center;
  max-width: 540px;
  margin: 0 auto 64px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}
.search-form-label {
  flex: 1;
  display: block;
}
.search-field {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-jp);
  font-size: 17px;
  letter-spacing: 0.05em;
  padding: 12px 4px;
  color: var(--ink);
}
.search-field::placeholder {
  color: var(--stone);
  font-style: italic;
}
.search-submit {
  border: none;
  background: transparent;
  font-family: var(--font-display);
  font-size: 18px;
  cursor: pointer;
  padding: 12px 8px;
  color: var(--ink);
  transition: transform 0.3s var(--ease);
}
.search-submit:hover { transform: translateX(4px); }
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}


/* === 404 === */
.error-404 {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 48px 80px;
  background: var(--paper);
  overflow: hidden;
}
.error-404-inner {
  max-width: 640px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.error-404-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(96px, 18vw, 240px);
  letter-spacing: 0.02em;
  line-height: 0.9;
  margin-bottom: 24px;
}
.error-404-title {
  font-family: var(--font-jp);
  font-weight: 800;
  font-size: clamp(22px, 2.8vw, 32px);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.error-404-text {
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ash);
  margin-bottom: 40px;
}
.error-404-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.error-404-btn {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 24px;
  border: 1px solid var(--ink);
  transition: all 0.3s var(--ease);
  text-transform: uppercase;
}
.error-404-btn:hover {
  background: var(--ink);
  color: var(--paper);
}
.error-404-search { margin-top: 40px; }
.error-404-search .search-form { margin: 0 auto; }


/* === Blog Empty / No Posts === */
.blog-empty {
  text-align: center;
  padding: 80px 24px;
  font-family: var(--font-jp);
  font-size: 16px;
  color: var(--ash);
  max-width: 1200px;
  margin: 0 auto;
}


/* ============================================================
   LANGUAGE-SPECIFIC TYPOGRAPHY (lang-en)
   英語表示時には日本語専用フォントを使わずserif系で統一
   ============================================================ */
body.lang-en .philosophy-text,
body.lang-en .philosophy-text p,
body.lang-en .ma-jp,
body.lang-en .ma-desc,
body.lang-en .ma-intro,
body.lang-en .about-quote,
body.lang-en .recruit-sub,
body.lang-en .recruit-card-title,
body.lang-en .recruit-card-body,
body.lang-en .vision-text,
body.lang-en .service-title,
body.lang-en .company-row dd,
body.lang-en .contact-block-content,
body.lang-en .hero-tag {
  font-family: var(--font-serif), var(--font-jp), serif;
  letter-spacing: 0.01em;
}

body.lang-en .philosophy-text {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.75;
}

body.lang-en .about-quote {
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.65;
}

body.lang-en .vision-text {
  line-height: 1.5;
  letter-spacing: 0.04em;
}

body.lang-en .ma-jp,
body.lang-en .recruit-card-title,
body.lang-en .service-title,
body.lang-en .company-title,
body.lang-en .ma-title,
body.lang-en .services-title {
  font-family: var(--font-display), serif;
  letter-spacing: 0.02em;
}

body.lang-en .ma-jp {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 900;
}

/* Hide redundant labels in EN mode */
body.lang-en .ma-en {
  font-style: italic;
  opacity: 0.6;
  font-size: 14px;
}

body.lang-en .philosophy-label {
  letter-spacing: 0.2em;
}

body.lang-en .philosophy-label span {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.03em;
}

@media (max-width: 768px) {
  body.lang-en .philosophy-text { font-size: 17px; }
  body.lang-en .about-quote { font-size: 20px; }
  body.lang-en .ma-jp { font-size: 26px; }
  body.lang-en .vision-text { font-size: 26px; }
}

/* Blog/post content in EN: cleaner serif chain */
body.lang-en .post-card-title,
body.lang-en .single-post-title,
body.lang-en .single-post-content,
body.lang-en .static-page-content,
body.lang-en .post-pagination-title,
body.lang-en .blog-hero-tag {
  font-family: var(--font-serif), serif;
  letter-spacing: 0.005em;
}
body.lang-en .single-post-content {
  font-size: clamp(17px, 1.7vw, 19px);
  line-height: 1.75;
}
body.lang-en .post-card-title {
  font-weight: 700;
  letter-spacing: 0.005em;
}
body.lang-en .single-post-title {
  font-weight: 700;
  letter-spacing: 0.005em;
}
body.lang-en .single-post-content h2,
body.lang-en .single-post-content h3,
body.lang-en .single-post-content h4 {
  font-family: var(--font-display), serif;
  letter-spacing: 0.02em;
}

/* === WordPress admin bar fix === */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .nav { top: 46px; }
}

/* ============================================================
   MOBILE TYPOGRAPHY REFINEMENTS (v1.0.2)
   日本語の自然な改行と、モバイルでの可読性向上
   ============================================================ */

/* 日本語禁則処理: 句読点が行頭に来ないようにする */
html {
  line-break: strict;
}

@media (max-width: 768px) {

  /* --- Navigation: モバイルではロゴ文字を非表示にして
         スクロール時のコンテンツとの重なりを防ぐ --- */
  .nav { padding: 16px 20px; }
  .nav-logo span { display: none; }

  /* --- Hero --- */
  .hero { padding: 0 20px; min-height: 600px; }
  .hero-eyebrow { font-size: 10px; letter-spacing: 0.4em; margin-bottom: 24px; }
  .hero-mark { width: 56px; margin-bottom: 20px; }
  .hero-title {
    font-size: clamp(38px, 14vw, 200px);
    letter-spacing: 0.02em;
    gap: 0.04em;
  }
  .hero-jp {
    font-size: 11px;
    letter-spacing: 0.6em;
    margin-bottom: 40px;
  }
  .hero-tag {
    font-size: 13px;
    padding: 0 12px;
    line-height: 1.5;
  }
  .scroll-cue { bottom: 32px; font-size: 9px; }

  /* --- Section base --- */
  .section { padding: 96px 20px; }
  .section-num { left: 20px; top: 48px; font-size: 10px; }
  .section-num::before { width: 24px; margin-right: 8px; }

  /* --- Philosophy: 読みやすいサイズ＆自然な改行 --- */
  .philosophy-inner { gap: 32px; }
  .philosophy-label {
    font-size: 11px;
    letter-spacing: 0.25em;
  }
  .philosophy-label span {
    font-size: 18px;
    letter-spacing: 0.04em;
    margin-top: 12px;
    line-height: 1.5;
  }
  .philosophy-text {
    font-size: 16px;
    line-height: 1.95;
    letter-spacing: 0.01em;
    text-wrap: pretty;
  }
  .philosophy-text p { margin-bottom: 1.4em; }

  /* --- Concept (4 Ma) --- */
  .ma { padding: 96px 20px; }
  .ma-header { gap: 24px; margin-bottom: 64px; }
  .ma-title { font-size: 36px; letter-spacing: 0.01em; }
  .ma-title-jp { letter-spacing: 0.3em; margin-bottom: 0.5em; }
  .ma-intro {
    font-size: 14px;
    line-height: 1.9;
    letter-spacing: 0.01em;
    text-wrap: pretty;
  }
  .ma-list { font-size: 90%; }
  .ma-item { padding: 36px 0; gap: 20px; }
  .ma-num { font-size: 11px; letter-spacing: 0.25em; }
  .ma-jp {
    font-size: 24px;
    letter-spacing: 0.04em;
  }
  .ma-desc {
    font-size: 13px;
    line-height: 1.8;
    letter-spacing: 0.01em;
  }
  .ma-en { font-size: 14px; }

  /* --- About --- */
  .about { padding: 96px 20px; }
  .about-quote {
    font-size: 18px;
    line-height: 1.95;
    letter-spacing: 0.02em;
    text-wrap: pretty;
  }
  .about-mark-large { width: 44px; margin-bottom: 40px; }

  /* --- Company --- */
  .company { padding: 96px 20px; }
  .company-header { margin-bottom: 48px; padding-bottom: 24px; }
  .company-title { font-size: 36px; letter-spacing: 0.01em; }
  .company-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 0;
  }
  .company-row:hover { padding-left: 0; }
  .company-row dt {
    gap: 10px;
    flex-wrap: wrap;
  }
  .company-label-num { font-size: 10px; letter-spacing: 0.25em; }
  .company-label-en { font-size: 14px; }
  .company-label-jp { font-size: 11px; letter-spacing: 0.15em; }
  .company-row dd {
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: 0.02em;
  }
  .company-zip {
    display: block;
    margin-right: 0;
    margin-bottom: 4px;
    font-size: 11px;
  }
  /* --- Services --- */
  .services { padding: 96px 20px; }
  .services-header { margin-bottom: 56px; }
  .services-title { font-size: 36px; letter-spacing: 0.01em; }
  .service { padding: 40px 24px; min-height: auto; }
  .service-num { font-size: 10px; letter-spacing: 0.25em; }
  .service-title {
    font-size: 21px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    margin: 16px 0;
  }
  .service-title em { font-size: 0.55em; margin-left: 4px; }
  .service-tag { font-size: 11px; letter-spacing: 0.15em; }

  /* --- Vision --- */
  .vision { padding: 120px 20px; }
  .vision-text {
    font-size: 24px;
    line-height: 1.7;
    letter-spacing: 0.04em;
    text-wrap: pretty;
  }
  .vision-en { font-size: 14px; margin-top: 32px; }

  /* --- Recruit --- */
  .recruit { padding: 96px 20px; }
  .recruit-header { margin-bottom: 56px; }
  .recruit-eyebrow { font-size: 10px; letter-spacing: 0.3em; }
  .recruit-title { font-size: 56px; }
  .recruit-sub {
    font-size: 15px;
    line-height: 1.85;
    letter-spacing: 0.02em;
    text-wrap: pretty;
  }
  .recruit-card { padding: 40px 24px; }
  .recruit-card-label { font-size: 10px; letter-spacing: 0.3em; }
  .recruit-card-title {
    font-size: 26px;
    letter-spacing: 0.03em;
    margin-bottom: 24px;
  }
  .recruit-card-body {
    font-size: 14px;
    line-height: 1.85;
    letter-spacing: 0.01em;
    margin-bottom: 24px;
  }
  .recruit-price { font-size: 32px; }
  .recruit-price-suffix { font-size: 0.45em; }

  /* --- Contact --- */
  .contact { padding: 80px 20px 32px; }
  .contact-cta {
    font-size: clamp(56px, 18vw, 120px);
    margin-bottom: 56px;
  }
  .contact-block-label { font-size: 10px; letter-spacing: 0.3em; }
  .contact-block-content { font-size: 14px; line-height: 1.7; }

  /* --- Footer --- */
  .footer-bottom {
    margin-top: 56px;
    padding-top: 24px;
    font-size: 10px;
    letter-spacing: 0.25em;
  }
}

/* --- Very small phones (iPhone SE etc.) --- */
@media (max-width: 380px) {
  .hero-title { font-size: 36px; }
  .ma-jp { font-size: 22px; }
  .recruit-title { font-size: 48px; }
  .contact-cta { font-size: 52px; }
  .philosophy-text, .about-quote { font-size: 15px; }
}
