
    /* =========================================
       1. 基本設定（スクロールのカクつきをなくす）
       ========================================= */
    @font-face {
      font-family: 'Bilderberg';
      src: url('Bilderberg OTF.otf') format('opentype');
      font-weight: 400; font-style: normal; font-display: swap;
    }
    
    :root {
      --white: #ffffff;
      --black: #111111;
      --gray-light: #f9f9f9;
      --mustard: #e2b23c;
      --border: #e0e0e0;
      --font-jp: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Helvetica Neue", Arial, sans-serif;
    }
    
    * { margin: 0; padding: 0; box-sizing: border-box; }
    
    html {
      scroll-padding-top: 0;
    }
  
    body { font-family: var(--font-jp); color: var(--black); line-height: 2.0; -webkit-font-smoothing: antialiased; }
    a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
    
    .container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
    .brand-font { font-family: 'Bilderberg', serif; }

    /* =========================================
       2. セクション共通（見切れず、自然に表示）
       ========================================= */
    section { 
      min-height: 100vh; /* 中身が増えても途切れない */
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 100px 0; /* 上下にゆったりとした余白 */
      position: relative;
      overflow: hidden;
      border-bottom: 1px solid var(--border);
    }

    .section-header { text-align: center; margin-bottom: 50px; width: 100%; }
    .section-subtitle { display: block; font-size: 0.8rem; color: var(--mustard); letter-spacing: 0.2em; font-weight: 900; text-transform: uppercase; margin-bottom: 10px; }
    .section-title-main { font-family: 'Bilderberg', serif; font-size: 4rem; font-weight: 900; color: var(--black); line-height: 1.2; letter-spacing: 0.02em; margin: 0; }

    /* =========================================
       3. ヘッダー（画像16.03.02の白背景・極太メニュー）
       ========================================= */
    header {
      background-color: #ffffff;
      padding: 20px 40px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: sticky;
      top: 0;
      z-index: 9999;
      border-bottom: 1px solid #eeeeee;
    }

    .logo {
      font-family: 'Bilderberg', serif;
      font-size: 1.6rem; 
      color: var(--black); 
    }

    .nav-links {
      display: flex;
      gap: 40px; 
      align-items: center;
    }

    .nav-links a {
      font-family: 'Helvetica Neue', Arial, sans-serif;
      font-size: 0.9rem; 
      font-weight: 900; 
      color: var(--black); 
      letter-spacing: 0.05em; 
      text-transform: uppercase;
    }
    
    .nav-links a:hover { color: var(--mustard); }

    /* =========================================
       4. Hero & Mission & RIJIN
       ========================================= */
    #hero { background: #000; border: none; text-align: center; padding: 0; }
    .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
    .hero-content { position: relative; z-index: 10; color: var(--white); }
    .hero-title-en { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.2; margin-bottom: 15px; white-space: nowrap; letter-spacing: 0.02em; }
    .hero-subtitle-ja { font-size: 1.1rem; font-weight: 900; letter-spacing: 0.15em; color: var(--white); margin-bottom: 0; }
    .hero-btns { display: flex; align-items: center; justify-content: center; margin-top: 50px; }
    .btn-main { background: var(--mustard); color: var(--black); padding: 18px 50px; font-size: 1.1rem; font-weight: 900; border-radius: 4px; transition: 0.3s; }
    .btn-main:hover { opacity: 0.8; transform: scale(1.05); }

    #mission { background: var(--white); text-align: center; }
    .mission-label { color: var(--mustard); font-weight: 900; font-size: 0.8rem; margin-bottom: 15px; display: block; letter-spacing: 0.2em; }
    .mission-quote { font-size: clamp(4rem, 10vw, 7.5rem); font-weight: 900; color: var(--black); line-height: 1.1; margin-bottom: 25px; letter-spacing: -0.02em; opacity: 0; transform: translateY(30px); animation: fadeInUp 1.2s forwards 0.3s; }
    .mission-sub { font-size: 1.6rem; font-weight: 900; color: var(--black); letter-spacing: 0.1em; opacity: 0; transform: translateY(30px); animation: fadeInUp 1.2s forwards 0.6s; }
    @keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

    .rijin-teaser { background-color: #000; color: var(--white); text-align: center; }
    .rijin-teaser h2 { font-family: 'Bilderberg', sans-serif; font-size: 4rem; color: var(--mustard); margin-bottom: 16px; letter-spacing: 0.05em; }
    .rijin-teaser p { margin-bottom: 40px; font-size: 1.1rem; line-height: 2.0; font-weight: 900; }
    .btn-rijin { display: inline-block; background-color: var(--mustard); color: var(--black); padding: 18px 48px; font-weight: 900; border-radius: 4px; transition: 0.3s; font-size: 1.1rem; }
    .btn-rijin:hover { opacity: 0.8; transform: scale(1.05); }

    /* =========================================
       5. Service & Works
       ========================================= */
    .service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; width: 100%; }
    .service-item { position: relative; padding: 40px 30px; background: #fff; border: 1px solid #eaeaea; border-radius: 2px; overflow: hidden; display: block; transition: all 0.4s ease; }
    .service-item:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.04); border-color: var(--mustard); }
    .service-num { position: absolute; bottom: -20px; right: -10px; font-family: 'Bilderberg', serif; font-size: 10rem; color: var(--black); opacity: 0.03; line-height: 1; pointer-events: none; z-index: 1; }
    .service-item h3 { position: relative; z-index: 2; font-size: 1.15rem; margin-bottom: 20px; font-weight: 900; color: var(--black); }
    .service-desc { position: relative; z-index: 2; font-size: 0.95rem; line-height: 1.8; color: #444; text-align: justify; }
    .service-desc strong { color: var(--black); font-weight: 700; border-bottom: 1.5px solid var(--mustard); }

    #works { background: var(--gray-light); padding-bottom: 60px; }
    .works-slider { width: 100%; overflow: hidden; }
    .slider-track { display: flex; gap: 40px; width: max-content; animation: loop-slider 35s linear infinite; }
    .slider-track:hover { animation-play-state: paused; }
    @keyframes loop-slider { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-50% - 20px)); } }
    .slide { width: 420px; flex-shrink: 0; display: flex; flex-direction: column; background: var(--white); border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); border: 1px solid #f0f0f0; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
    .slide:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
    .slide-img { width: 100%; aspect-ratio: 16 / 10; padding-bottom: 30px; background-origin: content-box; background-clip: content-box; background-size: cover; background-position: center; background-color: var(--gray-light); flex-shrink: 0; }
    .slide-content { padding: 25px 30px 40px; margin-top: -30px; background: var(--white); position: relative; z-index: 10; border-radius: 12px 12px 0 0; display: flex; flex-direction: column; flex-grow: 1; box-shadow: 0 -10px 20px rgba(0,0,0,0.03); }
    .slide-tag { font-size: 0.75rem; color: var(--mustard); font-weight: 900; margin-bottom: 12px; letter-spacing: 0.1em; }
    .slide-title { font-size: 1.1rem; font-weight: 900; line-height: 1.5; margin-bottom: 15px; color: var(--black); }
    .slide-desc { font-size: 0.85rem; line-height: 1.7; color: #555; text-align: justify; }

    /* =========================================
       6. Profile & Corporate（画像通りの美しいバランスへ復元）
       ========================================= */
    .ceo-message-wrap { display: flex; align-items: flex-start; justify-content: center; gap: 50px; max-width: 1000px; margin: 0 auto; width: 100%; }
    /* 写真を入れる「箱」の設定 */
.profile-photo-container { 
  position: relative; 
  flex-shrink: 0; 
  width: 300px; 
  height: 400px; 
  border-radius: 4px; 
  overflow: hidden; 
}

/* 2枚の写真共通の動き */
.profile-photo { 
  position: absolute; 
  top: 0; left: 0; 
  width: 100%; height: 100%; 
  background-size: cover; 
  background-position: center; 
  transition: opacity 0.4s ease; /* じわっと入れ替わる時間 */
}

/* 通常時：カッコいい方（前面） */
.photo-cool { z-index: 2; opacity: 1; }

/* マウスが乗った時：カッコいい方を消す */
.profile-photo-container:hover .photo-cool { opacity: 0; }

/* 遊び写真：最初から後ろに置いておく */
.photo-playful { z-index: 1; opacity: 1; }
    .ceo-text { flex-grow: 1; text-align: left; }
    
    .profile-philosophy { margin-bottom: 25px; border-left: 3px solid var(--mustard); padding-left: 20px; }
    .message-en { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 1.2rem; font-weight: bold; letter-spacing: 0.1em; margin-bottom: 10px; color: #444; }
    .message-ja { font-size: 1.1rem; font-weight: 900; letter-spacing: 0.05em; color: var(--black); line-height: 1.5; margin-bottom: 0; }
    
    .ceo-text p { font-size: 0.95rem; line-height: 2.0; color: #333; text-align: justify; margin-bottom: 20px; }
    .ceo-sign { margin-top: 30px; text-align: left; font-size: 1.1rem; font-weight: 900; }
    .ceo-sign span { font-size: 0.8rem; color: #999; font-weight: normal; }

    .company-profile-wrap { width: 100%; text-align: center; }
    .company-profile-wrap h3 { font-family: 'Bilderberg', serif; font-size: 3rem; margin-bottom: 50px; }
    .profile-table { width: 100%; max-width: 800px; margin: 0 auto; border-collapse: collapse; }
    .profile-table tr { display: block; border-bottom: 1px solid var(--border); padding: 20px 0; }
    .profile-table tr:first-child { border-top: 1px solid var(--border); }
    .profile-table th { display: block; width: 100%; text-align: center; padding: 0 0 10px 0; font-weight: 900; color: #999; font-size: 0.85rem; letter-spacing: 0.1em; }
    .profile-table td { display: block; width: 100%; text-align: center; font-weight: 900; font-size: 1.2rem; color: var(--black); }

    /* =========================================
       7. Blog 
       ========================================= */
    #blog { background: var(--gray-light); }
    .blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
    .blog-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 260px; width: 100%; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease; }
    .blog-card:hover { transform: translateY(-5px); }
    .blog-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.5s ease; z-index: 1; }
    .blog-card:hover .blog-img { transform: scale(1.05); }
    .blog-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(0,0,0,0.85) 100%); z-index: 2; }
    .blog-content { position: relative; z-index: 3; padding: 25px; }
    .blog-card h3 { font-size: 1.05rem; font-weight: bold; line-height: 1.5; color: var(--white); margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .blog-meta { display: flex; align-items: center; gap: 12px; }
    .blog-author-icon { width: 26px; height: 26px; border-radius: 50%; background-size: cover; background-position: center; background-color: #555; flex-shrink: 0; }
    .blog-author-info { display: flex; align-items: center; gap: 15px; color: rgba(255, 255, 255, 0.9); font-size: 0.75rem; font-weight: bold; }
    .blog-btn-wrap { text-align: center; margin-top: 50px; }
    .btn-view-all { display: inline-block; padding: 16px 50px; background-color: var(--white); color: var(--mustard); font-weight: 900; border: 2px solid var(--mustard); border-radius: 40px; letter-spacing: 0.1em; transition: all 0.3s ease; }
    .btn-view-all:hover { background-color: var(--mustard); color: var(--white); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(226,178,60,0.2); }

    /* =========================================
       8. Contact & Footer
       ========================================= */
    #contact { background: #000; color: var(--white); text-align: center; }
    .contact-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; }
    .contact-title { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; margin-bottom: 40px; line-height: 1.2; }

    .footer { 
      background: #000; 
      color: var(--white); 
      padding: 80px 0 40px; 
      border-top: 1px solid #333; 
      /* ↓これを追加：フッターの下端でピタッと止まるようにします */
    }
    .footer-top { display: flex; align-items: center; gap: 20px; margin-bottom: 50px; }
    .footer-corp { font-weight: 900; letter-spacing: 0.1em; font-size: 0.9rem; }
    .footer-line { flex-grow: 1; height: 1px; background: #333; }
    .footer-nav { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 50px; font-weight: 900; font-size: 0.75rem; }
    .footer-nav a { opacity: 0.6; }
    .footer-nav a:hover { opacity: 1; color: var(--mustard); }
    .footer-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
    .social-icons { display: flex; gap: 20px; }
    .social-icons svg { width: 24px; height: 24px; fill: var(--white); opacity: 0.7; transition: 0.3s; }
    .social-icons a:hover svg { opacity: 1; fill: var(--mustard); }
    .copyright { font-family: 'Bilderberg', serif; font-size: 1.2rem; opacity: 0.4; text-align: right; letter-spacing: 0.05em; }

    /* =========================================
       9. Mobile Responsive
       ========================================= */
    @media (max-width: 900px) {
      .container { padding: 0 20px; }
      section { padding: 80px 0; min-height: auto; }
      header { padding: 15px 20px; flex-direction: column; gap: 15px; }
      .nav-links { width: 100%; overflow-x: auto; padding-bottom: 5px; justify-content: center; }
      .nav-links::-webkit-scrollbar { display: none; }
      #hero { padding: 120px 0 60px; }
      .hero-title-en { white-space: normal; }
      .service-grid { grid-template-columns: 1fr; }
      .slide { width: 300px; }
      .slider-track { width: max-content; }
      .ceo-message-wrap { flex-direction: column; }
      .profile-photo { width: 100%; height: 350px; }
      .blog-grid { grid-template-columns: 1fr; }
      .footer-top, .footer-bottom, .footer-nav { flex-direction: column; align-items: flex-start; }
      .footer-nav span { display: none; }
      .copyright { margin-top: 20px; text-align: left; }
    }
/* ABOUT と Corporate の余白を削って1画面に収める */
    #profile, #corporate {
      padding: 40px 0 !important; /* 上下100pxを40pxまで圧縮 */
    }
    #profile .section-header, 
    #corporate .company-profile-wrap h3 {
      margin-bottom: 25px !important; /* タイトル下の50pxを半分に */
    }
    .profile-table tr {
      padding: 12px 0 !important; /* テーブルの行間20pxを12pxに */
    }
    .ceo-text p {
      margin-bottom: 15px !important; /* 段落間の20pxを15pxに */
    }
/* index.html の <style> タグ内、既存の @media (max-width: 900px) を修正 */
@media (max-width: 900px) {
  /* ...他のレスポンシブ設定はそのまま... */

  /* ★ここを修正：写真コンテナを中央に寄せる★ */
  .profile-photo-container {
    /* 横幅を100%ではなく、スマホで見やすい適切な固定幅にする（横幅いっぱいだと「真ん中」にならないため） */
    width: 280px !important; 
    height: 380px !important;
    /* 左右のmarginをautoにすることで、親要素の中で中央に来る */
    margin: 0 auto 30px !important; /* 上下0、左右auto、下にテキストとの余白30px */
  }
  
  /* 写真が真ん中に来たら、テキストエリアも中央寄せの方が綺麗です */
  .profile-text {
    text-align: center !important;
  }
  
  /* 署名パーツも中央に寄せます */
  .profile-signature {
    text-align: center !important;
  }
}
  