@charset "utf-8";
/* CSS Document */

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;300;400;500;700;900&display=swap");
@import url("/common4/css/header.css");
@import url("/common4/css/header_hide.css");
@import url("/common4/css/header_sp.css") screen and (max-width:960px);
@import url("common.css");
@import url("second.css");
@import url("common_sp.css") screen and (max-width:959px);
@import url("second_sp.css") screen and (max-width:959px);

/* =========================================================
   1. 変数定義（他のページから移植）
   ========================================================= */
:root {
    --main-color:#421554;
    --main-color2:#ece8ee;
    --main-color3:#c6b9cc;
    --accent-color:#ffc323;
    --accent-color2:#fff9e9;
    --black-color:#3a3a3a;
    --gray-color:#cacaca;
    --gray-color2:#e6e6e6;
    --gray-color3:#f2f2f2;
    --gray-color4:#222;
    --font-en: 'Roboto', sans-serif;
}

/* =========================================================
   2. basic setting & reset (上部に移動)
   ========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans JP","ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  font-size: 100%;
  line-height: 1.5em;
  color: #000;
  letter-spacing: 0.1em;
  box-sizing: border-box;
  word-break: break-all;
}

em,address {font-style: normal;}
hr {display: none;}
hr.hr {display: block;margin: 15px;}
img {border: none;vertical-align: middle;}
ul,ol {list-style: none;}
.clear {clear: both;}
.left {float: left;}
.right {float: right;}
.bold {font-weight: bold;}
.normal{font-weight:normal;}
.align_r {text-align: right;}
.align_l {text-align: left;}
.center {text-align: center;}
.valign_m{ vertical-align:middle!important;}
*+html .clear_fix {display: inline-block;}
* html .clear_fix {display: inline-block;}
.clear_fix:after {
  content:".";
    display: block;
    height:0px;
    clear:both;
    visibility:hidden;
}

button {border: none;background: none;transition: all 300ms 0s ease;}
button:hover {cursor: pointer;}

a {color: #3a3a3a;text-decoration:none;transition: 0.3s;}

/* =========================================================
   3. ERCA & ヘッダー・フッター共通パーツ
   ========================================================= */
#glnav2 li li a:hover,
#footer2 li a:hover{ text-decoration:underline;}

#glnav2 .close {
  display: block;
  float: none;
  background: none;
  padding: 0;
  width: 100%;
  position: absolute;
  bottom: 0;
  margin: 0;
  text-align: center;
  border-left: none;
}

#glnav2 .close a {
  display: block;
  background: #696969;
  padding: 15px;
  color: #fff;
  position: relative;
  bottom: 0;
  z-index: 999;
}

#glnav2 .close a img {
  width: 20px;
  height: 20px;
  margin: 0 5px;
}

#footer1 h2,
#footer1 .clear_fix p {
  margin: 20px;
  float: left;
}

#footer1 .clear_fix p {
  font-size: 90%;
  margin: 30px;
}

#footer1 h2 img {
  vertical-align: middle;
}

#footer1 .nav,
#footer1 .nav2 {
  font-size: 90%;
  padding: 30px 0;
}

#footer1 .nav2 {
  background: #D2E0F5;
  text-align: center;
}

#footer1 .nav {
  float: right;
}

#footer1 .nav li,
#footer1 .nav2 li {
  display: inline;
}

#footer1 .nav li a,
#footer1 .nav2 li a {
  background: none; /* 元の矢印画像を消す */
  padding: 0 20px 0 15px; /* 三角形を置くための左余白を調整 */
  position: relative; /* 三角形を絶対配置するための基準にする */
}

/* ▼ 新しく追加：黄色い三角を作る魔法のコード ▼ */
#footer1 .nav li a::before,
#footer1 .nav2 li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em; /* 縦位置（フッターの文字サイズに合わせて微調整） */
  width: 0;
  height: 0;
  border-style: solid;
  /* 本文の三角より少しだけ小さく設定しています */
  border-width: 5px 0 5px 7px; 
  border-color: transparent transparent transparent #FFD700;
}

#footer1 #copy {
  background: #5F5F5F;
  text-align: center;
  color: #fff;
  font-size: 85%;
  overflow: hidden;
}

/* =========================================================
   ページトップボタン（CSSで描画）
   ========================================================= */
#footer1 #copy #pagetop {
  float: right;
  display: block;
  position: relative;
  width: 60px;  /* ボタンの幅 */
  height: 60px; /* ボタンの高さ */
  background-color: #002D70 !important; /* 濃い青（ERCAカラー） */
  transition: opacity 0.3s;
}

#footer1 #copy #pagetop:hover {
  opacity: 0.8;
}

#footer1 #copy #pagetop:focus {
  outline: dotted 1px #ccc;
}

/* 元の画像を非表示にする */
#footer1 #copy #pagetop img {
  display: none;
}

/* 矢印のパーツ1：縦線 */
#footer1 #copy #pagetop::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 45%; /* 中央より少し左に寄せる */
  transform: translate(-50%, -50%);
  width: 2px;       /* 線の太さ */
  height: 24px;     /* 線の長さ */
  background-color: #fff; /* 白色 */
}

/* 矢印のパーツ2：右下への斜め線 */
#footer1 #copy #pagetop::after {
  content: "";
  position: absolute;
  top: calc(50% - 12px); /* 縦線の上端に合わせる */
  left: calc(45% - 1px); /* 縦線の中心からスタート */
  width: 14px;      /* 斜め線の長さ */
  height: 2px;      /* 線の太さ */
  background-color: #fff;
  transform-origin: top left; /* 左上を軸にする */
  transform: rotate(45deg);   /* 時計回りに45度傾けて右下へ向かわせる */
}

#footer1 #copy p {
  margin-top: 22px;
  display: inline-block;
}

#footer1 #copy:after {
  content:".";
    display: block;
    height:0px;
    clear:both;
    visibility:hidden;
}

.outline {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  padding: 0 2rem;
}

.pc {display: block;}
.sp {display: none;}

@media screen and (max-width: 1050px) {
  body { font-size: 90%; }
}

#header2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

#header2 .logo { margin: 1rem; }
#header2 .logo img { width: 80%; max-width: 100%; }

#glnav2 #gl_main{
    display: flex;
    justify-content: flex-end;
    align-items: center;
  border-bottom: 1px solid var(--gray-color);
    padding: 0;
}

#glnav2 #gl_main > li > a {
  display: block;
    margin: 0 1rem;
    font-size: 1.1rem;
    padding: 1.5rem 1rem;
}

#glnav2 #gl_sub { display: flex; justify-content: flex-end; }

#glnav2 #gl_sub li > a {
  display: block;
    margin: 0 0 0 1rem;
  padding: 1rem;
  background:url("../img/common/arrow001.svg") no-repeat;
    background-size: 7px;
  background-position: 0 1.4rem;
}

#glnav2 li#gl_munici > a,
#contents #gl_munici > a {
  padding: 0.7rem 0.7rem 0.7rem 3rem;
  border-radius: 5px;
  background-color: var(--accent-color);
  background-image: url(../img/common/icon_municipality.svg);
    background-repeat: no-repeat;
  background-size: 2rem;
  background-position: 0.7rem center;
    white-space: nowrap;
  text-decoration: none;
}

#contents #gl_munici > a {
  background-image: url(../img/common/icon_map.svg);
}

#glnav2 li#gl_munici > a:focus {border:dotted 1px !important;}

@media screen and (max-width: 959px){
#header2, #glnav2 #gl_main, #glnav2 #gl_sub{ justify-content: center; }
#header2 #glnav2{ width: 100%; } 
}

#glnav2 .nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

#glnav2 .nav-banner img { width: 320px; height: auto; }
#glnav2 .nav-links { display: flex; flex-direction: column; flex-grow: 1; }

@media screen and (max-width: 1210px) {
#glnav2 .nav-wrapper { flex-direction: column; align-items: flex-start; }
#glnav2 .nav-links { width: 100%; align-items: center; }
#glnav2 .nav-banner { margin: 1rem; }
}

#footer2 {
  background: #002D70;
  color: #fff;
  background-size: contain;
    padding: 0 0 2rem;
    margin-top:3em;
}
#footer2 h2 { padding: 40px 0; text-align: center; position: relative; font-size: 110%; }
#footer2 address { text-align: center; line-height: 1.8em; font-size: 80%;}

/* =========================================================
   4. 新規ページ固有のスタイル（最後に配置）
   ========================================================= */
.top-bar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 10px;
    background-color: #fff;
}

.top-bar-title {
    font-size: 25px;
    font-weight: bold;
    color: #333;
}

#contents {
    max-width: 1400px;
    margin: 0 auto;
    color: #333;
    font-family: "Noto Sans JP", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}

#panav {
    font-size: 14px;
    background: #f2f8df;
}

#panav ul {
    max-width: 1400px;
    list-style: none;
    padding: 1em;
    margin: 0 auto;
    display: flex;
    position: relative;
}

#panav ul:after {
  content: ".";
  display: block;
  clear: both;
  height: 0;
  visibility: hidden;
}

#panav li {
    display: inline;
    margin-left: 1em;
}

#panav li a,
#panav li em {
    margin-right: 1em;
}

#panav li a {text-decoration: underline;}
#panav li a:hover { text-decoration: none; }
#panav li em {font-weight: bold;}

.main-visual {
    background: linear-gradient(90deg, #F9D423 0%, #88C04A 15%, #004ba0 40%, #001A4D 100%);
    padding: 40px 20px;
}

.main-visual h1 {
    background-color: #fff;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: "Noto Sans JP", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    line-height: 1.5;
}

#contents h2 {
    position: relative;
    font-size: 1.4em;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #d8d0d0;
    padding: 0 0 12px 18px; 
    margin: 50px 0 20px 0;
}

#contents h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 1.4em;
    background-color: #002D70;
    border-radius: 2px;
}

#contents p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* =========================================================
   メインエリア内のリンク設定（通常時：下線あり / ホバー時：下線なし）
   ========================================================= */
#contents a {
    text-decoration: underline;
}

#contents a:hover {
    text-decoration: none;
}

.note-text {
    font-size: 0.9em!important;
    color: #333;
}

.startup-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 1em;
}

.startup-table th,
.startup-table td {
    border: 2px solid #111;
    padding: 15px;
    vertical-align: top;
}

.startup-table th {
    background-color: #002D70;
    color: #fff;
    text-align: center;
    font-weight: bold;
    white-space: nowrap;
}

.startup-table td { line-height: 1.6; }
.startup-table tbody tr:nth-child(odd) td { background-color: #D2E0F5; }
.startup-table tbody tr:nth-child(even) td { background-color: #ffffff; }

.startup-table ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.startup-table li { margin-bottom: 8px; }
.startup-table li:last-child { margin-bottom: 0; }

ul.list1 {
  list-style-type: none;
  padding-left: 0;
}

ul.list1 li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 8px;
  line-height: 1.6;
}

ul.list1 li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 8px; 
  border-color: transparent transparent transparent #FFD700;
}

/* 汎用クラス (margin, padding等のユーティリティは省略せず残しています) */
.mg0{margin: 0rem!important;}
.mgb1{margin-bottom: 1rem!important;}
/* ... (必要に応じて元のCSSの下部にあったユーティリティクラスを追加してください) ... */

/* =========================================================
   テーブル用スクロールヒント（PCでは非表示）
   ========================================================= */
.scroll-hint {
    display: none;
}


/* =========================================================
   5. スマートフォン用スタイル (幅959px以下で適用)
   ========================================================= */
@media screen and (max-width: 1210px) {
    #glnav2 .nav-wrapper { flex-direction: column; align-items: flex-start; }
    #glnav2 .nav-links { width: 100%; align-items: center; }
    #glnav2 .nav-banner { margin: 1rem; }
}

@media screen and (max-width: 1050px) {
    body { font-size: 90%; }
}

@media screen and (max-width: 959px) {
    /* PC/SP 切り替え */
    .pc {display: none;}
    .sp {display: block;}

    /* ヘッダー周り */
    #header2 {
        display: block;
    }
    #header2, #glnav2 #gl_main, #glnav2 #gl_sub{ justify-content: center; }
    #header2 #glnav2{ width: 100%; } 

    #header2 .logo {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        border-bottom: 5px solid var(--main-color);
        margin: 0;
    }
    #header2 .logo > a img {
        width: 60%;
        margin-left: 1rem;
        height: auto;
    }

    /* ハンバーガーメニュー */
    #header2 a.menu {
        display: block;
        margin: 18px 10px 0 0;
        float: right;
        box-sizing: border-box;
        padding: 12px 12px 12px 36px;
        min-width: 7.5em;
        background: var(--main-color) url(../img/common/icon-hamburger.svg) no-repeat 5px 0.7em;
        background-size: 28px;
        border-radius: 3px 3px 0 0;
        color: #fff;
    }
    #header2 a.menu.on {
        background: var(--main-color) url(../img/common/icon-cross.svg) no-repeat 5px 0.6em;
        background-size: 30px;
    }
    #header2 a.menu .hamburger,
    #header2 a.menu.on .close {display: inline;}
    #header2 a.menu.on .hamburger,
    #header2 a.menu .close {display: none;}

    #glnav2 {
        float: none;
        clear:both;
        width: 100%;
        display: none;
    }
    #glnav2 > li > a {
        float: none;
        width: 100%!important;
        margin: 0!important;
        padding: 1em 1em 1.5em 40px!important;
        text-align: left;
        background-position: left 10px center!important;
        background-color: var(--main-color);
        border-radius: 0!important;
        border-bottom: 1px solid #fff;
    }
    #glnav2 > li > a:hover,
    #glnav2 > li.on > a {
        border-radius: 0!important;
    }

    #glnav2 #gl_main,
    #glnav2 #gl_sub {
        display: block;
        width: 100%;
    }
    #glnav2 #gl_main li > a {
        padding: 1rem;
        margin: 0;
    }
    #glnav2 #gl_main > li > ul > li a {
        padding:0;
    }
    #glnav2 #gl_main li:nth-child(1) > a {
        border-bottom: solid 1px var(--gray-color);
    }
    #glnav2 li#gl_munici > a {
        padding: 0.7rem 0.7rem 0.7rem 3rem;
        margin: 1rem;
        border-bottom: none;
    }

    /* ERCAヘッダー */
    .block_skip a {
        display:block;
        height: 0;
        overflow: hidden;
        text-align: center;
        color: #fff;
        background: #777;
        font-size: 90%;
    }
    .block_skip a:focus {
        height: auto;
        line-height: 2em;
    }

    #header1 .logo {
        margin: 9px 10px 5px;
        width:150px;
    }
    #header1 .logo img {
        width: 90%;
    }
    #header1 .nav1 li a {
        width: 45px;
        height: 45px;
    }
    #header1 .nav1 li#en-btn a {
        padding: 16px 0 0;
    }
    #header1 .nav1 li#en-btn a img {
        width: 38px;
    }
    #header1 .nav1 li#search-btn a {
        padding: 8px;
    }
    #header1 .nav1 li#erca-menu a {
        padding: 10px;
    }

    #header1 .nav1 li#search-btn .close_erca {display: none;}

    #search {
        padding: 1em;
    }
    #search h2 {
        font-size: 100%;
        padding: 5px 10px 5px 30px;
    }
    #search h2:after {
        width: 16px;
        height: 3px;
        top: 1em;
        left: 0;
    }
    #search input {
        border-radius: 0;
    }
    #search input[type="text"] {
        width: 40%;
        height: 2.5em;
    }
    #search input[type="submit"] {
        height: 2.5em;
        padding: 0 1em;
    }

    #glnav1 {
        position: relative;
        display: none;
        top: 0px;
    }
    #glnav1 > ul > li > a {
        width: 100%!important;
        float: none;
        text-align: left;
        margin: 0;
        padding: 1em 1em 1.5em!important;
        border-bottom: 1px solid #fff;
        background-image: url(../img/common/slide_down.svg);
        background-repeat: no-repeat;
        background-position: right 10px top 48%;
        background-size: 22px;
    }
    #glnav1 > ul > li:first-child > a,
    #glnav1 > ul > li > a:hover,
    #glnav1 > ul > li > a.on {
        border-radius: 0;
        background-color: #0D79CD;
        color: #fff;
    }
    #glnav1 > ul > li > a.on {
        background-image: url(../img/common/slide_up.svg);
    }
    #glnav1 > ul > li:first-child > ul {
        position: relative;
        display: none;
    }
    #glnav1 > ul > li > ul {
        box-sizing: border-box;
        height: auto;
        position: relative;
        clear: both;
        background: #fff;
        top: 0em;
        width: 100%;
        padding: 0em 1%;
        z-index: 999;
    }
    #glnav1 > ul > li > ul > li {
        float: none;
        background: none;
        width: 100%;
        border-left: 5px solid #fff;
        padding: 0;
    }
    #glnav1 > ul > li > ul > li > a {
        display: block;
        background: url(../img/common/arrow03.svg) no-repeat center left;
        padding: 1.5em 2em 1.5em 2.5em;
        border-bottom: 1px dotted #ccc;
    }
    #gl2-3 > ul > li.mgl255p {
        margin-left: 2% !important;
    }
    #glnav1 > ul > li > ul > li ul {
        margin-top: 0px;
        display: none;
        border-bottom: 1px dotted #ccc;
        padding: 15px 0;
    }
    #glnav1 > ul > li > ul > li li {
        background: url(../img/common/arrow04.svg) no-repeat 5px 0.5em;
        font-size: 90%;
        padding: 0 0 10px 20px;
    }
    #glnav1 > ul > li > ul > li.close_erca {display: none;}

    /* ERCAフッター */
    #footer1 h2 {
        margin: 15px 5px;
        float: left;
        width:143px;
    }
    #footer1 .clear_fix p {
        font-size: 80%;
        margin: 20px 5px;
        float: right;
    }
    #footer1 h2 img {
        vertical-align: middle;
        width: 100%;
    }
    #footer1 .nav {
        clear: both;
        text-align: center;
        float: none;
    }
    #footer1 .nav,
    #footer1 .nav2 {
        font-size: 80%;
        padding: 15px 2%;
    }
    #footer1 .nav li,
    #footer1 .nav2 li {
        display: inline-block;
    }
    #footer1 .nav2 {
        text-align: left;
    }
    #footer1 #copy {
        font-size: 75%;
    }
    /* ページトップボタン（スマホ用の配置調整） */
    #footer1 #copy #pagetop {
        float: none;
        margin: 0 0 0 auto; /* 右寄せにする */
        /* サイズを少し小さくしたい場合は以下の数値を調整してください */
        width: 50px; 
        height: 50px;
    }
    /* (imgの幅指定は不要になったため削除しました) */
    #footer1 #copy p {
        margin: 18px auto;
    }

    /* フッター2 */
    #footer2 h2 {
        padding: 2rem 0 1rem;
    }
    #footer2 h2 img {
        max-width: 250px;
        width: 60%;
    }
    #footer2 address {
        line-height: 1.5em;
        font-size: 90%;
    }
    #footer2 #megafooter {
        margin: 3em 0 1em;
    }
    #footer2 #megafooter > li {
        clear: both;
        float: none;
        left: 0%;
        width: 96%;
        margin: 1em 2% 1.5em!important;
    }

    /* その他レイアウト調整 */
    .outline {
        padding: 0 1rem;
    }
    main_v {
        position: relative;
        text-align: center;
    }
    main_v img {
        max-width: 100%;
        height: auto;
    }
    .banner{
        padding: 1rem 0;
    }
    .banner ul {
        grid-template-columns: 1fr;
        grid-gap: 1rem;
    }
    .flex.off{
        display: block;
    }
    .flex.off *{
        margin-bottom: 1rem;
    }
    .grid.off{
        grid-gap: 1rem;
    }
    .grid.off.clm2,
    .grid.off.clm3{grid-template-columns: 1fr;}
    .pc20_sp50{width: 50%;}

/* =========================================================
       スマートフォン用テーブル（横スクロール）
       ========================================================= */
    /* 表を囲む枠にスクロールバーを付ける */
    .table-scroll {
        overflow-x: auto; /* 横にはみ出した部分をスクロール可能にする */
        white-space: nowrap; /* テーブル内での意図しない改行を防ぐ（全体枠用） */
        margin-bottom: 20px;
        -webkit-overflow-scrolling: touch; /* スマホでのスクロールを滑らかにする */
        border: 2px solid #111; /* 外枠の線（スクロール時の見た目調整用） */
    }

    /* 表本体の幅指定 */
    .startup-table {
        width: 800px; /* ★ここが重要：スマホの画面幅より広い固定幅を指定する */
        margin-bottom: 0;
        border: none; /* 外枠は.table-scrollで引くため、table自体の外枠は消す */
    }

    /* td内のリスト（長い文章）は自然に折り返すようにする */
    .startup-table td {
        white-space: normal;
    }    

    /* スクロールヒントをスマホ画面で表示 */
    .scroll-hint {
        display: block;
        text-align: right; /* 右寄せにする */
        font-size: 0.85em;
        color: #666;
        margin-bottom: 5px;
    }
    
    /* 矢印アイコンをCSSで文字の後ろに自動追加（← →） */
    .scroll-hint::after {
        content: " \2194"; /* 左右の矢印 */
        font-weight: bold;
    }

/* メインエリア全体に半角1文字分（約10px）の余白を入れる */
    #contents {
        padding: 0 10px;
    }

    /* パンくずリスト（機構ホーム > ...）も端にくっつかないように余白を入れる */
    #panav ul {
        padding: 1em 10px;
    }

    /* 表のスクロール枠だけ、マイナスの指定をして親の余白(10px)を打ち消し、画面端まで広げる */
    .table-scroll {
        margin-left: -10px;
        margin-right: -10px;
    }

}

