/*
Theme Name: THETIS Inc. Custom Theme
Theme URI: https://www.thetis-1021.com/
Author: THETIS Inc.
Description: 株式会社テティスのためのコーポレートサイト用カスタムテーマ。
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: thetis-theme
*/

/* ============================================================
   VARIABLE & RESET
   ============================================================ */
:root {
  --navy: #0a1628;
  --deep-blue: #132744;
  --teal: #1a7a6d;
  --teal-light: #22a08e;
  --gold: #c4a35a;
  --gold-light: #d4b96a;
  --cream: #f7f4ef;
  --white: #ffffff;
  --gray-100: #f0ede8;
  --gray-200: #d8d4cd;
  --gray-500: #8a8680;
  --gray-700: #4a4744;
  --text: #2a2725;
}

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

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 163, 90, 0.2);
  transition: all 0.4s ease;
}

header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 40px; height: 40px;
  position: relative;
}

.logo-icon svg {
  width: 100%; height: 100%;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .jp {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.15em;
}

.logo-text .en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

nav { display: flex; align-items: center; gap: 2rem; }

nav a {
  color: var(--gray-200);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  transition: color 0.3s;
  position: relative;
}

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

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

.nav-contact {
  background: var(--teal);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 2px;
  font-weight: 500;
  transition: background 0.3s !important;
}

.nav-contact::after { display: none !important; }
.nav-contact:hover { background: var(--teal-light) !important; }

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

.hamburger span {
  width: 24px; height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(26, 122, 109, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(196, 163, 90, 0.08) 0%, transparent 50%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(196,163,90,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,163,90,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  border: 1px solid rgba(196,163,90,0.3);
  padding: 6px 24px;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s ease forwards;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.4;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s ease forwards;
}

.hero h1 .accent {
  color: var(--teal-light);
}

.hero-sub {
  font-size: 1rem;
  color: var(--gray-200);
  font-weight: 300;
  line-height: 2;
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s ease forwards;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s ease forwards;
}

.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  padding: 14px 36px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  border-radius: 2px;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 122, 109, 0.3);
}

.btn-outline {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 14px 36px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  border-radius: 2px;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 0.8s 1.2s ease forwards;
}

.scroll-indicator span {
  font-size: 0.6rem;
  color: var(--gray-500);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.3; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== SECTION COMMON ===== */
section {
  padding: 6rem 2rem;
}

.section-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.section-desc {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.9;
  max-width: 600px;
}

/* ===== ABOUT ===== */
.about {
  background: var(--white);
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  position: relative;
  height: 400px;
  background: var(--navy);
  border-radius: 4px;
  overflow: hidden;
}

.about-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 70%, rgba(26,122,109,0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(196,163,90,0.15) 0%, transparent 40%);
}

.about-visual-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.about-visual-text .year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.about-visual-text .month {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--gray-200);
  margin-top: 0.5rem;
}

.about-visual-text .est {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  color: var(--gold);
  margin-top: 1.5rem;
  text-transform: uppercase;
  border-top: 1px solid rgba(196,163,90,0.3);
  padding-top: 1rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.stat-item {
  padding: 1.2rem;
  background: var(--gray-100);
  border-radius: 4px;
  border-left: 3px solid var(--teal);
}

.stat-item .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--teal);
}

.stat-item .label {
  font-size: 0.72rem;
  color: var(--gray-500);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

/* ===== SERVICES ===== */
.services {
  background: var(--cream);
}

.services-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.services-header {
  text-align: center;
  margin-bottom: 4rem;
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 4px;
  border: 1px solid var(--gray-200);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--teal), var(--deep-blue));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  letter-spacing: 0.04em;
}

.service-card p {
  font-size: 0.82rem;
  color: var(--gray-700);
  line-height: 1.8;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1.2rem;
}

.service-tags span {
  font-size: 0.65rem;
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 3px 10px;
  border-radius: 2px;
  letter-spacing: 0.03em;
}

/* ===== STRENGTH ===== */
.strength {
  background: var(--navy);
  color: var(--white);
}

.strength-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.strength-header {
  text-align: center;
  margin-bottom: 4rem;
}

.strength-header .section-label { color: var(--gold); }
.strength-header .section-title { color: var(--white); }
.strength-header .section-desc { color: var(--gray-200); margin: 0.5rem auto 0; }

.strength-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.strength-item {
  text-align: center;
  padding: 2rem;
}

.strength-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1rem;
}

.strength-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  letter-spacing: 0.06em;
}

.strength-item p {
  font-size: 0.8rem;
  color: var(--gray-200);
  line-height: 1.8;
}

/* ===== COMPANY INFO ===== */
.company {
  background: var(--white);
}

.company-inner {
  max-width: 900px;
  margin: 0 auto;
}

.company-header {
  text-align: center;
  margin-bottom: 3rem;
}

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

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

.company-table th {
  width: 160px;
  padding: 1.2rem 1.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-700);
  text-align: left;
  vertical-align: top;
  letter-spacing: 0.05em;
  background: var(--gray-100);
}

.company-table td {
  padding: 1.2rem 1.5rem;
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--text);
}

/* ===== CONTACT ===== */
.contact {
  background: var(--cream);
}

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

.contact-header { margin-bottom: 3rem; }
.contact-header .section-desc { margin: 0.5rem auto 0; }

.contact-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 3rem;
}

.contact-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-method {
  padding: 2rem;
  background: var(--gray-100);
  border-radius: 4px;
}

.contact-method-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--gray-500);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.contact-method-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.03em;
}

.contact-method-value a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-method-value a:hover { color: var(--teal-light); }

.contact-note {
  margin-top: 2rem;
  font-size: 0.78rem;
  color: var(--gray-500);
  line-height: 1.8;
}

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  color: var(--gray-200);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo .jp {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.1em;
}

.footer-logo .en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.6rem;
  color: var(--gold);
  letter-spacing: 0.2em;
}

.footer-copy {
  font-size: 0.7rem;
  color: var(--gray-500);
  letter-spacing: 0.05em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; gap: 2rem; }
  .about-visual { height: 250px; }
  .services-grid { grid-template-columns: 1fr; }
  .strength-items { grid-template-columns: 1fr; }
  .contact-methods { grid-template-columns: 1fr; }
  nav { display: none; }
  .hamburger { display: flex; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 600px) {
  section { padding: 4rem 1.2rem; }
  .about-stats { grid-template-columns: 1fr; }
  .company-table th, .company-table td { display: block; width: 100%; }
  .company-table th { padding-bottom: 0.5rem; }
  .company-table td { padding-top: 0.3rem; padding-bottom: 1.2rem; }
}

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
