/* ====================
   基本設定
==================== */
body {
  font-family: 'Noto Sans', sans-serif;
  background-color: #F5F7FA;
  color: #333;
  margin: 0;
  padding: 0;
}

header {
  background-color: #003366;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

nav {
  display: flex;
  align-items: center;
  position: relative;
}

nav a {
  color: white;
  margin: 0 0.5rem;
  text-decoration: none;
  font-weight: bold;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  background: white;
  height: 3px;
  margin: 5px 0;
  width: 25px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.language-selector {
  position: relative;
}

.language-toggle {
  cursor: pointer;
  font-size: 1.5rem;
}

.language-options {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #003366;
  border: 1px solid #ccc;
  border-radius: 5px;
  min-width: 120px;
  max-width: 150px;
  z-index: 1000;
  white-space: nowrap;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

.language-options a {
  display: block;
  padding: 0.5rem 1rem;
  color: white;
  text-decoration: none;
}

.language-selector:hover .language-options,
.language-selector:focus-within .language-options {
  display: block;
}

/* ====================
   メインセクション
==================== */

.about {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.section-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #003366;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}

/* ==========================
   基本レイアウト
========================== */
.ceo-hero {
  background-color: #f5f7fa;
  padding: 4rem 1rem;
}

.ceo-hero-inner {
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

/* 左：テキストボックス */
.ceo-message-text {
  flex: 1;
  padding: 2rem;
  background-color: #fff;
  color: #003366;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ceo-message-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  font-weight: bold;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.5rem;
}

.ceo-message-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.ceo-sign {
  text-align: right;
  font-weight: bold;
  margin-top: 1rem;
}

/* 右：画像ボックス */
.ceo-photo-wrapper {
  position: relative; /* ← 必須 */
  flex-shrink: 0;
  width: 300px;
  max-width: 100%;
  border-radius: 0 16px 16px 0;
  overflow: hidden;
}

.ceo-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* グラデーション（PCのみ） */
.ceo-photo-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 20%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0.85), rgba(255,255,255,0));
  z-index: 2; /* ← 明示的に追加 */
  pointer-events: none;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 1rem;
}

.company-table th,
.company-table td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid #ccc;
  vertical-align: top;
}

.company-table th {
  width: 30%;
  font-weight: bold;
  color: #003366;
}

/* ---------------------------------
   ▼ フッター ▼
---------------------------------- */

footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

footer a {
  color: white !important;
  text-decoration: none !important;
}

/* ==========================
   レスポンシブ対応
========================== */
@media (max-width: 768px) {
  .ceo-hero-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
  }

  .ceo-photo-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
  }

  .ceo-photo-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    filter: blur(3px) brightness(1.1);
    border-radius: 0;
  }

  .ceo-photo-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.85), rgba(255,255,255,0.3));
    z-index: 1;
  }

  .ceo-message-text {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    margin-top: 2rem;
    text-align: center;
    padding: 2rem 1rem;
    width: 100%;
    border-radius: 12px;
  }

  .ceo-message-text h2 {
    font-size: 1.5rem;
  }

  .ceo-sign {
    text-align: center;
  }
}
