/*
Theme Name: newmachimachi2
Theme URI: https://wordpress.org/themes/twentytwentytwo/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: Built on a solidly designed foundation, Twenty Twenty-Two embraces the idea that everyone deserves a truly unique website. The theme’s subtle styles are inspired by the diversity and versatility of birds: its typography is lightweight yet strong, its color palette is drawn from nature, and its layout elements sit gently on the page. The true richness of Twenty Twenty-Two lies in its opportunity for customization. The theme is built to take advantage of the Site Editor features introduced in WordPress 5.9, which means that colors, typography, and the layout of every single page on your site can be customized to suit your vision. It also includes dozens of block patterns, opening the door to a wide range of professionally designed layouts in just a few clicks. Whether you’re building a single-page website, a blog, a business website, or a portfolio, Twenty Twenty-Two will help you create a site that is uniquely yours.
Requires at least: 5.9
Tested up to: 6.2
Requires PHP: 5.6
Version: 1.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentytwo
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, accessibility-ready

Twenty Twenty-Two WordPress Theme, (C) 2021 WordPress.org
Twenty Twenty-Two is distributed under the terms of the GNU GPL.
*/

/*
 * Font smoothing.
 * This is a niche setting that will not be available via Global Styles.
 * https://github.com/WordPress/gutenberg/issues/35934
 */

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	font-size:1.6rem;line-height:2;	color:#333;
	font-family: YakuHanMP,游明朝体,serif!important;
}

/*
 * Text and navigation link styles.
 * Necessary until the following issue is resolved in Gutenberg:
 * https://github.com/WordPress/gutenberg/issues/27075
 */

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25ch;
}

a:hover,
a:focus {
	text-decoration-style: dashed;
}

a:active {
	text-decoration: none;
}

.wp-block-navigation .wp-block-navigation-item a:hover,
.wp-block-navigation .wp-block-navigation-item a:focus {
	text-decoration: underline;
	text-decoration-style: solid;
}

/*
 * Search and File Block button styles.
 * Necessary until the following issues are resolved in Gutenberg:
 * https://github.com/WordPress/gutenberg/issues/36444
 * https://github.com/WordPress/gutenberg/issues/27760
 */

.wp-block-search__button,
.wp-block-file .wp-block-file__button {
	background-color: var(--wp--preset--color--primary);
	border-radius: 0;
	border: none;
	color: var(--wp--preset--color--background);
	font-size: var(--wp--preset--font-size--medium);
	padding: calc(.667em + 2px) calc(1.333em + 2px);
}

/*
 * Button hover styles.
 * Necessary until the following issue is resolved in Gutenberg:
 * https://github.com/WordPress/gutenberg/issues/27075
 */

.wp-block-search__button:hover,
.wp-block-file .wp-block-file__button:hover,
.wp-block-button__link:hover {
	opacity: 0.90;
}

/*
 * Alignment styles.
 * These rules are temporary, and should not be relied on or
 * modified too heavily by themes or plugins that build on
 * Twenty Twenty-Two. These are meant to be a precursor to
 * a global solution provided by the Block Editor.
 *
 * Relevant issues:
 * https://github.com/WordPress/gutenberg/issues/35607
 * https://github.com/WordPress/gutenberg/issues/35884
 */

.wp-site-blocks,
body > .is-root-container,
.edit-post-visual-editor__post-title-wrapper,
.wp-block-group.alignfull,
.wp-block-group.has-background,
.wp-block-cover.alignfull,
.is-root-container .wp-block[data-align="full"] > .wp-block-group,
.is-root-container .wp-block[data-align="full"] > .wp-block-cover {
	padding-left: var(--wp--custom--spacing--outer);
	padding-right: var(--wp--custom--spacing--outer);
}

.wp-site-blocks .alignfull,
.wp-site-blocks > .wp-block-group.has-background,
.wp-site-blocks > .wp-block-cover,
.wp-site-blocks > .wp-block-template-part > .wp-block-group.has-background,
.wp-site-blocks > .wp-block-template-part > .wp-block-cover,
body > .is-root-container > .wp-block-cover,
body > .is-root-container > .wp-block-template-part > .wp-block-group.has-background,
body > .is-root-container > .wp-block-template-part > .wp-block-cover,
.is-root-container .wp-block[data-align="full"] {
	margin-left: calc(-1 * var(--wp--custom--spacing--outer)) !important;
	margin-right: calc(-1 * var(--wp--custom--spacing--outer)) !important;
	width: unset;
}

/* Blocks inside columns don't have negative margins. */
.wp-site-blocks .wp-block-columns .wp-block-column .alignfull,
.is-root-container .wp-block-columns .wp-block-column .wp-block[data-align="full"],
/* We also want to avoid stacking negative margins. */
.wp-site-blocks .alignfull:not(.wp-block-group) .alignfull,
.is-root-container .wp-block[data-align="full"] > *:not(.wp-block-group) .wp-block[data-align="full"] {
	margin-left: auto !important;
	margin-right: auto !important;
	width: inherit;
}

/*
 * Responsive menu container padding.
 * This ensures the responsive container inherits the same
 * spacing defined above. This behavior may be built into
 * the Block Editor in the future.
 */

.wp-block-navigation__responsive-container.is-menu-open {
	padding-top: var(--wp--custom--spacing--outer);
	padding-bottom: var(--wp--custom--spacing--large);
	padding-right: var(--wp--custom--spacing--outer);
	padding-left: var(--wp--custom--spacing--outer);
}

/*
 * Improves spacing for the legacy Post Comments block.
 * https://core.trac.wordpress.org/ticket/57560
 */

.wp-block-post-comments ol.commentlist ul.children {
	margin-top: 1rem;
	margin-bottom: 1rem;
}

.wp-block-post-comments ol.commentlist ul.children li:not(:last-child) {
	margin-bottom: 1rem;
}

/**/
.home .wp-block-post-template.is-flex-container {display:block;}
.home ul.is-flex-container li {display:inline-block;width:23%;margin:0 1% 60px;vertical-align: top}
.home ul.is-flex-container li figure {width:100%;overflow:hidden;margin-bottom:5px}
.home ul.is-flex-container li img{ transition:1s all;}
.home ul.is-flex-container li img:hover{transform:scale(1.1,1.1);transition:1s all;}
.wp-block-columns {margin-bottom:20px;}
.wp-block-site-logo {margin-left:5px}

@media screen and (max-width: 1100px) {
.home ul.is-flex-container li {width:30%!important;}
}
@media screen and (max-width:860px) {
.home ul.is-flex-container li {width:47%!important;margin:0 6% 40px 0;}
.home ul.is-flex-container li:nth-child(even) {margin:0 0 40px 0;}
}


h2.h2-title {font-family: YakuHanMP,游明朝体,serif!important;color:#333;vertical-align: top;margin-block-start:0em;
    margin-block-end:0;margin-bottom:5px}
h2.h2-title a {color:#333;font-size:22px;text-decoration:none;line-height:28px;font-weight:bold}

.h2-title-2nd{font-family: YakuHanMP,游明朝体,serif!important;color:#333;vertical-align: top;line-height:60px;margin-block-start:0em; margin-block-end:0;font-size:50px;margin-bottom:30px!important;}
.txt-2nd-chatch{line-height:40px;font-size:30px;}
.kiji-title-ar {font-family: YakuHanMP,游明朝体,serif!important;color:#333;font-size:20px;text-decoration:none;line-height:30px;font-weight:bold}
.kiji-title-ar a {text-decoration:none;}

.tit-cat {font-family: YakuHanMP,游明朝体,serif!important;color:#333;vertical-align: top;margin-block-start:0em;margin-block-end:0;font-size:22px;line-height:32px;}

@media screen and (max-width:767px) {
h2.h2-title a {font-size:18px;line-height:23px}
.h2-title-2nd{line-height:40px;font-size:28px;}

}



.home-cat a{font-size:13px;font-weight:normal;color:#918b8a;letter-spacing:.5px}
.home-cat a:before {content: "#";}
.txt-home-day {font-size:13px;font-weight:normal;color:#918b8a;letter-spacing:.5px}
.txt-arc-day{font-size:14px;font-weight:normal;color:#918b8a;letter-spacing:.5px}
.txt-home-chatch {font-size:14px;font-weight:normal;line-height:18px;margin-bottom:10px;font-family: YakuHanMP,游明朝体,serif!important;color:#333}


.txt-2nd-chatch {font-size:25px;font-weight:normal;line-height:35px;margin:0 0 10px;font-family: YakuHanMP,游明朝体,serif!important;color:#333}
.txt-arc-chatch  {font-size:12px;font-weight:normal;line-height:18px;margin-bottom:10px;font-family: YakuHanMP,游明朝体,serif!important;color:#333}

@media screen and (max-width:767px) {
.txt-2nd-chatch{line-height:28px;font-size:16px;}
}
.list-sns {letter-spacing:-.4em;text-align:right;font-size:13px;line-height:13px;}
.list-sns li {width:30px;margin-left:5px;display:inline-block;/display:inline;/zoom:1;vertical-align:top;letter-spacing:normal;vertical-align:bottom;}
.list-sns li a {width:30px;height:30px;display:block;background:#ccc;color:#fff;text-decoration:none;border-radius: 50%;text-align:center;line-height:35px;transition: .3s;}
.list-sns li a:hover {opacity:.5}

/*TOPCATEGORY*/
#top-category {width:1400px;margin:auto;}
#top-category ul { width: 100%;display: flex;flex-direction: row;flex-wrap: wrap;justify-content: center;align-items:flex-start;list-style-type: disc;margin-block-start:0;margin-block-end:0;padding-inline-start:0;}
#top-category ul li { width: 30%;margin-right: 3.5%;font-weight: bold;position: relative; padding-left:0;list-style:none;}
#top-category ul li:nth-child(3n) {margin-right: 0;}
#top-category ul li .img-topcat{width:100%;height:100%;overflow: hidden;aspect-ratio:1;position: relative; }
#top-category ul li .img-topcat img {width:100%;height:auto;transition: transform .6s ease;aspect-ratio:1}
#top-category ul li .img-topcat .text-overlay {position: absolute;top: 0;left: 0;width: 100%;height: 100%;background-color: rgba(0, 0, 0, 0.5);color: #fff;display: flex;justify-content: center;align-items: center;opacity: 1;transition: opacity 0.3s ease;text-align:center;}
#top-category ul li .img-topcat .text-overlay .tit-topcat {font-size:1.2em;margin-bottom:5px;letter-spacing:0.1em;}
#top-category ul li .img-topcat .text-overlay .txt-topcat {font-size:.65em;line-height:1.4em;letter-spacing:0.1em; font-family: "Noto Sans JP", sans-serif;font-weight:400;}
#top-category ul li .img-topcat:hover .text-overlay {opacity: 0;}
#top-category ul li a:hover .img-topcat img {transform: scale(1.1);}
#top-category ul li a {text-decoration:none;display:block}
@media screen and (max-width:1400px) {
#top-category {width:auto;margin:0 25px;}
}
@media screen and (max-width:900px) {
#top-category ul li { width:47%;}
#top-category ul li:nth-child(3n) {margin-right:3%;}
#top-category ul li:nth-child(2n) {margin-right:0;}
}
@media screen and (max-width:767px) {
#top-category ul li { width:100%;margin-right:0;}
#top-category ul li:nth-child(3n) {margin-right:0;}
}
/*画像マウスオーバー*/
.wp-block-post-featured-image {overflow: hidden;}
.wp-block-post-featured-image a img {transition: transform .6s ease;}
.wp-block-post-featured-image a:hover img {transform: scale(1.1)!important;}

/**/
.home header {position:absolute;height:auto;z-index:10000!important}
.home .wp-block-site-logo {width:300px!important}

/*CONTACT*/
.dl-contact {width:auto;margin:20px auto 60px;letter-spacing:-.4em;font-size:.8em}
.dl-contact p {display:inline-block;margin:0;padding:0}
@media screen and (max-width: 768px) {
.dl-contact {width:auto;margin:20px 15px 60px;}
}
.dl-contact dt,.dl-contact dd {display:inline-block;/display:inline;/zoom:1;vertical-align:middle;letter-spacing:normal;text-align:left;padding:15px 0;line-height:1.4em;}
.dl-contact dt {width:35%;padding-right:2%;}
.dl-contact dd {width:62%;margin-inline-start:0;}
.dl-contact dt sup {color:#e61874}
.form01 {width:30%; padding:10px 5px;border: thin solid #666666;-webkit-appearance:none;}
.form02 {width:75%; padding:10px 5px;border: thin solid #666666;-webkit-appearance:none;}
.form03 {width:100%; padding:10px 5px;border: thin solid #666666;-webkit-appearance:none;}
@media screen and (max-width: 768px) {
.form02 {width:90%; padding:5px;}
}

.btn-02 input {background:#333;color:#fff;width:150px;padding:15px 0; border-style: none;cursor: pointer;font-size:110%;transition:.5s;margin-top:30px}
.btn-02 p {margin-block-start:0!important;margin-block-end:0!important;}
.btn-02:hover input {background:#ccc;color:#000}
.btn03 {background:#fff;color:#000;width:200px;padding:6px 0; border-style: none;cursor: pointer;margin-left:10px;}
.btn04 {background:#fff;color:#000;width:200px;padding:6px 0; border-style: none;cursor: pointer;margin-left:10px;font-size:110%;}
.btn04:hover {background:#333;}
input:disabled {background:#ccc}
#contact .sent #contact-in-in {display:none!important;}
@media screen and (max-width: 568px) {
.dl-contact dt {width:35%;padding-right:1%;font-size:.9em}
.dl-contact dd {width:63%;}
}

/*MENU*/
#g-nav{position:fixed;z-index:10;top:0;right:-100%;width:max(33%,400px);height:100vh;background-color:#fff;transition:all .6s;}
#g-nav.panelactive{right:0}
#g-nav-list{overflow:auto;-webkit-overflow-scrolling:touch;width:100%;height:100vh;position:relative;display:flex;align-items:center;padding:3rem;flex-direction:column}
#g-nav ul{position:relative;z-index:10;width:100%;margin-top:80px}
#g-nav li{list-style:none;text-align:left;}
#g-nav li a{color:#333;text-decoration:none;padding:0;display:block;text-transform:uppercase;letter-spacing:.1em;font-weight:600;margin-bottom:.6rem;font-style:normal;font-size:.8em;transition:0.5s;font-weight:normal}
#g-nav li a:hover{color:#666}
.underline{position:absolute;bottom:-2px;left:0;display:block;width:0;height:1px;background-color:#fff}
.list_item a{position:relative;display:inline-block}
#g-nav ul li ul{margin-top:40px;padding-inline-start:0px;}
#g-nav ul li ul.btn-sns  {text-align:left;}
#g-nav ul li ul.btn-sns li {width:35px;margin-right:5px;display:inline-block;/display:inline;/zoom:1;vertical-align:top;letter-spacing:normal;vertical-align:bottom;}
#g-nav ul li ul.btn-sns li a {width:35px;height:35px;display:block;background:#ccc;color:#fff;text-decoration:none;border-radius: 50%;text-align:center;line-height:35px;transition: .3s;}
#g-nav ul li ul.btn-sns li a:hover {opacity:.5}

@media screen and (max-width: 767px) {
#g-nav li a{text-decoration:none;padding:0;display:block;text-transform:uppercase;letter-spacing:0;font-size:clamp(.9rem,1.027rem + 0.26vw,1.2rem)}
#g-nav{width:max(50%,300px)}
#g-nav-list{width:100%;padding:2rem}

}
.openbtn{position:fixed;z-index:30;top:5px;right:5px;cursor:pointer;width:60px;height:60px;color:hsla(0,0%,0%,1.00);background-color:#fff;}
.openbtn svg{width:60px;height:60px}
.nc-int-icon{fill:#333;}
.top-bt{position:fixed;width:40px;height:auto;z-index:888;right:10px;bottom:10px}
.icon-tit {margin-right:5px;vertical-align:middle;}

#backtotop{bottom:5px;height:30px;position:fixed!important;right:5px;width:30px;text-indent:-9999px;z-index:10000}
#backtotop a{background:url(img/btn_backtotop2.png) no-repeat scroll 0 0 transparent;display:block;height:30px;width:30px}
#backtotop a:hover{background:url(img/btn_backtotop2.png) no-repeat scroll 0 -30px transparent}



