/* ============================================
   照株式会社 - TELASS Inc.
   Design: Modern Minimal / Warm Gold × Black × Off-White
   ============================================ */

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

:root {
  --black: #1a1a1a;
  --dark: #2d2d2d;
  --text: #444;
  --text-light: #777;
  --gold: #c8a87c;
  --gold-light: #e0cdb3;
  --gold-dark: #a88a5c;
  --off-white: #f8f7f4;
  --white: #ffffff;
  --border: #e8e4de;
  --font-ja: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-en: 'Inter', 'Helvetica Neue', sans-serif;
  --max-width: 1200px;
  --section-padding: 120px 0;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-ja);
  color: var(--dark);
  background: var(--off-white);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* --- Typography --- */
.section-label {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 500;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.section-desc {
  font-size: 15px;
  color: var(--text);
  max-width: 640px;
  line-height: 2;
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(248, 247, 244, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 4px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--black);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 18px;
  font-weight: 700;
}

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

.nav a {
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}

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

.nav a:hover { color: var(--black); }
.nav a:hover::after { width: 100%; }

.nav-cta {
  background: var(--black) !important;
  color: var(--white) !important;
  padding: 10px 24px !important;
  border-radius: 4px;
  font-size: 12px !important;
  letter-spacing: 2px !important;
  transition: background var(--transition) !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--gold-dark) !important; }

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

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--off-white);
  padding: 40px 32px;
  z-index: 999;
}

.mobile-nav.active { display: flex; flex-direction: column; gap: 0; }

.mobile-nav a {
  font-size: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  display: block;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2826 50%, #1a1a1a 100%);
  opacity: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(200, 168, 124, 0.15) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 72px;
}

.hero-label {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: 4px;
  line-height: 1.5;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}

.hero h1 span {
  color: var(--gold);
}

.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 2;
  max-width: 520px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
  animation: fadeUp 0.8s 1.2s forwards;
}

.hero-scroll span {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.4);
}

.hero-scroll .scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  margin: 12px auto 0;
  position: relative;
  overflow: hidden;
}

.hero-scroll .scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: scrollDown 2s infinite;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 16px 40px;
  font-size: 13px;
  letter-spacing: 2px;
  border-radius: 4px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-ja);
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
}
.btn-primary:hover { background: var(--gold-dark); }

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-dark {
  background: var(--black);
  color: var(--white);
}
.btn-dark:hover { background: #333; }

/* --- Section --- */
.section { padding: var(--section-padding); }
.section-light { background: var(--white); }
.section-dark { background: var(--black); color: var(--white); }

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

.section-header .section-desc {
  margin: 0 auto;
}

/* --- Services Cards (Top Page) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 32px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
  border-color: var(--gold-light);
}

.service-card .card-num {
  font-family: var(--font-en);
  font-size: 48px;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.service-card p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.9;
  flex: 1;
}

.service-card .card-link {
  margin-top: 24px;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap var(--transition);
}

.service-card:hover .card-link { gap: 14px; }

/* --- Stats / Highlights --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item .stat-number {
  font-family: var(--font-en);
  font-size: 56px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

.stat-item .stat-unit {
  font-size: 18px;
  color: var(--gold-light);
}

.stat-item .stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
}

/* --- Representative Preview --- */
.rep-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.rep-image {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #e8e4de 0%, #d4cec4 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 14px;
}

.rep-content .rep-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.rep-content .rep-title {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.rep-content .rep-message {
  font-size: 15px;
  color: var(--text);
  line-height: 2;
  margin-bottom: 32px;
}

/* --- CTA Section --- */
.cta-section {
  padding: 100px 0;
  text-align: center;
  background: var(--black);
  color: var(--white);
}

.cta-section h2 {
  font-size: 28px;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  margin-bottom: 40px;
}

/* --- Footer --- */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.5);
  padding: 64px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-desc { font-size: 13px; line-height: 1.9; }

.footer h4 {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 500;
}

.footer-links a {
  display: block;
  font-size: 14px;
  padding: 6px 0;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  text-align: center;
  font-size: 12px;
  font-family: var(--font-en);
  letter-spacing: 1px;
}

/* --- Page Hero (Sub pages) --- */
.page-hero {
  padding: 180px 0 80px;
  background: var(--black);
  color: var(--white);
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 30%, rgba(200, 168, 124, 0.1) 0%, transparent 60%);
}

.page-hero .container { position: relative; z-index: 2; }

.page-hero .section-label { margin-bottom: 16px; }

.page-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.page-hero p {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  line-height: 2;
}

/* --- Content Blocks (Service Pages) --- */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.content-block.reverse { direction: rtl; }
.content-block.reverse > * { direction: ltr; }

.content-image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #e8e4de 0%, #d4cec4 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 14px;
  letter-spacing: 1px;
}

.content-text h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.content-text p {
  font-size: 15px;
  color: var(--text);
  line-height: 2;
  margin-bottom: 16px;
}

/* --- Service List --- */
.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.service-list-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  transition: all var(--transition);
}

.service-list-item:hover {
  border-color: var(--gold-light);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.service-list-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-list-item p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
}

/* --- Flow / Steps --- */
.flow-section { margin-top: 48px; }

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.flow-item {
  text-align: center;
  position: relative;
}

.flow-item::after {
  content: '';
  position: absolute;
  top: 28px;
  right: -12px;
  width: 24px;
  height: 1px;
  background: var(--border);
}

.flow-item:last-child::after { display: none; }

.flow-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--black);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 700;
}

.flow-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.flow-item p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.8;
}

/* --- Case Study --- */
.case-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.case-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #3a3530 0%, #2d2826 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

.case-body { padding: 36px; }

.case-body .case-tag {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 500;
}

.case-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.case-body p {
  font-size: 14px;
  color: var(--text);
  line-height: 2;
}

/* --- Media Gallery --- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.media-item {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #e8e4de 0%, #d4cec4 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 13px;
  transition: all var(--transition);
}

.media-item:hover { transform: scale(1.02); }

/* --- About / Profile --- */
.profile-section {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: start;
}

.profile-photo {
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #e8e4de 0%, #d4cec4 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 14px;
  position: sticky;
  top: 104px;
}

.profile-info h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.profile-info .profile-role {
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 32px;
}

.profile-info .profile-message {
  font-size: 15px;
  color: var(--text);
  line-height: 2.2;
  margin-bottom: 40px;
}

.profile-info .profile-message p { margin-bottom: 20px; }

/* --- Company Info Table --- */
.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table tr { border-bottom: 1px solid var(--border); }

.company-table th {
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  padding: 20px 24px 20px 0;
  width: 140px;
  vertical-align: top;
  white-space: nowrap;
}

.company-table td {
  font-size: 14px;
  color: var(--text);
  padding: 20px 0;
  line-height: 1.8;
}

/* --- Video Cards --- */
.video-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition);
}

.video-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border-color: var(--gold-light);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-title {
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.6;
}

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

.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 8px;
  margin-top: 24px;
}

.contact-form label:first-child { margin-top: 0; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: var(--font-ja);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}

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

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

.contact-form button {
  margin-top: 32px;
  width: 100%;
}

.contact-info-block {
  margin-bottom: 36px;
}

.contact-info-block h4 {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 500;
}

.contact-info-block p {
  font-size: 15px;
  color: var(--text);
  line-height: 2;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.faq-item:first-child { padding-top: 0; }

.faq-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}

.faq-item p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.9;
}

/* --- Image overrides (when using <img> instead of placeholder divs) --- */
img.content-image,
img.case-image,
img.rep-image,
img.profile-photo,
img.media-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

img.content-image { aspect-ratio: 16/10; }
img.case-image { aspect-ratio: 16/9; border-radius: 12px 12px 0 0; }
img.rep-image { aspect-ratio: 4/5; }
img.profile-photo { aspect-ratio: 3/4; position: sticky; top: 104px; }
img.media-item { aspect-ratio: 16/9; border-radius: 8px; transition: all var(--transition); }
img.media-item:hover { transform: scale(1.02); }

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollDown {
  0% { top: -100%; }
  100% { top: 100%; }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr; gap: 20px; }
  .stats-row { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .content-block { grid-template-columns: 1fr; gap: 40px; }
  .content-block.reverse { direction: ltr; }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-item::after { display: none; }
  .profile-section { grid-template-columns: 1fr; }
  .profile-photo { max-width: 320px; position: static; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .rep-preview { grid-template-columns: 1fr; gap: 40px; }
  .rep-image { max-width: 360px; }
}

@media (max-width: 768px) {
  :root { --section-padding: 80px 0; }
  .nav { display: none; }
  .hamburger { display: flex; }
  .section-title { font-size: 24px; }
  .stats-row { grid-template-columns: 1fr; gap: 32px; }
  .stat-item .stat-number { font-size: 44px; }
  .service-list { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr 1fr; }
  .flow-grid { grid-template-columns: 1fr; }
  .hero h1 { letter-spacing: 2px; }
  .container { padding: 0 20px; }
  .page-hero { padding: 140px 0 60px; }
}
