/*
  Skin Name: グッドピラティス用スキン
  Description: グッドピラティス用にカスタマイズされたCocoonのスキンです。
  Skin URI: https://wp-cocoon.com/
  Author: 山中
  Author URI:
  Screenshot URI: https://im-cocoon.net/wp-content/uploads/skin-template.png
  Version: 1.0.2
  Priority: 9999000000
*/

:root {
  --primary-color: #FF6B6B;
  --primary-color-light: #FF6B6B66;
  --secondary-color: #4ECDC4;
  --text-dark: #333;
  --text-gray: #666;
  --text-lighter: #999;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-medium: 0 5px 15px rgba(0,0,0,0.1);
  --shadow-heavy: 0 10px 30px rgba(0,0,0,0.2);
}

/* ベーススタイル */
body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.pilates-home {
    overflow-x: hidden;
}

/* セクション共通スタイル */
.section-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* ヒーローセクション */
.hero-section {
    position: relative;
    height: 50vh;
	min-height: 480px;
    background: linear-gradient(90deg, 
		        rgba(255,255,255,0.95) 0%, 
        		rgba(255,255,255,0.9) 50%, 
		        rgba(255,255,255,0.5) 80%, 
        		rgba(255,255,255,0) 100%),
                url('./images/top-hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
	justify-content: center;
    color: white;
}

.hero-content {
	padding-top: 80px;
	width: 80%;
    max-width: 1440px;
	color: var(--text-dark);
}

.hero-text {
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    margin-bottom: 2rem;
    color: var(--text-light);
}

/* 検索フォーム */
.search-form-container,
.cta-search-form {
    max-width: 500px;
}

.pilates-search-form {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-heavy);
}

.search-input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input {
	height: 48px;
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-light);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-white);
}

.search-button {
	height: 48px;
    padding: 12px 32px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
	justify-content: center;
}

.search-button:hover {
    background: #ff5252;
    transform: scale(1.05);
}

/* 悩みセクション */
.problems-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.problems-container {
	width: 80%;
	max-width: 1440px;
	margin: 0 auto;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.problem-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

.problem-item:hover {
    transform: translateY(-5px);
}

.problem-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.problem-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.problem-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.problem-description {
    color: var(--text-gray);
	font-size: 1.0rem;
    line-height: 1.6;
}

/* 解決策セクション */
.solution-section {
    padding: 5rem 0;
    background: var(--bg-white);
}

.solution-container {
	width: 80%;
	max-width: 1440px;
	margin: 0 auto;
}

.solution-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.solution-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.solution-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.feature-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
	text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-description {
    color: var(--text-gray);
	font-size: 1.0rem;
    line-height: 1.6;
}

/* ステップセクション */
.steps-section {
    padding: 5rem 0;
    background: var(--bg-gray);
}

.steps-container {
	width: 80%;
	max-width: 1440px;
	margin: 0 auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 4rem;
}

.step-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-light);
}

.step-number {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.step-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.step-description {
    color: var(--text-gray);
	font-size: 1.0rem;
    margin-bottom: 1.5rem;
}

.step-image {
    border-radius: 8px;
    overflow: hidden;
}

.step-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* 特集セクション */
.featured-section {
    background: var(--bg-white);
    border-radius: 12px;
/*     box-shadow: var(--shadow-medium); */
    padding: 2rem;
}

.featured-content {
	width: 80%;
	max-width: 1440px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
}

.featured-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* FAQ セクション */
.faq-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.faq-container {
    width: 60%;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    display: block;
    overflow: hidden; /* アニメーション時のはみ出しを防止 */
    transition: margin-bottom 0.3s ease; /* マージンのアニメーション */
}

.faq-item:not([open]) {
    margin-bottom: 7px;
}

.faq-item summary {
    display: block;
    position: relative;
    padding: 1em 2em;
    border-left: 5px solid var(--primary-color);
    background-color: var(--bg-white) !important;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.3s ease; /* 背景色のアニメーション */
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before,
.faq-item summary::after {
    position: absolute;
    right: 2em;
    top: 50%;
    width: 3px;
    height: .9em;
    border-radius: 5px;
    background-color: var(--primary-color);
    content: '';
    transform-origin: center center;
    transform: translateY(-50%);
    transition: transform .3s ease; /* イージング追加 */
}

.faq-item summary::before {
    transform: translateY(-50%) rotate(90deg);
}

.faq-item summary::after {
    transform: translateY(-50%) rotate(0deg);
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(90deg);
}

/* アコーディオン本体のアニメーション */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:not([open]) {
    max-height: 60px; /* summaryの高さに相当 */
}

.faq-item[open] {
    max-height: 300px; /* 十分大きな値を設定（内容に応じて調整） */
    transition: max-height 0.4s ease;
}

/* コンテンツ部分のアニメーション */
.faq-item p {
    display: block;
    clear: both;
    margin: 0;
    padding: 0 2em 2em 2em;
    color: var(--text-gray);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: 
        max-height 0.4s ease,
        opacity 0.3s ease 0.1s,
        transform 0.3s ease 0.1s,
        padding 0.3s ease;
}

.faq-item[open] p {
    max-height: 200px; /* 内容に応じて調整 */
    opacity: 1;
    transform: translateY(0);
    padding: 1em 2em 2em 2em;
}


/* CTA セクション */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, 
        rgba(255, 107, 107, 0.1) 0%, 
        rgba(78, 205, 196, 0.1) 100%);
}

.cta-content {
    text-align: center;
}

.cta-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin: 0 auto 2rem;
    max-width: 600px;
    line-height: 1.6;
}

.cta-search-form {
    margin: 0 auto 2rem;
}

.cta-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.cta-tag {
    padding: 0.5rem 1rem;
    background: var(--bg-white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.cta-tag:hover {
    background: var(--bg-light);
    color: var(--text-gray) !important;
    transform: translateY(-2px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .search-input-group {
        flex-direction: column;
    }
    
    .featured-content {
        grid-template-columns: 1fr;
    }
    
    .mobile-break {
        display: block;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .problems-grid,
    .features-grid,
    .steps-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    .search-input-group {
        flex-direction: row;
    }
    
    .mobile-break {
        display: inline;
    }
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* 既存のCocoonスタイルとの調整 */
body.front-top-page .main {
    padding: 0 !important;
}

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

/*******************************************************************************/

/* グローバルメニューとメインコンテンツとの間のスキマを消す */
.pilates-home {
	margin: -25px;
}

/* グローバルメニュー：通常時 */
.navi-in .menu-header .item-label {
  font-weight: bold;
  padding: 14px 20px;
  transition: color 0.3s, background-color 0.3s;
}

/* グローバルメニューリンク hover時 */
.navi-in .menu-header .item-label:hover {
  color: var(--secondary-color) !important;
  background: transparent;
}

/* サイドバー */

#sidebar {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* サイドバーの検索フォーム */
.search-filter {
  padding: 0px 4px;
  margin-bottom: 20px;
}

.search-filter-title {
  font-size: 18px;
  font-weight: bold;
  color: #8b5e3c;
  margin-bottom: 15px;
}

.search-filter input[type="text"],
.search-filter select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid #e0d5cc;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  box-sizing: border-box;
}

.search-filter input[type="text"]:focus,
.search-filter select:focus {
  border: 1px solid #93a3b7; /* ブルーアクセント */
}
/* 見出し */

.article h2 {
  background: var(--primary-color);
  color: white;
  padding: .4em .6em;
  margin-top: 60px;
  margin-bottom: 20px;
}

.article h3 {
  border: none;
  font-size: 24px;
  color: var(--text-dark);
  border-bottom: 1px solid var(--primary-color);
  padding: .4em .6em;
  margin-top: 40px;
  margin-bottom: 15px;
}

.article h4 {
  font-size: 18px;
  border-top: none;
  margin-top: 20px;
  margin-bottom: 10px;
}


/* サイトバー */
/* サイドバータイトル */
.sidebar h3 {
  font-size: 24px;
  background: transparent;
  padding: 0px 0px;
  color: var(--primary-color);
  border-bottom: 2px var(--primary-color) dotted;
  letter-spacing: 0.2em;
}
/* 検索ボタン */
.sidebar .search-filter button[type="submit"] {
  width: 100%;
  padding: 8px;
  background-color: var(--primary-color);
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-bottom: 12px;
}
.sidebar .search-filter button[type="submit"]:hover {
  background-color: #aaa;
}

/*固定ページの投稿日、更新日、投稿者名を非表示にする*/
.page .date-tags,
.page .author-info {
    display: none;
}

/* 主に投稿ページに配置するGoodBox, BadBoxの背景色 */
div.good-box,
div.bad-box {
	background-color: white;
}

/* 目次 */
.toc {
  width: 95%;
  background-color: white;
	border: 4px solid var(--primary-color-light);
}
.toc-title {
	font-weight: bold;
	color: var(--primary-color);
}
.toc a {
	color: var(--text-dark);
	font-size: 16px;
}
.toc ol ol a {
	font-size: 14px;
}

.wp-block-cocoon-blocks-caption-box-1 {
	max-width: 520px;
	margin: 0 auto;
	border: 0.5px var(--primary-color) solid;
}

.wp-block-cocoon-blocks-button-wrap-1 {
  display: flex;
  justify-content: center; /* 横方向の中央揃え */
  padding-bottom: 20px;
}

.wp-block-cocoon-blocks-button-wrap-1 a {
	max-width: 75%;
}

.inyo,
.inyo a {
	color: #cfcfcf;
	text-decoration: none;
}

/* 記事一覧の写真左上にあるカテゴリラベル */
.cat-label {
  background-color: rgba(255,107,107,0.6);
	border: none;
}
.cat-link {
  background-color: var(--primary-color);
}
.cat-link:hover {
  background-color: var(--primary-color);
}

/* フッター */
h2.footer-title {
  margin-bottom: 0.5rem;
  font-size: 2.0rem;
}
p.footer-text {
  font-size: 0.9rem;
}

h3.footer-title {
	padding: 20px 0px;
}