html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: YuMincho,serif;
    color: #222;
    background-color: #fff;
  }

  a:hover{
    opacity: 0.7;
  }

  p {
    font-size: 16px;
  }
  
  header.main-header {
    background-color: #1f1f1f;
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
    align-items: center;
  }
  
  header .logo {
    font-size: 1.5rem;
    font-weight: bold;
  }
  
  header nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
  }
  
  header nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    text-align: center;
    line-height: 1.2;
    display: block;
  }

  header nav a span {
    color: #939AA5;
    font-size: 12px;
  }
  
  .hero img {
    width: 100%;
    height: auto; /* 変更前: height: 100vh; */
    object-fit: cover;
    display: block;
  }
  
  
  .intro {
    padding: 2rem;
    font-size: 1rem;
    line-height: 2;
    text-align: center;
  }
  
  .about, .recruit, .contact {
    padding: 60px 120px 120px;
  }
  
  .about h2, .recruit h2, .contact h2 {
    position: relative;
    font-size: 1rem;
    border-bottom: 2px solid #939AA5;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    color: #939AA5;
    display: block;
    line-height: 1.2;
    font-weight: 400;
    text-align: left;
  }

  .about h2::after,
  .recruit h2::after,
  .contact h2::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 160px;
    height: 2px;
    background-color: #252622;
  }

  .recruit h2::after {
    background-color: #fff;
  }
  
  .about h2 span,
  .contact h2 span {
    display: block;
    font-size: 38px;
    color: #333;
  }

  .recruit h2 span {
    color: #fff;
    font-size: 38px;
  }

  .about h2 span > span,
  .recruit h2 span > span,
  .contact h2 span > span {
    display: inline-block;
    color: #939AA5;
  }
  
  .about-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-left: -120px;
  }
  
  .about-content img {
    display: block;
    flex: 1 1 40%;
    max-width: 30%;
    height: auto;
    object-fit: cover;
  }
  
  .about-content table {
    flex: 1 1 55%;
    border-collapse: collapse;
    font-size: 0.9rem;
    width: 100%;
  }
  
  @media (max-width: 768px) {
    .about-content {
      flex-direction: column;
    }
  
    .about-content img,
    .about-content table {
      flex: 1 1 100%;
    }
  }
  
  
  .about-content th, .about-content td {
    padding: 0.5rem;
    border-bottom: 1px solid #ddd;
    text-align: left;
    line-height: 1.2;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 12px 12px;
  }

  .about-content th {
    width: 24%;
  }

  .about-content td {
    font-weight: 500;
  }

  .about-content th .initial {
    color: #808080;
    font-size: 16px;
  }

 .enname {
    font-size: 10px;
    font-weight: 400;
    color: #808080;
    line-height: 1;
    display: block;
  }
  
  .recruit {
    background-color: #1f1f1f;
    color: white;
    text-align: center;
  }

  .recruit-content {
    display: flex;
  }
  
  .recruit-content img {
    max-width: 50%;
  }

  .recruit-content p {
    margin: 0 40px;
    text-align: left;
  }

  .contact {
    background-color: #FCFCFC;
    padding: 120px;
  }
  
  .contact form {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .contact label {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
  }
  
  .contact input,
  .contact textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    font-size: 1rem;
  }
  
  .contact textarea {
    resize: vertical;
    height: 150px;
  }
  
  .contact button {
    padding: 0.75rem;
    background-color: #1f1f1f;
    color: white;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    max-width: 240px;
  }
  
  footer {
    text-align: center;
    padding: 2rem;
    background-color: #1f1f1f;
    color: white;
    font-size: 12px;
    font-weight: 400px;
  }
  

  /* ハンバーガーメニューの初期スタイル */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
  }
  
  .hamburger span {
    display: block;
    height: 2px;
    background: white;
    border-radius: 1px;
  }
  
  /* ナビゲーション初期（PC） */
  .main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
  }
  
  /* レスポンシブ対応 */
  @media (max-width: 768px) {
    .hamburger {
      display: flex;
    }
  
    .main-nav {
        position: absolute;
        top: 64px;
        right: 0;
        background-color: #1f1f1f;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        flex-direction: column;
        align-items: center;
      }
      
      /* 開いたときにmax-heightを大きくすることでアニメーション表示 */
      .main-nav.open {
        max-height: 300px; /* 適宜調整可。内容に応じて */
      }
  
    .main-nav ul {
      flex-direction: column;
      gap: 1rem;
      padding: 2rem 0;
    }
  
    header.main-header {
      position: relative;
    }
  }

  @media (min-width: 769px) {
    .main-nav {
      position: static;
      display: flex !important;
      max-height: none;
      flex-direction: row;
      gap: 2rem;
      background-color: transparent;
    }
  }
  /* ハンバーガーアニメーション：バツに変形 */
.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  /* スムーズなアニメーション */
  .hamburger span {
    transition: all 0.3s ease;
  }
  

  /* 共通調整 */
img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  /* .hero 調整：伸びないように */
  .hero img {
    width: 100%;
    height: auto; /* ← height: 100vh を削除しておく */
    object-fit: cover;
  }
  
  /* 小画面用の調整 */
  @media (max-width: 768px) {
    body {
      font-size: 14px;
    }
  
    .about, .recruit, .contact {
      padding: 40px 20px;
    }
  
    .about-content {
      margin-left: 0;
    }
  
    .about-content img {
      max-width: 100%;
    }
  
    .recruit-content {
      flex-direction: column;
      align-items: center;
      gap: 20px;
    }
  
    .recruit-content img {
      max-width: 100%;
    }
  
    .recruit-content p {
      margin: 0;
      text-align: center;
    }
  
    .contact {
      padding: 60px 20px;
    }
  
    .contact form {
      width: 100%;
    }
  
    .contact button {
      max-width: 100%;
    }
  
    footer {
      font-size: 10px;
    }
  }
  