/* レスポンシブデザイン */
/* スマホ */
@media (max-width: 599px) {
    :root {
        --box-width: 1000px;
    }
    /* 最大幅制限 */
    .width-limited{
        box-sizing: border-box;
        max-width: var(--box-width);
        padding: 0.5rem 1rem;
    }
    .history-section4 {
        padding: 0 1rem;
    }
    .none-sm {
        display: none;
    }
}

/* タブレット */
@media (min-width: 600px) and (max-width: 1023px) {
    :root {
        --box-width: 1000px;
        font-size: 20px;
    }
    /* 最大幅制限 */
    .width-limited{
        width: 100%;
        box-sizing: border-box;
        max-width: var(--box-width);
        margin: 0 auto;
        padding: 0.5rem 3rem 2rem 3rem;
    }
    .history-section4 {
        padding: 0 3rem;
    }
    .none-md {
        display: none;
    }
}

/* PC */
@media (min-width: 1024px) {
    :root {
        --box-width: 1400px;
        font-size: 22px;
    }
    /* 最大幅制限 */
    .width-limited{
        width: 100%;
        box-sizing: border-box;
        max-width: var(--box-width);
        margin: 0 auto;
        padding: 0.5rem 3rem 2rem 3rem;
    }
    .history-section4 {
        padding: 0 3rem;
    }
    .none-lg {
        display: none;
    }
}

.width-limited {
    background-color: white;
}

/* 自動スクロール時のスムージング */
@media (prefers-reduced-motion: no-preference) {
    :root {
        scroll-behavior: smooth;
    }
}

/* 変数設定 */
:root {
  --main-color: #0066CC;
  --main-color-light: #add6ff;
  --main-color-transparent: #0066cc7c;
  --background-color: rgb(201, 235, 255);
}

body {
    font-family: "游ゴシック体", "Yu Gothic", "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    margin: 0;
}

/* ヘッダー */
.header-button{
    position: relative;
    background: linear-gradient(
        to bottom,
        #ffffff 0%,
        #f7f7f7 45%,
        #dddddd 65%,
        #b0b0b0 85%,
        #8a8a8a 100%
    );
    
    margin-bottom: -2px;
    padding: 0.5rem 1rem 0.5rem 1rem;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    color: black;
    border-bottom: 2px transparent solid;

    transition:
        all 0.2s ease-out;
}
.header-button:hover{
    border-bottom: 2px var(--main-color) solid;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    background: linear-gradient(
        to bottom,
        #ececec 25%,
        #dddddd 45%,
        #b0b0b0 70%,
        #6f6f6f 100%
    );
}
.header-button:before {
    content: "";
    position: absolute;
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    top: 0.25rem;
    bottom: 0.25rem;
    left: 0;
    right: 0;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.2s ease-out;
}
.header-button:hover::before {
    opacity: 1;
}
.header-button:nth-child(1)::before {
    background-image: url(../img/icon-home.svg);
}
.header-button:nth-child(2)::before {
    background-image: url(../img/icon-footprint-white.svg);
}
.header-button:nth-child(3)::before {
    background-image: url(../img/icon-cloud-lightning-rain-white.svg);
}
.header-button:nth-child(4)::before {
    background-image: url(../img/icon-pen-white.svg);
}
.header-button:nth-child(5)::before {
    background-image: url(../VR/img/icon-binoculars-white.svg);
}
.header-button div {
    position: relative;
    z-index: 20;
}
footer {
    border-top: 2px gray solid;
    padding: 0.5rem;
    font-size: 0.75rem;
}

/* ヘッダー */
.header {
    border-bottom: 2px gray solid;
    padding: 0rem 1rem 0rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background-color: white;
    overflow: hidden;
    line-height: 1.5;

    position: sticky;
    top: 0;
    z-index: 100;
    print-color-adjust: exact;
}
.header .logo {
    height: 3rem;
    width: 5rem;
    background-image: url(../img/header_icon.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    print-color-adjust: exact;
}

/* ハンバーガーアイコン */
.menu-toggle {
width: 30px;
height: 22px;
display: flex;
flex-direction: column;
justify-content: space-between;
background: none;
border: none;
cursor: pointer;
padding: 0;
margin-bottom: 5px;
}

.menu-toggle .bar {
width: 100%;
height: 3px;
background: #333;
transition: 0.3s;
}

/* × に変形 */
.header.open .menu-toggle .bar:nth-child(1) {
transform: translateY(9px) rotate(45deg);
}

.header.open .menu-toggle .bar:nth-child(2) {
opacity: 0;
}

.header.open .menu-toggle .bar:nth-child(3) {
transform: translateY(-9px) rotate(-45deg);
}

/* メニュー */
.menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    height: 0;
    pointer-events: none;
    transform: translateY(-10px);

    gap: 0.25rem;

    transition: height 0.5s ease-out;
}

/* 開いたときフェードイン */
.header.open .menu {
    opacity: 1;
    height: fit-content;
    pointer-events: auto;
    transform: translateY(0);
}

/* PCサイズではハンバーガー非表示 */
@media (min-width: 849px) {
    .menu-toggle {
        display: none;
    }
    .menu {
        opacity: 1;
        height: fit-content;
        pointer-events: auto;
        transform: none;
        flex-direction: row;
    }
    .header {
        align-items: end;
        flex-wrap: wrap;
    }
}

/* タイトルとボタン */
#slideshow {
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 50;
}

.main-title-box {
    margin: 0 auto;
    padding: 0rem 1rem;
    min-height: 80vh;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: column;

    background-image: url(../img/office-cherry_blurred.JPG);
    background-position: center;
    background-size: cover;
    
    overflow: hidden;
}
/* トップページのスライドショー */
.slide {
    position: absolute;
    inset: -10px;

    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    filter: blur(5px);
    transform: scale(1.05);

    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;

    print-color-adjust: exact;
}

.slide.active {
    opacity: 1;
}

.main-title {
    font-size: 2.5rem;
    text-align: center;
    font-weight: bold;
    margin-top: 1rem;
    margin-bottom: 2rem;
    z-index: 10;
}
.sub-title {
    font-size: 1.25rem;
    text-align: center;
    font-weight: bold;
    background-color: black;
    color: white;
    background-color: rgba(255, 255, 255, 0.75);
    color: black;

    width: fit-content;
    padding: 0.25em 1em;
    margin: 0 0 2rem 0;
    font-size: clamp(1rem, 2.5cqw, 1.3rem);
    z-index: 10;
    border-radius: 999px;
}

.main-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    z-index: 10;
}
.main-button{
    background-color: rgba(255, 255, 255, 0.75);
    border: 2px white solid;
    border-radius: 0.5rem;
    margin: 0.5rem 1rem 0.5rem 1rem;
    padding: 0.5rem 1rem 0.5rem 1rem;
    font-size: 1.2rem;
    text-align: center;
    text-decoration: none;
    color: black;
    font-weight: bold;

    transition: all 0.2s ease-out;
}
.main-button .none-sm {
    width: 9rem;
}
.main-button .none-lg {
    width: 12rem;
}
.main-button .none-lg img {
    margin-right: 0.5rem;
}
.main-button:hover{
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* コンテンツボックス */
.main-content-box{
    background-size: cover;
}
body {
    background-color: var(--background-color);
}

/* テキスト書式設定 */
.text-left{
    text-align: left;
}
.text-center{
    text-align: center;
    text-indent: 0;
}
.text-right{
    text-align: right;
}
.no-indent {
    text-indent: 0;
}
.text-red {
    color: red;
}
.text-blue {
    color: blue;
}
.text-bold {
    font-weight: bold;
}

/* 目次 */
.index {
    background: rgba(255, 106, 0, 0.1);
    border: 2px gray solid;
    border-radius: 0.5rem;
    box-sizing: border-box;
    width: 30rem;
    max-width: 100%;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 0rem 0.5rem 0.5rem 0rem;
}
.index::before {
    display: block;
	content: "本ページの内容";
    margin: 0.25rem 0rem;
    padding-right: 1rem;
    text-align: center;
    width: 100%;
}
ol {
    padding: 0rem 0.5rem 0rem 2rem;
    margin: 0rem;
}
.index ol li {
    color: var(--main-color);
    margin-bottom: 0.2rem;
}
ol li a {
    color: var(--main-color);
    text-decoration: underline;
    text-underline-offset: 0.2rem;
    text-decoration-color: gray;
    text-decoration-thickness: 1px;
}
ol li a:hover {
    color: black;
}
/* 番号形式を公文書形式に */
.toc ol {
  list-style: none;
}

/* ▼ 第1階層：１，２，３ …（全角数字） */
.toc > ol {
  counter-reset: lv1;
}
.toc > ol > li {
  counter-increment: lv1;
  position: relative;
  left: 0.5rem;
}
.toc > ol > li::before {
  content: counter(lv1, fullwidth) "．";
  position: absolute;
  left: -3rem;
  width: 3rem;
  text-align: right;
}

/* ▼ 第2階層：ア，イ，ウ …（カタカナ） */
.toc ol ol {
  counter-reset: lv2;
}
.toc ol ol > li {
  counter-increment: lv2;
  position: relative;
}
.toc ol ol > li::before {
  content: "（" counter(lv2, fullwidth) "）";
  position: absolute;
  left: -3rem;
  width: 3rem;
  text-align: right;
}

/* ▼ 第3階層：（１），（２）…（全角数字＋カッコ） */
.toc ol ol ol {
  counter-reset: lv3;
}
.toc ol ol ol > li {
  counter-increment: lv3;
  position: relative;
}
.toc ol ol ol > li::before {
  content: counter(lv3, katakana) "．";
  position: absolute;
  left: -3rem;
  width: 3rem;
  text-align: right;
}

/* ▼ 第4階層：（ア），（イ）…（カタカナ＋カッコ） */
.toc ol ol ol ol {
  counter-reset: lv4;
}
.toc ol ol ol ol > li {
  counter-increment: lv4;
  position: relative;
}
.toc ol ol ol ol > li::before {
  content: "（" counter(lv4, katakana) "）";
  position: absolute;
  left: -3rem;
  width: 3rem;
  text-align: right;
}

/* ▼ 第5階層：a, b, c …（半角アルファベット小文字） */
.toc ol ol ol ol ol {
  counter-reset: lv5;
}
.toc ol ol ol ol ol > li {
  counter-increment: lv5;
  position: relative;
}
.toc ol ol ol ol ol > li::before {
  content: counter(lv5, lower-alpha) "．";
  position: absolute;
  left: -3rem;
  width: 3rem;
  text-align: right;
}

/* 表書式設定 */
table {
    border-collapse: collapse;
    width: 80%;
    margin: 0.5rem auto;
    font-size: 0.8rem;
    border: 2px solid gray;
    /* 改行禁止 */
    word-break: keep-all;
    overflow-wrap: normal;
}
.wrappable {
    word-break: normal;
    overflow-wrap: break-word;
}
table thead {
    border-bottom: 2px solid gray;
}
table th {
    border-right: 2px solid gray;
    background-color: rgb(219, 219, 219);
    font-weight: normal;
}
table thead tr {
    background-color: rgb(219, 219, 219);
    text-align: center;
}
table tbody tr:hover {
    background-color: rgb(219, 219, 219);
}
table tbody tr th, table tbody tr td, table tfoot td {
    border: 2px solid gray;
}
table thead tr td {
    background-color: rgb(219, 219, 219);
    text-align: center;
    border-right: 2px solid gray;
    border-top: 2px solid gray;
}
table tfoot tr {
    border-top: 2px solid gray;
}
th, td {
    padding: 0.25rem;
}
/* tdの数字を右寄せ */
.td-text-right td {
    text-align: right;
}

/* スクロール可能 */
.table-scrollable {
    -webkit-overflow-scrolling: touch;
    overflow-x: scroll;
    overflow-y: hidden;
    scrollbar-gutter: stable;
    padding-bottom: 5px;
}

.table-scrollable th {
    position: sticky;
    left: 0;
    z-index: 10;
    border: 2px solid gray;
    box-shadow: 2px 0px 10px 5px rgba(0,0,0,0.12);
}
/* リンク付加の際の書式設定無効化 */
a.no-dec {
    text-decoration: none;
    color: black;
}
a.dec-link {
    text-decoration: underline 1px var(--main-color);
    color: var(--main-color);
}
/* 動画へのリンク */
.movie-link {
    background-image: url(../img/movie_icon.svg);
    background-repeat: no-repeat;
    background-size: auto 75%;
    background-position: 0.25rem 30%;
    padding-left: 1.5rem;

    print-color-adjust: exact;
}

h1 {
    position: relative;
    margin: 5rem 0;
    font-size: 2rem;
    text-align: center;    
    color: white;
    z-index: 2;
}
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 0.5rem;

    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 20px 10px gray;

    print-color-adjust: exact;
    
    position: relative;
    z-index: 1;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* ヒーロ右下のボタン */
.tool-btns {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}
#btn-print-hd, #btn-change-calendar-mode {
    height: 1.6rem;
    width: 2.2rem;

    border-radius: 0.25rem;
    border: none;
    box-shadow: 0 0 10px 3px rgba(255, 255, 255, 0.75);

    background-color: rgba(0, 0, 0, 0.5);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: auto 80%;

    cursor: pointer;
    transition: all 0.2s ease-out;
}
#btn-print-hd:hover, #btn-change-calendar-mode:hover {
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.8);
}
#btn-print-hd::after, #btn-change-calendar-mode::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 120%;

    font-size: 0.65rem;
    line-height: 1.4;
    white-space: nowrap;
    background: white;
    color: black;
    padding: 0.1rem 0.2rem;
    border-radius: 4px;
    border: solid 1px gray;

    box-shadow: 0 0 3px rgba(83, 83, 83, 0.5);

    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
#btn-print-hd:hover::after, #btn-change-calendar-mode:hover:after {
    opacity: 1;
}
/* 高画質で印刷するボタン */
#btn-print-hd {
    background-image: url(../img/icon-printer.svg);
}
#btn-print-hd::after {
    content: "このページを印刷";
}
@media (max-width: 599px) { /* スマホでは高画質印刷によりデータ通信増加防止のため、非表示 */
    #btn-print-hd {
        display: none;
    }
}
/* 和暦を西暦に変換するボタン */
#btn-change-calendar-mode.now-wareki {
    background-image: url(../img/icon-wareki.png);
}
#btn-change-calendar-mode.now-seireki {
    background-image: url(../img/icon-seireki.png);
}
#btn-change-calendar-mode.now-wareki::after {
    content: "和暦を西暦に変換（現在の表示：和暦）";
}
#btn-change-calendar-mode.now-seireki::after {
    content: "西暦を和暦に変換（現在の表示：西暦）";
}

/* タイトルの装飾 */
h2, h3, h4, h5, h6 {
    display: flex;
    justify-content: start;
    align-items: stretch;
    margin: 0 0 0.5em 0;
    padding: 0;
    text-decoration: none;
    border-radius: 0.5rem 0 0 0.5rem;
    overflow: hidden;
    print-color-adjust: exact;
}
h2 > span, h3 > span, h4 > span, h5 > span, h6 > span {
    display: block;
    border-bottom-width: 3px;
}
h2 > .number, h3 > .number, h4 > .number, h5 > .number, h6 > .number {
    padding: 0.2em 0.5em;
    color: white;
}
h2 > .section-title,
h3 > .section-title,
h4 > .section-title,
h5 > .section-title,
h6 > .section-title {
    padding: 0.2em 0.75em 0.2em 0.5em;
    flex-grow: 1;
}
h2, h3 {
    width: auto;
}
h2 > .section-title,
h3 > .section-title {
    color: var(--main-color);
    border-color: var(--main-color);
    background-color: var(--background-color);
}
h2 > .number, h3 > .number {
    background-color: var(--main-color);
}
h4, h5, h6 {
    width: fit-content;
}
h4 > .number, h5 > .number {
    background-color: indianred;
}
h4 > .section-title,
h5 > .section-title{
    color: indianred;
    border-color: indianred;
    background-color: rgb(255, 234, 232);
}
h2 > .section-title, h4 > .section-title, h6 > .section-title {
    border-bottom-style: solid;
}
h3 > .section-title, h5 > .section-title {
    border-bottom-style: dashed;
}
h6 > .number {
    background-color: rgb(112, 54, 28);
}
h6 > .section-title {
    color: rgb(112, 54, 28);
    border-color: rgb(112, 54, 28);
    background-color: rgb(223, 189, 172);
}
h2 {
    font-size: 1.5rem;
}
h3 {
    font-size: 1.3rem;
}
h4 {
    font-size: 1.2rem;
}
h5 {
    font-size: 1rem;
}
h6 {
    font-size: 1rem;
}

p {
    margin: 0 0 0.5rem 0;
    text-indent: 1rem;
    line-height: 1.3;
}

/* 画像 */
.img-block {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 15rem;
}
.img-xx-large {
    max-height: 40rem;
}
.img-large {
    max-height: 20rem;
}
.img-small {
    max-height: 10rem;
}
.img-s-small {
    max-height: 5rem;
}
.img-QR {
    height: 5rem;
    width: 5rem;
}
.img-logo {
    height: 2.5rem;
}
.img-rem {
    height: 1em;
}
/* キャプション */
.caption {
    text-align: center;
    text-indent: 0;
    font-size: 0.8rem;
    margin: 0.3rem 0 0 0;
    line-height: 1.3;
}
.figno, .tableno, .movieno {
    font-size: 85%;
    position: relative;
    top: -0.1em;
    background-color: gray;
    color: white;
    border-radius: 0.25em;
    margin-right: 0.1em;
    margin-left: 0.1em;
    padding: 0 0.35em;
    print-color-adjust: exact;
}
.caption .figno, .caption .tableno, .caption .movieno,
.modal-header .figno, .modal-header .tableno, .modal-header .movieno {
    margin-right: 0.5em;
}
/* キャプション注記 */
.location, .cameraman, .shoot-datetime, .citation {
    display: inline-block;
    position: relative;

    width: fit-content;
    margin: 0.1rem;
    padding: 0.1rem 0.5rem 0.1rem 1.25rem;
    text-align: center;
    font-size: 0.7rem;
    line-height: 1.3;
    background-size: 0.7rem;
    background-repeat: no-repeat;
    background-position: 0.3rem center;
    
    background-color: rgb(229, 229, 229);
    border-radius: 0.25rem;
    z-index: 60;

    print-color-adjust: exact;
}
/* キャプション各項目の個別設定 */
.location {
    background-image: url(../img/icon-location.svg);
}
.cameraman {
    background-image: url(../img/icon-camera.svg);
}
.shoot-datetime {
    background-image: url(../img/icon-calendar.svg);
}
.citation {
    background-image: url(../img/icon-citation.svg);
}
/* キャプション注記のツールチップ */
.location::after, 
.cameraman::after, 
.shoot-datetime::after, 
.citation::after {
    content: "";
    position: absolute;
    left: 0;
    top: 120%;

    font-size: 0.65rem;
    white-space: nowrap;
    background: white;
    color: black;
    padding: 0.1rem 0.2rem;
    border-radius: 4px;
    border: solid 1px gray;

    box-shadow: 0 0 3px rgba(83, 83, 83, 0.5);

    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
.location:hover::after, 
.cameraman:hover::after, 
.shoot-datetime:hover::after, 
.citation:hover::after {
    opacity: 1;
}
.location::after{
    content: "場所";
} 
.cameraman::after{
    content: "撮影者";
}
.shoot-datetime::after{
    content: "撮影日時";
}
.citation::after {
    content: "引用元";
}

/* 画像番号付け */
.img1, .img2, .img3, .img4 {
position: relative;
}
.img1::after, .img2::after, .img3::after, .img4::after {
    content: "";
    position: absolute;
    left: -1.25rem;
    top: 0.5rem;

    font-size: 0.8rem;
    white-space: nowrap;
    color: black;
}
.img1::after {
content: "①";
}
.img2::after {
content: "②";
}
.img3::after {
content: "③";
}
.img4::after {
content: "④";
}
/* 画像ダウンロードボタン */
.img-wrap {
    position: relative;
    display: inline-block;
    height: fit-content;
    width: fit-content;
}
.hd-btn {
    position: absolute;
    right: 0.25rem;
    bottom: 0.25rem;
    z-index: 10;

    opacity: 0;
    transition: opacity .2s;
}
.img-wrap:hover .hd-btn {
    opacity: 1;
}
.hd-btn img {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    transition: all 0.3s;
    opacity: 0.4;
    filter: 
        drop-shadow(0 0 4px rgba(255,255,255,1))
        drop-shadow(0 0 8px rgba(255,255,255,0.8))
        drop-shadow(0 0 12px rgba(255,255,255,0.6));
}

.hd-btn:hover img {
    opacity: 1;
    filter: 
        drop-shadow(0 0 4px rgba(255,255,255,1))
        drop-shadow(0 0 8px rgba(255,255,255,0.8))
        drop-shadow(0 0 10px rgba(255,255,255,0.6));
    cursor: pointer;
}
/* ダウンロードのツールチップ */
.hd-btn::after {
    content: "高画質で見る";
    position: absolute;
    right: 0;
    bottom: 110%;

    font-size: 0.6rem;
    white-space: nowrap;
    background: rgba(0,0,0,.8);
    color: #fff;
    padding: 0.2rem 0.25rem;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.75);

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.hd-btn:hover::after {
    opacity: 1;
}

/* 画像表示 */
.img-box {
    background-color: white;
    text-align: center;
}
.img-flexbox {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1rem;
}

/* 埋め込み動画のiframe用 */
.movie-wide, .movie-std {
    max-height: 15rem;
    width: 100%;
}
.movie-wide {
    aspect-ratio: 16 / 9;
}
.movie-std {
    aspect-ratio: 4 / 3;
}
.movie-wide iframe,
.movie-std iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* 脚注 */
/* 脚注リンクのスタイル */
.footnote-link {
    color: blue;
    cursor: pointer;
    text-decoration: underline;
    position: relative;
}
/* 脚注の基本スタイル */
.footnote-popup {
    display: none;
    position: absolute;
    background-color: white;
    color: #333;
    padding: 1rem 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    max-width: 30rem;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    animation: fadeIn-footnote 0.3s forwards;
}
@keyframes fadeIn-footnote {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 特集・災害事例 */
.topic-box-align {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.topic-box-outer {
    border: 3px solid gray;
    background-color: rgb(190, 190, 190);
    border-radius: 0.5rem;
    margin: 0.5rem;
    width: 20rem;
    height: 10rem;
    background-size: cover;
    background-position: center;
    print-color-adjust: exact;
}
.topic-box-outer a {
    text-decoration: none;
}
.topic-box-inner {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-weight: bold;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 2rem;

    transition: background-color 0.1s ease-in-out;
}
.topic-box-inner:hover {
    background-color: rgba(119, 119, 119, 0.5);
}
.topic-title {
    text-align: center;
    font-size: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
}
.topic-age {
    margin-top: 0.25rem;
    text-align: center;
}

/* コラム */
.column-box-align {
    padding-left: 1rem;
    padding-right: 1rem;
}
.column-box-align a {
    text-decoration: none;
    color: black;
}
.column-box-outer, .column-box-outer-full {
    border: 1px solid gray;
    box-shadow: 0 0 5px 1px gray;
    background-color: var(--main-color-transparent);
    border-radius: 0.5rem;
    padding: 0.5rem;
    box-sizing: border-box;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.column-box-outer {
    margin: 0.5rem;
    transition: opacity 0.1s ease-in-out;
}
.column-box-outer:hover {
    opacity: 0.8;
}
.column-box-outer-full {
    margin: 0.5rem 0rem;
}
.author-img {
    display: block;
    width: 5rem;
    box-sizing: border-box;
}
.column-box-inner {
    height: 100%;
    flex-grow: 1;
    box-sizing: border-box;
}
.column-title {
    text-align: left;
    font-size: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 0.5rem;
}
.column-author {
    text-align: left;
    margin-top: 0.5rem;
}
.column-author-full {
    font-size: 1.25rem;
    font-weight: bold;
    padding-bottom: 0.5rem;
}
.column-author-affiliation-full {
    font-size: 1rem;
    font-weight: normal;
    border-top: 2px solid whitesmoke;
    padding-top: 0.5rem;
}
.column-author-affiliation {
    font-size: 0.8rem;
    text-align: left;
    font-weight: normal;
}

/* その他書式設定 */
.margin-bottom {
    margin-bottom: 1rem;
}

.border-line {
    border: solid 1px black;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin: 0;
}
.icon-p {
    height: 1.5em;
    vertical-align: middle;
    margin-right: 0.25em;
}
.mt-0 {
    margin-top: 0;
}
.mt-05 {
    margin-top: 0.5;
}
.mt-1 {
    margin-top: 1rem;
}
.mt-2 {
    margin-top: 2rem;
}
.mt-3 {
    margin-top: 3rem;
}

.mb-0 {
    margin-bottom: 0;
}
.mb-1 {
    margin-bottom: 0.5rem;
}
.mb-2 {
    margin-bottom: 1rem;
}
.mb-3 {
    margin-bottom: 1.5rem;
}
.mb-4 {
    margin-bottom: 2rem;
}
.mb-5 {
    margin-bottom: 2.5rem;
}
.ms-0 {
    margin-left: 0;
}
.ms-1 {
    margin-left: 1rem;
}
.ms-2 {
    margin-left: 2rem;
}
.ms-3 {
    margin-left: 3rem;
}
.ms-4 {
    margin-left: 4rem;
}
.ms-5 {
    margin-left: 5rem;
}
.me-0 {
    margin-right: 0;
}
.me-05 {
    margin-right: .5rem;
}
.me-1 {
    margin-right: 1rem;
}
.me-2 {
    margin-right: 2rem;
}
.me-3 {
    margin-right: 3rem;
}
.me-4 {
    margin-right: 4rem;
}
.me-5 {
    margin-right: 5rem;
}
/* キャッチフレーズ */
#opening-message {
  width: 100%;
  max-width: var(--box-width);
  margin: 0 auto;
  margin-top: 0;
  padding-top: 5rem;
  padding-bottom: 1rem;

  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 1) 5%,
    rgba(255, 255, 255, 0) 30%
    ),
    url(../history/history_before_establishment/img/rising_sun.JPG);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom;

  text-align: center;

  print-color-adjust: exact;
}
#opening-message p {
  font-size: 1rem;
  font-weight: bold;
  margin: 0 1rem 2rem 1rem;
}

.btn-next-timeline {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;

    height: 12rem;
    width: 12rem;

    background-color: #ffffffb8;
    border-radius: 999px;
    border: 2px solid gray;
    box-shadow: 0 0 30px 15px rgba(255, 255, 255, 0.712);
    
    color: rgb(57, 57, 57);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: bold;

    transition: all 0.25s ease-out;
}
.btn-next-timeline > img {
    display: block;
    height: 3rem;
    width: auto;
}
.btn-next-timeline:hover {
    background-color: #ffffffe0;
    transform: scale(1.1);
}

.history-section4 {
    margin: 15rem 0 2rem 0;
    text-align: left;
    color: white;
    print-color-adjust: exact;
}
.history-section4 a, .history-section4 a:visited {
    color: white;
}
.history-section4 > h2 > .number {
    background-color: white;
    color: rgb(173, 54, 11);
}
.history-section4 > h2 > .section-title {
    color: white;
    border-bottom-color: white;
    background-color: transparent;
}

/* headerのスクロール高さ調整 */
:root {
    --header-height: 0px; /* JS で更新 */
}
[id] {
    scroll-margin-top: var(--header-height);
}

/* パンくずリスト */
.breadcrumb {
    position: relative;
    z-index: 2;
    width: fit-content;
    font-size: 1rem;
	display: flex;
	flex-wrap: wrap;
	list-style: none;
    background-color: rgba(255, 255, 255, 0.75);
    border-radius: 0.5rem;
    padding: 0.25rem 1rem;
    margin: 0rem 0rem 1rem 0rem;
    color: black;
    print-color-adjust: exact;
}
.breadcrumb li::after {
	content: ">";
	margin: 0.5rem;
    color: black;
}

/* 普通のボタン */
.btn-normal {
    text-decoration: none;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(0,0,0,.2);
    background: #f8f9fa;
    color: inherit;
    padding: .375rem .75rem;
    border-radius: .375rem;
    cursor: pointer;
}
.btn-normal:hover {
    box-shadow: 0 0 0.3rem 0.05rem rgba(83, 83, 83, 0.5);
    background: #f8f9fa;
}

/* 記事送りボタン */
.change-article {
    width: 100%;
    min-height: 8rem;
    display: flex;
    justify-content: space-evenly;

    margin-top: 2rem;

    print-color-adjust: exact;
}
.change-article a {
    width: 49.5%;
    position: relative;

    overflow: hidden;
    box-shadow: 0 0 5px rgba(128, 128, 128, 0.75);
    transition: all ease-out 0.25s;
}
.change-article a:hover {
    box-shadow: 0 0 10px rgba(128, 128, 128);
}
a.btn-previous, a.btn-up {
    border-radius: 0.75rem 0 0 0.75rem;
}
a.btn-next, a.btn-down {
    border-radius: 0 0.75rem 0.75rem 0;
}
.change-article .btn-text {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    font-size: 1.25rem;
    color: gray;
    font-weight: bold;

    background-repeat: no-repeat;
    background-position-y: center;
    background-size: 4rem auto, 100% 100%;
}
/* 前へボタン */
.btn-previous > .btn-text,
.btn-up > .btn-text {
    left: 0;
    padding-left: 5rem;
    padding-right: 0.5rem;
    background-position-x: left 0.5rem;
}
.btn-previous > .btn-text {
    background-image:
        url(../img/icon-left-circle.svg),
        linear-gradient(
            to left,
            rgba(255,255,255,0.5) 0%,
            rgba(255,255,255,1) 70%
        );
}
.btn-up > .btn-text {
    background-image:
        url(../img/icon-up-circle.svg),
        linear-gradient(
            to left,
            rgba(255,255,255,0.5) 0%,
            rgba(255,255,255,1) 70%
        );
}
/* 次へボタン */
.btn-next > .btn-text,
.btn-down > .btn-text {
    right: 0;
    padding-right: 5rem;
    padding-left: 0.5rem;
    background-position-x: right 0.5rem;
    justify-content: flex-end;
}
.btn-next > .btn-text {
    background-image:
        url(../img/icon-right-circle.svg),
        linear-gradient(
            to right,
            rgba(255,255,255,0.5) 0%,
            rgba(255,255,255,1) 70%
        );
}
.btn-down > .btn-text {
    background-image:
        url(../img/icon-down-circle.svg),
        linear-gradient(
            to right,
            rgba(255,255,255,0.5) 0%,
            rgba(255,255,255,1) 70%
        );
}
.change-article .btn-thumbnail-img {
    position: absolute;
    top: 0;
    bottom: 0;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    transition: all 0.25s ease-out;
}
.btn-previous .btn-thumbnail-img,
.btn-up .btn-thumbnail-img {
    right: 0;
    left: 25%;
}
.btn-previous:hover > .btn-thumbnail-img,
.btn-up:hover > .btn-thumbnail-img {
    left: 15%;
}
.btn-next .btn-thumbnail-img,
.btn-down .btn-thumbnail-img {
    right: 25%;
    left: 0;
}
.btn-next:hover > .btn-thumbnail-img,
.btn-down:hover > .btn-thumbnail-img {
    right: 15%;
}

/* トップページの記事紹介ボタン */
.btn-content-link {
    width: 100%;
    min-height: 10rem;
    margin-top: 1rem;

    text-decoration: none;
    print-color-adjust: exact;

    overflow: hidden;
    box-shadow: 0 0 5px rgba(128, 128, 128, 0.75);
    transition: all ease-out 0.25s;
    border-radius: 0.75rem;

    display: flex;
}
.btn-content-link:hover {
    box-shadow: 0 0 10px rgba(128, 128, 128);
}
.btn-content-link > .btn-thumbnail-img {
    width: 30%;
    overflow: hidden;
    position: relative;
}
.btn-content-link > .btn-thumbnail-img > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex: none;
    background-size: cover;
    background-position: center;

    transition: all 0.25s ease-out;
}
.btn-content-link:hover > .btn-thumbnail-img > img {
    transform-origin: center center;
    transform: scale(1.1);
}

.btn-content-link .btn-text {
    width: 70%;
    color: black;

    padding: 0.5rem 1rem;
    
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: top;
    gap: 0.5rem;
}

.btn-text > .content-title {
    width: 100%;
    font-size: 1.25rem;
    font-weight: bold;
    border-bottom: solid 2px gray;
}
.btn-text > .content-explanation {
    font-size: 1rem;
    font-weight: normal;
    margin: 0 0 0.25rem 0;
    text-indent: 1rem;
}

/* 紙吹雪トリガ */
.confetti-btn {
    cursor: pointer;
}

/* ページ上部にスクロールするボタン */
/* 初期設定は非表示 */
#btn-to-top {
    display: block;
    position: fixed;
    background-color: var(--main-color-light);
    
    transition:
        opacity 0.5s ease-in-out,
        transform 0.5s ease-in-out,
        box-shadow 0.2s ease-in-out;
    opacity: 0;
    transform: translateX(6rem);

    height: 4rem;
    width: 8rem;
    bottom: 4rem;
    left: calc(100vw - 6rem - var(--scrollbar-width) );
    z-index: 400;
    border-radius: 1rem 0 0 1rem;
    box-shadow: 0 0 0.5rem 0.25rem rgba(128, 128, 128, 0.75);

    text-align: center;
    overflow: clip;

    caret-color: transparent;
}
/* 「上に戻る」の文字 */
#btn-to-top::before {
    content: "上にもどる";
    font-size: 0.75rem;
    font-weight: bold;
    margin-right: 2rem;
}
/* はれるんアイコン */
#btn-to-top::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0rem;
    left: 0rem;
    height: 100%;
    width: 6rem;
    transform: rotate(0deg);
    transform-origin: 50% 80%;

    background-image: url(../img/harerun_thumbsup.png);
    background-repeat: no-repeat;
    background-position: bottom 0rem left 0.6rem;
    background-size: 75%;
    
    transition:
        transform 0.2s ease-in-out;
}
#btn-to-top:hover {
    box-shadow: 0 0 0.5rem 0.4rem rgba(128, 128, 128);
    cursor: pointer;
}
#btn-to-top:hover::after {
    transform: rotate(10deg);
    transform-origin: 50% 80%;
}
/* Javascriptで設定した高さだけスクロールすると表示 */
#btn-to-top.show {
    opacity: 1;
    transform: translateX(0);
}

/* 紙吹雪エフェクトライセンス表示 */
#confetti-license {
  position: fixed;
  bottom: 0.5rem;
  right: 0.5rem;
  font-size: 0.5rem;
  color: gray;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.25rem;
  border-radius: 0.25rem;
  z-index: 9999;
  pointer-events: none;
  opacity: 1;
  transition: opacity 1s ease;
}
#confetti-license.fade-out {
  opacity: 0;
}

/* 画像ダウンロード時の待機表示 */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  justify-content: center;
  align-items: center;

  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);

  opacity: 1;
  visibility: visible;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}
.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}
.loading-overlay-content {
  text-align: center;
  transform: scale(1);
  transition: transform 0.3s ease;
}
.loading-overlay.hidden .loading-overlay-content {
  transform: scale(0.95);
}
.loading-overlay-message {
    color: white;
    font-size: 1rem;
}
.loading-overlay-spinner {
  width: 2rem;
  height: 2rem;
  margin: 0 auto 16px;

  border: 0.3rem solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: loading-spin 0.8s linear infinite;
}
@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}

/* 印刷用の書式設定 */
.display-only-print {
    display: none;
    margin: 0;
    padding: 0;
}
.footnote-for-print {
    display: none;
}
@media print {
    body {
        font-family: "游明朝体","Yu Mincho","ヒラギノ明朝 ProN","Hiragino Mincho ProN","MS P明朝","MS Mincho",serif;
    }
    .header {
        position: relative;
    }
    .header button, .menu a, footer, .breadcrumb, .change-article, .tool-btns, .movie-std, .movie-wide {
        display: none;
    }
    .btn-next-timeline {
        opacity: 0;
    }
    .img-shrunk-button {
        height: 0;
    }
    .main-title-box {
        min-height: calc(100vh - 4rem);
        print-color-adjust: exact;
    }
    #btn-to-top.show {
        opacity: 0;
    }
    .slide.active {
        background-image: url(../img/office-cherry_blurred.JPG);
    }
    a {
        text-decoration: none;
        color: black;
    }
    .footnote-link {
        text-decoration: none;
        color: black;
    }
    .display-only-print {
        display: inline-block;
    }
    .table-scrollable {
        width: 100%;
        overflow-x: visible;
        overflow-y: hidden;
    }
    .table-scrollable th {
        position:relative;
    }
    table {
        width: 100%;
        word-break: normal;
        overflow-wrap: normal;
    }
    .footnote-for-print {
        display: block;
        padding: 0.5rem 1rem;
        margin: 2rem 0 1rem 0;
        border-top: 2px dotted gray;
        border-bottom: 2px dotted gray;
    }
    .footnote-for-print > div {
        font-size: 0.8rem;
        padding-left: 3em;
        text-indent: -3em;
    }
}

