/* ==============================
  GL SMART 公式サイト
  Base: white / Accent: blue & green
============================== */

:root {
  --white: #ffffff;
  --bg: #f6fbff;
  --bg-green: #f2fbf7;
  --text: #102033;
  --muted: #617083;
  --blue: #1268f3;
  --blue-dark: #0b3f9f;
  --green: #16b77a;
  --green-dark: #0f8c5f;
  --line: #dce8f5;
  --shadow: 0 18px 45px rgba(15, 58, 105, 0.12);
  --shadow-soft: 0 10px 28px rgba(15, 58, 105, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
  background:
    radial-gradient(circle at top left, rgba(18, 104, 243, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(22, 183, 122, 0.12), transparent 28%),
    var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220, 232, 245, 0.9);
}

.header-inner{
    width:min(1120px, calc(100% - 32px));
    height:90px;
    margin:0 auto;

    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo{
    display:flex;
    align-items:center;
    flex-shrink:0;
}

.logo img{
    display:block;
    height:52px;
    width:auto;
}

/* 今までの丸い装飾は不要 */
.logo::after{
    display:none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
  color: #294259;
}

.nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav a:hover {
  color: var(--blue);
  transform: translateY(-1px);
}

.nav-btn {
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 10px 22px rgba(18, 104, 243, 0.22);
}

/* Common */
.section {
  padding: 88px 0;
}

.section-inner,
.hero-inner,
.contact-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.section-label::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 34px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.section-lead {
  max-width: 680px;
  margin: -18px 0 30px;
  color: var(--muted);
  font-size: 16px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;

  background-image: url("../img/hero-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-text {
  max-width: 650px;
  padding: 40px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(8px);
}

.tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 15px;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 800;
  border: 1px solid rgba(18, 104, 243, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.hero h1 {
  margin-bottom: 22px;
  font-size: 68px;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.hero h1::first-line {
  color: var(--blue-dark);
}

.lead {
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.94;
}

.main-btn {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 14px 28px rgba(18, 104, 243, 0.25);
}

.sub-btn {
  color: var(--blue-dark);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

/* Problem */
.problem {
  background: var(--bg);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.problem-grid div {
  position: relative;
  padding: 20px 20px 20px 48px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  font-weight: 800;
}

.problem-grid div::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 18px;
  color: var(--green);
  font-weight: 900;
}

/* Service */
.two-column {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 44px;
  align-items: center;
}

.two-column p {
  color: var(--muted);
}

.service-card {
  padding: 34px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: var(--white);
  box-shadow: var(--shadow);
}

.service-card h3 {
  font-size: 24px;
}

.service-card ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.service-card li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 800;
}

.service-card li:last-child {
  border-bottom: none;
}

/* Features */
.features {
  background: var(--bg-green);
}

.feature-grid,
.price-grid,
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card,
.price-card,
.work-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.feature-card::before {
  content: "";
  display: block;
  width: 42px;
  height: 6px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.feature-card h3,
.price-card h3,
.work-card h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.feature-card p,
.price-card p,
.work-card p {
  margin-bottom: 0;
  color: var(--muted);
}


/* Plan comparison */
.plan-comparison {
  background: linear-gradient(180deg, var(--bg-green), var(--white));
}

.comparison-wrap {
  overflow-x: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.comparison-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--white);
}

.comparison-table th,
.comparison-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  font-weight: 800;
}

.comparison-table thead th {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.comparison-table thead th:first-child {
  background: linear-gradient(135deg, #0d2747, var(--blue-dark));
}

.comparison-table tbody tr:nth-child(even) {
  background: rgba(18, 104, 243, 0.035);
}

.comparison-table tbody tr:hover {
  background: rgba(22, 183, 122, 0.08);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.circle,
.cross {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 17px;
  font-weight: 900;
}

.circle {
  color: var(--green-dark);
  background: rgba(22, 183, 122, 0.12);
  border: 1px solid rgba(22, 183, 122, 0.28);
}

.cross {
  color: #8b98a7;
  background: rgba(97, 112, 131, 0.09);
  border: 1px solid rgba(97, 112, 131, 0.18);
}

/* Price */
.price-card {
  padding-top: 34px;
}

.price-card.recommend {
  border: 2px solid rgba(22, 183, 122, 0.7);
  transform: translateY(-12px);
  box-shadow: 0 24px 55px rgba(22, 183, 122, 0.16);
}

.badge {
  position: absolute;
  top: -15px;
  right: 24px;
  color: var(--white);
  background: var(--green);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.price-main {
  margin-bottom: 2px !important;
  color: var(--blue-dark) !important;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.monthly {
  display: inline-block;
  margin-bottom: 18px !important;
  padding: 5px 12px;
  color: var(--green-dark) !important;
  background: rgba(22, 183, 122, 0.1);
  border-radius: 999px;
  font-weight: 900;
}

/* Works */
.works-grid {
  grid-template-columns: repeat(2, 1fr);
}

.work-image {
  display: grid;
  place-items: center;
  height: 230px;
  margin: -6px -6px 22px;
  border-radius: 18px;
  color: var(--blue-dark);
  font-weight: 900;
  background:
    linear-gradient(135deg, rgba(18,104,243,0.12), rgba(22,183,122,0.14)),
    var(--bg);
  border: 1px dashed rgba(18, 104, 243, 0.24);
}

/* Flow */
.flow {
  background: var(--bg);
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.flow-list div {
  min-height: 112px;
  padding: 18px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  font-weight: 900;
}

.flow-list span {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 15px;
  letter-spacing: 0.08em;
}

/* Contact */
.contact {
  padding: 92px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.2), transparent 30%),
    linear-gradient(135deg, var(--blue-dark), var(--blue) 55%, var(--green));
}

.contact-inner {
  max-width: 820px;
  text-align: center;
}

.contact .section-label {
  color: var(--white);
}

.contact .section-label::before {
  background: var(--white);
}

.contact h2 {
  margin-bottom: 18px;
}

.contact p {
  color: rgba(255, 255, 255, 0.88);
}

.contact .main-btn {
  margin-top: 18px;
  color: var(--blue-dark);
  background: var(--white);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.footer {
  padding: 26px 16px;
  text-align: center;
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 0;
}

.image-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.image-modal.is-open {
  display: flex;
}

.modal-box {
  text-align: center;
}

.modal-box img {
  display: block;
  max-width: 90vw;
  max-height: 78vh;
  margin: 0 auto 28px;
  object-fit: contain;
}

.modal-close {
  min-width: 150px;
  height: 46px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 999px;
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(255,255,255,0.15);
}

/* Tablet */
@media (max-width: 960px) {
  .header-inner {
    height: auto;
    padding: 16px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 4px;
    white-space: nowrap;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .problem-grid,
  .feature-grid,
  .price-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Smartphone */
@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .section-inner,
  .hero-inner,
  .contact-inner {
    width: min(100% - 24px, 1120px);
  }

  .logo {
    font-size: 22px;
  }

  .nav {
    font-size: 13px;
  }

  .nav-btn {
    padding: 8px 14px;
  }

  .hero {
    min-height: 560px;
    padding: 56px 0 60px;
  }

  .hero-text {
    padding: 28px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .lead {
    font-size: 15px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .problem-grid,
  .feature-grid,
  .price-grid,
  .works-grid,
  .flow-list {
    grid-template-columns: 1fr;
  }

  .price-card.recommend {
    transform: none;
  }

  .comparison-wrap {
    margin-right: -12px;
    border-radius: 18px 0 0 18px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 13px 14px;
    font-size: 14px;
  }

  .flow-list div {
    min-height: auto;
  }
}



/* Review-friendly additions */
.note-text {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 14px;
  color: var(--blue-dark) !important;
  font-weight: 800;
  background: rgba(18, 104, 243, 0.08);
  border: 1px solid rgba(18, 104, 243, 0.16);
  border-radius: 14px;
}

.price-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.company {
  background: var(--white);
}

.company-box {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.company-box dl {
  margin: 0;
}

.company-box div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.company-box div:first-child {
  padding-top: 0;
}

.company-box div:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.company-box dt {
  color: var(--blue-dark);
  font-weight: 900;
}

.company-box dd {
  margin: 0;
  color: var(--muted);
}

.contact-note {
  max-width: 620px;
  margin: 12px auto 0;
  font-size: 14px;
}

.footer-links{
    display:flex;
    justify-content:center;
    gap:24px;
    margin-bottom:16px;
    flex-wrap:wrap;
}

.footer-links a{
    color:#617083;
    transition:.3s;
}

.footer-links a:hover{
    color:var(--blue);
}

@media (max-width: 640px) {
  .company-box {
    padding: 24px;
  }

  .company-box div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}


/* Legal pages */
.page-hero {
  padding: 76px 0 44px;
  background:
    radial-gradient(circle at 18% 20%, rgba(18, 104, 243, 0.14), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(22, 183, 122, 0.14), transparent 26%),
    linear-gradient(180deg, var(--bg), var(--white));
}

.page-hero-inner {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--blue-dark);
}

.page-hero p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.page-content {
  padding: 54px 0 88px;
}

.page-content-inner {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

.legal-card {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.legal-card h2 {
  margin: 44px 0 14px;
  padding-bottom: 10px;
  font-size: 24px;
  color: var(--blue-dark);
  border-bottom: 1px solid var(--line);
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-card ul {
  margin: 0;
  padding-left: 1.2em;
}

.legal-card li + li {
  margin-top: 6px;
}

.legal-date {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.back-link-wrap {
  margin-top: 28px;
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  color: var(--blue-dark);
  font-weight: 900;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, color 0.2s ease;
}

.back-link:hover {
  color: var(--blue);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .page-hero {
    padding: 52px 0 34px;
  }

  .page-content {
    padding: 34px 0 64px;
  }

  .legal-card {
    padding: 26px 22px;
  }

  .legal-card h2 {
    margin-top: 34px;
    font-size: 21px;
  }
}
