:root {
  --primary-color: #003399;
  /* Royal Blue */
  --secondary-color: #f8f9fa;
  /* Light Grey/White */
  --accent-color: #c0c0c0;
  /* Silver */
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
  --bg-white: #ffffff;
  --font-serif: "Shippori Mincho", serif;
  --font-sans: "Inter", "Noto Sans JP", sans-serif;
  --spacing-lg: 120px;
  --spacing-md: 60px;
  --spacing-sm: 30px;
  --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.serif {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.05em;
}

section {
  padding: var(--spacing-lg) 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 30px 0;
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

/* Hamburger Menu Icon */
.hamburger {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1100;
  transition: var(--transition);
}

.hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--primary-color);
  border-radius: 2px;
  transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 9px;
}

.hamburger span:nth-child(3) {
  top: 18px;
}

.hamburger.active span:nth-child(1) {
  top: 9px;
  transform: rotate(135deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  left: -40px;
}

.hamburger.active span:nth-child(3) {
  top: 9px;
  transform: rotate(-135deg);
}

/* Mobile Menu Overlay */
#mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(15px);
}

#mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

#mobile-menu ul {
  list-style: none;
  text-align: center;
}

#mobile-menu ul li {
  margin: 25px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu.active ul li {
  opacity: 1;
  transform: translateY(0);
}

/* Animation delay for menu items */
#mobile-menu.active ul li:nth-child(1) {
  transition-delay: 0.2s;
}

#mobile-menu.active ul li:nth-child(2) {
  transition-delay: 0.3s;
}

#mobile-menu.active ul li:nth-child(3) {
  transition-delay: 0.4s;
}

#mobile-menu.active ul li:nth-child(4) {
  transition-delay: 0.5s;
}

#mobile-menu.active ul li:nth-child(5) {
  transition-delay: 0.6s;
}

#mobile-menu ul li a {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: 0.1em;
}

#mobile-menu ul li a:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--bg-white);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.8);
  padding: 40px;
  backdrop-filter: blur(5px);
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.4;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s forwards 0.5s;
}


.hero p {
  font-size: 1.1rem;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s forwards 0.8s;
}

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fadeIn 1.5s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 0;
  transition: var(--transition);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.btn:hover {
  background: #002266;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 51, 153, 0.2);
}

/* Common Classes */
.section-title {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.section-title span {
  font-size: 0.8rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  display: block;
  margin-bottom: 10px;
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  transition: var(--transition);
  position: relative;
}

nav ul li a:hover {
  color: var(--primary-color);
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-color);
  transition: var(--transition);
}

nav ul li a:hover::after {
  width: 100%;
}

.nav-link-item {
  display: inline-block;
  text-align: center;
  line-height: 1.2;
}

.nav-contact-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 4px;
  text-align: center;
  transition: var(--transition);
}

.nav-contact-btn:hover {
  background-color: #002266;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 51, 153, 0.2);
}

.nav-contact-btn::after {
  display: none !important;
}

header.scrolled nav ul li a {
  color: var(--text-dark);
}

/* Contact Form */
.contact-form-container {
  max-width: 800px;
  margin: 60px auto 0;
  background: white;
  padding: 60px;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 51, 153, 0.05);
  text-align: left;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: #fdfdfd;
}

.btn-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  font-weight: 700;
  margin-top: 20px;
}

/* Page Header */
.page-header {
  padding: 200px 0 100px;
  background: var(--secondary-color);
  text-align: center;
}

.page-header h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

/* Cards (Products) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.talent-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.product-card {
  background: white;
  border: 1px solid #eee;
  transition: var(--transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.product-logo-wrapper {
  height: 120px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.product-logo-wrapper.bg-dark-logo {
  background-color: #000;
  border-bottom-color: #1a1a1a;
}

.product-logo-wrapper img {
  max-width: 85%;
  max-height: 100px;
  height: auto;
  width: auto;
  object-fit: contain;
}

/* Blog Note Banner */
.blog-note-banner {
  padding: 60px 0;
  background: white;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.note-message {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #666;
}

.btn-note {
  background: #25c28e;
  /* Note brand color or similar clean green */
  color: white;
  padding: 18px 50px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-note:hover {
  background: #1eb381;
  box-shadow: 0 10px 30px rgba(37, 194, 142, 0.2);
}

.product-info {
  padding: 40px;
}

.product-info h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.product-info p {
  font-size: 0.95rem;
  color: #666;
}

/* Blog List */
.blog-list {
  max-width: 900px;
  margin: 60px auto 0;
}

.blog-item {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  align-items: center;
}

.blog-item:hover {
  opacity: 0.8;
  transform: translateX(10px);
}

.blog-eyecatch {
  flex: 0 0 250px;
  height: 160px;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
}

.blog-content {
  flex: 1;
}

.blog-meta {
  display: flex;
  gap: 20px;
  font-size: 0.8rem;
  margin-bottom: 10px;
  color: #999;
}

.blog-category {
  color: var(--primary-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.blog-content h3 {
  font-size: 1.4rem;
  line-height: 1.4;
}

/* Profile / Timeline */
.timeline {
  max-width: 800px;
  margin: 60px auto;
  position: relative;
  padding-left: 20px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 1px;
  height: calc(100% - 20px);
  background: #eee;
}

.timeline-item {
  padding-left: 40px;
  margin-bottom: 50px;
  position: relative;
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: -4px;
  top: 10px;
  width: 9px;
  height: 9px;
  background: #fff;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-date {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: block;
}

.timeline-item p {
  line-height: 1.6;
}

.interview-block {
  margin-bottom: 80px;
}

.interview-q {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  border-left: 4px solid var(--primary-color);
  padding-left: 20px;
}

.interview-a {
  font-size: 1rem;
  line-height: 2;
  color: #444;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 100px;
  }

  .hero-image {
    width: 100%;
    height: 50%;
    top: 0;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .hero-content {
    max-width: 100%;
    padding: 30px;
  }

  .flex {
    flex-direction: column;
    gap: 40px;
  }

  nav ul {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
  }

  .blog-item {
    flex-direction: column;
    gap: 20px;
  }

  .blog-eyecatch {
    width: 100%;
    flex: none;
  }

  .contact-form-container {
    padding: 30px;
  }
}

/* Talent Grid & Cards */
.talent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.talent-card {
  position: relative;
  background: white;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.talent-card:hover {
  transform: translateY(-10px);
}

.talent-image-wrapper {
  aspect-ratio: 3 / 4;
  width: 100%;
  overflow: hidden;
  background: var(--secondary-color);
}

.talent-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: var(--transition);
}

.talent-card:hover .talent-image-wrapper img {
  transform: scale(1.05);
}

.talent-info {
  padding: 30px;
  background: white;
  border: 1px solid #eee;
  border-top: none;
  flex: 1;
}

.talent-category {
  font-size: 0.75rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 10px;
  display: block;
}

.talent-info h3 {
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.talent-tagline {
  font-size: 0.9rem;
  color: #666;
}

/* Profile Page Styles */
.profile-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
  background: var(--bg-white);
}

.profile-hero-content {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.profile-image-main {
  flex: 0 0 40%;
  max-width: 400px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.profile-image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.profile-details {
  flex: 1;
}

.profile-rank {
  font-size: 0.9rem;
  color: var(--primary-color);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

.profile-details h1 {
  font-size: 3.5rem;
  margin-bottom: 30px;
}

.profile-bio {
  font-size: 1rem;
  line-height: 2;
  color: #444;
  margin-bottom: 50px;
}

.profile-list-title {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.profile-list {
  list-style: none;
  padding: 0;
}

.profile-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #444;
}

.profile-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 1px;
  background: var(--primary-color);
}

.profile-achievement {
  background: var(--secondary-color);
  padding: 40px;
  border-left: 4px solid var(--primary-color);
  margin-bottom: 40px;
}

.achievement-label {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--primary-color);
  text-transform: uppercase;
  display: block;
  margin-bottom: 15px;
}

.achievement-value {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  line-height: 1.4;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.9rem;
  margin-top: 60px;
  transition: var(--transition);
}

.btn-back:hover {
  color: var(--primary-color);
  transform: translateX(-5px);
}

/* Responsive Overrides for Profiles */
@media (max-width: 992px) {
  .profile-hero-content {
    flex-direction: column;
    gap: 60px;
  }

  .profile-image-main {
    flex: none;
    width: 100%;
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .profile-hero-content {
    flex-direction: column;
  }

  .profile-image-main {
    width: 100% !important;
    max-width: none;
  }

  .profile-details h1 {
    font-size: 2.5rem;
  }
}

/* ===== スマホ用強制デザイン調整（ここから） ===== */
@media (max-width: 768px) {

  /* 1. ハンバーガーメニュー関連 */
  header .flex {
    flex-direction: row !important;
    justify-content: space-between !important;
    gap: 0 !important;
  }

  header nav {
    display: none !important;
  }

  .hamburger {
    display: block !important;
  }

  /* 2. トップページのHero被り解消 */
  .hero {
    padding-top: 120px !important;
    justify-content: center !important;
  }

  .hero-content h1 {
    font-size: 2rem !important;
    line-height: 1.4 !important;
  }

  /* 3. タレント一覧の2列表示＆テキスト省略 */
  .talent-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }

  .talent-info {
    padding: 15px 10px !important;
  }

  .talent-category {
    font-size: 0.65rem !important;
    margin-bottom: 5px !important;
  }

  .talent-info h3 {
    font-size: 1.1rem !important;
    margin-bottom: 5px !important;
    word-break: keep-all !important;
  }

  .talent-tagline {
    font-size: 0.8rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
}

/* 4. 代表メッセージのスマホ縦並び（写真上・文字下） */
#ceo .flex {
  flex-direction: column-reverse !important;
  /* HTMLの順番を逆転させて写真を上にする */
  gap: 30px !important;
}

/* 横幅の制限を解除して画面いっぱいに広げる */
#ceo .flex>div {
  flex: none !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* スマホ画面に合わせてタイトルの文字サイズを最適化 */
#ceo h2 {
  font-size: 1.8rem !important;
  line-height: 1.5 !important;
  word-break: keep-all !important;
}

/* ===== スマホ用強制デザイン調整（ここまで） ===== */