/* =========================
   Base
========================= */
:root{
    --bg: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --maxw: 1100px;
  }
  
  *{ box-sizing: border-box; }
  
  html, body{
    margin: 0;
    padding: 0;
  }
  
body{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
}
  
  img{
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  a{
    color: inherit;
    text-decoration: none;
  }
  
  a:hover{
    text-decoration: underline;
  }
  
  /* =========================
     Layout helpers
     ※ HTMLを変えずに「全幅→中央寄せ」を効かせる
  ========================= */
  header,
  main,
  footer{
    width: min(100% - 32px, var(--maxw));
    margin-inline: auto;
  }

  .wrapper
  {
    width: min(100% - 32px, var(--maxw));
    margin-inline: auto;
    /*background: rgba(241, 204, 59, 0.9);*/
  }


  main{
    padding-block: 24px 56px;
  }
  
  /* =========================
     Header / Nav
  ========================= */
  header{
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    padding-block: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom:1px solid #bc8d41;
  }

  header > div a{
    font-weight: 700;
    letter-spacing: 0.02em;
  }
  
  nav ul{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  
  nav a{
    display: inline-block;
    padding: 8px 10px;
    border-radius: 10px;
  }
  
  nav a:hover{
    text-decoration: none;
    background: #f3f4f6;
  }

.site-brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.site-icon{
  width:64px;
  height:64px;
  border-radius:50%;
  margin-left: 1em;
}


figure img{
  width:100%;
  height:400px;
  object-fit:cover;
  object-position: center 80%;
}
  /* =========================
     Sections
  ========================= */
  section{
    margin-top: 28px;
  }
  
  section h2{
    font-size: 1.25rem;
    margin: 0 0 12px;
  }

  section h3{
    font-size: 1rem;
  }

  /* =========================
     Hero
  ========================= */
  section[aria-label="ヒーロー"]{
    margin-bottom: 32px;
  }

  section[aria-label="ヒーロー"] figure{
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #f9fafb;
  }
  
  section[aria-label="ヒーロー"] img{
    width: 100%;
    height: clamp(220px, 38vw, 420px);
    object-fit: cover;
  }

  
  /* =========================
     Pickup：まず読むべき記事
  ========================= */  
  /* まず読むべき記事：囲い */
  .pickup-post{
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    background: #ffffff;
    margin-top: 28px;
  }

  .pickup-post h2{
    font-size: 1.3rem;
    font-weight: 700;
  }

  /* まず読むべき記事：カードレイアウト */
  .pickup-post .article-cards{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .pickup-post .article-cards article{
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    padding-bottom: 8px;
  }

  .pickup-post .article-cards a{
    display: block;
    text-decoration: none;
  }

  .pickup-post .article-cards img{
    width: 100%;
    height: 180px;
    object-fit: cover;
  }

  .pickup-post .article-cards h3{
    margin: 12px 12px 6px;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.5;  
  }

  .pickup-post .article-cards p{
    margin: 0 12px 14px;
    color: #374151;
    font-size: 0.95rem;
  }





  /* =========================s
     News
  ========================= */
  #news-title{
    margin-bottom: 10px;
  }
  
  section[aria-labelledby="news-title"]{
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    background: #ffffff;
  }
  
  section[aria-labelledby="news-title"] ul{
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border);
  }
  
  section[aria-labelledby="news-title"] li{
    border-bottom: 1px solid var(--border);
  }
  
  section[aria-labelledby="news-title"] article{
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    padding: 12px 4px;
    align-items: baseline;
  }
  
  section[aria-labelledby="news-title"] time{
    font-size: 0.95rem;
    color: var(--muted);
    white-space: nowrap;
  }
  
  section[aria-labelledby="news-title"] a{
    color: var(--text);
  }
  
  section[aria-labelledby="news-title"] a:hover{
    color: var(--accent);
  }
  
  /* お知らせ一覧ボタン */
  section[aria-labelledby="news-title"] p{
    margin: 16px 0 0;
  }
  
  section[aria-labelledby="news-title"] p > a[role="button"]{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: transform .05s ease, background .15s ease;
  }
  
  section[aria-labelledby="news-title"] p > a[role="button"]:hover{
    background: var(--accent-hover);
    transform: translateY(-1px);
  }
  

/*============================
// 
//============================*/
/* 
#stories{
  display:block;
}

#stories article{
  border:1px solid #ddd;
  margin:12px 0;
  padding:12px;
}

#stories article a{
  display:block;
}

#stories img{
  display:block;
  width:100%;
  height:auto;
}

#stories .thumb-placeholder{
  display:block;
  padding:30px 12px;
  background:#f2f2f2;
  color:#666;
}
*/
  /* =========================
     About / Service / Contact
  ========================= */
  #about, #service, #contact{
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    background: #ffffff;
  }
  
  #about p, #service p, #contact p{
    margin: 0;
    color: #374151;
  }


  
  /* =========================
     Footer
  ========================= */
  footer{
    border-top: 1px solid var(--border);
    padding: 18px 0 28px;
    color: var(--muted);
    text-align: center;
  }

  .footer-links {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    text-align: center;
  }

  .footer-links li {
    display: inline-block;
    margin: 0 10px;
  }
  .footer-links li + li::before {
    content: "｜";
    margin: 0 8px;
    color: #aaa;
  }

  .footer-links a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
  }


  /* =========================
     Responsive
  ========================= */
  @media (max-width: 640px){
    header{
      flex-direction: column;
      align-items: flex-start;
    }
  
    nav ul{
      width: 100%;
      justify-content: flex-start;
      gap: 8px;
    }

    .pickup-post .article-cards{
      grid-template-columns: 1fr;
    } 

    section[aria-labelledby="news-title"] article{
      grid-template-columns: 1fr;
      gap: 6px;
    }
  
    section[aria-labelledby="news-title"] time{
      font-size: 0.9rem;
    }

  }

/* =========================
     アフィリエイトリンク
========================= */
.affiliate-link{
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
}

.affiliate-link:hover{
  opacity: 0.8;
}
