/*
Theme Name: MY VIVID Custom Theme
Theme URI: https://istg-lab.com/
Author: Genspark
Description: MY VIVID corporate website theme for WordPress.
Version: 1.0.0
Text Domain: myvivid
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Serif+JP:wght@400;500;600;700&display=swap');

:root {
  --navy: #152b57;
  --navy-deep: #0f2247;
  --charcoal: #1f2430;
  --text: #333843;
  --muted: #6f7683;
  --line: #e8ecf2;
  --bg: #f7f9fc;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(15, 34, 71, 0.08);
  --radius: 22px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: 'Inter', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  line-height: 1.8;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }
.section { padding: 92px 0; }
.section-sm { padding: 68px 0; }
.eyebrow {
  color: var(--navy);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.35;
  margin: 0 0 18px;
  color: var(--charcoal);
}
.section-lead {
  color: var(--muted);
  max-width: 760px;
  margin: 0;
}
.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 15px 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: .25s ease;
  border: 1px solid transparent;
}
.btn-primary { background: var(--navy); color: var(--white); box-shadow: 0 10px 30px rgba(21, 43, 87, .18); }
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-2px); }
.btn-secondary { border-color: rgba(21, 43, 87, .18); color: var(--navy); background: rgba(255,255,255,.92); }
.btn-secondary:hover { border-color: var(--navy); transform: translateY(-2px); }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.badge {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.45);
  backdrop-filter: blur(8px);
  font-size: 12px;
  color: var(--navy);
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232,236,242,.7);
}
.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: .04em;
  font-size: 28px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--navy), #2f4d91);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 14px; color: var(--charcoal); font-weight: 700; }
.nav a:hover, .nav a.active { color: var(--navy); }
.mobile-toggle { display: none; }

.hero {
  padding: 28px 0 70px;
  background: linear-gradient(180deg, #fbfcff 0%, #f4f7fb 100%);
}
.hero-shell {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  border-radius: 34px;
  box-shadow: var(--shadow);
  display: grid;
  align-items: end;
  background: #111;
}
.hero-media {
  position: absolute;
  inset: 0;
  background: #111;
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  margin-left: auto;
  padding: 88px 64px;
  color: #fff;
  text-align: left;
}
.hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.23;
  margin: 0 0 14px;
  font-weight: 500;
  letter-spacing: .02em;
}
.hero-sub {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  color: rgba(255,255,255,.82);
  margin: 0 0 28px;
}
.hero-cards {
  margin: -56px auto 0;
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), 980px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(21,43,87,.08);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.hero-card {
  padding: 30px 26px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.hero-card:last-child { border-right: 0; }
.hero-card-label { font-size: 12px; color: var(--muted); letter-spacing: .12em; }
.hero-card-title { font-size: 34px; line-height: 1.1; color: var(--navy); font-weight: 800; margin: 6px 0 8px; }
.hero-card-title.jp { font-size: 18px; }
.hero-card-text { font-size: 14px; color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 10px 30px rgba(15, 34, 71, 0.04);
}
.info-panel { background: var(--bg); border-radius: 28px; padding: 36px; }

.service-card {
  overflow: hidden;
  padding: 0;
}
.service-card img { height: 240px; width: 100%; object-fit: cover; }
.service-body { padding: 26px; }
.service-title { margin: 0 0 8px; font-size: 24px; color: var(--navy); }
.service-copy { margin: 0 0 14px; color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 20px; color: var(--text); }
.check-list li::before { content: '•'; position: absolute; left: 0; color: var(--navy); font-weight: 800; }

.strength-item { display: flex; gap: 18px; }
.strength-no {
  min-width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(21,43,87,.06);
  display: grid;
  place-items: center;
  color: var(--navy);
  font-weight: 800;
}
.strength-item h3 { margin: 0 0 8px; color: var(--charcoal); font-size: 20px; }
.strength-item p { margin: 0; color: var(--muted); }

.works-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.work-card {
  padding: 34px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--shadow);
}
.device-pair {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 22px;
  margin-bottom: 26px;
}
.monitor {
  width: min(100%, 360px);
}
.monitor-screen {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 18px 18px 8px 8px;
  padding: 14px;
  background: #121212;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.monitor-inner {
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: var(--screen, linear-gradient(160deg, #9fe4ff 0%, #f6fbff 55%, #fff1e4 100%));
  position: relative;
}
.monitor-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0));
}
.monitor-stand {
  width: 92px;
  height: 52px;
  margin: 0 auto;
  background: linear-gradient(180deg, #d7dbe4, #aab2c0);
  clip-path: polygon(34% 0, 66% 0, 76% 52%, 100% 100%, 0 100%, 24% 52%);
}
.phone {
  width: 96px;
  flex: 0 0 96px;
}
.phone-screen {
  aspect-ratio: 9/19;
  border-radius: 24px;
  background: #0e0e0f;
  padding: 8px;
  box-shadow: 0 16px 30px rgba(0,0,0,.12);
}
.phone-inner {
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: var(--screen, linear-gradient(180deg, #7dd8ff, #fefefe));
  position: relative;
}
.phone-inner::before {
  content: '';
  width: 44px;
  height: 6px;
  border-radius: 6px;
  background: rgba(0,0,0,.24);
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}
.screen-ui {
  position: absolute;
  inset: 0;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: #fff;
}
.screen-chip {
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  font-size: 10px;
  letter-spacing: .08em;
  margin-bottom: auto;
}
.screen-title {
  font-size: 26px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: .02em;
  max-width: 82%;
}
.screen-sub {
  margin-top: 8px;
  font-size: 12px;
  opacity: .85;
}
.work-meta h3 { margin: 0 0 10px; font-size: 32px; color: var(--navy); }
.work-meta p { margin: 0 0 16px; color: var(--text); }
.work-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.work-tags span {
  padding: 8px 12px;
  font-size: 12px;
  border: 1px solid #dce4ef;
  color: var(--navy);
  background: #fff;
  border-radius: 999px;
  font-weight: 700;
}

.message-box {
  padding: 44px;
  border-radius: 28px;
  background: linear-gradient(135deg, #152b57 0%, #203a74 100%);
  color: #fff;
}
.message-box p { color: rgba(255,255,255,.82); margin-bottom: 0; }
.message-box .section-title { color: #fff; }

.cta-band {
  background: linear-gradient(135deg, #eef3fb 0%, #f8fbff 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-hero {
  padding: 86px 0 48px;
  background: linear-gradient(180deg, #f7f9fd 0%, #ffffff 100%);
}
.page-hero .section-title { margin-bottom: 10px; }
.breadcrumb { font-size: 13px; color: var(--muted); }

.faq-list { display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: #fff; }
.faq-item h4 { margin: 0 0 8px; color: var(--navy); }
.faq-item p { margin: 0; color: var(--muted); }

.company-table { display: grid; gap: 1px; background: var(--line); border-radius: 18px; overflow: hidden; }
.company-row { display: grid; grid-template-columns: 220px 1fr; background: #fff; }
.company-row dt, .company-row dd { margin: 0; padding: 18px 22px; }
.company-row dt { color: var(--navy); font-weight: 700; background: #f7f9fd; }

.contact-form {
  display: grid;
  gap: 18px;
}
.form-row { display: grid; gap: 8px; }
.form-row label { font-weight: 700; color: var(--charcoal); }
.input, .textarea, .select {
  width: 100%;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid #dbe2ed;
  background: #fff;
  font: inherit;
}
.textarea { min-height: 170px; resize: vertical; }
.notice { color: var(--muted); font-size: 14px; }

.site-footer {
  padding: 40px 0 60px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); }
.small { font-size: 13px; color: var(--muted); }
.hide-mobile { display: inline; }

@media (max-width: 1024px) {
  .grid-2, .grid-3, .works-wrap { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-shell { min-height: 600px; }
  .hero-content { width: 100%; padding: 64px 34px; }
  .hero-cards { grid-template-columns: 1fr; width: min(calc(100% - 32px), 720px); }
  .hero-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-card:last-child { border-bottom: 0; }
  .nav { display: none; }
  .mobile-toggle {
    display: inline-flex;
    background: none;
    border: 0;
    font-size: 28px;
    color: var(--navy);
  }
  .nav.open {
    display: flex;
    position: absolute;
    top: 84px;
    left: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    flex-direction: column;
    box-shadow: var(--shadow);
  }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .hero { padding-top: 18px; }
  .hero-shell { min-height: 520px; border-radius: 24px; }
  .hero-content { padding: 40px 24px; }
  .hero-title { font-size: 36px; }
  .hero-sub { font-size: 16px; }
  .hero-cards { margin-top: -34px; }
  .service-card img { height: 210px; }
  .work-card { padding: 24px; }
  .device-pair { flex-direction: column; align-items: center; }
  .company-row { grid-template-columns: 1fr; }
  .company-row dt { padding-bottom: 8px; }
  .footer-grid { flex-direction: column; }
}

/* WordPress adjustments */
main { display:block; }
.site-main { display:block; }
.nav.open { display:flex !important; }
.current-menu-item > a,
.current_page_item > a,
.current_page_parent > a { color: var(--navy); }
.page-hero {
  padding: 72px 0 42px;
  background: linear-gradient(180deg, #fbfcff 0%, #f4f7fb 100%);
}
.page-hero .section-title { margin-bottom: 10px; }
.page-hero .section-lead { max-width: 760px; }
.page-section { padding: 82px 0; }
.content-narrow { max-width: 860px; }
.overview-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15,34,71,.04);
}
.overview-table th,
.overview-table td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.overview-table th {
  width: 220px;
  color: var(--navy);
  font-weight: 700;
  background: #fbfcff;
}
.overview-table tr:last-child th,
.overview-table tr:last-child td { border-bottom: 0; }
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.flow-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15,34,71,.04);
}
.flow-step-no {
  color: var(--navy);
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 13px;
  margin-bottom: 10px;
}
.flow-step h3 { margin: 0 0 10px; font-size: 20px; color: var(--charcoal); }
.flow-step p { margin: 0; color: var(--muted); }
.faq-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px 26px;
}
.faq-q { margin: 0 0 10px; color: var(--navy); font-weight: 800; }
.faq-a { margin: 0; color: var(--muted); }
.works-list {
  display: grid;
  gap: 26px;
  margin-top: 32px;
}
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 10px 30px rgba(15,34,71,.04);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.form-field { display: grid; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-label { font-weight: 700; color: var(--charcoal); font-size: 14px; }
.input,
.textarea,
.select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: #fff;
}
.textarea { min-height: 180px; resize: vertical; }
.contact-note {
  color: var(--muted);
  font-size: 14px;
  margin-top: 16px;
}
.wp-caption,
.aligncenter,
.alignleft,
.alignright { max-width: 100%; }
@media (max-width: 960px) {
  .flow-grid,
  .form-grid,
  .works-wrap,
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  .overview-table th,
  .overview-table td { display: block; width: 100%; }
}
@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 84px;
    left: 20px;
    right: 20px;
    background: rgba(255,255,255,.98);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 20px;
    color: var(--navy);
  }
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.18) 8%, rgba(0,0,0,.06) 45%, rgba(0,0,0,.36) 100%);
}
.screen-list {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}
.screen-item {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.7);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}
.screen-metrics {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.screen-metric {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.78);
  box-shadow: inset 0 0 0 1px rgba(21,43,87,.08);
}
.screen-metric strong {
  display: block;
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 4px;
}
.screen-metric span {
  display: block;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}
.works-note {
  margin-top: 18px;
  color: var(--muted);
}
@media (max-width: 767px) {
  .screen-item,
  .screen-metric span { font-size: 11px; }
}
