/* takalesson.css (cleaned & modernized) */

/* Use https in imports; keep optional decorative font */
@import url("https://fonts.googleapis.com/css2?family=Kaushan+Script&display=swap");

:root{
  --bg: #f3f4f6;
  --card: #ffffff;
  --text: #222;
  --muted: #555;
  --border: #d1d5db;
  --accent: #745399;
  --header: #e4d2d8;
  --shadow: 0 10px 20px rgba(0,0,0,.10);
}

*{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  font-family: "ヒラギノ角ゴ Pro W3","メイリオ",sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* links */
a{ color: inherit; }
a:hover{ color: #ff1493; }
a:focus-visible{
  outline: 3px solid rgba(116,83,153,.35);
  outline-offset: 2px;
}

/* layout container feel (cards already centered) */
.site-header__inner,
.card,
.site-footer{
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
}

/* header */
.site-header{
  background: var(--header);
  border-bottom: 1px solid var(--border);
  padding: 10px 8px;
}

.site-header__inner{
  display: grid;
  gap: 10px;
  align-items: center;
  justify-items: center;
}

.site-title{
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .03em;
}

.site-title a{
  text-decoration: none;
}

.main-nav{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.main-nav__link{
  display: inline-block;
  padding: 8px 12px;
  text-decoration: none;
  border: 1px solid #000;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
}

.main-nav__link[aria-current="page"]{
  background: #999;
  color: #fff;
}

.main-nav__link:hover{
  background: #999;
  color: #fff;
}

/* hero */
.hero{
  width: 95%;
  max-width: 768px;
  margin: 0 auto 10px;
  height: 260px;
  background-image: url(image/adv1.png);
  background-position: center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.hero__overlay{
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 16px;
  background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.35));
}

.hero__title{
  margin: 0;
  font-size: 26px;
  color: #fff;
}

.hero__subtitle{
  margin: 8px 0 0;
  font-size: 14px;
  color: #fff;
}

/* card */
.card{
  background: var(--card);
  width: 100%;
  padding: 14px 10px;
  box-shadow: var(--shadow);
}

/* section */
.section{ padding: 8px 0 14px; }
.section__title{
  margin: 10px 0 8px;
  padding: 8px 12px;
  border-bottom: 3px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 20px;
}
.section__title a{ text-decoration: none; }
.section__meta{
  display: inline-block;
  margin-left: 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}

p{
  margin: 10px auto 0;
  width: min(90%, 680px);
  color: #333;
  font-size: 14px;
}

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

/* chips */
.chip-links{
  width: min(90%, 680px);
  margin: 6px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip{
  display: inline-block;
  padding: 7px 10px;
  border: 1px solid var(--border);
  background: #fff;
  text-decoration: none;
  font-size: 13px;
}

.chip:hover{
  background: #999;
  color: #fff;
  border-color: #999;
}

/* lists */
.link-list{
  width: min(90%, 680px);
  margin: 6px auto 0;
  padding-left: 18px;
  font-size: 14px;
}

.stack{
  width: min(90%, 680px);
  margin: 6px auto 0;
  display: grid;
  gap: 12px;
}
.stack__item{
  border: 1px solid var(--border);
  padding: 12px;
}
.lead{
  margin: 0 0 6px;
  font-weight: 700;
}

/* back to top */
.to-top{
  width: min(90%, 680px);
  margin: 18px auto 6px;
}

/* footer */
.site-footer{
  padding: 14px 10px 24px;
  text-align: center;
}
.site-footer p{
  font-size: 12px;
  color: #222;
}

/* desktop tweaks */
@media (min-width: 768px){
  .site-header__inner{
    grid-template-columns: 1fr;
  }
  .hero{ height: 280px; }
  .hero__title{ font-size: 30px; }
}

/* ===== note hub (読み物の母艦) ===== */

.note-hub {
  width: min(92%, 680px);
  margin: 24px auto;
  padding: 20px;
  background: #f8faf9;            /* 白より少しだけ色をつける */
  border-left: 6px solid #2cb696;  /* noteを連想させる緑 */
}

.note-hub__title {
  margin: 0 0 8px;
  font-size: 20px;
  color: #1f2933;
}

.note-hub__lead {
  margin: 0 0 14px;
  font-size: 14px;
  color: #374151;
  line-height: 1.7;
}

.note-hub__button {
  display: inline-block;
  padding: 8px 18px;
  background: #2cb696;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.note-hub__button:hover {
  opacity: 0.85;
}
