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: #42B878;
}
/* ハンバーガーメニュー */
.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 {
  display: flex;
  height: 68vh;
  background: url('img/bg-image.gif') no-repeat center center / cover;
  position: relative;
}
.first-view-left {
  width: 70%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;;
  padding: 10%;
  text-align: left;
}
.first-view-left img {
  max-width:450px;
  margin-bottom: 50px;
}
.first-view-left p {
  font-size: 33px;
  color: #3e3a39;
  line-height: 1.6;
  font-weight: 700;
  margin-bottom: 35px;
}
.first-view-right {
  width: 30%;
}

  /* リード */
.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: 20px;
  color: #555;
  padding-bottom: 5px;
  font-weight: 300;
  border-bottom: 2px solid #7cbf87;
  width: fit-content;  /* ← 内容に合わせて幅を調整 */
  text-align: center;  /* ← 自分の中のテキストだけ中央寄せ */
}

.philosophy h3 {
  font-size: 35px;
  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: 28px;
  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 #7cbf87;
  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: #7cbf87;
  border: 1px solid #7cbf87;
  border-radius: 20px;
  text-decoration: none;
  background: #fdfdfd;
  transition: 0.3s;
}
.map-button:hover {
  background: #7cbf87;
  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;
}
.group-text p {
  font-size: 20px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.view-more {
  display: inline-block;
  border: 2px solid #7cbf87;
  color: #7cbf87;
  padding: 8px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 16px;
  transition: 0.3s;
}
.view-more:hover {
  background: #7cbf87;
  color: #fff;
}

/* --- ニュースセクション --- */
.news-section {
  background: #f3f3f3;
  padding: 50px 10%;
}
.news-inner h2 {
  font-size: 42px;
  font-weight: 200;
  margin-bottom: 30px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 32px;
}
.news-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer; /* 視覚的フィードバック */
}
.news-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
.news-card {
  text-decoration: none;
  color: inherit;
}
.news-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
}
.news-meta {
  flex: 1;
}
.news-date {
  font-size: 16px;
  color: #666;
  margin: 0;
}
.news-title {
  font-weight: bold;
  margin-bottom: 4px;
  font-size: 18px;
}
.news-text {
  font-size: 16px;
  color: #444;
}

/* --- お問合せ --- */
.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: #6DB891;
  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: #5aa77f;
}
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: #6DB891;
  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: 100vw;
  height: 100vh;
  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: 600px;
  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;
}




/* スマホ用 */
@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 {
  flex-direction: column;
  height: 70vh;
  background: url('img/bg-sp.gif') no-repeat center center / cover;

}
.first-view-left {
  width: 100%;
  padding: 10px 20px;
}
.first-view-left img {
  max-width: 320px;
  margin-bottom: 30px;
  max-height: 95px;
  height: auto;
  display: block; 
}
.first-view-left p {
  font-size: 23px;
  margin-bottom: 20px;
}
  /* リード */
.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: 20px;
}
.philosophy h3 {
  font-size: 25px;
}
.philosophy p {
  font-size: 16px;
}

/* ポップアップスタイル */
.popup-content.wide {
  width: 90%;
}
.popup-body {
  gap: 10px;
}
.popup-content.wide {
  padding: 20px;
}
.popup-image {
  flex: 1 1 55%;
}
.popup-text h2 {
  font-size: 35px;
}
.popup-text p {
  font-size: 16px;

}
.popup-text {
  flex: 1 1 45%;
}

/* サービス */
.service-section {
  padding: 30px 5%;
}
.service-section h2 {
  font-size: 35px;
}
.service-section p {
  font-size: 16px;
}
.service-block {
  gap: 0;
  margin-bottom: 20px;
}
.service-text h3 {
  font-size: 25px;
}
.service-text h4 {
  font-size: 18px;
}
.service-text p {
  font-size: 16px;
}
.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: 18px;
}
/* --- ニュースセクション --- */
.news-section {
  padding: 10px 5% 50px 5%;
}
.news-inner h2 {
  font-size: 40px;
  margin-bottom: 30px;
}
/* --- 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;
}
}