@charset "UTF-8";

:root {
  --green: #69bd45;
  --green-dark: #3f8f2e;
  --navy: #14233a;
  --ink: #1f2937;
  --muted: #667085;
  --line: #e5e7eb;
  --bg: #f6f8fb;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(20, 35, 58, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
  background: var(--white);
}

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

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

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

.narrow {
  max-width: 850px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  margin: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo img {
  width: 154px;
  image-rendering: auto;
}

.global-nav {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0;
  margin-left: auto;
  color: var(--navy);
  font-weight: 800;
}

.global-nav a {
  position: relative;
  min-width: 132px;
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  border-left: 1px solid rgba(229, 231, 235, 0.75);
  transition: background 0.2s ease, color 0.2s ease;
}

.global-nav a:first-child {
  border-left: 0;
}

.global-nav a:hover {
  background: #f7faf6;
  color: var(--green-dark);
}

.global-nav a.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
}

.global-nav a.is-active:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--green-dark), #2f7d22);
}

.global-nav a::after {
  display: none;
}

.nav-ja {
  display: block;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.nav-en {
  display: block;
  margin-top: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.global-nav .nav-contact {
  min-width: 150px;
  color: var(--navy);
  background: transparent;
  border-left: 1px solid rgba(229, 231, 235, 0.75);
  border-right: 1px solid rgba(229, 231, 235, 0.75);
}

.global-nav .nav-contact:hover {
  background: #f7faf6;
  color: var(--green-dark);
}

.global-nav .nav-contact.is-active,
.global-nav .nav-contact.is-active:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  min-height: max(700px, calc(100vh - 86px));
  scroll-margin-top: 112px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #eaf4fb;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.70) 34%, rgba(255,255,255,0.14) 62%, rgba(255,255,255,0.00) 100%),
    url("../images/main-visual.png");
  background-size: cover;
  background-position: center center;
}

.hero-bg::before,
.hero-bg::after {
  display: none;
}

.hero-inner {
  position: relative;
  padding: 96px 0;
}

.hero-label,
.section-label {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero h2 {
  max-width: none;
  margin: 0;
  color: var(--navy);
  font-size: clamp(22px, 4.6vw, 58px);
  line-height: 1.35;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero-text {
  max-width: 680px;
  margin: 28px 0 0;
  color: #475467;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

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

.btn.primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 12px 26px rgba(105, 189, 69, 0.28);
}

.btn.secondary {
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
}

.section {
  padding: 104px 0;
  scroll-margin-top: 112px;
}

.intro {
  background: #fff;
}


.about-section {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 62%, #f7fbf4 100%);
}

.about-section::before {
  display: none;
}

.about-section .container {
  position: relative;
  z-index: 1;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 500px;
  gap: 72px;
  align-items: center;
}

.about-main {
  position: relative;
  max-width: 760px;
  min-height: 560px;
  padding-bottom: 300px;
}

.intro h2,
.section-head h2,
.company-title h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.45;
}

.about-main p:not(.section-label) {
  position: relative;
  z-index: 2;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.about-visual {
  position: absolute;
  left: -10px;
  bottom: -16px;
  z-index: 0;
  width: min(720px, 100%);
  margin: 0;
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
  pointer-events: none;
}

.about-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.18) 42%, rgba(255,255,255,0.92) 88%, #fff 100%);
}

.about-visual img {
  display: block;
  width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  opacity: 0.95;
}

.about-points {
  display: grid;
  gap: 22px;
}

.about-points article {
  display: grid;
  grid-template-columns: 82px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 24px;
  align-items: center;
  position: relative;
  min-height: 148px;
  padding: 32px 34px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(20, 35, 58, 0.07);
}

.about-icon {
  grid-column: 1;
  grid-row: 1 / 4;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  background: #eff8ec;
  border-radius: 16px;
}

.about-icon img {
  width: 42px;
  height: 42px;
}

.about-points span {
  grid-column: 2;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.about-points h3 {
  grid-column: 2;
  margin: 10px 0 10px;
  color: var(--navy);
  font-size: 22px;
}

.about-points p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.service-section {
  background: #fff;
}

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

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 40px;
}

.section-head > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

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

.service-section .section-head {
  display: block;
  margin-bottom: 42px;
  text-align: center;
}

.service-section .section-head > p {
  max-width: 680px;
  margin: 18px auto 0;
}

.service-section .section-label {
  margin-bottom: 6px;
}

.service-section .section-label + h2::after {
  content: "BUSINESS";
  display: block;
  width: fit-content;
  margin: 8px auto 0;
  padding-bottom: 4px;
  color: var(--green-dark);
  border-bottom: 1px solid var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.service-card {
  min-height: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #dfe4ea;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(20, 35, 58, 0.09);
}

.image-card figure {
  margin: 0;
  aspect-ratio: 16 / 7.2;
  overflow: hidden;
  background: #eef2f6;
}

.image-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-body {
  min-height: 190px;
  padding: 24px 24px 28px;
  text-align: center;
}

.card-number {
  display: block;
  margin: 0 0 10px;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.service-card h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.45;
}

.service-card p {
  margin: 0;
  color: #465468;
  font-size: 15px;
  line-height: 1.8;
  text-align: left;
}

.company-section {
  background: #fff;
}

.company-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 52px;
  align-items: start;
}

.company-title p:last-child {
  margin: 20px 0 0;
  color: var(--muted);
}

.company-table-wrap {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(20, 35, 58, 0.06);
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

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

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: 0;
}

.company-table th {
  width: 190px;
  color: var(--navy);
  background: #f9fafb;
  font-weight: 800;
}

.company-table td {
  color: #344054;
}

.contact-head {
  align-items: flex-start;
}

/* contact.php の見た目をサイト側に合わせる */
.contact-section .contact-form-box {
  max-width: 860px;
  border: 0;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.contact-section .contact-heading {
  display: none;
}

.contact-section .contact-actions button {
  background: var(--green);
  box-shadow: 0 12px 26px rgba(105, 189, 69, 0.28);
}

.site-footer {
  padding: 34px 0;
  color: #d6dee9;
  background: var(--navy);
}

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

.footer-logo {
  display: inline-flex;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.footer-logo img {
  width: 140px;
}

.footer-inner p {
  margin: 0;
  font-size: 13px;
}

@media (max-width: 980px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .company-layout,
  .about-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .about-main {
    max-width: none;
    min-height: 500px;
    padding-bottom: 260px;
  }

  .about-points {
    max-width: 640px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1200px);
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    min-height: 72px;
    padding: 12px 0;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .logo img {
    width: 132px;
  }

  .menu-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 50px;
    margin-left: auto;
    color: var(--navy);
    cursor: pointer;
    user-select: none;
  }

  .menu-lines {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 22px;
  }

  .menu-lines span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--navy);
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .menu-text {
    margin-top: 2px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
  }

  .global-nav {
    display: none;
    order: 3;
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    gap: 0;
    flex-direction: column;
    justify-content: flex-start;
    font-size: 15px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(20, 35, 58, 0.12);
  }

  .global-nav a {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
  }

  .global-nav a:hover {
    background: #f3f8f0;
  }

  .global-nav a.is-active,
  .global-nav a.is-active:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
  }

  .global-nav a::after {
    display: none;
  }

  .global-nav .nav-contact {
    min-width: 0;
    color: var(--navy);
    background: #fff;
  }

  .global-nav .nav-contact:hover {
    color: var(--navy);
    background: #f3f8f0;
  }

  .global-nav .nav-contact.is-active,
  .global-nav .nav-contact.is-active:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
  }

  .nav-ja {
    font-size: 15px;
  }

  .nav-en {
    margin-top: 2px;
    font-size: 10px;
  }

  .nav-toggle:checked ~ .global-nav {
    display: flex;
  }

  .nav-toggle:checked + .menu-button .menu-lines span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked + .menu-button .menu-lines span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .menu-button .menu-lines span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    min-height: 640px;
    scroll-margin-top: 92px;
  }

  .hero-inner {
    padding: 70px 0;
  }

  .hero h2 {
    font-size: clamp(21px, 6vw, 34px);
  }

  .hero-text {
    font-size: 16px;
  }

  .btn {
    width: 100%;
  }

  html {
    scroll-padding-top: 92px;
  }

  .section {
    padding: 72px 0;
    scroll-margin-top: 92px;
  }

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

  .about-main {
    min-height: auto;
    padding-bottom: 230px;
  }

  .about-visual {
    left: -8px;
    bottom: -12px;
    width: 100%;
  }

  .about-points article {
    grid-template-columns: 68px 1fr;
    column-gap: 18px;
    min-height: 132px;
    padding: 26px 22px;
  }

  .about-icon {
    width: 54px;
    height: 54px;
  }

  .about-icon img {
    width: 34px;
    height: 34px;
  }

  .section-head {
    display: block;
  }

  .section-head > p {
    margin-top: 18px;
  }

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

  .service-card-body {
    min-height: auto;
    padding: 22px 20px 24px;
  }

  .image-card figure {
    aspect-ratio: 16 / 7.8;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 15px 18px;
  }

  .company-table th {
    border-bottom: 0;
    padding-bottom: 6px;
  }

  .company-table td {
    padding-top: 6px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ========================================================
   Final adjustment: ABOUT section
   - 左側の写真を背景ではなく通常画像として配置
   - 右側カードは横長・余白多め
   - ヒーロー見出しは折り返し防止
======================================================== */
.hero-nowrap {
  display: inline-block;
  white-space: nowrap;
}

.about-section {
  min-height: auto;
  background:
    linear-gradient(90deg, #ffffff 0%, #ffffff 63%, #f7fbf4 100%);
}

.about-layout {
  grid-template-columns: minmax(0, 1fr) 500px;
  gap: 74px;
  align-items: center;
}

.about-main {
  max-width: 760px;
  min-height: 0;
  padding-bottom: 0;
}

.about-main p:not(.section-label) {
  max-width: 720px;
}

.about-visual {
  position: static;
  width: 100%;
  margin: 44px 0 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 18px 46px rgba(20, 35, 58, 0.08);
  pointer-events: auto;
  background: #f3f5f7;
}

.about-visual::after {
  display: none;
}

.about-visual img {
  display: block;
  width: 100%;
  height: 310px;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
}

.about-points {
  gap: 24px;
}

.about-points article {
  min-height: 178px;
  padding: 34px 36px;
  grid-template-columns: 86px 1fr;
  column-gap: 26px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(20, 35, 58, 0.08);
}

.about-icon {
  width: 66px;
  height: 66px;
  border-radius: 17px;
}

.about-icon img {
  width: 43px;
  height: 43px;
}

.about-points span {
  font-size: 14px;
}

.about-points h3 {
  font-size: 22px;
  margin: 8px 0 10px;
}

.about-points p {
  font-size: 16px;
}

@media (max-width: 980px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-main {
    max-width: none;
    min-height: 0;
    padding-bottom: 0;
  }

  .about-visual img {
    height: 300px;
  }

  .about-points {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .hero h2 {
    font-size: clamp(20px, 5.4vw, 34px);
  }

  .about-main {
    min-height: 0;
    padding-bottom: 0;
  }

  .about-visual {
    margin-top: 32px;
  }

  .about-visual img {
    height: 220px;
  }

  .about-points article {
    grid-template-columns: 64px 1fr;
    min-height: 142px;
    padding: 24px 20px;
    column-gap: 16px;
  }

  .about-icon {
    width: 52px;
    height: 52px;
  }

  .about-icon img {
    width: 33px;
    height: 33px;
  }

  .about-points h3 {
    font-size: 19px;
  }

  .about-points p {
    font-size: 14px;
  }
}


/* ========================================================
   Contact completion / error pages
======================================================== */
.thanks-page,
.form-message-page {
  min-height: 62vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #f7fbf4 0%, #ffffff 58%, #eef6ea 100%);
}

.thanks-box,
.form-message-box {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 44px;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(112, 166, 85, 0.25);
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(20, 35, 58, 0.08);
}

.thanks-box h2,
.form-message-box h1 {
  margin: 12px 0 18px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.35;
  color: var(--text);
}

.thanks-box p,
.form-message-box li {
  color: var(--text-light);
  line-height: 1.9;
}

.thanks-box .btn {
  margin-top: 28px;
}

.form-message-box ul {
  display: inline-block;
  margin: 18px auto 0;
  padding-left: 1.4em;
  text-align: left;
}

.form-message-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.form-message-actions button,
.form-message-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--green-dark);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.form-message-actions a {
  background: #111827;
}

@media (max-width: 640px) {
  .thanks-page,
  .form-message-page {
    padding: 110px 18px 60px;
  }

  .thanks-box,
  .form-message-box {
    padding: 36px 22px;
  }

  .form-message-actions button,
  .form-message-actions a {
    width: 100%;
  }
}



/* ========================================================
   Contact Form Layout Fix
======================================================== */

.contact-form-box {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
}

.contact-heading {
  margin-bottom: 32px;
}

.contact-heading h3 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.4;
  color: var(--text);
}

.contact-heading p {
  margin: 0;
  color: var(--text-light);
  line-height: 1.9;
}

.contact-note {
  margin-top: 6px !important;
  font-size: 14px;
}

.contact-form {
  width: 100%;
}

.contact-field {
  margin-top: 28px;
}

.contact-field:first-child {
  margin-top: 0;
}

.contact-field label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
}

.contact-field label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid #d5dbe3;
  border-radius: 12px;
  background: #ffffff;
  font-size: 16px;
  line-height: 1.7;
  color: #111827;
  box-sizing: border-box;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-field textarea {
  min-height: 220px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--green-dark);
  box-shadow: 0 0 0 4px rgba(112, 166, 85, 0.12);
}

.contact-actions {
  margin-top: 36px;
  text-align: center;
}

.contact-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 58px;
  padding: 0 36px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #78c443 0%, #5ba833 100%);
  box-shadow: 0 12px 30px rgba(112, 166, 85, 0.28);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}

.contact-actions button:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

.contact-hidden {
  position: absolute;
  left: -9999px;
}

@media (max-width: 768px) {
  .contact-form-box {
    padding: 34px 22px;
    border-radius: 18px;
  }

  .contact-heading h3 {
    font-size: 28px;
  }

  .contact-field label {
    font-size: 16px;
  }

  .contact-actions button {
    width: 100%;
  }
}


/* ========================================================
   Anchor Position / Business Label Fix
======================================================== */

/* 固定ヘッダー分を考慮して、メニュークリック時の停止位置を調整 */
#about,
#service,
#company,
#contact {
  scroll-margin-top: 96px;
}

/* 事業内容見出し下の重複 BUSINESS を非表示 */
.service-section .section-label + h2::after {
  content: none !important;
  display: none !important;
}

@media (max-width: 768px) {
  #about,
  #service,
  #company,
  #contact {
    scroll-margin-top: 82px;
  }
}


/* ========================================================
   Unified Message Page
======================================================== */
.message-page {
  min-height: 62vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #f7fbf4 0%, #ffffff 58%, #eef6ea 100%);
}

.message-box {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 44px;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(112, 166, 85, 0.25);
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(20, 35, 58, 0.08);
}

.message-box h2 {
  margin: 12px 0 18px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.35;
  color: var(--text);
}

.message-list {
  margin-top: 20px;
}

.message-list p {
  margin: 0 0 10px;
  color: var(--text-light);
  line-height: 1.9;
}

.message-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.message-actions .btn {
  border: 0;
  cursor: pointer;
}

@media (max-width: 640px) {
  .message-page {
    padding: 110px 18px 60px;
  }

  .message-box {
    padding: 36px 22px;
  }

  .message-actions .btn {
    width: 100%;
  }
}





/* ========================================================
   About section heading final adjustment
======================================================== */
.about-main h2 {
  margin-bottom: 10px;
}

.about-subtitle {
  margin: 0 0 30px;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.65;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.service-section .section-label + h2::after {
  content: none !important;
  display: none !important;
}

@media (max-width: 760px) {
  .about-subtitle {
    font-size: 19px;
    margin-bottom: 24px;
  }
}


/* Contact form error display */
.contact-error-box {
  margin: 0 0 28px;
  padding: 18px 20px;
  border: 1px solid #f2b8b5;
  border-radius: 14px;
  background: #fff5f5;
  color: #7f1d1d;
}

.contact-error-title {
  margin: 0 0 8px;
  font-weight: 700;
  color: #7f1d1d;
}

.contact-error-box ul {
  margin: 0;
  padding-left: 1.3em;
}

.contact-error-box li {
  margin: 4px 0;
}


/* Contact error anchor adjustment */
#contact-error {
  scroll-margin-top: 110px;
}
