/* =========================================================
   自転車出張修理サービスつかだ
   Cocoon 共通デザインシステム
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700;800;900&display=swap');

/* Standalone theme shell */
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0}.tk-shell{width:min(calc(100% - 40px),1180px);margin-inline:auto}.skip{position:absolute;left:-9999px}.skip:focus{left:12px;top:12px;z-index:9999;padding:10px 14px;background:#fff;border:3px solid #1d4ed8}.tk-topbar{background:#26261f;color:#fff;font-size:.82rem}.tk-topbar .tk-shell{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:20px}.tk-header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.97);border-bottom:1px solid rgba(199,159,0,.2);backdrop-filter:blur(14px)}.tk-header-inner{min-height:82px;display:flex;align-items:center;gap:26px}.tk-brand{display:flex;align-items:center;gap:11px;color:var(--tk-yellow-dark);font-weight:900;text-decoration:none}.tk-brand img{width:46px;height:46px;object-fit:cover;border-radius:50%}.tk-menu{display:flex;align-items:center;gap:22px;margin-left:auto}.tk-menu a{color:var(--tk-ink);font-size:.88rem;font-weight:800;text-decoration:none}.tk-line-btn{min-height:48px;display:inline-flex;align-items:center;padding:0 20px;color:#fff!important;background:#16a34a;border-radius:999px;font-weight:900;text-decoration:none}.tk-menu-toggle{display:none}.tk-content{padding:62px 0 84px}.tk-article-shell{max-width:960px}.tk-post-meta{color:var(--tk-muted);font-size:.82rem}.tk-featured{margin:0 0 30px}.tk-featured img{width:100%;height:auto;border-radius:20px}.tk-list-hero{margin-bottom:34px;padding:40px 34px;background:linear-gradient(135deg,var(--tk-yellow-soft),#fffdf3);border:1px solid var(--tk-line);border-radius:24px}.tk-list-hero>span{color:#806700;font-size:.76rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.tk-list-hero h1{margin:.4rem 0 .6rem;font-size:clamp(2rem,4vw,3.2rem);line-height:1.3}.tk-list-hero p{margin:0;color:var(--tk-muted)}.tk-post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.tk-post-card{overflow:hidden;background:#fff;border:1px solid var(--tk-line);border-radius:20px;box-shadow:var(--tk-shadow)}.tk-post-card>a{display:block;height:100%;color:inherit;text-decoration:none}.tk-post-thumb{aspect-ratio:16/10;overflow:hidden}.tk-post-thumb img{width:100%;height:100%;object-fit:cover}.tk-post-body{padding:20px}.tk-post-body time{color:#8a8059;font-size:.72rem}.tk-post-body h2{margin:7px 0 10px;font-size:1.08rem;line-height:1.55}.tk-post-body p{color:var(--tk-muted);font-size:.85rem}.tk-post-body span{color:#745d00;font-size:.82rem;font-weight:900}.tk-footer{padding:52px 0;background:#252721;color:#fff}.tk-footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:30px}.tk-footer p{max-width:440px;color:#c8cbbf;font-size:.85rem}.tk-footer a{display:block;margin:.4rem 0;color:#fff;text-decoration:none}
@media(max-width:900px){.tk-header-inner{min-height:72px}.tk-brand strong{font-size:.85rem}.tk-menu-toggle{display:block;margin-left:auto;padding:9px 12px;border:1px solid #d9c85e;border-radius:10px;background:#fffdf3;font-weight:800}.tk-menu{display:none;position:absolute;left:20px;right:20px;top:74px;padding:10px;background:#fff;border:1px solid var(--tk-line);border-radius:14px;box-shadow:var(--tk-shadow)}.tk-menu.open{display:grid}.tk-menu a{padding:10px 8px}.tk-line-btn{display:none}.tk-post-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.tk-shell{width:min(calc(100% - 28px),1180px)}.tk-topbar{font-size:.68rem}.tk-topbar .tk-shell{min-height:32px}.tk-topbar span{display:none}.tk-brand img{width:40px;height:40px}.tk-brand strong{font-size:.72rem}.tk-content{padding:34px 0 56px}.tk-list-hero{padding:26px 20px;border-radius:18px}.tk-list-hero h1{font-size:1.9rem}.tk-post-grid{grid-template-columns:1fr}.tk-footer{padding:38px 0}.tk-footer-grid{grid-template-columns:1fr;gap:16px}}

:root {
  --tk-yellow: #f0c400;
  --tk-yellow-dark: #c79f00;
  --tk-yellow-soft: #fff8d8;
  --tk-orange: #f28a00;
  --tk-ink: #2a2a24;
  --tk-muted: #6f6d61;
  --tk-line: #ece4b7;
  --tk-white: #ffffff;
  --tk-bg: #fffdf3;
  --tk-shadow: 0 14px 40px rgba(96, 79, 0, .10);
  --tk-radius: 22px;
  --tk-max: 1180px;
}

/* ---------- Base ---------- */
body {
  color: var(--tk-ink);
  background: #fff;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.85;
}

#container,
#content,
#content-in {
  background: #fff;
}

#content-in {
  width: min(calc(100% - 40px), var(--tk-max));
  margin-inline: auto;
}

#main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

#sidebar {
  display: none;
}

a {
  transition: color .2s ease, background-color .2s ease,
              border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

/* ---------- Cocoon header ---------- */
#header-container {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid rgba(199, 159, 0, .20);
  backdrop-filter: blur(14px);
}

#header-container-in,
#header-in {
  background: transparent;
}

#header-in {
  width: min(calc(100% - 40px), var(--tk-max));
  min-height: 82px;
  display: flex;
  align-items: center;
  margin-inline: auto;
  padding: 8px 0;
}

.tagline {
  display: none;
}

.logo-header {
  margin: 0;
  text-align: left;
}

.logo-header a,
.site-name-text {
  color: var(--tk-yellow-dark) !important;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(1rem, 2.1vw, 1.35rem) !important;
  font-weight: 900;
  line-height: 1.25;
  text-decoration: none;
}

/* ---------- Cocoon navigation ---------- */
#navi,
.navi {
  background: #fff;
  border-bottom: 1px solid var(--tk-line);
}

.navi-in {
  width: min(calc(100% - 40px), var(--tk-max));
  margin-inline: auto;
}

.navi-in > ul {
  justify-content: center;
}

.navi-in > ul > li > a {
  padding: 12px 18px;
  color: var(--tk-ink);
  background: #fff;
  font-size: .88rem;
  font-weight: 800;
}

.navi-in > ul > li > a:hover {
  color: #5d4c00;
  background: var(--tk-yellow-soft);
}

/* ---------- Standard page / post shell ---------- */
body:not(.home) #content {
  padding-top: 56px;
  padding-bottom: 80px;
}

body:not(.home) .article {
  width: min(100%, 920px);
  margin-inline: auto;
}

body:not(.home) .article-header {
  margin: 0 0 34px;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--tk-line);
}

body:not(.home) .entry-title {
  position: relative;
  margin: 0;
  padding: 0 0 18px;
  color: var(--tk-ink);
  background: transparent;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -.035em;
}

body:not(.home) .entry-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 5px;
  background: var(--tk-yellow);
  border-radius: 999px;
}

.date-tags,
.post-date,
.post-update,
.post-meta {
  color: var(--tk-muted);
  font-size: .78rem;
}

/* ---------- Article typography ---------- */
.entry-content {
  color: var(--tk-ink);
  font-size: 1rem;
  line-height: 1.95;
}

.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.entry-content > figure,
.entry-content > .wp-block-image,
.entry-content > .wp-block-table,
.entry-content > blockquote {
  margin-top: 0;
  margin-bottom: 1.7em;
}

.entry-content h2 {
  margin: 3.2rem 0 1.3rem;
  padding: 18px 22px;
  color: var(--tk-ink);
  background: var(--tk-yellow-soft);
  border: 0;
  border-left: 7px solid var(--tk-yellow);
  border-radius: 14px;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 900;
  line-height: 1.5;
}

.entry-content h3 {
  margin: 2.5rem 0 1rem;
  padding: 0 0 10px;
  color: var(--tk-ink);
  background: transparent;
  border: 0;
  border-bottom: 3px solid var(--tk-yellow);
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 900;
  line-height: 1.55;
}

.entry-content h4 {
  margin: 2rem 0 .8rem;
  padding-left: 12px;
  border-left: 4px solid var(--tk-yellow);
  font-size: 1.08rem;
  font-weight: 800;
}

.entry-content strong {
  font-weight: 800;
}

.entry-content a:not(.tk-btn) {
  color: #725d00;
  text-decoration: underline;
  text-decoration-color: #d9bc3b;
  text-underline-offset: 3px;
}

.entry-content a:not(.tk-btn):hover {
  color: var(--tk-orange);
}

/* ---------- Images ---------- */
.entry-content img {
  border-radius: 18px;
}

.entry-content figure,
.entry-content .wp-block-image {
  overflow: hidden;
  border-radius: 18px;
}

.entry-content figcaption,
.wp-block-image figcaption {
  margin-top: 8px;
  color: var(--tk-muted);
  font-size: .78rem;
  line-height: 1.6;
  text-align: center;
}

/* ---------- Lists ---------- */
.entry-content ul:not(.blocks-gallery-grid),
.entry-content ol {
  padding: 20px 24px 20px 46px;
  background: var(--tk-bg);
  border: 1px solid var(--tk-line);
  border-radius: 16px;
}

.entry-content li + li {
  margin-top: .45em;
}

/* ---------- Tables: repair prices / service areas ---------- */
.entry-content .wp-block-table,
.entry-content .scrollable-table,
.entry-content table {
  width: 100%;
}

.entry-content .wp-block-table,
.entry-content .scrollable-table {
  overflow-x: auto;
  border: 1px solid var(--tk-line);
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(96, 79, 0, .06);
}

.entry-content table {
  margin: 0;
  border-collapse: collapse;
  background: #fff;
  font-size: .93rem;
}

.entry-content table th {
  padding: 14px 16px;
  color: var(--tk-ink);
  background: var(--tk-yellow-soft);
  border: 1px solid var(--tk-line);
  font-weight: 900;
  text-align: left;
}

.entry-content table td {
  padding: 14px 16px;
  border: 1px solid var(--tk-line);
}

.entry-content table tr:nth-child(even) td {
  background: #fffef8;
}

/* ---------- Quotes / notes ---------- */
.entry-content blockquote {
  position: relative;
  padding: 24px 26px;
  color: #4f4b3c;
  background: #fffdf3;
  border: 1px solid var(--tk-line);
  border-left: 6px solid var(--tk-yellow);
  border-radius: 16px;
}

.entry-content blockquote::before,
.entry-content blockquote::after {
  display: none;
}

/* ---------- Shared callout ---------- */
.tk-note {
  margin: 28px 0;
  padding: 22px 24px;
  background: var(--tk-yellow-soft);
  border: 1px solid #ead778;
  border-radius: 18px;
}

.tk-note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

/* ---------- Shared buttons ---------- */
.tk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.tk-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  color: var(--tk-ink) !important;
  background: var(--tk-yellow);
  border: 1px solid var(--tk-yellow);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none !important;
}

.tk-btn--dark {
  color: #fff !important;
  background: var(--tk-ink);
  border-color: var(--tk-ink);
}

.tk-btn--outline {
  color: #5d4c00 !important;
  background: #fff;
  border-color: #c9aa1b;
}

.tk-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--tk-shadow);
}

/* ---------- Reusable CTA ---------- */
.tk-cta {
  margin: 54px 0 8px;
  padding: 34px;
  color: #fff;
  background: linear-gradient(135deg, #2b2b25, #4a452f);
  border-radius: 24px;
  box-shadow: var(--tk-shadow);
}

.tk-cta h2,
.entry-content .tk-cta h2 {
  margin: 0 0 10px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.tk-cta p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, .86);
}

/* ---------- Blog index ---------- */
body.blog #content,
body.archive #content,
body.search #content {
  padding-top: 58px;
  padding-bottom: 80px;
}

body.blog #list,
body.archive #list,
body.search #list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

body.blog .entry-card-wrap,
body.archive .entry-card-wrap,
body.search .entry-card-wrap {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--tk-line);
  border-radius: 20px;
  box-shadow: 0 10px 34px rgba(96, 79, 0, .08);
}

body.blog .entry-card-wrap:hover,
body.archive .entry-card-wrap:hover,
body.search .entry-card-wrap:hover {
  transform: translateY(-4px);
  border-color: #ddc95e;
  box-shadow: var(--tk-shadow);
}

body.blog .entry-card,
body.archive .entry-card,
body.search .entry-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
}

body.blog .entry-card-thumb,
body.archive .entry-card-thumb,
body.search .entry-card-thumb {
  width: 100%;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

body.blog .entry-card-thumb img,
body.archive .entry-card-thumb img,
body.search .entry-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.blog .entry-card-content,
body.archive .entry-card-content,
body.search .entry-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

body.blog .entry-card-title,
body.archive .entry-card-title,
body.search .entry-card-title {
  margin: 0 0 10px;
  color: var(--tk-ink);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.55;
}

body.blog .entry-card-snippet,
body.archive .entry-card-snippet,
body.search .entry-card-snippet {
  color: var(--tk-muted);
  font-size: .82rem;
  line-height: 1.75;
}

body.blog .post-date,
body.archive .post-date,
body.search .post-date {
  margin-top: auto;
  padding-top: 12px;
}

.cat-label {
  display: none !important;
}

/* ---------- Pagination ---------- */
.pagination {
  margin-top: 36px;
}

.pagination .page-numbers {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 3px;
  color: #5d4c00;
  background: #fff;
  border: 1px solid var(--tk-line);
  border-radius: 999px;
}

.pagination .current,
.pagination a:hover {
  color: var(--tk-ink);
  background: var(--tk-yellow);
  border-color: var(--tk-yellow);
}

/* ---------- Single post footer ---------- */
.article-footer {
  width: min(100%, 920px);
  margin: 42px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--tk-line);
}

.sns-share,
.sns-follow {
  margin-top: 24px;
}

/* ---------- Cocoon footer ---------- */
#footer-container,
#footer {
  color: #dbe9e0;
  background: #22221d;
}

#footer-in {
  width: min(calc(100% - 40px), var(--tk-max));
  margin-inline: auto;
  padding: 42px 0;
}

#footer a {
  color: #dbe9e0;
}

#footer a:hover {
  color: var(--tk-yellow);
}

/* ---------- Mobile ---------- */
@media (max-width: 980px) {
  body.blog #list,
  body.archive #list,
  body.search #list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #content-in,
  #header-in,
  .navi-in,
  #footer-in {
    width: min(calc(100% - 22px), var(--tk-max));
  }

  #header-in {
    min-height: 64px;
  }

  .logo-header a,
  .site-name-text {
    font-size: .88rem !important;
  }

  body:not(.home) #content,
  body.blog #content,
  body.archive #content,
  body.search #content {
    padding-top: 34px;
    padding-bottom: 56px;
  }

  body:not(.home) .article-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
  }

  body:not(.home) .entry-title {
    padding-bottom: 14px;
    font-size: 1.9rem;
    line-height: 1.4;
  }

  body:not(.home) .entry-title::after {
    width: 50px;
    height: 4px;
  }

  .entry-content {
    font-size: .95rem;
    line-height: 1.85;
  }

  .entry-content h2 {
    margin: 2.6rem 0 1.1rem;
    padding: 15px 16px;
    border-left-width: 5px;
    border-radius: 12px;
    font-size: 1.38rem;
  }

  .entry-content h3 {
    margin-top: 2.1rem;
    font-size: 1.16rem;
  }

  .entry-content img,
  .entry-content figure,
  .entry-content .wp-block-image {
    border-radius: 13px;
  }

  .entry-content ul:not(.blocks-gallery-grid),
  .entry-content ol {
    padding: 16px 16px 16px 38px;
    border-radius: 13px;
  }

  .entry-content .wp-block-table,
  .entry-content .scrollable-table {
    border-radius: 13px;
  }

  .entry-content table {
    min-width: 520px;
    font-size: .82rem;
  }

  .entry-content table th,
  .entry-content table td {
    padding: 11px 12px;
  }

  .tk-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tk-btn {
    width: 100%;
  }

  .tk-cta {
    margin-top: 38px;
    padding: 24px 18px;
    border-radius: 18px;
  }

  body.blog #list,
  body.archive #list,
  body.search #list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.blog .entry-card-wrap,
  body.archive .entry-card-wrap,
  body.search .entry-card-wrap {
    border-radius: 16px;
  }

  body.blog .entry-card-content,
  body.archive .entry-card-content,
  body.search .entry-card-content {
    padding: 16px;
  }

  #footer-in {
    padding: 30px 0 78px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
  }
}

/* Standalone theme final overrides */
#main.tk-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 62px 0 84px;
  background: #fff;
  border: 0;
}

@media (max-width:640px) {
  #main.tk-content { padding: 34px 0 56px; }
}
