/* ============================================
   理事長挨拶ページ スタイル
   ============================================ */

/* --- Section 1: 理事長挨拶 --- */
.president-section {
  background-color: var(--color-white);
}

.president-content {
  display: flex;
  gap: 56px;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto;
}

/* 写真エリア */
.president-photo {
  flex: 0 0 380px;
  position: sticky;
  top: calc(var(--header-height) + 32px);
}

.president-photo-frame {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.president-photo-frame::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.25) 0%, transparent 100%);
  pointer-events: none;
}

.president-photo-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.president-name-card {
  text-align: center;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.president-position {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.1em;
}

.president-name {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.08em;
}

/* 挨拶文エリア */
.president-message {
  flex: 1;
  min-width: 0;
}

/* テーマ */
.president-theme {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 48px;
  padding: 36px 24px;
  background: var(--color-bg-light);
  border-radius: 16px;
  position: relative;
}

.president-theme::before {
  content: "\201C";
  position: absolute;
  top: 8px;
  left: 24px;
  font-size: 4rem;
  color: var(--color-primary);
  opacity: 0.12;
  line-height: 1;
  font-family: serif;
}

.president-theme-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.president-theme-word {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.2em;
}

/* 本文 */
.president-text {
  font-size: 0.9375rem;
  line-height: 2.4;
  color: var(--color-text);
}

.president-text p {
  margin-bottom: 24px;
  text-indent: 1em;
}

.president-text p:last-child {
  margin-bottom: 0;
}

/* 署名 */
.president-signature {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.president-signature-title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-light);
  letter-spacing: 0.06em;
}

.president-signature-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.1em;
}

/* --- Section 2: 組織図 --- */
.org-section {
  background-color: var(--color-bg-light);
}

.org-chart {
  margin-top: 40px;
  text-align: center;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-white);
}

.org-chart img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Section 3: 委員会紹介 --- */
.committee-section {
  background-color: var(--color-white);
}

.committee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}

a.committee-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.committee-card {
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.committee-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.committee-card-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.committee-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.6s ease;
}

.committee-card:hover .committee-card-photo img {
  transform: scale(1.05);
}

.committee-card-body {
  padding: 20px 20px 24px;
  text-align: center;
}

.committee-card-name-group {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 12px;
  line-height: 1.4;
}

.committee-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}

.committee-card-role {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.1em;
}

.committee-card-person {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.06em;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .committee-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .president-content {
    gap: 40px;
  }

  .president-photo {
    flex: 0 0 260px;
  }
}

@media (max-width: 768px) {
  .president-content {
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }

  .president-photo {
    flex: none;
    width: 100%;
    max-width: 320px;
    position: static;
  }

  .president-theme-word {
    font-size: 2rem;
  }

  .president-theme {
    margin-bottom: 36px;
    padding: 28px 20px;
  }

  .president-text {
    font-size: 0.875rem;
    line-height: 2.2;
  }

  .president-signature-name {
    font-size: 1.25rem;
  }

  .org-chart {
    border-radius: 12px;
  }

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

  .committee-card-body {
    padding: 16px 12px 20px;
  }

  .committee-card-name-group {
    font-size: 0.875rem;
  }

  .committee-card-person {
    font-size: 0.9375rem;
  }
}
