/* =========================
   基本設定
========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Noto Sans JP",
        sans-serif;

    color: #333;
    min-height: 100vh;
    line-height: 1.8;

    background: #f5f5f5;
}


/* =========================
   背景画像
========================= */

.background {
    position: fixed;
    inset: 0;

    background-image: url("backpicture.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: -2;
}


/* 背景を少し暗くする */

.background::after {
    content: "";

    position: absolute;
    inset: 0;

    background: rgba(255, 255, 255, 0.35);
}


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

.header {
    width: min(100% - 40px, 1000px);

    margin: 50px auto 30px;

    padding: 30px;

    display: flex;
    align-items: center;
    gap: 25px;

    background: rgba(255, 255, 255, 0.85);

    border-radius: 20px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08);

    backdrop-filter: blur(10px);
}


/* アイコン */

.icon {
    width: 110px;
    height: 110px;

    object-fit: cover;

    border-radius: 50%;

    border: 4px solid white;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.15);

    flex-shrink: 0;
}

.delms {
    width: 900px;
    height: 600px;

    object-fit: contain;

    border: 4px solid white;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.15);
}


/* サイトタイトル */

.header-text h1 {
    font-size: 32px;
    line-height: 1.3;

    margin-bottom: 5px;
}


/* サブタイトル */

.header-text p {
    color: #777;
}


/* =========================
   メインコンテンツ
========================= */

.container {
    width: min(100% - 40px, 1000px);

    margin: 0 auto 50px;
}


/* =========================
   カード
========================= */

.card {
    background: rgba(255, 255, 255, 0.88);

    padding: 30px;

    margin-bottom: 25px;

    border-radius: 18px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.07);

    backdrop-filter: blur(10px);
}


/* 見出し */

.card h2 {
    font-size: 24px;

    margin-bottom: 20px;

    padding-bottom: 10px;

    border-bottom: 2px solid #eee;
}


/* =========================
   お知らせ
========================= */

.notice p {
    padding: 12px 0;

    border-bottom: 1px solid #eee;
}

.notice p:last-child {
    border-bottom: none;
}


/* 日付 */

.date {
    display: inline-block;

    margin-right: 15px;

    color: #888;

    font-size: 14px;
}


/* =========================
   プロフィール
========================= */

.profile {
    display: flex;

    align-items: center;

    gap: 25px;
}


/* プロフィール画像 */

.profile img {
    width: 100px;
    height: 100px;

    object-fit: cover;

    border-radius: 50%;

    flex-shrink: 0;
}


/* 名前 */

.profile h3 {
    font-size: 22px;

    margin-bottom: 5px;
}


/* =========================
   リンク
========================= */

.links {
    display: flex;

    flex-wrap: wrap;

    gap: 15px;
}


/* リンクボタン */

.link-button {
    display: block;

    padding: 12px 25px;

    background: #333;

    color: white;

    text-decoration: none;

    border-radius: 10px;

    transition:
        transform 0.2s,
        opacity 0.2s;
}


/* マウスを乗せたとき */

.link-button:hover {
    transform: translateY(-3px);

    opacity: 0.8;
}


/* =========================
   フッター
========================= */

.footer {
    text-align: center;

    padding: 30px 20px;

    color: white;

    background: rgba(0, 0, 0, 0.55);

    backdrop-filter: blur(5px);
}


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

@media (max-width: 600px) {

    /* ヘッダー */

    .header {
        width: calc(100% - 24px);

        margin: 20px auto;

        padding: 22px;

        flex-direction: column;

        text-align: center;

        gap: 15px;
    }


    /* アイコン */

    .icon {
        width: 90px;
        height: 90px;
    }


    /* サイト名 */

    .header-text h1 {
        font-size: 25px;
    }


    /* メイン */

    .container {
        width: calc(100% - 24px);

        margin-bottom: 30px;
    }


    /* カード */

    .card {
        padding: 22px;

        margin-bottom: 18px;

        border-radius: 15px;
    }


    /* 見出し */

    .card h2 {
        font-size: 21px;
    }


    /* プロフィール */

    .profile {
        flex-direction: column;

        text-align: center;

        gap: 15px;
    }


    .profile img {
        width: 85px;
        height: 85px;
    }


    /* リンク */

    .links {
        flex-direction: column;
    }


    .link-button {
        width: 100%;

        text-align: center;
    }


    /* お知らせ */

    .notice p {
        padding: 10px 0;
    }


    .date {
        display: block;

        margin-bottom: 3px;
    }

}


/* =========================
   大きな画面
========================= */

@media (min-width: 1200px) {

    .header {
        margin-top: 70px;
    }

    .card {
        padding: 35px;
    }

}
