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

:root {
  --teal: #009785;
  --teal-light: #e6f5f3;
  --teal-dark: #007a6b;
  --pll-green: #39AD8C;
  --tokiwa: #007B43;
  --text: #1a1a1a;
  --text-light: #3d4b5f;
  --bg: #ffffff;
  --bg-alt: #f7fafa;
  --border: #e0e0e0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo-img {
  height: 28px;
  width: auto;
}

.header-nav {
  display: flex;
  gap: 28px;
}

.header-nav a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--teal);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: 0.2s;
}

/* Hero */
.hero {
  padding-top: 60px;
  overflow: hidden;
}

.hero-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 80%;
  margin: 0 auto;
}

.tile {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center center;
  display: block;
  border: none;
}

.tile-iframe {
  overflow: hidden;
  position: relative;
}

.tile-iframe iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200%;
  height: 200%;
  border: none;
  pointer-events: none;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--text);
}

.section-lead {
  font-size: 16px;
  color: var(--text-light);
  margin-top: -24px;
  margin-bottom: 36px;
}

/* News */
.news-section h2 {
  margin-bottom: 24px;
}

.news-list {
  list-style: none;
}

.news-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.news-item:first-child {
  border-top: 1px solid var(--border);
}

.news-date {
  font-size: 14px;
  color: var(--text-light);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.news-title {
  font-size: 15px;
  color: var(--text);
}

a.news-title {
  text-decoration: none;
  transition: color 0.2s;
}

a.news-title:hover {
  color: var(--teal);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.card-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 16px;
  color: var(--teal);
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* Product */
.product-entry {
  margin-bottom: 40px;
}

.product-entry:last-child {
  margin-bottom: 0;
}

.pll-logo {
  height: 32px;
  width: auto;
}

.product-upcoming {
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.product-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.product-header h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.product-icon-placeholder {
  width: 72px;
  height: 72px;
  color: var(--teal);
  padding: 20px;
  background: var(--teal-light);
  border-radius: 16px;
  flex-shrink: 0;
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--teal);
  background: var(--teal-light);
  padding: 2px 10px;
  border-radius: 20px;
  vertical-align: middle;
  margin-left: 8px;
}

.badge-active {
  color: var(--bg);
  background: var(--teal);
}

.product-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.product-block {
  max-width: 600px;
}

.product-tagline {
  font-size: 18px;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 0;
}

.product-text p {
  margin-bottom: 16px;
  color: var(--text-light);
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-right: 12px;
  margin-top: 8px;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--teal-dark);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--teal);
}

.btn-outline:hover {
  background: var(--teal-light);
}

/* PLL Links */
.pll-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}

.pll-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s;
}

.pll-item:nth-child(-n+2) {
  border-top: 1px solid var(--border);
}

.pll-item:hover {
  color: var(--pll-green);
}

.pll-item:hover .pll-icon {
  color: var(--pll-green);
}

.pll-icon {
  width: 20px;
  height: 20px;
  color: var(--text-light);
  flex-shrink: 0;
}

.pll-text {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.pll-label {
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}

.pll-desc {
  font-size: 14px;
  color: var(--text-light);
}

/* Company Table */
.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  vertical-align: top;
}

.company-table th {
  width: 140px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.company-table td {
  color: var(--text-light);
}

/* Service Cards */
.service-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.service-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

.service-icon {
  width: 24px;
  height: 24px;
  color: var(--teal);
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.service-note-icon {
  width: 14px;
  height: 14px;
  color: var(--text-light);
  vertical-align: -2px;
  margin-right: 4px;
}

.service-note a {
  color: var(--teal);
  text-decoration: none;
}

.service-note a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 14px;
}

.footer-icon {
  width: 16px;
  height: 16px;
  color: var(--text-light);
}

.footer-contact a {
  color: var(--teal);
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-light);
}

/* Mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .header-nav.open {
    display: flex;
  }

  .hero {
    padding-top: 60px;
  }

  .hero-tiles {
    width: 100%;
    gap: 4px;
  }

  .section {
    padding: 56px 0;
  }

  .section h2 {
    font-size: 24px;
    margin-bottom: 28px;
  }

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

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

  .product-header {
    gap: 14px;
  }

  .product-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }

  .pll-list {
    grid-template-columns: 1fr;
  }

  .pll-item:nth-child(2) {
    border-top: none;
  }

  .company-table th {
    width: 100px;
    font-size: 14px;
  }

  .company-table td {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .pll-text {
    flex-direction: column;
    gap: 2px;
  }
}
