/* Social Work Open Seminar — socialwork-jp.com */
/* Original: IBM Homepage Builder, table layout, academic site */
/* Layout: centered 980px, light academic, blue-green accents */

/* ═══════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  line-height: 1.75;
  color: #333;
  background: #f0efe8;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #2c5f8a; text-decoration: none; transition: color 0.2s; }
a:hover { color: #1a3d5c; }

/* ═══════════════════════════════════════
   HEADER
   ═══════════════════════════════════════ */
.sw-header {
  background: #2c5f8a;
  border-bottom: 3px solid #1a3d5c;
  padding: 0;
}
.sw-header-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sw-logo {
  text-decoration: none;
  color: #fff;
}
.sw-logo:hover { color: #d0e4f0; }
.sw-logo-text {
  font-size: 1.35em;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.1;
  display: block;
}
.sw-logo .sw-sub {
  display: block;
  font-size: 0.42em;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  margin-top: 2px;
}
.sw-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: 1em;
  padding: 5px 11px;
  cursor: pointer;
  border-radius: 3px;
}
.sw-toggle:hover { border-color: #fff; }

/* ═══════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════ */
.sw-nav {
  background: #3a7aa8;
}
.sw-nav-menu {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  list-style: none;
  gap: 0;
}
.sw-nav-menu a {
  display: block;
  color: rgba(255,255,255,0.8);
  padding: 9px 14px;
  font-size: 0.82em;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}
.sw-nav-menu a:hover,
.sw-nav-menu a.active {
  color: #fff;
  background: rgba(0,0,0,0.12);
}

/* ═══════════════════════════════════════
   MAIN CONTAINER
   ═══════════════════════════════════════ */
.sw-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 26px 20px;
}

/* ═══════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════ */
.sw-hero {
  background: linear-gradient(135deg, #2c5f8a 0%, #3a7aa8 60%, #4a9ac8 100%);
  padding: 36px 30px;
  border-radius: 5px;
  margin-bottom: 26px;
  border: 1px solid #2c5f8a;
}
.sw-hero h1 {
  font-size: 1.7em;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 8px;
}
.sw-hero p {
  font-size: 0.92em;
  color: rgba(255,255,255,0.75);
  max-width: 500px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   ARTICLE LISTING
   ═══════════════════════════════════════ */
.sw-listing {
  margin: 20px 0;
}
.sw-entry {
  background: #fff;
  border: 1px solid #d5d0c4;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  gap: 14px;
  transition: border-color 0.2s;
}
.sw-entry:hover { border-color: #2c5f8a; }
.sw-entry-img {
  width: 130px;
  min-width: 130px;
  height: 98px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid #d5d0c4;
}
.sw-entry-text h3 {
  font-size: 0.95em;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}
.sw-entry-text h3 a { color: #333; }
.sw-entry-text h3 a:hover { color: #2c5f8a; }
.sw-entry-text p {
  font-size: 0.82em;
  color: #777;
  margin: 0;
  line-height: 1.5;
}
.sw-entry-date {
  font-size: 0.72em;
  color: #aaa;
  margin-top: 4px;
}
.sw-badge {
  display: inline-block;
  background: #2c5f8a;
  color: #fff;
  font-size: 0.62em;
  padding: 2px 7px;
  border-radius: 2px;
  font-weight: 500;
  margin-right: 5px;
}

/* ═══════════════════════════════════════
   SECTION HEADING
   ═══════════════════════════════════════ */
.sw-heading {
  font-size: 1em;
  font-weight: 700;
  color: #2c5f8a;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid #3a7aa8;
  display: inline-block;
}

/* ═══════════════════════════════════════
   ARTICLE PAGE
   ═══════════════════════════════════════ */
.sw-article {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
}
.sw-article-header {
  margin-bottom: 20px;
}
.sw-crumb {
  font-size: 0.76em;
  color: #999;
  margin-bottom: 10px;
}
.sw-crumb a { color: #2c5f8a; }
.sw-article-header h1 {
  font-size: 1.65em;
  font-weight: 700;
  color: #1a3d5c;
  line-height: 1.2;
  margin-bottom: 8px;
}
.sw-article-meta {
  font-size: 0.78em;
  color: #999;
  padding-bottom: 10px;
  border-bottom: 1px solid #d5d0c4;
  margin-bottom: 16px;
}
.sw-main-img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 20px;
  border: 1px solid #d5d0c4;
}
.sw-side-img {
  float: right;
  margin: 0 0 12px 16px;
  max-width: 240px;
  border-radius: 3px;
  border: 1px solid #d5d0c4;
}

/* ═══════════════════════════════════════
   ARTICLE BODY
   ═══════════════════════════════════════ */
.sw-text {
  font-size: 0.96em;
  line-height: 1.85;
  color: #444;
}
.sw-text h2 {
  color: #1a3d5c;
  font-size: 1.25em;
  margin: 24px 0 10px;
}
.sw-text h3 {
  color: #2c5f8a;
  font-size: 1.02em;
  margin: 18px 0 6px;
}
.sw-text p { margin-bottom: 12px; }
.sw-text ul, .sw-text ol {
  margin: 6px 0 14px 22px;
}
.sw-text li { margin-bottom: 4px; }
.sw-text strong { color: #333; }
.sw-text blockquote {
  border-left: 3px solid #3a7aa8;
  margin: 14px 0;
  padding: 10px 16px;
  background: #f0f6fa;
  color: #555;
  border-radius: 0 4px 4px 0;
}
.sw-text a { text-decoration: underline; text-underline-offset: 2px; }
.sw-text a:hover { color: #1a3d5c; }

/* ═══════════════════════════════════════
   TABLES
   ═══════════════════════════════════════ */
.sw-text table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0;
  font-size: 0.86em;
}
.sw-text th, .sw-text td {
  padding: 7px 10px;
  border: 1px solid #d5d0c4;
  text-align: left;
}
.sw-text th {
  background: #2c5f8a;
  color: #fff;
  font-weight: 600;
}
.sw-text tr:nth-child(even) { background: #f6f5f0; }
.sw-text tr:hover { background: #f0f6fa; }

/* ═══════════════════════════════════════
   RELATED
   ═══════════════════════════════════════ */
.sw-related {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #d5d0c4;
}
.sw-related h2 {
  font-size: 1.05em;
  color: #1a3d5c;
  margin-bottom: 12px;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.sw-footer {
  background: #1a3d5c;
  border-top: 3px solid #2c5f8a;
  padding: 26px 20px;
  margin-top: 34px;
}
.sw-footer-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.sw-footer-about {
  flex: 2;
  min-width: 180px;
}
.sw-footer-about p {
  color: rgba(255,255,255,0.45);
  font-size: 0.8em;
  margin-top: 6px;
  line-height: 1.5;
}
.sw-footer-links {
  flex: 1;
  min-width: 130px;
}
.sw-footer-links h4 {
  color: rgba(255,255,255,0.6);
  font-size: 0.8em;
  margin-bottom: 8px;
  font-weight: 600;
}
.sw-footer-links ul { list-style: none; }
.sw-footer-links li { margin-bottom: 4px; }
.sw-footer-links a { color: rgba(255,255,255,0.4); font-size: 0.8em; }
.sw-footer-links a:hover { color: #d0e4f0; }
.sw-footer-copy {
  max-width: 980px;
  margin: 12px auto 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.72em;
  color: rgba(255,255,255,0.35);
}

/* ═══════════════════════════════════════
   SERVICE PAGES
   ═══════════════════════════════════════ */
.sw-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 26px 20px;
}
.sw-page h1 {
  font-size: 1.6em;
  font-weight: 700;
  color: #1a3d5c;
  margin-bottom: 12px;
}
.sw-page h2 {
  color: #2c5f8a;
  font-size: 1.1em;
  margin: 20px 0 8px;
}
.sw-page p { margin-bottom: 10px; color: #555; }
.sw-page ul { margin: 5px 0 12px 18px; color: #555; }
.sw-page li { margin-bottom: 3px; }

/* ═══════════════════════════════════════
   RESPONSIVE — 760px
   ═══════════════════════════════════════ */
@media (max-width: 760px) {
  .sw-toggle { display: block; }
  .sw-nav-menu { display: none; flex-direction: column; padding: 0; }
  .sw-nav-menu.open { display: flex; }
  .sw-nav-menu a { padding: 10px 20px; border-bottom: 1px solid rgba(0,0,0,0.1); }
  .sw-hero { padding: 24px 18px; }
  .sw-hero h1 { font-size: 1.35em; }
  .sw-article-header h1 { font-size: 1.35em; }
  .sw-entry { flex-direction: column; }
  .sw-entry-img { width: 100%; min-width: auto; height: 150px; }
  .sw-footer-inner { flex-direction: column; }
  .sw-side-img { float: none; max-width: 100%; margin: 0 0 12px 0; }
}

/* ═══════════════════════════════════════
   RESPONSIVE — 480px
   ═══════════════════════════════════════ */
@media (max-width: 480px) {
  .sw-hero h1 { font-size: 1.15em; }
  .sw-hero { padding: 18px 14px; }
  .sw-logo-text { font-size: 1.1em; }
  .sw-logo .sw-sub { display: none; }
  .sw-article-header h1 { font-size: 1.2em; }
}
