@charset "UTF-8";
/* CSS Document */

    body {
      margin: 0;
      padding-top: 60px; /* ヘッダー高さ分 */
      font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN","Hiragino Sans", "Helvetica Neue", Arial, sans-serif;
      line-height: 1.6;
      color: #333;
      scroll-behavior: smooth; /* スムーズスクロール */
    }

    /* ===== ヘッダー ===== */
    header {
      position: fixed;
      top: 0;
      width: 100%;
      background: #fff;
      border-bottom: 1px solid #ddd;
      z-index: 1000;
    }

    .nav-container {
      max-width: 950px;
      margin: auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 20px;
    }

    .logo img {
      height: 40px;
    }

    nav ul {
      display: flex;
      list-style: none;
      margin: 0;
      padding: 0;
    }

    nav li {
      margin-left: 20px;
    }

    nav a {
      text-decoration: none;
      color: #333;
      font-weight: 500;
      transition: color 0.3s;
    }

    nav a:hover {
      color: #0077b6;
    }

    /* ===== ハンバーガーメニュー ===== */
    .close-btn {
      display: none;
    }
    .menu-toggle {
      display: none;              /* SP時のみ表示 */
      position: absolute;         /* header を基準に右端から位置指定する */
      right: 20px;                /* 画面右端から20px開ける（ご要望） */
      top: 50%;
      transform: translateY(-50%);
      z-index: 1200;
      flex-direction: column;
      cursor: pointer;
    }

    .menu-toggle span {
      width: 25px;
      height: 2px;
      background: #333;
      margin: 4px 0;
      transition: 0.3s;
    }

    nav.active {
      display: block;
    }

    /* SP（例: 768px以下）で表示＆メニューの表示位置は合わせて右:20px */
    @media (max-width: 768px) {
    .close-btn {
      display: flex;
    }
    .menu-toggle {
      display: flex;
    }

    nav ul {
      position: fixed;
      top: 0;
      right: -100%;   /* 初期は画面外 */
      height: 100vh;
      width: 150px;
      flex-direction: column;
      background: #fff;
      box-shadow: -2px 0 6px rgba(0,0,0,0.1);
      transition: right 0.4s ease;
      padding-top: 40px;
      z-index: 1200;
    }

    nav ul.active {
      right: 0; /* スライドイン */
    }

    nav li {
      margin: 10px;
      text-align: center;
    }
		
	nav li:nth-of-type(2) {
      margin-top: 30px;
    }

    nav a {
      font-size: 18px;
    }

    /* ×アイコンっぽい文字（スマホだけ適用） */
    #nav-links .close-btn {
      position: absolute;
      top: 10px;
      right: 15px;
      margin: 0;
      font-size: 32px;
      line-height: 1;
      color: #333;
      vcursor: pointer;
      user-select: none;
      transition: color 0.3s ease, transform 0.2s ease;
    }

    #nav-links .close-btn:hover {
      color: #0077b6;
      transform: scale(1.1);
    }
    }


    /* ===== ヒーローセクション ===== */
    .hero {
      text-align: center;
      scroll-margin-top: 60px; /* ヘッダー高さ分 */
    }

    .hero h1 {
      display: none;
    }

    .hero img {
      max-width: 950px;
      height: auto;
    }

    /* ===== セクション ===== */
    section {
      padding: 60px 20px 0px;
      max-width: 950px;
      margin: auto;
    }

    section h2 {
      text-align: center;
      font-size: 1.5rem;
      margin-bottom: 20px;
    }
	  
    section p {
      text-align: center;
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 20px;
      margin-top: 20px;
    }

    .grid img {
      width: 100%;
      height: auto;
      border-radius: 8px;
    }
	  
   /* ===== 会社概要 ===== */
    .company-info {
      margin: 100px auto 40px;
      border-top: 1px solid #ccc;
      padding: 40px;
    }

    .company-info table {
      width: 100%;
      border-collapse: collapse;
    }

    .company-info th, 
    .company-info td {
      text-align: left;
      padding: 8px;
      border-bottom: 1px solid #eee;
    }

    /* ===== お問い合わせ ===== */
    .contact {
      text-align: center;
      padding: 60px 20px;
      background: #f9f9f9;
    }

    .contact p {
      margin-bottom: 10px;
    }

    .contact a {
      font-size: 1.1rem;
      color: #0077b6;
      text-decoration: none;
    }

    /* ===== お問い合わせフォーム ===== */
    .contact-form {
      max-width: 600px;
      margin: 20px auto 0;
      text-align: left;
    }

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

    .form-group label {
      display: block;
      font-weight: bold;
      margin-bottom: 6px;
    }

    .form-group input,
    .form-group textarea {
      width: 100%;
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 6px;
      font-size: 1rem;
      box-sizing: border-box;
    }

    button[type="submit"] {
      display: inline-block;
      padding: 12px 24px;
      background: #0077b6;
      color: #fff;
      border: none;
      border-radius: 6px;
      font-size: 1rem;
      cursor: pointer;
      transition: background 0.3s;
    }

    button[type="submit"]:hover {
      background: #005f8c;
    }
	  
    /* ===== フッター ===== */
    footer {
      margin-top: 40px;
      text-align: center;
      padding: 20px;
      font-size: 0.9rem;
      color: #555;
      border-top: 1px solid #eee;
    }

    footer img {
      max-width: 180px;
      margin-bottom: 10px;
    }
	
	footer p {
      margin-top: 0px;
    }

    /* ===== フェードインアニメーション ===== */
    .fadein {
      opacity: 0;
      transform: translateY(40px);
      transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    .fadein.show {
      opacity: 1;
      transform: translateY(0);
    }

    /* ===== スマホ向け ===== */
    @media (max-width: 600px) {
      .hero h1 {
        display: none;
      }
      .hero img {
        width: 100%;
      }
	  section {
        padding: 20px;
      }
      section h2 {
        font-size: 1.2rem;
      }
      section p {
		text-align: left;
      }
	  .company-info {
      margin: 30px auto;
	  padding: 30px 20px;
    }
      .contact {
      text-align: center;
	  margin-top: 20px;
      padding: 10px 20px 30px;
      background: #f9f9f9;
     }
    }

    /* 固定ヘッダー分の余白をスクロール時に確保 */
    section,
    .hero {
      scroll-margin-top: 70px; /* ヘッダー高さ + 余裕10px */
    }

    /* 上に戻るボタン */
	#back-to-top {
	  position: fixed;
	  bottom: 20px;
	  right: 20px;
	  width: 50px;
	  height: 50px;
	  border: none;
	  border-radius: 50%;
	  background: #0077b6;
	  color: #fff;
	  cursor: pointer;
	  display: none; /* 初期は非表示 */
	  z-index: 1000;
	  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
	  transition: opacity 0.3s ease, background 0.3s ease;
	  padding: 10px;
	}
	#back-to-top:hover {
	  background: #005fa3;
	}
	#back-to-top svg {
	  width: 100%;
	  height: 100%;
	  transform: translateY(-8%); 
	}

    /* 上に戻るボタン */
      .f12 {
      font-size: 12px;
     }