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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
/* ========================================
   住まいの味方 トップページ用CSS（CR8風）
   ======================================== */

/* トップページのみCocoonのヘッダー・フッター非表示 */
.home .header,
.home .header-container,
.home .appeal,
.home .footer,
.home .footer-bottom,
.home .go-to-top,
.home #notice-area,
.home .breadcrumb,
.home .sidebar,
.home .content-title,
.home #page-top,
.home .navi,
.home .navi-in,
.home .tagline,
.home .site-name-text,
.home #header,
.home #header-in,
.home .header-in,
.home .entry-title,
.home .page-title,
.home .article-header,
.home h1.entry-title,
.home .date-tags,
.home .wp-post-image,
.home .eye-catch {
  display: none !important;
}

body.home .header,
body.home #header,
body.home .entry-title,
body.home h1.entry-title {
  display: none !important;
}

/* 目次を非表示 */
.home .toc,
.home .toc-content,
.home #toc-wrapper,
.home .toc-widget-box {
  display: none !important;
}

/* SNSシェアボタン・フォローボタン・著者情報を非表示 */
.sns-share,
.sns-follow,
.author-info,
.post-author,
.author-box {
  display: none !important;
}

/* 全ページでCocoonフッターを非表示 */
.footer,
.footer-bottom,
#footer,
.footer-in,
.copyright,
.navi-footer,
.footer-widget-area {
  display: none !important;
}

.home .content-in,
.home .wrap {
  padding: 0 !important;
  max-width: 100% !important;
}

.home .main,
.home .content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

.home .entry-content {
  padding: 0 !important;
  margin: 0 !important;
}

/* カスタムトップページ用変数 */
:root {
  --color-bg: #FAFBFC;
  --color-bg-section: #F4F6F8;
  --color-white: #FFFFFF;
  --color-text: #1a1a1a;
  --color-text-secondary: #4a5568;
  --color-text-muted: #718096;
  --color-primary: #2D5A5A;
  --color-primary-light: #3D7A7A;
  --color-primary-bg: #E8F0F0;
  --color-border: #E2E8F0;
  --font-main: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1100px;
  --header-height: 80px;
  --section-padding: 120px;
  --border-radius: 16px;
}

/* ========================================
   Header
======================================== */
.custom-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
}

.custom-header.scrolled {
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo:hover {
  opacity: 0.8;
}

.logo img {
  height: 48px;
  width: auto;
}

.logo-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

.custom-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--color-primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  margin-right: -10px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s ease;
  border-radius: 1px;
}

/* ========================================
   Hero Section
======================================== */
.hero {
  margin-top: var(--header-height);
  padding: 100px 32px 120px;
  background: var(--color-white);
  text-align: center;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 10px 24px;
  background: var(--color-primary-bg);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: 100px;
  margin-bottom: 40px;
}

.hero-title {
  font-size: clamp(26px, 4.5vw, 40px);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 32px;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.hero-title span {
  color: var(--color-primary);
}

.hero-description {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 2;
  margin-bottom: 48px;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 24px 48px;
  background: var(--color-text);
  color: var(--color-white);
  font-size: clamp(15px, 2.5vw, 18px);
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: var(--border-radius);
}

/* ========================================
   Section Base
======================================== */
.custom-section {
  padding: var(--section-padding) 32px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 20px;
  color: var(--color-text);
}

.section-subtitle {
  font-size: 15px;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   Problem Section
======================================== */
.section-problem {
  background: var(--color-bg-section);
}

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

.problem-card {
  background: var(--color-white);
  padding: 40px 32px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.problem-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: var(--color-bg-section);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.problem-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-text);
}

.problem-text {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ========================================
   Message Section
======================================== */
.section-message {
  background: var(--color-white);
}

.message-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.message-text {
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 600;
  line-height: 2;
  color: var(--color-text);
  margin-bottom: 48px;
}

.message-text span {
  color: var(--color-primary);
}

.message-description {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 2.2;
}

/* ========================================
   Feature Section
======================================== */
.section-feature {
  background: var(--color-bg-section);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--color-white);
  padding: 48px 32px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 24px;
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--color-text);
}

.feature-text {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.9;
}

/* ========================================
   Category Section
======================================== */
.section-category {
  background: var(--color-white);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--color-bg);
  padding: 28px 32px;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--color-text);
}

.category-card:hover {
  background: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(45, 90, 90, 0.1);
  transform: translateY(-2px);
}

.category-icon {
  width: 56px;
  height: 56px;
  background: var(--color-white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.category-card:hover .category-icon {
  background: var(--color-primary-bg);
}

.category-content {
  flex: 1;
}

.category-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.category-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.category-arrow {
  color: var(--color-text-muted);
  font-size: 18px;
  transition: all 0.3s ease;
}

.category-card:hover .category-arrow {
  color: var(--color-primary);
  transform: translateX(4px);
}

/* ========================================
   Popular Section
======================================== */
.section-popular {
  background: var(--color-bg-section);
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-item {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--color-white);
  padding: 28px 32px;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--color-text);
}

.article-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.article-rank {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.article-content {
  flex: 1;
}

.article-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 6px;
  color: var(--color-text);
}

.article-meta {
  font-size: 12px;
  color: var(--color-text-muted);
}

.article-arrow {
  color: var(--color-text-muted);
  font-size: 18px;
  transition: all 0.3s ease;
}

.article-item:hover .article-arrow {
  color: var(--color-primary);
  transform: translateX(4px);
}

/* ========================================
   About Section
======================================== */
.section-about {
  background: var(--color-primary);
  color: var(--color-white);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-title {
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 700;
  margin-bottom: 48px;
  line-height: 1.6;
  color: #8FD5CA;
}

.about-text {
  font-size: 16px;
  line-height: 2.2;
  color: var(--color-white);
  font-weight: 500;
}

.about-text p {
  margin-bottom: 24px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ========================================
   Footer
======================================== */
.custom-footer {
  padding: 48px 32px;
  background: #1a1a1a;
  color: var(--color-white);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  height: 40px;
}

.footer-copy {
  font-size: 12px;
  opacity: 0.5;
  letter-spacing: 0.05em;
}

/* ========================================
   Mobile Menu
======================================== */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  z-index: 999;
  padding: 32px;
  flex-direction: column;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  padding: 20px 0;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 900px) {
  :root {
    --section-padding: 80px;
  }

  .problem-grid,
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --section-padding: 64px;
  }

  .custom-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .header-inner {
    padding: 0 20px;
  }

  .logo img {
    height: 40px;
  }

  .logo-text {
    font-size: 13px;
  }

  .hero {
    padding: 60px 20px 80px;
  }

  .hero-tagline {
    padding: 20px 32px;
    font-size: 14px;
  }

  .custom-section {
    padding: var(--section-padding) 20px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .problem-card,
  .feature-card {
    padding: 32px 24px;
  }

  .category-card {
    padding: 20px;
  }

  .article-item {
    padding: 20px;
    gap: 16px;
  }

  .article-title {
    font-size: 14px;
  }
}

/* ========================================
   Animation
======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge,
.hero-title,
.hero-description,
.hero-tagline {
  animation: fadeInUp 0.8s ease forwards;
}

.hero-title { animation-delay: 0.1s; opacity: 0; }
.hero-description { animation-delay: 0.2s; opacity: 0; }
.hero-tagline { animation-delay: 0.3s; opacity: 0; }