/* =========================
   固定ページ・買取ジャンル
========================= */

/* --- 共通の変数定義（Grid版と共通） --- */
:root {
  --font-size-large: clamp(1.5rem, 1vw + 1.5rem, 2.5rem);
  --font-size-medium: clamp(1.1rem, 0.6vw + 1.1rem, 2rem);
}

/* 1. コンテナのレイアウト設定 (3カラム) */
.card-container-flex {
  	/* Flexコンテナとして定義 */
  	display: flex; 
  	/* 子要素を折り返すように設定 */
  	flex-wrap: wrap; 
  	/* カード間の隙間 */
  	gap: 20px; 
	/* 【ここを追加】クロス軸（縦方向）でのアイテムの整列を「開始位置」に設定 */
  	align-items: flex-start;
  	max-width: 1200px; 
  	margin: 30px 30px 0;
    justify-content: space-between;
}

/* 2. カード全体のスタイル */
.card-flex {
  /* Flexboxの核となる設定 */
  /* 0 0: 拡大(grow)も縮小(shrink)もしない */
  /* calc(100% / 3 - 隙間): 3等分から20pxの隙間を引いた幅を計算 */
  	flex: 0 0 calc(33.333% - 13.333px); 
  
  /* カード内のコンテンツを縦方向に配置するためにFlexを再利用 */
  	display: flex; 
  	flex-direction: column;

  /* ご指定のボーダー */
  	border: 2px solid #929292;
  	padding: 25px; 
	width: 360px;
}

.card-flex img{
	width: 100%; 
  	object-fit: cover; 
  	margin-bottom: 10px;
}

/* 4. テキストのスタイル */
.card-title-flex {
  font-size: var(--font-size-large);
  color: black;
  margin-bottom: 5px; 
}

.card-body-flex {
  font-size: var(--font-size-medium);
  color: black;
}

/* 5. 価格ボックスのスタイル */
.price-box-flex {
  	background-color: #000;
  	padding: 10px;
  	text-align: center;
	margin-top: 15px;
}

.price-box-flex p {
  margin: 0; 
  padding: 2px 0;
}

.genre__price-label-flex {
  font-size: var(--font-size-medium);
  color: white;
  line-height: 1.2;
}

.genre__price-value-flex {
  font-size: var(--font-size-large);
  color: white;
  font-weight: bold;
  line-height: 1.2;
}

/* --- レスポンシブ対応 (768px以下で1カラムへ) --- */
@media (max-width: 768px) {
	.card-container-flex{
		margin: 0;
	}
  	.card-flex {
    	/* 1カラム表示にするため、幅を100%に変更 */
    	/* flex-basis (3番目の値) を 100% に設定 */
    	flex: 0 0 100%; 
  	}
}


/*少しずらしたボックス*/
.box-shift{
margin: 1em auto;
padding: 2em 1.8em 2em 2em;/*内側の余白*/
background: none;/*元のボックス背景色なし*/
border:1px solid #ccc ;/*線の太さ・種類・色*/
position: relative;/*配置（基準）*/
}
.box-shift:after{
background-color:#eee;/*ずらしたボックスの背景色*/
border:none;
content: '';
position: absolute;/*配置（ここを動かす）*/
top: 5px;/*上から7pxずらす*/
left: 5px;/*左から7pxずらす*/
width: 100%;
height: 100%;
z-index: -1;
}

.genre__intro {
}
.genre__intro-inner {
    max-width: 1616px;
    width: 96%;
    padding: 5rem 0 9.6rem;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .genre__intro-inner {
        width: 100%;
        padding: 3rem 2.1rem;
    }
}
.genre__intro-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .genre__intro-content {
        width: 100%;
    }
}
 /*.genre__intro-content p {
    font-size: clamp(1.4rem, 1vw, 1.8rem);
    line-height: calc( 3.8/ 1.8);
    margin-bottom: 3rem;
}*/
 /*@media (max-width: 768px) {
    .genre__intro-content p {
        line-height: calc( 2.3/ 1.4);
        margin-bottom: 3rem;
    }
}*/
.cta__page-link {
    display: block;
    width: 300px;
    padding: 1.6rem 2rem;
    text-align: center;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .cta__page-link {
        width: 100%;
        padding: 0.9rem 0;
    }
}
.genre__results {
    margin-bottom: 13.9rem;
}
@media (max-width: 768px) {
    .genre__results {
        margin-bottom: 6.6rem;
        padding: 0 2.1rem;
    }
}
.genre__results-inner {
    max-width: 1632px;
    width: 96%;
    padding: 7.5rem 0 1rem;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .genre__results-inner {
        width: 100%;
        padding: 4.2rem 0 3rem;
    }
}
.genre__results-header {
    text-align: center;
    margin-bottom: 8.5rem;
}
@media (max-width: 768px) {
    .genre__results-header {
        margin-bottom: 3rem;
    }
}
.genre__results-inner .section__text {
    font-size: clamp(1.5rem, 1.9vw, 2rem);
}
.genre__results-title {
    font-size: clamp(2.6rem, 3.6vw, 4rem);
    line-height: 1;
    margin: 0 auto;
    width: fit-content;
    position: relative;
}
.genre__results-title .section__header-parts2 {
    width: 117%;
    position: absolute;
    left: -8%;
    bottom: -1rem;
    transform: translateY(100%);
}
.genre__results-title .section__header-parts2 img {
    width: 100%;
}
@media (max-width: 768px) {
    .genre__results-title .section__header-parts2 {
        width: 110%;
        left: -5%;
        bottom: -0.8rem;
    }
}
.genre__results-list {
}
.genre__results-list-inner {
    display: flex;
    justify-content: flex-start;
}
@media (max-width: 768px) {
    .genre__results-list-inner {
        flex-wrap: wrap;
        gap: 2.1rem;
    }
}
.results__item {
    width: 25.5%;
}
@media (max-width: 768px) {
    .results__item {
        width: 46.8%;
    }
}
.card {
    width: 100%;
    height: 100%;
    transition: all 0.5s ease;
}
.r__card:hover > .r__card-body {
    background-color: #E26900;
    color: #fff;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}
.r__card:hover > .r__card-body > .r__card-body-inner > .r__card-price {   
    border: 1px solid #fff;
}
@media (max-width: 768px) {
    .r__card:hover > .r__card-body {
        background-color: initial;
        color: initial;
        box-shadow: initial;
    }
    .r__card:hover > .r__card-body > .r__card-body-inner > .r__card-price {   
        border: 1px solid initial;
    }
}
.r__card-tag {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    display: inline-block;
    width: 54px;
    height: 24px;
    padding: 0 0.6rem 0.1rem 0.8rem;
    border-radius: 12px;
    text-align: center;
}
@media (max-width: 768px) { 
    .r__card-tag {
        width: 51px;
        height: 23px;
        padding: 0;
        transform: translate(-35%, -50%);
    }
}
.r__card-inner {
    padding: 1.2rem clamp(3rem, 3.7vw, 6.5rem) 0;
    margin-bottom: -3.4rem;
}
@media (max-width: 768px) {
    .r__card-inner {
        padding: 1.2rem 0 0 1.9rem;
        margin-bottom: 0rem;
    }
}
.r__card-image {
    z-index: 10;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: visible;
}
@media (max-width: 768px) {
    .r__card-image {
        position: relative;
    }
}
.r__card-image img {
    display: block;
    width: 100%;
    height: 100%;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    object-fit: cover;
}
.r__card-body {
    z-index: 1;
    position: relative;
    transition: all 0.5s ease;
}
.r__card-body-inner {
    padding: clamp(5rem, 4vw, 6rem) clamp(1rem, 3.2vw, 6rem) 4.6rem;
}
@media (max-width: 768px) { 
    .r__card-body-inner {
        color: #4A4A4A;
        padding: 1.2rem 0 0 1.9rem;
    }
}
.r__card-date {
    display: block;
    margin-bottom: 0.5rem;
    font-size: clamp(1.1rem, 0.9vw, 1.6rem);
}
@media (max-width: 768px) {
    .r__card-date {
        margin-bottom: 0.4rem;
    }
}
.genre__results-list-inner .r__card-title {
    font-size: clamp(1.5rem, 1.2vw, 2.3rem);
    line-height: calc( 3/ 2.3);
    margin-bottom: 1rem;
}
@media (max-width: 768px) { 
    .genre__results-list-inner .r__card-title {
        line-height: 1.5;
    }
}
.genre__results-list-inner .r__card-text {
    font-size: clamp(1.4rem, 0.9vw, 1.6rem);
    letter-spacing: 0.2em;
    margin-bottom: 1.8rem;
}
@media (max-width: 768px) { 
    .r__card-text {
        margin-bottom: 0;
    }
}
.r__card-text-span {
    letter-spacing: 0;
}
.r__card-price {
    font-size: clamp(1.4rem, 1.1vw, 2rem);
    padding: 0 clamp(0.8rem, 1vw, 1.2rem);
    text-align: center;
    width: fit-content;
    border: 1px solid #E26900;
    transition: all 0.5s ease;
}
.r__card-price-sp {
    display: none;
}
@media (max-width: 768px) { 
    .r__card-price {
        padding: 0.15rem 0.75rem
    }
    .r__card-price-pc { 
        display: none;
    }
    .r__card-price-sp {
        display: block;
        width: 100%;
        position: absolute;
        bottom: 0;
        right: 0;
        left: 0;
        padding: 0 0.96rem;
        font-weight: 300;
    }
}
.r__card-price-number {
    font-size: clamp(1.5rem, 1.4vw, 2.6rem);
}
@media (max-width: 768px) {
    .r__card-price-number {
        padding: 0 0.5rem;
    }
}
.cta__g-results-link {
    width: 300px;
}
@media (max-width: 768px) {
    .cta__g-results-link {
        width: 100%;
    }
}

/* =========================
   genre__not-price
========================= */
.genre__not-price {
    padding-bottom: 14rem;
}
@media (max-width: 768px) {
    .genre__not-price {
        padding:0 2.1rem 5rem;
    }
}
.genre__not-price-inner {
    max-width: 1382px;
    width: 75%;
    padding: 5.7rem 0;
    margin: 0 auto;
    border: 10px solid #C14F23;
    position: relative;
    background-size: 111%;
    background-repeat: repeat;
}
@media (max-width: 768px) {
    .genre__not-price-inner {
        width: 100%;
        padding: 4.8rem 0;
        border: 7px solid #C14F23;
        background-size: 250%;
    }
}
.genre__not-price-content {
    max-width: 846px;
    width: 96%;
    margin: 0 auto;
    position: relative;
}
@media (max-width: 768px) {
    .genre__not-price-content {
        width: 100%;
        padding: 0 2.9rem;
    }
}
.genre__not-price-header {
    margin-bottom: 2.8rem;
    text-align: center;
}
@media (max-width: 768px) {
    .genre__not-price-header {
        margin-bottom: 3rem;
        text-align: left;
        position: relative;
    }
}
.genre__not-price-header-title {
    font-size: clamp(2.4rem, 2.1vw, 4rem);
    line-height: calc( 5.7/ 4);
    margin-bottom: 1.8rem;
}
@media (max-width: 768px) { 
    .genre__not-price-header-title {
        margin-bottom: 1rem;
        padding-left: 1.1rem;
        font-weight: 600;
    }
}
.genre__not-price-header-text {
    font-size: clamp(1.1rem, 1.1vw, 2rem);
    line-height: 1.85;
    border-radius: 60px;
    width: fit-content;
    margin: 0 auto;
    padding: 0 3.2rem;
}
@media (max-width: 768px) { 
    .genre__not-price-header-text {
        line-height: 1;
        padding: 0.7rem 0.95rem;
    }
}
.genre__not-price-list {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 7.2rem;
}
@media (max-width: 768px) {
    .genre__not-price-list {
        margin-bottom: 3rem;
    }
}
.genre__not-price-item {
    width: 48%;
}
@media (max-width: 768px) {
    .genre__not-price-item {
        width: 100%;
        margin-bottom: 1rem;
    }
}
.genre__not-price-item-text {
    font-size: clamp(1.4rem, 1.3vw, 2.4rem);
}
.genre__not-price-icon {
    margin-right: 1.5rem;
}
.genre__not-price-text {
    font-size: clamp(1.1rem, 1vw, 1.8rem);
}
.genre__not-image {
    width: 27%;
    position: absolute;
    bottom: 0;
    right: -11rem;
    z-index: 10;
}
@media (max-width: 768px) {
    .genre__not-image {
        max-width: 160px;
        width: 41%;
        top: 15px;
        bottom: initial;
        right: 13px;
        transform: translateY(-50%);
    }
}
.genre__not-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
