:root {
  --primary: #18425d;
  --accent: #4fc3f7;
  --gray: #6b879e;
  --bg: #f5faff;
  --white: #fff;
  --shadow: 0 4px 24px rgba(24, 66, 93, 0.07);
  --radius: 14px;
  --font-main: 'Segoe UI', 'ヒラギノ角ゴ ProN', 'Meiryo', sans-serif;
}

body {
  font-family: 'Noto Sans JP', 'Segoe UI', 'ヒラギノ角ゴ ProN', 'Meiryo', sans-serif;
  background: linear-gradient(120deg, #f5faff 60%, #e3f2fd 100%);
  color: #1a2733;
  letter-spacing: 0.02em;
  margin: 0;
  border-radius: 0 !important;
  padding-top: 0;
}

header {
  background: #fff;
  color: var(--primary);
  padding: 2.2rem 1rem 1.2rem 1rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(24, 66, 93, 0.07);
  border-bottom-left-radius: 22px;
  border-bottom-right-radius: 22px;
  position: relative;
  z-index: 2;
  border-radius: 0 !important;
}

.modern-header {
  background: linear-gradient(90deg, #f5faff 60%, #e3f2fd 100%);
  border-bottom: 1px solid #e0e6ed;
  box-shadow: 0 2px 12px rgba(24,66,93,0.04);
  padding: 0 0 0.5rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.2rem 2vw 0.5rem 2vw;
  gap: 1.5rem;
}

.logo {
  height: 54px;
  width: auto;
  transition: filter 0.2s;
}

.header-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.header-title h1 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #18425d;
  margin: 0;
  letter-spacing: 0.04em;
  text-align: center;
}

.header-tagline {
  font-size: 0.8rem;
  color: #00796b;
  margin-top: 0.2em;
  letter-spacing: 0.03em;
  font-weight: 500;
  text-align: center;
}

nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.2em;
  padding: 0.3em 0;
}

nav a {
  color: #18425d;
  background: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.5em 0.7em;
  border-radius: 6px;
  margin: 0 0.05em;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  display: flex;
  align-items: center;
}

nav a:hover,
nav a.active {
  background: #e3f2fd;
  color: #00796b;
}

main {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(24, 66, 93, 0.10);
  padding: 3.5rem 2.5rem 2.5rem 2.5rem;
  margin: 3.5rem auto;
  max-width: 900px;
}

@media (max-width: 1000px) {
  main {
    margin-left: auto;
    margin-right: auto;
  }
}

section {
  margin-bottom: 2.7rem;
}

h2 {
  color: var(--primary);
  border-left: 7px solid var(--accent);
  padding-left: 0.8em;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: none;
}

.origin {
  background: #eaf6fd;
  padding: 1.4rem 1.2rem;
  border-radius: 12px;
  border-left: 6px solid var(--accent);
  font-size: 1.13em;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 8px rgba(79,195,247,0.07);
}

ul, ul li {
  list-style: none;
  padding: 0;
  margin: 0 0 0.7em 0;
  font-size: 1.07em;
  text-indent: -0.9em;
  padding-left: 1.2em;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  background: #00796b;
  color: #fff;
  padding: 16px 38px;
  border-radius: 32px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.15em;
  box-shadow: 0 4px 16px rgba(79,195,247,0.13);
  transition: background 0.3s, transform 0.2s;
  border: none;
  cursor: pointer;
}
.btn:hover {
  background: #004d40;
  transform: translateY(-2px) scale(1.04);
}

.phrase-unit {
  display: inline-block;
}

.section,
.section-alt {
  border-radius: 0;
  background: none;
  box-shadow: none;
  margin-bottom: 3.5rem;
  padding: 0 0 3.5rem 0;
  position: relative;
  scroll-margin-top: 70px;
}

.section > h2,
.section-alt > h2 {
  border: none;
  padding-left: 0;
  margin-bottom: 1.2em;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
  background: none;
}
.section > h2::after,
.section-alt > h2::after {
  content: '';
  display: block;
  height: 4px;
  width: 48px;
  background: linear-gradient(90deg, #00796b 60%, #4fc3f7 100%);
  margin-top: 0.4em;
  border-radius: 2px;
}

.section-alt {
  background: linear-gradient(90deg, #f5faff 80%, #e3f2fd 100%);
  padding: 2.5rem 2rem 3.5rem 2rem;
  margin-left: -2rem;
  margin-right: -2rem;
}

.section:not(:last-child),
.section-alt:not(:last-child) {
  border-bottom: 1px solid #e0e6ed;
}

footer {
  text-align: center;
  padding: 0.5rem 0 1.2rem 0;
  background: #222;
  color: #fff;
  margin-top: 40px;
  border-top: 1px solid #e0e0e0;
  border-bottom-left-radius: 22px;
  border-bottom-right-radius: 22px;
  box-shadow: 0 -2px 12px rgba(24, 66, 93, 0.06);
  font-size: 0.88em;
  letter-spacing: 0.04em;
  border-radius: 0 !important;
}

.hero {
  background: linear-gradient(120deg, rgba(79,195,247,0.18) 0%, rgba(0,121,107,0.10) 100%), url('../img/hero.jpg') center/cover no-repeat;
  color: #18425d;
  text-align: center;
  padding: 110px 20px 90px 20px;
  border-radius: 0 0 32px 32px;
  margin-bottom: 2.5rem;
  box-shadow: 0 8px 32px rgba(79,195,247,0.09);
  border-radius: 0 !important;
}
.hero-content {
  display: inline-block;
  background: rgba(255,255,255,0.85);
  border-radius: 18px;
  padding: 1.75em 2em 1.55em 2em;
  box-shadow: 0 4px 24px rgba(24,66,93,0.10);
  margin: 0 auto;
  max-width: 600px;
}
.hero-content h2 {
  font-size: 2.7em;
  margin-bottom: 22px;
  font-weight: 900;
  color: #00796b;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 8px rgba(255,255,255,0.18);
  border-left: none;
  padding-left: 0;
}
.hero-content p {
  font-size: 1.25em;
  margin-bottom: 36px;
  color: #18425d;
  font-weight: 500;
}

.fixed-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 1000;
  background: #f5f5f5;
  box-shadow: 0 2px 8px rgba(24,66,93,0.08);
  border-radius: 0 !important;
  margin-top: 0;
  display: flex;
  align-items: center;
}
.nav-logo {
  height: 36px;
  width: auto;
  margin-right: 0.7em;
  display: none;
  transition: filter 0.2s;
}
.fixed-nav .nav-logo {
  display: inline-block;
}
.fixed-nav a {
  vertical-align: middle;
}
@keyframes slideDownNav {
  from { transform: translateY(-100%);}
  to { transform: translateY(0);}
}

.fixed-nav + main,
.fixed-nav + section,
.fixed-nav + .hero {
  margin-top: 60px;
}

#show-form-btn {
  display: block;
  margin: 4em auto 0 auto;
  text-align: center;
}

@media (max-width: 600px) {
  main {
    padding: 1.2rem 1.2rem;
  }
  header h1,
  .header-title h1 {
    font-size: 1.3rem;
  }
  .hero {
    padding: 50px 10px 40px 10px;
  }
  .hero-content h2 {
    font-size: 1.5em;
  }
  .header-tagline {
    font-size: 0.65rem;
  }
  nav {
    gap: 1rem;
    flex-wrap: wrap;
  }
  .header-inner {
    flex-direction: column;
    gap: 0.5rem;
  }
  .logo {
    height: 48px;
  }
  .header-sub {
    font-size: 0.8rem;
  }
  .hero-content p {
    font-size: 1em;
  }
  .fixed-nav .nav-logo {
    height: 26px;
  }
  .fixed-nav a {
    font-size: 0.92rem;
    padding: 0.35em 0.5em;
  }
}

@media (max-width: 800px) {
  nav a[href="#experience"],
  nav a[href="#platform"],
  nav a[href="/#experience"],
  nav a[href="/#platform"] {
    display: none !important;
  }
}

.contact-notes {
  font-size: 0.85em;
  margin-bottom: 2.5em;
}
.contact-notes li::before {
  content: "\f00c  ";
  font-family: "Font Awesome 5 Free", "Segoe UI Symbol", "Arial";
  font-weight: 900;
  color: #4fc3f7;
  margin-right: 0.5em;
  font-size: 1em;
}
.section ul li::before {
  content: "\2022  ";
  color: #4fc3f7;
  font-size: 1.2em;
  margin-right: 0.5em;
}

#form-dialog {
  width: min(900px, 98vw);
  border: none;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(24,66,93,0.18);
  padding: 0;
  background: #fff;
  max-height: 90vh;
  height: 80vh;
  min-height: 400px;
  overflow: visible;
  position: relative;
}
#form-dialog form {
  margin: 0;
  padding: 0;
  height: 0;
}
#close-dialog-btn {
  background: #ff5252;
  border: none;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  right: 1.4em;
  top: 1.5em;
  left: auto;
  font-size: 2em;
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(255,82,82,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, box-shadow 0.2s, top 0.2s;
  z-index: 10;
  outline: none;
  border: 3px solid #fff;
}
#close-dialog-btn:hover {
  background: #d50000;
  box-shadow: 0 6px 24px rgba(213,0,0,0.25);
}
#close-dialog-btn:focus {
  outline: 3px solid #0288d1;
}
#form-dialog iframe {
  border: none;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  border-radius: 8px;
  margin: 0;
  display: block;
}

.company-profile {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 2.5em auto;
  border-collapse: collapse;
  background: #f8fbfd;
  box-shadow: 0 2px 8px rgba(24,66,93,0.06);
  border-radius: 10px;
  overflow: hidden;
}
.company-profile th, .company-profile td {
  padding: 1em 1.2em;
  border-bottom: 1px solid #e0e6ed;
  text-align: left;
  font-size: 1.08em;
}
.company-profile th {
  background: #e3f2fd;
  color: #18425d;
  font-weight: 700;
  width: 32%;
  letter-spacing: 0.04em;
}
.company-profile tr:last-child th,
.company-profile tr:last-child td {
  border-bottom: none;
}
@media (max-width: 600px) {
  .company-profile th, .company-profile td {
    padding: 0.7em 0.5em;
    font-size: 0.98em;
  }
  .company-profile {
    max-width: 100%;
  }
}

.address-block {
  display: inline-block;
  margin-right: 0.2em;
  white-space: pre-line;
}

.company-profile td img {
  height: 5.1em;
  width: auto;
  display: block;
  margin: 0.2em 0;
  object-fit: contain;
  line-height: 1.7;
}

.company-profile .contact-notice {
  display: block;
  margin-top: 0.4em;
  font-size: 0.97em;
  color: #18425d;
}
.company-profile .contact-notice a {
  color: #00796b;
  text-decoration: underline;
  font-weight: 500;
}
.company-profile .contact-notice a:hover {
  color: #0288d1;
  text-decoration: underline;
}

/* ===== KINTACT Section ===== */
.kintact-section {
  scroll-margin-top: 70px;
}

.kintact-hero-block {
  text-align: center;
  margin-bottom: 2.5rem;
}

.kintact-logo {
  height: 120px;
  width: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 8px rgba(24,66,93,0.10));
}

.kintact-catch {
  font-size: 1.7rem;
  font-weight: 800;
  color: #00796b;
  margin: 0.5rem 0 0.8rem 0;
  letter-spacing: 0.06em;
}

.kintact-desc {
  font-size: 1.05rem;
  color: #3a5060;
  line-height: 1.85;
  max-width: 680px;
  margin: 0 auto;
}

.pc-only {
  display: inline;
}

/* Feature Cards */
.kintact-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  margin-bottom: 3rem;
}

.kintact-feature-card {
  background: linear-gradient(135deg, #f5faff 0%, #e8f5e9 100%);
  border-radius: 14px;
  padding: 1.5rem 1.2rem 1.3rem 1.2rem;
  box-shadow: 0 2px 12px rgba(24,66,93,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.kintact-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(24,66,93,0.12);
}

.kintact-feature-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.kintact-feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #18425d;
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.03em;
}

.kintact-feature-card p {
  font-size: 0.93rem;
  color: #4a6070;
  line-height: 1.7;
  margin: 0;
  text-align: left;
}

/* Screenshots */
.kintact-screenshots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.kintact-screenshot {
  text-align: center;
}

.kintact-screenshot h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #18425d;
  margin: 0 0 0.8rem 0;
}

.kintact-screenshot img {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(24,66,93,0.12);
  border: 1px solid #e0e6ed;
}

.kintact-screenshot-caption {
  font-size: 0.9rem;
  color: #6b879e;
  margin-top: 0.7rem;
  line-height: 1.6;
}

/* Info Table */
.kintact-info-table-wrap {
  margin-bottom: 2.5rem;
}

.kintact-info-table {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-collapse: collapse;
  background: #f8fbfd;
  box-shadow: 0 2px 8px rgba(24,66,93,0.06);
  border-radius: 10px;
  overflow: hidden;
}

.kintact-info-table th,
.kintact-info-table td {
  padding: 0.9em 1.2em;
  border-bottom: 1px solid #e0e6ed;
  text-align: left;
  font-size: 1.02em;
}

.kintact-info-table th {
  background: #e3f2fd;
  color: #18425d;
  font-weight: 700;
  width: 28%;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.kintact-info-table tr:last-child th,
.kintact-info-table tr:last-child td {
  border-bottom: none;
}

/* CTA */
.kintact-cta {
  text-align: center;
  margin-top: 1rem;
}

.kintact-cta p {
  font-size: 1.05rem;
  color: #3a5060;
  margin-bottom: 1.2rem;
}

/* Responsive */
@media (max-width: 900px) {
  .kintact-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .kintact-logo {
    height: 80px;
  }
  .kintact-catch {
    font-size: 1.3rem;
  }
  .kintact-desc {
    font-size: 0.95rem;
  }
  .pc-only {
    display: none;
  }
  .kintact-features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .kintact-screenshots {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .kintact-info-table th {
    width: 35%;
  }
  .kintact-info-table th,
  .kintact-info-table td {
    padding: 0.7em 0.6em;
    font-size: 0.95em;
  }
}

.footer-privacy-link {
  display: inline-block;
  margin-top: 0.7em;
  color: #bbb;
  font-weight: bold;
  font-size: 0.92em;
  text-decoration: underline;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.footer-privacy-link:hover {
  color: #ff9800;
  text-decoration: underline;
}

.footer-copyright {
  display: inline-block;
  margin-top: 0.3em;
  color: #bbb;
  font-size: 0.92em;
  letter-spacing: 0.03em;
}