@charset "utf-8";

/*Font Awesomeの読み込み
---------------------------------------------------------------------------*/
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css");

/*Google Fontsの読み込み
---------------------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Reddit+Sans:ital,wght@0,200..900;1,200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');

/*テンプレート専用cssファイルの読み込み
---------------------------------------------------------------------------*/
@import url("slide.css");
@import url("inview.css");

/*CSSカスタムプロパティ（サイト全体を一括管理する為の設定）
---------------------------------------------------------------------------*/
:root {
    --text-color: #333;             /*テキストカラー*/
    --primary-color: #f8f5ee;       /*テンプレートのメインとなる色*/
    --primary-text-color: #4c7437;  /*メインカラーの上で使うテキスト色*/
    --global-space: 5vw;            /*サイト内の左右へとる余白を一括管理しています。画面幅100%＝100vwです。*/
}


/*reset 

/* 
html5doctor.com Reset Stylesheet
v1.6.1
Last Updated: 2010-09-17
Author: Richard Clark - http://richclarkdesign.com 
Twitter: @rich_clark
*/

html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
  margin:0;
  padding:0;
  border:0;
  outline:0;
  font-size:100%;
  vertical-align:baseline;
  background:transparent;
}

body {
  line-height:1;
}

article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section { 
  display:block;
}

nav ul {
  list-style:none;
}

blockquote, q {
  quotes:none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content:'';
  content:none;
}

a {
  margin:0;
  padding:0;
  font-size:100%;
  vertical-align:baseline;
  background:transparent;
}

/* change colours to suit your needs */
ins {
  background-color:#ff9;
  color:#000;
  text-decoration:none;
}

/* change colours to suit your needs */
mark {
  background-color:#ff9;
  color:#000; 
  font-style:italic;
   font-weight:bold;
}

del {
  text-decoration: line-through;
}

abbr[title], dfn[title] {
  border-bottom:1px dotted;
  cursor:help;
}

table {
  border-collapse:collapse;
  border-spacing:0;
}

/* change border colour to suit your needs */
hr {
  display:block;
  height:1px;
  border:0;   
  border-top:1px solid #cccccc;
  margin:1em 0;
  padding:0;
}

input, select {
  vertical-align:middle;
}
/*全体の設定
---------------------------------------------------------------------------*/
body * {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-size: 13px;    /*基準となるフォントサイズ。*/
}

@media screen and (min-width:900px) {
    html, body {
        font-size: 16px;    /*基準となるフォントサイズ。*/
    }
}

body {
    margin: 0;
    padding: 0;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", Meiryo, "メイリオ", "Osaka", "MS PGothic", "ＭＳ Ｐゴシック", sans-serif;
    font-optical-sizing: auto;
    -webkit-text-size-adjust: none;
    background: #f8f5ee;    /*背景色*/
    color: var(--text-color);    /*文字色。css冒頭で指定しているtext-colorを読み込みます*/
    line-height: 2;        /*行間*/
}

/*リセット*/
figure {
    margin: 0;
}

dd {
    margin: 0;
}

nav, ul, li, ol {
    margin: 0;
    padding: 0;
}

nav ul {
    list-style: none;
}

/*table全般の設定*/
table {
    border-collapse: collapse;
}

/*画像全般の設定*/
img {
    border: none;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/*videoタグ*/
video {
    max-width: 100%;
}

/*iframeタグ*/
iframe {
    width: 100%;
}

/*他*/
input {
    font-size: 1rem;
}

section + section {
    margin-top: 3rem;
}

ul {
    list-style: none;
  }
  

/*見出し関連
---------------------------------------------------------------------------*/
.page-title {
    font-size: 2em;
    color: #2c4a1e;
    padding: 15px 20px 15px 25px;
    margin-bottom: 30px;
    position: relative;
    font-weight: 700;
    letter-spacing: 1px;
    background-color: #f0f5ed;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-left: 6px solid #4c7437;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #4c7437, #a0c58b);
}

.page-title::before {
    color: #4c7437;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
}

.sub-title {
    font-size: 1.8em;
}


/*パンくずリスト*/
.breadcrumb ol {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
}

.breadcrumb li {
    margin-right: 8px;
    color: #666;
}

.breadcrumb li:last-child {
    color: #333;
}

.breadcrumb a {
    text-decoration: none;
    color: #666;
}

h2 {
    font-size: 1.8em;
    color: #2c4a1e;
    margin-bottom: 30px;
    padding: 10px 0;
    position: relative;
    font-weight: 700;
    letter-spacing: 1px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #4c7437, #a0c58b);
}

h3 {
    font-size: 1.5em;
    color: #2c4a1e;
    margin: 40px 0 20px;
    padding: 8px 15px;
    position: relative;
    font-weight: 600;
    background-color: #f0f5ed;
    border-radius: 5px;
    border-left: 4px solid #4c7437;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.4em;
    }

    .resizeimage240 {
        width: 100%;
        margin-bottom: 10px;
    }

    h2 {
        font-size: 1.5em;
    }
    
    h3 {
        font-size: 1.3em;
    }
}

/*お問い合わせ
---------------------------------------------------------------------------*/
.contact {
    background-color: #4c7437;
    color: white;
    margin-top: 100px;
    padding: 20px;
    border-radius: 5px;
}

.contact h2 {
    color: white;
    font-size: 30px;
}

.contact-button {
    display: inline-block;
    background-color: white;
    color: #4c7437;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.contact-button:hover {
    opacity: 0.8;
}

.f-centerimg {
    display: block;
    margin: 20px;
    max-width: 100%;
}

/*リンクテキスト全般の設定
---------------------------------------------------------------------------*/
a {
    color: var(--text-color);
    transition: 0.3s;
}

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

#contents a {
    color: #3366cc;
    text-decoration: underline;
    transition: 0.3s;
}

#contents a:hover {
    text-decoration: none;
    color: #4477cc;
    opacity: 0.8;
}

/*コンテナー（サイト全体を囲むブロック）
---------------------------------------------------------------------------*/
body:not(.home) #container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/*コンテンツとwrapper（フッター関連「以外」を囲むブロック）
---------------------------------------------------------------------------*/
#contents {
    flex: 1;
    padding: 150px 50px;
    bottom: 300px;
    margin: 0 auto;
    max-width: 1800px;
}

#wrapper {
    margin: 50px auto;
}

@media screen and (max-width:600px) {
    #contents {
        padding: 80px 10px 150px;
    }
}

/*ヘッダーブロック
---------------------------------------------------------------------------*/
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 5vw;
    font-family: "Reddit Sans", "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(248, 245, 238, 0.9);
}

.c-header__logo {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.c-header__logo img {
    max-height: 100% !important;
    width: auto !important;
    object-fit: contain !important;
}

.c-header__menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

@media screen and (max-width: 1009px) {
    header {
        height: 60px;
    }

    .c-header__logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .c-header__menu {
        position: absolute;
        right: 3vw;
    }

    .c-header__logo img {
        max-height: 50px;
    }

    #mainimg {
        margin-top: 60px;
    }

    #contents {
        padding-top: 60px;
    }
}

@media screen and (max-width: 480px) {
    header {
        height: 50px;
    }

    .c-header__logo img {
        max-height: 40px;
    }

    #mainimg {
        margin-top: 50px;
    }
}

#contents {
    padding-top: 70px;
}

/*メニューブロック初期設定
---------------------------------------------------------------------------*/
#menubar {
    display: none;
}

#menubar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#menubar a {
    display: block;
    text-decoration: none;
}

.large-screen #menubar {
    display: block;
}

.small-screen #menubar.display-block {
    display: block;
}

#menubar_hdr.display-none {
    display: none;
}

.ddmenu_parent ul {
    display: none;
}

a.ddmenu {
    cursor: default;
}

a.ddmenu::before {
    font-family: "Font Awesome 6 Free";
    content: "\f078";
    font-weight: bold;
    margin-right: 0.5em;
}

/*大きな端末用のメニューブロック設定
---------------------------------------------------------------------------*/
.large-screen #menubar > nav > ul {
    display: flex;
    font-size: 0.85rem;
    gap: 0.5rem;
}

.large-screen #menubar li a {
    border-radius: 20px;
    padding: 0.2rem 1rem;
}

.large-screen #menubar li a:hover {
    background: #fff;
    color: #4c7437;
}

/*ドロップダウンメニュー設定
---------------------------------------------------------------------------*/
.large-screen #menubar ul ul,
.small-screen #menubar ul ul {
    animation: opa1 0.5s 0.1s both;
}

.large-screen #menubar ul ul {
    position: absolute;
    z-index: 10000;
    background: rgba(76, 116, 55, 0.9);
    border-radius: 20px;
}

.large-screen #menubar ul ul a {
    margin-top: 0.4rem;
}

/*小さな端末用の開閉ブロック
---------------------------------------------------------------------------*/
.small-screen #menubar {
    display: none;
}

.small-screen #menubar.display-block {
    display: block;
    position: fixed;
    overflow: auto;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding-top: 90px;
    background: rgba(76, 116, 55, 0.8);
    animation: menuOpen 0.4s ease-out;
}

.small-screen #menubar nav ul li {
    border: 1px solid #ccc;
    margin: 1rem;
    border-radius: 5px;
    padding: 0 2rem;
    transition: background-color 0.3s ease;
}

.small-screen #menubar nav ul li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.small-screen #menubar a {
    padding: 1rem;
    display: block;
    text-decoration: none;
}

.small-screen #menubar,
.small-screen #menubar a {
    color: #fff;
}

#menubar .sh {
    font-weight: normal;
    padding: 1rem 2rem 2rem;
}

.small-screen #menubar a:focus {
    outline: 2px solid #fff;
    outline-offset: -2px;
}

@keyframes menuOpen {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes menuClose {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.small-screen #menubar.closing {
    animation: menuClose 0.6s ease-out;
}

/*３本バー（ハンバーガー）アイコン設定
---------------------------------------------------------------------------*/
#menubar_hdr {
    animation: opa1 0s 0.2s both;
    position: fixed;
    z-index: 10001;
    cursor: pointer;
    left: 3vw;
    top: 1vw;
    padding: 16px 14px;
    width: 46px;
    height: 46px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1001;
}

#menubar_hdr span {
    display: block;
    transition: 0.3s;
    border-top: 1.5px solid #333;
}

#menubar_hdr.ham {
    background: #ff0000;
}

#menubar_hdr.ham span:nth-of-type(1),
#menubar_hdr.ham span:nth-of-type(3) {
    transform-origin: center center;
    width: 20px;
    border-color: #fff;
}

#menubar_hdr.ham span:nth-of-type(1) {
    transform: rotate(45deg) translate(3.8px, 5px);
}

#menubar_hdr.ham span:nth-of-type(3) {
    transform: rotate(-45deg) translate(3.8px, -5px);
}

#menubar_hdr.ham span:nth-of-type(2) {
    display: none;
}

/*フッター
---------------------------------------------------------------------------*/
.footer {
    background-color: #4c7437;
    width: 100%;
    text-align: left;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 16px;
    padding: 50px;
    margin-top: 50px;
}

.footer .footer-left,
.footer .footer-center,
.footer .footer-right {
    display: inline-block;
    vertical-align: top;
}

.footer .footer-left {
    width: 33%;
    padding-right: 15px;
}

.footer .about {
    line-height: 20px;
    color: #ffffff;
    font-size: 13px;
    font-weight: normal;
    margin: 0;
}

.footer .about span {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer .icons {
    margin-top: 25px;
}

.footer .icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background-color: #33383b;
    border-radius: 15px;
    font-size: 32px;
    color: #ffffff;
    margin-right: 3px;
    margin-bottom: 5px;
}

.footer .icons a i {
    display: block;
    padding: auto;
}

.footer .footer-center {
    width: 30%;
}

.footer .footer-center i {
    background-color: #33383b;
    color: #ffffff;
    font-size: 25px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    text-align: center;
    line-height: 42px;
    margin: 10px 15px;
    vertical-align: middle;
}

.footer .footer-center i.fa-envelope {
    font-size: 17px;
    line-height: 38px;
}

.footer .footer-center p {
    display: inline-block;
    color: #ffffff;
    vertical-align: middle;
    margin: 0;
}

.footer .footer-center p span {
    display: block;
    font-weight: normal;
    font-size: 14px;
    line-height: 2;
}

.footer .footer-center p a {
    color: #fff;
    text-decoration: none;
}

.footer .footer-right {
    width: 35%;
}

.footer h2 {
    color: #ffffff;
    font-size: 36px;
    font-weight: normal;
    margin: 0;
}

.footer h2 span {
    color: #0099ff;
}

.footer .menu {
    color: #ffffff;
    margin: 20px 0 12px;
    padding: 0;
}

.footer .menu a {
    display: inline-block;
    line-height: 1.8;
    text-decoration: none;
    color: inherit;
}

.footer .menu a:hover {
    color: #0099ff;
}

.footer .name {
    color: #fff;
    font-size: 14px;
    font-weight: normal;
    margin: 0;
}

@media (max-width: 767px) {
    .footer {
        font-size: 14px;
    }
    .footer .footer-left,
    .footer .footer-center,
    .footer .footer-right {
        display: block;
        width: 100%;
        margin-bottom: 40px;
        text-align: center;
    }
    .footer .footer-center i {
        margin-left: 0;
    }
}

/*その他
---------------------------------------------------------------------------*/
.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

.pc {
    display: none;
}

.dn {
    display: none !important;
}

.block {
    display: block !important;
}

@media screen and (min-width:900px) {
    .sh {
        display: none;
    }
    .pc {
        display: block;
    }
}

/* 外部リンクの後ろにアイコンを表示 */
a[target="_blank"]::after {
    content: " \f08e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1em;
    margin-left: 0.3em;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

a[target="_blank"]:hover::after {
    color: #4c7437;
}

/* PDFリンクのスタイル */
a[href$=".pdf"]::after {
    content: " \f1c1";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1em;
    margin-left: 0.3em;
    color: #e74c3c;
}

a[href$=".pdf"] {
    background-color: #f9f2f4;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    border: 1px solid #e8e8e8;
    color: #c7254e;
    text-decoration: none;
    transition: all 0.3s;
}

a[href$=".pdf"]:hover {
    background-color: #fee;
    border-color: #e74c3c;
    color: #e74c3c;
}


.pagetop {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100;
}

.pagetop a {
    display: block;
    text-align: center;
    background: rgba(128, 128, 128, 0.5);
    color: #fff;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    transition: all 0.3s;
}

.pagetop a:hover {
    background: rgba(76, 116, 55, 1);
    transform: translateY(-5px);
}

.pagetop i {
    font-size: 1.2rem;
    line-height: 50px;
}
