@charset "UTF-8";

/* ==========================================================================
   1. CSS Variables & Base Reset
   元サイト（HAIK haik_seed / haik-palette-brown）の配色・タイポグラフィ・余白を忠実に再現
   ========================================================================== */
:root {
  --color-primary: #795548;
  --color-primary-hover: #996b5b;
  --color-primary-alpha: rgba(121, 85, 72, 0.8);
  --color-cta: #5cb85c;
  --color-cta-dark: #449d44;
  --color-cta-border: #4cae4c;
  --color-accent-pink: #c94c7c;
  --color-accent-cyan: #00bcd4;
  --color-text: #444444;
  --color-heading-dark: #333333;
  --color-muted: #767676;
  --color-bg: #ffffff;
  --color-eyecatch-bg: #eeeeee;
  --color-border: #ededed;
  --color-border-strong: #dddddd;
  --font-base: "游ゴシック体", "Yu Gothic", YuGothic, "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", "Meiryo", sans-serif;
  --container-width: 1075px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: var(--font-base);
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text);
  background-color: var(--color-bg);
  word-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: #337ab7;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
}

a:hover,
a:focus {
  color: #23527c;
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 10px 16px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
  color: #ffffff;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

/* ==========================================================================
   2. Header & Global Navigation (header / nav)
   ========================================================================== */
.site-header {
  background-color: var(--color-bg);
}

.headcopy {
  background-color: transparent;
  border-bottom: none;
  padding: 0;
}

.headcopy h1,
.headcopy .headcopy-text {
  margin: 10px 0 0;
  font-size: 11px;
  font-weight: 400;
  color: var(--color-muted);
  line-height: 1.4;
}

.site-nav {
  background-color: transparent;
  font-size: 13px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  flex-wrap: wrap;
}

.site-brand {
  color: var(--color-text);
  font-size: 15px;
  font-weight: 400;
  padding: 15px 0;
  line-height: 20px;
  text-decoration: none;
}

.site-brand:hover,
.site-brand:focus {
  color: var(--color-primary);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background-color: var(--color-primary);
  border: 1px solid var(--color-primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 5px 9px 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}

.nav-toggle:hover,
.nav-toggle:focus {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  letter-spacing: 0.1em;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: block;
  padding: 14px;
  color: var(--color-text);
  font-size: 13px;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a:focus,
.nav-list li.active a {
  color: var(--color-primary);
  text-decoration: none;
}

/* ==========================================================================
   3. Eyecatch / Page Header Section (.haik-eyecatch-top .jumbotron)
   ========================================================================== */
.eyecatch-section {
  background-color: var(--color-eyecatch-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
  padding: 0;
  margin-bottom: 0;
}

.eyecatch-section.eyecatch-fixed {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eyecatch-inner {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px;
}

.eyecatch-fixed .eyecatch-inner {
  padding: 15px 30px;
}

.eyecatch-inner p {
  font-size: 16px;
  margin: 15px 0;
}

.eyecatch-spacer-50 {
  margin-top: 50px;
}

.eyecatch-section h1 {
  margin: 15px 0;
  font-size: 26px;
  color: #494949;
  font-weight: 500;
  line-height: 1.1;
}

/* ==========================================================================
   4. Buttons & Common UI Elements (.btn-success.btn-lg.btn-gradient)
   ========================================================================== */
.btn-cta {
  display: inline-block;
  padding: 15px 45px;
  margin: 10px 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3333333;
  letter-spacing: 0.09em;
  color: #ffffff;
  background-color: #5cb85c;
  background-image: linear-gradient(#62c462, #51a351);
  border: 1px solid #51a351;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
}

.btn-cta:hover,
.btn-cta:focus {
  color: #ffffff;
  background-color: #62c462;
  background-image: linear-gradient(#62c462, #62c462);
  border-color: #51a351;
  text-decoration: none;
}

/* ==========================================================================
   5. Main Content & Typography (main / section)
   ========================================================================== */
.main-content {
  margin: 30px 0;
}

.spacer-100 {
  margin-top: 100px;
}

.spacer-neg30 {
  margin-top: -30px;
}

.main-content h2 {
  color: var(--color-primary);
  border: 1px solid var(--color-border-strong);
  border-left: 5px solid var(--color-primary);
  padding: 5px 15px;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.1;
  margin: 30px 0 25px;
  background-color: #ffffff;
}

.main-content > h2:first-child,
.main-content > section:first-child > h2:first-child {
  margin-top: 0;
}

.main-content h3 {
  color: var(--color-heading-dark);
  border-bottom: 2px solid var(--color-border);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.1;
  margin: 20px 0 15px;
}

.main-content h4 {
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.1;
  margin: 15px 0 10px;
}

.main-content p {
  margin: 0 0 30px;
  font-size: 15px;
  line-height: 1.42857143;
}

.full-hr {
  border: 0;
  border-top: 1px solid #eeeeee;
  margin: 20px 0;
}

.text-center {
  text-align: center;
}

.url-break,
.main-content a,
.sidebar-list a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.qr-image {
  width: 151px;
  height: auto;
}

.qr-image-2025 {
  width: 173px;
  height: auto;
}

.deco-large-bold {
  font-size: large;
}

.deco-pink {
  font-size: large;
  color: var(--color-accent-pink);
}

.deco-cyan-bold {
  color: var(--color-accent-cyan);
}

/* ==========================================================================
   6. Blog Cards & Article Layout (QBlog)
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin: 20px 0;
}

.blog-card {
  display: block;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  padding: 4px;
  margin-bottom: 20px;
  background-color: rgba(255, 255, 255, 0.5);
  color: var(--color-text);
  text-decoration: none;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.blog-card:hover,
.blog-card:focus {
  background-color: rgba(121, 85, 72, 0.5);
  opacity: 0.8;
  text-decoration: none;
}

.blog-card-thumb {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: hidden;
  margin: 0 auto;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}

.blog-card-date {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 12px 6px 3px;
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0.1em;
  line-height: 20px;
  text-align: left;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  width: 100%;
}

.blog-card-caption {
  padding: 9px 0;
}

.blog-card-caption .blog-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  border: none;
  margin: 0;
  padding: 0 5px;
  line-height: 1.4;
  min-height: 3.2em;
}

/* 2-column layout for blog index & post pages (col-md-9 : col-md-3) */
.layout-two-col {
  display: grid;
  grid-template-columns: minmax(0, 9fr) minmax(0, 3fr);
  gap: 30px;
  align-items: start;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  margin-bottom: 1em;
}

.post-date {
  font-size: 13px;
  color: #000000;
}

.post-category-badge {
  display: inline-block;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  background-color: #999999;
  border-radius: 10px;
  text-decoration: none;
}

.post-category-badge:hover,
.post-category-badge:focus {
  background-color: #999999;
  color: #ffffff;
  text-decoration: none;
}

.pager {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: flex;
  justify-content: space-between;
}

.pager li a {
  display: inline-block;
  padding: 5px 14px;
  background-color: #ffffff;
  border: 1px solid var(--color-border-strong);
  border-radius: 15px;
  color: #337ab7;
  font-size: 15px;
}

.pager li a:hover {
  background-color: #eeeeee;
  text-decoration: none;
}

.pager .next {
  margin-left: auto;
}

/* ==========================================================================
   7. Steps 3-Column Grid (参加方法)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin: 0;
}

.step-col h3:first-child {
  margin-top: 0;
}

/* ==========================================================================
   8. Blog Sidebar (aside.haik-article-menu)
   ========================================================================== */
.blog-sidebar {
  margin: 30px 0;
}

.blog-sidebar h2 {
  color: var(--color-text);
  font-size: 16px;
  font-weight: 500;
  padding: 7px 15px;
  margin: 15px 0 0;
  border: none;
  border-bottom: 2px solid var(--color-border);
}

.blog-sidebar h2:first-child {
  margin-top: 15px;
}

.sidebar-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.sidebar-list li {
  border-bottom: 1px dotted var(--color-muted);
  margin-top: 0;
}

.sidebar-list li a {
  display: block;
  padding: 10px 15px;
  color: var(--color-text);
  font-size: 13px;
  line-height: 1.42857143;
}

.sidebar-list li a:hover,
.sidebar-list li.active a {
  color: var(--color-primary);
  text-decoration: none;
}

/* ==========================================================================
   9. Footer (.haik-footer & .haik-licence)
   ========================================================================== */
.site-footer {
  margin-top: 0;
}

.footer-nav-bar {
  padding: 30px 0;
}

.footer-border {
  padding: 20px 15px;
  border-top: 1px solid var(--color-border);
}

.footer-links {
  margin: 0;
  font-size: 14px;
  color: var(--color-muted);
}

.footer-links a {
  color: var(--color-muted);
}

.footer-links a:hover {
  color: var(--color-muted);
  text-decoration: underline;
}

.footer-licence {
  padding: 15px;
  text-align: center;
  background-color: var(--color-primary-alpha);
  color: #ffffff;
}

.footer-licence p {
  margin: 0;
  font-size: 12px;
  color: #ffffff;
  letter-spacing: 0.01em;
  line-height: 1.5em;
}

.footer-licence a {
  color: #ffffff;
}

/* ==========================================================================
   9b. Event Program & PDF Flyer Blocks
   ========================================================================== */
.event-check-list {
  margin: 0 0 30px;
  padding-left: 1.4em;
  line-height: 1.75;
}

.event-check-list li {
  margin-bottom: 4px;
}

.program-list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  border-top: 1px solid var(--color-border);
}

.program-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 10px 4px;
  border-bottom: 1px dashed var(--color-border);
  font-size: 14px;
  line-height: 1.6;
}

.program-title {
  font-weight: 500;
  color: var(--color-text);
  flex: 1 1 260px;
}

.program-speaker {
  color: var(--color-muted);
}

.pdf-actions {
  margin: 20px 0 30px;
  text-align: center;
}

.flyer-frame img {
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   10. Responsive Media Queries (PC / Tablet / Smartphone)
   ========================================================================== */
@media (max-width: 991px) {
  .layout-two-col {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    margin: 50px 0 15px;
  }

  .eyecatch-inner {
    padding: 15px;
  }
}

@media (max-width: 767px) {
  .main-content h2 {
    font-size: 22px;
  }

  .main-content h3 {
    font-size: 20px;
  }

  .main-content p {
    margin-bottom: 25px;
  }

  .eyecatch-section h1 {
    font-size: 26px;
  }

  .spacer-100 {
    margin-top: 60px;
  }

  .btn-cta {
    max-width: 100%;
    padding: 14px 24px;
  }

  .site-brand {
    flex: 1 1 0;
    min-width: 0;
    font-size: 14px;
    padding: 12px 12px 12px 0;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    border-top: 1px solid var(--color-border);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    border-bottom: 1px solid var(--color-border);
  }

  .nav-list li:last-child {
    border-bottom: none;
  }

  .nav-list a {
    padding: 14px;
  }

  .blog-grid,
  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .footer-nav-bar {
    padding: 20px 0;
  }

  .footer-links {
    font-size: 15px;
  }

  .footer-licence {
    padding: 15px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
