  /*
  Theme Name: Kohei Theme
  */

  /* =====================
   Common
  ===================== */
  *{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  :root {
    --header-height: 80px;
    --main-color: #1f2937;
    --accent-color: #3498db;
    --bg-color: #ffffff;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: #2c3e50;
    padding-top: var(--header-height);
  }
  
  
  /* ヘッダー全体 */
  .site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    background: #f8f9fa;;
    z-index: 2000;
    border-bottom: 3px solid #000;
  }

  .header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  section {
    padding-bottom: 80px;
    scroll-margin-top: var(--header-height);
  }

  .container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }

  .site-header .container {
    max-width: none;
    padding: 0 40px;
  }
  
  .logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--main-color);
    text-decoration: none;
  }

  .nav-menu {
    display: flex;
    list-style: none;
    justify-content: flex-end;
  }
  
  .nav-menu li {
    margin-left: 40px;
    font-size: 1.2rem;
  }
  
  .nav-menu a {
    text-decoration: none;
    color: var(--main-color);
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  .nav-menu a:hover {
    color: var(--accent-color);
  }
  
  .hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    background: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  
  .hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--main-color);
    transition: all 0.3s ease;
  }
  
  .hamburger-checkbox {
    display: none;
  }

  .hero {
    padding: 40px 0 80px;
  }
  
  .hero-lead{
    font-size: 2.75rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
  }

  #about {
    text-align: center;
  }

  #about .container {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  #about h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--main-color);
  }
  
  #about p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #333;
  }
  
  #about h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
  }
  
  #about ul {
    list-style: disc;
    display: inline-block;
    padding-left: 3.8rem;
    text-align: left;
    font-size: 1.2rem;
    margin: 0 auto;
  }
  
  #about ul li {
    margin-bottom: 5px;
  }
  
  #about img {
    width: 200px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  #works {
    text-align: center;
  }

  #works h2 {
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #2c3e50;
  }
  
  .works-grid {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .work-card {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 300px;
    padding: 20px;
    background: #f8f9fa;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
  }

  #works .work-card h2 {
    font-size: 2rem;
    margin-bottom: 0;
    padding-bottom: 16px;
  }
  
  .work-card h3 {
    font-size: 1.4rem;
    padding-bottom: 10px;
  }
  
  .work-card p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .work-card a {
    display: inline-block;
    text-decoration: none;
    padding: 12px 24px;
    border: 1px solid #333;
    color: #333;
    transition: .3s;
    margin: 24px auto;
  }

  .work-card a:hover{
    background-color: #333;
    color: #fff;
  }
  
  #outro {
    padding-bottom: 40px;
    text-align: center;
  }
  
  #outro h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
  }
  
  #outro h3 {
    margin-bottom: 40px;
    font-size: 1.5rem;
  }
  
  .outro-button {
    display: inline-block;
    padding: 12px 24px;
    background: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s;
    font-size: 1.5rem;
  }
  
  .outro-button:hover {
    background: #3498db;
  }

  .site-footer {
    text-align: center;
    padding: 40px 0;
    background: #f8f9fa;
    font-size: 1rem;
    color: #666;
  }
  
  /* =====================
   SP（Mobile）
  ===================== */
  @media (max-width: 768px) {
    
    section {
      padding-bottom: 40px;
    }
  
    #about h2,
    #works h2,
    #outro h2 {
      font-size: 1.5rem;
      margin-bottom: 15px;
    }
  
    #about p,
    #works p,
    #outro p {
      font-size: 0.8rem;
    }

    .header-inner {
      padding: 0 30px;
    }
  
    .logo {
      font-size: 1.4rem;
    }
  
    .hamburger {
      display: flex;
    }
  
    .hamburger-checkbox:checked + .hamburger span:nth-child(1) {
      transform: rotate(45deg) translate(7px, 7px);
    }
    .hamburger-checkbox:checked + .hamburger span:nth-child(2) {
      opacity: 0;
    }
    .hamburger-checkbox:checked + .hamburger span:nth-child(3) {
      transform: rotate(-45deg) translate(5px, -5px);
    }
  
    .hamburger-checkbox:checked ~ .nav-menu {
      transform: translateY(0) !important;
      opacity: 1;
      pointer-events: auto;
    }
  
    .nav-menu {
      position: absolute;
      top: var(--header-height);
      left: 0;
      width: 100%;
      flex-direction: column;
      background-color: #ffffff;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
      transform: translateY(-100%);
      transition: transform 0.4s ease-in-out;
      opacity: 0;
      pointer-events: none;
    }
  
    .nav-menu li {
      margin: 20px 0;
      text-align: center;
      font-size: 1rem;
    }

    .hero {
      padding: 30px 0 40px;
    }

    .hero-lead{
      font-size: 1.6rem;
    }
  
    #about .container {
      max-width: 100%;
    }
  
    #about p {
      margin-bottom: 20px;
    }
  
    #about h3 {
      font-size: 1.2rem;
    }
  
    #about ul {
      font-size: 0.8rem;
      padding-left: 3rem;
    }

    #about ul li {
      margin-bottom: 0;
    }
  
    #works .container {
      flex-direction: column;
      align-items: center;
      gap: 16px;
    }
  
    #works h2 {
      width: auto;
      }
  
    .works-grid {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 20px;
    }
  
    .work-card {
      display: flex;
      flex-direction: column;
      width: 100%;
      min-height: 337px;
    }

    #works .work-card h2 {
      font-size: 1.3rem;
      padding-bottom: 5px;
    }
   
    .work-card h3 {
      font-size: 1rem;
      padding-bottom: 5px;
    }
  
    #outro {
      margin-bottom: 20px;
    }

    #outro h3 {
      margin-bottom: 10px;
      font-size: 1rem;
    }
  
    .outro-button {
      padding: 6px 12px;
      font-size: 0.8rem;
    }

    .site-footer {
      font-size: 0.9rem;
      padding: 20px 0;
    }
  }
  

  /* =====================
   WordPress Admin Bar
    ===================== */

  body.admin-bar .site-header {
    top: 32px; 
  }

  body.admin-bar section[id],
  body.admin-bar #top{
    scroll-margin-top: calc(var(--header-height) + 32px);
  }

  @media (max-width: 782px) {
    body.admin-bar .site-header {
      top: 46px;
    }

    body.admin-bar section[id],
    body.admin-bar #top{
      scroll-margin-top: calc(var(--header-height) + 46px);
    }
  }


/* ========================================
   Page (固定ページ)
======================================== */
.page-inner{
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-title{
  font-size: 28px;
  line-height: 1.3;
  margin: 0 0 24px;
}

/* ========================================
   Entry (the_content)
======================================== */
.page-content > *{
  margin: 0 0 16px;
}

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


/* ========================================
   Single (投稿詳細)
======================================== */
.l-entry__title{
  font-size: 28px;
  line-height: 1.3;
  margin: 0 0 12px;
}
.l-entry__meta{
  font-size: 14px;
  opacity: .8;
  margin: 0 0 20px;
}
.l-entry__thumb{
  margin: 0 0 20px;
}
.l-entry__thumb img{
  max-width: 100%;
  height: auto;
  display: block;
}
.l-entry__nav{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
}
.l-entry__nav a{
  text-decoration: underline;
}

/* ========================================
   Entry content (the_content)
   ※固定ページにも流用したいなら、page-content→entry-contentへ寄せる
======================================== */
.entry-content > *{ margin: 0 0 16px; }
.entry-content p{ line-height: 1.8; }
.entry-content img{ max-width: 100%; height: auto; display: block; }


/* ========================================
   Post List (home)
======================================== */
.post-list{
  display: grid;
  gap: 16px;
}

.post-card{
  border: 1px solid #ddd;
  padding: 16px;
}

.post-card__link{
  display: block;
  text-decoration: none;
  color: inherit;
}

.post-card__title{
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.3;
}

.post-card__meta{
  font-size: 14px;
  opacity: .8;
  margin: 0 0 12px;
}

.post-card__thumb img{
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 0 12px;
}

.post-card__excerpt{
  line-height: 1.7;
}

.pagination{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.pagination a{
  text-decoration: underline;
}

.post-thumb{
  display:block;
  width: 100px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.post-thumb img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.no-thumb{
  padding: 40px;
  background:#f5f5f5;
  text-align:center;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}

.single .post-thumbnail{
  max-width: 200px;   /* 好きに調整OK */
}

.single .post-thumbnail img{
  width: 100%;
  height: auto;
  display: block;
}




