body{
    background-color: #d8bfd8;
}
.m-plus-1p-regular {
  font-family: "M PLUS 1p", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* トップヘッダーのスタイル */
#top-header {
    background-color: #984D7B; /* 背景色を設定 */
    padding: 50px 20px; /* 上下の余白 */
    text-align: center; /* コンテンツを中央寄せにする */
    margin-bottom: 40px; /* 下にスペースを空ける */
}

/* ヘッダーコンテンツのスタイル */
.header-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* 子要素を水平方向の中央に配置 */
}

.header-content p {
    font-size: 1.2em; /* サブタイトルのサイズ */
    color: #666;
    margin: 0 0 20px 0; /* 下の余白 */
}

.header-content img {
    max-width: 100%; /* 親要素の幅を超えないようにする */
    height: auto; /* 元の縦横比を維持する */
    margin: 20px 0; /* 上下の余白 */
}

/* ボタンのスタイル */
.button {
    display: inline-block; /* ボタンをインライン要素にする */
    background-color: #7a004b; /* ボタンの色 */
    color: #fff;
    padding: 12px 25px; /* ボタンの余白 */
    text-decoration: none; /* 下線をなくす */
    border-radius: 5px; /* 角を丸くする */
    font-weight: bold;
    transition: background-color 0.3s ease; /* ホバー時のアニメーション */
}

/* ボタンのホバー時 */
.button:hover {
    background-color: #3d0026; /* 色を少し濃くする */
}

.folded-card {
  /* 親要素の中央に配置 */
  margin: 0 auto;
  
  /* デスクトップ表示時の幅 */
  width: 50%;
  
  /* 共通のスタイル */
  position: relative;
  padding: 20px;
  background-color: #fffaf0;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 20px;;
}

/* 折り目のスタイルは変更なし */
.folded-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  background-color: #ffe4e1;
  transform: rotate(45deg);
  transform-origin: 100% 0%;
  box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.1);
}

/* featuresセクションのコンテナ */
.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* アイテム間の隙間 */
}
.features-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 20px;
}

.feature-item {
    background-color: #eee;
    width: 200px;
    height: 300px;
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.feature-item .image {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.feature-item .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-item .content {
    padding: 10px;
    text-align: left;
    height: 100px;
    overflow: hidden;
}

.content p {
    word-break: break-all;
}

.like-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

/* いいねボタンのスタイル */
.like-button {
    font-size: 1.2em;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
    font-weight: bold;
}

/* いいねされた後のボタンの色 */
.like-button.liked {
    color: #ED28A2;
}
/* フッター全体のスタイル */
footer {
    margin-top: 20px;
    width: 100%;
    background-color: #333; /* 背景色 */
    color: #fff; /* 文字色 */
    padding: 15px 0; /* 上下の余白 */
    text-align: center; /* テキストを中央寄せ */
}

/* フッター内のテキスト */
.footer-bottom p {
    margin: 0; /* マージンを削除 */
    font-size: 0.9em;
}

/* フッター内のリンクのスタイル */
.footer-bottom a {
    color: inherit; /* 親要素の色を継承（文字色を変えない） */
    text-decoration: underline; /* 下線を表示 */
}

/* === スマホでのレイアウト調整（ブレイクポイント） === */
@media (max-width: 768px) {
    .folded-card {
        /* スマホ表示時の幅を80%に設定 */
        width: 80%;
    }
    .feature-item {
        /* 画面幅が768px以下のときに2列表示 */
        width: calc(50% - 25px);
    }
}