/*
Template:ystandard
Theme Name:tsunagaru-design
Theme URI: https://wp-ystandard.com
Author: yosiakatsuki
Author URI: https://yosiakatsuki.net
Description:「ystandard」の子テーマ
Version: 4.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/ :root {
    --header-bg: #297442;
    --key-color: #297442;
}
body {
    background-image: url("assets/images/bg.jpg");
}
.logo-motion {
    display: none;
}
.global-nav__toggle.is-open + .global-nav {
    background-image: url("assets/images/bg.jpg");
}
.global-nav__menu a {
    color: var(--font-color);
    font-weight: bold;
    padding: 1em;
}
.global-nav__toggle .ys-icon, .global-nav__toggle svg {
    width: 40px;
    height: 40px;
}
.wp-block-search .wp-block-search__input:focus {
    outline: none;
}
.wp-block-search .wp-block-search__input {
    border: 4px solid #e2e4e7;
    border-radius: 2em 0 0 2em;
    padding: 1em;
}
.wp-block-search .wp-block-search__button {
    background: var(--key-color);
    border: none;
    border-radius: 0 2em 2em 0;
    color: #f1f1f3;
    margin-left: -4px;
}
.wp-block-search .wp-block-search__button svg {
    min-width: 2.5em;
    min-height: 2.5em;
    transform: scale(-1, 1);
}

/*20250210サイドバー改修*/
.widgettitle {
    margin-top: 0;
}

/*コミュニケーションデザインとは 20250210改修*/
.about-text-background {
    padding: 20px;
    background-color: #F3F7E4;
}

.about-square {
    padding-right: 8px;
    font-size: 1.6rem;
    line-height: 1;
}

.about-h4 {
    margin: 0!important;
    font-size: 1rem;
    line-height: 1.8;
}

.about-txt {
    margin: 0;
}

/*content*/
.home .entry-content h2, .page-template .singular-header__title, .page-template .entry-content h2, h1.archive__page-title, .entry-content h2 {
    position: relative;
    padding: 1rem .5rem;
    margin-left: -.2rem;
    margin-right: -.2rem;
}
.home .entry-content h2:after, .page-template .singular-header__title:after, .page-template .entry-content h2:after, h1.archive__page-title:after, .entry-content h2:after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    content: '';
    border-radius: 3px;
    background: rgba(41, 116, 66, .3);
}

/*20220120edit トップ改修*/
.home .ystdb-section{
    margin: 40px 0;
}
.archive__meta>div.archive__category{
    display: none;
}
.home.has-background .archive__item.is-card .archive__text{
    padding: 0 0 1em 0;
}
/*20220120edit トップ改修 end*/

/*20250218edit トップ改修 end*/
.has-background .archive__text {
    padding: 1em;
}

.tagcloud a, .wp-block-tag-cloud a {
    padding: .25em 1em;
    border-radius: 50px;
}
.st-tag-cloud a{
    display: inline-block;
    margin-bottom: .5em;
    background-color: var(--tagcloud-bg);
    color: currentColor;
    letter-spacing: .025em;
    text-decoration: none;
    padding: .25em 1em;
    border-radius: 50px;
}
.st-tag-cloud  a:before{
    margin-right: .25em;
    content: "#";
    font-family: SFMono-Regular,Menlo,Monaco,Consolas,monospace;
}
.entry-content h3{
    font-size: 1.25em;
    color: var(--key-color);
}
.entry-content h2+h3{
    margin-top: 1.5em;
}
.post-taxonomy__title, .post-taxonomy__item:after {
    display: none;
}
.post-taxonomy__link {
    /*border: 1px solid #e2e4e7;*/
    background-color: var(--tagcloud-bg);
    margin-bottom: 5px;
    margin-right: 0;
    padding: .3em .8em;
    border-radius: 30px;
}
.post-taxonomy__link:before {
    content: "# ";
}
.content__main .search-field {
    border: 4px solid #e2e4e7;
    border-radius: 3em;
    padding: 1em;
}
.content__main .search-submit {
    background-color: var(--key-color);
    color: #fff;
    border-radius: 0 50px 50px 0;
}
.content__main .search-submit svg {
    width: 1.5em;
    height: 1.5em;
}
/*sidebar*/
.has-background .sidebar__fixed > *, .has-background .sidebar__widget > * {
    background-color: transparent;
}
.sidebar h2.widget-title {
    position: relative;
    padding: 1rem .5rem;
    text-align: center;
    font-size: .938em;
}
.sidebar h2.widget-title:after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    content: '';
    border-radius: 3px;
    background: rgba(41, 116, 66, .3);
}
.sidebar .widget_search .search-field {
    border-radius: 50px;
    border: 2px solid rgb(226 228 231);
    padding-left: 1em;
}
.sidebar .widget_search .search-submit {
    background-color: var(--key-color);
    color: #fff;
    border-radius: 0 50px 50px 0;
}
.sidebar .widget_search .search-submit svg {
    width: 1.125em;
    height: 1.125em;
}
.sidebar .widget_search .search-field:focus {
    outline: none;
}
.sidebar .tagcloud a, .sidebar .wp-block-tag-cloud a {
    background-color: #fff;
}
.sidebar .tagcloud a:hover, .sidebar .wp-block-tag-cloud a:hover {
    background-color: #bed5c6;
}
ul.sidebar-author-list {
    overflow: hidden;
    text-align: center;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
}
.sidebar-author-list li {
    display: inline-block;
    width: 30%;
    padding: 1.5%;
    margin: 0 5px;
    box-sizing: border-box;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
}
.sidebar-author-list li .avatar {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
    display: inline-block;
}
.sidebar-author-list li a {
    text-decoration: none;
    color: var(--key-color);
}
.sidebar-author-list li a:hover .avatar {
    opacity: 0.7;
}
.sidebar-author-list li .name {
    display: block;
    text-align: center;
}
.widget_archive li, .widget_meta li, .wp-block-archives-list li {
    text-align: center;
}
/*page*/
.pofile-box {
    padding: 1em 0 3em 0;
    position: relative;
}
.pofile-box:before {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    content: '';
    background-color: #eee;
}
.pofile-box:last-child:before {
    display: none;
}
.wp-block-image.is-style-circle-mask img, .wp-block-image.is-style-rounded img {
    border-radius: 9999px;
    background-color: #f7f4db;
    border: 3px solid #297442;
}
.wp-block-columns {
    align-items: center;
}
.pofile-box figure {
    position: relative;
}
.pofile-box figcaption {
    position: absolute;
    top: 10%;
    width: 100%;
    text-align: center;
    color: #297442;
    font-size: 1.25rem;
    font-weight: bold;
}
.hitokoto-txt {
    font-size: .875rem;
    position: relative;
    display: inline-block;
    margin: 0;
    padding: 14px 10px;
    min-width: 120px;
    max-width: 100%;
    color: #333;
    background: #e0edff;
    font-weight: bold;
    border-radius: 8px;
}
.hitokoto-txt:before {
    content: "";
    position: absolute;
    top: -30px;
    left: 25%;
    margin-left: -15px;
    border: 15px solid transparent;
    border-bottom: 30px solid #e0edff;
    transform: rotate(30deg);
}
.hitokoto-txt p {
    margin: 0;
    padding: 0;
}
dl.pofile-txt dt {
    color: #297442;
}
.author-box__name {
    padding-top: 2em;
    position: relative;
}
.author-box__name:before {
    position: absolute;
    top: 0;
    content: "Post by";
    font-weight: normal;
}
.global-nav__toggle:after, .widget_tag_cloud .widget-title, body.archive .archive__meta > div.archive__category, .post-taxonomy__container.is-category, .single .singular-header__terms {
    display: none;
}
.footer-nav__menu {
    flex-direction: column;
}
.footer-main .footer-nav__menu a {
    color: #fff;
    padding: 0 .3em;
    line-height: 1.2;
    font-weight: bold;
}
.footer-nav .menu-item {
    position: relative;
    margin-left: 2em;
    margin-right: 2em;
}
.footer-nav .menu-item:after {
    position: absolute;
    background: rgba(255, 255, 255, .8);
    top: .3em;
    left: 0;
    width: 4px;
    height: 1em;
    content: '';
}
.copyright {
    font-size: .75rem;
}
button, input[type=button], input[type=reset], input[type=submit] {
    background-color: #297442;
    border-radius: 50px;
}
body.contact .entry-content{
    margin-top:0;
}
.mw_wp_form h3 {
    margin: 2em 0 .5em;
    position: relative;
    display: inline-block;
}
.mw_wp_form dt {
    font-size: .813em;
}
.mw_wp_form dt p{
    margin: 0;
}
.mw_wp_form dd {
    margin-left: 0;
    margin-bottom: .5em;
}
.mw_wp_form dd.button-align {
    display: flex;
    flex-wrap: wrap;
}
.mw_wp_form dd.button-align p{
    text-align: center;
}
.mw_wp_form dd.button-align span {
    width: 50%;
    line-height: 2;
}
.mw_wp_form .horizontal-item + .horizontal-item {
    margin-left: 0;
}
.mw_wp_form .required {
    margin-left: 10px;
    background-color: #f90;
    border-radius: 30px;
    padding: .3em 1em;
    font-size: .6em;
    color: #fff;
    position: absolute;
    white-space: nowrap;
    right: -6em;
    top: 0;
}
.mw_wp_form button, .mw_wp_form input, .mw_wp_form select, .mw_wp_form textarea {
    padding: .8em;
}
.mw_wp_form .contents-wrap, .mw_wp_form .contents-wrap p span {
    text-align: center;
    margin: 0 auto 10px;
}
.mw_wp_form button, .mw_wp_form input[type=button], .mw_wp_form input[type=reset], .mw_wp_form input[type=submit] {
    padding: 1em 2em;
}
.mw_wp_form .btn-wrap {
    text-align: center;
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
}
.mw_wp_form .btn-wrap .btnCircle_back {
    margin-right: 2em;
}
.mw_wp_form input::placeholder, .mw_wp_form textarea::placeholder {
    color: #ccc;
}
.mw_wp_form .error {
    font-weight: normal;
    position: relative;
    padding: 5px 10px;
    background-color: #fbcdcd;
    width: max-content;
    margin: 0 0 10px 0;
    font-size: .875rem;
}
.mw_wp_form .error::before{
 content: '';
    position: absolute;
    display: block;
    width: 0;
    height: 0;
    left: 10px;
    bottom: -10px;
    border-top: 10px solid #fbcdcd;
    border-right: 8px solid transparent;
    border-left: 8px solid transparent;
}
.primary-btn{
    background-color: #297442;
    border-radius: 50px;
    color: #ffffff;
    cursor: pointer;
    display: inline-block;
    font-size: 1.125em;
    padding: .667em 1.333em;
    text-align: center;
    text-decoration: none;
    overflow-wrap: break-word;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width:769px) {
    .site-branding .site-title {
        margin-right: 1em;
    }
    .header-type--row1 .site-header__content {
        align-items: flex-end;
    }
    /*.global-nav {
        font-size: .813em;
    }
    .global-nav__menu > .menu-item {
        margin-left: 4px;
    }
   .global-nav__menu > .menu-item > a {
        color: var(--font-white);
        padding: 1.25em 1.5em;
        border-radius: 6px 6px 0 0;
        transition: .3s;
        background: var(--header-bg);
        white-space: nowrap;
    }*/
    .global-nav__menu > .menu-item > a:hover, .global-nav__menu > .menu-item.current-menu-item > a {
        background: url("assets/images/bg.jpg");
        color: var(--header-bg);
    }
    .global-nav__menu > .menu-item > a:after, .global-nav__menu > .menu-item > a:hover:after {
        display: none;
    }
    .global-nav__menu .sub-menu {
        width: 100%;
    }
    .global-nav__menu .menu-item-has-children:hover .sub-menu, .global-nav__menu .menu-item-has-children a:focus + .sub-menu {
        visibility: visible;
        background-image: url("assets/images/bg.jpg");
    }
    /* .global-nav__menu > .menu-item:last-child {
        text-indent: 100%;
        white-space: nowrap;
        overflow: hidden;
        background: var(--header-bg);
    }
   .global-nav__menu > .menu-item:last-child {
        position: relative;
        width: 52px;
        overflow: visible;
        margin-left: 1em;
    }
    .global-nav__menu > .menu-item:last-child > a {
        text-indent: 100%;
        white-space: nowrap;
        overflow: hidden;
        background: url("assets/images/ico_mail_green.jpg") no-repeat center #fff;
        border-radius: 30px;
        height: 52px;
        width: 52px;
        position: absolute;
        padding: 0;
        bottom: 1em;
        right: 0;
    }
    .global-nav__menu .menu-item-has-children .sub-menu {
        box-shadow: 0 2px 2px rgba(117, 117, 117, .15);
    }
    .global-nav__menu .sub-menu a {
        padding: 1em 1.5em 1em 2em;
        color: var(--key-color)
    }*/
    .wp-block-search .wp-block-search__button {
        padding: .375em 1.625em;
    }
    .footer-nav__menu {
        flex-direction: row;
    }
    .footer-main .footer-nav__menu a {
        padding: 0 1em;
    }
    .footer-nav .menu-item {
        margin-left: .5em;
        margin-right: .5em;
    }
    .footer-nav .menu-item:after {
        right: 0;
        width: 1px;
        left: inherit;
    }
    .footer-nav li.menu-item:last-child:after {
        content: none;
    }
    .mw_wp_form dl {
        margin-left: 10%;
        margin-right: 10%;
    }
}
@media (min-width:1025px) {
   /* .site-branding {
        position: relative;
    }
    .logo-motion {
        position: absolute;
        display: block;
        transform-origin: center bottom;
        animation: swing 2s linear infinite;
        animation-delay: 1s;
		top: calc(1em - 10px)!important;
        animation-iteration-count: 3;
        left: -15px!important;
    }
    .logo-motion:hover {
        position: absolute;
        display: block;
        transform-origin: center bottom;
        animation: swing 1s linear infinite;
        animation-delay: 1s;
        top: calc(1em - 10px)!important;
        left: -15px!important;
    }*/
    .global-nav {
        font-size: .938em;
    }
    .has-sidebar .archive__main, .has-sidebar .content__main {
        flex: 0 0 71.66667%;
        width: 71.66667%;
        padding: 2.5rem 80px;
    }
    .home.has-sidebar .archive__main, .home.has-sidebar .content__main {
        padding: 2.5rem 40px;
    }
    .archive.has-sidebar .archive__main, .archive.has-sidebar .content__main, .search.has-sidebar .archive__main, .search.has-sidebar .content__main {
        padding: 0;
    }
    .archive.has-sidebar .content__main.not-found {
        padding: 2.5rem 80px;
    }
    .has-background .singular-header__thumbnail {
        margin: -2.5rem -80px 0;
    }
    /*.has-sidebar .archive__item.is-card:nth-child(2n) {
        margin-right: 1.5em;
    }*/
    .has-sidebar .archive__item.is-card:nth-child(3n) {
        margin-right: 0;
    }
    .has-sidebar .archive__item.is-card {
        flex: 0 0 calc(32.78% - 0.75em);
        width: calc(32.78% - .75em);
    }
    .entry-content p {
        line-height: 1.8;
    }
    .sidebar {
        flex: 0 0 25%;
        width: 25%;
    }
    .has-background .sidebar__fixed > *, .has-background .sidebar__widget > * {
        padding: 0;
    }
    .content__main {
        max-width: 860px;
    }
    .page-template-template-one-column .content__main {
        max-width: 960px;
        padding-left: 80px;
        padding-right: 80px;
    }
    .sidebar__widget .widget_archive {
        text-align: center;
    }
    dl.pofile-txt {
        display: flex;
        flex-wrap: wrap;
        font-size: .875em;
    }
    dl.pofile-txt dt {
        margin-top: 0;
        width: 8.5em;
        white-space: nowrap;
        color: #297442;
        text-align: right;
        margin-bottom: .5em;
        line-height: 1.5;
    }
    dl.pofile-txt dd {
        margin-left: 0;
        margin-bottom: .5em;
        width: calc(100% - 8.5em);
        line-height: 1.7;
    }
    .pofile-box .wp-block-button {
        text-align: right;
    }
    .pofile-box .wp-block-button .wp-block-button__link {
        font-size: .875em;
    }
    .mw_wp_form dd.button-align span {
        width: 33%;
    }
}
@keyframes swing {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(-5deg);
    }
}

/*ダウンロードボタン*/
.archive__item.is-card .archive__text button {
margin-top: 1em;
width: 100%;
padding: 1em .5em;
font-weight: bold;
font-size: .935em;
border-radius: 4px;
border:none;
}
/*ヘッダー修正のため*/
header#masthead {
    height: 80px;
}
@media (min-width: 901px){
	.header-type--row1 .global-nav {
    height: 75px;
}
.global-nav{
	background-color:transparent;
}
}
.global-nav__menu > .menu-item > a{
	background:transparent;
}
.global-nav__menu > .menu-item:last-child{
	background:transparent;
}
img.logo-motion {
    width: 22%;
}
/*@media (min-width: 1025px) {
.logo-motion {
    top: 50%;
    transform: translateY(-50%) !important;
}
	.logo-motion:hover {
    top: 50% !important;
    transform: translateY(-50%) !important;
}
}*/
@media (min-width: 901px){
.header-type--row1 .site-branding {
    width: 28%;
    display: flex;
    height: 80px;
    align-items: center;
}
}
@media (min-width: 901px){
.global-nav__menu > .menu-item > a{
padding: 0;
}
}
@media (max-width: 900px){
	.site-header button {
    color: var(--mobile-nav-open);
}
	.global-nav__toggle {
    display: block;
    cursor: pointer;
}
	.global-nav {
    display: block;
    visibility: hidden;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: var(--mobile-nav-container-padding) 2em 2em;
    overflow: auto;
    background-color: var(--mobile-nav-bg);
    opacity: 0;
    transition: all .3s;
}
	   .global-nav__menu>.menu-item>a {
        display: block;
        height: auto;
        padding: .5em 0;
    }
	   .global-nav__container {
        height: auto;
        max-height: none;
        margin-right: auto;
        margin-left: auto;
        padding: 0 .5em;
    }
}
@media (min-width: 901px) {
    .global-nav__menu > .menu-item:last-child > a {
        text-indent: 100%;
        white-space: nowrap;
        overflow: hidden;
        background: url(assets/images/ico_mail_green.jpg) no-repeat center #fff;
        border-radius: 30px;
        height: 52px;
        width: 52px;
        position: absolute;
        padding: 0;
        bottom: 1em;
        right: 0;
    }
}
@media (max-width: 900px) {
    .global-nav__menu {
        display: block;
        height: auto;
    }
}
@media (min-width: 901px) {
    .global-nav__menu > .menu-item > a {
        color: var(--font-white);
		padding: 1.25em .3em;
        border-radius: 6px 6px 0 0;
        transition: .3s;
        background: var(--header-bg);
        white-space: nowrap;
    }
}

@media (max-width: 900px) {
    .global-nav__menu>.menu-item {
        margin-top: .5em;
        margin-left: 0;
        text-align: left;
    }
}
@media (min-width: 900px) {
    .global-nav__menu > .menu-item {
        margin-left: 4px;
    }
}
@media (min-width: 901px) {
    .global-nav__menu .menu-item-has-children .sub-menu {
        box-shadow: 0 2px 2px rgba(117, 117, 117, .15);
    }
}
@media (max-width: 900px) {
    .global-nav__menu.is-open .sub-menu {
        visibility: visible;
        opacity: 1;
    }
}
@media (max-width: 900px) {
    .global-nav__menu .sub-menu {
        z-index: 0;
        position: relative;
        top: 0;
        margin-left: 1em;
        white-space: normal;
    }
	.site-title img {
    max-width: 300px;
		width: calc(100vw - 80px);
}
}
@media (min-width: 901px) {
    .global-nav__menu .sub-menu a {
        padding: 1em 1.5em 1em 2em;
        color: var(--key-color);
    }
}
@media (min-width: 901px) {
    .global-nav__menu > .menu-item:last-child {
        position: relative;
        width: 52px;
        overflow: visible;
        margin-left: 1em;
    }
}
@media (min-width: 901px) {
    .global-nav__menu > .menu-item:last-child {
        text-indent: 100%;
        white-space: nowrap;
        overflow: hidden;
        background: var(--header-bg);
    }
}
@media (max-width: 900px) {
    .global-nav__container .global-nav__menu, .global-nav__container .global-nav__search {
        max-width: var(--mobile-global-nav-width);
        margin-right: auto;
        margin-left: auto;
    }
}
@media (min-width:1000px){
    .global-nav__menu > .menu-item > a {
    padding: 1.25em .5em;
}

@media (min-width:1100px) {
    .site-branding {
        position: relative;
    }
    .logo-motion {
        position: absolute;
        display: block;
        transform-origin: center bottom;
        animation: swing 2s linear infinite;
        animation-delay: 1s;
		top: calc(1em - 10px)!important;
        animation-iteration-count: 3;
        left: -15px!important;
    }
    .logo-motion:hover {
        position: absolute;
        display: block;
        transform-origin: center bottom;
        animation: swing 1s linear infinite;
        animation-delay: 1s;
        top: calc(1em - 10px)!important;
        left: -15px!important;
    }
    .global-nav__menu > .menu-item > a {
    padding: 1.25em .8em;
}
}
