body {
  margin: 0;
  font-family: "Helvetica Neue", sans-serif;
  padding-top: 70px;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0; 
  box-sizing: border-box;
  width: 100%;
  z-index: 999;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  border-bottom: 1px solid #eee;
}
.logo img {
  height: 40px;
  margin: 5px;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
}
nav a {
  text-decoration: none;
  color: #222;
  font-size: 16px;
}
nav a:hover {
  color: #00a889;
}
/* ハンバーガーメニュー */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;  /* ← これで右寄せされます */
}
.menu-toggle span {
  width: 25px;
  height: 2px;
  background: #333;
}

/* ========================================
   FIRST VIEW
======================================== */

.first-view {
  position: relative;
  min-height: calc(100vh - 70px);
  padding: 54px 5% 60px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 12% 15%,
      rgba(255, 222, 94, 0.2) 0,
      rgba(255, 222, 94, 0) 28%
    ),
    linear-gradient(
      135deg,
      #f7faf0 0%,
      #edf6e8 55%,
      #f7fbf3 100%
    );
}

/* 薄い装飾 */
.first-view::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  left: -180px;
  bottom: -190px;
  border-radius: 50%;
  background: rgba(109, 184, 145, 0.12);
  pointer-events: none;
}

.first-view::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: 2%;
  top: 4%;
  border-radius: 50%;
  background: rgba(255, 207, 54, 0.14);
  pointer-events: none;
}

.first-view-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 42%) minmax(0, 58%);
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
}

/* 左側 */
.first-view-copy {
  position: relative;
  z-index: 2;
  padding-left: clamp(0px, 2vw, 28px);
}

.first-view-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: #4f8d62;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.first-view-label::before {
  content: "";
  display: block;
  width: 38px;
  height: 2px;
  background: #00a889;
}

.first-view-catch {
  margin: 0 0 50px;
  color: #2f3b2e;
  font-size: clamp(26px, 4vw, 50px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.first-view-logo {
  display: block;
  width: min(100%, 470px);
  height: auto;
  margin: 30px 0;
}

.first-view-sub {
  margin: 30px 0 30px;
  color: #4d574b;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.9;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.first-view-note {
  margin: -16px 0 0;
  color: #6f786d;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.first-view-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-width: 230px;
  margin-bottom: 20px;
  padding: 10px 30px;
  box-sizing: border-box;
  border: 1px solid #009a76;
  border-radius: 999px;
  color: #009a76;
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition:
    color 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease;
}

.first-view-button span {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.first-view-button:hover {
  color: #fff;
  background: #009a76;
  transform: translateY(-2px);
}

.first-view-button:hover span {
  transform: translateX(4px);
}

/* 右側画像 */
.first-view-image {
  position: relative;
  width: 100%;
}

.first-view-image::before {
  content: "";
  position: absolute;
  top: 24px;
  right: -24px;
  width: 100%;
  height: 100%;
  border-radius: 42px 12px 42px 12px;
  background: #76b887;
  opacity: 0.22;
}

.first-view-image img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 42px 12px 42px 12px;
  box-shadow: 0 26px 60px rgba(46, 79, 45, 0.18);
}

/* SCROLL */
.first-view-scroll {
  position: absolute;
  z-index: 3;
  left: 34px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #66806b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-decoration: none;
  writing-mode: vertical-rl;
}

.first-view-scroll-line {
  position: relative;
  display: block;
  width: 1px;
  height: 44px;
  overflow: hidden;
  background: rgba(79, 141, 98, 0.25);
}

.first-view-scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 1px;
  height: 100%;
  background: #4f8d62;
  animation: firstViewScroll 2s ease-in-out infinite;
}


  /* リード */
.lead {
  padding: 25px 10% 0 10%;
  background: #fff;
  text-align: left;
}
.lead h3 {
  font-size: 22px;
  line-height: 1.8;
  margin: 30px 0;
  color: #3e3a39;
  font-weight: 500;
}
.lead p {
  font-size: 18px;
  color: #333;
  line-height: 1.8;
  margin-bottom: 40px;
}


  /* フィロソフィー */
.philosophy {
  padding: 30px 10%;
  background: #fff;
  text-align: left;
}
.philosophy h2 {
  font-size: 18px;
  color: #555;
  padding-bottom: 5px;
  font-weight: 500;
  border-bottom: 2px solid #00a889;
  width: fit-content;  /* ← 内容に合わせて幅を調整 */
  text-align: center;  /* ← 自分の中のテキストだけ中央寄せ */
}

.philosophy h3 {
  font-size: 28px;
  margin: 30px 0;
  color: #3e3a39;
  font-weight: bold;
}
.philosophy h4 {
  font-size: 36px;
  margin: 30px 0;
  color: #3e3a39;
  font-weight: bold;
}
.philosophy p {
  font-size: 18px;
  color: #333;
  line-height: 1.8;
  margin-bottom: 40px;
}
.popup-btn {
  background: transparent;
  border: 2px solid #6db27c;
  color: #6db27c;
  font-size: 16px;
  padding: 12px 24px;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s;
}
 .popup-btn:hover {
  background: #6db27c;
  color: #fff;
}

/* ポップアップスタイル */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.popup-content.wide {
  background: white;
  width: 100%;
  max-width: 1200px;
  max-height: 100%;
  padding: 30px;
  border-radius: 10px;
  position: relative;
  overflow-y: auto;
  box-sizing: border-box;
}
.popup-body {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.popup-image {
  flex: 1 1 50%;
  min-width: 280px;
}
.popup-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.popup-text {
  flex: 1 1 45%;
  min-width: 280px;
}
.popup-text h2 {
  font-size: 45px;
  font-weight: 200;
  margin-bottom: 0;
}
.popup-text h3 {
  font-size: 18px;
  border-bottom: 2px solid #7cbf87;
  display: inline-block;
  padding-bottom: 4px;
  margin-bottom: 20px;
}
.popup-text h4 {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 0;
}
.popup-text p {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 28px;
  color: #444;
  cursor: pointer;
}

/* サービス */
.service-section {
  padding: 60px 10%;
  text-align: left;
  background: #fff;
}
.service-section h2 {
  font-size: 52px;
  font-weight: 200;
  margin-bottom: 10px;
}
.service-section p {
  margin-bottom: 40px;
  color: #444;
  font-size: 19px;
}
.service-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 80px;
  margin-bottom: 80px;
  flex-wrap: wrap;
}
.service-text {
  flex: 1;
  min-width: 300px;
}
.service-text h3 {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 10px;
}
.service-text h4 {
  font-size: 22px;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 30px;
}
.service-text p {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
}
.service-image {
  flex: 1;
  min-width: 300px;
}

.service-image img {
  width: 90%;
  border-radius: 12px;
  display: block;
}

/* 会社案内 */
.about-section {
  background: #f6f6f6;
  padding: 80px 10%;
}
.about-box {
  background: white;
  border-radius: 32px;
  padding: 40px 40px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.about-box h2 {
  font-size: 42px;
  text-align: center;
  font-weight: 200;
  margin-bottom: 10px;
}
.about-box .sub {
  display: block; /* or inline-block */
  font-size: 20px;
  color: #555;
  border-bottom: 2px solid #00a889;
  padding-bottom: 5px;
  margin: 0 auto 30px;  /* ← 自身を中央寄せに */
  width: fit-content;  /* ← 内容に合わせて幅を調整 */
  text-align: center;  /* ← 自分の中のテキストだけ中央寄せ */
}
.about-box table {
  width: 100%;
  border-collapse: collapse;
  font-size: 18px;
  line-height: 1.8;
}
.about-box th,
.about-box td {
  padding: 16px 8px;
  vertical-align: top;
  border-bottom: 1px solid #ddd;
}
.about-box th {
  width: 150px;
  font-weight: 500;
  text-align: left;
  color: #222;
}
.map-button {
  display: inline-block;
  margin-top: 8px;
  margin-left: 20px;
  padding: 5px 20px;
  font-size: 16px;
  color: #00a889;
  border: 1px solid #00a889;
  border-radius: 20px;
  text-decoration: none;
  background: #fdfdfd;
  transition: 0.3s;
}
.map-button:hover {
  background: #00a889;
  color: white;
}
/* --- グループ案内 --- */
.group-info {
  background: #fff;
  padding: 60px 10%;
}
.group-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;
  flex-wrap: wrap;
}
.group-logo img {
  max-width: 400px;
  margin-bottom: 10px;
}
.group-text p {
  font-size: 20px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.view-more {
  display: inline-block;
  border: 1px solid #4d5357;
  color: #4d5357;
  padding: 8px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 15px;
  transition: 0.3s;
}
.view-more:hover {
  background: #4d5357;
  color: #fff;
}



/* --- お問合せ --- */
.contact-section {
  padding: 80px 10%;
  background: #fff;
}
.contact-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.contact-title {
  flex: 1;
  min-width: 200px;
}
.contact-title h2 {
  font-size: 42px;
  font-weight: 200;
  margin-bottom: 8px;
}
.contact-sub {
  font-size: 20px;
  color: #444;
}

form {
  max-width: 600px;
  margin: 0 auto;
  font-family: "Helvetica Neue", sans-serif;
  color: #333;
}

.label {
  font-weight: bold;
  margin: 20px 0 5px;
  font-size: 16px;
}

.required-badge {
  display: inline-block;
  background: #dc143c;
  color: white;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 5px;
  margin-left: 8px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  margin-top: 5px;
}

textarea {
  height: 120px;
  resize: vertical;
}

.checkbox {
  margin-top: 10px;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  transform: scale(1.2); /* 拡大 */
}

/* チェックボックスラベル */
.checkbox label {
  font-size: 16px;
  display: flex;
  align-items: center;
  margin-bottom: 2px; /* ←ここを調整 */
}

#button {
  width: 100%;
  background: #00a889;
  color: white;
  padding: 14px;
  margin-top: 20px;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
  box-sizing: border-box;
}

#button:hover {
  background: #015e48;
}
p {
  font-size: 14px;
}

/* --- フッター --- */
.site-footer {
  background: #f2f2f2;
  padding: 40px 10% 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.footer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.logo-and-badge {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.footer-logo-img {
  height: 60px;
  width: auto;
}
.footer-badge-img {
  height: 100px; /* 縦長バッジ画像の高さ */
  width: auto;
  margin-left: 10px;
}
.footer-company {
  margin-top: -10px;
  font-size: 16px;
  color: #333;
}

.footer-nav {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 600px;
  font-size: 16px;
}
.footer-nav a {
  color: #333;
  text-decoration: none;
}
.footer-nav a:hover {
  text-decoration: underline;
}
.footer-bottom {
  background: #00a889;
  color: white;
  text-align: center;
  padding: 12px 0;
  margin-top: 30px;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
  font-size: 14px;
}
/* ロゴスプラッシュ全画面 */
#splash {
  position: fixed;
  width: 80vw;
  height: 80vh;
  background: white;
  z-index: 9999;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 1s ease;
}
.splash-logo img {
  width: 400px;
  height: auto;
}

.logo-ticker {
  overflow: hidden;
  white-space: nowrap;
  width: 100vw;
  background: #fff; /* 任意の背景 */
  padding: 10px 0 0 0;
  box-sizing: border-box;
}

.logo-track {
  display: inline-block;
  white-space: nowrap;
  animation: scrollLogo 40s linear infinite;
}

.logo-track img {
  height: 100px;   /* ロゴサイズ */
  margin-right: 50px;
  vertical-align: middle;
}

@keyframes scrollLogo {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.br-pc {
  display: block;
}
.br-sp {
  display: none;
}

@keyframes firstViewScroll {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(200%);
  }
}


/* スマホ用 */
@media (max-width: 768px) {
.logo img {
  height: 30px;
  margin: 5px 0 5px -15px;
}

header {
  border-bottom: 0;
}
nav ul {
  position: absolute;
  top: 50px;
  right: 0;
  background: white;
  flex-direction: column;
  width: 30%;
  display: none;
  padding: 15px;
}
nav ul.active {
  display: flex;
}
.menu-toggle {
  display: flex;
}
/* ========================================
   FIRST VIEW：スマホ
======================================== */

.first-view {
  min-height: auto;
  height: auto;
  padding: 42px 20px 55px;
  display: block;
  background:
    radial-gradient(
      circle at 90% 8%,
      rgba(255, 222, 94, 0.22) 0,
      rgba(255, 222, 94, 0) 24%
    ),
    linear-gradient(
      135deg,
      #f7faf0 0%,
      #edf6e8 100%
    );
}

.first-view-inner {
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.first-view-copy {
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.first-view-label {
  margin: 0 0 18px;
  font-size: 11px;
}

.first-view-label::before {
  width: 26px;
}

.first-view-catch {
  margin: 0 0 24px;
  font-size: clamp(26px, 4vw, 50px);
  line-height: 1.6;
}

.first-view-logo {
  width: min(100%, 330px);
  max-width: 330px;
  max-height: none;
  height: auto;
  margin: 0 0 22px;
}

.first-view-sub {
  margin: 0 0 26px;
  font-size: 18px;
  line-height: 1.8;
}
.first-view-note {
  margin: -16px 0 0;
  color: #6f786d;
  font-size: 14px;
  line-height: 1.8;
  font-weight: 400;
  letter-spacing: 0.03em;
}
.first-view-button {
  min-width: 220px;
  font-size: 14px;
  padding: 10px 20px;
  margin: -10px 0 20px 0;
  gap: 10px;
}

.first-view-image {
  width: 100%;
  min-width: 0;
}

.first-view-image::before {
  top: 10px;
  right: -8px;
  border-radius: 24px 8px 24px 8px;
}

.first-view-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 24px 8px 24px 8px;
  box-shadow: 0 16px 35px rgba(46, 79, 45, 0.16);
}

.first-view-scroll {
  display: none;
}
  /* リード */
.lead {
  padding: 20px 5% 0 5%;
  background: #fff;
  text-align: left;
}
.lead h3 {
  font-size: 18px;
}
.lead p {
  font-size: 16px;
}

/* フィロソフィー */
.philosophy {
  padding: 10px 5%;
}
.philosophy h2 {
  font-size: 16px;
}
.philosophy h3 {
  font-size: 22px;
}
.philosophy h4 {
  font-size: 22px;
}
.philosophy p {
  font-size: 14px;
}


/* サービス */
.service-section {
  padding: 30px 5%;
}
.service-section h2 {
  font-size: 35px;
}
.service-section p {
  font-size: 14px;
}
.service-block {
  gap: 0;
  margin-bottom: 20px;
}
.service-text h3 {
  font-size: 25px;
}
.service-text h4 {
  font-size: 18px;
}
.service-text p {
  font-size: 14px;
}
.service-image img {
  width: 100%;
}

/* 会社案内 */
.about-section {
  padding: 30px 5%;
}
.about-box {
  padding: 5px 20px 50px 20px;
}
.about-box h2 {
  font-size: 32px;
}
.about-box table {
  font-size: 15px;
}
.about-box th {
  width: 80px;
}

/* --- グループ案内 --- */
.group-container {
  gap: 10px;
}
.group-logo img {
  max-width: 330px;
}
.group-text p {
  font-size: 16px;
}

/* --- Contact セクション --- */
.contact-section {
  padding: 20px 5%;
}
.contact-title h2 {
  font-size: 40px;
}
  .splash-logo img {
    width: 400px;
    height: auto;
  }
.logo-track img {
  height: 50px;   /* ロゴサイズ */
}

.br-pc{
  display: none;
}
.br-sp{
  display: block;
}
}