@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');

/* 全体設定 */
body {
    font-family: "Noto Sans JP", sans-serif;
    background: #f5f7fb;
    color: #333;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
    margin-top: 4rem;
}


/* タイトル */
h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
}

/* セクションタイトル */
h2 {
    margin-top: 30px;
    color: #34495e;
    border-left: 5px solid #4a90e2;
    padding-left: 10px;
}

h3 {
    border-bottom: 2px solid black;
}

/* ボタン */
.navigate {
    padding: 15px 35px;
    background: #ff5700;
    border-radius: 9999px;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    cursor: pointer;
}

/* リスト */
ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

/* 各科目カード */
li a {
    display: block;
    background: white;
    padding: 15px;
    text-align: center;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: 0.2s;
}

/* ホバー */
li a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    background: #4a90e2;
    color: white;
}

.nowrap {
    white-space: nowrap;
}

.select-container {
    position: relative;
    width: 200px;
}

.select-container select {
    width: 100%;
    padding: 10px;
    appearance: none;
    /* removes default arrow */
    border: 1px solid #ccc;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

/* custom arrow */
.select-container::after {
    content: "▼";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.description {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.workspace {
    background-color: white;
    padding: 10px;
}

/* 例文テスト */
table {
    width: 100%;
    border-collapse: collapse;
    /* 枠線を重ねて1本にする */
}

tr {
    height: 100px;
    break-inside: avoid;
    page-break-inside: avoid;
}

th,
td {
    border: 1px solid #ccc;
    /* セル内の線は細く */
    text-align: left;
}

th {
    background-color: #f4f4f4;
}

.s_num {
    width: 5%;
    text-align: center;
    vertical-align: center;
}

.s_main {
    vertical-align: top;
}

.sample_container {
    border-bottom: 1px solid #ccc;
    padding: 10px;
}

.workspace {
    display: none;
}

.download-note {
    margin-top: 20px;
    color: #666;
}

/* スマホ対応 */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 22px;
    }
}

/* 印刷時 */
@media print {
    body * {
        visibility: hidden;
    }

    .workspace,
    .workspace * {
        visibility: visible;
    }

    .workspace {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
    }
}

@page {
    size: A4;
    margin: 10mm;
}