/* =============================================
   岡山大学 地域医療人材育成講座関連システム
   ポータルサイト スタイルシート
   ============================================= */

/* --- Custom Properties --- */
:root {
  /* メインカラー #007dc5 を基調とした配色 */
  --color-primary:       #007dc5;
  --color-primary-dark:  #005f99;
  --color-primary-light: #E3F2FD;
  --color-accent:        #0094e8;
  --color-bg:            #F7F8FA;
  --color-white:         #FFFFFF;
  --color-text:          #2D2D2D;
  --color-text-light:    #555555;
  --color-border:        #E0E0E0;
  --color-footer-bg:     #1A1A1A;

  --font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont,
                 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --max-width:      1040px;
  --header-height:  72px;
  --border-radius:  12px;
  --shadow-card:       0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 8px 36px rgba(0, 0, 0, 0.14);
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Header --- */
.header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__logo {
  flex-shrink: 0;
}

.header__logo-img {
  height: 44px;
  width: auto;
}

.header__title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}

.header__title-univ {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

.header__title-dept {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* --- Catchcopy --- */
.catchcopy {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.catchcopy__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 44px;
  text-align: center;
}

.catchcopy__text {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.06em;
  line-height: 1.6;
}

/* --- Cards Section --- */
.cards {
  flex: 1;
  padding: 48px 24px 64px;
}

.cards__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* --- Card --- */
.card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 40px 32px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
  border-top: 4px solid var(--color-primary);
}

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

.card__icon-wrapper {
  margin-bottom: 20px;
}

.card__icon {
  display: block;
}

.card__name {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.card__fullname {
  font-size: 0.78rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.card__desc {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 28px;
  flex: 1;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background var(--transition), transform var(--transition);
}

.card__link:hover,
.card__link:focus-visible {
  background: var(--color-accent);
  transform: translateX(4px);
}

.card__link:focus-visible {
  outline: 3px solid var(--color-primary-light);
  outline-offset: 2px;
}

.card__link-arrow {
  transition: transform var(--transition);
}

.card__link:hover .card__link-arrow {
  transform: translateX(4px);
}

/* --- Footer --- */
.footer {
  background: var(--color-footer-bg);
  color: rgba(255, 255, 255, 0.7);
  padding: 0 24px;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 0;
  text-align: center;
}

.footer__copy {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* --- Responsive (≤ 768px) --- */
@media screen and (max-width: 768px) {

  :root {
    --header-height: 64px;
  }

  .header {
    padding: 0 16px;
  }

  .header__logo-img {
    height: 36px;
  }

  .header__title-univ {
    font-size: 0.7rem;
  }

  .header__title-dept {
    font-size: 0.85rem;
  }

  .catchcopy__inner {
    padding: 32px 16px 28px;
  }

  .catchcopy__text {
    font-size: 1.1rem;
  }

  .cards {
    padding: 32px 16px 48px;
  }

  .cards__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .card {
    padding: 32px 24px 28px;
  }

  .card__name {
    font-size: 1.5rem;
  }

  .footer {
    padding: 0 16px;
  }
}

/* --- Accessibility: Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* --- Print --- */
@media print {
  .header {
    position: static;
    box-shadow: none;
  }
  .card {
    box-shadow: none;
    border: 1px solid var(--color-border);
    break-inside: avoid;
  }
}
