@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/

:root {
  --gadget-bg: #f6f7f9;
  --gadget-surface: #ffffff;
  --gadget-text: #111827;
  --gadget-muted: #6b7280;
  --gadget-border: #e5e7eb;
  --gadget-accent: #2563eb;
  --gadget-accent-strong: #1d4ed8;
  --gadget-accent-soft: #dbeafe;
  --gadget-shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
  --gadget-shadow-hover: 0 24px 60px rgba(37, 99, 235, 0.16);
}

body.home.blog {
  background: var(--gadget-bg);
  color: var(--gadget-text);
}

body.home.blog #content {
  background: var(--gadget-bg);
}

body.home.blog #content-in {
  max-width: 1240px;
}

body.home.blog #main.main {
  background: transparent;
  border: 0;
  padding: 0;
}

body.home.blog.front-top-page .header .header-in {
  min-height: clamp(180px, 30vw, 360px);
}

body.home.blog.front-top-page .header .site-logo-image {
  width: auto;
  max-height: clamp(120px, 22vw, 260px);
  object-fit: contain;
}

body.home.blog .sidebar .widget {
  background: var(--gadget-surface);
  border: 1px solid var(--gadget-border);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
  padding: 18px;
}

.gadget-home-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 28px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.95)),
    repeating-linear-gradient(90deg, rgba(37, 99, 235, 0.05) 0 1px, transparent 1px 72px);
  box-shadow: var(--gadget-shadow);
}

.gadget-home-hero::after {
  content: "";
  position: absolute;
  inset: auto 24px 24px auto;
  width: 38%;
  max-width: 340px;
  aspect-ratio: 1;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 34px;
  transform: rotate(8deg);
  pointer-events: none;
}

.gadget-home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  gap: clamp(24px, 4vw, 44px);
  align-items: end;
}

.gadget-home-hero__eyebrow,
.gadget-home-hero__latest-label {
  margin: 0 0 12px;
  color: var(--gadget-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.gadget-home-hero__title {
  margin: 0;
  color: var(--gadget-text);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: 0;
}

.gadget-home-hero__lead {
  max-width: 700px;
  margin: 18px 0 0;
  color: #374151;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.85;
}

.gadget-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.gadget-home-hero__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  background: var(--gadget-surface);
  color: var(--gadget-accent-strong);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.gadget-home-hero__action:hover,
.gadget-home-hero__action:focus-visible {
  background: var(--gadget-accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
  transform: translateY(-2px);
}

.gadget-home-hero__latest {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
}

.gadget-home-hero__latest-heading {
  margin: 0 0 10px;
  color: var(--gadget-text);
  font-size: 15px;
  font-weight: 800;
}

.gadget-home-hero__latest-link {
  display: block;
  color: var(--gadget-text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.55;
  text-decoration: none;
}

.gadget-home-hero__latest-link:hover,
.gadget-home-hero__latest-link:focus-visible {
  color: var(--gadget-accent-strong);
}

.gadget-home-hero__latest-date {
  display: block;
  margin-top: 12px;
  color: var(--gadget-muted);
  font-size: 13px;
}

body.home.blog #list.front-page-type-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

body.home.blog #list.front-page-type-index .entry-card-wrap {
  display: block;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--gadget-border);
  border-radius: 24px;
  background: var(--gadget-surface);
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.05);
  color: var(--gadget-text);
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

body.home.blog #list.front-page-type-index .entry-card-wrap:hover,
body.home.blog #list.front-page-type-index .entry-card-wrap:focus-visible {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: var(--gadget-shadow-hover);
  transform: translateY(-4px);
}

body.home.blog #list.front-page-type-index .entry-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

body.home.blog #list.front-page-type-index .entry-card-thumb {
  position: relative;
  float: none;
  width: 100%;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #eef2f7;
}

body.home.blog #list.front-page-type-index .entry-card-thumb-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

body.home.blog #list.front-page-type-index .entry-card-wrap:hover .entry-card-thumb-image {
  transform: scale(1.035);
}

body.home.blog #list.front-page-type-index .cat-label {
  top: 12px;
  right: auto;
  bottom: auto;
  left: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.94);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

body.home.blog #list.front-page-type-index .entry-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  margin-left: 0;
  padding: 18px 18px 16px;
}

body.home.blog #list.front-page-type-index .entry-card-title {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--gadget-text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body.home.blog #list.front-page-type-index .entry-card-snippet {
  display: -webkit-box;
  margin: 0 0 16px;
  overflow: hidden;
  color: var(--gadget-muted);
  font-size: 14px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body.home.blog #list.front-page-type-index .entry-card-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  color: var(--gadget-muted);
  font-size: 12px;
}

body.home.blog #list.front-page-type-index .entry-card-info {
  color: var(--gadget-muted);
}

body.home.blog #list.front-page-type-index .post-date .fa {
  margin-right: 5px;
  color: var(--gadget-accent);
}

body.home.blog #list.front-page-type-index .entry-card-categorys {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.home.blog #list.front-page-type-index .entry-category {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--gadget-accent-soft);
  color: var(--gadget-accent-strong);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

body.home.blog .pagination-next-link,
body.home.blog .pagination .page-numbers {
  border-radius: 999px;
  border-color: var(--gadget-border);
}

body.home.blog .pagination .current {
  background: var(--gadget-accent);
  color: #fff;
}

body.home.blog a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.36);
  outline-offset: 3px;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px) {
  .gadget-home-hero__inner {
    grid-template-columns: 1fr;
  }

  .gadget-home-hero__latest {
    max-width: 560px;
  }
}

/*834px以下*/
@media screen and (max-width: 834px) {
  body.home.blog #main.main {
    padding: 0 10px;
  }

  .gadget-home-hero {
    border-radius: 24px;
  }

  body.home.blog #list.front-page-type-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  body.home.blog #list.front-page-type-index .entry-card-title {
    font-size: 18px;
  }
}

@media screen and (max-width: 640px) {
  .gadget-home-hero {
    padding: 26px 20px;
  }

  .gadget-home-hero::after {
    display: none;
  }

  .gadget-home-hero__title {
    font-size: 34px;
  }

  .gadget-home-hero__actions {
    gap: 8px;
  }

  .gadget-home-hero__action {
    min-height: 40px;
    padding: 0 13px;
    font-size: 13px;
  }

  body.home.blog #list.front-page-type-index {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/*480px以下*/
@media screen and (max-width: 480px) {
  body.home.blog #main.main {
    padding: 0 8px;
  }

  .gadget-home-hero {
    margin-bottom: 20px;
  }

  .gadget-home-hero__lead {
    font-size: 15px;
  }

  body.home.blog #list.front-page-type-index .entry-card-content {
    padding: 16px;
  }

  body.home.blog #list.front-page-type-index .entry-card-snippet {
    display: none;
  }
}
