.header {
  width: 100%;
  background-color: #ffffff;
  position: relative;
  z-index: 1000;
}

/* ===== 基本（PC） ===== */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;

  display: grid;
  align-items: center;
  grid-template-columns: auto 1fr auto;
}

.header-logo {
  justify-self: start;
}

.header-logo img {
  display: block;
  width: 100px;
  height: auto;
}

.header-nav {
  justify-self: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li {
  padding: 0 32px;
}

.nav-list a {
  color: #003030ba;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.nav-list a:hover {
  color: #000000;
}


.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #003030ba;
  margin: 6px 0;
  transition: all 0.3s ease;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== モバイル対応 ===== */

@media screen and (max-width: 768px) {
  .header {
    position: sticky;
    top: 0;
  }

  .header-nav {
    display: none;
  }

  .hamburger {
    display: block;
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    z-index: 1000;
  }

  .header-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-height: calc(100vh - 100%);
    background-color: #ffffff;
    overflow-y: auto;
    z-index: 999;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 0 24px 24px 24px;
    text-align: center;
    align-items: center;
  }

  .nav-list li {
    padding: 0;
    width: 80%;
    border-bottom: 1px solid #003030ba;
  }

  .nav-list li:last-child {
    border-bottom: none;
  }

  .nav-list li a {
    display: block;
    padding: 16px 0;
    transition: color 0.3s ease;
  }

  .nav-list li a:hover {
    color: #000000;
  }
}

/* Global Reset for Margin (Optional but recommended for full width) */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  color: #333;
}

/* セクションのスクロール位置調整（ヘッダー分のオフセット） */
section {
  scroll-margin-top: 80px;
}

/* スマホ専用改行 */
.sp-only {
  display: none;
}

@media screen and (max-width: 768px) {
  .sp-only {
    display: inline;
  }
}

.hero {
  width: 100%;
  /* PC height default */
  height: 80vh;
  /* Gradient Background - approximating the screenshot */
  background: linear-gradient(135deg, #c5f5ef 0%, #2d7a71 100%);

  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  /* Space between logo and text */
  max-width: 800px;
  width: 100%;
  padding: 0 20px;
}

.hero-logo img {
  display: block;
  width: 300px;
  height: auto;
}


.hero-text {
  color: #fff;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.1em;
}

/* Mobile Logic */
@media screen and (max-width: 768px) {
  .hero {
    height: 40vh;
    /* Request: Mobile 40% height */
  }

  .hero-container {
    flex-direction: row;
    gap: 16px;
    text-align: left;
    align-items: center;
    justify-content: flex-start;
    padding: 0 20px;
  }

  .hero-logo {
    flex: 0 0 auto;
  }

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

  .hero-text {
    flex: 1;
    font-size: 1.05rem;
    margin-top: 0;
    line-height: 1.5;
  }
}

/* =========================
   About Section
========================= */

.about {
  padding: 40px;
  background-color: #ffffff;
}

.about-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.about-title {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: #54a49e;
  margin-bottom: 16px;
  font-family: "Times New Roman", serif;
  text-align: center;
}

.about-line {
  display: block;
  width: 100%;
  max-width: 700px;
  height: 1px;
  background-color: #bbbeaf;
  margin: 0 auto 64px;
}

.about-text p {
  font-size: 16px;
  line-height: 2;
  color: #003030e8;
  margin-bottom: 24px;
}

.about-subtitle {
  font-size: 22px;
  font-weight: 500;
  color: #bbbeaf;
  margin-bottom: 24px;
  margin-top: 40px;
}

/* =========================
   Mobile_about
========================= */

@media screen and (max-width: 768px) {
  .about {
    padding: 20px;
  }

  .about-title {
    font-size: 36px;
  }

  .about-line {
    margin-bottom: 32px;
  }

  .about-text p {
    font-size: 15px;
    line-height: 1.9;
  }

  .about-subtitle {
    font-size: 20px;
    margin-bottom: 20px;
    margin-top: 32px;
  }
}

/* =========================
   SERVICE
========================= */

.service {
  background: linear-gradient(135deg, #f4f5ea 0%, #c5c7b5 100%);
  padding: 40px;
}

.service-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}

/* SERVICE タイトル */
.service-title {
  font-size: 48px;
  font-family: "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: #54a49e;
  margin-bottom: 16px;
  text-align: center;
}

/* タイトル直下の細い線（重要） */
.service-line {
  display: block;
  width: 100%;
  max-width: 700px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.6);
  margin: 0 auto 64px;
}

/* サブタイトル */
.service-subtitle {
  font-size: 22px;
  font-weight: 500;
  color: #54a49e;
  margin-bottom: 40px;
}

/* =========================
   テキストブロック
========================= */

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

/* 画像 */
.service-image {
  flex: 0 0 320px;
}

.service-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* テキスト */
.service-content {
  color: #003030e8;
}

.service-content p {
  font-size: 18px;
  line-height: 2;
  margin-bottom: 16px;
}

/* =========================
   Mobile_service
========================= */

@media screen and (max-width: 768px) {
  .service {
    padding: 20px;
  }

  .service-title {
    font-size: 36px;
  }

  .service-line {
    margin-bottom: 32px;
  }

  .service-subtitle {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .service-item {
    flex-direction: column;
    gap: 24px;
  }

  .service-image {
    flex: none;
    width: 100%;
  }

  .service-content p {
    font-size: 17px;
    line-height: 1.9;
  }
}

/* =========================
   Company Section
========================= */

.company {
  background-color: #ffffff;
  padding: 40px;
}

.company-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}

/* タイトル */
.company-title {
  font-size: 48px;
  font-family: "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: #54a49e;
  margin-bottom: 16px;
  text-align: center;
}

/* タイトル下の線 */
.company-line {
  display: block;
  width: 100%;
  max-width: 700px;
  height: 1px;
  background-color: #bbbeaf;
  margin: 0 auto 64px;
}

/* 会社概要リスト */
.company-list {
  margin: 0 auto;
  padding: 0;
  max-width: 700px;
}

.company-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  padding: 24px 0;
  border-bottom: 1px solid rgba(187, 190, 175, 0.2);
}

.company-row dt {
  color: #bbbeaf;
  font-weight: 500;
}

.company-row dd {
  margin: 0;
  line-height: 2;
  color: #003030e8;
}

/* =========================
   Mobile_company
========================= */
@media screen and (max-width: 768px) {
  .company {
    padding: 20px;
  }

  .company-title {
    font-size: 36px;
  }

  .company-line {
    margin-bottom: 40px;
  }

  .company-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .company-row dt {
    font-size: 14px;
  }

  .company-row dd {
    font-size: 15px;
  }
}

/* =========================
   Recruit Section
========================= */

.recruit {
  background: linear-gradient(135deg, #f4f5ea 0%, #c5c7b5 100%);
  padding: 40px;
}

.recruit-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 8px;
}

/* タイトル */
.recruit-title {
  font-size: 48px;
  font-family: "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: #54a49e;
  margin-bottom: 16px;
  text-align: center;
}

/* タイトル下の線 */
.recruit-line {
  display: block;
  width: 100%;
  max-width: 700px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.3);
  margin: 0 auto 64px;
}

/* ボタングループ */
.recruit-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 64px;
}

/* ボタン共通スタイル */
.recruit-btn {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #ffffff;
  color: #8a8d7a;
  min-width: 180px;
}

.recruit-btn:hover {
  opacity: 0.8;
}

/* アクティブなボタン */
.recruit-btn.is-active {
  background-color: #003030e8;
  color: #ffffff;
}

/* コンテンツエリア */
.recruit-content {
  color: #003030e8;
  max-width: 700px;
  margin: 0 auto;
}

/* 各職種コンテンツ（デフォルトで非表示） */
.recruit-item {
  display: none;
}

/* アクティブなコンテンツ */
.recruit-item.is-active {
  display: block;
}

/* 情報行 */
.recruit-info-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  gap: 24px;
}

.recruit-info-row:first-child {
  padding-top: 0;
}

.recruit-info-row:last-child {
  border-bottom: none;
}

.recruit-label {
  font-weight: 500;
  font-size: 18px;
  color: #54a49e;
}

.recruit-text {
  line-height: 1.8;
  color: #003030e8;
}

/* =========================
   Mobile_recruit
========================= */
@media screen and (max-width: 768px) {
  .recruit {
    padding: 20px;
  }

  .recruit-title {
    font-size: 36px;
  }

  .recruit-line {
    margin-bottom: 40px;
  }

  .recruit-buttons {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
  }

  .recruit-btn {
    flex: 1;
    min-width: auto;
    font-size: 13px;
    padding: 12px 16px;
  }

  .recruit-info-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }

  .recruit-label {
    font-size: 18px;
  }

  .recruit-text {
    font-size: 15px;
  }
}

/* =========================
   Footer Section
========================= */

.footer {
  background-color: #f5f5f5;
  padding: 60px 0 40px;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

/* フッターナビゲーション */
.footer-nav {
  margin-bottom: 32px;
}

.footer-nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav-list a {
  color: #003030ba;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease;
}

.footer-nav-list a:hover {
  opacity: 0.7;
}

/* コピーライト */
.footer-copyright {
  color: #003030e8;
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}

/* =========================
   Mobile_footer
========================= */
@media screen and (max-width: 768px) {
  .footer {
    padding: 20px 0 20px;
  }

  .footer-nav-list {
    flex-direction: column;
    gap: 20px;
  }

  .footer-nav-list a {
    font-size: 15px;
  }

  .footer-copyright {
    font-size: 13px;
  }
}

/* =========================
   Contact Section
========================= */

.contact {
  background-color: #ffffff;
  padding: 40px;
}

.contact-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}

/* タイトル */
.contact-title {
  font-size: 48px;
  font-family: "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: #54a49e;
  margin-bottom: 16px;
  text-align: center;
}

/* タイトル下の線 */
.contact-line {
  display: block;
  width: 100%;
  max-width: 700px;
  height: 1px;
  background-color: #bbbeaf;
  margin: 0 auto 64px;
}

/* フォーム */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 32px;
}

.form-label {
  display: block;
  color: #54a49e;
  font-weight: 500;
  margin-bottom: 12px;
  font-size: 16px;
}

.required {
  color: #54a49e;
}

.form-input,
.form-textarea {
  width: 95%;
  padding: 16px;
  border: 1px solid #bbbeaf;
  border-radius: 4px;
  font-size: 16px;
  color: #003030e8;
  background-color: #ffffff;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #bbbeaf;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #54a49e;
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

/* チェックボックス */
.form-checkbox {
  margin: 32px 0;
  display: flex;
  justify-content: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 12px;
}

.checkbox-input {
  width: 20px;
  height: 20px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #54a49e;
  border-radius: 3px;
  background-color: #ffffff;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-input:checked {
  background-color: #54a49e;
}

.checkbox-input:checked::after {
  content: '✓';
  position: absolute;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.checkbox-text {
  color: #003030e8;
  font-size: 16px;
}

/* 送信ボタン */
.form-submit {
  text-align: center;
  margin-top: 48px;
}

.submit-btn {
  background-color: #54a49e;
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  padding: 16px 64px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  letter-spacing: 0.1em;
}

.submit-btn:hover {
  opacity: 0.8;
}

/* =========================
   Mobile_contact
========================= */
@media screen and (max-width: 768px) {
  .contact {
    padding: 20px;
  }

  .contact-title {
    font-size: 36px;
  }

  .contact-line {
    margin-bottom: 40px;
  }

  .form-label {
    font-size: 15px;
  }

  .form-input,
  .form-textarea {
    padding: 12px;
    font-size: 15px;
  }

  .submit-btn {
    font-size: 16px;
    padding: 14px 48px;
  }
}