/* 共通*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    Meiryo, sans-serif;
}
html {
  scroll-behavior: smooth;
}
body {
  color: #2d3748;
  line-height: 1.8;
  background-color: #f7fafc;
}
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー*/
header {
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 34, 68, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 0;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.major-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-img {
  height: 40px;
  width: auto;
}
.major-header h1 {
  font-size: 24px;
  color: #002244;
  font-weight: bold;
}
.navigation ul {
  display: flex;
  gap: 25px;
  list-style: none;
}
.navigation a {
  font-weight: bold;
  color: #4a5568;
  text-decoration: none;
  font-size: 15px;
}
.navigation a:hover {
  color: #004488;
}

/*プロフィール */
.p-hero {
  background: linear-gradient(135deg, #00152e 0%, #1a365d 100%);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
  border-bottom: 4px solid #d9534f;
}
.p-hero_sub {
  font-size: 13px;
  letter-spacing: 3px;
  color: #ffcc00;
  font-weight: bold;
  display: block;
  margin-bottom: 10px;
}
.p-hero h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 15px;
}
.p-hero_lead {
  font-size: 16px;
  color: #e2e8f0;
}

/* メイン */
.p-main-layout {
  display: flex;
  gap: 40px;
  padding: 50px 20px;
  align-items: flex-start;
}

/* --- 左側：サイドバーカード --- */
.p-sidebar {
  width: 330px;
  position: sticky;
  top: 100px;
}
.p-profile-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 4px 20px rgba(0, 34, 68, 0.05);
  border: 1px solid #e2e8f0;
}
.p-avatar-wrapper {
  text-align: center;
  margin-bottom: 20px;
}
.p-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid #002244;
  object-fit: cover;
  background-color: #f7fafc;
}
.p-meta-info {
  text-align: center;
  margin-bottom: 25px;
  border-bottom: 1px dashed #cbd5e1;
  padding-bottom: 15px;
}
.p-job-title {
  font-size: 12px;
  background-color: #002244;
  color: #fff;
  padding: 2px 12px;
  border-radius: 4px;
  font-weight: bold;
}
.p-meta-info h3 {
  font-size: 22px;
  color: #002244;
  margin-top: 8px;
  font-weight: bold;
}
.p-job-sub {
  font-size: 12px;
  color: #718096;
}

/* タイムライン */
.p-sidebar h4 {
  font-size: 15px;
  color: #002244;
  border-left: 4px solid #d9534f;
  padding-left: 10px;
  margin-bottom: 15px;
  font-weight: bold;
}
.p-timeline-section {
  margin-bottom: 35px;
}
.p-timeline {
  list-style: none;
  font-size: 13px;
  padding-left: 5px;
}
.p-timeline li {
  position: relative;
  padding-left: 20px;
  padding-bottom: 15px;
  border-left: 1px solid #cbd5e1;
  color: #4a5568;
}
.p-timeline li:last-child {
  border-left: none;
  padding-bottom: 0;
}
.p-timeline li::before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: 6px;
  width: 8px;
  height: 8px;
  background-color: #002244;
  border-radius: 50%;
}
.p-timeline .year {
  font-weight: bold;
  color: #002244;
  display: block;
  margin-bottom: 2px;
}

/* 修正　合格実績 */
.p-achieve-section {
  margin-top: 25px;
}
.p-achieve-list {
  list-style: none;
  font-size: 14px;
  padding: 0 2px;
}

/* 実績行の共通余白 */
.p-achieve-list li {
  padding: 12px 0;
  border-bottom: 1px solid #f0f4f8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 1.4;
}

/* ゴールド枠で特別に引き立てる */
.p-achieve-list li:first-child {
  background-color: #fffbf0;
  border: 1px solid #fbd38d;
  border-radius: 6px;
  padding: 12px 12px;
  margin-bottom: 14px;
  font-size: 14.5px;
}
.p-achieve-list li:first-child strong {
  color: #b7791f;
}

/* 後続の私立大学リスト */
.p-achieve-list li:not(:first-child) {
  font-size: 13px;
  color: #4a5568;
}
.p-achieve-list li:not(:first-child) strong {
  color: #2d3748;
  font-weight: 600;
}

/* 見栄えの調整 */
.badge-status {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: bold;
  white-space: nowrap;
  letter-spacing: 0.5px;
}
.badge-status {
  background-color: #e1effe;
  color: #1a56db;
} /* 青色：国公立現役 */

.badge-status.sub {
  background-color: #f3f4f6;
  color: #4b5563;
} /* グレー：追加・補欠合格 */

.badge-status.pass-1st {
  background-color: #fde8e8;
  color: #9b1c1c;
} /* 赤色：1次合格 */

/* 共通テスト得点率ノートのボックス */
.p-achieve-note {
  font-size: 13px;
  text-align: center;
  background-color: #fdf2f8;
  color: #9d174d;
  padding: 10px;
  border-radius: 6px;
  margin-top: 18px;
  font-weight: bold;
  border: 1px solid #fbcfe8;
}

/* 右側：ストーリー本文 */
.p-story-content {
  flex-grow: 1;
}
.story-block {
  background-color: #fff;
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 34, 68, 0.02);
  border: 1px solid #e2e8f0;
}
.story-block h2 {
  font-size: 24px;
  color: #002244;
  line-height: 1.5;
  margin-bottom: 25px;
  font-weight: bold;
}
.story-block h3 {
  font-size: 20px;
  color: #002244;
  margin-bottom: 20px;
  font-weight: bold;
}
.highlight {
  color: #d9534f;
}
.story-body p {
  font-size: 15px;
  color: #4a5568;
  margin-bottom: 18px;
  text-align: justify;
}
.story-body p strong {
  color: #1a202c;
}
.story-header-badge {
  display: inline-block;
  background-color: #e53e3e;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 3px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.emphasize-box {
  background-color: #f7fafc;
  border-left: 4px solid #002244;
  padding: 20px;
  border-radius: 0 8px 8px 0;
  font-weight: bold;
  margin-top: 25px;
}
.insight-box {
  background-color: #f0f4f8;
  border-left: 4px solid #d9534f;
  padding: 20px;
  border-radius: 0 8px 8px 0;
  margin-top: 25px;
  font-size: 14.5px;
}

/* 結び */
.conclusion {
  background: linear-gradient(to bottom, #fff 0%, #f7fafc 100%);
  border: 2px solid #002244;
  text-align: center;
}
.conclusion h3 {
  font-size: 22px;
  color: #002244;
  margin-bottom: 20px;
}
.p-cta-wrapper {
  margin-top: 35px;
}
.p-cta-btn {
  display: inline-block;
  background: linear-gradient(180deg, #ff6600 0%, #e64a00 100%);
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  padding: 15px 50px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(230, 74, 0, 0.3);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.p-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(230, 74, 0, 0.5);
}
.p-cta-sub {
  font-size: 12px;
  font-weight: normal;
  color: #ffe6d5;
}

/*フッター */
footer {
  background-color: #00152e;
  color: #94a3b8;
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
  margin-top: 5px;
}
.footer_nav ul {
  display: flex;
  justify-content: center;
  gap: 30px;
  list-style: none;
  margin-bottom: 20px;
}
.footer_nav a {
  color: #94a3b8;
  text-decoration: none;
}
.footer_nav a:hover {
  color: #fff;
  text-decoration: underline;
}
.copyright {
  font-size: 12px;
  color: #64748b;
  border-top: 1px solid #002244;
  padding-top: 20px;
}

/* スマホ用 */
.c-floating_btn_area {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 12px 20px;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.08);
  z-index: 9999;
}
.floating-btn {
  display: block;
  background: linear-gradient(180deg, #ff6600 0%, #e64a00 100%);
  color: #fff;
  text-align: center;
  padding: 12px;
  font-weight: bold;
  font-size: 16px;
  border-radius: 30px;
  text-decoration: none;
}

/* レス*/
@media (max-width: 960px) {
  .p-main-layout {
    flex-direction: column;
    gap: 30px;
  }
  .p-sidebar {
    width: 100%;
    position: relative;
    top: 0;
  }
  .p-profile-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
  }
  .p-avatar-wrapper {
    margin-bottom: 0;
  }
  .p-meta-info {
    border-bottom: none;
    padding-bottom: 0;
  }
  .p-timeline-section,
  .p-achieve-section {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 70px;
  }
  .header-inner {
    flex-direction: column;
    gap: 10px;
  }
  .p-profile-card {
    display: block;
  }
  .p-avatar-wrapper {
    margin-bottom: 15px;
  }
  .p-meta-info {
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 15px;
    margin-bottom: 20px;
  }
  .story-block {
    padding: 25px 20px;
  }
  .story-block h2 {
    font-size: 20px;
  }
  .story-block h3 {
    font-size: 17px;
  }
  .p-cta-btn {
    font-size: 16px;
    padding: 12px 25px;
    width: 100%;
  }
  .c-floating_btn_area {
    display: block;
  }
}
