/*
Theme Name: ミミルライフ Cocoon Child
Description: Cocoon専用のミミルライフ子テーマ
Author: ミミルライフ
Template: cocoon-master
Version: 1.4
Text Domain: mimiru-cocoon-child
*/

/* ========================================
   ミミルライフ Ver.2.0
   共通設定
======================================== */

:root {
  --blue: #168bd2;
  --deep-blue: #075f9c;
  --sky-blue: #7ec8f8;
  --light-blue: #eef9ff;
  --white: #ffffff;
  --text: #17324a;
  --gray: #64798a;
  --line: #cfe7f5;
  --pink: #f48bab;
  --green: #67c77b;
  --orange: #f5a33b;
  --purple: #9a72dd;
  --yellow: #f5c242;

  --shadow:
    0 14px 35px rgba(28, 102, 145, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  color: var(--text);
  background: #ffffff;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Yu Gothic",
    Meiryo,
    sans-serif;
  line-height: 1.8;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
article {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

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


/* ========================================
   ヘッダー
======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #e1eff7;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.header-inner {
  position: relative;
  width: min(1280px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-logo {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 11px;
}

.header-logo-image {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 5px 14px rgba(22, 139, 210, 0.15);
}

.site-logo strong {
  display: block;
  color: var(--blue);
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.site-logo small {
  display: block;
  color: var(--gray);
  font-size: 11px;
  line-height: 1.3;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  padding: 25px 0 21px;
  border-bottom: 3px solid transparent;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--blue);
  border-bottom-color: var(--sky-blue);
}

.menu-button {
  display: none;
  padding: 9px 13px;
  border: 0;
  border-radius: 11px;
  background: var(--light-blue);
  color: var(--deep-blue);
  font-size: 24px;
  cursor: pointer;
}


/* ========================================
   ヒーローエリア
======================================== */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #d8edf8;
  background:
    radial-gradient(
      circle at 14% 20%,
      rgba(255, 255, 255, 0.95) 0 3%,
      transparent 4%
    ),
    radial-gradient(
      circle at 72% 10%,
      rgba(255, 255, 255, 0.8) 0 2%,
      transparent 3%
    ),
    linear-gradient(
      135deg,
      #e8f7ff 0%,
      #ffffff 48%,
      #dff3ff 100%
    );
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}

.hero::before {
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background:
    rgba(126, 200, 248, 0.17);
}

.hero::after {
  right: -120px;
  bottom: -130px;
  width: 350px;
  height: 350px;
  background:
    rgba(126, 200, 248, 0.15);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 40px));
  min-height: 625px;
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 0.85fr;
  align-items: center;
  gap: 32px;
}

.hero-character {
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-mimiru {
  width: 100%;
  max-width: 460px;
  max-height: 535px;
  object-fit: contain;
  filter:
    drop-shadow(
      0 20px 22px rgba(22, 82, 117, 0.17)
    );
}

.hero-message {
  min-width: 0;
}

.hero-ribbon {
  display: inline-block;
  margin: 0 0 18px;
  padding: 10px 22px;
  border-radius: 999px;
  background:
    linear-gradient(
      135deg,
      #168bd2,
      #39b5ef
    );
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  box-shadow:
    0 8px 20px rgba(22, 139, 210, 0.2);
}

.hero-message h1 {
  margin: 0;
  font-size: clamp(44px, 5vw, 74px);
  line-height: 1.16;
  letter-spacing: 0.01em;
}

.hero-message h1 span {
  color: var(--blue);
}

.hero-description {
  margin: 25px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 2;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.hero-points div {
  min-height: 120px;
  padding: 17px 8px;
  border-right: 1px solid #cfe7f5;
  text-align: center;
}

.hero-points div:last-child {
  border-right: 0;
}

.hero-points span {
  display: block;
  margin-bottom: 5px;
  font-size: 34px;
  line-height: 1.2;
}

.hero-points strong {
  font-size: 14px;
  line-height: 1.65;
}


/* ========================================
   ミミル診断
======================================== */

.diagnosis {
  padding: 28px 24px;
  border: 1px solid #d8eaf3;
  border-radius: 30px;
  background:
    rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.diagnosis h2 {
  margin: 0 0 14px;
  color: var(--blue);
  text-align: center;
  font-size: 24px;
}

.diagnosis > p {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 800;
}

.diagnosis-buttons {
  display: grid;
  gap: 10px;
}

.diagnosis-buttons a {
  position: relative;
  display: block;
  padding: 12px 37px 12px 17px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.diagnosis-buttons a::after {
  position: absolute;
  top: 50%;
  right: 17px;
  content: "›";
  transform: translateY(-52%);
  font-size: 22px;
  line-height: 1;
}

.diagnosis-buttons a:hover {
  transform: translateX(5px);
  filter: brightness(0.98);
}

.diagnosis-ai {
  color: #1269a3;
  background: #dff2ff;
}

.diagnosis-blog {
  color: #378d45;
  background: #e8f8e6;
}

.diagnosis-work {
  color: #b86e11;
  background: #fff0d9;
}

.diagnosis-youtube {
  color: #c93949;
  background: #ffe3e6;
}

.diagnosis-unknown {
  color: #7252aa;
  background: #eee5ff;
}


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

.section {
  padding: 84px 0;
}

.section-soft {
  background: #f6fbfe;
}

.section-heading {
  margin-bottom: 38px;
  text-align: center;
}

.section-heading p {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 43px);
  line-height: 1.4;
}


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

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

.category-card {
  min-height: 315px;
  padding: 28px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  text-align: center;
  box-shadow:
    0 8px 24px rgba(27, 91, 130, 0.09);
}

.category-card:hover {
  transform: translateY(-7px);
  box-shadow:
    0 15px 33px rgba(27, 91, 130, 0.16);
}

.category-icon {
  margin-bottom: 8px;
  font-size: 52px;
  line-height: 1.2;
}

.category-card h3 {
  margin: 0 0 12px;
  font-size: 23px;
}

.category-card p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.8;
}

.category-card span {
  display: block;
  margin-top: auto;
  padding: 10px 8px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.category-ai {
  background: #edf8ff;
}

.category-ai h3 {
  color: #168bd2;
}

.category-ai span {
  background: #168bd2;
}

.category-sns {
  background: #fff0f5;
}

.category-sns h3 {
  color: #e65082;
}

.category-sns span {
  background: #e65082;
}

.category-blog {
  background: #effbef;
}

.category-blog h3 {
  color: #40a954;
}

.category-blog span {
  background: #40a954;
}

.category-work {
  background: #fff6e9;
}

.category-work h3 {
  color: #eb8a20;
}

.category-work span {
  background: #eb8a20;
}

.category-recommend {
  background: #f6f0ff;
}

.category-recommend h3 {
  color: #8859ce;
}

.category-recommend span {
  background: #8859ce;
}

.category-lab {
  background: #fff9e7;
}

.category-lab h3 {
  color: #d59c10;
}

.category-lab span {
  background: #e0ab22;
}


/* ========================================
   人気記事
======================================== */

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

.article-card {
  overflow: hidden;
  border: 1px solid #dcebf4;
  border-radius: 23px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.article-card:hover {
  transform: translateY(-7px);
}

.article-image {
  height: 245px;
  padding: 16px;
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      #e5f5fd,
      #fafdff
    );
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(
      0 9px 10px rgba(30, 89, 122, 0.13)
    );
}

.article-content {
  padding: 22px;
}

.article-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.article-content h3 {
  margin: 12px 0 8px;
  font-size: 21px;
  line-height: 1.5;
}

.article-content p {
  margin: 0 0 12px;
  color: var(--gray);
  font-size: 14px;
}

.article-content a {
  color: var(--blue);
  font-weight: 900;
}


/* ========================================
   ミミル研究所
======================================== */

.laboratory {
  overflow: hidden;
  min-height: 390px;
  padding: 46px;
  border: 1px solid #d6ebf7;
  border-radius: 29px;
  background:
    linear-gradient(
      105deg,
      rgba(255, 255, 255, 0.98),
      rgba(224, 245, 255, 0.92)
    );
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  align-items: center;
  gap: 28px;
}

.laboratory-label,
.about-label,
.contact-label {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.laboratory h2,
.about-card h2,
.contact-card h2 {
  margin: 0 0 14px;
  font-size: 36px;
  line-height: 1.4;
}

.laboratory-links {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.laboratory-links a {
  padding: 11px 18px;
  border: 1px solid #9ed4ef;
  border-radius: 999px;
  background: #ffffff;
  color: var(--blue);
  font-weight: 800;
}

.laboratory-links a:hover {
  color: #ffffff;
  background: var(--blue);
  transform: translateY(-2px);
}

.laboratory-character {
  align-self: end;
  display: flex;
  justify-content: center;
}

.laboratory-mimiru {
  width: 100%;
  max-width: 320px;
  max-height: 350px;
  object-fit: contain;
  filter:
    drop-shadow(
      0 16px 17px rgba(22, 79, 110, 0.16)
    );
}


/* ========================================
   ミミルについて
======================================== */

.about-card {
  max-width: 960px;
  margin: 0 auto;
  padding: 42px;
  border: 1px solid #d7eaf5;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  gap: 38px;
}

.about-character {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-mimiru {
  width: 100%;
  max-width: 250px;
  max-height: 300px;
  object-fit: contain;
  filter:
    drop-shadow(
      0 12px 14px rgba(22, 79, 110, 0.14)
    );
}

.main-button,
.contact-button {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      #168bd2,
      #39b6ef
    );
  font-weight: 900;
  box-shadow:
    0 8px 20px rgba(22, 139, 210, 0.2);
}

.main-button:hover,
.contact-button:hover {
  transform: translateY(-3px);
  filter: brightness(1.04);
}


/* ========================================
   お問い合わせ
======================================== */

.contact-card {
  padding: 40px 46px;
  border: 1px solid #d5e8f3;
  border-radius: 26px;
  background:
    linear-gradient(
      135deg,
      #ffffff,
      #eef9ff
    );
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}


/* ========================================
   フッター
======================================== */

.site-footer {
  padding: 52px 0 22px;
  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      #0878c0,
      #168fd5
    );
}

.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo-image {
  width: 74px;
  height: 74px;
  margin-bottom: 8px;
  border: 3px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  object-fit: cover;
}

.footer-logo {
  font-size: 28px;
}

.footer-inner p {
  margin: 7px 0;
}

.footer-links {
  margin: 26px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 28px;
}

.footer-links a {
  font-weight: 700;
}

.footer-links a:hover {
  opacity: 0.75;
}

.copyright {
  padding-top: 20px;
  border-top:
    1px solid rgba(255, 255, 255, 0.28);
  font-size: 13px;
}


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

@media (max-width: 1100px) {

  .main-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .main-nav.is-open {
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    padding: 18px;
    border: 1px solid #d7eaf5;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
    display: grid;
    gap: 4px;
  }

  .main-nav.is-open a {
    padding: 12px;
    border: 0;
    border-radius: 10px;
  }

  .main-nav.is-open a:hover {
    background: var(--light-blue);
  }

  .hero-inner {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .diagnosis {
    grid-column: 1 / -1;
    width: min(720px, 100%);
    margin: 0 auto;
  }

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


/* ========================================
   スマホ対応
======================================== */

@media (max-width: 760px) {

  .container,
  .header-inner,
  .hero-inner,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    min-height: 66px;
  }

  .header-logo-image {
    width: 44px;
    height: 44px;
  }

  .site-logo strong {
    font-size: 19px;
  }

  .site-logo small {
    font-size: 9px;
  }

  .main-nav.is-open {
    top: 66px;
  }

  .hero-inner {
    min-height: auto;
    padding: 34px 0 48px;
    grid-template-columns: 1fr;
  }

  .hero-character {
    order: 1;
  }

  .hero-message {
    order: 2;
    text-align: center;
  }

  .diagnosis {
    order: 3;
  }

  .hero-mimiru {
    max-width: 390px;
    max-height: 440px;
  }

  .hero-message h1 {
    font-size: 45px;
  }

  .hero-ribbon {
    font-size: 14px;
  }

  .hero-description {
    font-size: 15px;
    text-align: left;
  }

  .hero-points div {
    min-height: 105px;
    padding: 12px 5px;
  }

  .hero-points span {
    font-size: 28px;
  }

  .hero-points strong {
    font-size: 12px;
  }

  .category-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 270px;
  }

  .article-image {
    height: 270px;
  }

  .laboratory {
    min-height: auto;
    padding: 30px 22px 0;
    grid-template-columns: 1fr;
  }

  .laboratory-character {
    margin-top: 10px;
  }

  .laboratory-mimiru {
    max-width: 300px;
  }

  .laboratory h2,
  .about-card h2,
  .contact-card h2 {
    font-size: 30px;
  }

  .about-card {
    padding: 30px 22px;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-mimiru {
    max-width: 240px;
  }

  .contact-card {
    padding: 30px 22px;
    flex-direction: column;
    text-align: center;
  }

  .section {
    padding: 62px 0;
  }
}


/* ========================================
   小さいスマホ対応
======================================== */

@media (max-width: 430px) {

  .site-logo strong {
    font-size: 17px;
  }

  .hero-message h1 {
    font-size: 38px;
  }

  .hero-points {
    gap: 0;
  }

  .hero-points strong {
    font-size: 11px;
  }

  .diagnosis {
    padding: 24px 17px;
  }

  .section-heading h2 {
    font-size: 29px;
  }

  .laboratory-links {
    display: grid;
  }

  .laboratory-links a {
    text-align: center;
  }
}
/* WordPress管理バー表示時の固定ヘッダー調整 */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Cocoon標準の余白をトップページでは使わない */
body.mimiru-custom-home { margin: 0; }
body.mimiru-custom-home #wpadminbar { line-height: 1; }


/* Ver.2.0 自動記事表示 */
.mimiru-all-posts-link {
  margin-top: 34px;
  text-align: center;
}

.mimiru-empty-message {
  grid-column: 1 / -1;
  margin: 0;
  padding: 30px;
  border-radius: 18px;
  background: #ffffff;
  text-align: center;
  font-weight: 700;
}

.article-image {
  color: inherit;
}

.article-content h3 a {
  color: inherit;
}

.article-content h3 a:hover {
  color: var(--blue);
}
