@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
*/

/* ==================================================
   メディア天文台：トップページ
================================================== */

.mt-home {
  background: #ffffff;
  color: #222;
}

.mt-container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}


/* ==================================================
   ヒーロー
================================================== */

.mt-hero {
  padding: 88px 0 82px;
  border-bottom: 1px solid #e5e7eb;
}

.mt-hero-label {
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #34526f;
}

.mt-hero-title {
  max-width: none;
  margin: 0;
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.mt-hero-description {
  margin: 28px 0 0;
  font-size: 18px;
  line-height: 1.9;
  color: #555;
}

.mt-hero-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 38px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #777;
}

.mt-hero-topics span + span::before {
  content: "/";
  margin-right: 24px;
  color: #bbb;
}

.mt-mobile-break {
  display: none;
}


/* ==================================================
   セクション
================================================== */

.mt-section {
  padding: 64px 0;
}

.mt-section-title {
  margin: 0 0 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid #222;
  font-size: 24px;
  font-weight: 700;
}


/* ==================================================
   記事一覧
================================================== */

.mt-post-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
}

.mt-post-card {
  margin: 0;
}

.mt-post-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.mt-post-thumb {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  margin-bottom: 16px;
  background: #f2f2f2;
}

.mt-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mt-post-link:hover .mt-post-thumb img {
  transform: scale(1.03);
}

.mt-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #777;
}

.mt-category {
  font-weight: 700;
  color: #222;
}

.mt-post-title {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.5;
}

.mt-post-excerpt {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #666;
}


/* ==================================================
   カテゴリー
================================================== */

.mt-categories {
  background: #f6f6f6;
}

.mt-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mt-category-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 12px;
  border: 1px solid #ddd;
  background: #fff;
  color: #222;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: 0.2s ease;
}

.mt-category-card:hover {
  border-color: #222;
  background: #222;
  color: #fff;
}


/* ==================================================
   タブレット
================================================== */

@media screen and (max-width: 834px) {

  .mt-post-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mt-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ==================================================
   スマートフォン
================================================== */

@media screen and (max-width: 480px) {

  .mt-container {
    width: min(100% - 28px, 1120px);
  }

  .mt-hero {
    padding: 52px 0 48px;
  }

  .mt-hero-title {
    font-size: 34px;
    white-space: normal;
  }

  .mt-mobile-break {
    display: block;
  }

  .mt-hero-description br {
    display: none;
  }

  .mt-hero-description {
    font-size: 15px;
    line-height: 1.9;
  }

  .mt-hero-topics {
    gap: 8px 14px;
  }

  .mt-hero-topics span + span::before {
    margin-right: 14px;
  }

  .mt-section {
    padding: 44px 0;
  }

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

  .mt-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* スマホではPC用グローバルナビを非表示 */
  #navi {
    display: none;
  }
}


/* ==================================================
   メディア天文台：記事ページ
================================================== */

/* 記事タイトル */
.single .entry-title {
  font-size: 32px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

/* 記事本文 */
.single .entry-content {
  font-size: 17px;
  line-height: 2;
  color: #222;
}

/* 本文の段落 */
.single .entry-content p {
  margin-top: 0;
  margin-bottom: 2em;
}

/* 本文中の見出し */
.single .entry-content h2 {
  margin-top: 2.8em;
  margin-bottom: 1.2em;
  padding: 0 0 12px;
  border-bottom: 2px solid #222;
  background: none;
  font-size: 26px;
  line-height: 1.5;
}

.single .entry-content h3 {
  margin-top: 2.2em;
  margin-bottom: 1em;
  padding: 0 0 0 14px;
  border-left: 4px solid #222;
  background: none;
  font-size: 21px;
  line-height: 1.5;
}

/* 記事ページの外枠を消す */
.single .main {
  border: none;
}


/* ==================================================
   記事ページ：スマートフォン
================================================== */

@media screen and (max-width: 480px) {

  .single .entry-title {
    font-size: 26px;
  }

  .single .entry-content {
    font-size: 16px;
    line-height: 1.9;
  }

  .single .entry-content h2 {
    font-size: 22px;
  }

  .single .entry-content h3 {
    font-size: 19px;
  }
}


/* ==================================================
   固定ページ
================================================== */

/* 固定ページでは公開日・投稿者名を非表示 */
.page .date-tags,
.page .author-info {
  display: none;
}

/* ========================================
   メディア天文台：著者プロフィール
======================================== */

.mt-author-box {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin: 48px 0 32px;
  padding: 24px;
  border-top: 1px solid #d9d9d9;
  border-bottom: 1px solid #d9d9d9;
  background: #fafafa;
}

.mt-author-box__image {
  flex: 0 0 96px;
}

.mt-author-box__image img {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}

.mt-author-box__body {
  flex: 1;
  min-width: 0;
}

.mt-author-box__label {
  margin: 0 0 6px;
  font-size: 12px;
  color: #777;
}

.mt-author-box__name {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
}

.mt-author-box__name a {
  color: inherit;
  text-decoration: none;
}

.mt-author-box__bio {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #444;
}

.mt-author-box__more {
  margin: 12px 0 0;
  font-size: 13px;
}

.mt-author-box__more a {
  text-decoration: underline;
}

@media screen and (max-width: 600px) {
  .mt-author-box {
    display: grid;
    grid-template-columns: 72px 1fr;
    column-gap: 16px;
    row-gap: 16px;
    padding: 20px 16px;
  }

  .mt-author-box__image {
    grid-column: 1;
    grid-row: 1;
  }

  .mt-author-box__image img {
    width: 72px;
    height: 72px;
  }

  .mt-author-box__body {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .mt-author-box__label {
    margin: 0 0 6px;
    font-size: 12px;
  }

  .mt-author-box__name {
    margin: 0;
    font-size: 18px;
  }

  .mt-author-box__bio {
    grid-column: 1 / -1;
    margin: 0;
  }

  .mt-author-box__more {
    grid-column: 1 / -1;
    margin: 0;
  }
}