@charset "utf-8";

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&display=swap');
@import url('../as/fontawesome-free-6.5.2-web/css/all.min.css');

:root {
    /* 主カラー */
    --main-color: #9bd0ab;

    /* 主カラー（暗め） */
    --main-dark-color: #729b7f;

    /* 主カラー（明るめ） */
    --main-light-color: #edf7f2;

    --negative-color: #dc0073;

    /* メニューカラー */
    --menu-color: #3fb1c1;

    --bg-main-color: #ffffff;

    /* リンクカラー */
    --link-color: #007ca3;

    /* hover時リンクカラー */
    --link-hover-color: #db0049;

    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;

    --fa-main: "Noto Sans JP";
    --fa-mincho: "Noto Serif JP";
    --fa-important: "Mochiy Pop One";

    /* Font Awesome <Solid> */
    --fa-solid: 900 1em "Font Awesome 6 Free";

    /* Font Awesome <Regular> */
    --fa-regular: 400 1em "Font Awesome 6 Free";
}

*,
:after,
:before {
    box-sizing: border-box;
    border-collapse: collapse;
    border: 0 solid #e7e8f2;
    padding: 0;
    margin: 0;
    line-height: 1.0;
}

::-ms-reveal {
    display: none;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    height: 100%;
    overflow-wrap: break-word;
    word-break: break-all;
}

body {
    height: 100vh;
    font-family: var(--fa-main), sans-serif;
    font-size: 16px;
    color: #555555;
    overflow-wrap: break-word;
    word-break: break-all;
}

a {
    text-decoration: none;
    color: var(--link-color);
}

a:hover {
    text-decoration: underline;
    color: var(--link-hover-color);
}

.wrap,
.wrap-paging {
    width: 1020px;
    padding: 0 10px;
    margin: 0 auto;
    position: relative;
}

.wrap-paging {
    margin-top: -45px;
    margin-bottom: -70px;
}

.l-mg5 {
    margin-left: 5px;
}

.t-mg5 {
    margin-top: 5px;
}

.t-mg10 {
    margin-top: 10px;
}

.t-mg15 {
    margin-top: 15px;
}

.ta-r {
    text-align: right;
}

.ta-c {
    text-align: center;
}

.ta-l {
    text-align: left;
}

.bg-light {
    background-color: var(--main-light-color);
}

header {
    background-color: var(--bg-main-color);
}

header>div {
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-flow: row nowrap;
}

header .title {
    font-family: var(--fa-important);
    font-size: 2rem;
    color: #222222;
    display: flex;
    align-items: center;
    padding: 20px 0;
    font-family: Comic Sans MS;
    font-weight: 600;
}

main,
footer {
    padding: 30px 0;
}

.logo {
    display: inline-block;
    border-radius: 50%;
    color: #ffffff;
    background-color: var(--main-color);
    height: 1.5em;
    width: 1.5em;
    vertical-align: middle;
    text-align: center;
    transform: rotate(-20deg);
}

.logo::before {
    font: var(--fa-regular);
    content: "\f1ea";
    color: #ffffff;
    font-size: 1em;
    line-height: 1.5em;
}

input,
select,
textarea,
button {
    outline: none;
    border: 1px solid #999999;
    padding: 8px;
    font-family: var(--fa-main), sans-serif;
    font-size: 16px;
    border-radius: 3px;
    color: #555555;
}

input[type="color"] {
    padding: 0 3px;
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 5px;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
    border-color: var(--main-color);
}

input::placeholder,
textarea::placeholder {
    color: #aaaaaa;
}

button,
[act] {
    font-weight: bold;
    cursor: pointer;
    line-height: 1.0;
    padding: 14px 30px 15px 30px;
    border: 3px solid #999999;
    border-bottom-left-radius: 3000px;
    border-bottom-right-radius: 3000px;
    border-top-left-radius: 3000px;
    border-top-right-radius: 3000px;
    background-color: #f3f3f3;
    text-decoration: none;
    display: inline-block;
    color: #555555;
}

button:hover,
[act]:hover {
    background-color: #ffffff;
    color: var(--main-color);
    text-decoration: none;
    color: #555555;
}

[color="positive"] {
    background-color: var(--main-color);
    border-color: var(--main-dark-color);
    color: #ffffff;
}

[color="positive"]:hover {
    background-color: var(--main-light-color);
    color: var(--main-dark-color);
}

[color="negative"] {
    background-color: #ffffff;
    border-color: #cccccc;
    color: #cccccc;
}

[color="negative"]:hover {
    border-color: var(--negative-color);
    color: var(--negative-color);
}

[act]::before {
    font: var(--fa-solid);
    margin-right: 5px;
}

[act="login"]::before {
    content: '\f090';
}

[act="new"]::before {
    content: '\2b';
}

[act="edit"]::before {
    content: '\f304';
}

[act="delete"]::before {
    content: '\f2ed';
}

[act="save"]::before {
    content: '\f0c7';
}

[act="preview"]::before {
    content: '\f002';
}

[act="download"]::before {
    content: '\f019';
}

[act="yes"]::before {
    font: var(--fa-regular);
    content: '\f111';
}

[act="no"]::before {
    content: '\f00d';
}

[act="delete-only"]::before {
    content: '\f2ed';
    margin-right: 0;
}

.status {
    text-align: right;
    margin-top: -15px;
    margin-bottom: 30px;
    color: var(--main-dark-color);
}

.overlay {
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.75);
    position: fixed;
    z-index: 999;
}

.loading {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    line-height: 100%;
    vertical-align: middle;
    text-align: center;
    background-color: transparent;
    z-index: 1000;
}

.loading>i {
    font-size: 50px;
    color: var(--main-color);
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
}

.dialog {
    max-width: 100%;
    max-height: calc(100% - 60px);
    min-width: 300px;
    border: 3px solid var(--main-dark-color);
    background-color: #ffffff;
    position: fixed;
    z-index: 1001;
    padding: 20px;
    margin: 10px;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    transform: translateX(-50%) translateY(-50%);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dialog>.close {
    text-align: right;
    margin: -20px -20px 15px 0;
}

.dialog>.close>span {
    display: inline-block;
    width: 25px;
    height: 25px;
    text-align: center;
    line-height: 25px;
    color: #777777;
    cursor: pointer;
}

.dialog>.close>span::before {
    font: var(--fa-solid);
    content: '\f00d';
    display: inline-block;
    width: 10px;
    height: 10px;
    cursor: pointer;
}

.dialog>.close>span:hover {
    color: #dd0033;
}

.dialog>.body {
    position: relative;
    overflow-y: auto;
    flex-grow: 1;
}

.dialog>.body .edit>dl>dt {
    padding: 0;
    margin: 0 0 5px 0;
    font-weight: bold;
}

.dialog>.body .edit>dl>dd {
    padding: 0;
    margin: 5px 0 0 0;
    font-weight: normal;
}

.dialog .edit input,
.dialog .edit textarea {
    font-family: var(--fa-mincho);
}

#dialog-edit {
    display: none;
}


.login {
    width: 500px;
    max-width: 100%;
    margin: auto;
    border: 5px solid var(--main-dark-color);
    border-radius: 20px;
    padding: 50px 30px;
    background-color: #ffffff;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
}

.login .action {
    justify-content: center;
}

.login input[type="password"] {
    padding: 8px 1em 8px 8px;
    position: relative;
}

.logout {
    border-radius: 50%;
    background-color: #ffffff;
    display: inline-block;
    padding: 0;
    margin: 0 0 0 5px;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    position: relative;
}

.logout:hover {
    background-color: var(--link-hover-color);
    color: #ffffff;
}

.logout>.logout-tooltip {
    visibility: hidden;
    background-color: var(--main-dark-color);
    border-radius: 6px;
    padding: 5px;
    text-align: center;
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    z-index: 1;
    display: inline-block;
    width: 120px;
    margin-left: -60px;
    color: #ffffff;
    transition-property: opacity;
    transition-duration: 0.5s;
    transition-delay: 0s;
    opacity: 0;
}

.logout:hover>.logout-tooltip {
    visibility: visible;
    opacity: 1;
}

#wrapper-pw {
    position: relative;
}

#toggle-pw {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
}

#toggle-pw.fa-eye-slash {
    color: #999999;
}



.edit>dl {
    margin-bottom: 20px;
}

.edit>dl>dt {
    font-weight: bold;
    margin-bottom: 10px;
}

.edit>dl>dt.required::after {
    content: '*';
    font-size: 0.9em;
    color: #c70566;
    margin-left: 8px;
}

.edit>dl>dd {
    font-weight: normal;
}

.action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-flow: row-reverse nowrap;
}




.page-navi {
    background-color: #ffffff;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}



.errors {
    border: 1px solid #ea0000;
    padding: 8px;
    background-color: #ffe5e5;
    list-style: none;
    margin: 5px 0;
}

.errors>li {
    color: #ea0000;
}

.errors>li::before {
    font: var(--fa-solid);
    content: "\f071";
    margin-right: 5px;
}



/* 新聞編集ブロック */
.paging-guide {
    margin: 0 auto;
    width: 90px;
    height: 90px;
    display: flex;
    overflow: hidden;
}

.paging-guide>div {
    width: 90px;
    height: 90px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row-reverse;
}

.paging-guide>div>span[page] {
    transition-property: all;
    transition-duration: 0.5s;
    transition-delay: 0s;
}

.paging-guide>div>span[page="1"] {
    transform: translateX(0);
}

.paging-guide>div>span[page="2"] {
    transform: translateX(90px);
}

.paging-guide>div>span[page="3"] {
    transform: translateX(180px);
}

.paging-guide>div>span[page="4"] {
    transform: translateX(270px);
}

.paging-guide>div>span {
    display: flex;
    align-items: center;
    padding: 9px;
}

.news-pager {
    width: 50px;
    height: 50px;
    background-color: var(--main-dark-color);
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    z-index: 5;
    cursor: pointer;
}

.news-pager:hover {
    opacity: 0.5;
}

.news-pager.disabled {
    background-color: #aaaaaa;
    cursor: auto;
}

.news-pager.left-side-page {
    top: 100px;
    left: 10px;
}

.news-pager.right-side-page {
    top: 100px;
    right: 10px;
}

.news-pager.left-side-page::before,
.news-pager.right-side-page::before {
    color: #ffffff;
    font: var(--fa-solid);
    width: 50px;
    height: 50px;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    line-height: 50px;
}

.news-pager.left-side-page::before {
    content: "\f053";
}

.news-pager.right-side-page::before {
    content: "\f054";
}

.wrap-news-paper {
    width: 210mm;
    height: 297mm;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 0 8px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-flow: row nowrap;
    align-items: flex-start;
    align-content: flex-start;
    flex-direction: row-reverse;
    flex: 1 1 auto;
}

.news-paper {
    background: url(/img/bg/paper.png) #ececec;
    padding: 20px;
    width: 210mm;
    height: 297mm;
    overflow: hidden;
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
    align-content: flex-start;
    gap: 5px;
    font-family: var(--fa-mincho);
    flex: 1 0 100%;
    position: relative;
}

.news-paper[page] {
    transition-property: all;
    transition-duration: 0.5s;
    transition-delay: 0s;
}

.news-paper[page="1"] {
    transform: translateX(0);
}

.news-paper[page="2"] {
    transform: translateX(100%);
}

.news-paper[page="3"] {
    transform: translateX(200%);
}

.news-paper[page="4"] {
    transform: translateX(300%);
}

.news-paper-header,
.news-paper-footer {
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
    flex: 1 0 100%;
    justify-content: space-between;
    font-size: 10px;
}

.news-paper-header {
    border-bottom: 2px solid rgba(0, 0, 0, 0.5);
    order: 0;
    padding-bottom: 5px;
}

.news-paper-footer {
    border-top: 2px solid rgba(0, 0, 0, 0.5);
    order: 99;
    margin-top: 15px;
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: calc(100% - 40px);
}

.news-paper-border-horizontal {
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    margin-top: 5px;
    padding-bottom: 5px;
    flex: 1 0 100%;
}

.news-paper-border-vertical {
    border-left: 1px solid rgba(0, 0, 0, 0.2);
    margin-left: 5px;
    padding-right: 5px;
}

.news-paper-name {
    width: 80px;
    border: 3px solid rgba(0, 0, 0, 0.7);
    padding: 2px;
}

.news-paper-name .wrap-news-paper-name-title {
    width: 100%;
    font-size: 50px;
    color: #333333;
    border: 2px solid rgba(0, 0, 0, 0.5);
    line-height: 1.0;
    padding: 50px 5px;
    text-align: center;
}

.news-paper-name .wrap-news-paper-name-title>div {
    writing-mode: vertical-rl;
    cursor: pointer;
}

.news-paper-name .wrap-news-paper-name-year {
    font-size: 12px;
    color: #333333;
    line-height: 1.0;
    border-left: 2px solid rgba(0, 0, 0, 0.5);
    border-right: 2px solid rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid rgba(0, 0, 0, 0.5);
    padding: 10px 5px;
    text-align: center;
    width: 100%;
}

.news-paper-name .wrap-news-paper-name-output {
    margin-top: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px 5px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 10px;
    width: 100%;
}

.news-paper-article .news-paper-article-title {
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(0, 0, 0, 0);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
    padding: 5px;
    font-size: 30px;
    line-height: 1.0;
    letter-spacing: 0;
}

.news-paper-article>.wrap-news-paper-article img {
    max-height: 300px;
    max-width: 500px;
    pointer-events: none;
}

.news-paper-article>.wrap-news-paper-article img.mini {
    max-width: 370px;
}

.news-paper-article>.wrap-news-paper-article img.fr {
    float: right;
    margin-left: 5px;
    margin-bottom: 5px;
}

.news-paper-article>.wrap-news-paper-article img.fl {
    float: left;
    margin-right: 5px;
    margin-bottom: 5px;
}

.news-paper-article>.wrap-news-paper-article img.tc {
    display: block;
    margin: 0 auto 0 auto;
}

.news-paper-article>.wrap-news-paper-article img.mt5 {
    margin-top: 5px;
}

.news-paper-article>.wrap-news-paper-article img.mb5 {
    margin-bottom: 5px;
}

.news-paper-article>.wrap-news-paper-article h2 {
    font-size: 20px;
    margin-bottom: 10px;
    letter-spacing: 0.2em;
    line-height: 1.0;
}

.news-paper-article>.wrap-news-paper-article article {
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: 0.2em;
}

.news-paper-article .wrap-news-paper-image {
    position: relative;
}

.news-paper-article .wrap-news-paper-image>.overlay-image {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    cursor: pointer;
}

.news-paper-article .wrap-news-paper-image>.overlay-image:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.news-paper-article .wrap-news-paper-image>.overlay-image>.nav-image {
    position: absolute;
    bottom: 5px;
    right: 5px;
    z-index: 99;
    border-radius: 5px;
    line-height: 1.0;
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.7);
    color: #333333;
    padding: 3px 5px 2px 5px;
    font-size: 0.9rem;
}

.news-paper [title-position],
.news-paper [subject-position],
.news-paper [image-position],
.news-paper [article-position] {
    cursor: pointer;
}

.news-paper [title-position]:hover,
.news-paper [subject-position]:hover,
.news-paper [image-position]:hover,
.news-paper [article-position]:hover {
    opacity: 0.8;
}

.news-paper [title-position]:hover {
    border: 2px solid var(--main-color);
}

/* 新聞編集ブロック */
.news-paper .news-paper-article.long {
    min-height: 470px;
}

.news-paper .wrap-news-paper-article::after {
    content: '';
    clear: both;
}

.news-paper .wrap-news-paper-year {
    min-height: 470px;
    background-color: rgba(0, 0, 0, 0.2);
}

.news-paper[p="1"] .news-paper-name {
    order: 2;
    flex: 0 0 80px;
}

.news-paper[p="1"] .news-paper-article[article="1"] {
    order: 1;
    flex: 1 0 calc(100% - 80px - 5px);
}

.news-paper[p="1"] .news-paper-border-horizontal {
    order: 3;
}

.news-paper[p="1"] .news-paper-article[article="2"] {
    order: 4;
    flex: 1 1 100%;
}

.news-paper[p="1"] .news-paper-article[article="3"] {
    order: 6;;
    flex: 0.5;
}

.news-paper[p="1"] .news-paper-article[article="4"] {
    order: 5;
    flex: 0.5;
}

.news-paper[p="2"] .news-paper-article[article="1"] {
    order: 2;
    flex: 1 1 100%;
}

.news-paper[p="2"] .news-paper-article[article="2"] {
    order: 3;
    flex: 0.5 1;
}

.news-paper[p="2"] .news-paper-article[article="3"] {
    order: 2;
    flex: 0.5 1;
}

.news-paper[p="2"] .news-paper-border-horizontal {
    order: 3;
}

.news-paper[p="2"] .news-paper-article[article="4"] {
    order: 5;
    flex: 1 1 100%;
}

.news-paper[p="2"] .news-paper-article[article="5"] {
    order: 6;
    flex: 1 1 100%;
}

.news-paper[p="3"] .news-paper-article[article="1"] {
    order: 1;
    flex: 1 1 100%;
}

.news-paper[p="3"] .news-paper-article[article="2"] {
    order: 1;
    flex: 1 1 100%;
}

.news-paper[p="3"] .news-paper-border-horizontal {
    order: 2;
}

.news-paper[p="3"] .news-paper-article[article="3"] {
    order: 3;
    flex: 1 1 100%;
}

.news-paper[p="3"] .news-paper-article[article="4"] {
    order: 3;
    flex: 1 1 100%;
}

.news-paper[p="4"] .news-paper-article[article="1"] {
    order: 2;
    flex: 0.5;
}

.news-paper[p="4"] .news-paper-article[article="2"] {
    order: 1;
    flex: 0.5;
}

.news-paper[p="4"] .news-paper-border-horizontal {
    order: 3;
}

.news-paper[p="4"] .news-paper-article[article="3"] {
    order: 4;
    flex: 1 1 100%;
}

.news-paper[p="4"] .news-paper-article[article="4"] {
    order: 5;
    flex: 1 1 100%;
}



.server-error {
    background-color: var(--bg-main-color);
    padding: 100px 10px;
    text-align: center;
}

.server-error>.code {
    font-size: 5rem;
    font-weight: bold;
}

.server-error>.message {
    font-size: 2rem;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 1);
}

.server-error>.guidance {
    margin-top: 20px;
}

.server-error>.guidance>a::before {
    font: var(--fa-solid);
    content: "\f015";
    margin-right: 5px;
}
