@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* Techblo Life stage 2: common/article/blog/category minimum only. */
:root {
  --techblo-ink: #163d48;
  --techblo-accent: #2b7773;
  --techblo-accent-dark: #205d5a;
  --techblo-muted: #627174;
  --techblo-line: #dce7e5;
  --techblo-paper: #ffffff;
  --techblo-wash: #f8fbfa;
  --techblo-radius: 8px;
}

#body_wrap {
  background: var(--techblo-wash);
}

#body_wrap a:focus-visible,
#body_wrap button:focus-visible {
  outline: 3px solid rgba(43, 119, 115, .28);
  outline-offset: 3px;
}

#body_wrap .l-mainContent__inner {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.single-post .l-content,
.l-content[data-postid="221"],
.category .l-content,
.archive .l-content {
  display: block;
  max-width: none;
}

.single-post .l-sidebar,
.l-content[data-postid="221"] .l-sidebar,
.category .l-sidebar,
.archive .l-sidebar {
  display: none;
}

.single-post .l-mainContent,
.l-content[data-postid="221"] .l-mainContent,
.category .l-mainContent,
.archive .l-mainContent {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
}

.l-content[data-postid="221"] .p-postList.-type-card .p-postList__link,
.category .p-postList.-type-card .p-postList__link,
.archive .p-postList.-type-card .p-postList__link {
  border: 1px solid var(--techblo-line);
  border-radius: var(--techblo-radius);
  background: var(--techblo-paper);
}

.single-post .post_content {
  color: var(--techblo-ink);
  line-height: 1.9;
}

.techblo-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1rem;
  margin: 0 0 1.75rem;
  color: var(--techblo-muted);
  font-size: .82rem;
}

@media (min-width: 960px) {
  #body_wrap.single-post #main_content .post_content:has(.p-toc) .p-toc {
    width: 190px;
    margin: 0 -235px 1.5rem 2.5rem;
    padding: 1rem;
  }
}

@media (max-width: 959px) {
  .single-post .post_content:has(.p-toc) .p-toc {
    float: none;
    position: static;
    width: auto;
    margin: 2rem 0;
  }
}

@media (max-width: 600px) {
  #body_wrap .l-mainContent__inner {
    padding-top: 2.75rem;
    padding-bottom: 4rem;
  }

  .l-content[data-postid="221"] .l-mainContent,
  .category .l-mainContent,
  .archive .l-mainContent,
  .single-post .l-mainContent {
    width: calc(100% - 2rem);
  }

  .l-content[data-postid="221"] .p-postList.-type-card .p-postList__link,
  .category .p-postList.-type-card .p-postList__link,
  .archive .p-postList.-type-card .p-postList__link {
    min-height: 0;
    padding: 1.25rem 1.2rem;
  }

  .single-post .post_content {
    font-size: 1rem;
  }

  .techblo-post-meta {
    gap: .35rem .75rem;
    font-size: .76rem;
  }
}

/* SWELL no_img.png is a fallback, not an editorial thumbnail. */
.l-content[data-postid="221"] .p-postList.-type-card .p-postList__link:has(img[src*="no_img"]),
.category .p-postList.-type-card .p-postList__link:has(img[src*="no_img"]),
.archive .p-postList.-type-card .p-postList__link:has(img[src*="no_img"]) {
  grid-template-columns: minmax(0, 1fr);
  min-height: 11rem;
  padding: 1.7rem 1.85rem;
}

.l-content[data-postid="221"] .p-postList.-type-card .p-postList__link:has(img[src*="no_img"]) .c-postThumb__figure,
.category .p-postList.-type-card .p-postList__link:has(img[src*="no_img"]) .c-postThumb__figure,
.archive .p-postList.-type-card .p-postList__link:has(img[src*="no_img"]) .c-postThumb__figure {
  display: none;
}

/* Home: local-confirmed four-section composition, scoped to the new Home only. */
.home .l-content,
.page-id-223 .l-content {
  display: block;
  max-width: none;
}

.home .l-sidebar,
.page-id-223 .l-sidebar {
  display: none;
}

.home .l-mainContent,
.page-id-223 .l-mainContent {
  width: 100%;
  max-width: none;
}

.home .post_content,
.page-id-223 .post_content {
  max-width: none;
  margin: 0;
  color: var(--techblo-ink);
  line-height: 1.85;
}

.home .techblo-home-hero,
.page-id-223 .techblo-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, .75fr);
  gap: clamp(2rem, 6vw, 5rem);
  width: min(100% - 2rem, 1160px);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem);
  border-left: 4px solid var(--techblo-accent);
  border-radius: var(--techblo-radius);
  background: var(--techblo-wash);
}

.home .techblo-home-hero h2,
.page-id-223 .techblo-home-hero h2 {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--techblo-ink);
  font-size: clamp(1.65rem, 3.4vw, 2.45rem);
  line-height: 1.5;
}

.home .techblo-hero-nav,
.page-id-223 .techblo-hero-nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding-left: clamp(1.25rem, 3vw, 2.2rem);
  border-left: 1px solid rgba(43, 119, 115, .3);
}

.home .techblo-hero-nav a,
.page-id-223 .techblo-hero-nav a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .15rem .75rem;
  padding: .68rem 0;
  border-top: 1px solid var(--techblo-line);
  color: var(--techblo-ink);
  text-decoration: none;
}

.home .techblo-hero-nav a small,
.page-id-223 .techblo-hero-nav a small {
  grid-column: 1 / -1;
  color: var(--techblo-muted);
  font-size: .76rem;
}

.home .techblo-home-section,
.page-id-223 .techblo-home-section {
  width: 100%;
  margin: 0;
  padding: clamp(4rem, 8vw, 7rem) max(1rem, calc((100% - 1160px) / 2));
}

.home .techblo-theme-section,
.page-id-223 .techblo-theme-section {
  margin-top: clamp(4rem, 8vw, 7rem);
  background: var(--techblo-wash);
}

.home .techblo-latest-section,
.page-id-223 .techblo-latest-section,
.home .techblo-profile-section,
.page-id-223 .techblo-profile-section {
  background: var(--techblo-paper);
}

.home .techblo-home-section > h2,
.page-id-223 .techblo-home-section > h2 {
  max-width: 1160px;
  margin: 0 auto 1.6rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--techblo-ink);
}

.home .techblo-category-grid,
.page-id-223 .techblo-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.home .techblo-category-grid a,
.page-id-223 .techblo-category-grid a {
  display: block;
  min-height: 8rem;
  padding: 1.35rem 1.45rem 1.2rem;
  border: 1px solid var(--techblo-line);
  border-radius: var(--techblo-radius);
  background: var(--techblo-paper);
  color: var(--techblo-ink);
  text-decoration: none;
}

.home .techblo-category-grid strong,
.home .techblo-category-desc,
.page-id-223 .techblo-category-grid strong,
.page-id-223 .techblo-category-desc {
  display: block;
}

.home .techblo-category-grid strong,
.page-id-223 .techblo-category-grid strong {
  color: var(--techblo-ink);
  font-size: 1.08rem;
}

.home .techblo-category-desc,
.page-id-223 .techblo-category-desc {
  margin-top: .4rem;
  color: var(--techblo-muted);
  font-size: .8rem;
}

.home .techblo-feature-link,
.page-id-223 .techblo-feature-link {
  display: block;
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.65rem 1.7rem;
  border: 1px solid var(--techblo-line);
  border-radius: var(--techblo-radius);
  background: var(--techblo-paper);
  color: var(--techblo-ink);
  text-decoration: none;
}

.home .techblo-feature-link strong,
.home .techblo-feature-link span,
.page-id-223 .techblo-feature-link strong,
.page-id-223 .techblo-feature-link span {
  display: block;
}

.home .techblo-feature-link span,
.page-id-223 .techblo-feature-link span {
  margin-top: .55rem;
  color: var(--techblo-muted);
  font-size: .92rem;
}

@media (max-width: 959px) {
  .home .techblo-home-hero,
  .page-id-223 .techblo-home-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .home .techblo-hero-nav,
  .page-id-223 .techblo-hero-nav {
    padding-top: 1.4rem;
    padding-left: 0;
    border-top: 1px solid rgba(43, 119, 115, .3);
    border-left: 0;
  }
}

@media (max-width: 600px) {
  .home .techblo-home-hero,
  .page-id-223 .techblo-home-hero {
    width: calc(100% - 2rem);
    padding: 1.55rem 1.2rem 1.3rem;
  }

  .home .techblo-home-section,
  .page-id-223 .techblo-home-section {
    padding: 3.5rem 1rem;
  }

  .home .techblo-category-grid,
  .page-id-223 .techblo-category-grid {
    grid-template-columns: 1fr;
  }
}


/* Techblo Life: hide SWELL author box only on the three new draft articles. */
.l-content[data-postid="215"] .l-articleBottom__section.-author,
.l-content[data-postid="217"] .l-articleBottom__section.-author,
.l-content[data-postid="219"] .l-articleBottom__section.-author {
  display: none;
}


/* Techblo Life design sync phase 1: local UX mapped to production IDs. */
.home .p-mainVisual,
.home .p-postSlider,
.page-id-223 .p-mainVisual,
.page-id-223 .p-postSlider {
  display: none;
}

/* Profile ID 20: local single-column presentation mapped to production. */
.l-content[data-postid="20"] .l-sidebar {
  display: none;
}

.l-content[data-postid="20"] .l-mainContent {
  width: min(100% - 2rem, 840px);
  max-width: 840px;
  margin-inline: auto;
}

.l-content[data-postid="20"] .l-mainContent__inner {
  padding-top: clamp(3rem, 7vw, 5.5rem);
}

.l-content[data-postid="20"] .post_content {
  color: var(--techblo-ink);
  font-size: 1.05rem;
  line-height: 1.95;
}
