body {
	font-family: "Noto Sans JP", sans-serif;
}

:where(.wp-site-blocks *:focus) {
    outline-width:2px;outline-style:solid
}

*:focus {
    outline: none;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ================================
    ヘッダー
=============================== */
/* ヘッダー全体の背景色 */
.site-header,
header.wp-block-template-part {
    position: sticky;
    top: 0;
    height: 66px;
    background-color: var(--wp--preset--color--background);
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
@media (max-width: 781px) {
    .site-header,
    header.wp-block-template-part {
        display: flex !important;
        align-items: center !important;
    }
}

@media (max-width: 781px) {
    .header-inner {
        width: 100%;
    }
}


@media (max-width: 1180px) {
    .header-navi-links {
      display: none !important;
    }
  }

/* ハンバーガーメニュー */
.custom-hamburger {
   display: none;
   background: none;
   border: none;
   cursor: pointer;
   padding: 10px;
   position: relative;
   width: 40px;
   height: 40px;
}
@media (max-width: 1180px) {
    .custom-hamburger {
        display: block;
        position: absolute;
        right: 1rem;
        top: 5px;
        margin-top: 0;
    }
}

  .custom-hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background: #ea5532;
    margin: 5px 0;
    transition: 0.3s;
  }

  .custom-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .custom-hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .custom-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .custom-mobile-menu {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    max-width: 100%;
    padding: 1rem;
    margin: 0 !important;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .custom-mobile-menu.active {
    display: block;
  }

  .custom-mobile-menu nav a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
	font-weight: 700;
    color: #333;
    border-bottom: 1px dashed #e0e0e0;
  }

.menu-opened-lower {
    display: flex;
    padding: 1rem 1rem 0;
    justify-content: space-evenly;
}

.wp-block-navigation a:hover {
    text-decoration: none !important;
}

.wp-block-navigation .wp-block-navigation-item a:hover {
    color: var(--wp--preset--color--primary);
}

.header-info-blocks {
    display: flex;
    align-items: center;
    gap: 10px;
}
@media (max-width: 1180px) {
    .header-info-blocks {
        margin-right: 3rem !important;
    }
}
@media (max-width: 781px) {
    .header-info-blocks {
        margin-right: 5rem !important;
    }
}

.contact-button-with-icon .wp-block-button__link {
    display: flex !important;
    align-items: center;
    gap: 6px;
    justify-content: center;
    padding: 8px 10px !important;
    width: 160px;
}

.contact-button-with-icon .wp-block-button__link:hover .button-mail-icon path {
    stroke: var(--wp--preset--color--primary) !important;
}

.header-phone-block {
    display: flex;
    align-items: center;
}

.header-phone-block .phone-link {
    display: flex;
    align-items: center;
    text-decoration: none;
	pointer-events: none;
	cursor: default;	
}
@media (max-width:781px) {
	.header-phone-block .phone-link {
		pointer-events: visible;
		cursor: pointer;	
	}
}

.header-phone-block .phone-link:hover {
    text-decoration: none;
    opacity: 0.8;
}

.header-phone-block .phone-icon {
    width: 26px;
    height: 26px;
}
@media (max-width:781px) {
	.header-phone-block .phone-icon {
		content: url('https://www.sagami-kouseibyouin.or.jp/nh-yutaka/wp-content/uploads/2025/11/tel_sp.svg');
		width: 44px;
		height: 44px;
		display: block;
	}
}

.phone-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    line-height: 1.2;
}
@media (max-width:781px) {
    .header-phone-block .phone-content {
      display: none;
  }
}

.phone-number {
    font-size: 22px;
    font-weight: bold;
}

.phone-hours {
    font-size: 12px;
    white-space: nowrap;
}

.header-vacancy-block {
    display: flex;
    align-items: center;
    gap: 8px;
}
@media (max-width: 1180px) {
    .header-vacancy-block.menu-bar {
        display: none;
    }
}

.vacancy-content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.vacancy-status {
    font-size: 20px;
    font-weight: bold;
}

.vacancy-update {
    font-size: 12px;
    white-space: nowrap;
}

.wp-block-navigation {
    position: inherit !important;
}

@media (max-width: 1180px) {
    .wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content {
        display: none;
    }

    .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: block !important;
        position: absolute;
        right: 1rem;
        top: 2rem;
    }
}

@media (max-width:781px) {
	.wp-block-buttons:has(.contact-button-with-icon) {
		display: none !important;
	}
}


/* ========================================
   パンくずリスト
======================================== */
.breadcrumbs {
    background-color: var(--wp--preset--color--base-2);
    padding: 12px 0;
    margin: 0 !important;
    width: 100%;
    font-size: 14px;
}

.breadcrumbs-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumbs a {
    color: var(--wp--preset--color--primary);
    padding: 8px;
    text-decoration: none;
}

.breadcrumbs span.current {
    padding: 8px;
}


/* ========================================
   共通スタイル
======================================== */
.opacity-08 a:hover {
    opacity: 0.7;
    color: var(--wp--preset--color--base-2) !important;
}

.sp-only {
    display: none;
}
@media (max-width: 781px) {
    .sp-only {
        display: block;
    }
}

.pc-only {
    display: block;
}
@media (max-width: 781px) {
    .pc-only {
        display: none;
    }
}

@media (max-width: 781px) {
    .sp-text-left {
        text-align: left !important;
    }
}Zz

.wp-block-separator.has-primary-background-color {
    color: var(--wp--preset--color--primary) !important;
}

.wp-block-buttons .wp-block-button__link:hover {
    transition: all 0.3s ease;
}

/* ボタン */
.wp-block-button.btn-white > .wp-block-button__link {
	background-color: var(--wp--preset--color--base-2);
	color: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
}

.wp-block-button.btn-white > .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base-2);
  }

a.wp-block-button__link.has-border-color:focus {
	color: var(--wp--preset--color--primary);
    background: var(--wp--preset--color--base-2);
}


/* 下線つき見出し（左寄せ） */
.heading-group {
    margin-bottom: 3rem !important;
}

@media (max-width: 781px) {
    .custom-heading-center {
        text-align: left !important;
    }
}

.custom-heading-label-wrap {
    display: flex;
    align-items: center;
    margin-top: 0;
    margin-left: 0;
    gap: 0;
}

.custom-heading-label-wrap h6,
.custom-heading-label-wrap .wp-block-heading {
    color: var(--wp--preset--color--primary);
    letter-spacing: 0.05em;
    font-family: 'Zen Maru Gothic', sans-serif !important;
}

.custom-heading-label-wrap .wp-block-separator.custom-heading-line {
    flex-grow: 1;
    width: auto;
    margin: 0 0 0 1rem !important;
    border-bottom: 2px solid var(--wp--preset--color--primary);
    max-width: none;
}

.custom-heading-label-wrap .wp-block-separator.custom-heading-line::before,
.custom-heading-label-wrap .wp-block-separator.custom-heading-line::after {
    display: none !important;
}
/* --------------------------------------- */
/* 下線付き（中央） */
.center-heading-section {
    margin-bottom: 2rem;
    text-align: center;
}

.center-heading-section h2 {
    font-size: 48px;
    margin-bottom: 0.5rem;
    text-align: center;
}

.subtitle-with-lines {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0.5rem 0 1rem !important;
}

.line-left,
.line-right {
    height: 2px;
    background-color: var(--wp--preset--color--primary);
    border: none !important;
    margin: 0;
}
@media (max-width: 781px) {
    .line-left {
        display: none;
    }
}
.subtitle-with-lines .wp-block-separator {
    width: 100%;
}

.subtitle-text {
    color: var(--wp--preset--color--primary);
    font-family: 'Zen Maru Gothic', sans-serif;
    margin: 0;
    white-space: nowrap;
}

/* --------------------------------------- */
/* ボタンに矢印を追加 */
.button-with-arrow::after {
    /* display: none !important; */
}

.button-with-arrow .wp-block-button__link {
    position: relative;
}

.button-with-arrow .wp-block-button__link::after {
    content: "›";
    position: absolute;
    right: 1rem;
    top: 46%;
    transform: translateY(-50%);
    font-size: 1.5em;
    line-height: 1;
    color: inherit;
}

.button-with-arrow a.wp-block-button__link:hover {
    background-color: var(--wp--preset--color--base-2);
    color: var(--wp--preset--color--primary);
}


/* serction_01 --------------------------------- */
.swiper-wrapper {
	transition-duration: 600ms !important;
}
@media (max-width: 781px) {
	.swiper-wrapper {
		height: auto;
	}
}

.swiper {
	height: 500px;
	max-width: 100%;
	overflow: hidden;
	border-radius: 10px 0 0 10px;
}
@media (max-width: 781px) {
	.swiper {
		height: 350px;
		border-radius: 0;
	}
}

.swiper-slide img {
	width:100%;
	height:100%;
	object-fit:cover;
	border-radius: 10px 0 0 10px;
}
@media (max-width: 781px) {
	.swiper-slide img {
		border-radius: 0;
	}
}

.marker-underline {
    background: linear-gradient(transparent 60%, #FFE99F 0%);
    text-shadow:
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff,
        1px 1px 0 #fff,
        -1px 1px 0 #fff,
        1px -1px 0 #fff,
        -1px -1px 0 #fff;
}

.text-red {
    color: var(--wp--preset--color--accent);
}

#section_01 {
    position: relative !important;
    min-height: 510px;
	z-index: 0;
}
@media (max-width: 781px) {
    #section_01 {
        padding-top: 0 !important;
        overflow: hidden;
    }
}

@media (max-width: 781px) {
    #section_01 h2 {
        font-size: 1.8rem !important;
    }
}

#section_01 .big-date {
    font-size: 40px;
}
@media (max-width: 781px) {
	#section_01 .big-date {
    	font-size: 30px;
	}
}

#section_01 .big-num {
    font-size: 3.1rem
}
@media (max-width: 781px) {
    #section_01 .big-num {
        font-size: 2.325rem;
    }
}

#section_01 .deco-top {
    position: absolute !important;
    top: -45px;
    left: 0;
    width: 16vw;
    max-width: 171px;
    height: auto;
}
@media (max-width: 781px) {
    #section_01 .deco-top {
        z-index: 3;
        top: -21%;
        left: -10%;
        width: 40vw;
        max-width: 170px;
    }
}

#section_01 .deco-bottom {
    position: absolute !important;
    top: 84%;
    left: 0;
    width: 11vw;
    max-width: 196px;
    height: auto;
}
@media (max-width: 781px) {
    #section_01 .deco-bottom {
        display: none;
    }
}

#section_01 .deco-button {
    position: absolute !important;
    bottom: -8%;
    right: 0%;
    width: 13vw;
    max-width: 147px;
    height: auto;
    z-index: -2;
}
@media (max-width: 781px) {
    #section_01 .deco-button {
        width: auto;
        right: -6%;
        overflow: visible;
    }
}

#section_01 .wp-block-columns {
    position: relative;
    margin-top: 0 !important;
}

#section_01 .left {
    position: relative;
}
@media (max-width: 781px) {
    #section_01 .left {
        position: static;
        background-color: var(--wp--preset--color--base-2);
        border-radius: 5px;
        margin: 0 5px;
        padding: 30px 0 20px;
        overflow: hidden;
    }
}

#section_01 .left .button-wrapper {
    position: relative;
}

#section_01 .left-column {
    position: relative;
}
@media (max-width: 781px) {
    #section_01 .left-column {
        margin: -32px 5px 0 !important;
        order: 2;
        z-index: 2;
    }
}

@media (max-width: 781px) {
    #section_01 .right-column img {
        border-radius: 0 !important;
    }
}

@media (max-width: 781px) {
    #section_01 .right img {
        border-radius: 0 !important;
    }
}


/* section_02 特徴--------------------------------- */
@media (max-width: 781px) {
    #section_02 {
        padding: 60px 20px !important;
    }

    #section_02 .feature-wrapper {
        gap: 80px;
    }

    #section_02 .icon-header {
        flex-wrap: nowrap !important;
        gap: 0 !important;
    }

    #section_02 .point-number {
        flex-basis: 38% !important;
    }

    #section_02 .point-icon {
        flex-basis: 62% !important;
    }

    #section_02 .item-text {
        width: 90%;
        margin: 20px auto 0;
    }
}

/* section_03 入居対象となる方--------------------------------- */
@media (max-width: 781px) {
    #section_03 {
        padding: 60px 20px !important;
    }

    #section_03 .icon-header {
        flex-wrap: nowrap !important;
    }

    #section_03 .icon {
        flex-basis: 40px !important;
        flex-grow: 0 !important;
    }
}

/* section_04 ご入居者の一日の流れ--------------------------------- */
#section_04 {
    position: relative;
	z-index: 0;
}

#section_04 .top-bg-left,
#section_08 .top-bg-left,
#recruit_section_07 .top-bg-left {
    position: absolute;
    top: 0%;
    left: 0;
    width: 29vw;
}

#section_04 .bottom-bg-right,
#section_08 .bottom-bg-right {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 29vw;
    z-index: -1;
}

#section_04 .bottom-bg-right img,
#section_08 .bottom-bg-right img,
#recruit_section_07 .bottom-bg-right img {
    float: right;
}

#section_04 .main-title {
    gap: 6rem;
}
@media (max-width: 781px) {
    #section_04 .main-title {
        gap: 2rem;
    }
}

.wp-block-columns.timeline-item {
    position: relative ;
    margin-bottom: 40px ;
}
@media (max-width: 781px) {
    .wp-block-columns.timeline-item {
        gap: 0;
    }
}

.wp-block-columns.timeline-item:last-child {
    margin-bottom: 0 !important;
}

.timeline-item > .wp-block-column:first-child {
    flex-basis: 80px !important;
    flex-grow: 0;
    position: relative;
}
@media (max-width: 781px) {
    .timeline-item > .wp-block-column:first-child {
        flex-basis: auto !important;
        padding-left: 32px;
        padding-top: 3px;
    }
}

.timeline-item > .wp-block-column:first-child::after {
    content: '';
    position: absolute;
    left: 106px;
    top: 21px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--wp--preset--color--text);
    z-index: 2;
}
@media (max-width: 781px) {
    .timeline-item > .wp-block-column:first-child::after {
        left: 0;
    }
}

.timeline-item:first-child::before {
    content: '';
    position: absolute;
    left: 110px;
    top: -9px;
    height: 23px;
    width: 3px;
    background-color: var(--wp--preset--color--text);
    z-index: 1;
}
@media (max-width: 781px) {
    .timeline-item:first-child::before {
        left: 5px;
    }
}

.timeline-item::after {
    content: '' ;
    position: absolute ;
    left: 110px ;
    top: 43px;
    bottom: -54px;
    width: 3px ;
    background-color: var(--wp--preset--color--text) ;
    z-index: 1 ;
}
@media (max-width: 781px) {
    .timeline-item::after {
        left: 5px;
    }
}

.timeline-item:last-child::after {
    bottom: 0;
}

.timeline-item > .wp-block-column:last-child {
    padding-left: 70px;
	margin-top: 10px;
}
@media (max-width: 781px) {
    .timeline-item > .wp-block-column:last-child {
        padding-left: 32px;
    }
}

@media (max-width: 781px) {
    .timeline-item .timeline-decoration {
        width: 70%;
        float: right;
    }
}

.timeline-container .timeline-time {
    margin-top: 0.6rem;
}


/* section_05 ご利用料金--------------------------------- */
.decoration-border {
    background: url('https://www.sagami-kouseibyouin.or.jp/nh-yutaka/wp-content/uploads/2025/11/bg.svg') repeat-x;
    background-size: auto 100%;
    height: 110px;
    margin: 40px 0;
}
@media (max-width: 781px) {
    #section_05 .main-title {
        text-align: left !important;
    }

    #section_05 .icon {
        flex-basis: 21px !important;
        flex-grow: 0 !important;
    }
}

/* section_06 空床情報--------------------------------- */
.vacancy-table {
    width: 100%;
    margin-top: 2rem;
    border-collapse: collapse;
}

.vacancy-table tr {
    border-top: 1px solid #453A2A;
    border-left: none;
    border-right: none;
}

.vacancy-table tr:last-child {
    border-bottom: 1px solid #453A2A;
}

.vacancy-table td {
    border: none;
    padding: 0.8rem 1rem;
}

.room-comparison {
    max-width: 1000px;
    margin: 4rem auto 0;
    padding: var(--wp--preset--spacing--20) min(2rem, 2.5vw);
    background-color: var(--wp--preset--color--base-2);
    border-radius: 10px;
}

.room-comparison h4 {
    margin: 0;
}

.room-comparison th {
    font-weight: normal;
}

.room-comparison td:nth-child(2),
.room-comparison td:nth-child(3) {
    font-weight: bold;
}

.room-comparison p {
	display: none;
}

#section_06 .updated-day {
	text-align: center;
	font-size: 18px;
}

.pc-view {
    width: 100%;
    border-collapse: collapse;
}

.pc-view th, .pc-view td {
    border: none;
    padding: 12px;
    text-align: center;
}

.pc-view td:first-child {
    text-align: left;
    width: 33.3%;
}

.pc-view tbody {
    border-top: 1px solid var(--wp--preset--color--text);
}

.pc-view tbody tr {
    border-bottom: 1px solid var(--wp--preset--color--text);
}

.sp-view {
    display: none;
}
@media (max-width: 781px) {
    .pc-view {
        display: none;
    }

    .sp-view {
        display: block;
    }

    .sp-header {
        display: flex;
        justify-content: space-around;
        padding-top: 20px;
        text-align: center;
    }

    .sp-header img {
        width: 40px;
        height: 40px;
    }

    .sp-header h3 {
        margin: 10px 0 5px;
    }

    .sp-table {
        width: 100%;
        border-collapse: collapse;
    }

    .sp-table tbody {
        border-top: 1px solid var(--wp--preset--color--text);
    }

    .sp-table tr {
        border-bottom: 1px solid var(--wp--preset--color--text);
    }

    .sp-table td {
        padding: 12px;
    }

    .sp-table tr:nth-child(odd) td:first-child {
        text-align: center;
        width: 100%;
    }

    .sp-table tr:nth-child(even) td {
        font-weight: bold;
        text-align: center;
        width: 50%;
    }
  }

/* section_07 お知らせ--------------------------------- */
@media (max-width: 781px) {
#section_07 {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
}

#section_07 h3 {
    font-size: 24px !important;
}

@media (max-width: 781px) {
    #section_07 .posts {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1280px) {
    #section_07 .info-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.wp-block-read-more {
    float: right;
}

@media (max-width: 781px) {
    #section_07 .information-img figure {
        margin-block-end: 20px !important;
        text-align: center;
    }
}

#section_07 .information-img figure img {
    width: 100%;
    max-width: 240px;
    max-height: 150px;
}
@media (max-width: 781px) {
    #section_07 .information-img figure img {
        max-width: 400px;
        max-height: 200px;
    }
}

@media (max-width: 781px) {
    #section_07 .wp-block-post-template.is-layout-grid {
        gap: 40px !important;
    }
}

#section_07 .wp-block-button {
    width: 232px;
}


.wp-block-query {
    max-width: 1280px;
    margin: 0 auto;
}

#section_07 .wp-block-post-template.is-layout-grid {
    grid-template-columns: repeat(auto-fill, minmax(335px, 600px)) !important;
    justify-content: center;
    gap: 20px;
}
@media (max-width: 1330px) {
    #section_07 .wp-block-post-template.is-layout-grid {
        gap: 80px;
    }
}

.wp-block-query .wp-container-core-post-template-is-layout-125c70a0 {
    gap: 90px 30px;
}

.wp-block-post-template img {
    border-radius: 10px !important;
}

.posted-category span,
.taxonomy-category span{
    background: #FAF09D;
    padding: 4px 8px;
    text-decoration: none;
    margin-right: 5px;
}


/* section_08 私たちと一緒に働きませんか？--------------------------------- */
#section_08 {
    position: relative;
	z-index: 0;
}

@media (max-width: 781px) {
    #section_08 .recruitment-picture {
        order: 3;
    }

    #section_08 .recruit-card-wrapper {
        gap: 0;
    }

    #section_08 .recruit-card {
        margin-bottom: 40px;
    }
}
.wp-block-media-text>.wp-block-media-text__content {
    padding: 0 6%;
}

.wp-block-post-featured-image .attachment-post-thumbnail {
    border-radius: 0;
}
.type-post .taxonomy-category a 
.wp-block-post-terms a[href*="/category/news/"] {
    background-color: #10B981;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
}

.wp-block-post-terms a[href*="/category/イベント/"] {
    background-color: #3B82F6;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
}

/* 未分類（uncategorized） */
/*.wp-block-post-terms a[href*="/category/uncategorized/"] {
    background-color: #6B7280;
    color: white;
    padding: 4px 12px;
    text-decoration: none;
}
*/

.wp-block-post-terms.is-style-pill {
    text-align: center;
}

.wp-block-post-terms.is-style-pill a {
    background-color: #BFF3FD;
    color: #111;
    padding: 6px 18px;
    border-radius: 0px;
    text-decoration: none;
    display: inline-block;
    margin: 0 5px;
    font-size: 14px;
}

.title-decoration-wrapper {
    max-width: 100%;
    margin: 0 auto;
    overflow-x: hidden;
}

.title-decoration-left img,
.title-decoration-right img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.title-decoration-left,
.title-decoration-right {
    width: 100%;
    height: 110px;
    background-image: url('wp-content/uploads/2025/11/bg.svg');
    background-position: center;
    background-size: auto 100%;
    background-repeat: no-repeat;
}

.title-decoration-wrapper .wp-block-column:nth-child(2) {
    flex: 0 0 auto !important;
    flex-basis: 30vw !important;
    min-width: 200px;
    max-width: 400px;
}

.title-decoration-wrapper .wp-block-column:nth-child(1),
.title-decoration-wrapper .wp-block-column:nth-child(3) {
    flex: 1 1 auto !important;
}

@media (max-width: 781px) {
    .title-decoration-wrapper {
        flex-wrap: nowrap !important;
        gap: 0 ;
    }

    .title-decoration-wrapper .wp-block-column {
        flex-basis: auto !important;
    }
}

.title-decoration-wrapper h1 {
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .title-decoration-wrapper .wp-block-column.is-left,
    .title-decoration-wrapper .wp-block-column.is-right {
        flex-basis: 20% !important;
    }
}

/* contact お問い合わせフォーム ----------------------------- */
#contact .wpcf7-form p {
    margin-top: 1.5rem;
}

.contact-purpose {
    display: block;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

#contact .wpcf7-form p:has(.contact-purpose) {
    margin-bottom: var(--wp--preset--spacing--40);
}

.wpcf7-list-item {
    margin: 0;
}
.wpcf7-form > p > label {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 0.5rem;
}

[data-name="checkbox-contact"] .wpcf7-checkbox {
    display: flex;
    justify-content: space-between;
    width: 100%;
}
@media (max-width: 781px) {
    [data-name="checkbox-contact"] .wpcf7-checkbox {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 0;
    }
}

[data-name="checkbox-contact"] .wpcf7-checkbox .wpcf7-list-item {
    margin: 0;
    flex: 1;
}
@media (max-width: 781px) {
    [data-name="checkbox-contact"] .wpcf7-checkbox .wpcf7-list-item {
        margin-right: 1rem;
    }
}

[data-name="checkbox-disease"] .wpcf7-checkbox {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 0;
    width: 100%;
}
@media (max-width: 781px) {
    [data-name="checkbox-disease"] .wpcf7-checkbox {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 10px;
    }
}

[data-name="checkbox-disease"] .wpcf7-checkbox .wpcf7-list-item:last-child {
    grid-column: 1 / -1;
}

.wpcf7-list-item.has-accordion .wpcf7-list-item-label {
    text-decoration: underline;
    color: var(--wp--preset--color--primary);
    text-underline-position: under;
}

.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-select,
.wpcf7-form .wpcf7-textarea {
    border: 1px solid #888888;
    padding: 14px 10px;
    margin-top: 6px;
    font-size: 16px;
    width: 100%;
}

.wpcf7-form input[type=checkbox] {
    width: 18px;
    height: 18px;
    margin: 0 5px 0 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: 1px solid #888888;
    vertical-align: middle;
    background-color: transparent;
    position: relative;
	border-radius: 0;
}

.wpcf7-form input[type=checkbox]:checked::before {
    content: "✓";
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--base-2) !important;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    line-height: 18px;
    text-align: center;
    transform: scale(1.15);
}

.wpcf7-list-item span {
    font-size: 14px;
}

.wpcf7-form .required {
    background-color: var(--wp--preset--color--accent);
    color: #ffffff;
    padding: 2px 14px;
    border-radius: 5px;
    margin-left: 10px;
    font-weight: normal;
    font-size: 16px;
    word-break: keep-all;
}

.wpcf7-acceptance a {
    color: var(--wp--preset--color--primary);
    font-size: 14px;
}

.wpcf7-form p:has(.wpcf7-acceptance) {
    text-align: center;
}
@media (max-width: 781px) {
    .wpcf7-form p:has(.wpcf7-acceptance) {
        text-align: left;
    }
}

.wpcf7-form .wpcf7-select {
    padding: 14px 40px 14px 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
	background-color: #fff;
}

.accordion-toggle {
    display: inline-block;
    width: 10px;
    height: 10px;
    position: relative;
    cursor: pointer;
}

.accordion-toggle::before {
    content: '';
    position: absolute;
    top: 49%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--wp--preset--color--primary);
    transform: translateY(-50%);
}

.accordion-toggle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--wp--preset--color--primary);
    transform: translateX(-50%);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.wpcf7-list-item.has-accordion.active .accordion-toggle::after {
    transform: translateX(-50%) rotate(90deg);
}

.wpcf7-list-item.has-accordion label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.accordion-toggle {
    display: inline-block;
    cursor: pointer;
    user-select: none;
    transition: transform 0.3s ease;
    line-height: 1;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
}

.accordion-content p {
    margin: 0.5rem 0 0 18px;
}

.accordion-content.active {
    max-height: 400px;
}

.wpcf7-submit[value="確認画面へ　>"],
.wpcf7-submit[value="送信 >"] {
    background-color: var(--wp--preset--color--primary);
    border-radius: 10px;
    border: solid 3px var(--wp--preset--color--primary);
    color: var(--wp--preset--color--base-2);
    font-family: inherit;
    font-size: 26px;
    font-weight: 700;
    line-height: inherit;
    text-align: right;
    padding: 0.6rem 2rem;
    cursor: pointer;
}

.wpcf7-submit[value="確認画面へ　>"] {
    width: 230px;
	margin-left: 10%;
}

.wpcf7-submit[value="確認画面へ　>"]:hover,
.wpcf7-submit[value="送信 >"]:hover {
    background-color: var(--wp--preset--color--base-2);
    color: var(--wp--preset--color--primary);
    transition: all 0.3s ease;
}

p:has(.wpcf7-submit[value="確認画面へ　>"]) {
    text-align: center;
}

.wpcf7-previous[value="< 戻る"] {
    background-color: var(--wp--preset--color--base-2);
    border-radius: 10px;
    border: solid 3px var(--wp--preset--color--primary);
    color: var(--wp--preset--color--primary);
    font-family: inherit;
    font-size: 26px;
    font-weight: 700;
    line-height: inherit;
    padding: 0.6rem 2rem;
    cursor: pointer;
}

.wpcf7-previous[value="< 戻る"]:hover {
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--base-2);
}

.contact-confirm-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
@media (max-width: 781px) {
    .contact-confirm-btn {
        flex-direction: column;
        gap: 0;
    }
}

.contact-confirm-btn .wpcf7-spinner {
    margin: 0;
}
@media (max-width: 781px) {
    .contact-confirm-btn .wpcf7-spinner {
        margin: 1rem auto 0;
    }
}

.wpcf7-response-output {
	border: none !important;
}


/* footer ---------------------------------------- */
footer {
    margin-top: 0;
}

.footer {
    padding: 80px 64px;
}
@media (max-width: 781px) {
    .footer {
        padding: 48px 20px;
    }
}

@media (max-width: 781px) {
    .footer .footer-colmun-right {
        margin-top: 3rem;
    }
}

@media (max-width: 781px) {
    .footer .banner-items {
        margin-top: 4rem;
    }
}

@media (max-width: 781px) {
    .footer-navi-group {
        align-content: flex-start;
    }
}

@media (max-width: 781px) {
    .footer-navi-menu {
        gap: 1rem;
    }
}


/* ================================
   投稿ページ
=============================== */
body.single .wp-block-post-featured-image img,
body.single-post .wp-block-post-featured-image img {
    object-fit: contain !important;
    max-height: 600px;
}


/* ================================
   固定ページ
=============================== */
/* 両側画像つきタイトル ----------------------------- */
.decorated-title-wrapper {
    text-align: center;
    overflow: hidden;
}

h1.decorated-title {
    position: relative;
    display: inline-block;
    margin: 40px auto;
	font-size: 56px;
}
@media (max-width: 781px) {
	h1.decorated-title {
		font-size: 36px;		
	}
}

h1.decorated-title::before {
    content: '';
    position: absolute;
    top: 50%;
    right: calc(100% + 20px);
    transform: translateY(-50%);
    width: 700px;
    height: 130px;
    background-image: url('https://www.sagami-kouseibyouin.or.jp/nh-yutaka/wp-content/uploads/2025/11/bg.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
}

h1.decorated-title::after {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(100% + 20px);
    transform: translateY(-50%);
    width: 700px;
    height: 130px;
    background-image: url('https://www.sagami-kouseibyouin.or.jp/nh-yutaka/wp-content/uploads/2025/11/bg.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
}
@media (max-width: 781px) {
    h1.decorated-title::before,
    h1.decorated-title::after {
        width: 300px;
        height: 70px;
    }
}

/* contact-confirm 確認画面 ----------------------------- */
.contact-confirm .wpcf7-form .confirm-title {
    font-size: 16px;
    font-weight: 900;
}

.contact-confirm .wpcf7-form.init {
    display: block;
    overflow: hidden;
}

.contact-confirm .wpcf7-form.init .confirm-title {
    float: left;
    clear: left;
    width: 250px;
    margin: 0;
    padding: 15px 0;
}
@media (max-width: 781px) {
    .contact-confirm .wpcf7-form.init .confirm-title {
        float: none;
        width: 100%;
        padding-bottom: 0;
    }
}

.contact-confirm .wpcf7-form.init .confirm-value {
    margin-left: 250px;
    padding: 15px 0;
	min-height: 60px;
}
@media (max-width: 781px) {
    .contact-confirm .wpcf7-form.init .confirm-value {
        margin-left: 0;
    }
}

.contact-confirm .wpcf7-form.init .confirm-value + .confirm-value {
    padding-top: 0;
}

.contact-confirm .wpcf7-form.init .confirm-value p {
    margin: 0 0 5px 0;
}
@media (max-width: 781px) {
    .contact-confirm .wpcf7-form.init .confirm-value p {
        margin: 0 !important;
    }
}

.contact-confirm .wpcf7-form.init .confirm-title ~ .confirm-title {
    border-top: 1px solid #E6E6E6;
}

.contact-confirm .wpcf7-form.init .confirm-title ~ .confirm-title + .confirm-value {
    border-top: 1px solid #E6E6E6;
}
@media (max-width: 781px) {
    .contact-confirm .wpcf7-form.init .confirm-title ~ .confirm-title + .confirm-value {
        border: none;
    }
}


/* お知らせ一覧--------------------------------- */
.page-id-138 .wp-block-query-pagination-numbers {
	display: flex;
}

.page-id-138 .wp-block-post-template-is-layout-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 80px 24px;
}
@media (max-width: 1280px) {
	.page-id-138 .wp-block-post-template-is-layout-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 781px) {
	.page-id-138 .wp-block-post-template-is-layout-grid {
		grid-template-columns: 1fr !important;
	}
}

@media (max-width: 780px) {
	.page-id-138 .is-layout-grid {
		grid-template-columns: 1fr;
	}
	
	.page-id-138 .is-layout-grid > li {
		margin: 0 auto;
	}
}

@media (max-width: 1280px) {
	.page-id-138 .information-card {
		max-width: 500px;
	}
}
@media (max-width: 781px) {
	.page-id-138 .information-card {
		max-width: 450px;
    	margin: 0 auto;
	}
}

@media (max-width: 1280px) {
	.page-id-138 .is-layout-grid figure {
		text-align: center;
	}
	
	.page-id-138 .is-layout-grid .wp-block-post-featured-image .attachment-post-thumbnail {
		max-width: 400px;
	}
}

.page-id-138 .wp-block-post-excerpt__more-text {
    text-align: right;
}

.page-id-138 .wp-block-post-excerpt__more-text a {
    text-decoration: none;
}

.page-id-138 .wp-block-post-terms__separator {
    display: none;
}

.page-id-138 .wp-block-post-title a {
    text-decoration: underline;
}

.page-id-138 .wp-block-query-pagination {
    margin-top: 30px;
    gap: 8px;
}

.page-id-138 .page-numbers {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    margin: 0 4px;
}

.page-id-138 .page-numbers.current {
    background: var(--wp--preset--color--primary);
    color: #fff;
}

.page-id-138 .wp-block-query-pagination-previous,
.page-id-138 .wp-block-query-pagination-next {
    text-decoration: none;
}

.page-id-138 .information-bottom-hr {
	color:var(--wp--preset--color--primary) !important;
}


/* 採用ページ ----------------------------------- */
#recruit_section_02 .timeline_img_01 {
    width: 85%;
    margin: 1.2rem auto;
}

#recruit_section_07 .bottom-bg-right {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 29vw;
}

.walkers {
    justify-content: space-between;
}
@media (max-width: 781px) {
    .walkers {
        flex-direction: column;
        gap: 2rem;
    }
}

.walker-card {
    max-width: 493px;
    margin: 0 auto !important;
}

.walker-label {
    position: absolute;
    top: -7px;
    left: 0;
    border-radius: 5px;
    padding: 8px;
}

.walker-label.nurse {
    background-color: #FFAC9A;
}

.walker-label.care {
    background-color: #ffdd1a;
}

.font-large-plus {
    font-size: 40px;
}
@media (max-width: 781px) {
    .font-large-plus {
        font-size: 32px;
    }
}

#recruit_section_01 .wp-block-button,
#recruit_section_07 .wp-block-button {
    width: 200px;
}

/* プライバシーポリシー ---------------------------------- */
@media (max-width: 781px) {
    .privacy-policy .wp-block-post-title {
        font-size: 30px;
    }
}

.privacy-policy .policy-item {
    margin-bottom: var(--wp--preset--spacing--50);
}

.privacy-policy .policy-item h3 {
    border-bottom: 1px solid var(--wp--preset--color--primary);
    padding-bottom: 8px; 
    font-size: 26px !important;;
}