/*
Theme Name: マイム コーポレートサイト
Description: 株式会社マイムの固定ページと共通パーツ
Template: generatepress
Version: 1.1.0
*/
@font-face {font-family: 'Maimu Jost'; src: url(assets/fonts/Jost-Italic.ttf) format('truetype'); font-style: italic; font-weight: 400; font-display: swap;}
:root {
	--maimu-green: #6aaf32;
	--maimu-blue: #1d78d2;
	--maimu-round: 'Maimu Zen Maru', 'Hiragino Maru Gothic ProN', sans-serif;
	--maimu-text: 'Maimu Sawarabi', 'Hiragino Kaku Gothic ProN', sans-serif;
}
body {background: #fff; color: #111; font-family: var(--maimu-text);}
.maimu-header, .maimu-footer, .maimu-hero {font-family: var(--maimu-round);}
.maimu-header *, .maimu-footer *, .maimu-page * {box-sizing: border-box;}
.maimu-header a, .maimu-footer a {text-decoration: none; color: inherit;}
.maimu-header a:focus-visible, .maimu-footer a:focus-visible, .return-top:focus-visible, .maimu-toggle:focus-visible {outline: 3px solid #075789; outline-offset: 4px;}
.maimu-header {min-height: 100px; padding: 16px max(16px, 1vw) 23px max(24px, 1.6vw); display: flex; align-items: center; justify-content: space-between; gap: 32px; background: #fff; position: relative; z-index: 2;}
.maimu-brand img, .footer-company img {display: block; width: 100%;}
.maimu-brand {display: block; width: clamp(200px, 18.53vw, 278px); flex-shrink: 0;}
#site-navigation {background: transparent; font-family: inherit; margin: 0;}
#site-navigation .inside-navigation {padding: 0;}
#site-navigation .menu-toggle {display: none;}
#site-navigation ul, .footer-menus ul {list-style: none; padding: 0; margin: 0;}
#site-navigation .main-nav > ul {display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: clamp(7px, 1.08vw, 17px);}
#site-navigation a {color: #111; display: block; padding: 3px 13px; border-radius: 11px; line-height: 1.5; font-size: clamp(16px, 1.27vw, 19px); letter-spacing: .06em; white-space: nowrap;}
#site-navigation .current-menu-item > a, #site-navigation a:hover {color: #15230d; background: linear-gradient(110deg,#60ba77,#e8ffa3);}
#site-navigation .maimu-contact-link > a, .footer-actions a {background: var(--maimu-green); color: #fff; border-radius: 50px; font-weight: 500; text-align: center;}
#site-navigation .maimu-contact-link > a {min-width: clamp(145px,12.7vw,190px); padding: 11px 22px;}
#site-navigation .maimu-contact-link > a:hover, .footer-actions a:hover {background: #538827; color: #fff;}
.maimu-header .maimu-mobile-control, .maimu-toggle, #site-navigation[hidden], .maimu-toggle[hidden] {display: none;}
body.page #page {max-width: none; padding: 0; background: #fff;}
body.page #content {display: block; padding: 0;}
body.page #primary {float: none; width: 100%;}
body.page #main {margin: 0;}
.maimu-hero {min-height: 301px; display: grid; align-items: center; background: #d5f9ab url(assets/hero-gradient.webp) center / 100% 100% no-repeat; position: relative; isolation: isolate;}
.maimu-hero::before {content: ''; position: absolute; inset: 0; z-index: -1; background: url(assets/hero-ring.svg) max(5.05vw, 12px) center / auto 95% no-repeat; opacity: .49; pointer-events: none;}
.hero-inner {width: min(954px, calc(100% - 80px)); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 36px; padding: 20px 0;}
.hero-title {padding-left: 25px; min-width: 0; flex: 1;}
.hero-title h1 {font: 500 clamp(28px,2.2vw,33px)/1.35 var(--maimu-round); color: #333; letter-spacing: .14em; overflow-wrap: anywhere; margin: 0;}
.hero-word {display: block; margin: -3px 0 0 min(8.65vw,130px); max-width: calc(100% - min(8.65vw,130px));}
span.hero-word {font: italic 400 80px/.84 'century-gothic', 'Century Gothic', 'Maimu Jost', sans-serif; letter-spacing: .025em; position: relative; top: -1px; -webkit-text-stroke: 1px #fff; color: transparent; overflow-wrap: anywhere;}
.hero-photo {width: 47.17%; aspect-ratio: 450/260; overflow: hidden; border-radius: 18px;}
.hero-photo img {width: 100%; height: 100%; object-fit: cover; display: block;}
.maimu-body {position: relative; isolation: isolate; overflow: clip; padding: 62px 30px 93px;}
.maimu-body::before, .maimu-body::after {content: ''; position: absolute; z-index: -1; background-repeat: no-repeat; pointer-events: none;}
.maimu-body::before {width: min(38.35vw,575px); aspect-ratio: 575/723; right: max(-16.42vw,-246px); top: -20px; background-image: url(assets/leaf-right.webp); background-size: contain;}
.maimu-body::after {width: min(40.3vw,604px); aspect-ratio: 604/689; left: max(-18.9vw,-284px); bottom: max(-16.55vw,-248px); background-image: url(assets/leaf-left.webp); background-size: contain;}
.maimu-copy {width: min(100%,800px); margin: auto; display: flow-root; font: 400 17px/1.765 var(--maimu-text); letter-spacing: .055em; overflow-wrap: anywhere;}
.maimu-copy > :first-child {margin-top: 0;}
.maimu-copy > :last-child {margin-bottom: 0;}
.maimu-copy p {margin: 0 0 1.35em;}
.maimu-copy figure {max-width: 100%;}
.maimu-copy a {text-decoration: underline;}
.maimu-contact {min-height: 265px; background: linear-gradient(#ffffff80,#ffffff80), #fff url(assets/contact-gradient.webp) center / 100% 100% no-repeat; text-align: center; padding: 29px 24px 43px; position: relative;}
.maimu-contact h2 {font: 500 26px/1.4 var(--maimu-round); color: #111; letter-spacing: .08em; margin: 0;}
.contact-word {display: block; width: 164px; margin: -2px auto 0;}
.contact-options {display: flex; justify-content: center; gap: 54px; align-items: end; margin-top: 34px;}
.contact-options p {color: #105f94; font-size: 17px; font-weight: 500; margin: 0 0 6px;}
.contact-options a {color: #fff; background: #1f80a9; border-radius: 99px; min-height: 54px; display: inline-flex; gap: 6px; align-items: center; justify-content: center; padding: 6px 17px; font-size: 20px; font-weight: 500;}
.contact-options a:hover {background: #146487; color: white;}
.contact-number {display: inline-flex; align-items: baseline; white-space: nowrap; line-height: 1;}
.contact-number small {font-size: 27.08px; font-weight: 500; transform: translateY(-4px);}
.contact-number strong {font-size: 1em; font-weight: 900;}
.contact-hyphen {position: relative; top: -1.5px;}
.contact-options .contact-phone {min-width: 269px; font-size: 38.57px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.25;}
.contact-options .contact-pill:not(.contact-phone) {font-size: 20px; letter-spacing: -.035em; padding-inline: 14px;}
.contact-pill img {width: 35px; height: 34px; object-fit: contain;}
.maimu-footer .return-top {padding: 0; border: 0; font: inherit; position: fixed; z-index: 5; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); background: transparent; border-radius: 40px 40px 6px 6px; text-align: center; color: #467d1d; font-size: 16px; letter-spacing: .05em;}
.maimu-footer .return-top {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(6px);
	transition: opacity .3s ease-out, transform .3s ease-out, visibility 0s .3s;
}
.maimu-footer .return-top.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
	transition-delay: 0s;
}
.return-top span {display: grid; width: 70px; height: 70px; place-items: center; background: var(--maimu-green); border: 2px solid #fff; border-radius: 50%; margin: 0 auto;}
.return-top span::before {content: ''; width: 21px; height: 21px; border: solid white; border-width: 3px 3px 0 0; transform: translateY(5px) rotate(-45deg);}
.footer-inner {width: min(1220px,calc(100% - 64px)); margin: auto; padding: 40px 0; display: grid; grid-template-columns: minmax(0,345fr) minmax(0,613fr) minmax(0,190fr); gap: clamp(18px,2.4vw,36px); align-items: start;}
.footer-company {min-width: 0;}
.footer-company img {max-width: 320px;}
.footer-company address {font: normal 400 14px/1.6 var(--maimu-round); color: #333; margin: 9px 0 0;}
.footer-menus {display: grid; grid-template-columns: 1fr 1.02fr 1fr; margin-top: 5px;}
.footer-menus nav {min-width: 0; padding: 0 clamp(8px,1vw,16px);}
.footer-menus nav:first-child {padding-left: 0;}
.footer-menus nav + nav {border-left: 1px solid #92c5fd;}
.footer-menus h2 {color: #333; font: 500 clamp(16px,1.27vw,19px)/1.35 var(--maimu-round); margin: 0 0 9px; padding-left: 29px; background: url(assets/leaf-mark.svg) left .2em/24px auto no-repeat;}
.footer-menus li {font-size: 14px; line-height: 1.5; margin-left: 29px; padding-left: .65em; position: relative; overflow-wrap: anywhere;}
.footer-menus ul {display: grid; row-gap: 4px;}
.footer-menus li::before {content: '-'; position: absolute; left: 0;}
.footer-menus a:hover, .footer-company a:hover {text-decoration: underline;}
.footer-actions {display: grid; gap: 18px; margin-top: 6px;}
.footer-actions a {display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 19px; min-height: 50px; padding: 6px 10px; box-shadow: 1px 2px 5px #0005;}
.footer-actions img {width: 33px; height: 30px;}
@media (max-width: 1080px) {
	.footer-inner {grid-template-columns: minmax(240px, .95fr) 2fr; row-gap: 22px;}
	.footer-actions {display: flex; grid-column: 1/-1; justify-content: flex-end; margin: 0;}
	.footer-actions a {min-width: 170px;}
}
@media (max-width: 860px) {
	.maimu-header {min-height: 74px; padding: 14px 22px; flex-wrap: wrap; gap: 14px;}
	.maimu-brand {width: 190px;}
	.maimu-header .maimu-mobile-control {display: block; margin-left: auto;}
	.maimu-toggle:not([hidden]) {display: flex; flex-direction: column; gap: 6px; align-items: center; background: transparent; color: #31591d; font: 700 12px/1 var(--maimu-round); padding: 8px; border: 0; margin-left: auto; min-height: 44px;}
	.maimu-toggle span {width: 24px; height: 13px; border-block: 2px solid; position: relative;}
	.maimu-toggle span::after {content: ''; height: 2px; background: currentColor; position: absolute; left: 0; right: 0; top: 4px;}
	#site-navigation {width: 100%;}
	#site-navigation .main-nav > ul {display: grid; gap: 5px; padding: 2px 0 10px;}
	#site-navigation a {padding: 10px 15px;}
	.hero-inner {width: calc(100% - 48px); gap: 15px;}
	.hero-title {padding-left: 0;}
	.hero-word {margin-left: 6vw; max-width: calc(100% - 6vw);}
	.maimu-body::before, .maimu-body::after {opacity: .29;}
	.return-top span {width: 48px; height: 48px;}
	.return-top span::before {width: 15px; height: 15px;}
	.maimu-footer .return-top {right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); font-size: 12px;}
	.contact-options {gap: 24px;}
}
@media (max-width: 650px) {
	.maimu-header {padding: 10px 16px; min-height: 66px;}
	.maimu-brand {width: 173px;}
	.maimu-hero {min-height: 0;}
	.hero-inner {display: grid; width: calc(100% - 44px); gap: 16px; padding: 24px 0;}
	.hero-title {width: 100%;}
	.hero-title h1 {font-size: 26px;}
	.hero-word {width: 132px; margin: -3px 0 0 56px;}
	span.hero-word {width: auto; max-width: calc(100% - 56px); font-size: 43px;}
	.hero-photo {width: 100%; aspect-ratio: 2.3; border-radius: 14px;}
	.maimu-hero::before {background-position: -24px -29px; background-size: 190px auto;}
	.maimu-body {padding: 40px 24px 54px;}
	.maimu-body::before {right: -25vw;}
	.maimu-body::after {left: -29vw; bottom: -11vw;}
	.maimu-copy {font-size: 16px; line-height: 1.85;}
	.maimu-contact {padding: 29px 22px 49px;}
	.maimu-contact h2 {font-size: 23px;}
	.contact-word {width: 129px;}
	.contact-options {display: grid; gap: 17px; margin-top: 22px;}
	.contact-options p {font-size: 15px; margin-bottom: 5px;}
	.contact-options a {width: 100%; min-height: 50px; font-size: 17px;}
	.contact-options .contact-phone {min-width: 0; font-size: 32px;}
	.contact-number small {transform: translateY(-1.5px);}
	.contact-hyphen {top: -.5px;}
	.contact-options .contact-pill:not(.contact-phone) {font-size: 17px; letter-spacing: 0;}
	.footer-inner {width: calc(100% - 44px); padding: 38px 0 28px; grid-template-columns: 1fr; gap: 24px;}
	.footer-company img {width: 238px;}
	.footer-menus {grid-template-columns: 1fr; margin: 0;}
	.footer-menus nav, .footer-menus nav + nav {padding: 13px 0; border: 0; border-top: 1px solid #d7e6dc;}
	.footer-menus h2 {font-size: 17px;}
	.footer-menus ul {display: flex; flex-wrap: wrap; column-gap: 12px; padding-left: 29px;}
	.footer-menus li {margin: 0;}
	.footer-menus a {display: inline-block; padding: 4px 0;}
	.footer-menus li::before {top: 4px;}
	.footer-actions {display: grid; grid-template-columns: 1fr 1fr; gap: 12px;}
	.footer-actions a {min-width: 0; font-size: 16px; min-height: 46px;}
	.footer-actions img {width: 23px;}
}

.maimu-drawer {position: fixed; inset: 0 0 0 auto; width: min(380px, 88vw); max-width: 100%; height: 100%; max-height: none; box-sizing: border-box; padding: max(18px, env(safe-area-inset-top)) 20px max(26px, env(safe-area-inset-bottom)); margin: 0 0 0 auto; border: 0; color: #182515; background: white; overflow-y: auto; overscroll-behavior: contain; font-family: var(--maimu-round);}
.maimu-drawer[open] {animation: maimu-drawer-in .24s ease-out;}
.maimu-drawer::backdrop {background: rgb(21 38 20 / .35);}
.maimu-drawer.is-closing {animation: maimu-drawer-out .18s ease-in forwards;}
@keyframes maimu-drawer-in {from {transform: translateX(100%);} to {transform: translateX(0);}}
@keyframes maimu-drawer-out {to {transform: translateX(100%);}}
html:has(.maimu-drawer[open]) {overflow: hidden;}
.drawer-close {display: flex; align-items: center; gap: 8px; margin: 0 0 15px auto; min-height: 44px; padding: 5px 10px; color: #31591d; background: white; font: 500 16px/1.3 var(--maimu-round);}
.drawer-close span {font-size: 26px;}
#site-navigation .sub-menu {padding: 6px; background: #fff; border-radius: 12px;}
#site-navigation .sub-menu a {white-space: normal; border-radius: 6px; padding: 8px 12px; font-size: 16px; line-height: 1.45;}
#site-navigation .menu-item-has-children > a {display: flex; align-items: center; justify-content: space-between; padding-right: 0;}
#site-navigation .dropdown-menu-toggle {display: inline-grid; place-items: center; flex-shrink: 0; height: auto; margin: 0; padding: 0; width: 36px; align-self: stretch; color: #31591d;}
#site-navigation .dropdown-menu-toggle:focus-visible {outline: 2px solid #075789; border-radius: 8px;}
.drawer-close:is(:hover,:focus) {background: #edf5e9; color: #31591d;}
@media (min-width: 861px) {
	#site-navigation .main-nav > ul > li {isolation: isolate;}
	#site-navigation .main-nav > ul > li:hover {z-index: 1;}
	#site-navigation .main-nav > ul > li > .sub-menu {width: min(270px, 24vw); padding: 9px; box-shadow: 0 7px 24px #253b202b;}
	#site-navigation .sub-menu .sub-menu {width: min(250px, 24vw);}
}
@media (max-width: 860px) {
	#site-navigation .inside-navigation, #site-navigation .main-nav {display: block; width: 100%;}
	#site-navigation .main-nav > ul {grid-template-columns: 1fr; justify-content: stretch; padding: 0;}
	#site-navigation a {min-height: 44px; white-space: normal;}
	#site-navigation .dropdown-menu-toggle {width: 44px;}
	#site-navigation .sub-menu {width: 100%; padding: 0; box-shadow: none;}
	#site-navigation .sub-menu.toggled-on {padding: 3px 0 3px 12px;}
	.footer-inner {padding-bottom: 82px;}
}
@media (prefers-reduced-motion: reduce) {
	.maimu-footer .return-top {transition: none; transform: none;}
	.maimu-drawer[open], .maimu-drawer.is-closing {animation-duration: .001s;}
}
