/* AT-EZ Portal — Brand Site Styles */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;600;700&display=swap");

:root {
  --bg: #f7f8fa;
  --bg-white: #ffffff;
  --text: #111827;
  --text-sub: #5f6b7a;
  --text-muted: #94a3b8;
  --accent: #1e3a5f;
  --accent-hover: #152a45;
  --accent-light: #eef2f7;
  --border: #e5e9ef;
  --border-light: #f0f3f7;
  --sans: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 24px rgba(17, 24, 39, 0.06);
  --shadow-lg: 0 12px 40px rgba(17, 24, 39, 0.12);
  --max-w: 1160px;
  --header-h: 64px;

  --blueworker-bg: linear-gradient(145deg, #0b1220 0%, #1e3a5f 55%, #2563eb 100%);
  --blueworker-accent: #3b82f6;
  --colorist-bg: linear-gradient(145deg, #faf5f2 0%, #f3e8f0 45%, #e9d5f5 100%);
  --colorist-accent: #b87a9a;
  --colorist-text: #5c3d4f;
  --gyosei-bg: linear-gradient(145deg, #f8fafc 0%, #e8eef5 50%, #dbeafe 100%);
  --gyosei-accent: #1e3a5f;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .portal-stack__card { transform: none !important; }
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(30, 58, 95, 0.12);
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent);
  text-decoration: none;
  touch-action: manipulation;
}

a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus { top: 16px; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }
section.bg-white { background: var(--bg-white); }
section.bg-alt { background: var(--bg); }

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.9rem, 4.8vw, 2.85rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); }
h3 { font-size: clamp(1.05rem, 2.5vw, 1.2rem); }

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.section-title { margin-bottom: 16px; }

.section-lead {
  font-size: 1.05rem;
  color: var(--text-sub);
  line-height: 1.85;
  max-width: 600px;
  margin-bottom: 40px;
}

p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  text-decoration: none;
}

.site-logo:hover { text-decoration: none; color: var(--accent); }
.site-logo span { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-sub);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--border-light);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-light);
}

.nav-cta {
  margin-left: 8px;
  padding: 8px 16px !important;
  background: var(--accent) !important;
  color: #fff !important;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
  color: #fff !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  padding: 14px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
}

.mobile-nav a:last-child { border-bottom: none; }

.nav-cta-mobile {
  margin-top: 8px;
  padding: 14px 16px !important;
  text-align: center;
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: var(--radius-sm);
  border-bottom: none !important;
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
}

/* Hero — split layout */
.hero {
  padding: 72px 0 88px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero h1 { margin-bottom: 20px; }

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-sub);
  line-height: 1.9;
  max-width: 480px;
}

.hero--compact { padding: 64px 0 72px; }

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Portal stack (hero visual) */
.portal-stack {
  position: relative;
  min-height: 400px;
}

.portal-stack__card {
  position: absolute;
  width: 78%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portal-stack__card:hover {
  text-decoration: none;
  box-shadow: 0 16px 48px rgba(17, 24, 39, 0.16);
}

.portal-stack__card:nth-child(1) {
  top: 0;
  right: 0;
  transform: rotate(2deg);
  z-index: 3;
}

.portal-stack__card:nth-child(2) {
  top: 108px;
  left: 0;
  transform: rotate(-1.5deg);
  z-index: 2;
}

.portal-stack__card:nth-child(3) {
  bottom: 0;
  right: 8%;
  transform: rotate(1deg);
  z-index: 1;
}

.portal-stack__card:hover:nth-child(1) { transform: rotate(2deg) translateY(-4px); }
.portal-stack__card:hover:nth-child(2) { transform: rotate(-1.5deg) translateY(-4px); }
.portal-stack__card:hover:nth-child(3) { transform: rotate(1deg) translateY(-4px); }

.portal-stack__visual {
  height: 100px;
  position: relative;
}

.portal-stack__visual--blueworker { background: var(--blueworker-bg); }
.portal-stack__visual--colorist { background: var(--colorist-bg); }
.portal-stack__visual--gyosei { background: var(--gyosei-bg); }

.portal-stack__body {
  padding: 16px 18px 18px;
  background: var(--bg-white);
}

.portal-stack__wave {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.portal-stack__name {
  font-size: 1rem;
  font-weight: 700;
  margin: 4px 0 6px;
  letter-spacing: -0.02em;
}

.portal-stack__tagline {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.5;
}

.portal-stack__card--blueworker .portal-stack__tagline { color: #1e3a5f; }
.portal-stack__card--colorist .portal-stack__tagline { color: var(--colorist-text); }
.portal-stack__card--gyosei .portal-stack__tagline { color: var(--gyosei-accent); }

@media (max-width: 900px) {
  .portal-stack {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .portal-stack__card {
    position: static;
    width: 100%;
    transform: none !important;
  }
}

/* Portal lineup cards */
.portal-lineup {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .portal-lineup { grid-template-columns: 1fr; }
}

.portal-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-white);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portal-card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.portal-card__visual {
  height: 140px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.portal-card__visual--blueworker {
  background: var(--blueworker-bg);
  color: #fff;
}

.portal-card__visual--colorist {
  background: var(--colorist-bg);
  color: var(--colorist-text);
}

.portal-card__visual--gyosei {
  background: var(--gyosei-bg);
  color: var(--gyosei-accent);
}

.portal-card__visual-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: radial-gradient(circle at 20% 80%, currentColor 1px, transparent 1px);
  background-size: 24px 24px;
}

.portal-card__wave {
  position: relative;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.portal-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portal-card__name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.portal-card__tagline {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.55;
}

.portal-card--blueworker .portal-card__tagline { color: #1e40af; }
.portal-card--colorist .portal-card__tagline { color: var(--colorist-text); }
.portal-card--gyosei .portal-card__tagline { color: var(--gyosei-accent); }

.portal-card__desc {
  font-size: 0.9rem;
  color: var(--text-sub);
  flex: 1;
  margin: 0;
}

.portal-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 999px;
}

.status-badge--prep {
  background: #fef9ec;
  color: #92680a;
  border: 1px solid #f5e6c4;
}

/* Concept block */
.concept-block {
  max-width: 720px;
}

.concept-block p {
  font-size: 1.05rem;
  color: var(--text-sub);
}

.concept-emphasis {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.75;
  margin: 28px 0;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}

/* Audience (For Publisher / For Visitor) */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .audience-grid { grid-template-columns: 1fr; }
}

.audience-card {
  padding: 32px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.audience-card__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.audience-card h3 {
  margin-bottom: 12px;
}

.audience-card p {
  font-size: 0.95rem;
  color: var(--text-sub);
  margin: 0;
}

/* Platform */
.platform-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}

@media (max-width: 600px) {
  .platform-points { grid-template-columns: 1fr; }
}

.platform-point {
  padding: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-sub);
}

.platform-point strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 24px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  touch-action: manipulation;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--border-light);
  text-decoration: none;
  color: var(--text);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Legacy card grid (portals subpages) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.card h3 { margin: 0; }

.card p {
  font-size: 0.925rem;
  color: var(--text-sub);
  flex: 1;
}

.card-link {
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 4px;
}

.wave-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Portal theme page headers */
.page-header--blueworker {
  background: linear-gradient(180deg, #f0f4fa 0%, var(--bg-white) 100%);
}

.page-header--colorist {
  background: linear-gradient(180deg, #fdf8f6 0%, var(--bg-white) 100%);
}

.page-header--gyosei {
  background: linear-gradient(180deg, #f4f7fb 0%, var(--bg-white) 100%);
}

.page-header__tagline {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 12px;
  line-height: 1.55;
}

.page-header--blueworker .page-header__tagline { color: #1e3a5f; }
.page-header--colorist .page-header__tagline { color: var(--colorist-text); }
.page-header--gyosei .page-header__tagline { color: var(--gyosei-accent); }

.portal-catch {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

.page-header--blueworker .portal-catch {
  background: #eef2f7;
  color: #1e3a5f;
}

.page-header--colorist .portal-catch {
  background: #faf0f5;
  color: var(--colorist-text);
}

.page-header--gyosei .portal-catch {
  background: #eef2f7;
  color: var(--gyosei-accent);
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.feature-item {
  padding: 24px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature-item h3 { margin-bottom: 8px; font-size: 1rem; }

.feature-item p {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin: 0;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 80px 24px;
  background: var(--accent);
  color: #fff;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 16px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
  margin: 0 auto 28px;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}

.cta-band .btn-primary:hover {
  background: var(--border-light);
  color: var(--accent);
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table th {
  font-weight: 600;
  color: var(--text-sub);
  font-size: 0.8rem;
  width: 28%;
}

.data-table-wrap {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Lists */
.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.7em;
  color: var(--text-sub);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 2px;
}

/* Form */
.form-section { padding: 64px 0 96px; }

.form-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 24px; }

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  color: var(--text);
}

.form-group textarea { min-height: 160px; resize: vertical; }

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.required-mark { color: #dc2626; }

.contact-info {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.925rem;
  color: var(--text-sub);
}

.hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: #0b1220;
  color: #94a3b8;
  padding: 64px 0 32px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-logo {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 40px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.875rem;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
}

/* Page header */
.page-header {
  padding: 64px 0 48px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--text-sub); }
.breadcrumb span { margin: 0 6px; }
