/* =============================================
   index.css — Styles for WithDrAI index page
   ============================================= */

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #FFFFFF 0%, var(--off-white) 50%, var(--warm-gray) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 127, 184, 0.12) 0%, rgba(107, 175, 146, 0.06) 50%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 50vw;
  height: 50vw;
  max-width: 700px;
  max-height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39, 61, 82, 0.06) 0%, transparent 60%);
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -20px) scale(1.02); }
  66%      { transform: translate(-20px, 15px) scale(0.98); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 8rem 0 6rem;
}

.hero-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 2rem;
}

.hero h1 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.hero h1 em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}

.hero h1 em::after {
  content: '';
  position: absolute;
  bottom: 0.1em;
  left: -0.05em;
  right: -0.05em;
  height: 0.35em;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-soft) 100%);
  opacity: 0.35;
  z-index: -1;
  border-radius: 2px;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 300;
  line-height: 2;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 3rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero fadeUp animations — only when JS is loaded */
.js-loaded .hero-eyebrow {
  opacity: 0;
  animation: fadeUp 0.8s 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.js-loaded .hero h1 {
  opacity: 0;
  animation: fadeUp 0.8s 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.js-loaded .hero-sub {
  opacity: 0;
  animation: fadeUp 0.8s 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.js-loaded .hero-actions {
  opacity: 0;
  animation: fadeUp 0.8s 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Decorative line */
.hero-line {
  position: absolute;
  right: clamp(3rem, 10vw, 10rem);
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold), var(--coral), transparent);
  opacity: 0.3;
  z-index: 1;
}

.hero-line::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.5); }
}

/* ─── Philosophy ─── */
.philosophy {
  padding: 8rem 0;
  background: var(--white);
  position: relative;
}

.philosophy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, var(--gold) 50%, transparent 90%);
  opacity: 0.4;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.philosophy-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 500px;
}

.philosophy-circle {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.philosophy-circle:hover {
  transform: scale(1.05);
}

.circle-with {
  width: 220px;
  height: 220px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  top: 0;
  left: 10%;
  z-index: 3;
}

.circle-dr {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-soft) 100%);
  bottom: 15%;
  left: 0;
  z-index: 2;
}

.circle-ai {
  width: 190px;
  height: 190px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  top: 25%;
  right: 5%;
  z-index: 1;
}

.circle-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.circle-label small {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  margin-top: 0.4rem;
  opacity: 0.85;
  letter-spacing: 0.08em;
}

.circle-ai .circle-label {
  color: var(--navy);
}

.circle-ai .circle-label small {
  opacity: 0.7;
}

.philosophy-text h2 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 2rem;
}

.philosophy-text h2 span {
  color: var(--coral);
}

.philosophy-text p {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

/* Vision statement (converted from inline style) */
.philosophy-vision {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.philosophy-values {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
}

.philosophy-value {
  flex: 1;
  padding-top: 1.2rem;
  border-top: 2px solid var(--gold);
}

.philosophy-value h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.philosophy-value p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}

/* ─── Services ─── */
.services {
  padding: 8rem 0;
  background: var(--off-white);
}

.services-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
}

.services-header p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-secondary);
  font-weight: 300;
}

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

.service-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transition: height 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(39, 61, 82, 0.08);
}

.service-card:hover::before {
  height: 6px;
}

.service-card:nth-child(1)::before { background: linear-gradient(90deg, var(--navy), var(--navy-light)); }
.service-card:nth-child(2)::before { background: linear-gradient(90deg, var(--coral), var(--coral-soft)); }
.service-card:nth-child(3)::before { background: linear-gradient(90deg, #5BA4D9, #8DC4E8); }
.service-card:nth-child(4)::before { background: linear-gradient(90deg, var(--gold), var(--gold-soft)); }
.service-card:nth-child(5)::before { background: linear-gradient(90deg, var(--navy), var(--navy-light)); }

/* Clickable service card link */
.service-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* Service card accent border (converted from inline style) */
.service-card-accent {
  border-top: 3px solid var(--coral);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.8rem;
  font-size: 1.5rem;
}

.service-card:nth-child(1) .service-icon { background: rgba(39, 61, 82, 0.08); }
.service-card:nth-child(2) .service-icon { background: rgba(107, 175, 146, 0.1); }
.service-card:nth-child(3) .service-icon { background: rgba(91, 164, 217, 0.1); }
.service-card:nth-child(4) .service-icon { background: rgba(155, 127, 184, 0.15); }
.service-card:nth-child(5) .service-icon { background: rgba(39, 61, 82, 0.08); }

.service-card h3 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.service-card .service-en {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1.2rem;
}

.service-card p {
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 1.5rem;
  text-wrap: pretty;
}

.service-features {
  list-style: none;
  padding: 0;
}

.service-features li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 0.45rem 0;
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.6;
  text-wrap: pretty;
}

.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.service-card:nth-child(1) .service-features li::before { background: var(--navy); }
.service-card:nth-child(2) .service-features li::before { background: var(--coral); }
.service-card:nth-child(3) .service-features li::before { background: #5BA4D9; }
.service-card:nth-child(4) .service-features li::before { background: var(--gold); }
.service-card:nth-child(5) .service-features li::before { background: var(--navy); }

/* Service card badges (converted from inline styles) */
.service-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  margin-bottom: 0.5rem;
}

.service-badge-main {
  color: var(--coral);
  background: rgba(107, 175, 146, 0.1);
}

.service-badge-contracted {
  color: var(--navy-light);
  background: rgba(39, 61, 82, 0.08);
  letter-spacing: 0.08em;
}

.service-badge-dev {
  color: #5BA4D9;
  background: rgba(91, 164, 217, 0.1);
  letter-spacing: 0.08em;
}

.service-survey-box {
  margin-top: 1.2rem;
  padding: 1rem;
  background: rgba(91, 164, 217, 0.06);
  border-radius: 12px;
}
.service-survey-label {
  font-size: 0.78rem;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.service-survey-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #5BA4D9;
  text-decoration: none;
}
.service-survey-link:hover {
  text-decoration: underline;
}
.service-survey-note {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  margin-bottom: 0;
  text-wrap: pretty;
}

/* Service card pricing note (converted from inline style) */
.service-pricing-note {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.8rem;
}

/* Service card "details" link (converted from inline style) */
.service-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--coral);
}

/* ─── Workflow ─── */
.workflow {
  padding: 7rem 0;
  background: var(--off-white);
}

.workflow-header-desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.workflow-step {
  text-align: center;
  position: relative;
  padding: 2rem 1rem;
}

.workflow-step::after {
  content: '';
  position: absolute;
  top: 3.2rem;
  right: -1rem;
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--coral), transparent);
}

.workflow-step:last-child::after {
  display: none;
}

.workflow-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.workflow-step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.8rem;
}

.workflow-step p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.workflow-step-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.3rem;
}

/* ─── Strengths ─── */
.strengths {
  padding: 8rem 0;
  background: var(--warm-gray);
  position: relative;
  overflow: hidden;
}

.strengths::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(155, 127, 184, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(107, 175, 146, 0.04) 0%, transparent 40%);
}

.strengths .section-label { color: var(--coral); }
.strengths .section-title { color: var(--navy); }

.strengths-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
  position: relative;
  z-index: 1;
}

.strengths-header p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-secondary);
  font-weight: 300;
}

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

.strength-item {
  padding: 2.5rem;
  border: 1px solid rgba(39, 61, 82, 0.06);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(39, 61, 82, 0.04);
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
}

.strength-item:hover {
  box-shadow: 0 8px 30px rgba(39, 61, 82, 0.08);
  border-color: rgba(155, 127, 184, 0.25);
  transform: translateY(-3px);
}

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

.strength-item h3 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.strength-item p {
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--text-secondary);
  font-weight: 300;
}

/* ─── Team ─── */
.team {
  padding: 8rem 0;
  background: var(--white);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.team-intro {
  padding-top: 1rem;
}

.team-intro p {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--text-secondary);
  font-weight: 300;
}

.team-members {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.team-member {
  display: flex;
  gap: 2rem;
  align-items: start;
}

.team-member-avatar {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
}

.team-member:first-child .team-member-avatar {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}

.team-member:last-child .team-member-avatar {
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-soft) 100%);
}

.team-member-info h3 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.team-member-info .role {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.8rem;
}

.team-member-info p {
  font-size: 0.85rem;
  line-height: 1.85;
  color: var(--text-secondary);
  font-weight: 300;
}

.team-member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.team-member-tags span {
  font-size: 0.7rem;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  background: var(--warm-gray);
  color: var(--text-secondary);
  font-weight: 400;
}

/* ─── Founder Message ─── */
.message {
  padding: 7rem 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(39, 61, 82, 0.06);
  border-bottom: 1px solid rgba(39, 61, 82, 0.06);
}

.message::before {
  content: '\201C';
  position: absolute;
  top: 2rem;
  left: 5%;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20rem;
  color: rgba(155, 127, 184, 0.06);
  line-height: 1;
  pointer-events: none;
}

.message-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: 3rem 2rem;
}

.message-content .section-label { color: var(--gold); }
.message-content .section-title { color: var(--navy); }
.message-content .section-title .jp { color: var(--text-secondary); }

.message-quote {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 2.2;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  text-align: left;
}

.message-signature {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.message-signature-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--coral));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
}

.message-signature-info {
  text-align: right;
}

.message-signature-info h4 {
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 500;
}

.message-signature-info p {
  color: var(--text-light);
  font-size: 0.8rem;
}

/* ─── Company Info ─── */
.company {
  padding: 8rem 0;
  background: var(--off-white);
}

.company-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

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

.company-table tr {
  border-bottom: 1px solid rgba(39, 61, 82, 0.08);
}

.company-table th {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--navy);
  text-align: left;
  padding: 1.2rem 1.5rem 1.2rem 0;
  white-space: nowrap;
  vertical-align: top;
  width: 120px;
}

.company-table td {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 1.2rem 0;
  line-height: 1.7;
  font-weight: 300;
}

.company-map {
  border-radius: 16px;
  overflow: hidden;
  background: var(--warm-gray);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.company-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ─── FAQ ─── */
.faq {
  padding: 7rem 0;
  background: var(--warm-gray);
}

.faq-list {
  max-width: 800px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(39, 61, 82, 0.04);
  transition: box-shadow 0.3s;
}

.faq-item:hover {
  box-shadow: 0 4px 20px rgba(39, 61, 82, 0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.4rem 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  text-align: left;
  gap: 1rem;
}

.faq-question::before {
  content: 'Q.';
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  color: var(--coral);
  flex-shrink: 0;
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 1.8rem 1.4rem 3.6rem;
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

/* ─── Contact ─── */
.contact {
  padding: 8rem 0;
  background: var(--white);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, var(--gold) 50%, transparent 90%);
  opacity: 0.3;
}

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

.contact-inner .section-title {
  margin-bottom: 1rem;
}

.contact-desc {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 3rem;
}

.contact-form {
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.form-required {
  color: var(--coral);
  font-size: 0.8rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--text-primary);
  background: var(--white);
  border: 1px solid rgba(39, 61, 82, 0.15);
  border-radius: 10px;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  box-sizing: border-box;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(39, 61, 82, 0.08);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-light);
  opacity: 0.6;
}

.contact-form select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: var(--white) url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234A6070' stroke-width='2.5' stroke-linecap='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1rem center / 14px 14px;
  padding-right: 2.5rem;
}

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

.contact-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: opacity 0.3s, transform 0.2s;
}

.contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  margin-top: 1.2rem;
  padding: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  text-align: center;
  border-radius: 10px;
  transition: all 0.3s;
}

.form-message.success {
  padding: 1rem 1.2rem;
  background: rgba(107, 175, 146, 0.1);
  color: #2d7a5a;
  border: 1px solid rgba(107, 175, 146, 0.25);
}

.form-message.error {
  padding: 1rem 1.2rem;
  background: rgba(200, 80, 80, 0.08);
  color: #b33a3a;
  border: 1px solid rgba(200, 80, 80, 0.2);
}

/* ─── Index-specific Responsive ─── */
@media (max-width: 1024px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .philosophy-visual {
    max-width: 400px;
    margin: 0 auto;
  }

  .service-cards {
    grid-template-columns: 1fr 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .company-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-line {
    display: none;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
  }

  .hero-content {
    padding: 7rem 0 4rem;
  }

  .service-cards {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 2rem 1.2rem;
  }

  .service-features li {
    padding-left: 1rem;
  }

  .strength-items {
    grid-template-columns: 1fr;
  }

  .contact-form {
    max-width: 100%;
  }

  .philosophy-values {
    flex-direction: column;
    gap: 1.5rem;
  }

  /* Philosophy circles: keep triangle layout, scale down, add bottom margin */
  .philosophy-visual {
    position: relative;
    aspect-ratio: 1;
    max-width: 280px;
    margin: 0 auto 3rem;
  }

  .philosophy-circle {
    position: absolute;
  }

  .circle-with { width: 130px; height: 130px; top: 0; left: 10%; }
  .circle-dr   { width: 120px; height: 120px; bottom: 15%; left: 0; }
  .circle-ai   { width: 115px; height: 115px; top: 25%; right: 5%; }
  .circle-label { font-size: 1.2rem; }
  .circle-label small { font-size: 0.55rem; }

  .team-member {
    flex-direction: column;
    gap: 1rem;
  }

  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .workflow-step::after {
    display: none;
  }

  .message-content {
    padding: 2.5rem 1.5rem;
  }

  .message-quote {
    font-size: 1.1rem;
  }

  .faq-question {
    font-size: 0.95rem;
    padding: 1.2rem;
  }
}

/* ─── Index Dark Mode — Component Overrides ─── */
@media (prefers-color-scheme: dark) {
  /* Hero */
  .hero {
    background: linear-gradient(160deg, #1A2030 0%, var(--off-white) 50%, var(--warm-gray) 100%);
  }

  .hero::before {
    background: radial-gradient(circle, rgba(155, 127, 184, 0.08) 0%, rgba(107, 175, 146, 0.04) 50%, transparent 70%);
  }

  .hero::after {
    background: radial-gradient(circle, rgba(39, 61, 82, 0.1) 0%, transparent 60%);
  }

  /* Philosophy circles — ensure text remains visible */
  .circle-ai .circle-label {
    color: var(--off-white);
  }

  .circle-ai .circle-label small {
    opacity: 0.85;
  }

  .philosophy-value {
    border-top-color: var(--gold);
  }

  /* Service cards */
  .service-card {
    background: var(--white);
    border: 1px solid rgba(138, 172, 200, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  }

  .service-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  }

  .service-card:nth-child(1) .service-icon { background: rgba(138, 172, 200, 0.15); }
  .service-card:nth-child(2) .service-icon { background: rgba(125, 212, 168, 0.15); }
  .service-card:nth-child(3) .service-icon { background: rgba(91, 164, 217, 0.15); }
  .service-card:nth-child(4) .service-icon { background: rgba(213, 204, 228, 0.15); }
  .service-card:nth-child(5) .service-icon { background: rgba(138, 172, 200, 0.15); }

  /* Strength items */
  .strength-item {
    background: var(--white);
    border: 1px solid rgba(138, 172, 200, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  }

  .strength-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    border-color: rgba(213, 204, 228, 0.25);
  }

  .strength-num {
    color: var(--gold);
    opacity: 0.8;
  }

  /* Team member tags */
  .team-member-tags span {
    background: var(--warm-gray);
    color: var(--text-secondary);
    border: 1px solid rgba(138, 172, 200, 0.1);
  }

  /* Founder message */
  .message {
    border-top: 1px solid rgba(138, 172, 200, 0.1);
    border-bottom: 1px solid rgba(138, 172, 200, 0.1);
  }

  .message::before {
    color: rgba(155, 127, 184, 0.08);
  }

  /* Company table */
  .company-table tr {
    border-bottom: 1px solid rgba(138, 172, 200, 0.1);
  }

  .company-map {
    background: var(--warm-gray);
    border: 1px solid rgba(138, 172, 200, 0.1);
  }

  /* FAQ */
  .faq-item {
    background: var(--white);
    border: 1px solid rgba(138, 172, 200, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  }

  .faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }

  .faq-icon {
    background: var(--warm-gray);
  }

  /* Workflow */
  .workflow-step-num {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  /* Contact section border */
  .contact::before {
    opacity: 0.15;
  }

  .philosophy::before {
    opacity: 0.2;
  }
}

/* ─── Contact Form Dark Mode ─── */
@media (prefers-color-scheme: dark) {
  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form select,
  .contact-form textarea {
    background: var(--off-white);
    border-color: rgba(127, 168, 201, 0.2);
    color: var(--text-primary);
  }

  .contact-form input[type="text"]:focus,
  .contact-form input[type="email"]:focus,
  .contact-form select:focus,
  .contact-form textarea:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(127, 168, 201, 0.1);
  }

  .contact-form select {
    background: var(--white) url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23B0C8D8' stroke-width='2.5' stroke-linecap='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1rem center / 14px 14px;
  }

  .form-message.success {
    background: rgba(109, 196, 154, 0.1);
    color: #6DC49A;
    border-color: rgba(109, 196, 154, 0.25);
  }

  .form-message.error {
    background: rgba(200, 80, 80, 0.1);
    color: #e07070;
    border-color: rgba(200, 80, 80, 0.25);
  }
}
