/* ===========================
   Kairos - Global Stylesheet
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Noto+Serif+JP:wght@400;600;700&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  color: #333;
  background-color: #fff;
  line-height: 1.8;
}

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

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

ul {
  list-style: none;
}

/* ---- CSS Variables ---- */
:root {
  --color-main: #932e44;
  --color-main-dark: #6e2033;
  --color-main-light: #f5e6ea;
  --color-sub: #f7f3ef;
  --color-accent: #c4956a;
  --color-text: #333;
  --color-heading: #222;
  --color-muted: #666;
  --color-emphasis: #932e44;
  --color-border: #e0d8d2;
  --color-white: #fff;
  --max-width: 1100px;
  --section-padding: 80px 20px;
  --transition: 0.3s ease;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'Noto Serif JP', serif;
  color: var(--color-heading);
  line-height: 1.5;
}

h1 { font-size: clamp(32px, 5vw, 40px); }
h2 { font-size: clamp(24px, 3.5vw, 28px); }
h3 { font-size: clamp(20px, 2.5vw, 22px); }

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* ---- Layout Utilities ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-padding);
}

.section--alt {
  background-color: var(--color-sub);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
  color: var(--color-heading);
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background: var(--color-main);
}

.section-header p {
  margin-top: 16px;
  color: var(--color-muted);
}

/* ---- Header / Navigation ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(6px);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-main);
  letter-spacing: 0.05em;
}

.site-logo span {
  color: var(--color-heading);
}

.nav-list {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-list a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-heading);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-main);
  transition: width var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--color-main);
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-heading);
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .site-nav.open {
    max-height: 400px;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    display: block;
    padding: 12px 24px;
    font-size: 15px;
  }

  .nav-list a::after {
    display: none;
  }
}

/* ---- Page Hero ---- */
.page-hero {
  margin-top: 70px;
  padding: 72px 20px 56px;
  background: var(--color-sub);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--color-muted);
  font-size: 15px;
  margin-bottom: 0;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 20px;
}

.breadcrumb a {
  color: var(--color-muted);
  transition: color var(--transition);
}

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

.breadcrumb span {
  color: var(--color-main);
}

/* ---- Footer ---- */
.site-footer {
  background: #1a1a1a;
  color: #aaa;
  padding: 56px 20px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid #333;
}

.footer-brand .logo {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.9;
  color: #888;
}

.footer-nav h4 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 14px;
  color: #888;
  transition: color var(--transition);
}

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

.footer-bottom {
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #555;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 500;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.05em;
}

.btn-primary {
  background: var(--color-main);
  color: #fff;
  border: 1px solid var(--color-main);
}

.btn-primary:hover {
  background: var(--color-main-dark);
  border-color: var(--color-main-dark);
}

.btn-outline {
  background: transparent;
  color: var(--color-main);
  border: 1px solid var(--color-main);
}

.btn-outline:hover {
  background: var(--color-main);
  color: #fff;
}

/* ---- HOME: Hero ---- */
.hero {
  margin-top: 70px;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-sub) 0%, #ede5de 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: 'KAIROS';
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-family: 'Noto Serif JP', serif;
  font-size: 120px;
  font-weight: 700;
  color: rgba(147, 46, 68, 0.05);
  letter-spacing: 0.2em;
  white-space: nowrap;
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 20px;
  width: 100%;
}

.hero-label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-main);
  font-weight: 500;
  margin-bottom: 20px;
  background: var(--color-main-light);
  padding: 6px 14px;
  border-radius: 2px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.4;
  margin-bottom: 24px;
  color: var(--color-heading);
}

.hero h1 em {
  font-style: normal;
  color: var(--color-main);
}

.hero-desc {
  font-size: 17px;
  line-height: 1.9;
  color: var(--color-muted);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- HOME: About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text .lead {
  font-size: 18px;
  font-family: 'Noto Serif JP', serif;
  color: var(--color-heading);
  margin-bottom: 20px;
  line-height: 1.7;
}

.about-text p {
  color: var(--color-muted);
  line-height: 1.9;
}

.about-visual {
  background: var(--color-main-light);
  border-radius: 4px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- HOME: Vision/Mission ---- */
.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.vm-card {
  background: #fff;
  border-radius: 4px;
  padding: 48px 40px;
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.vm-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-main);
}

.vm-card .tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-main);
  font-weight: 700;
  margin-bottom: 12px;
}

.vm-card h3 {
  font-size: 22px;
  margin-bottom: 16px;
}

.vm-card p {
  color: var(--color-muted);
  line-height: 1.9;
  margin-bottom: 0;
}

/* ---- HOME: Business Preview ---- */
.business-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.preview-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.preview-card-img {
  aspect-ratio: 16/9;
  background: var(--color-sub);
  overflow: hidden;
}

.preview-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.preview-card:hover .preview-card-img img {
  transform: scale(1.04);
}

.preview-card-body {
  padding: 24px;
}

.preview-card-body .number {
  font-size: 11px;
  color: var(--color-main);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
  font-weight: 700;
}

.preview-card-body h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.preview-card-body p {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.8;
  margin-bottom: 0;
}

/* ---- BUSINESS ---- */
.business-section {
  padding: 80px 20px;
}

.business-section:nth-child(even) {
  background: var(--color-sub);
}

.business-item {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.business-item.reverse {
  direction: rtl;
}

.business-item.reverse > * {
  direction: ltr;
}

.business-item-img {
  aspect-ratio: 4/3;
  background: var(--color-main-light);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.business-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--color-main);
  opacity: 0.5;
}

.img-placeholder svg {
  width: 48px;
  height: 48px;
}

.img-placeholder span {
  font-size: 13px;
  letter-spacing: 0.1em;
}

.business-item-text .number {
  font-size: 11px;
  color: var(--color-main);
  letter-spacing: 0.2em;
  font-weight: 700;
  margin-bottom: 10px;
}

.business-item-text h2 {
  margin-bottom: 20px;
}

.business-item-text p {
  color: var(--color-muted);
  line-height: 1.9;
  margin-bottom: 12px;
}

.business-item-text .feature-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.business-item-text .feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--color-text);
}

.business-item-text .feature-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-main);
  margin-top: 8px;
  flex-shrink: 0;
}

/* ---- COMPANY ---- */
.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
}

.company-table th {
  width: 220px;
  font-family: 'Noto Serif JP', serif;
  font-weight: 600;
  color: var(--color-heading);
  background: var(--color-sub);
  font-size: 15px;
  white-space: nowrap;
}

.company-table td {
  color: var(--color-text);
}

.company-table tr:first-child th,
.company-table tr:first-child td {
  border-top: 1px solid var(--color-border);
}

.map-container {
  margin-top: 56px;
}

.map-container h3 {
  margin-bottom: 20px;
  font-size: 20px;
}

.map-embed {
  width: 100%;
  height: 400px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- MEMBERS ---- */
.members-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.member-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.member-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.member-card-img {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--color-sub);
}

.member-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.member-card:hover .member-card-img img {
  transform: scale(1.03);
}

.member-card-body {
  padding: 32px;
}

.member-role {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-main);
  font-weight: 700;
  margin-bottom: 8px;
}

.member-name {
  font-size: 22px;
  margin-bottom: 4px;
}

.member-name-en {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 20px;
}

.member-career {
  margin-bottom: 20px;
}

.member-career h4 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-muted);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.member-career ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.member-career ul li {
  font-size: 14px;
  color: var(--color-text);
  padding-left: 14px;
  position: relative;
}

.member-career ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 12px;
}

.member-message {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
}

.member-message h4 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-muted);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.member-message p {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.9;
  margin-bottom: 0;
}

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
}

.contact-info h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--color-muted);
  line-height: 1.9;
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-detail-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-detail-item .icon {
  width: 40px;
  height: 40px;
  background: var(--color-main-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-item .icon svg {
  width: 18px;
  height: 18px;
  color: var(--color-main);
}

.contact-detail-item .text {
  padding-top: 8px;
}

.contact-detail-item .label {
  font-size: 12px;
  color: var(--color-muted);
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.contact-detail-item .value {
  font-size: 15px;
  color: var(--color-heading);
  font-weight: 500;
}

.contact-form-wrapper {
  background: var(--color-sub);
  border-radius: 4px;
  padding: 48px 40px;
  border: 1px solid var(--color-border);
}

.contact-form-wrapper h3 {
  font-size: 20px;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-heading);
  margin-bottom: 8px;
}

.form-group label .required {
  color: var(--color-main);
  font-size: 12px;
  margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  color: var(--color-text);
  background: #fff;
  transition: border-color var(--transition);
  outline: none;
}

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

.form-group textarea {
  height: 140px;
  resize: vertical;
}

.form-submit {
  text-align: right;
}

.form-note {
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 16px;
  text-align: center;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .about-grid,
  .vision-mission-grid,
  .business-preview-grid,
  .business-item,
  .business-item.reverse,
  .contact-grid {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .business-item {
    gap: 32px;
  }

  .members-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  :root {
    --section-padding: 56px 16px;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .company-table th {
    width: 100px;
    font-size: 14px;
  }

  .contact-form-wrapper {
    padding: 28px 20px;
  }

  .members-grid {
    grid-template-columns: 1fr;
  }
}
