/*
Theme Name: Wednesday Tokyo
Theme URI: https://wednesdaytokyo.com
Author: 株式会社水曜日
Description: Corporate website for Wednesday Tokyo Inc.
Version: 1.7.1
Text Domain: wednesday-tokyo
*/

/* ==========================================================================
   §0. CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
  /* Colors */
  --color-primary: #0076D9;
  --color-secondary: #FF9800;
  --color-hero-start: #0066CC;
  --color-hero-mid: #4A8FD4;
  --color-hero-end: #FF8800;
  --color-menu-mid: #5A9FD4;
  --color-text: #666666;
  --color-text-muted: #888888;
  --color-text-light: #999999;
  --color-text-lighter: #CCCCCC;
  --color-border: #F0F0F0;
  --color-border-dark: #E0E0E0;
  --color-border-light: #F5F5F5;
  --color-border-faint: #E8E8E8;
  --color-bg-card: #EFEFE6;
  --color-bg-faint: #FAFAFA;
  --color-bg-hover: #F5F5F5;
  --color-placeholder: #D0D0D0;

  /* Fonts */
  --font-inter: 'Inter', sans-serif;
  --font-garamond: 'EB Garamond', serif;
  --font-noto-sans: 'Noto Sans JP', sans-serif;
  --font-noto-serif: 'Noto Serif JP', serif;

  /* Layout */
  --container-max: 72rem;       /* 1152px */
  --container-footer: 80rem;    /* 1280px */

  /* Spacing */
  --px-sm: 24px;    /* px-6 */
  --px-md: 48px;    /* md:px-12 */
  --px-lg: 96px;    /* lg:px-24 */
  --py-section: 80px;    /* py-20 */
  --py-section-md: 128px; /* md:py-32 */
}


/* ==========================================================================
   §1. Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: #FFFFFF;
  font-family: var(--font-noto-sans);
  font-weight: 300;
  color: var(--color-text);
  line-height: 2;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease, opacity 0.3s ease;
}

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

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

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 300;
}

p {
  margin: 0;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

figure {
  margin: 0;
}


/* ==========================================================================
   §2. Utility Classes
   ========================================================================== */

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--px-sm);
  padding-right: var(--px-sm);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Writing mode vertical */
.writing-vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.writing-vertical-upright {
  writing-mode: vertical-rl;
  text-orientation: upright;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Section padding */
.section-padding {
  padding-left: var(--px-sm);
  padding-right: var(--px-sm);
  padding-top: var(--py-section);
  padding-bottom: var(--py-section);
}

/* Page top spacing (after fixed header) */
.page-top {
  padding-top: 128px;
}


/* ==========================================================================
   §3. Typography
   ========================================================================== */

/* Page title (H1) - Inter */
.page-title {
  font-family: var(--font-inter);
  font-weight: 300;
  letter-spacing: -0.025em;
  font-size: 30px;
  color: var(--color-text);
  line-height: 1.2;
}

/* Section label - Inter, small caps style */
.section-label {
  font-family: var(--font-inter);
  font-weight: 300;
  font-size: 12px;
  color: var(--color-text-light);
  letter-spacing: 0.2em;
}

/* Body text - Noto Sans JP */
.body-text {
  font-family: var(--font-noto-sans);
  font-weight: 300;
  font-size: 14px;
  color: var(--color-text);
  line-height: 2;
}

/* Muted body text */
.body-text-muted {
  font-family: var(--font-noto-sans);
  font-weight: 300;
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.9;
}

/* Feature text - EB Garamond */
.feature-text {
  font-family: var(--font-garamond);
  font-weight: 300;
  font-style: italic;
  font-size: 18px;
  color: var(--color-text);
}

/* Copyright text */
.copyright-text {
  font-family: var(--font-inter);
  font-weight: 300;
  font-size: 10px;
  color: var(--color-text-lighter);
}


/* ==========================================================================
   §4. Loading Bar
   ========================================================================== */

.loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 4px;
  background-color: var(--color-border);
  pointer-events: none;
}

.loading-bar__progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  animation: loadingProgress 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.loading-bar--hidden {
  opacity: 0;
  transition: opacity 0.3s ease;
}

@keyframes loadingProgress {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}


/* ==========================================================================
   §5. Fixed Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 24px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

/* Company name link */
.site-header__logo {
  font-family: var(--font-noto-sans);
  font-weight: 100;
  font-size: 14px;
  color: var(--color-text);
  position: relative;
  transition: opacity 0.3s ease;
  letter-spacing: 0.05em;
}

.site-header__logo:hover {
  opacity: 0.7;
}

/* Home page overlapping text layers */
.site-header__logo--home {
  position: relative;
}

.site-header__logo-layer {
  display: block;
}

.site-header__logo-layer--orange {
  color: var(--color-secondary);
  position: absolute;
  top: 0;
  left: 0;
}

.site-header__logo-layer--gray {
  color: var(--color-text);
}


/* ==========================================================================
   §6. Hamburger Button
   ========================================================================== */

.hamburger {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 50;
  width: 24px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 6px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  background: none;
  border: none;
  padding: 0;
}

.hamburger:hover {
  opacity: 0.7;
}

.hamburger__line {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* When nav is open, hamburger hides (z-index handled by nav overlay) */
.hamburger--open .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger--open .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger--open .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ==========================================================================
   §7. Navigation Overlay
   ========================================================================== */

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: linear-gradient(135deg, var(--color-primary), var(--color-menu-mid), var(--color-secondary));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  overflow-y: auto;
}

.nav-overlay--open {
  opacity: 1;
  pointer-events: auto;
}

/* Close button */
.nav-overlay__close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 101;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay__close:hover {
  opacity: 0.7;
}

.nav-overlay__close-line {
  position: absolute;
  width: 24px;
  height: 1px;
  background-color: #FFFFFF;
}

.nav-overlay__close-line:first-child {
  transform: rotate(45deg);
}

.nav-overlay__close-line:last-child {
  transform: rotate(-45deg);
}

/* Menu list */
.nav-overlay__menu {
  padding-right: 48px;
  width: 100%;
  text-align: right;
}

.nav-overlay__item {
  margin-bottom: 24px;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.nav-overlay__item:last-child {
  margin-bottom: 0;
}

.nav-overlay--open .nav-overlay__item {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered delays */
.nav-overlay--open .nav-overlay__item:nth-child(1) { transition-delay: 0.05s; }
.nav-overlay--open .nav-overlay__item:nth-child(2) { transition-delay: 0.10s; }
.nav-overlay--open .nav-overlay__item:nth-child(3) { transition-delay: 0.15s; }
.nav-overlay--open .nav-overlay__item:nth-child(4) { transition-delay: 0.20s; }
.nav-overlay--open .nav-overlay__item:nth-child(5) { transition-delay: 0.25s; }
.nav-overlay--open .nav-overlay__item:nth-child(6) { transition-delay: 0.30s; }
.nav-overlay--open .nav-overlay__item:nth-child(7) { transition-delay: 0.35s; }
.nav-overlay--open .nav-overlay__item:nth-child(8) { transition-delay: 0.40s; }

.nav-overlay__link {
  display: block;
  color: #FFFFFF;
  transition: opacity 0.3s ease;
  text-align: right;
}

.nav-overlay__link:hover {
  opacity: 0.7;
}

.nav-overlay__link-title {
  display: block;
  font-family: var(--font-inter);
  font-weight: 300;
  font-size: 30px;
  color: #FFFFFF;
  line-height: 1.2;
}

.nav-overlay__link-sub {
  display: block;
  font-family: var(--font-noto-sans);
  font-weight: 300;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
}


/* ==========================================================================
   §8. Hero Section (Home)
   ========================================================================== */

.hero {
  position: relative;
  height: 120vh;
  overflow: hidden;
}

.hero__gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--color-hero-start), var(--color-hero-mid), var(--color-hero-end));
  background-size: 200% 100%;
  animation: gradientShift 1.5s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* Gradient overlay at bottom (transparent -> white) */
.hero__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50vh;
  background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.5) 50%, #FFFFFF 100%);
  pointer-events: none;
}

/* Vertical text container */
.hero__vertical-text {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 24px;
}

.hero__vertical-line {
  writing-mode: vertical-rl;
  font-family: var(--font-noto-serif);
  font-weight: 300;
  font-style: italic;
  font-size: 9px;
  color: #FFFFFF;
  letter-spacing: 0.15em;
  opacity: 0;
  transform: translateX(20px);
  animation: heroTextFadeIn 0.8s ease forwards;
}

.hero__vertical-line:nth-child(1) { animation-delay: 0.5s; }
.hero__vertical-line:nth-child(2) { animation-delay: 0.7s; }
.hero__vertical-line:nth-child(3) { animation-delay: 0.9s; }
.hero__vertical-line:nth-child(4) { animation-delay: 1.1s; }

@keyframes heroTextFadeIn {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}


/* ==========================================================================
   §9. Section Grid Layout
   ========================================================================== */

.section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.section-grid__label {
  font-family: var(--font-inter);
  font-weight: 300;
  font-size: 12px;
  color: var(--color-text-light);
  letter-spacing: 0.2em;
}

.section-grid__content {
  min-width: 0;
}


/* ==========================================================================
   §10. Promise Cards
   ========================================================================== */

.promise-list {
  display: flex;
  flex-direction: column;
  margin-top: 48px;
}

.promise-card {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--color-border);
}

.promise-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.promise-card + .promise-card {
  padding-top: 48px;
}

.promise-card__number {
  font-family: var(--font-inter);
  font-weight: 300;
  font-size: 12px;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.promise-card__title {
  font-family: var(--font-garamond);
  font-weight: 300;
  font-size: 18px;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 16px;
}

.promise-card__description {
  font-family: var(--font-noto-sans);
  font-weight: 300;
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.9;
}


/* ==========================================================================
   §11. Project Cards
   ========================================================================== */

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.project-card {
  display: block;
  transition: opacity 0.3s ease;
}

.project-card:hover {
  opacity: 0.9;
}

.project-card__image-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: var(--color-bg-card);
  overflow: hidden;
  margin-bottom: 16px;
}

.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.project-card:hover .project-card__image {
  transform: scale(1.05);
}

.project-card__title {
  font-family: var(--font-noto-serif);
  font-weight: 300;
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.6;
}

.project-card__subtitle {
  font-family: var(--font-noto-sans);
  font-weight: 300;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* Coming soon card */
.project-card--coming-soon .project-card__image-wrapper {
  background-color: var(--color-bg-faint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card--coming-soon .project-card__placeholder {
  font-family: var(--font-garamond);
  font-weight: 300;
  font-style: italic;
  font-size: 16px;
  color: var(--color-border-faint);
}


/* ==========================================================================
   §12. News Items
   ========================================================================== */

.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.3s ease;
}

.news-item + .news-item {
  padding-top: 24px;
}

.news-item:hover {
  color: var(--color-primary);
}

.news-item__date {
  font-family: var(--font-inter);
  font-weight: 300;
  font-size: 12px;
  color: var(--color-text-light);
  flex-shrink: 0;
}

.news-item__title {
  font-family: var(--font-noto-sans);
  font-weight: 300;
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.8;
  transition: color 0.3s ease;
}

.news-item:hover .news-item__title {
  color: var(--color-primary);
}

.news-item__arrow {
  width: 16px;
  height: 16px;
  color: var(--color-text-light);
  transition: color 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
  display: none;
}

.news-item:hover .news-item__arrow {
  color: var(--color-primary);
  transform: translateX(4px);
}


/* ==========================================================================
   §13. Gradient Button (CTA)
   ========================================================================== */

.btn-gradient {
  display: inline-block;
  border: 1px solid var(--color-text);
  padding: 12px 32px;
  font-family: var(--font-inter);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--color-text);
  background: transparent;
  cursor: pointer;
  transition: color 300ms ease, border-color 300ms ease, background 300ms ease;
  text-align: center;
  text-decoration: none;
}

.btn-gradient:hover {
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #FFFFFF;
  border-color: transparent;
}

/* Full width variant */
.btn-gradient--full {
  display: block;
  width: 100%;
}


/* ==========================================================================
   §14. Contact Form
   ========================================================================== */

.contact-form {
  max-width: 640px;
}

.contact-form__group {
  margin-bottom: 32px;
}

.contact-form__label {
  display: block;
  font-family: var(--font-noto-sans);
  font-weight: 300;
  font-size: 12px;
  color: var(--color-text);
  margin-bottom: 12px;
}

.contact-form__label-required {
  font-size: 10px;
  color: var(--color-text-light);
  margin-left: 8px;
}

.contact-form__input,
.contact-form__textarea,
.contact-form__select {
  width: 100%;
  border: 1px solid var(--color-border-dark);
  padding: 12px 16px;
  font-family: var(--font-noto-sans);
  font-weight: 300;
  font-size: 14px;
  color: var(--color-text);
  background-color: #FFFFFF;
  transition: border-color 0.3s ease;
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form__input:focus,
.contact-form__textarea:focus,
.contact-form__select:focus {
  border-color: var(--color-text);
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: var(--color-placeholder);
}

.contact-form__textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form__select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.contact-form__error {
  font-size: 12px;
  color: var(--color-text-light);
  margin-top: 8px;
}

.contact-form__submit {
  margin-top: 48px;
}

/* Success message */
.contact-form__success {
  background-color: var(--color-text);
  color: #FFFFFF;
  padding: 16px;
  font-family: var(--font-noto-sans);
  font-weight: 300;
  font-size: 14px;
  text-align: center;
}

/* Radio / Checkbox groups */
.contact-form__radio-group,
.contact-form__checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form__radio-label,
.contact-form__checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-noto-sans);
  font-weight: 300;
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
}

.contact-form__radio-label input,
.contact-form__checkbox-label input {
  accent-color: var(--color-primary);
}


/* ==========================================================================
   §15. Recruit Table (Desktop)
   ========================================================================== */

.recruit-table {
  width: 100%;
  border-collapse: collapse;
  display: none;
}

.recruit-table thead th {
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  color: #FFFFFF;
  font-family: var(--font-noto-sans);
  font-weight: 300;
  font-size: 12px;
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}

.recruit-table tbody td {
  font-family: var(--font-noto-sans);
  font-weight: 300;
  font-size: 14px;
  color: var(--color-text);
  padding: 16px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.recruit-table tbody tr:hover {
  background-color: var(--color-bg-faint);
}

.recruit-table__department {
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 400;
}


/* ==========================================================================
   §16. Recruit Table (Mobile Cards)
   ========================================================================== */

.recruit-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recruit-card {
  border: 1px solid var(--color-border);
  padding: 16px;
}

.recruit-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.recruit-card__title {
  font-family: var(--font-noto-sans);
  font-weight: 300;
  font-size: 14px;
  color: var(--color-text);
}

.recruit-card__department {
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-noto-sans);
  font-weight: 400;
  font-size: 12px;
}

.recruit-card__detail {
  font-family: var(--font-noto-sans);
  font-weight: 300;
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.recruit-card__detail-label {
  color: var(--color-text-light);
  margin-right: 8px;
}


/* ==========================================================================
   §17. Organization Chart (Recruit)
   ========================================================================== */

.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.org-chart__top {
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  color: #FFFFFF;
  font-family: var(--font-noto-sans);
  font-weight: 300;
  font-size: 14px;
  padding: 16px 32px;
  text-align: center;
  min-width: 200px;
}

.org-chart__connector {
  width: 1px;
  height: 24px;
  background-color: var(--color-border-faint);
}

.org-chart__branches {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.org-chart__branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.org-chart__sub {
  border: 1px solid var(--color-border-faint);
  font-family: var(--font-noto-sans);
  font-weight: 300;
  font-size: 12px;
  color: var(--color-text-light);
  padding: 12px 24px;
  text-align: center;
  min-width: 160px;
}

.org-chart__sub-connector {
  width: 1px;
  height: 16px;
  background-color: var(--color-border-faint);
}

.org-chart__children {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.org-chart__child {
  border: 1px solid var(--color-border-faint);
  font-family: var(--font-noto-sans);
  font-weight: 300;
  font-size: 11px;
  color: var(--color-text-light);
  padding: 8px 16px;
  text-align: center;
}


/* ==========================================================================
   §18. Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--color-border);
}

.site-footer__inner {
  max-width: var(--container-footer);
  margin: 0 auto;
  padding: 48px 24px;
}

.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 48px;
}

.site-footer__company-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__address {
  font-family: var(--font-noto-sans);
  font-weight: 300;
  font-size: 11px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin: 0;
}

.site-footer__company {
  font-family: var(--font-noto-sans);
  font-weight: 100;
  font-size: 14px;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-footer__nav-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__nav-title {
  font-family: var(--font-inter);
  font-weight: 300;
  font-size: 12px;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
}

.site-footer__nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__link {
  font-family: var(--font-noto-sans);
  font-weight: 300;
  font-size: 12px;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}

.site-footer__link:hover {
  color: var(--color-primary);
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.site-footer__copyright {
  font-family: var(--font-inter);
  font-weight: 300;
  font-size: 10px;
  color: var(--color-text-lighter);
}

.site-footer__legal-links {
  display: flex;
  gap: 16px;
}

.site-footer__legal-link {
  font-family: var(--font-noto-sans);
  font-weight: 300;
  font-size: 10px;
  color: var(--color-text-lighter);
  transition: color 0.3s ease;
}

.site-footer__legal-link:hover {
  color: var(--color-primary);
}


/* ==========================================================================
   §19. Scroll Animations
   ========================================================================== */

/* Fade up */
.animate-fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Fade in */
.animate-fade-in {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.animate-fade-in.is-visible {
  opacity: 1;
}

/* Clip reveal */
.animate-clip-reveal {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.65s ease;
}

.animate-clip-reveal.is-visible {
  clip-path: inset(0 0 0 0);
}

/* Delay support via data-animate-delay (set via JS on element style) */
.animate-fade-up[data-animate-delay],
.animate-fade-in[data-animate-delay],
.animate-clip-reveal[data-animate-delay] {
  /* transition-delay is set inline via JS */
}


/* ==========================================================================
   §20. Page-specific: Company Info
   ========================================================================== */

.company-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.company-info__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.company-info__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.company-info__label {
  font-family: var(--font-noto-sans);
  font-weight: 300;
  font-size: 12px;
  color: var(--color-text-light);
}

.company-info__value {
  font-family: var(--font-noto-sans);
  font-weight: 300;
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.8;
}


/* ==========================================================================
   §21. Page-specific: Member / Team
   ========================================================================== */

.member-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.member-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.member-card__image-wrapper {
  aspect-ratio: 3 / 4;
  background-color: var(--color-bg-card);
  overflow: hidden;
}

.member-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.member-card__role {
  font-family: var(--font-inter);
  font-weight: 300;
  font-size: 12px;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
}

.member-card__name {
  font-family: var(--font-noto-sans);
  font-weight: 300;
  font-size: 16px;
  color: var(--color-text);
}

.member-card__name-en {
  font-family: var(--font-inter);
  font-weight: 300;
  font-size: 12px;
  color: var(--color-text-light);
}

.member-card__bio {
  font-family: var(--font-noto-sans);
  font-weight: 300;
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.9;
  margin-top: 8px;
}


/* ==========================================================================
   §22. Page-specific: Privacy Policy / Legal
   ========================================================================== */

.legal-content {
  font-family: var(--font-noto-sans);
  font-weight: 300;
  font-size: 14px;
  color: var(--color-text);
  line-height: 2;
}

.legal-content h2 {
  font-family: var(--font-noto-sans);
  font-weight: 400;
  font-size: 18px;
  color: var(--color-text);
  margin-top: 48px;
  margin-bottom: 16px;
}

.legal-content h3 {
  font-family: var(--font-noto-sans);
  font-weight: 400;
  font-size: 16px;
  color: var(--color-text);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content p {
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content li {
  list-style: disc;
  margin-bottom: 8px;
}

.legal-content ol li {
  list-style: decimal;
}


/* ==========================================================================
   §23. CTA Section (Contact / Recruit)
   ========================================================================== */

.cta-section {
  text-align: center;
  padding: 80px 24px;
}

.cta-section__label {
  font-family: var(--font-inter);
  font-weight: 300;
  font-size: 12px;
  color: var(--color-text-light);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.cta-section__title {
  font-family: var(--font-garamond);
  font-weight: 300;
  font-style: italic;
  font-size: 24px;
  color: var(--color-text);
  margin-bottom: 24px;
}

.cta-section__description {
  font-family: var(--font-noto-sans);
  font-weight: 300;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 2;
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}


/* ==========================================================================
   §24. Breadcrumb
   ========================================================================== */

.breadcrumb {
  font-family: var(--font-inter);
  font-weight: 300;
  font-size: 11px;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
  margin-bottom: 32px;
}

.breadcrumb a {
  color: var(--color-text-light);
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb__separator {
  margin: 0 8px;
  color: var(--color-text-lighter);
}

.breadcrumb__current {
  color: var(--color-text);
}


/* ==========================================================================
   §25. Map Embed
   ========================================================================== */

.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--color-bg-card);
  overflow: hidden;
}

.map-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* ==========================================================================
   §26. Pagination (News archive)
   ========================================================================== */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination__link,
.pagination__current {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-inter);
  font-weight: 300;
  font-size: 14px;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.pagination__link:hover {
  border-color: var(--color-text);
}

.pagination__current {
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  color: #FFFFFF;
  border-color: transparent;
}

.pagination__prev,
.pagination__next {
  font-family: var(--font-inter);
  font-weight: 300;
  font-size: 14px;
  color: var(--color-text-light);
  transition: color 0.3s ease;
}

.pagination__prev:hover,
.pagination__next:hover {
  color: var(--color-primary);
}


/* ==========================================================================
   §27. WordPress-specific Overrides
   ========================================================================== */

/* WordPress admin bar offset */
.admin-bar .site-header {
  top: 32px;
}

.admin-bar .hamburger {
  top: 56px;
}

.admin-bar .loading-bar {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .admin-bar .hamburger {
    top: 70px;
  }

  .admin-bar .loading-bar {
    top: 46px;
  }
}

/* WordPress alignment classes */
.alignnone {
  margin: 16px 0;
}

.aligncenter {
  display: block;
  margin: 16px auto;
}

.alignleft {
  float: left;
  margin: 0 16px 16px 0;
}

.alignright {
  float: right;
  margin: 0 0 16px 16px;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-family: var(--font-noto-sans);
  font-weight: 300;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 8px;
}

/* WordPress post content (the_content) */
.entry-content p {
  margin-bottom: 16px;
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

/* WordPress gallery */
.gallery {
  display: grid;
  gap: 16px;
}

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

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


/* ==========================================================================
   §28. Single Post Page
   ========================================================================== */

.single-post__header {
  margin-bottom: 48px;
}

.single-post__date {
  font-family: var(--font-inter);
  font-weight: 300;
  font-size: 12px;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.single-post__title {
  font-family: var(--font-noto-sans);
  font-weight: 300;
  font-size: 24px;
  color: var(--color-text);
  line-height: 1.6;
}

.single-post__category {
  display: inline-block;
  font-family: var(--font-inter);
  font-weight: 300;
  font-size: 11px;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
  border: 1px solid var(--color-border);
  padding: 4px 12px;
  margin-top: 16px;
}

.single-post__content {
  font-family: var(--font-noto-sans);
  font-weight: 300;
  font-size: 14px;
  color: var(--color-text);
  line-height: 2;
}

.single-post__content h2 {
  font-size: 20px;
  font-weight: 400;
  margin-top: 48px;
  margin-bottom: 16px;
}

.single-post__content h3 {
  font-size: 18px;
  font-weight: 400;
  margin-top: 32px;
  margin-bottom: 12px;
}

.single-post__content p {
  margin-bottom: 24px;
}

.single-post__content blockquote {
  border-left: 2px solid var(--color-border);
  padding-left: 24px;
  margin: 24px 0;
  color: var(--color-text-muted);
}

.single-post__content ul,
.single-post__content ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

.single-post__content li {
  list-style: disc;
  margin-bottom: 8px;
}

.single-post__content ol li {
  list-style: decimal;
}

/* Post navigation */
.post-nav {
  display: flex;
  justify-content: space-between;
  padding-top: 48px;
  margin-top: 48px;
  border-top: 1px solid var(--color-border);
}

.post-nav__link {
  font-family: var(--font-noto-sans);
  font-weight: 300;
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}

.post-nav__link:hover {
  color: var(--color-primary);
}

.post-nav__label {
  font-family: var(--font-inter);
  font-weight: 300;
  font-size: 11px;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  display: block;
}


/* ==========================================================================
   §29. 404 Page
   ========================================================================== */

.page-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 80px 24px;
}

.page-404__number {
  font-family: var(--font-inter);
  font-weight: 100;
  font-size: 80px;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1;
}

.page-404__title {
  font-family: var(--font-garamond);
  font-weight: 300;
  font-style: italic;
  font-size: 24px;
  color: var(--color-text);
  margin-bottom: 16px;
}

.page-404__description {
  font-family: var(--font-noto-sans);
  font-weight: 300;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}


/* ==========================================================================
   §30. Miscellaneous Components
   ========================================================================== */

/* Divider line */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 48px 0;
}

/* Tag / Badge */
.tag {
  display: inline-block;
  font-family: var(--font-inter);
  font-weight: 300;
  font-size: 11px;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
  border: 1px solid var(--color-border);
  padding: 4px 12px;
}

/* Back to top (if used) */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  background-color: #FFFFFF;
  color: var(--color-text);
  font-size: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, border-color 0.3s ease;
  z-index: 40;
}

.back-to-top--visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: var(--color-text);
}

/* External link indicator */
.external-link::after {
  content: '\2197';
  font-size: 0.8em;
  margin-left: 4px;
  display: inline-block;
}


/* ==========================================================================
   §31. Responsive: sm (640px+)
   ========================================================================== */

@media (min-width: 640px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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


/* ==========================================================================
   §32. Responsive: md (768px+)
   ========================================================================== */

@media (min-width: 768px) {
  body {
    font-size: 16px;
  }

  /* Layout */
  .container {
    padding-left: var(--px-md);
    padding-right: var(--px-md);
  }

  .section-padding {
    padding-left: var(--px-md);
    padding-right: var(--px-md);
    padding-top: var(--py-section-md);
    padding-bottom: var(--py-section-md);
  }

  /* Section grid */
  .section-grid {
    grid-template-columns: 200px 1fr;
    gap: 64px;
  }

  /* Typography */
  .page-title {
    font-size: 36px;
  }

  .body-text {
    font-size: 16px;
  }

  .body-text-muted {
    font-size: 14px;
  }

  .feature-text {
    font-size: 20px;
  }

  .copyright-text {
    font-size: 12px;
  }

  /* Header */
  .site-header {
    padding: 32px 48px;
  }

  .site-header__logo {
    font-size: 16px;
  }

  /* Hamburger */
  .hamburger {
    top: 32px;
    right: 48px;
    width: 32px;
  }

  /* Nav overlay */
  .nav-overlay__menu {
    padding-right: 96px;
  }

  .nav-overlay__close {
    top: 32px;
    right: 48px;
  }

  .nav-overlay__link-title {
    font-size: 36px;
  }

  .nav-overlay__item {
    margin-bottom: 40px;
  }

  /* Hero */
  .hero__vertical-line {
    font-size: 15px;
  }

  .hero__vertical-text {
    right: 96px;
    gap: 32px;
  }

  /* Promise cards */
  .promise-card {
    padding-bottom: 64px;
  }

  .promise-card + .promise-card {
    padding-top: 64px;
  }

  .promise-card__title {
    font-size: 20px;
  }

  .promise-card__description {
    font-size: 14px;
  }

  /* Project cards */
  .project-grid {
    gap: 48px;
  }

  .project-card__title {
    font-size: 16px;
  }

  /* News items */
  .news-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
    padding-bottom: 32px;
  }

  .news-item + .news-item {
    padding-top: 32px;
  }

  .news-item__title {
    flex: 1;
    font-size: 16px;
  }

  .news-item__arrow {
    display: block;
  }

  /* Button */
  .btn-gradient {
    padding: 16px 48px;
    font-size: 14px;
  }

  /* Contact form */
  .contact-form__label {
    font-size: 14px;
  }

  /* Recruit table */
  .recruit-table {
    display: table;
  }

  .recruit-cards {
    display: none;
  }

  /* Company info */
  .company-info__row {
    grid-template-columns: 160px 1fr;
    gap: 24px;
  }

  /* Footer */
  .site-footer__inner {
    padding: 64px 48px;
  }

  .site-footer__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .site-footer__company {
    font-size: 16px;
  }

  .site-footer__address {
    font-size: 12px;
  }

  .site-footer__nav {
    flex-direction: row;
    gap: 48px;
  }

  .site-footer__link {
    font-size: 14px;
  }

  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .site-footer__copyright {
    font-size: 12px;
  }

  .site-footer__legal-link {
    font-size: 12px;
  }

  /* Member grid */
  .member-grid {
    gap: 64px;
  }

  /* Single post */
  .single-post__title {
    font-size: 30px;
  }

  /* CTA */
  .cta-section {
    padding: 128px 48px;
  }

  .cta-section__title {
    font-size: 30px;
  }

  /* 404 */
  .page-404__number {
    font-size: 120px;
  }

  .page-404__title {
    font-size: 30px;
  }
}


/* ==========================================================================
   §33. Responsive: lg (1024px+)
   ========================================================================== */

@media (min-width: 1024px) {
  /* Layout */
  .container {
    padding-left: var(--px-lg);
    padding-right: var(--px-lg);
  }

  .section-padding {
    padding-left: var(--px-lg);
    padding-right: var(--px-lg);
  }

  /* Typography */
  .page-title {
    font-size: 48px;
  }

  .feature-text {
    font-size: 24px;
  }

  /* Nav overlay */
  .nav-overlay__link-title {
    font-size: 48px;
  }

  /* Member grid */
  .member-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* CTA */
  .cta-section__title {
    font-size: 36px;
  }

  /* 404 */
  .page-404__number {
    font-size: 160px;
  }
}


/* ==========================================================================
   §34. Print Styles
   ========================================================================== */

@media print {
  .site-header,
  .hamburger,
  .nav-overlay,
  .loading-bar,
  .back-to-top,
  .cta-section {
    display: none !important;
  }

  .page-top {
    padding-top: 0;
  }

  body {
    color: #000000;
    background: #FFFFFF;
  }

  a {
    color: #000000;
  }

  .gradient-text {
    -webkit-text-fill-color: var(--color-primary);
  }
}


/* ==========================================================================
   §35. Additional Page Template Styles
   ========================================================================== */

/* --- Page Content Base --- */
.page-content {
  min-height: 100vh;
  background: #FFFFFF;
  padding-top: 128px;
  padding-bottom: 80px;
}

.page-hero {
  padding: 0 var(--px-sm);
  margin-bottom: 80px;
}

.page-title {
  font-family: var(--font-inter);
  font-size: 30px;
  font-weight: 300;
  color: var(--color-text);
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

.page-subtitle {
  font-family: var(--font-garamond);
  font-size: 18px;
  font-weight: 300;
  color: var(--color-text);
}

.page-description {
  font-family: var(--font-noto-sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 2;
}

.hidden-sp { display: none; }

.container-narrow {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 var(--px-sm);
}

/* --- About: Philosophy --- */
.philosophy-text {
  font-family: var(--font-noto-sans);
  color: var(--color-text);
  line-height: 2;
  font-size: 14px;
  font-weight: 300;
}

.philosophy-text .mb-1 { margin-bottom: 4px; }
.philosophy-text .mb-4 { margin-bottom: 16px; }

/* --- About: Promises (About-specific) --- */
.promise-list-about {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.promise-item-about.promise-item--bordered {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--color-border);
}

.promise-item-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.promise-number-small {
  font-family: var(--font-inter);
  font-size: 12px;
  color: var(--color-text-lighter);
  font-weight: 300;
}

.promise-title-about {
  font-family: var(--font-garamond);
  font-size: 18px;
  font-weight: 300;
  color: var(--color-text);
  margin: 0;
}

.promise-desc-about {
  font-family: var(--font-noto-sans);
  font-size: 12px;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.9;
  margin: 0;
}

/* --- About: Company Info --- */
.company-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.company-row {
  display: grid;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.company-row--no-border {
  border-bottom: none;
}

.company-label {
  font-family: var(--font-noto-sans);
  font-size: 12px;
  color: var(--color-text-light);
  font-weight: 300;
}

.company-value {
  font-family: var(--font-noto-sans);
  font-size: 12px;
  color: var(--color-text);
  font-weight: 300;
  line-height: 1.9;
}

.company-value--business {
  font-size: 9px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* --- About: Founder --- */
.founder-content { }

.founder-header {
  margin-bottom: 24px;
}

.founder-name {
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text);
  margin: 0 0 8px 0;
}

.founder-role {
  font-family: var(--font-noto-sans);
  font-size: 12px;
  color: var(--color-text-light);
  font-weight: 300;
  margin: 0;
}

.founder-bio {
  font-family: var(--font-noto-sans);
  font-size: 12px;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.9;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.founder-bio p { margin: 0; }

/* --- Service --- */
.services-section {
  padding: 0 var(--px-sm);
  margin-bottom: 80px;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.service-item {
  padding-top: 48px;
}

.service-number {
  font-family: var(--font-inter);
  font-size: 12px;
  color: var(--color-text-lighter);
  letter-spacing: 0.2em;
  font-weight: 300;
}

.service-title {
  font-family: var(--font-noto-sans);
  font-size: 16px;
  font-weight: 300;
  color: var(--color-text);
  margin: 0 0 16px 0;
}

.service-description {
  font-family: var(--font-noto-sans);
  font-size: 12px;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.9;
}

.service-content { }

/* --- CTA --- */
.cta-section {
  padding: 0 var(--px-sm);
  margin-top: 80px;
}

.cta-inner {
  padding-top: 48px;
}

.cta-text {
  font-family: var(--font-noto-sans);
  font-size: 12px;
  font-weight: 300;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* btn-gradient duplicate removed — see §13 */

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

/* --- Recruit --- */
.recruit-section {
  padding: 0 var(--px-sm);
  margin-bottom: 80px;
}

.pt-section {
  padding-top: 48px;
}

.mb-8 { margin-bottom: 32px; }
.md-mb-12 { }

/* Organization Chart */
.org-chart {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.org-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.org-box {
  padding: 12px 16px;
  text-align: center;
  font-family: var(--font-noto-sans);
  font-size: 12px;
  font-weight: 300;
}

.org-box--primary {
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  color: #FFFFFF;
}

.org-box--secondary {
  border: 1px solid var(--color-border-faint);
  color: var(--color-text-light);
}

.org-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.org-sub-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Positions Table (Desktop) */
.positions-table-wrap {
  display: none;
  overflow-x: auto;
}

.positions-table {
  width: 100%;
  border-collapse: collapse;
}

.positions-header th {
  text-align: left;
  padding: 16px;
  font-family: var(--font-noto-sans);
  font-size: 12px;
  font-weight: 300;
  color: #FFFFFF;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
}

.positions-row td {
  padding: 24px 16px;
  font-family: var(--font-noto-sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.positions-row:hover {
  background-color: var(--color-bg-faint);
}

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

.gradient-text {
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Positions Mobile Cards */
.positions-mobile {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.position-card {
  border: 1px solid var(--color-border);
  padding: 16px;
  transition: border-color 0.3s ease;
}

.position-card:hover {
  border-color: var(--color-border-dark);
}

.position-card-title {
  font-family: var(--font-noto-sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text);
  margin: 0 0 12px 0;
}

.position-card-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}

.position-card-row {
  display: flex;
  gap: 8px;
}

.position-card-label {
  color: var(--color-text-light);
  font-family: var(--font-noto-sans);
  font-weight: 300;
}

.position-card-value {
  color: var(--color-text-muted);
  font-family: var(--font-noto-sans);
  font-weight: 300;
}

/* --- Contact Form --- */
.contact-form-section {
  padding: 0 var(--px-sm);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group { }

.form-label {
  display: block;
  font-family: var(--font-noto-sans);
  font-size: 12px;
  font-weight: 300;
  color: var(--color-text);
  margin-bottom: 12px;
}

.form-required {
  color: var(--color-text-light);
}

.form-input,
.form-textarea {
  width: 100%;
  border: 1px solid var(--color-border-dark);
  padding: 12px 16px;
  font-family: var(--font-noto-sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text);
  transition: border-color 0.3s ease;
  outline: none;
  background: transparent;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-placeholder);
}

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

.form-textarea {
  resize: none;
}

.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.form-checkbox {
  width: 16px;
  height: 16px;
  border: 1px solid var(--color-border-dark);
  accent-color: var(--color-text);
}

.form-checkbox-text {
  font-family: var(--font-noto-sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text);
}

.form-error {
  font-family: var(--font-noto-sans);
  font-size: 12px;
  color: var(--color-text-light);
  margin: 4px 0 0 0;
  min-height: 0;
}

.form-submit-wrap {
  padding-top: 32px;
}

.contact-success {
  background: var(--color-text);
  color: #FFFFFF;
  padding: 16px;
  text-align: center;
  font-family: var(--font-noto-sans);
  font-size: 14px;
  margin-top: 32px;
}

.contact-error-msg {
  background: #f0f0f0;
  color: var(--color-text);
  padding: 16px;
  text-align: center;
  font-family: var(--font-noto-sans);
  font-size: 14px;
  margin-top: 16px;
}

/* --- Privacy Policy --- */
.policy-sections {
  padding: 0 var(--px-sm);
}

.policy-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.policy-section {
  padding-top: 32px;
}

.policy-section-title {
  font-family: var(--font-noto-sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text);
  margin: 0 0 16px 0;
}

.policy-section-content {
  font-family: var(--font-noto-sans);
  font-size: 12px;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.9;
  white-space: pre-line;
}

.policy-section-content p { margin: 0; }
.policy-section-content .mt-4 { margin-top: 16px; }

.policy-ol {
  list-style: decimal;
  padding-left: 24px;
  margin: 12px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-noto-sans);
  font-size: 12px;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.9;
}

.policy-footer {
  padding: 0 var(--px-sm);
  margin-top: 80px;
}

.policy-footer-inner {
  padding-top: 48px;
}

.policy-date {
  font-family: var(--font-noto-sans);
  font-size: 12px;
  color: var(--color-text-lighter);
  font-weight: 300;
}

/* --- News Archive --- */
.news-archive-section {
  padding: 0 var(--px-sm);
}

.news-list-archive {
  display: flex;
  flex-direction: column;
}

.news-list-archive .news-item {
  border-bottom: none;
}

.news-list-archive .news-item:last-child {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 32px;
}

.news-excerpt {
  font-family: var(--font-noto-sans);
  font-size: 12px;
  font-weight: 300;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-top: 8px;
}

.no-posts {
  font-family: var(--font-noto-sans);
  font-size: 14px;
  color: var(--color-text-light);
  text-align: center;
  padding: 80px 0;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 64px;
  font-family: var(--font-inter);
  font-size: 14px;
}

.pagination a,
.pagination span {
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: var(--color-bg-faint);
}

.pagination .current {
  background: var(--color-text);
  color: #FFFFFF;
  border-color: var(--color-text);
}

/* --- Single Article --- */
.article-page {
  padding-top: 128px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-inter);
  font-size: 12px;
  color: var(--color-text);
  margin-bottom: 32px;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: var(--color-primary);
}

.article-content { }

.article-meta {
  margin-bottom: 24px;
}

.article-date {
  font-family: var(--font-inter);
  font-size: 12px;
  color: var(--color-text-light);
  font-weight: 300;
}

.article-title {
  font-family: var(--font-noto-sans);
  font-size: 20px;
  font-weight: 300;
  color: var(--color-text);
  line-height: 1.8;
  margin: 0 0 32px 0;
}

.article-body {
  font-family: var(--font-noto-sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 2;
}

.article-body p {
  margin: 0 0 16px 0;
}

.article-footer {
  margin-top: 64px;
  padding-top: 32px;
}

/* --- 404 Page --- */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding-top: 128px;
}

.error-title {
  font-family: var(--font-inter);
  font-size: 120px;
  font-weight: 100;
  color: var(--color-text-lighter);
  line-height: 1;
  margin: 0 0 24px 0;
}

.error-description {
  font-family: var(--font-noto-sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text-muted);
  margin-bottom: 48px;
}


/* ==========================================================================
   §36. Additional Responsive (md: 768px+)
   ========================================================================== */

@media (min-width: 768px) {
  .page-hero {
    padding: 0 var(--px-md);
    margin-bottom: 128px;
  }

  .page-title {
    font-size: 36px;
    margin-bottom: 32px;
  }

  .page-subtitle {
    font-size: 20px;
  }

  .page-description {
    font-size: 16px;
  }

  .hidden-sp { display: inline; }

  .container-narrow {
    padding: 0 var(--px-md);
  }

  /* About */
  .philosophy-text {
    font-size: 16px;
  }

  .promise-item-header {
    flex-direction: row;
    align-items: baseline;
    gap: 24px;
    margin-bottom: 16px;
  }

  .promise-title-about {
    font-size: 20px;
  }

  .promise-desc-about {
    font-size: 14px;
    padding-left: 40px;
  }

  .promise-item-about.promise-item--bordered {
    padding-bottom: 48px;
  }

  .company-row {
    grid-template-columns: 180px 1fr;
    gap: 32px;
    padding-bottom: 32px;
  }

  .company-label { font-size: 14px; }
  .company-value { font-size: 14px; }
  .company-value--business {
    font-size: 14px;
    line-height: 1.9;
    gap: 8px;
  }

  .founder-header { margin-bottom: 32px; }
  .founder-name { font-size: 16px; }
  .founder-bio { font-size: 14px; }

  /* Service */
  .services-section {
    padding: 0 var(--px-md);
  }

  .services-list { gap: 128px; }
  .service-item { padding-top: 80px; }
  .service-title { font-size: 18px; margin-bottom: 24px; }
  .service-description { font-size: 14px; }

  .cta-section {
    padding: 0 var(--px-md);
    margin-top: 128px;
  }
  .cta-inner { padding-top: 80px; }
  .cta-text { font-size: 14px; margin-bottom: 32px; }
  .btn-gradient { padding: 16px 48px; font-size: 14px; }

  /* Recruit */
  .recruit-section {
    padding: 0 var(--px-md);
    margin-bottom: 128px;
  }

  .pt-section { padding-top: 80px; }
  .md-mb-12 { margin-bottom: 48px; }

  .org-chart { gap: 48px; }
  .org-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .org-box {
    padding: 12px 24px;
    font-size: 14px;
  }

  /* Show table, hide mobile cards */
  .positions-table-wrap { display: block; }
  .positions-mobile { display: none; }

  /* Contact */
  .contact-form-section {
    padding: 0 var(--px-md);
  }
  .contact-form { gap: 32px; }
  .form-label { font-size: 14px; }

  /* Privacy */
  .policy-sections { padding: 0 var(--px-md); }
  .policy-list { gap: 64px; }
  .policy-section { padding-top: 48px; }
  .policy-section-title { font-size: 16px; margin-bottom: 24px; }
  .policy-section-content { font-size: 14px; }
  .policy-footer { padding: 0 var(--px-md); margin-top: 128px; }
  .policy-footer-inner { padding-top: 80px; }

  /* News Archive */
  .news-archive-section { padding: 0 var(--px-md); }
  .news-excerpt { font-size: 14px; }

  /* Article */
  .back-link { margin-bottom: 48px; }
  .article-title { font-size: 24px; margin-bottom: 48px; }
  .article-body { font-size: 16px; }
  .article-footer { margin-top: 80px; padding-top: 48px; }
}

@media (min-width: 1024px) {
  .page-hero {
    padding: 0 var(--px-lg);
  }

  .page-title {
    font-size: 48px;
  }

  .page-subtitle {
    font-size: 24px;
  }

  .services-section { padding: 0 var(--px-lg); }
  .cta-section { padding: 0 var(--px-lg); }
  .recruit-section { padding: 0 var(--px-lg); }
  .contact-form-section { padding: 0 var(--px-lg); }
  .policy-sections { padding: 0 var(--px-lg); }
  .policy-footer { padding: 0 var(--px-lg); }
  .news-archive-section { padding: 0 var(--px-lg); }

  .article-title { font-size: 30px; }
  .error-title { font-size: 160px; }
}


/* ==========================================================================
   Utility Classes (additions)
   ========================================================================== */

.border-top {
  border-top: 1px solid var(--color-border);
}

.section {
  padding: 80px 0;
}

.font-garamond {
  font-family: var(--font-garamond);
}

.italic {
  font-style: italic;
}

/* Clip-reveal animation line wrapper */
.clip-reveal-line {
  display: block;
  margin-bottom: 4px;
}

/* Key message text styling */
.key-message-text {
  font-family: var(--font-noto-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 2;
  color: var(--color-text);
}

.key-message-spacer {
  height: 16px;
}

/* Purpose text */
.purpose-text {
  font-family: var(--font-garamond);
  font-weight: 400;
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
}

/* Promise card internal grid */
.promise-card__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.promise-card__body {
  /* Right column content */
}

@media (min-width: 768px) {
  .purpose-text {
    font-size: 20px;
  }
  .key-message-text {
    font-size: 18px;
  }
  .promise-card__grid {
    grid-template-columns: 200px 1fr;
    gap: 64px;
  }
  .promise-card__title {
    margin-bottom: 24px;
  }
}

@media (min-width: 1024px) {
  .purpose-text {
    font-size: 24px;
  }
}

/* News item link wrapper */
.news-item a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  color: inherit;
}

/* header-inner utility */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}


/* ==========================================================================
   SP Responsive Fixes (max-width: 767px)
   ========================================================================== */

@media (max-width: 767px) {

  /* --- Global: prevent horizontal overflow --- */
  body {
    overflow-x: hidden;
  }

  img, video, iframe, table {
    max-width: 100%;
  }

  /* --- Sections: tighter padding on very small screens --- */
  .section-padding {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  /* --- Our Promise: adjust spacing for SP --- */
  .promise-list {
    margin-top: 32px;
  }

  .promise-card {
    padding-bottom: 32px;
  }

  .promise-card + .promise-card {
    padding-top: 32px;
  }

  /* --- Organization Chart: SP full-width layout --- */
  .org-chart {
    gap: 20px;
    align-items: stretch;
  }

  .org-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .org-column {
    gap: 8px;
    padding-left: 0;
    border-left: none;
  }

  .org-sub-items {
    gap: 6px;
    padding-left: 0;
  }

  .org-box {
    padding: 10px 16px;
    font-size: 13px;
    width: 100%;
    box-sizing: border-box;
  }

  .org-box--primary {
    font-size: 13px;
  }

  .org-box--secondary {
    margin-left: 16px;
    width: calc(100% - 16px);
  }

  /* --- Positions: ensure mobile cards display --- */
  .positions-table-wrap {
    display: none !important;
  }

  .positions-mobile {
    display: flex !important;
  }

  /* --- Recruit section spacing --- */
  .recruit-section {
    margin-bottom: 48px;
  }

  .pt-section {
    padding-top: 32px;
  }

  /* --- Footer: SP stack & readable sizes --- */
  .site-footer__top {
    flex-direction: column;
    gap: 24px;
  }

  .site-footer__nav {
    flex-direction: column;
    gap: 12px;
  }

  .site-footer__nav-links {
    gap: 10px;
  }

  .site-footer__link {
    font-size: 13px;
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: 12px;
  }

  .site-footer__inner {
    padding: 32px 24px;
  }

  .site-footer__copyright {
    font-size: 11px;
  }

  .site-footer__legal-link {
    font-size: 11px;
  }

  .site-footer__address {
    font-size: 12px;
  }

  /* --- Border-top: ensure no double-line effect --- */
  .border-top {
    padding-top: 24px;
  }

  /* --- Key Message: natural wrap for JP text --- */
  .key-message-text {
    word-break: normal;
    overflow-wrap: break-word;
  }

  /* --- Page description: natural wrap for JP text --- */
  .page-description {
    word-break: normal;
    overflow-wrap: break-word;
  }

  /* --- CTA section tighter on SP --- */
  .cta-section {
    margin-top: 64px;
  }

  .cta-inner {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  /* --- SP: 日本語テキストサイズ読みやすく --- */
  body {
    font-size: 15px;
  }

  .promise-card__description {
    font-size: 13px;
    line-height: 2;
  }

  .page-description {
    font-size: 15px;
    line-height: 2;
  }

  .cta-text {
    font-size: 13px;
  }

  .news-item__title {
    font-size: 15px;
  }

  .position-card-title {
    font-size: 15px;
  }

  .position-card-details {
    font-size: 13px;
  }

  /* --- SP: FV縦書きテキスト少し大きく --- */
  .hero__vertical-line {
    font-size: 11px;
  }

  .hero__vertical-text {
    right: 24px;
    gap: 16px;
  }

}
