/*
Theme Name: Haimu Original
Description: ハイム介護計画株式会社の公開サイトをもとに作成した、親テーマ不要のオリジナルテーマ。
Author: Haimu Kaigo Keikaku
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: haimu-original
Tags: custom-logo, custom-menu, featured-images, footer-widgets, theme-options, blog
*/

/* Font Awesome 4.6.1, Dave Gandy; font under SIL OFL 1.1. */
@font-face { font-family: FontAwesome; src: url("assets/fonts/fontawesome-webfont.woff2") format("woff2"); font-weight: normal; font-style: normal; font-display: block; }
.fa { display: inline-block; font-family: FontAwesome; font-style: normal; font-weight: normal; line-height: 1; -webkit-font-smoothing: antialiased; }
.fa-map-marker::before { content: "\f041"; }.fa-phone::before { content: "\f095"; }.fa-envelope::before { content: "\f0e0"; }.fa-mobile::before { content: "\f10b"; }.fa-phone-square::before { content: "\f098"; }.fa-arrow-circle-o-right::before { content: "\f18e"; }

:root { --green: #0f9d58; --text: #777; --heading: #444; --header-offset: 0px; }
* { box-sizing: border-box; }
html { margin: 0; padding: 0; font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 85px; }
body { margin: 0; background: #fff; color: var(--text); font-family: "Open Sans", Helvetica, Arial, sans-serif; font-size: .9375rem; line-height: 1.7; overflow-wrap: break-word; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: #e86240; text-decoration: none; }
a:hover { color: #777; text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #135e96; outline-offset: 4px; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .9375rem; color: var(--heading); font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 400; line-height: 1.3; }
p { margin: 0 0 1.25rem; font-size: 20px; }
table { border-collapse: collapse; width: 100%; }
figure { margin: 0 0 1.25rem; }
.container, .header-container { width: 100%; max-width: 1140px; padding: 0 15px; margin: 0 auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { width: auto; height: auto; clip-path: none; z-index: 9999; padding: 12px 20px; background: #fff; color: #000; top: 10px; left: 10px; }
.admin-bar { --header-offset: 32px; }
.site-header { position: sticky; top: var(--header-offset); z-index: 100; height: 85px; background: #fff; transition: background .25s, height .25s; }
.site-header.is-transparent { position: fixed; left: 0; width: 100%; background: transparent; }
.site-header.is-scrolled { height: 70px; box-shadow: 0 5px 10px #3232320f; }
.site-header.is-transparent.is-scrolled { background: rgba(55,169,110,.9); }
.header-container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 20px; }
.site-branding { flex-shrink: 0; }
.site-title { color: #333; font-family: Montserrat, Helvetica, Arial, sans-serif; font-size: 23px; font-weight: 600; letter-spacing: 1px; line-height: 1; }
.site-title:hover { color: #333; text-decoration: none; }
.custom-logo { max-height: 70px; width: auto; }
.nav-menu { display: flex; list-style: none; margin: 0; padding: 0; }
.nav-menu li { position: relative; }
.nav-menu > li > a { display: block; padding: 30px 17px; color: #000; font-size: 12px; font-weight: 600; letter-spacing: 1px; white-space: nowrap; }
.nav-menu > li > a:hover { text-decoration: none; }
.nav-menu > li > a:hover::after { content: ""; position: absolute; bottom: 20px; left: 17px; right: 17px; border-bottom: 2px solid #000; }
.nav-menu .sub-menu { display: none; position: absolute; min-width: 200px; padding: 12px 0; margin: 0; list-style: none; background: #fff; box-shadow: 0 4px 12px #0002; }
.nav-menu li:hover > .sub-menu, .nav-menu li:focus-within > .sub-menu { display: block; }
.nav-menu .sub-menu a { display: block; padding: 8px 18px; color: #333; }
.nav-menu .sub-menu .sub-menu { left: 100%; top: 0; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 14px; cursor: pointer; color: #000; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 24px; height: 3px; background: currentColor; position: relative; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -8px; }.menu-bars::after { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { top: 0; transform: rotate(-45deg); }
.hero { position: relative; display: grid; place-items: center; min-height: 560px; height: 100vh; height: 100svh; text-align: center; overflow: hidden; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.5); }
.hero-inner { position: relative; z-index: 1; max-width: 1140px; width: 100%; padding: 20px 30px; }
.hero h1 { color: #000; font-size: 60px; font-weight: 900; letter-spacing: 1px; margin-bottom: 20px; }
.hero p { color: #000; }
.btn { display: inline-block; border: 1px solid transparent; padding: 11px 20px; font-size: 14px; line-height: 1.4; font-weight: 700; text-align: center; border-radius: 0; }
.btn:hover { text-decoration: none; }
.hero .btn { margin: 10px; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #0c7c46; color: #fff; }
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: #fff; color: #333; }
.infobg, .conceptbg, .facility1bg, .facility2bg, .companybg { padding: 50px 0; }
.infobg { background: #fff; }.conceptbg { background: #dfd; }
.concept, .facility, .companybox, .contactbox { width: 95%; max-width: 1130px; margin: 0 auto; }
.concept h2, .facility h2, .companybox h2, .contactbox h2 { text-align: center; font-size: 40px; font-weight: 700; padding-bottom: 20px; margin: 0; }
.concept p, .facility p { color: #000; }
.concept-row { display: flow-root; }
.concept-row > img { width: 350px; float: left; margin-right: 20px; }
.greeting-text p { padding-left: 20px; }
.greeting-toggle { display: none; }
.section-news { padding: 4.375rem 0; }
.news-heading { font-size: 36px; font-weight: 600; text-align: center; margin: 0 0 40px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.news-card { margin-bottom: 30px; min-width: 0; }
.news-image { display: block; }.news-image img { width: 100%; aspect-ratio: 350 / 200; object-fit: cover; }
.news-card-body { border: 1px solid #e9e9e9; border-top: 3px solid #e86240; padding: 25px 30px; }
.news-category { margin-bottom: 4px; }.news-category a { font-size: 12px; color: #999; font-weight: 700; }
.news-card h3 { font-size: 1.25rem; line-height: 1.5; margin-bottom: 15px; }.news-card h3 a { color: #444; }
.news-excerpt { font-size: 20px; margin-bottom: 20px; }
.news-read { color: #333; text-transform: uppercase; }.news-read span[aria-hidden] { margin-left: 8px; }
.news-more { text-align: center; margin: 5px 0 10px; }.news-more .btn { border-color: #ccc; color: #777; text-transform: uppercase; font-weight: 400; font-size: 12px; letter-spacing: 1px; }
.facility1bg { background: url("assets/images/bg2.jpg") repeat; }.facility2bg { background: #f8eed1; }
.facility h2 span { color: #888; font-size: 20px; }
.facilitybox { margin-top: 20px; color: #000; }
.facilitybox h3 { font-size: 25px; font-weight: 700; text-align: center; padding-bottom: 20px; margin: 0; }
.facility-row { display: flow-root; margin-bottom: 20px; }
.facility-row > img { width: 350px; float: left; margin: 0 20px 0 0; }
.facility-row.imgright > img { float: right; margin: 0 0 0 20px; }
.companybg { background: #eee; }.companybox { padding: 30px 0; }
.kaisha { margin-top: 10px; }.kaisha td, .kaisha th { padding: 20px; border: 1px solid #ccc; text-align: left; background: #fff; }
.kaisha th { background: #dedede; font-weight: 700; width: 22%; }
.contactbg { padding-bottom: 50px; text-align: center; }.contactbox h2 { padding: 50px 0 30px; }
.contact-details { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px 35px; padding: 0; margin: 20px 0 55px; list-style: none; text-align: left; font-size: 20px; }
.contact-details li { display: flex; align-items: center; gap: 7px; margin-bottom: 0; }
.contact-details .fa { color: #e86240; font-size: 25px; }
.contact-details li > span { color: #777; font-size: 30px; line-height: 1; width: 30px; text-align: center; }
.contact-details a { color: #777; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], input[type="password"], input[type="number"], select, textarea { display: block; width: 100%; padding: 0 12px; min-height: 45px; border: 0; border-radius: 3px; background: #eff1f5; color: #5c6b80; font-size: 1em; line-height: 45px; }
textarea { padding: .5em; line-height: 1.5; min-height: 120px; resize: vertical; }
input[type="submit"], button[type="submit"] { cursor: pointer; border: 0; background: var(--green); color: #fff; padding: 12px 20px; }
.inquiry { background: #fff; text-align: left; }.inquiry th, .inquiry td { border: 1px solid #d7d7d7; padding: 13px; }
.inquiry th { width: 30%; font-size: 14px; background: #f7f7f7; color: #444; }.inquiry td { font-size: 13px; }
.inquiry p { margin: 0; font-size: inherit; }.haveto { font-size: 7px; padding: 5px; background: #ff9393; color: #fff; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.wpcf7-list-item { margin-left: 0; }.wpcf7-acceptance label { display: inline-flex; align-items: baseline; gap: 8px; }
#formbtn, .contactbox .wpcf7-submit { display: block; padding: 15px; width: min(350px,100%); background: #ffaa56; color: #fff; font-size: 18px; font-weight: 700; border-radius: 2px; margin: 25px auto 0; }
#formbtn:hover, .contactbox .wpcf7-submit:hover { background: #e68d35; }
.contactbox small { font-size: 12px; }.contact-fallback { padding: 25px 0; }.admin-note { font-size: 14px; }
.site-footer { background: #111; color: #888; font-size: 14px; }
.footer-widgets { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 30px; padding-top: 3.75rem; padding-bottom: 1.25rem; }
.site-footer .widget { margin-bottom: 30px; }.site-footer .widget-title { color: #ccc; font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.site-footer a { color: #bbb; }.contact-info { display: flex; gap: 10px; margin-bottom: 8px; }.contact-info > .fa { flex: 0 0 15px; padding-top: 5px; }.contact-info a { overflow-wrap: anywhere; }
.contact-info-item { display: flex; gap: 10px; margin-bottom: 8px; }.site-footer .widget p { font-size: 14px; }
.site-info { background: #222; border-top: 1px solid #333; color: #777; padding: 21px 0; font-size: 18px; }
.page-banner { background: #f8f9f9; border-bottom: 1px solid #e9e9e9; padding: 30px 0; }.page-banner h1, .page-banner h2 { margin: 0; font-size: 28px; }
.page-content { padding-top: 40px; padding-bottom: 60px; min-height: 40vh; }.entry-content::after { content: ""; display: block; clear: both; }
.entry-content h2 { font-size: 30px; }.entry-content h3 { font-size: 25px; }.entry-content table { margin-bottom: 30px; }.entry-content td, .entry-content th { padding: 12px; border: 1px solid #ddd; }
.entry-content .alignleft { float: left; margin: 0 25px 20px 0; }.entry-content .alignright { float: right; margin: 0 0 20px 25px; }.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { width: 100%; }.wp-caption { max-width: 100%; }.wp-caption-text, .gallery-caption { font-size: 14px; }
.entry-content iframe, .entry-content video { max-width: 100%; }.entry-content pre { white-space: pre-wrap; background: #f4f4f4; padding: 15px; }.entry-content blockquote { border-left: 3px solid var(--green); padding-left: 20px; margin-left: 0; }
.blog-layout { display: grid; grid-template-columns: minmax(0,3fr) minmax(0,1fr); gap: 39px; padding-top: 40px; padding-bottom: 60px; }.blog-main { min-width: 0; }
.blog-sidebar { border-left: 1px solid #e9e9e9; padding-left: 39px; }.blog-sidebar .widget { margin-top: 30px; }.widget-title { font-size: 18px; font-weight: 600; }.blog-sidebar ul { padding-left: 18px; }
.entry-title { font-size: 30px; }.entry-meta { font-size: 12px; margin-bottom: 25px; }.entry-meta span { margin-left: 10px; }.entry-image { margin-bottom: 25px; }
.archive-entry { border-bottom: 1px solid #e9e9e9; padding-bottom: 35px; margin-bottom: 35px; }.archive-entry h2 { font-size: 26px; }.archive-entry h2 a { color: #444; }.archive-entry img { margin-bottom: 20px; }
.nav-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin: 30px 0; }.page-numbers { padding: 8px 12px; }.page-numbers.current { background: var(--green); color: #fff; }
.search-form { display: flex; flex-wrap: wrap; gap: 8px; }.search-form label { flex: 1; }.search-submit { max-width: 100%; }
.reqtbl { width: 100%; border-collapse: collapse; }.reqtbl tr { border-bottom: 2px solid #fff; }.entry-content .reqtbl th { width: 30%; position: relative; background: #48af7a; color: #fff; text-align: center; padding: 10px 12px; border: 0; }.entry-content .reqtbl td { width: 70%; background: #eee; text-align: center; padding: 10px 12px; border: 0; }.reqtbl th::after { content: ""; position: absolute; right: -10px; top: calc(50% - 10px); border-left: 10px solid #48af7a; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
@media (max-width:1140px) {
  .header-container { padding-left: 25px; padding-right: 15px; }
  .menu-toggle { display: block; }
  .js .main-navigation { display: none; }.js .main-navigation.is-open { display: block; }
  .main-navigation { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 85px - var(--header-offset)); overflow-y: auto; background: #fff; border-bottom: 1px solid #ddd; }
  .nav-menu { display: block; }.nav-menu > li > a { padding: 12px 25px; border-top: 1px solid #eee; font-size: 13px; }.nav-menu > li > a:hover::after { display: none; }
  .nav-menu .sub-menu, .nav-menu .sub-menu .sub-menu { display: block; position: static; padding: 0 15px; box-shadow: none; }
}
@media (max-width:991px) {
  html { font-size: 15px; }.news-heading { font-size: 28px; }
  .blog-layout { grid-template-columns: minmax(0,1fr); }.blog-sidebar { border-left: 0; padding-left: 0; border-top: 1px solid #eee; padding-top: 25px; }
}
@media (max-width:940px) { .news-grid { grid-template-columns: 1fr; }.footer-widgets { grid-template-columns: 1fr; }.news-image img { aspect-ratio: auto; } }
@media (max-width:767px) {
  html { font-size: 14px; }.site-info { text-align: center; }.admin-bar { --header-offset: 46px; }
}
@media (max-width:640px) {
  .hero { min-height: 450px; }.hero h1 { font-size: 40px; }.hero-inner { padding: 20px 30px; }.hero .btn { margin: 10px; padding: 11px 18px; }
  .concept h2, .facility h2, .companybox h2, .contactbox h2 { font-size: 25px; }.concept p, .facility p { font-size: 18px; }.greeting-text p { padding-left: 0; }
  .concept-row > img { width: 100%; float: none; margin: 0 0 20px; }
  .js .greeting-toggle { display: block; width: 100%; margin: 30px auto 5px; border: 0; border-radius: 8px; background: var(--green); color: #fff; font-size: 16px; font-weight: 700; line-height: 50px; cursor: pointer; }
  .js .greeting-text { display: none; }.js .greeting.is-open .greeting-text { display: block; background: #eaeaea; padding: 25px; }.greeting.is-open p { line-height: 23px; margin-bottom: 0; text-align: justify; }
  .facilitybox h3 { padding-bottom: 0; font-size: 20px; }.facility-row > img, .facility-row.imgright > img { float: none; display: block; width: 100%; margin: 0 0 20px; }
  .kaisha { table-layout: fixed; }.kaisha th { width: 30%; }.kaisha th, .kaisha td { padding: 15px 10px; }
  .inquiry th, .inquiry td { display: block; width: 100%; border-top: 0; }.inquiry tr:first-child th { border-top: 1px solid #d7d7d7; }.inquiry .haveto { font-size: 10px; }
  .contactbox .wpcf7-form > p { font-size: 16px; }.site-title { font-size: 23px; }.site-branding { min-width: 0; }.header-container { gap: 5px; }.entry-title { font-size: 26px; }
}
@media (max-width:360px) { .site-title { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
