/* ==============================
   基本設定
============================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, "Noto Sans JP", sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}


/* ==============================
   ヘッダー
============================== */

header {
    background: #0f1f3d;
    color: white;
    padding: 24px 8%;
}

header h1 {
    margin: 0;
    font-size: 28px;
}

header p {
    margin: 8px 0 0;
    color: #dbe4f5;
}


/* ==============================
   メイン
============================== */

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 20px;
}


/* ==============================
   各セクション
============================== */

section {
    margin-bottom: 50px;
}

section h2 {
    font-size: 26px;
    margin-bottom: 20px;
}


/* ==============================
   ボタン
============================== */

button {
    border: none;
    background: #0f1f3d;
    color: white;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
}

button:hover {
    opacity: 0.85;
}


/* ==============================
   メインボタン
============================== */

.main-button {
    display: inline-block;
    background: #0f1f3d;
    color: white;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
}

.main-button:hover {
    opacity: 0.85;
}


/* ==============================
   教材詳細ページ
============================== */

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: #0f1f3d;
    text-decoration: none;
}

.material-detail {
    max-width: 800px;
    margin: 0 auto;
}

.material-category {
    color: #64748b;
    font-size: 14px;
}

.material-detail h2 {
    font-size: 32px;
    margin: 10px 0;
}

.rating {
    color: #d49b00;
    font-size: 18px;
    margin-bottom: 30px;
}

.detail-box {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow:
        0 4px 15px
        rgba(0, 0, 0, 0.05);
}

.detail-box h3 {
    margin-top: 0;
}

.detail-box p,
.detail-box li {
    line-height: 1.8;
}

.purchase-box {
    background: white;
    padding: 30px;
    margin-top: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow:
        0 4px 15px
        rgba(0, 0, 0, 0.08);
}

.purchase-box p {
    margin-bottom: 5px;
    color: #64748b;
}

.purchase-box h2 {
    font-size: 32px;
    margin: 5px 0 20px;
}

.purchase-button {
    width: 100%;
    max-width: 400px;
    font-size: 17px;
    padding: 15px;
}

.detail-button {
    display: inline-block;
    background: #0f1f3d;
    color: white;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
}

.detail-button:hover {
    opacity: 0.85;
}


/* ==============================
   出品ページ
============================== */

.sell-section {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow:
        0 4px 15px
        rgba(0, 0, 0, 0.06);
}

.sell-section h2 {
    margin-top: 0;
    font-size: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.submit-button {
    width: 100%;
    padding: 15px;
    font-size: 16px;
}


/* ==============================
   教材一覧
============================== */

#material-list {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}


/* カード */

#material-list .material-card {

    background: white;

    border-radius: 20px;

    overflow: hidden;

    padding: 0;

    box-shadow:
        0 4px 15px
        rgba(0, 0, 0, 0.06);

}


/* カードリンク */

.material-card-link {

    display: block;

    color: inherit;

    text-decoration: none;

}


/* 画像 */

#material-list .material-image {

    width: 100%;

    height: 180px;

    overflow: hidden;

    background: #f1f5f9;

}


/* 画像本体 */

#material-list .material-thumbnail {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

}


/* 文字部分 */

#material-list .material-card-content {

    padding: 18px;

}


/* カテゴリー */

#material-list .material-category {

    margin: 0 0 8px;

    color: #64748b;

    font-size: 14px;

}


/* タイトル */

#material-list .material-card h3 {

    margin: 0 0 12px;

    color: #1e293b;

    font-size: 18px;

}


/* 価格 */

#material-list .material-price {

    margin: 0;

    color: #1e293b;

    font-size: 20px;

    font-weight: bold;

}


/* ==============================
   スマホ
============================== */

@media screen and (max-width: 600px) {

    #material-list {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 12px;

    }


    #material-list .material-card {

        border-radius: 18px;

    }


    #material-list .material-image {

        height: 150px;

    }


    #material-list .material-card-content {

        padding: 14px;

    }


    #material-list .material-category {

        font-size: 13px;

    }


    #material-list .material-card h3 {

        font-size: 16px;

        margin-bottom: 10px;

    }


    #material-list .material-price {

        font-size: 18px;

    }

}
/* ==============================
   会員登録・ログイン
============================== */

.auth-section {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow:
        0 4px 15px
        rgba(0, 0, 0, 0.06);
}

.auth-section h2 {
    margin-top: 0;
    font-size: 30px;
}

.auth-link {
    text-align: center;
    margin-top: 25px;
}

.auth-link a {
    color: #0f1f3d;
    font-weight: bold;
}


/* ==============================
   マイページ
============================== */

.mypage-section {
    max-width: 700px;
    margin: 0 auto;
}

#user-info {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow:
        0 4px 15px
        rgba(0, 0, 0, 0.06);
}

.mypage-menu {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.mypage-menu button {
    cursor: pointer;
}


/* ==============================
   自分が出品した教材
============================== */

#my-materials {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow:
        0 4px 15px
        rgba(0, 0, 0, 0.06);
}

#my-materials h3 {
    margin-top: 0;
}

#my-materials .material-card {
    margin-top: 15px;
}


/* ==============================
   購入した教材
============================== */

#purchased-materials {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow:
        0 4px 15px
        rgba(0, 0, 0, 0.06);
}

#purchased-materials h3 {
    margin-top: 0;
}

#purchased-materials .material-card {
    margin-top: 15px;
}

.file-help {
    color: #64748b;
    font-size: 13px;
    margin-top: 6px;
}


/* ==============================
   売上管理
============================== */

#sales-management {
    margin-top: 40px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 16px;
}

#sales-management h2 {
    margin-bottom: 25px;
    font-size: 24px;
}


/* ==============================
   売上概要
============================== */

#sales-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.sales-card {
    background: white;
    padding: 20px;
    border-radius: 14px;
    box-shadow:
        0 3px 12px
        rgba(0, 0, 0, 0.08);
}

.sales-card-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.sales-card-value {
    font-size: 26px;
    font-weight: bold;
}

.sales-count {
    margin-bottom: 25px;
    font-weight: bold;
}


/* ==============================
   販売履歴
============================== */

#sales-history {
    background: white;
    padding: 20px;
    border-radius: 14px;
}

#sales-history h3 {
    margin-bottom: 20px;
}

.sales-history-item {
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.sales-history-item:last-child {
    border-bottom: none;
}

.sales-history-title {
    font-weight: bold;
    margin-bottom: 8px;
}

.sales-history-detail {
    color: #666;
    font-size: 14px;
}


/* ==============================
   購入教材カード
============================== */

#purchased-material-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.material-card {
    background: white;
    border-radius: 18px;
    padding: 18px;
    box-shadow:
        0 4px 15px
        rgba(20, 33, 61, 0.08);
    border: 1px solid #edf0f5;
}


/* カテゴリ */

.purchase-card-category {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    background: #eef3fb;
    color: #34527d;
    font-size: 12px;
    font-weight: 700;
}


/* タイトル */

.purchase-card-title {
    margin-top: 12px;
    font-size: 19px;
    font-weight: 800;
    color: #14213d;
}


/* 説明 */

.purchase-card-description {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.7;
    color: #69758a;
}


/* 価格 */

.purchase-card-footer {
    margin-top: 15px;
    padding-top: 14px;
    border-top: 1px solid #edf0f5;
}

.purchase-card-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #7c8799;
    font-size: 12px;
}

.purchase-card-price strong {
    font-size: 20px;
    color: #102344;
}


/* ==============================
   購入教材カード ボタン
============================== */

.purchase-card-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.purchase-detail-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    border-radius: 11px;
    background: #102344;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.purchase-pdf-button {
    height: 45px;
    border-radius: 11px;
    border: 1px solid #dce3ee;
    background: white;
    color: #102344;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}


/* ==============================
   フッター
============================== */

.footer {
    text-align: center;
    padding: 40px 12px 100px;
    font-size: 11px;
    color: #7c8799;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.footer-links a {
    color: #7c8799;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-copy {
    margin-top: 12px;
    font-size: 10px;
    color: #a0a8b5;
}


/* ==============================
   スマホ対応
============================== */

@media (max-width: 800px) {

    #material-list {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 700px) {

    header {
        padding: 20px;
    }

    main {
        padding: 35px 15px;
    }

    section:last-child > div {
        width: 100%;
        margin-right: 0;
    }

    #sales-summary {
        grid-template-columns: 1fr;
    }

    #sales-management {
        padding: 18px;
    }

}
/* ==============================
   教材一覧のイメージ画像
============================== */

.material-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    margin-bottom: 15px;
}

.material-thumbnail.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef1f5;
    font-size: 48px;
}


/* ==============================
   マイページの教材画像
============================== */

.material-image {
    width: 100%;
    height: 110px;
    background: #e9edf4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 50px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.material-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ==============================
   教材詳細ページの画像
============================== */

.material-detail-image {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 25px;
}

.material-detail-image img {
    width: 100%;
    height: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
}


/* ==============================
   スマホ対応
============================== */

@media (max-width: 700px) {

    .material-thumbnail {
        height: 200px;
    }

    .material-image {
        height: 200px;
    }

    .material-detail-image {
        max-height: 250px;
    }
.material-image img,
.material-thumbnail {
    width: 100%;
    height: 110%;
    object-fit: cover;
    display: block;
}
    .material-detail-image img {
        max-height: 250px;
    }

}
/* =====================
   下部ナビ
===================== */

.bottom-nav {

  position: fixed;

  left: 0;
  right: 0;
  bottom: 0;

  height: 70px;

  box-sizing: border-box;

  background: white;

  border-top: 1px solid #e3e7ef;

  display: grid;

  grid-template-columns:
    repeat(5, 1fr);

  z-index: 999;

  padding-bottom:
    env(safe-area-inset-bottom);
}


/* ナビボタン */

.nav-item {

  height: 70px;

  box-sizing: border-box;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 3px;

  text-decoration: none;

  color: #7c8799;

  font-size: 10px;

  font-weight: 600;

}


/* アイコン */

.nav-icon {

  font-size: 21px;

  line-height: 1;

}


/* 選択中 */

.nav-item.active {

  color: #102344;

}


/* =====================
   PC
===================== */

@media (min-width: 700px) {

  .bottom-nav {

    width: 520px;

    height: 70px;

    left: 50%;

    right: auto;

    bottom: 0;

    transform: translateX(-50%);

  }

}
@media (min-width: 700px) {

  .bottom-nav {

    width: 520px !important;

    max-width: 520px !important;

    left: 50% !important;

    right: auto !important;

    transform: translateX(-50%) !important;

  }

}
/* =====================
   マイページ
===================== */

.mypage-main {

  padding:
    30px 16px
    100px;

}


.mypage-title {

  font-size: 28px;

  margin-bottom: 25px;

}


/* プロフィール */

.profile-card {

  background: white;

  border-radius: 18px;

  padding: 24px;

  margin-bottom: 20px;

  box-shadow:
    0 3px 15px
    rgba(20, 35, 68, 0.08);

}


.profile-info {

  min-height: 70px;

  display: flex;

  align-items: center;

}


/* ダッシュボード */

.mypage-dashboard {

  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 14px;

}


.dashboard-card {

  background: white;

  border-radius: 18px;

  padding: 18px;

  box-shadow:
    0 3px 15px
    rgba(20, 35, 68, 0.08);

}


.dashboard-icon {

  font-size: 30px;

  margin-bottom: 10px;

}


.dashboard-card h2 {

  font-size: 16px;

  margin: 0 0 8px;

}


.dashboard-text {

  font-size: 12px;

  color: #7c8799;

  line-height: 1.5;

}


/* Stripe */

.stripe-card {

  background: white;

  border-radius: 18px;

  padding: 22px;

  margin-top: 16px;

  box-shadow:
    0 3px 15px
    rgba(20, 35, 68, 0.08);

}


.stripe-title {

  display: flex;

  gap: 15px;

  align-items: center;

}


.stripe-title h2 {

  margin: 0;

  font-size: 18px;

}


.stripe-title p {

  font-size: 12px;

  color: #7c8799;

}


.stripe-button {

  width: 100%;

  margin-top: 18px;

  padding: 14px;

  border: none;

  border-radius: 10px;

  background: #102344;

  color: white;

  font-size: 15px;

  font-weight: 700;

}


/* アカウント */

.account-card {

  background: white;

  border-radius: 18px;

  padding: 22px;

  margin-top: 16px;

  margin-bottom: 20px;

  box-shadow:
    0 3px 15px
    rgba(20, 35, 68, 0.08);

}


.account-card h2 {

  margin-top: 0;

}


.logout-button {

  width: 100%;

  padding: 14px;

  border: none;

  border-radius: 10px;

  background: #f3f4f6;

  color: #555;

  font-size: 15px;

}
/* =====================
   マイページ メニュー
===================== */

.mypage-dashboard {

  display: flex;

  flex-direction: column;

  gap: 12px;

  margin-top: 20px;

}


.mypage-menu-card {

  display: flex;

  align-items: center;

  gap: 14px;

  padding: 18px;

  background: white;

  border-radius: 14px;

  box-shadow:
    0 2px 8px rgba(20, 33, 61, 0.07);

  text-decoration: none;

  color: #102344;

  transition:
    transform 0.15s;

}


.mypage-menu-card:active {

  transform:
    scale(0.98);

}


/* アイコン */

.menu-icon {

  width: 46px;

  height: 46px;

  flex-shrink: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 24px;

  background: #eef3fa;

  border-radius: 12px;

}


/* 真ん中の文字 */

.menu-content {

  flex: 1;

}


.menu-content h2 {

  margin: 0;

  font-size: 16px;

  color: #102344;

}


.menu-content p {

  margin: 5px 0 0;

  font-size: 12px;

  color: #7c8799;

}


/* 右矢印 */

.menu-arrow {

  font-size: 28px;

  color: #a0a8b5;

}
/* =====================
   マイページ PC版
===================== */

@media (min-width: 700px) {

  .mypage-dashboard {

    display: flex;

    flex-direction: column;

    gap: 12px;

  }


  .mypage-menu-card {

    display: flex;

    align-items: center;

    width: 100%;

    box-sizing: border-box;

    padding: 18px;

    background: white;

    border-radius: 14px;

    box-shadow:
      0 2px 8px rgba(20, 33, 61, 0.07);

  }

}
/* =====================
   スマホ用 売上ページ
===================== */

.sales-page-card {

  margin-bottom: 100px;

}


#sales-summary {

  display: block;

  width: 100%;

}


.sales-total,
.sales-count,
.sales-fee,
.seller-earnings {

  display: block;

  width: 100%;

  box-sizing: border-box;

}
/* ==============================
   自分が出品した教材
============================== */

#my-material-list {
    display: grid;
    gap: 16px;
}


.my-material-card {

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 18px;

    padding: 18px;

    box-sizing: border-box;

}


.my-material-top {

    display: flex;

    gap: 15px;

    align-items: center;

}


.my-material-image {

    width: 90px;

    height: 90px;

    object-fit: cover;

    border-radius: 12px;

    flex-shrink: 0;

}


.my-material-no-image {

    width: 90px;

    height: 90px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 32px;

    background: #f1f5f9;

    border-radius: 12px;

    flex-shrink: 0;

}


.my-material-info {

    flex: 1;

    min-width: 0;

}


.my-material-category {

    font-size: 13px;

    margin: 0 0 5px;

    color: #64748b;

}


.my-material-info h3 {

    font-size: 19px;

    margin: 0 0 10px;

    color: #1e293b;

}


.my-material-target {

    font-size: 14px;

    margin: 0 0 5px;

    color: #64748b;

}


.my-material-price {

    font-size: 17px;

    font-weight: bold;

    margin: 0;

    color: #1e293b;

}


/* ボタン */

.my-material-buttons {

    display: flex;

    gap: 10px;

    margin-top: 18px;

}


.my-material-button {

    flex: 1;

    text-align: center;

    padding: 12px;

    background: #1e2d47;

    color: white;

    border-radius: 10px;

    text-decoration: none;

    box-sizing: border-box;

    font-size: 15px;

}


.my-material-button:hover {

    opacity: 0.85;

}


/* 削除 */

.my-material-delete {

    width: 100%;

    margin-top: 10px;

    padding: 10px;

    border: none;

    background: transparent;

    color: #94a3b8;

    font-size: 14px;

    cursor: pointer;

}


/* パソコン */

@media (min-width: 768px) {

    #my-material-list {

        grid-template-columns:
            repeat(2, 1fr);

    }

}
/* =========================
   教材編集ページ
========================= */

.edit-page-main {

    max-width: 800px;

    margin: 0 auto;

    padding:
        40px
        24px
        100px;

}


.edit-page-heading {

    margin-top: 35px;

    margin-bottom: 30px;

}


.edit-page-label {

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 2px;

    color: #6b7280;

    margin-bottom: 8px;

}


.edit-page-heading h2 {

    font-size: 38px;

    margin-bottom: 10px;

}


.edit-page-heading p {

    color: #6b7280;

}


/* 編集カード */

.edit-material-card {

    background: white;

    border-radius: 24px;

    padding: 40px;

    box-shadow:
        0 10px 40px
        rgba(0, 0, 0, 0.08);

}


/* フォーム */

.form-group {

    display: flex;

    flex-direction: column;

    gap: 10px;

    margin-bottom: 28px;

}


.form-group > label {

    font-size: 16px;

    font-weight: bold;

}


/* 入力欄 */

.form-group input,
.form-group select,
.form-group textarea {

    width: 100%;

    box-sizing: border-box;

    padding: 15px;

    font-size: 16px;

    border:

        1px solid
        #d1d5db;

    border-radius: 12px;

    background: white;

}


.form-group textarea {

    resize: vertical;

    line-height: 1.7;

}


/* 画像プレビュー */

.edit-image-preview {

    width: 100%;

    max-width: 500px;

    aspect-ratio: 16 / 9;

    border-radius: 16px;

    overflow: hidden;

    background: #f3f4f6;

}


.edit-image-preview img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}


.edit-image-placeholder {

    width: 100%;

    height: 100%;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap: 10px;

    color: #6b7280;

    font-size: 15px;

}


.edit-image-placeholder:first-letter {

    font-size: 40px;

}


/* 画像変更ボタン */

.image-select-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: fit-content;

    padding:

        12px
        20px;

    border-radius: 10px;

    background: #f3f4f6;

    cursor: pointer;

    font-weight: bold;

}


.image-select-button:hover {

    background: #e5e7eb;

}


.form-help {

    font-size: 13px;

    color: #9ca3af;

}


/* 価格 */

.price-input-wrap {

    display: flex;

    align-items: center;

    border:

        1px solid
        #d1d5db;

    border-radius: 12px;

    overflow: hidden;

}


.price-input-wrap span {

    padding-left: 16px;

    font-size: 18px;

    font-weight: bold;

}


.price-input-wrap input {

    border: none;

    outline: none;

}


/* 保存ボタン */

.edit-save-button {

    width: 100%;

    padding: 18px;

    border: none;

    border-radius: 14px;

    background: #1f304d;

    color: white;

    font-size: 17px;

    font-weight: bold;

    cursor: pointer;

    margin-top: 10px;

}


.edit-save-button:hover {

    opacity: 0.9;

}


/* =========================
   スマホ
========================= */

@media screen and (max-width: 600px) {

    .edit-page-main {

        padding:

            25px
            16px
            100px;

    }


    .edit-page-heading {

        margin-top: 30px;

    }


    .edit-page-heading h2 {

        font-size: 32px;

    }


    .edit-material-card {

        padding: 24px 18px;

        border-radius: 20px;

    }


    .edit-image-preview {

        max-width: 100%;

    }

}
/* =========================
   スマホ版デザイン調整
========================= */

@media screen and (max-width: 600px) {


    /* =====================
       教材を探す
    ===================== */

    .category-buttons {

        display: flex;

        flex-wrap: wrap;

        gap: 10px;

        margin-top: 20px;

    }


    .category-buttons button {

        width: auto;

        min-width: 0;

        padding: 12px 18px;

        font-size: 16px;

        border-radius: 12px;

    }


    /* =====================
       教材一覧
    ===================== */

    #material-list {

        display: flex;

        flex-direction: column;

        gap: 18px;

    }


    /* =====================
       教材カード
    ===================== */

    .material-card {

        border-radius: 20px;

        overflow: hidden;

    }


    /* 画像 */

    .material-image {

        height: 180px;

    }


    .material-thumbnail {

        width: 100%;

        height: 100%;

        object-fit: cover;

    }


    /* カード内 */

    .material-card-content {

        padding: 20px;

    }


    .material-card-content h3 {

        margin-top: 10px;

        margin-bottom: 12px;

        font-size: 24px;

    }


    .material-description {

        margin-bottom: 14px;

        line-height: 1.6;

    }


    .material-price {

        margin-top: 14px;

        margin-bottom: 16px;

        font-size: 20px;

    }


    /* 詳細ボタン */

    .material-card .detail-button {

        padding: 13px 24px;

        font-size: 16px;

        border-radius: 12px;

    }

}
/* =========================
   教材を探すページ
   スマホ版調整
========================= */

@media screen and (max-width: 600px) {


    /* メインの余白 */

    main {

        padding-left: 24px;

        padding-right: 24px;

    }


    /* =====================
       検索エリア
    ===================== */

    .materials-search-area {

        display: flex;

        align-items: center;

        gap: 10px;

        margin-bottom: 20px;

    }


    #materials-search-input {

        flex: 1;

        width: 100%;

        height: 46px;

        padding: 0 14px;

        font-size: 14px;

        border-radius: 12px;

    }


    #materials-search-button {

        width: 82px;

        height: 46px;

        padding: 0;

        border-radius: 12px;

    }


    /* =====================
       リセットボタン
    ===================== */

    #reset-search-button {

        margin-bottom: 18px;

        padding: 10px 16px;

        font-size: 14px;

    }


    /* =====================
       カテゴリー
    ===================== */

    .category-buttons {

        display: flex;

        flex-wrap: nowrap;

        overflow-x: auto;

        gap: 10px;

        margin-bottom: 35px;

        padding-bottom: 5px;

    }


    .category-buttons button {

        flex-shrink: 0;

        width: auto;

        min-width: 0;

        padding: 11px 20px;

        font-size: 16px;

        border-radius: 22px;

    }


    /* スクロールバーを隠す */

    .category-buttons::-webkit-scrollbar {

        display: none;

    }


    /* =====================
       教材一覧
    ===================== */

    #material-list {

        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 16px;

    }


    /* =====================
       教材カード
    ===================== */

    .material-card {

        width: 100%;

        min-width: 0;

        border-radius: 20px;

        overflow: hidden;

    }


    /* 教材画像 */

    .material-image {

        height: 180px;

    }


    .material-thumbnail {

        width: 100%;

        height: 100%;

        object-fit: cover;

    }


    /* 画像なし */

    .no-image {

        font-size: 38px;

    }


    /* カードの内容 */

    .material-card-content {

        padding: 14px;

    }


    /* カテゴリー */

    .material-category {

        font-size: 13px;

        margin: 0 0 8px;

    }


    /* タイトル */

    .material-card-content h3 {

        font-size: 18px;

        line-height: 1.4;

        margin: 0 0 8px;

    }


    /* 説明を非表示 */

    .material-description {

        display: none;

    }


    /* 対象 */

    .material-card-content p:not(
        .material-category
    ):not(
        .material-price
    ) {

        display: none;

    }


    /* 価格 */

    .material-price {

        font-size: 18px;

        margin: 0;

        font-weight: 700;

    }


    /* 詳細ボタンを非表示 */

    .material-card .detail-button {

        display: none;

    }

}
/* ==============================
   プロフィール編集
============================== */

.profile-edit-card {

    background: white;

    padding: 32px;

    border-radius: 18px;

    max-width: 600px;

    margin: 0 auto;

    box-shadow:
        0 4px 20px
        rgba(0, 0, 0, 0.06);

}


/* アイコンエリア */

.profile-image-edit {

    display: flex;

    flex-direction: column;

    align-items: center;

    margin-bottom: 30px;

}


.profile-image-preview {

    width: 110px;

    height: 110px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 45px;

    background: #f1f5f9;

    overflow: hidden;

    margin-bottom: 15px;

}


.profile-image-preview img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}


/* アイコン変更ボタン */

.image-select-button {

    padding: 10px 18px;

    border-radius: 10px;

    background: #102344;

    color: white;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

}


/* フォーム */

.profile-edit-card .form-group {

    margin-bottom: 25px;

}


.profile-edit-card input {

    width: 100%;

    box-sizing: border-box;

    padding: 13px;

    border:

        1px solid #d1d5db;

    border-radius: 10px;

    font-size: 16px;

}


/* スマホ */

@media (max-width: 600px) {

    .profile-edit-card {

        padding: 22px 18px;

    }


    .profile-image-preview {

        width: 90px;

        height: 90px;

        font-size: 38px;

    }

}
/* ==============================
   マイページプロフィール
============================== */

.mypage-profile-header {

    display: flex;

    align-items: center;

    gap: 16px;

}


/* アイコン */

.mypage-avatar {

    width: 72px;

    height: 72px;

    border-radius: 50%;

    object-fit: cover;

    flex-shrink: 0;

}


/* アイコン未設定 */

.mypage-avatar-placeholder {

    width: 72px;

    height: 72px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 32px;

    background: #f1f5f9;

    flex-shrink: 0;

}


/* 名前 */

.mypage-profile-text {

    flex: 1;

}


.mypage-profile-text h2 {

    margin: 0 0 4px;

    font-size: 20px;

}


/* メール */

.mypage-profile-text p {

    margin: 0 0 12px;

    color: #64748b;

    font-size: 13px;

}


/* 編集ボタン */

.profile-edit-button {

    display: inline-block;

    padding: 8px 14px;

    border-radius: 8px;

    background: #102344;

    color: white;

    text-decoration: none;

    font-size: 13px;

}
/* ログインしていない場合 */

.mypage-not-logged-in {

    display: flex;

    align-items: center;

    gap: 16px;

}


.mypage-not-logged-in h2 {

    margin: 0 0 8px;

    font-size: 20px;

}


.mypage-not-logged-in p {

    margin: 0 0 12px;

    color: #64748b;

    font-size: 14px;

}
/* ==============================
   教材詳細：出品者
============================== */

.seller-profile {

    display: flex;

    align-items: center;

    gap: 14px;

}


.seller-avatar {

    width: 55px;

    height: 55px;

    border-radius: 50%;

    overflow: hidden;

    background: #eef2f7;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 28px;

}


.seller-avatar img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}


.seller-name {

    font-size: 18px;

    font-weight: bold;

    margin: 0;

}
