:root {
    --bg: #f3f6fb;
    --card: #ffffff;
    --line: #dbe3ec;

    --text: #1e293b;
    --sub: #64748b;

    --accent: #2563eb;
    --accent2: #4f46e5;

    --shadow: rgba(0, 0, 0, 0.08);
}


h3 {
    padding: 0.5em;/*文字周りの余白*/
    color: #010101;/*文字色*/
    background: #eaf3ff;/*背景色*/
    border-bottom: solid 3px #516ab6;/*下線*/
  }

.box1 {
    text-align: center;
    padding: 2rem;
    margin: 0 calc(50% - 50vw);
    color: white;
    background:
        linear-gradient(
            135deg,
            var(--accent),
            var(--accent2)
        );
    box-shadow: 0 6px 20px var(--shadow);
}



.box1 p {
    margin: 0; 
    padding: 0;
}
body {
    background: var(--bg);
    color: var(--text);
    font-family:
        "Noto Sans JP",
        sans-serif;
    line-height: 1.8;
}

/* 全体レイアウト */
.layout {
    display: flex;
    max-width: 1400px;
    margin: auto;
    gap: 2rem;
    padding: 2rem;
}

/* 左サイドバー */
.sidebar {
    width: 220px;
    height: fit-content;
    position: sticky;
    top: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px var(--shadow);
}

/* リンク */
.sidebar a {
    color: var(--text);
    text-decoration: none;
}

.sidebar a:hover {
    color: var(--accent);
}

/* 本文 */
main {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px var(--shadow);
}
/* 
main {
    padding: 0.2em 0.5em;
    margin: 2em 0;
    background: #d6ebff;
    box-shadow: 0px 0px 0px 10px #d6ebff;
    border: dashed 2px white;
} */
main p {

    padding: 0;
}

.ulbox {
    padding: 10px 30px;
    margin: 2em 0;
    background: rgb(242, 171, 171);
    box-shadow: 0px 0px 0px 10px rgb(242, 171, 171);
    border: dashed 2px white;
}
.ulbox p {
    padding-left: 30px;
}

img {
    max-width: 800px;
    max-height: 400px;
}

.imgbox {
    max-width: 300px;
    max-height: 700px;
}

figure {
    display: flex;
    flex-direction: column;
    align-items: center;
}
  
figcaption {
text-align: center;
}

.box3 {
    text-align: center;
}


