/* 検索ページ用スタイル */

/* =============================================== */
/* 検索フォームセクション */
/* =============================================== */
.search-form-section {
    margin-bottom: 2rem;
}

.accordion-container .accordion-title {
    margin: 0;
    border: none;
}

/* アコーディオン開閉ボタンのスタイル */
.accordion-trigger {
    display: flex;
    justify-content: center; /* 中央寄せ */
    align-items: center;
    gap: 0.5em;
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    background-color: var(--primary-color); /* スキンのプライマリカラーを使用 */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.accordion-trigger:hover {
    background-color: var(--primary-color-light, #ff8a8a); /* ホバー時の色 */
}

.accordion-trigger:active {
    transform: scale(0.98); /* クリック時に少し小さくする */
}

.accordion-trigger i {
    transition: transform 0.3s ease-in-out;
}

/* 開いている時の矢印の向き */
.accordion-trigger[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* フォームコンテンツのスタイル */
.accordion-content {
    margin-top: 1rem;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-white);
}

/* フォーム内のラッパーの不要な余白や影をリセット */
.accordion-content .search-form-wrapper {
    padding: 0;
    border: none;
    box-shadow: none;
}


/* =============================================== */
/* 検索結果一覧セクション */
/* =============================================== */

h2.section-title {
	margin-bottom: 16px;
}

/* グリッドレイアウトを解除 */
.studio-results-grid {
    display: block;
}

/* 記事アイテムのスタイル */
.studio-result-item {
    display: block;
    margin-bottom: 1em;
    padding-bottom: 12px;
}
.studio-result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* 記事アイテムのリンク（内部をFlexboxでレイアウト） */
.studio-result-item a {
    display: flex;
    gap: 1.5rem;
    text-decoration: none;
    color: inherit;
}

/* 左側：サムネイル画像 */
.studio-result-thumbnail {
    flex: 0 0 320px; /* 幅を200pxで固定 */
    width: 320px;
    height: 180px;
}
.studio-result-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* アスペクト比を維持してトリミング */
}

/* 右側：テキストコンテンツ */
.studio-result-content {
    flex: 1;
}

.studio-result-title {
    font-size: 18px;
    margin: 0 0 0.5rem 0;
}

.studio-result-excerpt {
    font-size: 12.8px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.studio-result-date {
    font-size: 11.2px;
    color: var(--text-lighter);
    text-align: right;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .studio-result-item a {
        /* 縦積みのレイアウトに変更 */
        flex-direction: column;
        gap: 1rem; /* 画像とテキストの間の隙間を少し狭める */
    }

    .studio-result-thumbnail {
        flex-basis: auto; /* flexの固定幅を解除 */
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9; /* 高さを自動にし、アスペクト比で制御 */
    }
	.studio-result-excerpt {
		display: none;
	}
}
