/* ============================================
   AT-EZ Corporate Site — Shared Stylesheet
   Design: Japanese Refined Minimalism
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;600&family=Noto+Sans+JP:wght@400;500&display=swap');

/* === Variables === */
:root {
  --bg:           #FFFFFF;
  --bg-alt:       #F5F5F7;
  --bg-white:     #FFFFFF;
  --text:         #1C1C1E;
  --text-sub:     #5A6B60;
  --text-muted:   #8A9A8F;
  --accent:       #2C3E6B;
  --accent-dark:  #1E2D52;
  --accent-light: #EBEEf7;
  --border:       #D8DCE8;
  --border-light: #ECEEF5;
  --serif:        'Noto Serif JP', serif;
  --sans:         -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", 'Noto Sans JP', sans-serif;
  --radius:       16px;
  --radius-sm:    8px;
  --shadow:       0 4px 20px rgba(0,0,0,0.05);
  --shadow-md:    0 8px 30px rgba(0,0,0,0.08);
  --max-w:        960px;
  --max-text:     680px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === Layout === */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow {
  max-width: var(--max-text);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }
section.bg-alt { background: var(--bg-alt); }
section.bg-white { background: var(--bg-white); }

/* === Typography === */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h3 { font-size: clamp(1.05rem, 2.5vw, 1.2rem); }

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.section-lead {
  font-size: 1rem;
  color: var(--text-sub);
  line-height: 1.9;
  margin-bottom: 48px;
}

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  border: 1.5px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  text-decoration: none;
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-secondary:hover {
  background: var(--accent-light);
  text-decoration: none;
}

.btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* === Header / Navigation === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
  text-decoration: none;
}
.site-logo span { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-size: 0.85rem;
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav .nav-cta {
  padding: 8px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--accent-dark); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px 28px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 0;
  font-size: 0.95rem;
  color: var(--text-sub);
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
}
.mobile-nav a[aria-current="page"] { color: var(--accent); }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a.nav-cta-mobile {
  margin-top: 12px;
  text-align: center;
  background: var(--accent);
  color: #fff;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
}

/* === Footer === */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.65);
  padding: 52px 0 32px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1rem;
  color: #fff;
  margin-bottom: 8px;
}
.footer-tagline {
  font-size: 0.8rem;
  margin-bottom: 36px;
  color: rgba(255,255,255,0.45);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-bottom: 36px;
}
.footer-nav a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}
.footer-nav a:hover { color: #fff; text-decoration: none; }
.footer-nav a[aria-current="page"] { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom small { font-size: 0.75rem; }

/* === Hero === */
.hero {
  padding: 96px 0 80px;
  background: var(--bg);
}
.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 20px;
}
.hero h1 {
  margin-bottom: 20px;
  max-width: 600px;
}
.hero-sub {
  font-size: 1rem;
  color: var(--text-sub);
  line-height: 1.9;
  max-width: 480px;
  margin-bottom: 0;
}

/* === Page Hero (inner pages) === */
.page-hero {
  padding: 64px 0 52px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg);
}
.page-hero .breadcrumb {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.page-hero .breadcrumb a { color: var(--text-muted); }
.page-hero .breadcrumb a:hover { color: var(--accent); text-decoration: none; }
.page-hero h1 { margin-bottom: 14px; }
.page-hero .page-hero-lead {
  font-size: 0.98rem;
  color: var(--text-sub);
  max-width: 560px;
  line-height: 1.9;
}

/* === Step Badge === */
.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.step-badge-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 600;
}

/* === Service Cards === */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: box-shadow 0.2s;
}
.service-card:hover { box-shadow: var(--shadow-md); }

.service-card-price {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 16px 0 8px;
}
.service-card-price strong {
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 500;
}

.service-card h3 { margin: 10px 0 12px; }
.service-card p {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 20px;
}
.service-card .card-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.service-card .card-link::after { content: ' →'; }

/* === Checklist === */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-sub);
  line-height: 1.7;
}
.check-list li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background: var(--accent-light);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%232C3E6B' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* === Values Grid === */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.value-item h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text);
}
.value-item p {
  font-size: 0.87rem;
  color: var(--text-sub);
  line-height: 1.85;
}
.value-item .value-icon {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

/* === Flow Steps === */
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 40px;
}
.flow-step {
  display: flex;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-light);
}
.flow-step:last-child { border-bottom: none; }
.flow-step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 2px;
}
.flow-step-body h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}
.flow-step-body p {
  font-size: 0.87rem;
  color: var(--text-sub);
  margin: 0;
}

/* === Two-col grid === */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.two-col--wide { grid-template-columns: 1.2fr 1fr; }

/* === Targets Grid === */
.targets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}
.target-group {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.target-group h3 {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

/* === Deliverables === */
.deliverable-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 20px 0;
}
.deliverable-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  padding: 10px 14px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  color: var(--text);
}
.deliverable-list li::before {
  content: '📄';
  font-size: 0.85rem;
}

/* === Result Box === */
.result-box {
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  background: var(--accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 28px 0;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.8;
}

/* === Price Box === */
.price-box {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  margin-top: 32px;
}
.price-box .price-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.price-box .price-amount {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.price-box .price-duration {
  font-size: 0.82rem;
  color: var(--text-sub);
  margin-bottom: 20px;
}
.price-box hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 16px 0;
}

/* === Plans Grid === */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
.plan-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.plan-card.featured {
  border-color: var(--accent);
  border-width: 2px;
}
.plan-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}
.plan-price {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin: 8px 0 4px;
}
.plan-desc {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-top: 10px;
}

/* === Option Table === */
.option-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-size: 0.88rem;
}
.option-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--bg-alt);
  color: var(--text-sub);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}
.option-table td {
  padding: 14px 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
  line-height: 1.7;
}
.option-table tr:last-child td { border-bottom: none; }
.option-table td:nth-child(2) {
  white-space: nowrap;
  color: var(--text);
  font-weight: 500;
}

/* === Company Profile === */
.company-profile {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 8px;
}
.company-profile th,
.company-profile td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
  line-height: 1.8;
  text-align: left;
}
.company-profile th {
  width: 9em;
  min-width: 9em;
  color: var(--text-sub);
  font-weight: 500;
  font-size: 0.82rem;
  white-space: nowrap;
}
.company-profile tr:last-child th,
.company-profile tr:last-child td {
  border-bottom: none;
}

/* === CTA Section === */
.cta-section {
  background: var(--accent);
  padding: 72px 0;
}
.cta-section h2 {
  font-family: var(--serif);
  color: #fff;
  margin-bottom: 14px;
}
.cta-section p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 0;
  font-size: 0.95rem;
}
.cta-section .btn-white {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
  margin-top: 32px;
}
.cta-section .btn-white:hover {
  background: rgba(255,255,255,0.9);
  text-decoration: none;
}
.cta-section .btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
  margin-top: 32px;
}
.cta-section .btn-outline-white:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
  text-decoration: none;
}

/* === FAQ === */
.faq-list { margin-top: 32px; }
.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 24px 0;
}
.faq-item:first-child { border-top: 1px solid var(--border-light); }
.faq-q {
  font-family: var(--serif);
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.faq-q::before {
  content: 'Q';
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 1px;
}
.faq-a {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.85;
  padding-left: 34px;
}

/* === Form === */
.form-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}
.form-group label {
  display: block;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 7px;
}
.form-group .required {
  color: #c0392b;
  margin-left: 4px;
  font-size: 0.75rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  color: var(--text);
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.radio-group { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 400;
  cursor: pointer;
  color: var(--text-sub);
}
.radio-group input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.7;
}

/* === Pattern dividers === */
.divider-leaf {
  text-align: center;
  padding: 12px 0;
  color: var(--border);
  font-size: 1.2rem;
  letter-spacing: 12px;
}

/* === About quote === */
.ceo-quote {
  border-left: 3px solid var(--accent);
  padding: 24px 28px;
  background: var(--bg-white);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 40px 0;
  font-size: 0.92rem;
  line-height: 1.95;
  color: var(--text-sub);
}
.ceo-name {
  display: block;
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 600;
  margin-top: 16px;
}

/* === Pattern section === */
.next-step-bar {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.next-step-bar p { margin: 0; font-size: 0.88rem; color: var(--text-sub); }
.next-step-bar strong { display: block; font-size: 0.95rem; color: var(--text); margin-bottom: 4px; }

/* === Responsive === */
@media (max-width: 768px) {
  section { padding: 52px 0; }
  .hero { padding: 64px 0 52px; }
  .page-hero { padding: 44px 0 36px; }

  .site-nav { display: none; }
  .hamburger { display: flex; }

  .service-grid { grid-template-columns: 1fr; gap: 16px; }
  .values-grid { grid-template-columns: 1fr; gap: 28px; }
  .two-col,
  .two-col--wide { grid-template-columns: 1fr; gap: 32px; }
  .targets-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }

  .btn-group { flex-direction: column; gap: 10px; }
  .btn-group .btn { text-align: center; }

  .option-table th:last-child,
  .option-table td:last-child { display: none; }

  .next-step-bar { flex-direction: column; align-items: flex-start; }

  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.25rem; }

  .cta-section { padding: 52px 0; }
}
