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

body{
    font-family:sans-serif;
    line-height:1.6;
    background:#f4f4f4;
    color:#333;
}

/* ---------- ヘッダー ---------- */


/* =====================
   ヘッダー
===================== */

header{
    width:100%;
}


/* 上段：ロゴ */

.header-top{
    background:white;
    padding:2px 10px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}

.logo{
    text-align:left;
}


.logo img{

    width:180px;
    height:auto;

}
.since{
    font-size:0.8rem;
    color:#0e0c0c;
    margin-top:-20px;
    margin-left:37px;
    letter-spacing:2px;
}


/* 下段：ナビ */

.header-nav{
    background:linear-gradient(
        to right,
        #0000cd,
        #4169e1,
        #87cefa
    );
    padding:15px 0;
}


nav{
    display:flex;
    justify-content:flex-start;
    gap:40px;
    flex-wrap:wrap;
    padding-left:40px;
}


nav a{

    color:white;
    text-decoration:none;
    font-weight:bold;
    font-size:1.05rem;

}


nav a:hover{

    opacity:0.7;

}



/* ---------- メイン ---------- */

main{
    max-width:1000px;
    margin:40px auto;
    padding:0 20px;
}

section{
    margin-bottom:50px;
}

section h2{
    margin-bottom:20px;
    border-left:6px solid #0000cd;
    padding-left:10px;
}

/* ---------- 注目記事スライダー ---------- */

.featured-slider{
    width:100%;
    height:320px;
    background:#fff;
    border-radius:8px;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 2px 8px rgba(0,0,0,.15);
}

/* JavaScriptで画像・記事を入れる */

.featured-slider img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* ---------- 最新記事 ---------- */

.news-grid{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.news-item{
    display:flex;
    background:#fff;
    border-radius:8px;
    overflow:hidden;
    box-shadow:0 2px 6px rgba(0,0,0,.12);
    transition:.2s;
}

.news-item:hover{
    transform:translateY(-3px);
}

.news-item img{
    width:260px;
    height:180px;
    object-fit:cover;
}

.news-content{
    padding:20px;
    flex:1;
}

.news-content h3{
    margin-bottom:10px;
    font-size:1.3rem;
}

.news-content p{
    color:#666;
    margin-bottom:15px;
}

.news-content a{
    color:#0000cd;
    text-decoration:none;
    font-weight:bold;
}

.news-content a:hover{
    text-decoration:underline;
}

/* ---------- フッター ---------- */

footer{
    background:#0000cd;
    color:#fff;
    text-align:center;
    padding:20px;
}

/* ---------- レスポンシブ ---------- */

@media (max-width:768px){

    .header-top{
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:10px;
        padding:10px;
    }

    .header-nav{
        padding:10px 0;
    }

    nav{
        width:100%;
        display:flex;
        justify-content:center;
        align-items:center;
        gap:8px;
        padding-left:0;
        flex-direction:row;
        flex-wrap:nowrap;
    }

    nav a{
        white-space:nowrap;
        font-size:0.9rem;
    }

    .featured-slider{
        height:220px;
    }

    .news-item{
        flex-direction:column;
    }

    .news-item img{
        width:100%;
        height:220px;
    }

}

@media (max-width:480px){

    nav{
        gap:6px;
    }

    nav a{
        font-size:0.82rem;
    }

    main{
        padding:0 10px;
    }

    .featured-slider{
        height:180px;
    }

}

.category {

    display: inline-block;

    padding: 4px 12px;

    margin-bottom: 10px;

    font-size: 0.85rem;

    border-radius: 20px;

    color: white;

}


/* ニュース：青 */
.category.ニュース {

    background-color: #f2f3f4;

}


/* 進学・就職：オレンジ */
.category.進学・就職 {

    background-color: #fefefe;

}


/* 受験：赤 */
.category.受験 {

    background-color: #ffffff;

}

/* インタビュー：緑 */
.category.インタビュー {
    background-color: #388e3c;
}


/* English：紫 */
.category.English {
    background-color: #7b1fa2;
}

/* ドロップダウンメニュー */

.dropdown{
    position: relative;
    display: inline-block;
}

.dropdown-content{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 1000;
}

.dropdown-content a{
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
}

.dropdown-content a:hover{
    background: #f3f3f3;
}

.dropdown:hover .dropdown-content{
    display: block;
}

/* ナビゲーションと検索 */

.header-nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-box input{
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 20px;
    width: 220px;
    font-size: 14px;
}

.search-box{
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #ccc;
    border-radius: 30px;
    padding: 5px 12px;
}

.search-box input{
    border: none;
    outline: none;
    width: 200px;
    font-size: 14px;
}

.search-icon{
    margin-right: 8px;
    color: #666;
}

/* ==============================
   ニュース一覧ボタン
============================== */

.more-news {

    text-align: center;

    margin-top: 40px;

}


.more-news a {

    display: inline-block;

    padding: 12px 30px;

    border: 1px solid #333;

    text-decoration: none;

    color: #333;

    transition: 0.3s;

}


.more-news a:hover {

    background: #333;

    color: white;

}

/* ==========================
   ページ表示アニメーション
========================== */


/* 注目記事 */
.featured-news {

    animation: fadeUp 1s ease;

}



/* 最新記事 */
.latest-news {

    animation: fadeUp 1.2s ease;

}



/* 記事カード */
.news-item {

    animation: fadeUp 0.8s ease forwards;

    opacity: 0;

}



/* 順番に表示 */
.news-item:nth-child(1){
    animation-delay:0.1s;
}

.news-item:nth-child(2){
    animation-delay:0.2s;
}

.news-item:nth-child(3){
    animation-delay:0.3s;
}

.news-item:nth-child(4){
    animation-delay:0.4s;
}

.news-item:nth-child(5){
    animation-delay:0.5s;
}



@keyframes fadeUp {


    from {

        opacity:0;

        transform:translateY(40px);

    }


    to {

        opacity:1;

        transform:translateY(0);

    }


}

/* ==========================
   ロゴ フェードイン
========================== */


.logo {

    animation: logoFade 1.5s ease forwards;

}



@keyframes logoFade {


    from {

        opacity:0;

        transform:translateY(-20px);

    }


    to {

        opacity:1;

        transform:translateY(0);

    }


}

/* ==========================
   スマートフォン対応
========================== */

@media (max-width: 768px){

    /* 上段：ロゴ＋検索 */
    .header-top{
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:10px;
        padding:10px;
    }

    /* ロゴ */
    .logo img{
        width:150px;
    }

    .since{
        font-size:0.7rem;
        margin-top:-15px;
        margin-left:30px;
    }

    /* 下段：ナビゲーション */
    .header-nav{
        display:block;
        padding:10px 0;
    }

    nav{
        width:100%;
        display:flex;
        justify-content:center;
        align-items:center;
        gap:8px;
        padding-left:0;
        flex-direction:row;
        flex-wrap:nowrap;
    }

    nav a{
        white-space:nowrap;
        font-size:0.9rem;
    }

    /* 検索ボックス */
    .search-box{
        width:auto;
        max-width:200px;
        flex-shrink:1;
    }

    .search-box input{
        width:100%;
        min-width:0;
    }

    /* メイン */
    main{
        margin:25px auto;
        padding:0 15px;
    }

    /* 見出し */
    section h2{
        font-size:1.4rem;
    }

    /* 注目記事 */
    .featured-slider{
        height:220px;
    }

    /* 記事 */
    .news-item{
        flex-direction:column;
    }

    .news-item img{
        width:100%;
        height:220px;
    }

    .news-content{
        padding:15px;
    }

    .news-content h3{
        font-size:1.15rem;
    }

}


/* ==========================
   小さいスマートフォン
========================== */

@media (max-width:480px){

    .logo img{
        width:130px;
    }

    .since{
        font-size:0.65rem;
        margin-left:25px;
    }

    nav{
        gap:5px;
    }

    nav a{
        font-size:0.78rem;
    }

    .search-box{
        max-width:170px;
        padding:4px 8px;
    }

    .search-box input{
        font-size:12px;
    }

    .search-icon{
        margin-right:4px;
    }

    .featured-slider{
        height:180px;
    }

    .news-item img{
        height:180px;
    }

    .news-content{
        padding:15px;
    }

}

/* ==========================
   SNS共有ボタン
========================== */

.share-buttons {

    display: flex;

    gap: 12px;

    margin: 20px 0 30px;

}

.share-button {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 48px;

    height: 48px;

    border-radius: 50%;

    background: #f5f5f5;

    border: 1px solid #ddd;

    text-decoration: none;

    font-weight: bold;

    color: #333;

    transition: 0.2s;

}

.share-button:hover {

    transform: translateY(-3px);

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);

}

.share-buttons {

    display: flex;

    gap: 12px;

    margin: 20px 0;

}

.share-button {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 42px;

    height: 42px;

    border: 1px solid #ddd;

    border-radius: 50%;

    text-decoration: none;

    font-size: 1.3rem;

    transition: 0.3s;

}

.share-button:hover {

    transform: scale(1.1);

}
/* ==========================
   記事ページ
========================== */

.article-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
    align-items: start;
}

.article-page {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.article-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
}

/* 右側は今は空白 */
.article-sidebar {
    min-height: 100px;
}


/* スマートフォン */

@media (max-width: 768px) {

    .article-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .article-page {
        padding: 20px;
    }

    .article-sidebar {
        display: none;
    }

}

.article-date{
    color:#777;
    font-size:0.9rem;
    margin:8px 0 4px;
}

.article-author{
    color:#555;
    font-size:0.95rem;
    margin-bottom:20px;
}

.article-content {
    font-family: "Noto Serif JP", serif;
    font-size: 16px;
    line-height: 2;
    color: #222;
}

.article-content p {
    margin-bottom: 1.5em;
}

.article-page h1 {
    font-family: "Noto Serif JP", serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.5;
    color: #222;
    text-align: left;
    margin-bottom: 10px;
}

.article-date {
    font-family: sans-serif;
    font-size: 14px;
    color: #333;
    margin: 0 0 5px 0;
}

.article-author {
    font-family: sans-serif;
    font-size: 14px;
    color: #777;
    margin: 0 0 20px 0;
}

.article-caption {
    font-family: sans-serif;
    font-size: 13px;
    color: #777;
    margin-top: 8px;
    line-height: 1.5;
}

/* ==========================
   お知らせページ
========================== */

.oshirase-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.oshirase-item {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
    transition: .2s;
}

.oshirase-item:hover {
    transform: translateY(-3px);
}

.oshirase-item img {
    width: 260px;
    height: 180px;
    object-fit: cover;
}

.oshirase-content {
    padding: 20px;
    flex: 1;
}

.oshirase-content small {
    display: block;
    color: #777;
    margin-bottom: 8px;
}

.oshirase-content h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #333;
}


/* スマートフォン */

@media (max-width: 768px) {

    .oshirase-item {
        flex-direction: column;
    }

    .oshirase-item img {
        width: 100%;
        height: 220px;
    }

    .oshirase-content {
        padding: 15px;
    }

}

/* ==============================
   新聞社について
   ヒーロー
============================== */

.about-hero {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 500px;
    margin: 0 auto 60px;
    overflow: hidden;
}


/* ==============================
   写真スライダー
============================== */

.about-slider {
    position: absolute;
    top: 0;
    right: 0;

    width: 82%;
    height: 430px;

    overflow: hidden;
    background: #ddd;
}


.about-slide {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0;

    transition: opacity 1.2s ease;
}


.about-slide.active {
    opacity: 1;
}


/* ==============================
   キャッチコピー
============================== */

.about-catch {
    position: absolute;

    left: 0;
    bottom: 25px;

    z-index: 10;

    width: 55%;
    min-height: 130px;

    padding: 25px 60px 25px 35px;

    display: flex;
    align-items: center;

    color: white;

    background: linear-gradient(
        100deg,
        rgba(0, 0, 0, 0.96) 0%,
        rgba(25, 25, 25, 0.92) 40%,
        rgba(80, 80, 80, 0.65) 70%,
        rgba(120, 120, 120, 0) 100%
    );

    clip-path: polygon(
        0 0,
        100% 10%,
        90% 100%,
        0 88%
    );

    transform: rotate(-5deg);
}


/* 文字 */

.about-catch p {
    margin: 0;

    font-size: clamp(2rem, 4vw, 3.8rem);

    font-weight: 800;

    letter-spacing: 0.08em;

    line-height: 1.2;

    white-space: nowrap;

    text-shadow:
        2px 2px 5px rgba(0, 0, 0, 0.4);
}


/* ==============================
   タブレット・スマートフォン
============================== */

@media (max-width: 768px) {

    .about-hero {
        height: 400px;
        margin-bottom: 50px;
    }


    .about-slider {
        width: 94%;
        height: 330px;
    }


    .about-catch {
        left: 0;

        bottom: 15px;

        width: 78%;

        min-height: 100px;

        padding: 20px 40px 20px 20px;

        transform: rotate(-4deg);
    }


    .about-catch p {
        font-size: clamp(1.6rem, 6vw, 2.4rem);
    }

}


/* ==============================
   スマートフォン
============================== */

@media (max-width: 480px) {

    .about-hero {
        height: 330px;

        margin-bottom: 40px;
    }


    .about-slider {
        width: 96%;
        height: 250px;
    }


    .about-catch {
        left: 0;

        bottom: 15px;

        width: 90%;

        min-height: 80px;

        padding: 15px 30px 15px 15px;

        transform: rotate(-3deg);
    }


    .about-catch p {
        font-size: 1.55rem;

        letter-spacing: 0.04em;

        white-space: normal;
    }

}
