:root *, :root *::before, :root *::after {
    box-sizing: border-box;
}
html, body {
    margin: 0;
    padding: 0;
}
body {
    border-top: 6px solid goldenrod;
    
}
/*************************
** Main menu 
 ************************/
.menu {
    display: flex;
    justify-content: space-evenly;
    list-style-type: none;
    gap: 1rem;
    padding:.5rem .5rem;
    background-color: #ad6;
    width: 100%;
    margin-top: -.25rem;
    border-radius: 4px;
    height: 2rem;
}
.menu li ul {
    opacity: 0;
    height:0;
    padding: .5rem 0;
    list-style-type: none;
    position: absolute;
    background-color: #ce8;
    pointer-events: none;
}
.menu li ul:last-child {
    padding-bottom: 0;
}
.menu li ul li {
    /* padding: 1rem; */
}
.menu li ul li a {
    padding: 1rem;
}
.menu li ul li:hover,
.menu li ul li:active {
    background-color: #eee;
    pointer-events: auto;
    }
.menu li:hover ul,
.menu li:active ul {
    position: relative;
    opacity: 1;
    height: max-content;
    width: fit-content;
    pointer-events: auto;
    z-index: 1;
}
.menu a {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: .9rem;
    line-height: 1;
}
.menu > li {
    line-height: 1;
}

/*
 drawer menu 
*/
 #drawer {
    display: none;
 }
 @media screen and (max-width:710px) {

    .menu {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 16rem;
        gap: 0;
        margin-top: 0;

        transform: translateX(100%);
        transition: all .5s ease-out;
        overflow-x: hidden;
        height: 0;
        opacity: 0;
        visibility: hidden;
    }
    .menu > li {
       /* height: 3rem; */
       position: relative;
       display:block;
    }
    .menu > li > ul {
        position: relative;
        display:block;
        opacity: 1;
        height: auto;
        pointer-events: auto;
        margin-left:2rem;
    }
    /* .menu li:hover > ul,
    .menu li:focus-within > ul {
        display: block;
        right: 100%;
        width: max-content !important;
        pointer-events: auto;
        clip-path: inset(0 -100%);
    } */

    #drawer:checked ~ .menu {
        transform: translateX(0);
        transition: all .4s ease-in-out;
        height: 100%;
        opacity: 1;
        visibility: visible;
    }

/* Drawer menu button */
#drawer {
    display: none;
}
.menu-button,
.menu-button::before,
.menu-button::after {
  display: block;
  background-color: #000;
  position: absolute;
  top: 24px;
  right: 12px;
  height: 4px;
  width: 30px;
  transition: transform 400ms linear;
  border-radius: 2px;
  z-index: 3;
}

.menu-button::before {
  content: '';
  top: -8px;
  right: 0;
}

.menu-button::after {
  content: '';
  top: 8px;
  right: 0;
}

#drawer:checked + .drawer-btn .menu-button::before {
    margin-top: 8px;
    transform: rotate(225deg);
  }
  
  #drawer:checked + .drawer-btn .menu-button {
    background: transparent;
  }
  
  #drawer:checked + .drawer-btn .menu-button::after {
    margin-top: -8px;
    transform: rotate(-225deg);
  }
  
  .close-button {
    position: fixed;
    top: 0;
    left: 0;
    background: #333;
    opacity:0;
    pointer-events: none;
  }
  #drawer:checked + .drawer-btn .close-button {
    width: 100%;
    height:100%;
    opacity:.5;
    overflow:hidden;
    pointer-events: auto;
  }

 }

/*************************
** Common style
 ************************/
 #header {
    margin: 0;
    padding:0 1rem;
    background: url(../images/header_img1.png) no-repeat right;
    height: 140px;
}
#container {
    /* max-width: 68rem; */
    /* margin: 0 auto; */
    display: grid;
    grid-template-columns: minmax(auto, 66rem);
    justify-content: center;

    grid-template-rows: 140px 48px 1fr auto;

    min-height: calc(100dvh - 75px);
    padding: 0 1rem;
}
#main {
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-block-end: 1rem;
}
#site-description {
    margin-top: -1rem;
    color: #999;
}

.clear::before {
    content: "";
    display: block;
    clear:both;
}

#breadcrumb a {
    font-size: 80%;
    color: #999;
    text-decoration: none;
}

.post-meta {
    background-color: #eee;
    text-align: right;
    border-radius: 4px;
    padding: .25rem .5rem;
}

/************************************
** main部のflexbox 
************************************/
.flexbox {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.one-third {
    flex: 0 0 280px;
}
.two-thirds {
    flex:  1 1 auto;
    width: min(50%, 640px);
    /* min-width: 300px; */
}
@media screen and (max-width:776px) {
    .one-third,
    .two-thirds {
        width: 100%;
        flex: 0 0 100%;
    }
}

/************************************
** main部flexbox左サイドバーのdl 
************************************/
.profile {
    margin: 0;
    padding: 0;
}
.profile dt {
    display: inline-block;
    width: 5em;
}
.profile dd {
    display: inline-block;
    width: calc(100% - 6em);
    clear: both;
    margin: 0;
}
.profile dd:nth-child(1),
.profile dd:nth-child(2) {
    float: none;
    clear: both;
    display: block;
    width: 100%;
    /* width: max-content; */
}
.profile dt:nth-child(10) {
    vertical-align: top;
}

/************************************
** main部flexbox右の本文エリア 
************************************/
.main-img img {
    display:block;
    width: 100%;
    height: auto;
}
.rfloat {
    float: right;
    margin-left:2rem;
}
.halfsize {
    width: 50%;
}

h1 {
    margin-top: 0;
    margin-bottom: .5em;
}
.post-date {
    text-align: end;
    vertical-align: bottom;
}

.article_lists {
    list-style-type: none;
    margin: 0;
}
/************************************
** フッター(footer)
************************************/
#footer {
    background-color: goldenrod;
    color: #fff;
    grid-row: -1;

    padding: 5px;
    display: grid;
    grid-template-columns: minmax(auto, 2200px);
  
  }
  
  #footer a {
    color: #DCDCDC;
  }
  
  #copyright{
    padding: 20px 0;
    font-size: 80%;
    text-align:center;
  }
  
  #copyright a{
    text-decoration:none;
    color:#fff;
  }
  
  /************************************
  ** TOPへ戻るボタン（Go to top）
  ************************************/
  #page-top{
    position:fixed;
    display:none;
    right: 10px;
    bottom: 10px;
  }
  
/************************************
** 組合員のためのログインボタン
************************************/
.login_btn {
    width: 9em;
}
.login_btn a {
    display: block;
    background-color: #9d8 !important;
    position: fixed;
    right: 0;
    bottom: 0;
    padding: .25em 1em;
    font-size: 80%;
    border-radius:4px;
}

/*----------------------------------
** タイポグラフィ
------------------------------------*/
h1, h2, h3, h4, h5, h6 {
    line-height: 1;
}

h2 {
    padding-bottom: 1em;
    border-bottom: 1px solid #aaa;
}