@charset "UTF-8";

/* ==========================================================================
   Base Styles & Design System
   ========================================================================== */
:root {
  /* Main Palette */
  --primary-color: #0056b3;
  /* Deeper, more trustworthy blue */
  --primary-light: #e6f0ff;
  --accent-color: #f39c12;
  /* Professional Gold/Orange */
  --secondary-color: #2c3e50;
  /* Dark navy for headings */

  /* Neutral Colors */
  --text-main: #333333;
  --text-muted: #666666;
  --bg-body: #f4f7f9;
  --bg-card: #ffffff;
  --border-color: #d1d9e6;

  /* Shadows & Glassmorphism */
  --shadow-soft: 0 10px 30px rgba(0, 86, 179, 0.05);
  --shadow-medium: 0 15px 35px rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.3);

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
  font-family:
    YakuHanJP,
    "Inter",
    "Noto Sans JP",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  line-height: 1.8;
  color: var(--text-main);
  background-color: var(--bg-body);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

/* ==========================================================================
   Layout
   ==========================================================================*/
/* Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  @media screen and (max-width: 767px) {
    padding: 0 10px;
  }
}

.breadcrumb {
  margin: 20px 0;
}

.breadcrumb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-light);
  @media screen and (max-width: 767px) {
    gap: 4px;
  }
}

.breadcrumb-list a:first-child {
  margin-left: 0;
}

.breadcrumb-list a {
  color: var(--text-light);
}

.breadcrumb-list a:hover {
  color: var(--primary-color);
}

.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}

.main-content {
  flex: 1;
  min-width: 0;
  background: var(--bg-card);
  padding: 50px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--glass-border);
}

.sidebar {
  width: 280px;
}

/* ==========================================================================
   Kaisei Group Header
   ========================================================================== */
.kaisei-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

.kaisei-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  @media screen and (max-width: 767px) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, max-content);
    grid-template-areas: "logo logo" "orangeBtn greenBtn" "phoneBox phoneBox";
    gap: 0 5px;
    padding: 0 10px;
  }
}
.kaisei-logo {
  text-align: center;
  @media screen and (max-width: 767px) {
    grid-area: logo;
  }
}
.kaisei-logo img {
  height: auto;
  width: auto;
  max-width: 420px;
  @media screen and (max-width: 767px) {
    height: auto;
    max-width: 240px;
    margin: auto;
  }
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 15px;
  @media screen and (max-width: 767px) {
    display: contents;
  }
}

.cta-btn {
  padding: 10px 25px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1rem;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  @media screen and (max-width: 767px) {
    padding: 0.3em;
  }
}

.cta-btn::after {
  content: "▶";
  font-size: 0.8rem;
}

.cta-btn.orange {
  background: linear-gradient(180deg, #ff9d00 0%, #ff7e00 100%);
  border-bottom: 3px solid #cc6500;
  @media screen and (max-width: 767px) {
    grid-area: orangeBtn;
  }
}

.cta-btn.orange:hover {
  color: #fff;
  background: linear-gradient(180deg, #ffae2e 0%, #ff8c1a 100%);
}

.cta-btn.green {
  background: linear-gradient(180deg, #82c800 0%, #68a000 100%);
  border-bottom: 3px solid #527a00;
  @media screen and (max-width: 767px) {
    grid-area: greenBtn;
  }
}

.cta-btn.green:hover {
  color: #fff;
  background: linear-gradient(180deg, #93e200 0%, #75b500 100%);
}

.phone-box {
  text-align: right;
  color: #003775;
  display: flex;
  align-items: center;
  gap: 10px;
  @media screen and (max-width: 767px) {
    grid-area: phoneBox;
    justify-content: center;
    display: none;
  }
}

.phone-box .number {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  @media screen and (max-width: 767px) {
    font-size: 1.3rem;
  }
}

.phone-box .number::before {
  content: "📞";
  font-size: 1.2rem;
  margin-right: 5px;
}

.phone-box .reception {
  font-size: 0.7rem;
  display: block;
  text-align: left;
  line-height: 1.2;
}

/* Sub Navigation Header */
header {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  @media screen and (max-width: 767px) {
    display: none;
  }
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-color), #00a0e9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav a {
  margin-left: 25px;
  font-weight: 600;
  color: var(--secondary-color);
}

nav a:hover {
  color: var(--primary-color);
}

/* ==========================================================================
   Article Content
   ========================================================================== */
.post-header {
  margin-bottom: 40px;
  text-align: left;
  @media screen and (max-width: 767px) {
    margin-bottom: 32px;
  }
}

h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 15px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.post-date {
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  @media screen and (max-width: 767px) {
    margin-bottom: 0px;
  }
}

.post-date::before {
  content: "📅";
}

/* Typography Enhancements */
h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-top: 60px;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-top: 40px;
  margin-bottom: 15px;
  border-left: 6px solid var(--primary-light);
  padding-left: 15px;
  @media screen and (max-width: 767px) {
    line-height: 1.5;
    font-size: 1.3rem;
  }
}

p {
  margin-bottom: 25px;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  @media screen and (max-width: 767px) {
    margin-bottom: 1em;
    font-size: 1rem;
  }
}

.school-image {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin: 30px 0;
  border-radius: 16px;
  font-style: italic;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Interactive Elements
   ========================================================================== */
/* TOC */
.toc {
  background: var(--primary-light);
  border: none;
  padding: 30px;
  margin: 40px 0;
  border-radius: 16px;
  @media screen and (max-width: 767px) {
    margin: 1em 0;
    padding: 1em;
  }
}

.toc-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.toc ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 0;
}

.toc li a {
  display: block;
  padding: 10px calc(1em + 15px) 10px 15px;
  background: var(--bg-card);
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: var(--transition-smooth);
  position: relative;
  &:after {
    content: "";
    width: 0.5em;
    height: 0.5em;
    border-right: 3px solid var(--primary-color);
    border-top: 3px solid var(--primary-color);
    rotate: 135deg;
    display: block;
    position: absolute;
    right: 1em;
    top: 50%;
    translate: 0 -50%;
  }
}

.toc li a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  background: var(--primary-color);
  color: #fff;
}

/* Tables */
table {
  width: 100%;
  min-width: 480px;
  max-width: max-content;
  border-collapse: separate;
  border-spacing: 0;
  margin: 30px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  @media screen and (max-width: 767px) {
    min-width: unset;
    max-width: 100%;
    margin: 1em 0;
  }
}

th {
  background: var(--secondary-color);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 1em;
  text-align: left;
}

td {
  padding: 0.5em;
  background: #fff;
  border-top: 1px solid var(--border-color);
  @media screen and (max-width: 767px) {
    padding: 0.5em;
    font-size: 0.9em;
  }
}

tr:nth-child(even) td {
  background: #fafafa;
}

/* ==========================================================================
   Sidebar Widgets
   ========================================================================== */
.widget {
  background: var(--bg-card);
  padding: 25px;
  border-radius: 20px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-soft);
}

.widget-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: none;
  padding-left: 0;
}
.widget-title:first-child {
  margin-top: 20px;
}

.widget-title::before {
  content: "";
  width: 4px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 2px;
}

.sidebar-list {
  padding-left: 1em;
}

.sidebar-list li {
  margin-bottom: 12px;
}

.sidebar-list a {
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  border-bottom: none;
  display: flex;
  justify-content: space-between;
  @media screen and (max-width: 767px) {
    padding: 0;
  }
}

.sidebar-list a:hover {
  background: var(--primary-light);
  color: var(--primary-color);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: var(--secondary-color);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0;
  text-align: center;
  margin-top: 80px;
}

footer p {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .sidebar {
    width: 100%;
  }

  .main-content {
    padding: 30px;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-top: 48px;
  }

  .school-image {
    height: 250px;
  }

  .toc ul {
    grid-template-columns: 1fr;
  }

  .main-content {
    padding: 20px;
  }
}

/* Utility */
.marker {
  background: linear-gradient(transparent 70%, rgba(243, 156, 18, 0.3) 70%);
  font-weight: bold;
  color: var(--primary-color);
}

.exam-info-box {
  background: #fff;
  border: 2px solid var(--primary-light);
  border-radius: 12px;
  padding: 30px;
  margin: 40px 0;
  @media screen and (max-width: 767px) {
    margin: 1em 0;
    padding: 1em;
  }
}
.exam-info-box p:last-child {
  margin-bottom: 0;
}

.exam-info-box.secondary {
  background: #fff9e6;
  border: 1px solid #ffeaa7;
}

.exam-info-title {
  margin-top: 0 !important;
  color: #d35400 !important;
  border-left: none !important;
  padding-left: 0 !important;
  font-size: 1.3rem;
}

.exam-info-link {
  font-weight: bold;
  text-decoration: underline;
}

/* ==========================================================================
   Brand Links Section
   ========================================================================== */
.brand-links-section {
  margin: 80px 0 40px;
  padding-top: 60px;
  border-top: 2px solid var(--primary-light);
  @media screen and (max-width: 767px) {
    margin: 40px 0 20px;
  }
}

.brand-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary-color);
  @media screen and (max-width: 767px) {
    font-size: 1.6rem;
    margin-top: 0;
  }
}
.brand-section-title:after {
  left: 50%;
  translate: -50% 0;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.brand-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: var(--transition-smooth);
  border: 1px solid #eee;
  display: block;
  color: inherit;
}

.brand-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  color: inherit !important;
}

.brand-card-top {
  background: #007300;
  color: #fff;
  padding: 8px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: bold;
}

.brand-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.brand-card-body {
  padding: 20px;
  text-align: center;
}

.brand-catch {
  font-size: 0.9rem;
  margin-bottom: 15px;
  height: 3em;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

.brand-logo-img {
  height: 35px;
  width: auto;
  object-fit: contain;
  margin-bottom: 15px;
}

.brand-card:last-child .brand-logo-img {
  height: 25px;
}

.brand-labels {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.brand-label {
  background: #007300;
  color: #fff;
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: bold;
}

@media (max-width: 900px) {
  .brand-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   調整用
   ========================================================================== */

.al-center {
  text-align: center;
}
.al-left {
  text-align: left;
}
.al-center_sp {
  @media screen and (max-width: 767px) {
    text-align: center;
  }
}
.al-left_sp {
  @media screen and (max-width: 767px) {
    text-align: left;
  }
}
.caution {
  font-size: 0.75rem;
  margin: 0;
}
