@charset "utf-8";

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    
}

body{
    background-color: #F7F294;
    color: #703300;
    padding-bottom: 50px;
}

.category_flex{
    display: flex;
    justify-content: space-between;
    padding-left: 6px;
    border-bottom: solid #703300;
}


.back_btn {
    justify-content: right;
}

.back_btn p {
    text-align: center;
}

.back_btn a {
  display: inline-block; /* クリック範囲と背景色を適切に設定するため */
  text-decoration: none;
  color: #703300;        /* 通常時の文字色（茶色） */
  transition: 0.3s;      /* 色の変化を滑らかにする */
  font-weight: bold;
}

/* ホバーした時：背景を茶色、文字を白に */
.back_btn a:hover {
  background-color: #703300; 
  color: #fff;
}

.back_btn a {
    border: 4px solid #703300;
    border-radius: 100px;
    display: block;
    width: 140px;
    height: 60px;
    padding: 15px;
    box-sizing: border-box;
    background: #fff;
    color: #703300;
    text-decoration: none;

    font-size: 18pt;
}


.back_btn{
    justify-content: right;
    padding-right: 50px;
}

.back_btn a {
  display: inline-block; /* クリック範囲と背景色を適切に設定するため */
  text-decoration: none;
  color: #703300;        /* 通常時の文字色（茶色） */
  transition: 0.3s;      /* 色の変化を滑らかにする */
  font-weight: bold;
}

/* ホバーした時：背景を茶色、文字を白に */
.back_btn a:hover {
  background-color: #703300; 
  color: #fff;
}

.back_btn p{
   text-align: center;
}

.workbox {
    
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    
}

.work img {
    width: 300px;
    height: 240px;
    border-radius: 8px;
    border: 4px solid #703300
}

.work p{
    font-size: 14pt;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

img{
    max-width: 100%;
}

/* ----基本cssここまで----- */

.card p {
    white-space: pre-lines;
}

.samune_wrap {
    
    max-width: 1000px;
    margin: 0 auto;
    grid-template-columns: repeat(3, 1fr);
    /* row-gap: 5%; */
    
}

@media screen and (max-width:768px) {
        .samune_wrap{
            grid-template-columns: repeat(2,1fr);
            padding: 0 15px;
            gap: 15px;
        }
        .work img {
        width: 100%;       /* 親要素の幅いっぱいに広げる */
        height: auto;      /* ★重要：高さを自動にすると、比率が崩れません */
        aspect-ratio: 5 / 4; /* ★おすすめ：300x240と同じ比率をキープする */
        object-fit: cover; /* 画像が枠内で歪まないように調整 */
        border-radius: 8px;
        border: 4px solid #703300;
}
        .back_btn{
        justify-content: right;
        padding-right: 10px;
}

}

.samune_wrap p{
    padding-top: 5px;
}

.thumb {
    cursor: pointer;
}

/* モーダル背景 */
#modal {
    position: fixed;
    inset: 0;
    background: rgba(73, 73, 73, 0.9);

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    overflow-y: scroll;
}

/* 表示 */
#modal.active {
    opacity: 1;
    visibility: visible;
}

/* カードUI */
.card {
    margin-top: 130px;
    max-width: 500px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    padding-bottom: 20px;
    position: absolute;
    top: 0;

    transform: translateY(30px) scale(0.9);
    opacity: 0;
    transition: 0.3s;
      padding-top: 65px;
}

/* 表示アニメーション */
#modal.active .card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* カード中身 */
.card img {
    width: 100%;
}

.card h2 {
    margin: 10px;
}

.card p {
    margin: 10px;
}

.card button {
 margin: 10px;
  width: 50px;
  border-radius: 50%;
  aspect-ratio: 1 /1;
  background-color: red;
  color: #fff;
} 


.card button {
 margin: 10px;
  width: 50px;
  border-radius: 50%;
  aspect-ratio: 1 /1;
  background-color: red;
  color: #fff;
  position: fixed;
  top: 0;
  right: 0;
}




.batu1{
width: 5px;
  height: 30px;
  background: #fff;
  transform: rotate(-45deg);
  display: inline-block;
  position: absolute;
  top: 8px;
  left: 43%;
  border-radius: 2.5px; /* 太さの半分以上の値を指定 */
}

.batu2{
width: 5px;
  height: 30px;
  background: #fff;
  transform: rotate(45deg);
  display: inline-block;
    position: absolute;
  top: 8px;
  left: 43%;
  border-radius: 2.5px; /* 太さの半分以上の値を指定 */
}

.dtp {
  width: 70%;
  margin: 0 auto;
}

/* メニュー全体のスタイル（横並び・余白） */
.category_menu {
    display: flex;
    gap: 30px;        /* ボタン同士の間隔 */
    list-style: none; /* リストの点を消す */
    padding: 0;
    margin: 20px 0;
}

/* ★基本設定：WEBやothersなど、通常のリンクは半透明にする */
.category_menu li a {
    text-decoration: none; /* 最初は下線を消しておく */
    color: #5d4037;       /* カンプに合わせた茶色 */
    opacity: 0.4;         /* 40%の薄さにする */
    transition: 0.3s;      /* 変化をふわっとさせる */
    font-weight: bold;
}

/* ★重要：DTP（currentクラス）がついているものは半透明にしない */
.category_menu li.current a {
    opacity: 1;           /* 100%くっきり表示 */
    cursor: default;       /* クリックできない矢印にする */
}

/* マウスを乗せた時（ホバー）の動き */
.category_menu li a:hover {
    opacity: 1;                 /* マウスが乗ったら明るくする */
    text-decoration: underline; /* ここで下線をつける */
}

/* DTP（今いるページ）はホバーしても下線を出さない（お好みで） */
.category_menu li.current a:hover {
    text-decoration: none;
}

.category_menu {
    /* 右に寄せる */
    justify-content: flex-start; 
    padding-left: 30px;
}

.category_menu li a {
    /* 文字を大きくする */
    font-size: 1.4rem;  /* 24px相当。大きすぎたら 1.3rem などに調整 */
}





/* 1. ボタン全体の並びを調整 */
.filter_menu {
    list-style: none;
    display: flex;
    gap: 15px; /* ボタン同士の間隔 */
    margin: 30px 0 40px 30px;
    position: relative;
}

/* 2. ボタン単体のデザイン（角丸と余白） */
.filter_item {
    cursor: pointer;
    font-size: 1.1rem;
    color: #703300; /* 文字色：濃い茶色 */
    background-color: #fffde0; /* ボタンの背景色：薄いクリーム色 */
    padding: 10px 25px; /* 上下10px、左右25pxの余白 */
    border-radius: 50px; /* ★ここで「完全な角丸」にする */
    border: 3px solid #703300; /* 枠線をつけるとクッキリして可愛い */
    transition: all 0.3s ease; /* 変化をふわっとさせる */
    font-weight: bold;
    text-align: center;
}

/* 3. マウスを乗せた時（ホバー）の色変更 */
.filter_item:hover {
    background-color: #703300; /* 背景を茶色に */
    color: #fff; /* 文字を白に */
}

/* 4. 現在選ばれているボタン（active）の見た目 */
.filter_item.active {
    background-color: #703300; /* 選ばれている時は茶色背景 */
    color: #fff; /* 文字は白 */
    border: 3px solid #703300;
}

@media screen and (max-width:650px) {

.back_btn {
    justify-content: right;
    padding-right: 30px;
}

.back_btn p {
    text-align: center;
    font-size: 19px;
}

.back_btn a {
    border: 3px solid #703300;
    border-radius: 80px;
    display: block;
    width: 115px;
    height: 50px;
    padding: 11px;
    box-sizing: border-box;
    background: #fff;
    color: #703300;
    text-decoration: none;
}

    .filter_item {
    cursor: pointer;
    font-size: 1.1rem;
    color: #703300; /* 文字色：濃い茶色 */
    background-color: #fffde0; /* ボタンの背景色：薄いクリーム色 */
    padding: 10px 12px; /* 上下10px、左右25pxの余白 */
    border-radius: 50px; /* ★ここで「完全な角丸」にする */
    border: 3px solid #703300; /* 枠線をつけるとクッキリして可愛い */
    transition: all 0.3s ease; /* 変化をふわっとさせる */
    font-weight: bold;
    font-size: 12pt;
    text-align: center;
        
    }


    }