:root {
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic Pro", Meiryo, sans-serif;
  color: #161616;
  line-height: 1.8;
  background: #ffffff;
  text-rendering: optimizeLegibility;
}
a {
  color: #ff8c42;
  text-decoration: none;
}
a:hover {
  color: #d56a1d;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(224, 224, 224, 0.9);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 24px;
}
.logo img {
  max-height: 60px;
  filter: none;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.company-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  min-height: 60px;
}
.company-name {
  margin: 0;
  font-family: "HGPゴシックM", "HGP Gothic M", "Yu Gothic", "Hiragino Kaku Gothic Pro", Meiryo, sans-serif;
  line-height: 1.25;
  color: #1d1d1d;
  font-weight: 800;
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  letter-spacing: 0.02em;
}
.company-former-name {
  margin: 0;
  font-family: "HGPゴシックM", "HGP Gothic M", "Yu Gothic", "Hiragino Kaku Gothic Pro", Meiryo, sans-serif;
  line-height: 1.35;
  color: #4a4a4a;
  font-weight: 600;
  font-size: clamp(0.82rem, 1.65vw, 0.98rem);
  letter-spacing: 0.02em;
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list li {
  font-weight: 700;
  font-size: 0.98rem;
}
.nav-list a {
  display: block;
  padding: 8px 0;
  color: #1d1d1d;
}
.nav-list a:hover {
  color: #ff8c42;
}
.hero {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}
.hero-visual {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 420px;
  background: #ffffff;
}
.hero-main-img {
  width: min(100%, 1080px);
  max-width: 100%;
  margin-inline: auto;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(224, 224, 224, 0.9);
  transform: scale(1.15);
  transform-origin: center;
  opacity: 0;
  animation: heroZoomOut 3s ease-out 0.6s forwards;
}
.hero-logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  z-index: 2;
  animation: logoFade 3s ease forwards;
}
.hero-logo img {
  max-width: min(280px, 80%);
  width: 100%;
  transform: scale(0.3);
  opacity: 0;
  animation: logoZoomIn 2s ease-out 0.2s forwards;
}
@keyframes heroZoomOut {
  from { transform: scale(1.35); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes logoZoomIn {
  from { transform: scale(0.3); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes logoFade {
  0%, 90% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}
.page-hero,
.company-section,
.form-section,
.section {
  background: #ffffff;
  padding: 60px 0;
  margin-top: 24px;
  border: 1px solid rgba(224, 224, 224, 0.95);
  border-radius: 28px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.08);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
  padding: 60px 0;
}
.hero-text {
  width: min(100%, 920px);
  margin-inline: auto;
  padding: 0 10px;
  text-align: center;
  overflow-wrap: break-word;
  word-break: break-word;
}
.hero-text p {
  text-align: left;
  overflow-wrap: break-word;
}
.page-title {
  margin: 0 0 26px;
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  line-height: 1.12;
  color: #121212;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hero-text h1 {
  margin: 0 0 26px;
  line-height: 1.12;
  color: #121212;
  letter-spacing: -0.03em;
  font-weight: 800;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  font-size: clamp(1.2rem, 4vw, 2.8rem);
}
.hero-text p,
.page-hero p,
.company-section p,
.form-section p {
  margin: 0 0 22px;
  color: #3d3d3d;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  line-height: 1.85;
  font-weight: 500;
}
.hero-text .lead,
.page-hero .lead {
  font-size: clamp(1.12rem, 1.1vw, 1.3rem);
  font-weight: 700;
  color: #1f5a72;
  line-height: 1.6;
}
.hero-secret-link {
  color: inherit;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-decoration: none;
  cursor: text;
}
.hero-secret-link:hover {
  color: inherit;
  text-decoration: none;
}
.hero-secret-link:focus {
  outline: none;
}
.hero-secret-link:focus-visible {
  outline: 2px solid rgba(255, 140, 66, 0.55);
  outline-offset: 2px;
  border-radius: 2px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hero-secret-dialog {
  position: relative;
  border: none;
  padding: 12px 12px 16px;
  border-radius: 14px;
  background: #1a1a1a;
  max-width: min(96vw, 1200px);
}
.hero-secret-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
}
.hero-secret-dialog img {
  display: block;
  max-width: min(90vw, 1100px);
  max-height: min(86vh, 900px);
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 8px;
}
.hero-secret-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.hero-secret-close:hover {
  background: rgba(255, 255, 255, 0.22);
}
.page-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1080px, 80%);
  margin: 0 auto;
  padding: 28px 0;
  min-height: 140px;
  overflow: hidden;
}
.page-hero .wrap {
  width: 100%;
  text-align: center;
}
.page-hero .page-title,
.page-hero .lead {
  opacity: 0;
  transform: translateY(18px);
  animation: heroTextIn 1.6s ease-out forwards;
}
.page-hero .page-title {
  animation-delay: 0.4s;
}
.page-hero .lead {
  animation-delay: 0.9s;
}
@keyframes heroTextIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.news-section .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.news-section {
  padding: 8px 0 20px;
}
.news-details {
  width: min(100%, 720px);
  margin-inline: auto;
  text-align: center;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(59, 130, 246, 0.4);
  box-shadow: 0 14px 42px rgba(37, 99, 235, 0.16);
  background: #fff;
}
.news-summary {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  padding: 18px 24px;
  margin: 0;
  background: linear-gradient(135deg, #4f8fd8 0%, #2563ae 55%, #1e4d8c 100%);
  color: #f8fafc;
  font-weight: 800;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.news-summary::-webkit-details-marker {
  display: none;
}
.news-summary::marker {
  content: "";
}
.news-summary:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.news-summary:focus {
  outline: none;
}
.news-summary:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.95);
  outline-offset: 2px;
}
.news-details[open] .news-summary {
  transform: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.news-summary-title::after {
  content: " ▼";
  font-size: 0.72em;
  opacity: 0.95;
  display: inline;
}
.news-details[open] .news-summary-title::after {
  content: " ▲";
}
.news-summary-hint {
  display: inline-block;
  padding: 5px 12px;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #eff6ff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.38);
}
.news-content {
  padding: 20px 22px 24px;
  text-align: center;
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 48%);
  border-top: 1px solid rgba(147, 197, 253, 0.45);
}
.news-content p {
  margin: 0;
  color: #333;
  line-height: 1.75;
}
.section-title {
  margin: 30px 0 12px;
  font-size: 2rem;
  color: #161616;
  text-align: center;
}
.service-list {
  display: grid;
  gap: 26px;
  justify-content: center;
}
.service-item {
  display: grid;
  gap: 18px;
  background: #fafafa;
  border: 1px solid rgba(224, 224, 224, 0.9);
  padding: 28px 30px;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}
.service-item {
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 1fr);
  align-items: start;
  column-gap: 20px;
}
.service-info {
  display: grid;
  gap: 10px;
}
.service-item h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  color: #101010;
  letter-spacing: -0.03em;
}
.service-item p {
  margin: 0;
  color: #3f3f3f;
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  line-height: 1.8;
}
.service-detail {
  margin: 0;
  color: #161616;
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  line-height: 1.9;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.service-note {
  display: block;
  margin: 8px 0 0 42px;
  width: calc(100% - 42px);
  color: #5f6f7f;
  font-size: 1rem;
  line-height: 1.9;
  font-style: italic;
}
.service-media img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(224, 224, 224, 0.9);
  object-fit: cover;
}
.service-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  /* 見出し（h2）直下あたりまで下げてから画像を並べる */
  margin-top: clamp(1rem, 2.8vmin, 1.85rem);
}
@media (min-width: 861px) {
  .service-media-grid {
    margin-top: clamp(2.35rem, calc(1.05em + 2.2vmin), 3.4rem);
  }
}
.service-media-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}
@media (max-width: 1200px) {
  .hero-main-img {
    width: 100%;
    transform: scale(1);
  }
  .hero-visual {
    min-height: 320px;
  }
  .hero-grid {
    padding: 40px 0;
  }
}

@media (max-width: 860px) {
  .service-item {
    grid-template-columns: 1fr;
    width: 100%;
    padding: 24px;
  }
}
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
}
.info-table th,
.info-table td {
  padding: 14px 16px;
  border: 1px solid rgba(224, 224, 224, 0.9);
  vertical-align: top;
}
.info-table th {
  width: 220px;
  background: rgba(255, 140, 66, 0.12);
  text-align: left;
  font-weight: 700;
  color: #b45b1d;
}
.info-table td {
  color: #333;
}
.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.info-list li {
  padding-left: 1.2em;
  text-indent: -0.9em;
  color: #444;
}
.qualification-list {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px 32px;
}
@media (max-width: 860px) {
  .qualification-list {
    grid-template-columns: 1fr;
  }
}
.info-list li::before {
  content: "・";
  margin-right: 8px;
  color: #ff8c42;
}
.contact-form {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}
.form-field {
  display: grid;
  gap: 8px;
}
.form-field label {
  font-weight: 700;
  color: #161616;
}
.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(224, 224, 224, 0.95);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 1rem;
  background: #ffffff;
  color: #161616;
}
.form-field textarea {
  min-height: 140px;
  resize: vertical;
}
.form-actions {
  display: flex;
  justify-content: flex-start;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff8c42 0%, #ff5a00 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(255, 140, 66, 0.3);
}
.footer {
  background: #f8f8f8;
  border-top: 1px solid rgba(224, 224, 224, 0.95);
  padding: 32px 0;
  margin-top: 32px;
  text-align: center;
}
.footer-inner {
  display: block;
  text-align: center;
}
.footer .copyright {
  color: #999;
  font-size: 0.95rem;
  margin: 0;
}
@media (max-width: 860px) {
  .hero-grid,
  .service-list {
    grid-template-columns: 1fr;
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .logo {
    flex-wrap: wrap;
  }
  .hero-visual {
    min-height: 240px;
  }
  .hero-grid {
    padding: 20px 0;
    gap: 24px;
  }
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }
  .info-table th {
    border-right: none;
  }
  .info-table td {
    border-left: none;
  }
}
