@import url('/css/font.css');
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}
span{
 line-height: 1;
 display:inline-block;
}
.site-header {
    background-color: #ffffff;
    border-bottom: 2px solid #ffedf2;
    margin: 0;
    padding: 0;
    width: 100%;
}

.header-container {
    width: 80%;
    min-width: 320px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    height: 45px;
}
.logo {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}
.logo a {
    text-decoration: none;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
    padding-top: 10px;
}

.logo-main, .logo-sub {
    position: relative;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 1.5rem;
    color: #ff85a2;
    text-shadow: 1px 1px 0px #ffe0e9;
    display: inline-block;
    transition: transform 0.3s ease;
    z-index: 2;
}
.logo-sub{
    margin-left: 11px;
}
.logo-accent {
    position: absolute;
    top: 13px;
    left: 48px;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 0.9rem;
    font-weight: 950;
    color: #ff477e;
    text-shadow: 2px 2px 0px #ffe0e9;
    transform: rotate(15deg);
    padding: 0 4px;
    border-radius: 4px;
    z-index: 1;
}
.logo:hover .logo-wrapper {
    transform: scale(1.05) rotate(-2deg);
    transition: transform 0.3s ease;
}

@media (max-width: 640px) {
    .logo-wrapper {
        line-height: 0.6;
    }
    .logo-main, .logo-sub {
        font-size: 1rem;
        line-height: 0.6;
    }
    .logo-accent {
        font-size: 0.7rem;
        line-height: 0.6;
        top: 18px;
        left: 38px;
    }
}
.site-nav ul {
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.site-nav a {
    text-decoration: none;
    color: #999;
    font-weight: 600;
    font-size: 0.75rem;
    transition: color 0.2s;
}

.site-nav a:hover {
    color: #ff85a2;
}

.sp-text {
    display: none;
}

@media (max-width: 640px) {
    .pc-text {
        display: none;
    }
    .sp-text {
        display: inline;
    }
}

.tabs-container {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #f5f5f5;
    padding: 7px 0;
}

.tabs {
    max-width: 80%; 
    min-width: 320px;
    margin: 0 auto;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 0 15px;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 5px 15px;
    margin-right: 9px;
    cursor: pointer;
    border: none;
    background: transparent;
    color: #888;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.tab-btn:hover {
    color: #ff85a2;
    background-color: #fff0f3;
}

.tab-btn.active {
    background-color: #ff85a2;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 133, 162, 0.3);
}

.container {
    width: 80%;
    max-width: 1400px;
    min-width: 320px;
    margin: 0 auto;
    margin-bottom: 120px;
    box-sizing: border-box;
}

h2.headline {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #444;
}

h2.headline {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 1.5rem;
    color: #444;
    position: relative;
    padding: 10px 0 15px 0;
    margin-bottom: 30px;
    text-align: center;
}

h2.headline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #ff85a2;
    border-radius: 10px;
}

.category-section {
    margin-bottom: 40px;
}

.category-title {
    border-left: 4px solid #ff85a2;
    padding-left: 12px;
    margin-bottom: 20px;
    font-size: 1.15rem;
    font-weight: bold;
    color: #333;
}

.site-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.site-item {
    background: #fff;
    border: 1px solid #eee;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.site-item:hover {
    border-color: #ff85a2;
    background-color: #fff0f3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 133, 162, 0.1);
}

.site-item a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
}

.site-item:hover a {
    color: #ff85a2;
}

.article-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #eee;
    padding: 15px 0 8px 0;
    transition: background-color 0.2s;
}

.article-card:hover {
    background-color: #fafafa;
}

.article-card:hover .article-title,
.article-card:hover .pickup-title {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-title {
    font-weight: bold;
    font-size: 1.0rem;
    color: #0066cc;
    line-height: 1.4;
    padding-left: 7px;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.article-meta {
    font-size: 0.75rem;
    color: #999;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-right: 5px;
}

.pickup-label {
    font-size: 0.7rem;
    background: #ffc107;
    color: #fff;
    padding: 3px 7px;
    margin-right: 7px;
    border-radius: 4px;
    display: inline-block;
    font-weight: bold;
}

.pickup-title {
    font-weight: bold;
    font-size: 1.0rem;
    color: #e62244;
    line-height: 1.4;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.pickup-site{
    line-height: 1;
}

@media (max-width: 640px) {
    .container, .tabs {
        width: 100%;
        padding: 0 10px;
    }

    .header-container {
        width: 100%;
        padding: 0px;
        padding-left: 5px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .site-nav {
        padding-right: 8px;
    }
    .site-nav ul {
        gap: 8px;
    }

    .site-nav a {
        font-size: 0.7rem;
    }

    .site-item {
        flex: 1 1 calc(50% - 12px);
        text-align: center;
        padding: 8px 5px;
    }
}

.rss-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); 
    gap: 40px 30px;
    margin-top: 30px;
    margin-bottom: 80px;
    width: 100%;
}

.rss-section {
    background: #fff;
    width: 100%;
}

.rss-card {
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    background: #fff;
}

.rss-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    table-layout: fixed; 
}

.rss-table th:nth-child(1),
.rss-table td:nth-child(1) {
    width: 25%;
    text-align: center;
}

.rss-table th:nth-child(2),
.rss-table td:nth-child(2) {
    width: 35%;
    text-align: center;
}

.rss-table th:nth-child(3),
.rss-table td:nth-child(3) {
    width: 40%;
    text-align: center;
}

.rss-table th, 
.rss-table td {
    padding: 15px 10px;
    vertical-align: middle;
}

.update-time {
    font-weight: bold;
    color: #333;
    background: #fffafb;
    width: 70px;
    text-align: center !important;
    border-right: 1px solid #ffedf2;
}

.table-divider td {
    border-top: 1px dashed #ffedf2;
}

.rss-link {
    display: inline-block;
    width: 80px;
    padding: 6px 0;
    background: #ff85a2;
    color: #fff !important;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(255, 133, 162, 0.2);
    margin: 0 auto;
}

.rss-link:hover {
    background: #ff5e84;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 133, 162, 0.4);
}


@media (max-width: 900px) {
    .rss-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (max-width: 640px) {
    .rss-card {
        max-width: 100%;
    }
    .rss-table {
        table-layout: auto;
    }
}

.pickup-tool-container {
    margin: 60px auto 40px;
    padding: 30px;
    background-color: #fffafb;
    border: 2px dashed #ffcedb;
    border-radius: 20px;
    max-width: 900px;
}

.pickup-tool-container h3 {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    color: #ff85a2;
    margin-top: 0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-description {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#target-url {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}

#target-url:focus {
    border-color: #ff85a2;
}

.form-select {
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    color: #666;
    outline: none;
    cursor: pointer;
}

#generate-btn {
    padding: 0 25px;
    background-color: #ff85a2;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

#generate-btn:hover {
    background-color: #ff5e84;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 133, 162, 0.3);
}

.result-box {
    margin-top: 25px;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    border: 1px solid #eee;
}

.result-box label {
    display: block;
    font-size: 0.8rem;
    font-weight: bold;
    color: #666;
    margin-bottom: 8px;
}

.textarea-wrapper {
    position: relative;
    display: flex;
    gap: 10px;
}

#output-html {
    flex: 1;
    height: 80px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #f9f9f9;
    font-family: monospace;
    font-size: 0.85rem;
    color: #444;
    resize: none;
}

#copy-btn {
    width: 80px;
    background: #444;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

#copy-btn:hover {
    background: #222;
}

.preview-text {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #888;
}

#preview-link {
    display: inline-block;
    margin-left: 10px;
}

.status-msg {
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: bold;
    height: 1.2em;
}

@media (max-width: 640px) {
    .input-group {
        flex-direction: column;
    }
    
    #generate-btn {
        padding: 12px;
    }

    .textarea-wrapper {
        flex-direction: column;
    }

    #copy-btn {
        width: 100%;
        padding: 10px;
    }
}

.site-regist {
    font-family: sans-serif;
    max-width: 600px;
    margin: 20px auto;
    padding: 0 15px;
}
.form-group {
    margin-bottom: 15px;
}
.site-regist label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}
.site-regist input,
.site-regist select,
.site-regist textarea {
    width: 100%; padding: 8px;
    box-sizing: border-box;
}
.site-regist button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
}
.site-regist button:hover {
    background-color: #0056b3;
}

.contact-form {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
}
.form-group {
    margin-bottom: 15px;
}
.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.contact-form button {
    background: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}
.contact-form button:hover {
    background: #0056b3;
}
.copyright{
    text-align: center;
    margin: 0 auto;
    margin-bottom: 10px;
}