/*
Theme Name: つるとーのひとりごと v6
Theme URI: https://turuto.jp/
Author: turuto
Description: turuto.jp 用。note新着記事RSS自動連携つきのスマホ最優先テーマ。
Version: 1.5.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: turuto-v6
*/

:root{
  --ink:#17212b;
  --muted:#66727d;
  --accent:#4a9a9b;
  --soft:#f5f8f8;
  --line:#e4ebeb;
  --white:#fff;
}

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

html,body{
  margin:0;
  padding:0;
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

body{
  background:var(--white);
  color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic",Meiryo,sans-serif;
  line-height:1.8;
  -webkit-text-size-adjust:100%;
}

a{color:var(--accent);text-decoration:none}
img{display:block;max-width:100%;height:auto}

.site-wrap{
  width:100%;
  max-width:1120px;
  margin:0 auto;
  padding:0 20px;
}

.site-header{
  width:100%;
  border-bottom:1px solid var(--line);
  background:#fff;
}

.site-header-inner{
  min-height:68px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.site-title{
  margin:0;
  font-size:18px;
  font-weight:800;
  line-height:1.35;
}

.site-title a{color:var(--ink)}

.note-top{
  flex:0 0 auto;
  font-weight:800;
  white-space:nowrap;
}

.hero{
  padding:66px 0 58px;
}

.kicker{
  margin:0 0 12px;
  color:var(--accent);
  font-weight:800;
}

.hero h1{
  margin:0 0 26px;
  font-size:clamp(42px,8vw,68px);
  line-height:1.16;
  letter-spacing:.01em;
  overflow-wrap:anywhere;
}

.lead{
  max-width:720px;
  margin:0 0 30px;
  font-size:clamp(18px,3vw,24px);
  font-weight:700;
}

.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:54px;
  padding:0 26px;
  border-radius:16px;
  background:var(--accent);
  color:#fff;
  font-weight:800;
}

.section{
  width:100%;
  padding:52px 0;
  border-top:1px solid var(--line);
}

.section.soft{
  background:var(--soft);
}

.section h2{
  margin:0 0 14px;
  font-size:30px;
  line-height:1.4;
}

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

.post-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-top:24px;
}

.post-card{
  min-width:0;
  border:1px solid var(--line);
  border-radius:18px;
  padding:20px;
  background:#fff;
}

.post-card h3{
  margin:10px 0;
  font-size:19px;
  line-height:1.5;
}

.post-card .date{
  color:var(--muted);
  font-size:13px;
}

.post-card .thumb{
  aspect-ratio:16/9;
  overflow:hidden;
  border-radius:12px;
  background:#eef3f3;
}

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

.note-more{
  margin-top:24px;
  font-weight:800;
}

.cta{
  text-align:center;
}

.site-footer{
  border-top:1px solid var(--line);
  padding:34px 0 44px;
  color:var(--muted);
  font-size:14px;
}

.footer-inner{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:16px;
}

.entry{
  padding:48px 0 64px;
}

.entry h1{
  font-size:clamp(32px,7vw,52px);
  line-height:1.3;
}

.entry-content{
  max-width:760px;
}

@media (max-width:782px){
  .site-wrap{
    padding-left:16px;
    padding-right:16px;
  }

  .site-header-inner{
    min-height:64px;
    gap:10px;
  }

  .site-title{
    font-size:16px;
    max-width:60%;
  }

  .note-top{
    font-size:14px;
  }

  .hero{
    padding:56px 0 50px;
  }

  .hero h1{
    font-size:clamp(38px,12vw,54px);
  }

  .lead{
    font-size:18px;
  }

  .post-grid{
    grid-template-columns:1fr;
  }

  .section{
    padding:44px 0;
  }
}

@media (max-width:390px){
  .site-wrap{
    padding-left:14px;
    padding-right:14px;
  }
}


.note-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-top:24px;
}
.note-card{
  min-width:0;
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
}
.note-card-media{
  display:block;
  aspect-ratio:16/9;
  background:#eef3f3;
  overflow:hidden;
}
.note-card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.note-card-body{
  padding:18px;
}
.note-card-date{
  margin:0 0 6px;
  color:var(--muted);
  font-size:13px;
}
.note-card-title{
  margin:0 0 10px;
  font-size:19px;
  line-height:1.5;
}
.note-card-title a{color:var(--ink)}
.note-card-excerpt{
  margin:0;
  color:var(--muted);
  font-size:14px;
}
@media (max-width:782px){
  .note-grid{grid-template-columns:1fr}
}


/* v6: note thumbnail and card polish */
.note-card-media {
  background: linear-gradient(135deg,#eef4f4,#f8fbfb);
}
.note-card-media img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.note-card-title a:hover,
.note-card-title a:focus {
  color: var(--accent);
}
.note-card {
  transition: transform .15s ease, box-shadow .15s ease;
}
@media (hover:hover) {
  .note-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(23,33,43,.08);
  }
}
