@charset "UTF-8";

html {
  font-size               : 62.5%;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust   : 100%;
  -ms-text-size-adjust    : 100%;
  text-size-adjust        : 100%;
}

body {
font-family: "hiragino-kaku-gothic-pron", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "YuGothic", "Meiryo", "Noto Sans JP", "Noto Sans CJK JP", sans-serif;  color      : #2F2F2F;
background : #fff5de;
}

body.noscroll {
  overflow: hidden;
}

a {
  display: block;
}

img {
  width    : 100%;
  max-width: 100%;
  display  : block;
}

.wrap {
  overflow-x: hidden;
}

.container {
  max-width: 1064px;
  margin   : 0 auto;
  padding  : 0 30px;
}

/* -- txt
-------------------------------------- */
.txt {
  font-size  : 1.8rem;
  line-height: 2;
}

/* -- btn
-------------------------------------- */
.btn {
  font-size         : 1.8rem;
  color             : #fff;
  font-weight       : 500;
  height            : 60px;
  display           : flex;
  align-items       : center;
  justify-content   : center;
  border-radius     : 5px;
  transition        : .2s
}

.btn:hover {
  filter    : brightness(85%) contrast(120%);
  transition: .2s
}

@media screen and (max-width: 360px) {
  html {
    font-size: 53.5%;
  }
}

/* ================================================================
  header
==================================================================*/
.header {
  height    : 50px;
  background   : rgba(255, 255, 255, 0.9);
  padding   : 0 40px;
  position  : fixed;
  top       : 0;
  left      : 0;
  right     : 0;
  z-index   : 1000;
  border-bottom: 1px solid #ccc; /* ボーダーの設定 */
}

.h_container {
  height     : 100%;
  display    : flex;
  align-items: center;
  justify-content: space-between;
}

.h_logo {
  display: flex;
  gap:10px;
  width: 65%;
}

.h_logo a img{
  width: 120px;
  height: 36px;
}

.h_btn_list {
  display        : flex;
  justify-content: flex-end;
  align-items    : center;
  gap            : 40px;
}

.h_btn {
  width : 80px;
  height: 50px;
}

.h_login_btn {
  background     : url(../assets/img/h-login-btn.svg) no-repeat;
  background-size: 100%;
}

.h_signup_btn {
  background     : url(../assets/img/h-signup-btn.svg) no-repeat;
  background-size: 100%;
}


/* -- responsive ----------------------------------------------------------------------------------------------------------------------- */
@media screen and (max-width: 600px) {
  .header {
    height : 50px;
    padding: 0 16px 0 12px;
    width: 100%;
  }

  .h_logo a img{
    width: 120px;
  }

  .h_btn_list {
    width: calc(100%-60px);
    gap  : 0;
  }

  .h_btn_list li:nth-child(2) {
    margin: 0 10px 0 10px;
  }

  .h_btn {
    width : 50px;
    height: 30px;
  }
}

/* -------------------------------------
  nav_btn
--------------------------------------- */
.nav_btn {
  width          : 25px;
  height         : 32px;
  display        : flex;
  flex-direction : column;
  justify-content: center;
  align-items    : center;
  cursor         : pointer;
  position       : relative;
  z-index        : 200;
}
.nav_btn span {
  width        : 100%;
  height       : 5px;
  background   : #ffbf1f;
  display      : inline-block;
  transition   : 0.3s;
  border-radius: 20px;
}
.nav_btn span:nth-child(2) {
  margin: 4px 0;
}
.nav_btn.active span:nth-child(1) {
  transform    : translateY(11.5px) rotate(-45deg);
  transition   : 0.3s;
  background   : #000;
  height       : 8px;
  border-radius: unset;
}
.nav_btn.active span:nth-child(2) {
  transform       : scaleX(0);
  transform-origin: right top;
  transition      : transform .3s;
}

.nav_btn.active span:nth-child(3) {
  transform    : translateY(-10px) rotate(45deg);
  transition   : 0.3s;
  background   : #000;
  height       : 8px;
  border-radius: unset;
}

/* -- responsive -------------------------------------- */
@media screen and (max-width: 600px) {
  .nav_btn {
    width : 25px;
    height: 32px;
  }
  .nav_btn span:nth-child(2) {
    margin: 4px 0;
  }
  .nav_btn.active span:nth-child(1) {
    height   : 8px;
    transform: translateY(11.5px) rotate(-45deg);
  }
  .nav_btn.active span:nth-child(3) {
    height: 8px;
  }
}

/* -------------------------------------
  h_nav
--------------------------------------- */
.h_nav {
  width     : 28%;
  height    : 90vh;
  position  : fixed;
  top       : 0;
  right     : -25%;
  transition: all .5s;
  visibility: hidden;
  z-index   : 100;
  background: #FFBF1F;
}

.h_nav.active {
  position  : fixed;
  top       : 0;
  right     : -1%;
  visibility: visible;
  height    : 90vh;
  z-index   : 100;
  overflow-y: scroll;
  transition: all .5s;
  background: #FFBF1F;
}

.h_nav_list {
  width          : 100%;
  height         : 100%;
  display        : flex;
  flex-direction : column;
  justify-content: center;
  padding        : 0 20px;
}

.h_nav_list li {
  width      : 100%;
  line-height: 1.4;
}

.h_nav_list li:nth-child(3) {
  margin: 0 0;
}

.h_nav_list li a {
  font-size  : 2.0rem;
  font-weight: 800;
}

/* -- responsive ----------------------------------------------------------------------------------------------------------------------- */
@media screen and (max-width: 1100px) {
  .h_nav_list li a {
    font-size: 2rem;
  }
}
@media screen and (max-width: 1024px) {
  .h_nav {
    right: -40%;
  }
  .h_nav.active {
    width: 40%;
  }
  .h_nav_list li a {
    font-size: 2rem;
  }
}

@media screen and (max-width: 600px) {
  .h_nav {
    right: -85%;
  }

  .h_nav.active {
    width: 85%;
  }

  .h_nav_list li a {
    font-size: 2rem;
  }
}

.l-container {
   background: #FFF;
   gap: 0 2rem;
   margin: 6rem auto 0;
   max-width: 136rem;
   padding: 2.4rem 4rem;
}
@media screen and (max-width: 1024px) {
   .l-container {
    margin-top: 5rem;
   }
}

@media screen and (max-width: 768px) {
.l-container {
    background: #fff;
    flex-direction: column;
    gap: 4rem 0;
    padding: 0;
}
}
@media screen and (max-width: 600px) {
.l-container {
    gap: 1rem 0;
}
}

/* グローバルメニュー */
.global-menu-bar {
    display: flex;
    align-items: center;
    background-color: #ffbf1f;
    height: 56px;
}

/* 各メニューを均等幅に */
.menu-item {
    flex: 1;                           /* ★ ここが肝 */
    display: flex;
    justify-content: center;           /* 横中央 */
    align-items: center;               /* 縦中央 */
    gap: 6px;
    text-decoration: none;
    color: #000;
    position: relative;
}

/* 区切り線（各エリアの右端＝ちょうど中央） */
.menu-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 26px;
    background-color: rgba(0,0,0,0.35);
}

.menu-item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.global-menu-font {
    font-size: 2.4rem;
}

.global-menu-font-small {
    font-size: 1.2rem;
}

.menu-item-keisai {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 2.4rem;
    flex-direction: column;
    justify-content: center;

}

/* レスポンシブ */
@media screen and (max-width: 768px) {
.global-menu-font {
    font-size: 2.0rem;
}
.global-menu-font-small {
    font-size: 1.4rem;
}
}

@media screen and (max-width: 600px) {
.global-menu-font {
    font-size: 1.0rem;
}
.global-menu-font-small {
    font-size: 0.8rem;
}

.menu-item img {
    width: 14px;
    height: 14px;
}
}

    /* Top Description 共通 */
.top-description {
font-size: 3rem;
}

/* 900px以上：PC */
@media screen and (max-width: 768px) {
.top-description {
    font-size: 2.0rem;
}
}

/* 600px以上：タブレット */
@media screen and (max-width: 600px) {
.top-description {
    font-size: 1.4rem;
}
}

/* Breadcrumb */
.breadcrumb{
/* 背景 #FFBF1F / 不透明度15% */
    background: rgba(255, 191, 31, 0.15);
    padding: 10px 14px;
}

.breadcrumb__list{
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.breadcrumb__item{
    display: inline-flex;
    align-items: center;
    font-size: 2.4rem;
    line-height: 1.2;
    color: #525252;
}

/* 区切り（最後以外） */
.breadcrumb__item:not(:last-child)::after{
    content: "＞";
    margin-left: 10px;
    opacity: 0.65;
}

.breadcrumb__link{
    color: inherit;
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 6px;
}

.breadcrumb__link:hover{
    background: rgba(0, 0, 0, 0.06);
}

.breadcrumb__item--current{
    font-weight: 700;
}

/* スマホ微調整 */
@media (max-width: 768px){
.breadcrumb{
    padding: 9px 12px;
}
.breadcrumb__item{
    font-size: 2.0rem;
}
}


/* スマホ微調整 */
@media (max-width: 600px){
.breadcrumb{
    padding: 9px 12px;
}
.breadcrumb__item{
    font-size: 1.0rem;
}
}

/* ================================================================
main_container
==================================================================*/
.main__container {
  max-width: 136rem;
  margin         : 0 auto;
  padding        : 10px 10px 0;
  display        : flex;
  justify-content: space-between;
  align-items    : flex-start;
  gap            : 0 15px;
  position: relative;
}
@media screen and (max-width: 1024px) {
  .main__container {
    flex-direction: column;
    padding       : 0;
  }
}

/* ================================================================
main
==================================================================*/
.main {
  width    : 65%;
  background-color: #fff;
}

.main section {
  background: #fff;
}

.main__sec_ttl {
  margin: 0 auto;
}


@media screen and (max-width: 1024px) {
  .main {
    width    : 100%;
    max-width: 100%;
    min-height: 0px;
  }
}

.main-title {
    font-size: 2.2rem;       /* 大きめに設定 */
    font-weight: 800;
    color: #333;
    text-align: center;
    margin: 30px auto 20px;
    position: relative;
    padding-bottom: 10px;
    width: 90%;
}

.main-title span {
    color: #ff006f; 
    font-weight: bold;         /* 強調部分にブランドカラー */
}

/* 下線のアクセント */
.main-title::after {
    content: "";
    display: block;
    width: 100%;
    height: 4px;
    background: #ffbf1f;
    margin: 10px auto 0;
    border-radius: 2px;
}

.related_count{
  width: 90%;
  margin: 20px auto 0;
  padding-bottom: 5px;
  font-weight: bold;
  font-size: 2rem;
}

.related_count span{
  font-weight: lighter;
  font-size: smaller;
}

/* ================================================================
side
==================================================================*/
.side {
  width    : 39%;
}

.side section {
  background   : #fff;
  margin-bottom: 20px;
}

.side__container {
  padding   : 17px 19px 15px;
  background: #fff;
}

.side__sec_ttl {
  font-size    : 2rem;
  line-height  : 1.45;
  margin-bottom: 12px;
  font-weight: bold;
  padding:20px 0 0 20px;
}

.side__list {
  display       : flex;
  flex-direction: column;
  gap           : 20px;
}

.side__list_item {
  display        : flex;
  justify-content: start;
  align-items    : flex-start;
  gap            : 10px;
}

.side__list_item:hover {  
  opacity: 70%;
}

.side__list_item img {
  width: 20%;
  aspect-ratio: 4 / 4;
  max-height: 100px;
  object-fit: cover;
  border-radius: 5px;
}
.side__list_item img:hover {
  filter    : brightness(85%);
}

.side__txt {
  font-size  : 1.4rem;
  line-height: 1.7;
  text-align : start;
}

.side__list_txt {
  width: calc(100% - 100px);
}

.side_sensei_list{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows	:1fr 1fr 1fr ;
  gap: 4px;
}


/* ----------------------------------------------------------------

responsive  side

----------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
  .side {
    width    : 100%;
    max-width: 100%;
    padding  : 20px;
  }
}

@media screen and (max-width: 600px) {
  .side {
    padding: 10px 10px 5px;
  }

  .side section {
    margin-bottom: 10px;
  }

  .side__container {
    padding: 17px 12px 15px 10px;
  }
}


/*List Head Items normal*/

:root {
  --brand-main: #ffbf1f;
  --brand-light: #ffe08a;
  --font-color-dark: #0f0f0f;
  --font-color-light: #ffffff;
  --disabled-bg: #f0f0f0;
  --disabled-text: #b8b8b8;
}


.listNavigation {
  display: flex;
  flex-direction: row;
  justify-content: start;
  margin: 0 auto 20px ;
  }

.list-head {
  width:100%;
  border-radius: 0.1875rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  padding-block: .5rem;
}

.list-head-item {
  --size: clamp(2.8rem, 1.2rem + 2vw, 3.6rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  height: var(--size);
  padding-inline: 1.6rem;
  font-size: clamp(.9rem, 0.6rem + .5vw, 1.5rem);
  font-weight: 600;
  border: none;
  border-radius: 9999px;
  background: linear-gradient(45deg, var(--brand-light), var(--brand-main));
  color: var(--font-color-dark);
  box-shadow: 0 1px 3px rgba(0 0 0 /.15);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

/* ホバー & アクティブ */
.list-head-item:hover:not(.is-disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0 0 0 /.18);
}
.list-head-item:active:not(.is-disabled),
.list-head-item.is-active   {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0 0 0 /.12);
}

/* 無効状態 */
.list-head-item.is-disabled {
  background: var(--disabled-bg);
  color: var(--disabled-text);
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}

/* カラーバリエーション（例）*/
.list-head-item.inside_select   { background: linear-gradient(45deg, #ffd18f, #ff914d); color: var(--font-color-dark); }
.list-head-item.outside_select  { background: linear-gradient(45deg,#64d2ff,#0096ff); color: var(--font-color-light);}
.list-head-item.books_select    { background: linear-gradient(45deg,#ffa2be,#ff4d6d); color: var(--font-color-light);}
.list-head-item.problem_select  { background: linear-gradient(45deg,#c2e59c,#64b3f4); color: var(--font-color-dark);}


@media (max-width: 768px) {
.list-head-item {
  --size: clamp(2.8rem, 1.2rem + 2vw, 3.6rem);
  font-size: clamp(.9rem, .6rem + .5vw, 1.1rem);
}
}


.btno,
a.btno,
button.btno {
  line-height: 1.5;
  position: relative;
  display: inline-block;
  padding: 1px 4px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  letter-spacing: 0.1em;
  color: #212529;
  border-radius: 0.5rem;
}


button a {
  display: block;  
  font-size: 0.75rem;
  text-align: center;
  color: #fff;
  background-color: #666666;
  border-color: #666666;
  padding: 0.8rem 2.5rem;
  border-radius: 0.100rem;
}

button a:hover {
  color: #fff;
  background-color: #313131;
  border-color: #313131;
  text-decoration: none;
}

.text-center {
  text-align: center ;
}

.mt-2,
.my-2 {
  margin-top: 0.5rem ;
}


input,
button,
select,
optgroup,
textarea {
  margin: 0px;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  font-size: 1.5rem;

  border-radius: 0.1875rem;
}

input{
  border:#ffffff
}

button,
input {
  overflow: visible;
}

input[type="radio"],
input[type="checkbox"] {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0;
}

input[type="date"].form-control,
input[type="time"].form-control,
input[type="datetime-local"].form-control,
input[type="month"].form-control {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

input[type="submit"].btn-block,
input[type="reset"].btn-block,
input[type="button"].btn-block {
  width: 100%;
}

input[type="checkbox"] {
    display: none;
}
label {
    color: #7e7e7e;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    border: solid 1px #d2d2d2;
    transition: 0.25s;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 1.4rem;
    margin: 0px;
}
input[type="checkbox"]:checked + label {
    background: #7e7e7e;
    color: #fff;
}


/* =========================
  タグボタン本体
========================= */
.bt-group{
  display: flex;              /* inline-flex → flex */
  width: fit-content;         /* ボタン幅は中身に合わせる */
  margin: 12px auto 0;        /* 左右中央寄せ */
  
  align-items: center;
  gap: 6px;

  padding: 9px 40px;
  border-radius: 999px;

  background: #fff;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);

  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  text-decoration: none;

  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

/* # の色 */
.bt-group__hash{
  color: #ff006f;
  font-weight: 900;
  line-height: 1;
}

/* ホバー */
.bt-group:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.09);
  border-color: rgba(255,0,111,0.35);
}

/* 押した感 */
.bt-group:active{
  transform: translateY(0);
  box-shadow: 0 5px 14px rgba(0,0,0,0.07);
}

/* フォーカス（キーボード操作も◎） */
.bt-group:focus-visible{
  outline: 3px solid rgba(255,0,111,0.25);
  outline-offset: 2px;
}

/* 長いタイトルでも崩れない */
.bt-group__text{
  white-space: nowrap;
  max-width: 22ch;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================
  スマホ調整（詰まり防止）
========================= */
@media (max-width: 768px){
  .favorite-group{
    gap: 8px;
  }

  .bt-group{
    padding: 10px px;
    font-size: 1.35rem;
  }

  .bt-group__text{
    max-width: 18ch;
  }
}

/*検索バーポップアップメニュー*/
.nav_search-icon{
  display: inline-block;
  width:30px;
  height:30px;
  cursor: pointer;
}

.nav_home-icon{
  width:30px;
  height:30px;
  cursor: pointer;
}

@media screen and (max-width: 600px) {
  .nav_search-icon{
    width:30px;
    height:30px;
}
.nav_home-icon{
  width:30px;
  height:30px;
}
}

/* ===== 年齢フィルター全体 ===== */
.age-filter{
  width: 90%;
  margin: 12px auto 30px;
}

/* 見出し行 */
.age-filter__head{
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin: 0 0 10px 0;
}

.age-filter__title{
  font-size: 1.4rem;
  font-weight: 800;
  color: #333;
}

.age-filter__hint{
  font-size: 1.2rem;
  font-weight: 700;
  color: #888;
}

/* チップ群 */
.switch_age_level{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

/* checkboxは見えないが操作可能に（labelで操作） */
.switch_age_level input[type="checkbox"]{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* チップ基本 */
.switch_age_level label{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 10px 14px;
  border-radius: 999px;

  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);

  font-size: 1.4rem;
  font-weight: 800;
  color: #555;
  line-height: 1;

  cursor: pointer;
  user-select: none;

  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
}

/* hover */
.switch_age_level label:hover{
  transform: translateY(-1px);
  border-color: rgba(0,0,0,0.2);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* # の主張を整理 */
.switch_age_level label .hash{
  font-weight: 900;
  font-size: 1.2rem;
  color: #ff006f;
  transform: translateY(-0.5px);
}


/* フォーカスリング（キーボード） */
.switch_age_level input[type="checkbox"]:focus-visible + label{
  outline: 3px solid rgba(255,191,31,0.45);
  outline-offset: 2px;
}

/* 「すべて」だけ、リセット感を強める */
.switch_age_level .reset_all{
  background: #f8f8f8;
  border-style: dashed;
}

/* reset_all はチェック状態になっても色を変えない（誤解防止） */
.switch_age_level input#reset_all:checked + label.reset_all{
  background: #f8f8f8;
  color: #555;
  padding-left: 14px;
}
.switch_age_level input#reset_all:checked + label.reset_all::before{
  content: none;
}

/* タブレット：押しやすく */
@media (max-width: 768px){
  .switch_age_level{
    gap: 8px;
    font-size: 1rem;
  }
  .switch_age_level label{
    padding: 10px 12px;
  }
}
/* スマホ：押しやすく */
@media (max-width: 400px){
  .switch_age_level{
    gap: 8px;
    font-size: 0.8rem;
  }
  .switch_age_level label{
    padding: 8px 10px;
  }
}

/* ===== リスト全体 ===== */
.recipe-list{
  list-style: none;
  padding: 0;
  width: 90%;
  margin: 0 auto 20px;
  display: grid;
  gap: 12px;
}

/* ===== 1件カード ===== */
.recipe-card{
  display: grid;
  grid-template-columns: 1fr 86px; /* 右のお気に入り幅 */
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.recipe-card:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.12);
}

/* 左側リンク（全体クリック可） */
.recipe-card__link{
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

/* サムネ */
.recipe-card__thumb{
  width: 92px;
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
  background: #f4f4f4;
}
.recipe-card__thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 本文 */
.recipe-card__body{
  min-width: 0;
  display: grid;
  gap: 8px;
}

.recipe-card__title{
  font-weight: 900;
  color: #333;
  font-size: 1.7rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipe-card__main{
  font-weight: 900;
  color: #3bb0c8;
  font-size: 1.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* メタ情報 */
.recipe-card__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  color: #666;
  font-size: 1.2rem;
  font-weight: 700;
}

.meta-item{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-icon{
  width: 16px;
  height: 16px;
  display: inline-block;
}

.meta-user{
  margin-left: auto;
  color: #888;
  font-weight: 800;
}

/* 右：お気に入り（縦中央固定） */
.recipe-card__fav{
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border-left: 1px solid rgba(0,0,0,0.06);
  padding-left: 10px;
}

.fav-btn{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.fav-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.10);
  background: #fff5de; /* playListの淡い黄色 */
}

.fav-btn img{
  width: 22px;
  height: 22px;
  display: block;
}

.fav-text{
  font-size: 1.1rem;
  font-weight: 800;
  color: #666;
  line-height: 1.1;
  text-align: center;
}

/* ===== レスポンシブ ===== */
@media (max-width: 600px){
  .recipe-card{
    grid-template-columns: 1fr 74px;
    padding: 10px;
  }
  .recipe-card__link{
    grid-template-columns: 60px 1fr;
    gap: 10px;
  }
  .recipe-card__thumb{
    width: 60px;
    border-radius: 10px;
  }
  .recipe-card__title{ font-size: 1.5rem; }
  .recipe-card__main{ font-size: 1.3rem; }
  .fav-btn{ width: 40px; height: 40px; border-radius: 10px; }
}

/* 新着リスト全体 */
.side__list.sideNew{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* 1アイテム */
.sideNew__item{
  margin: 0;
}

/* クリック領域（カード） */
.sideNew__link{
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 12px;
  align-items: center;

  padding: 12px;
  border-radius: 14px;

  background: #fff;
  border: 2px solid rgba(255,191,31,0.20); /* playListの黄色に寄せる */
  box-shadow: 0 10px 18px rgba(0,0,0,0.06);

  text-decoration: none;
  color: inherit;

  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}

/* hover */
.sideNew__link:hover{
  transform: translateY(-1px);
  border-color: rgba(255,191,31,0.55);
  background: rgba(255,191,31,0.06);
  box-shadow: 0 14px 24px rgba(0,0,0,0.08);
}

/* focus */
.sideNew__link:focus-visible{
  outline: 3px solid rgba(255,191,31,0.55);
  outline-offset: 3px;
}

/* サムネ */
.sideNew__thumb{
  width: 76px;
  height: 76px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,191,31,0.12);
  flex: 0 0 auto;
}

.sideNew__thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 画像がないとき */
.sideNew__thumbPlaceholder{
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,191,31,0.16), rgba(0,0,0,0.03));
}

/* テキスト */
.sideNew__body{
  min-width: 0; /* 省略を効かせる */
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sideNew__title{
  font-size: 1.45rem;
  font-weight: 900;
  color: #333;
  line-height: 1.25;

  /* 長いタイトル対策（2行まで） */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sideNew__quote{
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.35;

  /* “声かけ例”を目立たせる（今の水色を踏襲） */
  color: #3BB0C8;

  /* 長いときの省略（2行） */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 右矢印 */
.sideNew__arrow{
  font-size: 2.2rem;
  color: rgba(0,0,0,0.28);
  padding-left: 4px;
}

/* 既存の side__list_item 等が残っていても影響が出にくいように無効化（任意） */
.side__list_item{ gap: 0; }
.side__list_item:hover{ opacity: 1; }

.podcast-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: center;
  margin: 0px auto 40px;
  width: 90%;
}

/* カード（aタグ） */
.podcast-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;

  background: #fff;
  border-radius: 20px;
  padding: 24px 20px 28px;
  max-width: 420px;
  width: 100%;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  margin-left: auto;
  margin-right: auto;
}

/* カード全体ホバー */
.podcast-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

/* 画像エリア（上・中央） */
.podcast-image {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

/* 画像 */
.podcast-image img {
  width: 300px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  box-shadow: 5px 5px 5px rgb(166, 166, 166);
}

/* タイトル */
.podcast-card h3 {
  font-size: 18px;
  text-align: center;
  margin: 0 0 14px;
  line-height: 1.5;
  font-weight: bold;
}

/* 説明文 */
.podcast-card p {
  font-size: 14px;
  color: #555;
  text-align: left;
  line-height: 1.7;
}

/* =========================
   レスポンシブ（スマホ）
========================= */
@media (max-width: 768px) {
  .podcast-list {
    flex-direction: column;
    gap: 24px;
  }
  .podcast-card {
    padding: 20px 16px 24px;
    margin: 0 auto;
  }
  .podcast-image img {
    width: 300px;
  }
}

@media (max-width: 350px) {
.podcast-card p {
  font-size: 10px;
}
}

/* =========================
  屋外あそび：キーワードボタン
========================= */
.outside-keywords{
  display: flex;
  gap: 10px;
  overflow-x: auto;
  width: 90%;
  margin: 5px auto 20px;
  padding: 6px 2px 10px;

  -webkit-overflow-scrolling: touch;
}

/* スクロールバーを細く（Chrome/Edge/Safari） */
.outside-keywords::-webkit-scrollbar{
  height: 6px;
}
.outside-keywords::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,0.15);
  border-radius: 999px;
}
.outside-keywords::-webkit-scrollbar-track{
  background: transparent;
}

/* ボタン（チップ） */
.outside-keywords__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 14px;
  border-radius: 999px;

  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;

  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  color: #444;

  text-decoration: none;
  white-space: nowrap;

  transition: all 0.18s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.outside-keywords__btn:hover{
  transform: translateY(-1px);
  border-color: rgba(0,0,0,0.18);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.outside-keywords__btn:active{
  transform: translateY(0px) scale(0.98);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.outside-keywords__btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 0, 111, 0.18);
  border-color: rgba(255, 0, 111, 0.35);
}

/* =========================
  室内あそび：キーワードボタン
========================= */
.inside-keywords{
  display: flex;
  gap: 10px;
  overflow-x: auto;
  width: 90%;

  margin: 5px auto 20px;
  padding: 6px 2px 10px;

  -webkit-overflow-scrolling: touch;
}

/* スクロールバーを細く（Chrome/Edge/Safari） */
.inside-keywords::-webkit-scrollbar{
  height: 6px;
}
.inside-keywords::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,0.15);
  border-radius: 999px;
}
.inside-keywords::-webkit-scrollbar-track{
  background: transparent;
}

/* ボタン（チップ） */
.inside-keywords__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 14px;
  border-radius: 999px;

  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;

  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  color: #444;

  text-decoration: none;
  white-space: nowrap;

  transition: all 0.18s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.inside-keywords__btn:hover{
  transform: translateY(-1px);
  border-color: rgba(0,0,0,0.18);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.inside-keywords__btn:active{
  transform: translateY(0px) scale(0.98);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.inside-keywords__btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 0, 111, 0.18);
  border-color: rgba(255, 0, 111, 0.35);
}

/* ページネーション */
.pagination {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  justify-content: center;
  padding-left: 0;
  list-style: none;
  border-radius: 0.1875rem;
  font-size: 2rem;
}

.pagination-lg .page-link {
  padding: 0.75rem 1.5rem;
  font-size: 1.333rem;
  line-height: 1.5;
}

.pagination-lg .page-item:first-child .page-link {
  border-top-left-radius: 0.1875rem;
  border-bottom-left-radius: 0.1875rem;
}

.pagination-lg .page-item:last-child .page-link {
  border-top-right-radius: 0.1875rem;
  border-bottom-right-radius: 0.1875rem;
}

.pagination-sm .page-link {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.5;
}

.pagination-sm .page-item:first-child .page-link {
  border-top-left-radius: 0.1875rem;
  border-bottom-left-radius: 0.1875rem;
}

.pagination-sm .page-item:last-child .page-link {
  border-top-right-radius: 0.1875rem;
  border-bottom-right-radius: 0.1875rem;
}

.page-link {
  position: relative;
  display: block;
  padding: 0.5rem 0.6rem;
  margin-left: -1px;
  line-height: 1.25;
  color: #ff006f;
  background-color: #fff;
  border: 1px solid #e1e1e1;
}

.page-link:hover {
  z-index: 2;
  color: #fff;
  text-decoration: none;
  background-color: #000;
  border-color: #000;
}

.page-link:focus {
  z-index: 3;
  outline: 0;
  -webkit-box-shadow: 0 0 0 0.2rem rgba(4, 91, 193, 0.25);
  box-shadow: 0 0 0 0.2rem rgba(4, 91, 193, 0.25);
}

/* フッター */
.footer {
  background: #FFBF1F;
}

.f_container {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 136rem;
  margin: 0 auto;
  padding: 40px 40px 30px;
}

.f_logo {
  width: 120px;
  flex: 0 0 auto;
}
.f_logo_link img{
  width: 72px;
  height: 72px;
  border-radius: 12px;
}

.f_nav { flex: 1; }

.f_grid{
  display: grid;
  grid-template-columns: 0.8fr 1.6fr 1fr;
  gap: 26px;
}

.f_section{
  background: rgba(255,255,255,0.35);
  border-radius: 14px;
  padding: 14px 14px 16px;
}

.f_title{
  font-size: 1.6rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 10px;
}

.f_subtitle{
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #222;
  opacity: .9;
}

.f_list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.f_list a{
  color: #111;
  text-decoration: none;
  font-size: 1.45rem;
  line-height: 1.4;
}
.f_list a:hover{
  text-decoration: underline;
}

.f_primary_link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.65);
  color: #111;
  text-decoration: none;
  font-weight: 800;
  margin-bottom: 14px;
  font-size: 1rem;
}
.f_primary_link:hover{ filter: brightness(0.98); }

.f_cta{
  display: block;
  text-decoration: none;
  color: #fff;
  font-weight: 900;
  line-height: 1.3;
  padding: 14px 14px;
  border-radius: 14px;
  background: #111;
}
.f_cta:hover{ filter: brightness(1.05); }

.pref-block{ margin-top: 12px; }
.pref-title{
  font-size: 1.25rem;
  font-weight: 900;
  color: #111;
  margin-bottom: 8px;
}

.pref-grid{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.pref-grid a{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  background: #7478C2; /* デフォルト色 */
}
.pref-grid a:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* 地方ごとに色を変えたい場合（任意） */
.pref-block:nth-of-type(2) .pref-grid a{ background:#33BEC8; } /* 関東 */
.pref-block:nth-of-type(3) .pref-grid a{ background:#2BB673; } /* 中部 */
.pref-block:nth-of-type(4) .pref-grid a{ background:#AFB62D; } /* 近畿 */
.pref-block:nth-of-type(5) .pref-grid a{ background:#F09E27; } /* 中国 */
.pref-block:nth-of-type(6) .pref-grid a{ background:#D08F68; } /* 四国 */
.pref-block:nth-of-type(7) .pref-grid a{ background:#FF8383; } /* 九州沖縄 */

.copyright {
  height: 50px;
  background: #151515;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
}

/* レスポンシブ */
@media screen and (max-width: 1024px) {
  .f_container { padding: 40px 24px 40px; }
  .f_grid { grid-template-columns: 1fr; }
}

@media screen and (max-width: 768px) {
  .f_logo { width: 72px; }
  .f_logo_link img{ width:60px; height:60px; }

  .pref-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ================================================================
search
==================================================================*/

.search-icon{
  position: relative;
  float: right;
  width: 75px;
  height: 75px;
  top: -62px;
  right: -45px;
}

.problem_search {
  width        : 90%;
  height       : 60px;
  border-radius: 5px;
  box-shadow   : 5px 5px 5px lightgrey;
  margin       : 0 auto 20px;
}

.problem_search_btn_wrap {
  width          : 100%;
  height         : 100%;
  position       : relative;
  display        : flex;
  justify-content: space-between;
}

.problem_search_btn_wrap:before {
  content                  : "";
  display                  : inline-block;
  width                    : 7px;
  height                   : 100%;
  background               : #FFBF1F;
  position                 : absolute;
  left                     : 0;
  border-top-left-radius   : 3px;
  border-bottom-left-radius: 3px;
  z-index                  : 10;
}

.search_btn_txtarea {
  font-size    : 1.8rem;
  width        : 100%;
  background   : #fff;
  padding      : 0 10px 0 20px;
  position     : relative;
  text-align   : left;
  border-radius: 2px;
}
.search_btn_txtarea::placeholder {
  font-size: 1.6rem;
  color    : #D2D2D2;
}
.search_btn {
  width                     : 69px;
  height                    : 60px;
  background                : #FFBF1F;
  position                  : relative;
  border-top-right-radius   : 6px;
  border-bottom-right-radius: 6px;
}
.search_btn::before {
  content        : "";
  width          : 100%;
  height         : 100%;
  display        : inline-block;
  background     : url(../assets/img/icon-search.svg) no-repeat center center;
  background-size: 50%;
}

/*Favoriteレシピのグループボタン*/

/* =========================
  グループ全体（タグの並び）
========================= */
.favorite-group{
  width: 90%;
  margin: 20px auto 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  align-items: center;
}

.tag-group{ 
  display: inline-flex; 
  align-items: center; 
  gap: 6px; 
  padding: 9px 14px; 
  border-radius: 999px; 
  background: #fff;
   border: 1px solid rgba(0,0,0,0.10); 
   box-shadow: 0 6px 16px rgba(0,0,0,0.06); 
   font-size: 1.3rem; 
   font-weight: 700; 
   color: #333; 
   text-decoration: none; 
   transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; 
  }

.switch_place{
  display:flex;
  flex-direction: row;
  justify-content: center;
  gap:20px;
}

.switch_age{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap:5px;
}

.switch_age_level{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

.username{
  margin-top: 5px;
}

.button_back :hover {
  filter    : brightness(85%) contrast(120%);
}

.button_back :active {
  transform : translateY(2px);
}

/*Written by Hajime End*/

