:root {
  --bg: #ececec;
  --white: #ffffff;
  --text: #222;
  --muted: #666;
  --line: #d8d8d8;
  --accent: #18a0d8;
  --accent-dark: #0a77a4;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  /*font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;*/
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
ul { margin: 0; padding-left: 1.2rem; }

.container {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow { width: min(820px, calc(100% - 40px)); }
.center { text-align: center; }

.hero {
  min-height: 60vh;
  position: relative;
  overflow: hidden;
  background-image: url("../images/main.jpg") ;
  background-size: cover;
  background-position: center;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  position: relative;
  z-index: 2;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  padding: 0;
}

.nav a {
  font-size: 0.92rem;
  color: #2b2b2b;
}

.hero-overlay {
  display: grid;
  place-items: center;
  min-height: calc(720px - 80px);
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: center;
  padding: 80px 0 120px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(24,160,216,0.25);
  border-radius: 999px;
  font-size: 0.9rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.3;
  margin: 18px 0 14px;
}

.hero-text {
  max-width: 760px;
  margin: 0 auto 28px;
  color: #45525d;
}

.btn {
  display: inline-block;
  background: #d9d9d9;
  color: #333;
  padding: 12px 28px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn:hover { background: #cfcfcf; }

.section {
  padding: 88px 0;
}

.light { background: #efefef; }
.gray { background: #e6e6e6; }

.section-title {
  text-align: center;
  font-size: 1.9rem;
  margin: 0;
}

.title-bar {
  width: 62px;
  height: 5px;
  background: var(--accent);
  margin: 16px auto 28px;
  border-radius: 999px;
}

.section-intro,
.lead {
  color: var(--muted);
}

.problem-layout {
  display: flex;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  align-items: center;
  margin: 36px 0 28px;
}

.problem-layout img {
  width: 320px;
  height: 200px;
}

.problem-illustration {
  width: 140px;
  height: 140px;
  margin: 0 auto;
  background: #ffdf63;
  display: grid;
  place-items: center;
  font-size: 4rem;
  border: 1px solid #d8c250;
}

.problem-list {
  text-align: left;
  color: #444;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.service-grid h3{
  text-align: center;
}

.service-grid img{
  margin: 10px auto;
  display:block;
  width: 120px;
  height: 120px;
}

.service-card,
.price-card {
  background: var(--white);
  border: 8px solid #dcdcdc;
  padding: 18px 16px;
  min-height: 220px;
}

#meeting {
  text-align: center;
}

#meeting p {
  max-width: 700px;
  margin: 0 auto 24px;
  text-align: left;
  line-height: 1.8;
}

.service-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  background: #dff2fa;
  display: grid;
  place-items: center;
  font-size: 2rem;
}

.service-card h3,
.price-card h3,
.case-item h3,
.achievement-text h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.service-card p {
  margin: 0;
  font-size: 0.92rem;
  color: #555;
}

.case-list {
  display: grid;
  gap: 28px;
}

.case-item {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: center;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.case-item img{
  width: 400px;
  height: 240px;
}

.case-item.reverse > :first-child { order: 2; }
.case-item.reverse > :last-child { order: 1; }

.case-image,
.achievement-image {
  min-height: 190px;
  background: linear-gradient(135deg, #d7e3ec, #f8fafc);
  border: 1px solid #c5d3dd;
  display: grid;
  place-items: center;
  color: #6c7c89;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.diagram-placeholder {
  height: 140px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
}

.diagram-placeholder span {
  width: 34px;
  background: #fff;
  border: 1px solid #cfcfcf;
}

.diagram-placeholder span:nth-child(1) { height: 26px; }
.diagram-placeholder span:nth-child(2) { height: 44px; }
.diagram-placeholder span:nth-child(3) { height: 70px; }
.diagram-placeholder span:nth-child(4) { height: 96px; }
.diagram-placeholder span:nth-child(5) { height: 70px; }
.diagram-placeholder span:nth-child(6) { height: 44px; }
.diagram-placeholder span:nth-child(7) { height: 26px; }

.achievement-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 26px 30px;
  align-items: center;
}

.achievement-grid img{
  width: 400px;
  height: auto;
}


.achievement-text ul { color: #555; }
.gear::before,
.machine::before {
  content: "";
  width: 76%;
  height: 76%;
  border-radius: 24px;
  border: 14px solid rgba(110, 125, 136, 0.35);
}

.machine::before {
  border-radius: 10px;
  width: 82%;
  height: 62%;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 38px;
}

.price-content{
  display: flex;
  justify-content: space-around;
}


.price-card {
  min-height: 240px;
}

.price-card h3{
  text-align: center;
}

.price-card.highlight { border-color: #d4d4d4; }

.price {
  color: #2536ff;
  font-size: 2rem;
  font-weight: 700;
  margin: 18px 0;
  text-align: center;
}

.cta-box {
  text-align: center;
  margin-top: 36px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: none;
  border-bottom: 2px solid #8d8d8d;
  background: transparent;
  padding: 10px 4px;
  font: inherit;
}

.contact-form textarea {
  border: 1px solid #bdbdbd;
  background: #ededed;
  padding: 12px;
  resize: vertical;
}

.submit {
  justify-self: center;
  min-width: 120px;
  margin-top: 10px;
}

.footer {
  background: #dfdfdf;
  padding: 22px 0 40px;
  font-size: 0.85rem;
  color: #555;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
}

.footer-links {
  display: flex;
  gap: 18px;
}

@media (max-width: 900px) {
  .service-grid,
  .pricing-grid,
  .achievement-grid,
  .case-item,
  .problem-layout {
    grid-template-columns: 1fr 1fr;
  }

  .case-item.reverse > :first-child,
  .case-item.reverse > :last-child {
    order: initial;
  }

  .nav {
    flex-direction: column;
    gap: 16px;
  }

  .nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 18px;
  }
}

@media (max-width: 640px) {
  .service-grid,
  .pricing-grid,
  .achievement-grid,
  .case-item,
  .problem-layout,
  .footer-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .problem-layout {
    gap: 20px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-overlay {
    min-height: calc(620px - 80px);
  }

  .service-card,
  .price-card {
    min-height: auto;
  }

  .section {
    padding: 68px 0;
  }
}

/* =========================
   About Us page
========================= */

.sub-header {
  background: #efefef;
}

.company-profile {
  padding-top: 72px;
  padding-bottom: 72px;
}

.profile-table {
  margin-top: 48px;
  border-top: 1px solid #8d8d8d;
}

.profile-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: center;
  padding: 26px 18px;
  border-bottom: 1px solid #8d8d8d;
}

.profile-label {
  font-weight: 700;
  font-size: 1rem;
}

.profile-value {
  font-size: 1rem;
  line-height: 1.6;
}

.representative {
  padding-top: 56px;
  padding-bottom: 100px;
}

.representative-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 36px;
  align-items: center;
  margin-top: 56px;
}

.representative-text h3 {
  font-size: 1.9rem;
  margin: 0 0 16px;
}

.rep-line {
  width: 100%;
  max-width: 460px;
  height: 3px;
  background: #5cb7e8;
  margin-bottom: 18px;
}

.rep-heading {
  margin: 0 0 20px;
  font-size: 1rem;
  font-weight: 400;
}

.career-list {
  display: grid;
  gap: 16px;
}

.career-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  align-items: start;
}

.career-year {
  font-weight: 400;
  white-space: nowrap;
}

.career-desc {
  line-height: 1.65;
}

.representative-image {
  display: flex;
  justify-content: center;
}

.representative-image img {
  width: 100%;
  max-width: 290px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 50% / 42%;
  display: block;
  background: #ddd;
}

.footer-copy {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: #555;
}

@media (max-width: 900px) {
  .representative-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .representative-image {
    order: -1;
  }
}

@media (max-width: 640px) {
  .profile-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px 8px;
  }

  .career-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .representative-text h3 {
    font-size: 1.5rem;
  }

  .representative-image img {
    max-width: 240px;
  }
}

/* =========================
   Thanks page
========================= */

.thanks-hero {
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
}

.thanks-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.2;
  font-weight: 700;
}

.thanks-section {
  min-height: 620px;
}

.thanks-message {
  max-width: 980px;
  margin: 0 auto;
  padding-top: 12px;
}

.thanks-message p {
  margin: 0 0 42px;
  font-size: 1rem;
  line-height: 1.75;
  color: #222;
}

@media (max-width: 640px) {
  .thanks-hero {
    min-height: 200px;
  }

  .thanks-message p {
    margin-bottom: 28px;
    font-size: 0.96rem;
    line-height: 1.8;
  }

  .thanks-section {
    min-height: auto;
  }
}

/* =========================
   Privacy Policy page
========================= */

.page-hero {
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.3;
  font-weight: 700;
}

.policy-section {
  padding-top: 48px;
  padding-bottom: 96px;
}

.policy-container {
  width: min(1120px, calc(100% - 40px));
}

.policy-body {
  max-width: 980px;
  margin: 0 auto;
  color: #222;
}

.policy-body h2 {
  font-size: 1.1rem;
  margin: 36px 0 12px;
  font-weight: 700;
}

.policy-body p {
  margin: 0 0 18px;
  line-height: 1.75;
  font-size: 0.98rem;
}

.policy-body ol {
  margin: 0 0 18px 1.4em;
  padding: 0;
  line-height: 1.75;
}

.policy-body li {
  margin-bottom: 6px;
}

.policy-body ol ol {
  margin-top: 8px;
  margin-bottom: 8px;
}

.policy-contact {
  margin-top: 18px;
}

.policy-contact p {
  margin: 0 0 6px;
}

@media (max-width: 640px) {
  .page-hero {
    min-height: 140px;
  }

  .policy-section {
    padding-top: 36px;
    padding-bottom: 72px;
  }

  .policy-body h2 {
    font-size: 1rem;
    margin-top: 28px;
  }

  .policy-body p,
  .policy-body ol {
    font-size: 0.95rem;
    line-height: 1.8;
  }
}