/* ----------------------------------------
   テーマカラー・ベース設定
   - 白背景 + ティール系アクセント(#69baa6)
---------------------------------------- */
:root {
    --accent: #69baa6;          /* 副色（ティール系パステル） */
    --bg-light: #f0faf8;        /* 淡いグリーン背景 */
    --text-color: #333;         /* メイン文字色 */
    --font-family: 'Noto Sans JP', sans-serif;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: #fff;
    line-height: 1.6;
  }
  img {
    max-width: 100%;
    display: block;
  }
  a {
    text-decoration: none;
    color: inherit;
  }
  ul {
    list-style: none;
  }
  
  /* コンテナ */
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* ----------------------------------------
     ヘッダー
  ---------------------------------------- */
  .header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    z-index: 999;
  }
  .header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
  }
  /* ロゴ画像サイズ調整 */
  .header__logo img {
    height: 25px; 
    object-fit: contain;
  }
  
  /* ハンバーガーボタン: PCでは非表示 */
  .hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
  }
  .hamburger span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--text-color);
    transition: transform 0.3s, opacity 0.3s;
  }
  /* 開閉時(×アイコン)のアニメーション */
  .hamburger.open span:nth-of-type(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.open span:nth-of-type(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-of-type(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  /* PCでのナビ: 横並び (デフォルト) */
  .header__nav ul {
    display: flex;
    gap: 1.5rem;
  }
  .header__nav li a {
    color: var(--text-color);
    font-size: 0.95rem;
    padding: 0.3rem 0;
    transition: color 0.3s, border-bottom 0.3s;
  }
  .header__nav li a:hover {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
  }
  .header__nav .active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
  }
  
  /* ヘッダー：スクロール時のシャドウ表示 */
  .header.scrolled {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  
  /* ----------------------------------------
     メインビジュアル
  ---------------------------------------- */
  .hero {
    position: relative;
    width: 100%;
    height: 100vh;
    margin-top: 60px;
    background-size: cover;
    background-position: center;
  }
  .hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
  }
  .hero__content {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    color: #fff;
    padding: 0 1rem;
  }
  .hero__content h1 {
    font-size: 2.8rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
  }
  .hero__content p {
    font-size: 1.2rem;
    font-weight: 400;
  }
  
  /* ----------------------------------------
     セクションタイトル
  ---------------------------------------- */
  .section-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 0.05em;
    position: relative;
    text-transform: uppercase; 
  }
  .section-title::after {
    content: "";
    display: block;
    width: 100px;
    height: 2px;
    background-color: var(--accent);
    margin: 1rem auto 0;
  }
  
  /* ----------------------------------------
     PHILOSOPHY
  ---------------------------------------- */
  .philosophy {
    padding: 5rem 0;
    background-color: #f9f9f9;
  }
  .philosophy__content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1rem;
    font-weight: 300;
  }
  
  /* ----------------------------------------
     SERVICE
  ---------------------------------------- */
  .service {
    padding: 5rem 0;
  }
  .service__items {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
  }
  .service__item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 2rem;
    width: 300px;
    text-align: center;
    transition: box-shadow 0.3s, transform 0.3s;
  }
  .service__item:hover {
    box-shadow: 0 6px 14px rgba(0,0,0,0.1);
    transform: translateY(-3px);
  }
  .service__item h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
  }
  .service__item p {
    line-height: 1.8;
    font-size: 0.95rem;
    font-weight: 300;
  }
  
  /* ----------------------------------------
     RECRUIT
  ---------------------------------------- */
  .recruit {
    padding: 5rem 0;
    background-color: #fafafa;
    text-align: center;
  }
  .recruit__content {
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
    letter-spacing: 0.02em;
  }
  
  /* ----------------------------------------
     COMPANY LINK
  ---------------------------------------- */
  .company-link {
    padding: 5rem 0;
    background-color: var(--bg-light);
    text-align: center;
  }
  .company-link__content {
    max-width: 800px;
    margin: 0 auto;
  }
  .company-link__content h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
  }
  .company-link__content p {
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    font-weight: 300;
    font-size: 1rem;
  }
  .company-link__content .image-wrapper {
    position: relative;
    display: block;
    max-width: 500px;
    margin: 0 auto;
  }
  .company-link__content .image-wrapper img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.5s ease, opacity 0.3s;
  }
  .company-link__content .image-wrapper:hover img {
    transform: scale(1.02);
    opacity: 0.9;
  }
  .company-link__content .overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%; /* 上部だけ帯状に黒をかける */
    border-radius: 10px;
    background: rgba(0,0,0,0.4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    letter-spacing: 0.05em;
  }
  
  /* ----------------------------------------
     CONTACT
  ---------------------------------------- */
  .contact {
    padding: 5rem 0;
    background-color: #fafafa;
    text-align: center;
  }
  .contact__content {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 300;
    font-size: 1rem;
  }
  
  /* ----------------------------------------
     COMPANYページ専用
  ---------------------------------------- */
  .page-title {
    background-color: #f5f5f5;
    padding: 2.5rem 0;
    text-align: center;
  }
  .page-title h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  .page-title p {
    font-size: 1rem;
    color: #666;
    font-weight: 300;
  }
  .company-info {
    padding: 3rem 0;
  }
  .company-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    margin-top: 2rem;
  }
  .company-table th,
  .company-table td {
    padding: 1rem;
    border: 1px solid #eee;
    vertical-align: top;
    text-align: left;
    line-height: 1.6;
    font-weight: 300;
  }
  .company-map {
    padding: 3rem 0;
  }
  
  /* ----------------------------------------
     フッター
  ---------------------------------------- */
  .footer {
    background-color: #f5f5f5;
    padding: 2rem 0;
    text-align: center;
    color: #666;
    font-size: 0.95rem;
  }
  .footer__inner {
    max-width: 800px;
    margin: 0 auto;
  }
  .footer__info p {
    margin-bottom: 0.3rem;
    font-weight: 300;
  }
  .footer__copy {
    display: block;
    margin-top: 1rem;
  }
  
  /* ----------------------------------------
     Back to Top ボタン
  ---------------------------------------- */
  .back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--accent);
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0;
    pointer-events: none; /* 非表示時クリック不可 */
    z-index: 999;
  }
  .back-to-top.visible {
    opacity: 1;
    pointer-events: all;
  }
  .back-to-top:hover {
    transform: scale(1.1);
  }
  
  /* ----------------------------------------
     レスポンシブ (768px以下でハンバーガーメニュー)
  ---------------------------------------- */
  @media screen and (max-width: 768px) {
    .header__inner {
      /* SPで高さ可変、上下中央寄せ */
      height: auto;
      padding: 0.5rem 1rem;
      flex-direction: row;
      align-items: center;
      justify-content: center; 
      gap: 0.5rem;
      height: 60px;
    }
  
    /* ハンバーガー表示 */
    .hamburger {
      display: flex;
      margin-left: auto; /* ロゴ右側に寄せたい場合 */
      z-index: 10;
    }
  
    /* ナビを全画面オーバーレイに */
    .header__nav {
      position: fixed;
      top: 0; left: 0;
      width: 100%;
      height: 100vh;
      background: rgba(255,255,255,0.97);
      display: flex;
      align-items: center;
      justify-content: center;
      transform: translateY(-100%);
      transition: transform 0.5s ease;
    }
    .header__nav ul {
      flex-direction: column;
      gap: 2rem;
    }
    /* nav-open が付いたときに表示 */
    .header__nav.nav-open {
      transform: translateY(0);
    }
  
    .hero {
      height: 60vh;
      margin-top: 60px;
    }
    .hero__content h1 {
      font-size: 2rem;
    }
    .section-title {
      font-size: 1.5rem;
    }
    .section-title::after {
      width: 60px;
    }
    .service__items {
      flex-direction: column;
    }
    .service__item {
      width: 100%;
      max-width: 400px;
      margin: 0 auto;
    }
    .company-link__content .image-wrapper {
      max-width: 100%;
    }
  }