/* ===========================
   会員専用ページ 共通ベース
=========================== */
body {
    font-family: 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', 'メイリオ', Meiryo, Helvetica, Arial, sans-serif;
    background: #f4f6f9;
    color: #1a1a1a;
}

.container {
    box-sizing: border-box;
}

/* ===========================
   ナビ（member-nav）
=========================== */
.member-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    justify-content: space-between;
}

.member-nav.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 22px;
    padding-right: 22px;
    box-sizing: border-box;
}

.nav-icons {
    display: flex;
    gap: 20px;
    width: 100%;
}

.nav-icon {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box {
    background: #649DAD;
    color: #fff;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    border-radius: 4px;
    text-align: center;
    box-sizing: border-box;
}

.nav-icon .icon-box:hover,
.nav-icon.active .icon-box {
    background: #66C6BA;
}

@media (max-width: 768px) {
    .nav-icons {
        flex-wrap: wrap;
    }
    .nav-icon {
        flex: 1 1 calc(50% - 10px);
    }
}

/* ===========================
   メイン＆トピックス横並び
=========================== */
.member-layout {
    display: flex !important;
    align-items: flex-start;
    gap: 30px;
}

.main-content {
    flex: 1;
}

.main-content h2 {
    font-size: 22px;
    margin-bottom: 25px;
    border-left: 5px solid #6CC8BD;
    padding-left: 12px;
}

.topics {
    flex: 0 0 18%;
    max-width: 200px;
    min-width: 160px;
    background: #649DAD;
    color: #fff;
    padding: 20px 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.topics h2 {
    text-align: center;
    margin-bottom: 18px;
    letter-spacing: 2px;
}

.topics ul,
.topics-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.topics li {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

.topics li:last-child {
    margin-bottom: 0;
}

.topics li a {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background: #fff;
    color: #649DAD;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #649DAD;
    border-radius: 4px;
}

.topics li a:hover,
.topics li a.active {
    background: #6CC8BD;
    color: #fff;
    border-color: #6CC8BD;
}

@media (max-width: 1000px){

.member-layout{
    gap:20px;
}

.topics{
    flex:0 0 25%;
    min-width:140px;
}

}

@media (max-width: 768px){

.member-layout{
    flex-direction:column;
}

.topics{
    width:100%;
    max-width:none;
}

}
/* ===========================
   PDFカード（プロ版）
=========================== */

.pdf-list-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    justify-items: stretch;
}

/* 年タイトル */
.pdf-year {
    grid-column: 1 / -1;
    margin-bottom: 10px;
}

.pdf-year h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #2c3e50;
    display: inline-block;
    padding-bottom: 6px;
    border-bottom: 2px solid #6CC8BD;
}

/* カード本体 */
.pdf-card {
    background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #ffffff 60%,
    #f7f9fb 100%);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.04),
        0 10px 24px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.35s ease;
    position: relative;
}

/* hoverで“浮く＋発光” */
.pdf-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 10px 25px rgba(0,0,0,0.1),
        0 20px 45px rgba(0,0,0,0.12);
}

/* サムネ */
.pdf-thumb {
    height: 190px;
    background: #eef3f6;
    position: relative;
    overflow: hidden;
}

.pdf-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* 画像ズーム */
.pdf-card:hover .pdf-thumb img {
    transform: scale(1.05);
}

/* NEWバッジ（今風ピル型） */
.pdf-card .new-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff6b6b, #e74c3c);
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* 本文 */
.pdf-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* タイトル */
.pdf-card h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: #1a1a1a;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ボタンエリア */
.pdf-actions {
    display: flex;
    gap: 10px;
}

/* ボタン（主役） */
.pdf-actions a {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;

    background: linear-gradient(135deg, #E9A949, #E6951C);
    color: #fff;
    box-shadow: 0 4px 12px rgba(230,149,28,0.3);
}

.pdf-actions a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(230,149,28,0.45);
    background: linear-gradient(135deg, #F2B55E, #F45419);
    color: #fff;
}

.pdf-actions a.secondary {
    background: #f1f3f5;
    color: #555;
    box-shadow: none;
}

.pdf-actions a.secondary:hover {
    background: #e2e6ea;
}

/* モバイル */
@media (max-width: 768px) {
    .pdf-list-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .pdf-thumb {
        height: 160px;
    }
}

/* ===== 会員ログインボタン ===== */

#header .member-login-icon .sp-text {
 display: none !important;
}

.member-login-icon {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

/* ボタン */
.member-login-icon .member-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    background: #E9A949;
    color: #fff;
}

.member-login-icon .member-btn i {
    font-size: 16px;
}

.member-login-icon .member-btn:hover {
    background: #E6951C;
}

/* ログアウト */
.member-login-icon .logout {
    background: #7f8c8d;
}

.member-login-icon .logout:hover {
    background: #95a5a6;
}

/* SP用 */
@media (max-width: 768px) {
  .member-login-icon .sp-text {
    display: inline;
}

  .member-login-icon .pc-text {
    display: none;
  }
}

/* ===========================
   ログインページ
=========================== */
.login-hero {
    background: #649DAD;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.login-hero h1 {
    font-size: 36px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.login-hero p {
    color: #fff;
    font-size: 14px;
}

.login-content {
    max-width: 400px;
    margin: 40px auto 80px;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.login-error {
    background: #ffecec;
    color: #c0392b;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 13px;
}

.frontend-login-form p {
    margin-bottom: 18px;
}

.frontend-login-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.frontend-login-form input[type="text"],
.frontend-login-form input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: 0.3s;
}

.frontend-login-form input:focus {
    border-color: #0f1c2e;
    outline: none;
    box-shadow: 0 0 0 2px rgba(15,28,46,0.1);
}

.frontend-login-form button {
    width: 100%;
    padding: 14px;
    background-color: #E9A949;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.frontend-login-form button:hover {
    background: #fff;
    color: #E6951C;
    border: 1px solid #E6951C;
}