/* Variable Definitions */
:root {
    --primary-color: #3EA8C8;
    /* Teal/Blueish for "三つの風" vibe */
    --primary-dark: #2C5E7A;
    --secondary-color: #00A961;
    /* Green from snippet */
    --accent-color: #F8BBD0;
    --text-main: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --bg-light: #F9FAFB;

    --gradient-green: linear-gradient(90deg, #00A961 0%, #5BC896 100%);
    --gradient-blue: linear-gradient(90deg, #309CBE 0%, #6EC3D9 100%);

    --font-main: 'Noto Sans JP', sans-serif;
    --font-serif: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'HGS明朝E', 'MS PMincho', serif;
    --font-en: 'Montserrat', sans-serif;

    --max-width: 1200px;
    --header-height: 80px;
}

/* アンカーリンクの固定ヘッダーずれ補正 */
[id] {
    scroll-margin-top: calc(var(--header-height) + 16px);
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-en), var(--font-main);
    /* English: Montserrat, Japanese: Noto Sans JP */
    color: var(--text-main);
    line-height: 1.8;
    letter-spacing: 2px;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.text-center {
    text-align: center;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* PCでは非表示、スマホで表示する改行 */
.br-sp {
  display: none;
}

/* PCで表示、スマホでは非表示にする改行 */
.br-pc {
  display: block;
}

/* スマホ表示（画面幅767px以下）のときの切り替え */
@media screen and (max-width: 767px) {
  .br-sp {
    display: block;
  }
  .br-pc {
    display: none;
  }
}

/* Header */
.header {
    height: var(--header-height);
    background: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 40px;
}

.header-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 20px;
    color: var(--primary-color);
}

.nav-desktop {
    display: none;
}

.header-buttons {
    display: none;
    gap: 10px;
}

.header-buttons .btn-primary {
    &::before {
        content: "\e158";
        font-family: "Material Icons";
        font-size: 20px;
        font-weight: bold;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
    }

    &::after {
        display: none;
    }
}

.header-buttons .btn-secondary {
    &::before {
        content: "\e7fd";
        font-family: "Material Icons";
        font-size: 20px;
        font-weight: bold;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
    }

    &::after {
        display: none;
    }
}

.btn {
    display: inline-block;
    padding: 16px 60px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: normal;
    color: var(--white);
    position: relative;
    line-height: 1.2;
    gap: 5px;

    &::after {
        content: "\e941";
        font-family: "Material Icons";
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 10px;
        top: auto;
        background-color: #fff;
        color: var(--primary-color);
    }
}

.btn-primary {
    background: var(--gradient-blue);

    &::after {
        color: var(--primary-color);
    }
}

.btn-secondary {
    background: var(--gradient-green);

    &::after {
        color: var(--secondary-color);
    }
}

.btn-outline {
    border: 1px solid var(--white);
    background: transparent;
    color: var(--white);
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2000;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-main);
    margin: 4px 0;
    transition: 0.3s;
}

.hamburger .menu-txt {
    font-size: 10px;
    margin-top: 3px;
}

@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .nav-list {
        display: flex;
        gap: 20px;
        font-size: 14px;
        font-weight: 500;
    }

    .header-buttons {
        display: flex;
    }

    .hamburger {
        display: none;
    }

    .btn {
        padding: 10px 40px;
        font-size: 14px;

        &::after {
            width: 20px;
            height: 20px;
        }
    }
}

/* Hero Section */
.hero {
    margin-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    padding-bottom: 40px;
}

.hero-text {
    padding: 20px 40px 0;
}

.hero-text h1 {
    font-size: 40px;
    color: var(--primary-color);
    font-weight: 100;
    line-height: 1.5;
    margin-bottom: 20px;
    font-family: var(--font-serif);
    letter-spacing: 0.1em;
    line-height: 2;
}

.hero-text span {
    display: block;
}

.hero-text p {
    font-size: 14px;
    line-height: 2;
    color: var(--text-main);
    margin-top: 20px;
}

.hero-image {
    position: relative;
    overflow: hidden;
    height: 300px;
    width: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 1100px) {
    .hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
    }

    .hero-inner {
        grid-template-columns: 45% 55%;
        padding-bottom: 120px;
        width: 100%;
        /* Ensure inner takes width */
    }

    .hero-text {
        padding: 0 0px 0 80px;
    }

    .hero-text h1 {
        font-size: 48px;
        letter-spacing: 8.6px;
    }

    .hero-image {
        height: 100vh;
        /* Match hero height */
        width: 50vw;
        position: absolute;
        right: 0;
        margin: 0;
        border-radius: 0;
        z-index: -1;
        /* Ensure it stays behind text if they overlap, but text needs z-index */
    }
}

/* Info Bar (Availability) */
.info-bar {
    padding: 20px 0;
    margin-top: -120px;
}

/* Mobile First: Stacked layout */
.info-content {
    background: var(--bg-light);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Gap handled by padding/layout */
    overflow: hidden;
    /* For badge rounded corners */
}

.info-badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    letter-spacing: 2px;
    font-family: var(--font-main);
    width: 100%;
    border-radius: 0;
    /* Flat for stacking */
}

.info-area {
    display: flex;
    flex-direction: column;
    /* Stack text and link on mobile */
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 20px;
}

.info-text {
    text-align: center;
    font-size: 14px;
}

.info-text strong {
    font-size: 28px;
    color: var(--primary-color);
    margin: 0 5px;
    font-family: 'Montserrat';
}

.info-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: bold;
    background: var(--primary-color);
    padding: 16px 40px;
    border-radius: 50px;
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    font-family: var(--font-main);
    margin: 0 auto;
    font-size: 14px;
}

.info-link .arrow {
    background: #fff;
    color: var(--primary-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .info-bar {
        padding: 20px 0;
        margin-top: -80px;
        position: relative;
        top: 0;
        margin-bottom: 0;
        z-index: 10;
    }

    .info-content {
        flex-direction: row;
        /* Horizontal layout */
        align-items: stretch;
        display: grid;
        grid-template-columns: auto 1fr;
    }

    .info-badge {
        width: auto;
        padding: 15px 40px;
        border-radius: 10px 0 0 10px;
    }

    .info-area {
        flex-direction: row;
        /* Horizontal inner layout */
        padding: 20px 40px 20px 20px;
        justify-content: space-between;
        /* Space out text and link */
    }

    .info-text {
        text-align: left;
        padding-left: 20px;
        font-size: 16px;
    }

    .info-text strong {
        font-size: 32px;
    }

    .info-link {
        flex-direction: column;
        padding-left: 40px;
        font-weight: normal;
        border-left: 1px solid #D9D9D9;
        display: flex;
        height: 100%;
        align-items: center;
        justify-content: center;
        background: none;
        color: var(--text-main);
        border-radius: 0;
        padding: 0 0 0 40px;
        margin: 0;
    }

    .info-link .arrow {
        color: var(--white);
        background: var(--primary-color);
    }
}

/* News Section */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.news-title {
    font-size: 36px;
    color: var(--primary-color);
    font-weight: 400;
    /* Thin font for "News" */
    line-height: 1;
    font-family: var(--font-en);
    /* Montserrat */
}

.news-title span {
    font-size: 16px;
    color: var(--text-light);
    margin-left: 10px;
    font-weight: normal;
    display: inline-block;
    transform: translateY(-5px);
    font-family: var(--font-main);
    /* Back to Noto for Japanese */
}

.news-more {
    font-size: 14px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-en);
}

.news-more .icon {
    background: var(--primary-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* -----------------------------------------------------------------------
   ニュース一覧・詳細ページ
----------------------------------------------------------------------- */

/* 一覧ラッパー（パディングなし） */
.news-archive-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0;
}

/* サイドバー付きレイアウト */
.news-archive-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
}

@media (min-width: 1024px) {
    .news-archive-layout {
        grid-template-columns: 1fr 240px;
    }
}

/* 3カラムグリッド */
.news-grid--3col {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .news-grid--3col { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .news-grid--3col { grid-template-columns: repeat(3, 1fr); }
}

/* h3 下線・after なし */
.news-desc,
.contents-area-inner .news-desc {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    position: static;
}

.contents-area-inner .news-desc::after {
    display: none !important;
}

/* ページネーション */
.pagination {
    text-align: center;
    margin-top: 40px;
}

.pagination .nav-links {
    display: inline-flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* -----------------------------------------------------------------------
   サイドバー
----------------------------------------------------------------------- */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.news-sidebar-widget {
    border-top: 1px solid #ccc;
}

.news-sidebar-widget:first-child {
    border-top: none;
    margin-top: 0;
}

.news-sidebar-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    padding: 10px 0;
    margin: 0 0 4px;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    letter-spacing: 0.05em;
}

.news-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 4px 0 0;
}

.news-sidebar-list li {
    border-bottom: 1px solid #f0f0f0;
}

.news-sidebar-list li:last-child {
    border-bottom: none;
}

.news-sidebar-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 4px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 13px;
    transition: color 0.2s;
}

.news-sidebar-list a:hover {
    color: var(--primary-color);
}

/* 新着リスト：縦並び */
.news-sidebar-list--recent a {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.news-sidebar-date {
    font-size: 11px;
    color: var(--text-light);
    font-family: var(--font-en);
    flex-shrink: 0;
}

.news-sidebar-text {
    line-height: 1.5;
}

.news-sidebar-cat-name {
    flex: 1;
}

.news-sidebar-month {
    flex: 1;
}

.news-sidebar-arrow {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: background 0.2s, border-color 0.2s;
}

.news-sidebar-list a:hover .news-sidebar-arrow {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.news-sidebar-arrow .material-icons {
    font-size: 14px;
}

/* -----------------------------------------------------------------------
   詳細ページ
----------------------------------------------------------------------- */
.news-single-header {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 24px;
    margin-bottom: 40px;
}

.news-single-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.news-single-date {
    font-size: 13px;
    color: var(--text-light);
    font-family: var(--font-en);
}

.news-single-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--text-main);
    margin: 0;
}
.news-single-thumbnail {
    margin-bottom: 1rem;
}

/* 前後ナビ */
.news-single-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.news-nav-item--list {
    text-align: center;
    white-space: nowrap;
}

.news-nav-item--next {
    text-align: right;
}

.news-nav-link {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: var(--text-main);
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    transition: border-color 0.2s, color 0.2s;
    font-size: 13px;
}

.news-nav-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.news-nav-link--right {
    text-align: right;
}

.news-nav-label {
    font-size: 11px;
    color: var(--text-light);
}

.news-nav-title {
    line-height: 1.5;
    font-weight: 500;
}

@media (max-width: 767px) {
    .news-single-nav {
        grid-template-columns: 1fr;
    }

    .news-nav-item--list {
        order: -1;
    }

    .news-nav-link--right {
        text-align: left;
    }
}

.news-card {
    background: var(--white);
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    aspect-ratio: 16/9;
    background: #f0f4f8;
    margin-bottom: 15px;
    overflow: hidden;
}

.news-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image-placeholder img {
    width: 50%;
    height: auto;
    object-fit: contain;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
    align-items: center;
    font-family: var(--font-en);
    /* Numbers/Dates in Montserrat */
}

.news-date {
    color: var(--text-light);
    position: absolute;
    top: 0;
    font-family: 'Montserrat';
    background: #fff;
    padding: 2px 5px;
}

.news-tag {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    background: white;
    font-family: var(--font-main);
}

.event-tag {
    color: #F1A031;
    border: 1px solid #F1A031;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    background: white;
    font-family: var(--font-main);
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .contents-area-inner .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .news-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* About Section ("想いをかたちに") */
.about {
    position: relative;
    overflow: hidden;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.about-content-wrapper {
    position: relative;
    padding: 40px 32px;
    background: linear-gradient(180deg, #309CBE 0%, #6EC3D9 50%, #B8E3EF 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Add wave/curve shape if possible, for now simple radius */

.about-title {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 100;
    font-family: var(--font-serif);
    letter-spacing: 2px;
}

.about-desc {
    font-size: 15px;
    line-height: 2;
    margin-bottom: 30px;
    letter-spacing: 1px;
    font-weight: 300;
}

.about-btn {
    background: white;
    color: var(--primary-color);
    padding: 16px 60px;
    border-radius: 50px;
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    font-family: var(--font-main);
    width: 100%;
    justify-content: center;
}

.about-image {
    position: relative;
    z-index: 2;
    height: 400px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 1024px) {

    .about-title {
        font-size: 32px;
    }

    .about-container {
        grid-template-columns: 45% 55%;
        align-items: center;
        background: url(../images/CTA-back.svg) no-repeat;
        background-position: top 20% right;
        background-size: 50%;
        margin-top: -100px;
    }

    .about-content-wrapper {
        margin-right: -100px;
        padding: 120px 140px 120px 80px;
        border-radius: 0 20px 20px 0;
        min-height: 500px;
    }

    .about-image {
        height: 600px;
        z-index: 1;
        margin-top: 40%;
    }

    .about-image img {
        border-radius: 20px 0 0 20px;
    }

    .about-btn {
        width: auto;
        padding: 10px 60px;
        font-size: 14px;
    }
}

/* Services / Features */
.page-hero-container {
    display: grid;
}


.page-hero-image img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.page-hero-text-area {
    display: flex;
    padding: 20px 40px 40px 20px;
}

.contents-area {
    background: #F7F7F7;
    padding: 3rem 20px;
}

.contents-area-inner {
    background: #fff;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    padding: 40px 20px;
}

.contents-area .container {
    padding: 0 20px;
}

.contents-area section {
    padding: 40px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 40px auto 120px;
}

.feature-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
}

.feature-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-card:hover img {
    transform: scale(1.05);
}

.feature-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.feature-title {
    color: white;
    font-size: 18px;
    font-weight: normal;
    letter-spacing: 2px;
}

.feature-title span {
    display: block;
    color: #B8E3EF;
}

.feature-icon {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .page-hero-container {
        display: grid;
        grid-template-columns: 1fr 2fr
    }

    .page-hero-text-area {
        padding: 0 40px;
        order: 1;
        align-items: center;
        justify-content: center;
    }

    .page-hero-image {
        order: 2;
    }

    .page-hero-image img {
        height: 270px;
        border-radius: 0 0 0 40px;
    }

    .contents-area {
        background: #F7F7F7;
        margin-top: -40px;
        padding: 6rem 0;
    }

    .contents-area section {
        padding: 80px 0;
    }

    .contents-area .container {
        padding: 0 80px;
    }

    .contents-area-inner {
        padding: 60px 80px;
    }

}

/* Recruit Section */
.recruit {
    position: relative;
    width: 100%;
}

.recruit-container {
    position: relative;
    width: 100%;
    height: 100%;
    margin-bottom: 80px;
}

.recruit-image {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.recruit-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.recruit-image h2 {
    color: var(--secondary-color);
    position: absolute;
    bottom: 0;
    left: 40px;
    font-weight: 100;
    letter-spacing: 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-shadow:
        0 0 5px rgba(255, 255, 255, 1),
        0 0 10px rgba(255, 255, 255, 0.9),
        0 0 20px rgba(255, 255, 255, 0.7),
        0 0 30px rgba(255, 255, 255, 0.5),
        0 0 40px rgba(255, 255, 255, 0.3);
}

.recruit-image h2 span {
    font-size: 20px;
}

.recruit-content-layer {
    width: 95%;
    background: linear-gradient(0deg, #A8E6CF 0%, #5BC896 50%, #00A961 100%);
    padding: 40px 20px;
    color: white;
    margin-left: auto;
    border-radius: 0 0 0 20px;
}

.recruit-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
}

.recruit-heading {
    font-size: 28px;
    font-weight: bold;
}

.recruit-title {
    font-family: var(--font-en);
    /* "Recruit" */
    font-size: 56px;
    margin-bottom: 40px;
    line-height: 1;
}

.recruit-text {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 20px;
    font-family: var(--font-serif);
    /* "想いに寄り添う..." */
}

.recruit-sub {
    font-size: 16px;
    letter-spacing: 2px;
    line-height: 2;
    font-weight: 300;
}

.recruit-btn-wrapper {
    margin-top: 20px;
}

.recruit-btn {
    background: white;
    color: var(--secondary-color);
    padding: 16px 60px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    font-family: var(--font-main);
    position: relative;
    width: 100%;
    justify-content: center;
    font-size: 18px;

    &::after {
        content: "\e941";
        font-family: "Material Icons";
        width: 30px;
        height: 30px;
        background: var(--secondary-color);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        position: absolute;
        right: 10px;
    }
}

.circle-decoration {
    position: relative;
    z-index: 1;
}

.circle {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.circle.circle-1 {
    width: 285px;
    height: 285px;
    position: absolute;
    right: 15%;
    bottom: -180px;
}

.circle.circle-2 {
    width: 220px;
    height: 220px;
    position: absolute;
    right: 0%;
    top: 50%;
}

@media (min-width: 768px) {
    .recruit-text {
        font-size: 48px;
        letter-spacing: 2px;
    }

    .recruit-image {
        max-width: 95%;
        margin: 0 auto;
    }

    .recruit-image img {
        border-radius: 20px;
    }

    .recruit-content-layer {
        display: flex;
        align-items: center;
        padding: 120px 80px 100px;
        margin: -80px 0 120px auto;
        border-radius: 0 0 0 40px;
    }

    .recruit-inner {
        width: 100%;
    }

    .recruit-text {
        font-size: 48px;
    }

    .recruit-btn {
        width: auto;
        padding: 10px 60px;
        font-size: 14px;
    }
}

/* Footer Contact Area */
.footer-cta {
    background:
        url('../images/logo_mark.svg') center top 5%/80% no-repeat,
        #309CBE;
    /* Gradient Blue/Teal */
    padding: 80px 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-cta h2 {
    font-size: 22px;
    font-weight: 300;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
    letter-spacing: 2px;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.cta-card {
    background: white;
    color: var(--text-main);
    padding: 30px 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cta-card p {
    font-size: 14px;

    a {
        text-decoration: underline;
    }
}

.cta-icon {
    font-size: 30px;
    color: #fff;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.recruit-icon {
    background: var(--secondary-color);
}

.cta-title {
    font-size: 20px;
    font-weight: 400;
}


.cta-phone a {
    font-size: 40px;
    color: var(--primary-color);
    font-family: 'Montserrat';
    letter-spacing: 2px;
    font-weight: 600;
    display: block;
    line-height: 1;
    margin-bottom: 5px;
}


.cta-btn,
.btn-footer-contact {
    width: 100%;
    padding: 16px;
    border-radius: 50px;
    background: var(--gradient-blue);
    color: white;
    margin-top: 10px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: normal;

    &::after {
        content: "\e941";
        font-family: "Material Icons";
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 10px;
        top: auto;
        background-color: #fff;
        color: var(--primary-color);
    }
}


.cta-btn-green {
    background: var(--gradient-green);

    &::after {
        color: var(--primary-color);
    }
}

@media (min-width: 768px) {

    .footer-cta {
        background:
            url('../images/logo_mark.svg') center top 20%/60% no-repeat,
            #309CBE;
    }

    .cta-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cta-btn {
        width: 100% !important;
    }

    .cta-btn,
    .btn-footer-contact {
        display: inline-flex;
        width: auto;
        font-size: 14px;
        padding: 10px 60px;

        &::after {
            width: 20px;
            height: 20px;
        }
    }

    .footer-cta h2 {
        font-size: 32px;
    }
}

/* Page Footer */
.site-footer {
    background: #F5F5F5;
    padding: 60px 0 20px;
    color: var(--text-main);
    font-size: 14px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-address {
    font-style: normal;
    line-height: 1.8;
}

.footer-nav ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: min-content;
    margin-bottom: 16px;
}

.footer-nav ul li {
    margin-bottom: 10px;
}

.footer-nav ul li::before {
    content: "●";
    font-size: 8px;
    color: var(--primary-color);
    margin-right: 5px;
}

.footer-nav ul li:last-child {
  grid-column: 1 / -1;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #ddd;
    padding-top: 20px;
    font-size: 12px;
    color: var(--text-light);
}

@media (min-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Top Button */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 900;
    font-size: 1.5rem;

    &::after {
        content: "\e5d8";
        font-family: "Material Icons";
    }
}

.scroll-top.visible {
    opacity: 1;
}

/* =========================================
   Sub Page Styles (Feature)
   ========================================= */

/* Page Hero */
.page-hero {
    padding: 80px 0 0 0;
    position: relative;
    overflow: hidden;
}

.page-hero-inner {
    position: relative;
    z-index: 2;
}

.page-hero-sub {
    font-family: var(--font-en);
    color: var(--primary-color);
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.page-hero-text h1 {
    font-size: 32px;
    color: var(--text-main);
    margin-bottom: 10px;
    font-weight: 500;
}

.breadcrumbs {
    font-size: 14px;
    color: #888;
    margin-top: 10px;
}

.breadcrumbs a {
    color: #888;
    text-decoration: none;
}

.breadcrumbs span {
    color: var(--primary-color);
}

/* Cooperation Section */
.text-blue {
    color: var(--primary-color);
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 500;
}

.section-desc {
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.page-feature .section::after {
    content: '';
    border-bottom: 1px solid #cccccc;
    width: 100px;
    height: 2px;
    display: block;
    margin: 0 auto;
}

.page-feature .care-features::after,
.page-feature .bottom-nav-section::after {
    display: none;
}

/* Diagram Styles */
.cooperation-diagram {
    position: relative;
    max-width: 800px;
    margin: 80px auto;
}

.diagram-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.center-text {
    text-align: center;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.satellite {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.satellite .icon {
    font-family: 'Material Icons';
    font-size: 30px;
    margin-bottom: 5px;
}

/* Positioning satellites around circle */
.sat-1 {
    top: 0;
    left: 50%;
    transform: translate(-50%, -120%);
    border: 3px solid #ff9f43;
    color: #ff9f43;
}

/* Medical */
.sat-2 {
    top: 30%;
    right: 0;
    transform: translate(110%, -50%);
    border: 3px solid #1dd1a1;
    color: #1dd1a1;
}

/* Pharmacy */
.sat-3 {
    bottom: 0;
    right: 0;
    transform: translate(90%, 90%);
    border: 3px solid #54a0ff;
    color: #54a0ff;
}

/* Nurse */
.sat-4 {
    bottom: 0;
    left: 0;
    transform: translate(-90%, 90%);
    border: 3px solid #48dbfb;
    color: #48dbfb;
}

/* Care */
.sat-5 {
    top: 30%;
    left: 0;
    transform: translate(-110%, -50%);
    border: 3px solid #5f27cd;
    color: #5f27cd;
}


/* Section BG Light */
.section-bg-light {
    background-color: #F8FCFD;
    padding: 80px 0;
}

/* 24h Support Grid */
.subsection-title {
    font-size: 20px;
    border-bottom: solid 3px #D9D9D9;
    position: relative;
    color: var(--text-main);
    margin-bottom: 30px;
    padding-bottom: 10px;
    font-weight: normal;

    &::after {
        position: absolute;
        content: " ";
        display: block;
        border-bottom: solid 3px var(--primary-color);
        bottom: -3px;
        width: 20%;
    }
}

.subsection-title-2 {
    font-size: 20px;
    border-left: solid 2px var(--primary-color);
    position: relative;
    margin-bottom: 24px;
    font-weight: normal;
    padding-left: 15px;
}

.grid-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 40px;
}

.grid-item,
.grid-list > * {
    background: #EAF6FA;
    padding: 15px 5px;
    text-align: center;
    color: var(--text-main);
    font-weight: 500;
    font-size: 14px;
    border-radius: 4px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 60px;
}

.number-list {
    counter-reset: number;
    list-style-type: none !important;
    padding: 0.5em;
    display: grid;
}

.number-list li {
    position: relative;
    padding-left: 30px;
    line-height: 1.5em;
    padding: 0.5em 0.5em 0.5em 30px;

    &::before {
        content: counter(number);
        counter-increment: number;
        background: var(--primary-color);
        color: white;
        font-size: 15px;
        border-radius: 50%;
        position: absolute;
        left: 0;
        width: 25px;
        height: 25px;
        text-align: center;
        font-family: 'Noto Sans JP';
        font-weight: 500;
        display: flex;
        justify-content: center;
        align-items: center;
        line-height: 1.5;
        letter-spacing: 0;
    }

}

@media (min-width: 768px) {
    .number-list {
        display: grid;
        grid-auto-flow: column;
        grid-template-rows: repeat(10, auto);
    }
}

/* Check List */
.check-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    font-weight: bold;
    color: var(--text-main);
}

.check-list li::before {
    content: 'check_circle';
    font-family: 'Material Icons';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
    font-size: 22px;
}

.note-box {
    margin-top: 20px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px dashed #ccc;
    font-size: 14px;
}

.note-box ul {
    list-style: disc;
    padding-left: 20px;
}

/* CTA Gray Box */
.cta-gray-box {
    background: #F2F2F2;
    padding: 40px 20px;
    border-radius: 10px;
    margin-bottom: 60px;
}

.cta-gray-box h3 {
    font-size: 20px;
    text-align: left;
    margin-bottom: 20px;
    color: var(--text-main);
    line-height: 1.6;
    font-weight: normal;
}

.cta-gray-list {
    list-style: none;
    padding: 0;
    display: inline-block;
    text-align: left;
    margin-bottom: 20px;
}

.cta-gray-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.cta-gray-list li::before {
    content: "●";
    position: absolute;
    left: 0;
    font-size: 10px;
    top: 5px;
    text-decoration: none;
    color: var(--primary-color);
}

.cta-gray-box .btn {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
}

/* Care Features */
.care-feature-item {
}

.care-subtitle {
    font-size: 20px;
    color: var(--text-main);
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
    font-weight: bold;
}

.care-desc {
    margin-bottom: 30px;
    line-height: 1.8;
}

.care-gallery-3 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
}

.care-gallery-2 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
}

.care-gallery-3 img,
.care-gallery-2 img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

@media (min-width: 768px) {
    .cta-gray-box h3 {
        font-size: 24px;
        text-align: center;
    }
}

/* Bottom Nav */
.bottom-nav-section {
    padding-bottom: 80px;

    &::after {
        border: 0;
    }
}

.bottom-nav-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.bottom-nav-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

.bottom-nav-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.bottom-nav-card .content {
    flex: 1;
    min-width: 0;
}

.bottom-nav-card .card-arrow {
    flex-shrink: 0;
}

.bottom-nav-card h3 {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 10px;
    padding: 0;
    border: none;
    border-bottom: none;
    letter-spacing: normal;
}

.bottom-nav-card p {
    font-size: 12px;
}

.bottom-nav-card .card-arrow {
    color: white;
    background: var(--gradient-blue);
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Text utils */
.text-center {
    text-align: center;
}

.text-white {
    color: white;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mt-60 {
    margin-top: 60px;
}

.mb-40 {
    margin-bottom: 40px;
}

.pc-only {
    display: none;
}

.map {
    max-width: 500px;
    margin-top: 20px;
}

.map iframe {
    width: 100%;
    height: 250px;
    border: 20px;
}

/* Desktop Responsive */
@media (min-width: 768px) {
    .grid-list {
        grid-template-columns: repeat(4, 1fr);
    }

    .check-list {
        grid-template-columns: 1fr 1fr;
    }

    .support-grid-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }

    .care-gallery-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .care-gallery-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .bottom-nav-grid,
    .contents-area-inner .bottom-nav-grid {
        grid-template-columns: repeat( 2, 1fr );
    }

    .pc-only {
        display: inline;
    }

    .page-hero-text h1 {
        font-size: 40px;
    }

    .cooperation-diagram {
        margin: 60px auto;
        transform: scale(1);
    }
}

/* -----------------------------------------------------------------------
   固定ページ ブロックエディター コンテンツスタイル
   .contents-area-inner 内の wp-block-* 要素にフロント側スタイルを適用
----------------------------------------------------------------------- */

/* ブロック間の余白（全ブロック共通） */
.contents-area-inner > *:not(li) + *:not(li) {
    margin-top: 32px;
}

/* 見出し前：広め */
.contents-area-inner > * + h2.wp-block-heading { margin-top: 3.5em; }
.contents-area-inner > * + h3.wp-block-heading { margin-top: 3em; }
.contents-area-inner > * + h4.wp-block-heading { margin-top: 2.5em; }
.contents-area-inner > * + h5.wp-block-heading { margin-top: 1.5em; }

/* 見出し直後はやや狭く */
.contents-area-inner > h2 + *:not(li),
.contents-area-inner > h3 + *:not(li),
.contents-area-inner > h4 + *:not(li) {
    margin-top: 16px;
}

/* H2 */
.contents-area-inner h2 {
    font-size: 26px;
    font-weight: 500;
    color: #3EA8C8;
    margin-bottom: 28px;
    margin-top: 0;
    line-height: 1.4;
    letter-spacing: 0.05em;
}

/* グループブロック内の見出しは余白を抑える */
.contents-area-inner .wp-block-group * + h2,
.contents-area-inner .wp-block-group * + h3,
.contents-area-inner .wp-block-group * + h4 {
    padding-top: 16px;
    margin-top: 16px;
}

/* H3 */
.contents-area-inner h3 {
    font-size: 20px;
    font-weight: normal;
    color: #333333;
    margin-top: 48px;
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: solid 3px #D9D9D9;
    position: relative;
    line-height: 1.5;
    letter-spacing: 0.03em;
}

.contents-area-inner h3::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 20%;
    border-bottom: solid 3px #3EA8C8;
}

/* H4 */
.contents-area-inner h4 {
    font-size: 18px;
    font-weight: normal;
    color: #333333;
    border-left: solid 3px #3EA8C8;
    padding-left: 14px;
    margin-top: 40px;
    margin-bottom: 18px;
    line-height: 1.5;
    letter-spacing: 0.03em;
}

/* H5 */
.contents-area-inner h5 {
    font-size: 16px;
    font-weight: 500;
    margin-top: 24px;
    margin-bottom: 12px;
}

/* H6 */
.contents-area-inner h6 {
    font-size: 14px;
    font-weight: 500;
    color: #666666;
    margin-top: 16px;
    margin-bottom: 8px;
}

/* 本文 */
.contents-area-inner p {
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 1.2em;
    color: #333333;
}

/* OL（丸数字リスト） */
.contents-area-inner ol {
    counter-reset: nsh-number var(--ol-start, 0);
    list-style-type: none !important;
    padding: 4px 4px 4px 0;
    margin: 0 0 24px;
}

.contents-area-inner ol li {
    position: relative;
    padding: 6px 6px 6px 36px;
    line-height: 1.7;
    font-size: 15px;
    counter-increment: nsh-number;
}

.contents-area-inner ol li::before {
    content: counter(nsh-number);
    background: #3EA8C8;
    color: white;
    font-size: 12px;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 8px;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    letter-spacing: 0;
}

/* 大文字 (A, B, C) / 小文字 (a, b, c)：背景なし・青テキスト */
.contents-area-inner ol[style*="upper-alpha"] li::before,
.contents-area-inner ol[style*="upper-latin"] li::before,
.contents-area-inner ol[style*="lower-alpha"] li::before,
.contents-area-inner ol[style*="lower-latin"] li::before {
    background: none;
    color: #3EA8C8;
    font-size: 15px;
    font-weight: 700;
}
.contents-area-inner ol[style*="upper-alpha"] li::before,
.contents-area-inner ol[style*="upper-latin"] li::before {
    content: counter(nsh-number, upper-alpha) ".";
}
.contents-area-inner ol[style*="lower-alpha"] li::before,
.contents-area-inner ol[style*="lower-latin"] li::before {
    content: counter(nsh-number, lower-alpha) ".";
}

/* ローマ数字大文字 (I, II, III) / 小文字 (i, ii, iii)：背景なし・黒テキスト */
.contents-area-inner ol[style*="upper-roman"] li::before,
.contents-area-inner ol[style*="lower-roman"] li::before {
    background: none;
    color: #333;
    font-size: 13px;
    font-weight: 700;
}
.contents-area-inner ol[style*="upper-roman"] li::before {
    content: counter(nsh-number, upper-roman) ".";
}
.contents-area-inner ol[style*="lower-roman"] li::before {
    content: counter(nsh-number, lower-roman) ".";
}

/* UL（色付きブレットリスト） */
.contents-area-inner ul {
    list-style: disc;
    padding-left: 1.5em;
    padding-inline-start: 1.5em;
    margin: 0 0 24px;
}

.contents-area-inner ul li {
    padding: 2px 4px;
    line-height: 1.8;
    font-size: 15px;
}

.contents-area-inner ul li::before {
    content: none;
}

.contents-area-inner ul li::marker {
    color: #3EA8C8;
}

/* note-box 内のリストは通常表示 */
.contents-area-inner .note-box ul {
    list-style: disc;
    padding-left: 1.5em;
    padding-inline-start: 1.5em;
}

.contents-area-inner .note-box ul li::before {
    content: none;
}

/* Groupブロックに背景色が付いたとき自動でパディング */
.wp-block-group.has-background {
    padding: 40px 32px !important;
    border-radius: 8px;
}

/* カラム自身に背景色が付いたとき自動でパディング・高さ揃え・縦中央 */
.wp-block-column.has-background {
    padding: 40px 32px !important;
    border-radius: 8px;
    align-self: stretch !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}
.wp-block-column.has-background h1,
.wp-block-column.has-background h2,
.wp-block-column.has-background h3,
.wp-block-column.has-background h4,
.wp-block-column.has-background h5,
.wp-block-column.has-background h6 {
    margin-top: 0;
}

/* カラムブロック：縦幅を揃える・マージンボトム */
.wp-block-columns {
    align-items: stretch !important;
    margin-bottom: 2em;
}

/* カラム内ブロックの margin-top をリセット */
.wp-block-column > * + * {
    margin-top: 0 !important;
}

.wp-block-group__inner-container.is-layout-constrained.wp-block-group-is-layout-constrained {
    margin-top: 1rem;
}

@media (max-width: 767px) {
    .wp-block-column .wp-block-list {
        margin-bottom: 0;
    }
    .wp-block-buttons>.wp-block-button.wp-block-button__width-50,
    .wp-block-buttons>.wp-block-button.wp-block-button__width-75,
    .wp-block-buttons>.wp-block-button.wp-block-button__width-25 {
        width: 100%;
    }
}


/* -----------------------------------------------------------------------
   テーブルブロック スタイルバリエーション
----------------------------------------------------------------------- */

/* ── デフォルト：全セル白背景 ── */
.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
}
.wp-block-table td,
.wp-block-table th {
    border: 1px solid #d0d0d0;
    padding: 10px 16px;
    vertical-align: top;
    background: #fff !important;
    color: inherit !important;
    text-align: left;
}
/* カラム配置コントロール（class / data-align 両方対応） */
.wp-block-table td.has-text-align-left,
.wp-block-table th.has-text-align-left,
.wp-block-table td[data-align="left"],
.wp-block-table th[data-align="left"]   { text-align: left   !important; }

.wp-block-table td.has-text-align-center,
.wp-block-table th.has-text-align-center,
.wp-block-table td[data-align="center"],
.wp-block-table th[data-align="center"] { text-align: center !important; }

.wp-block-table td.has-text-align-right,
.wp-block-table th.has-text-align-right,
.wp-block-table td[data-align="right"],
.wp-block-table th[data-align="right"]  { text-align: right  !important; }

.wp-block-table thead {
    border-bottom: none !important;
}

.wp-block-table thead th {
    font-weight: 600;
    border-bottom: none !important;
}

/* ── ストライプ ── */
.wp-block-table.is-style-stripe tbody tr:nth-child(odd) td,
.wp-block-table.is-style-stripe tbody tr:nth-child(odd) th {
    background: #fff !important;
}
.wp-block-table.is-style-stripe tbody tr:nth-child(even) td,
.wp-block-table.is-style-stripe tbody tr:nth-child(even) th {
    background: #f0f0f0 !important;
}

/* ── ヘッダー強調 ── */
.wp-block-table.is-style-header-accent thead th {
    background: #3EA8C8 !important;
    color: #fff !important;
    font-weight: 600;
}
.wp-block-table.is-style-header-accent tbody th {
    background: #e8f5fa !important;
    font-weight: 600;
    color: #1a7a99 !important;
}

/* ── コンパクト（チェックボックスで付与） ── */
.wp-block-table.nsh-table-compact td,
.wp-block-table.nsh-table-compact th {
    padding: 6px 10px;
    font-size: 13px;
}

/* ── 1列目 th（チェックボックスで付与） ── */
.wp-block-table.nsh-table-first-th tbody td:first-child,
.wp-block-table.nsh-table-first-th tbody th:first-child {
    background: #e8f5fa !important;
    color: #1a7a99 !important;
    font-weight: 700;
    vertical-align: middle;
    width: var(--nsh-col1-w);
}

/* ── スマホ縦積み（チェックボックスで付与） ── */
@media (max-width: 767px) {
    .wp-block-table.nsh-table-stack table,
    .wp-block-table.nsh-table-stack tbody {
        display: block;
        width: 100%;
    }
    .wp-block-table.nsh-table-stack thead {
        display: none;
    }
    .wp-block-table.nsh-table-stack tr {
        display: block;
        border: 1px solid #d0d0d0;
        margin-bottom: 8px;
    }
    .wp-block-table.nsh-table-stack td,
    .wp-block-table.nsh-table-stack th {
        display: block;
        width: 100%;
        border: none !important;
        border-bottom: 1px solid #e8e8e8 !important;
        box-sizing: border-box;
        text-align: left !important;
    }
    .wp-block-table.nsh-table-stack td:last-child,
    .wp-block-table.nsh-table-stack th:last-child {
        border-bottom: none !important;
    }
    /* 1列目 th と組み合わせた場合 */
    .wp-block-table.nsh-table-stack.nsh-table-first-th tbody td:first-child,
    .wp-block-table.nsh-table-stack.nsh-table-first-th tbody th:first-child {
        padding: 6px 12px;
        vertical-align: middle;
        width: 100% !important;
        --nsh-col1-w: 100%;
    }
}

/* ── スマホ横スクロール（チェックボックスで付与） ── */
.nsh-table-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.nsh-table-scroll-wrap .wp-block-table {
    margin: 0;
}
.nsh-table-scroll-wrap table {
    min-width: 560px;
    width: 100%;
}


/* -----------------------------------------------------------------------
   グループブロック スタイルバリエーション
----------------------------------------------------------------------- */
.wp-block-group.is-style-border-solid,
.wp-block-group.is-style-border-dashed,
.wp-block-group.is-style-bg-light-blue,
.wp-block-group.is-style-bg-gray,
.wp-block-group.is-style-card-shadow,
.wp-block-group.is-style-card-border,
.wp-block-group.is-style-accent-left {
    padding: 24px 28px;
}

/* 枠線（実線） */
.wp-block-group.is-style-border-solid {
    border: 2px solid #d0d0d0;
    border-radius: 8px;
}

/* 枠線（点線） */
.wp-block-group.is-style-border-dashed {
    border: 2px dashed #d0d0d0;
    border-radius: 8px;
}

/* 背景：薄青 */
.wp-block-group.is-style-bg-light-blue {
    background: #EAF6FA;
    border-radius: 8px;
}

/* 背景：グレー */
.wp-block-group.is-style-bg-gray {
    background: #f5f5f5;
    border-radius: 8px;
}

/* カード（影） */
.wp-block-group.is-style-card-shadow {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* カード（枠） */
.wp-block-group.is-style-card-border {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
}

/* アクセント左線 */
.wp-block-group.is-style-accent-left {
    border-left: 4px solid #3EA8C8;
    background: #f9fdff;
    border-radius: 0 8px 8px 0;
}

/* ボタン */
.contents-area-inner .wp-block-button__link {
    background: linear-gradient(90deg, #309CBE 0%, #6EC3D9 100%);
    color: white;
    border-radius: 50px;
    padding: 12px 48px;
    font-size: 15px;
    font-weight: normal;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.contents-area-inner .wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    border: 2px solid #3EA8C8;
    color: #3EA8C8;
}

/* インラインフォーマット */
.nsh-text-color { /* color はインラインstyleで指定 */ }
.nsh-text-small { font-size: 0.8em; }
.nsh-text-large { font-size: 1.25em; }

/* ギャラリー */
.contents-area-inner .wp-block-gallery {
    margin-bottom: 40px;
}

/* ギャラリー：最後の写真が100%に拡大されるのを防ぐ */
.wp-block-gallery .wp-block-image:last-child {
    flex-grow: 0 !important;
}

/* ボタン：矢印付きスタイル */
.contents-area-inner .wp-block-button.is-style-arrow .wp-block-button__link,
.wp-block-button.is-style-arrow .wp-block-button__link {
    position: relative;
    padding-right: 60px;
}

.contents-area-inner .wp-block-button.is-style-arrow .wp-block-button__link::after,
.wp-block-button.is-style-arrow .wp-block-button__link::after {
    content: '→';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #3EA8C8;
    font-size: 16px;
    line-height: 1;
}

/* テーブル */
.contents-area-inner .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}


/* 引用 */
.contents-area-inner blockquote,
.contents-area-inner .wp-block-quote {
    border-left: 4px solid #3EA8C8;
    padding: 16px 20px;
    margin: 24px 0;
    background: #f0f9fc;
    border-radius: 0 6px 6px 0;
}

.contents-area-inner .wp-block-quote p {
    font-size: 15px;
    margin-bottom: 0;
}

/* 3カラム Columns ブロック内の画像 */
.contents-area-inner .wp-block-columns:has(> .wp-block-column:nth-child(3):last-child) .wp-block-image img {
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

/* セパレーター */
.contents-area-inner .wp-block-separator {
    border: none;
    border-bottom: 1px solid #d0d0d0;
    margin: 48px auto;
    width: 100px;
}

/* 画像 */
.contents-area-inner .wp-block-image img {
    border-radius: 6px;
    max-width: 100%;
    height: auto;
}

.contents-area-inner .wp-block-image figcaption {
    font-size: 13px;
    color: #666666;
    text-align: center;
    margin-top: 6px;
}

/* bottom-nav-card 内の要素は見出しリストスタイルを上書きリセット */
.contents-area-inner .bottom-nav-card h3 {
    border-bottom: none;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 10px;
}

.contents-area-inner .bottom-nav-card h3::after {
    display: none;
}

.contents-area-inner .bottom-nav-card p {
    font-size: 12px;
    margin-bottom: 0;
    color: var(--text-light);
}

/* グリッドブロック内 p 要素の縦中央揃え（固定ページ内） */
.contents-area-inner .is-layout-grid > p {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 60px;
    text-align: center;
    margin: 0 !important;
}

/* 下部ナビカード（固定ページ内） */
.contents-area-inner .bottom-nav-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 0 0 32px;
}

@media (min-width: 768px) {
    .contents-area-inner .bottom-nav-grid {
        grid-template-columns: repeat( 2, 1fr );
    }
}

/* 空き室数表示 */
p.vacant {
    margin-bottom: 0;
    text-align: center;
    font-size: 1.5rem;
}
p.vacant strong {
    font-size: 2.5rem;
    color: #3EA8C8;
}

/* -----------------------------------------------------------------------
   流れブロック (nsh/flow)
----------------------------------------------------------------------- */
.nsh-flow {
    counter-reset: flow-step;
    margin: 0 0 24px;
}

.nsh-flow-item {
    counter-increment: flow-step;
    display: flex;
    gap: 20px;
    position: relative;
    padding-bottom: 32px;
}

.nsh-flow-item:last-child {
    padding-bottom: 0;
}

/* ステップ間をつなぐ縦線 */
.nsh-flow-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 23px;
    top: 66px;
    bottom: 0;
    width: 2px;
    background: #b8dfe9;
}

/* 左：STEP ラベル + 番号円 */
.nsh-flow-head {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 48px;
}

.nsh-flow-label {
    font-size: 10px;
    font-weight: 700;
    color: #3EA8C8;
    letter-spacing: 0.08em;
    font-family: var(--font-en, 'Montserrat', sans-serif);
    line-height: 1;
}

/* 番号円（CSS counter で自動採番） */
.nsh-flow-head::after {
    content: counter(flow-step);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #3EA8C8;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-en, 'Montserrat', sans-serif);
    letter-spacing: 0;
    line-height: 1;
}

/* 右：本文エリア */
.nsh-flow-body {
    flex: 1;
    padding-top: 18px;
}

.nsh-flow-step-label {
    display: none;
}

.nsh-flow-title,
.contents-area-inner .nsh-flow-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    line-height: 1.5;
    margin: 0 0 8px;
}

.nsh-flow-body > * {
    margin-top: 0;
}

.nsh-flow-body > *:last-child {
    margin-bottom: 0;
}

/* -----------------------------------------------------------------------
   流れブロック：スタイルバリエーション
----------------------------------------------------------------------- */

/* ── シンプル（タイムライン風）── */
.nsh-flow.is-style-simple .nsh-flow-head {
    width: 20px;
    gap: 0;
    padding-top: 2px;
}

.nsh-flow.is-style-simple .nsh-flow-label {
    display: none;
}

.nsh-flow.is-style-simple .nsh-flow-head::after {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--flow-color, #3EA8C8);
    border-radius: 50%;
}

.nsh-flow.is-style-simple .nsh-flow-item:not(:last-child)::after {
    left: 9px;
    top: 18px;
}

.nsh-flow.is-style-simple .nsh-flow-body {
    padding-top: 0;
}

.nsh-flow.is-style-simple .nsh-flow-step-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--flow-color, #3EA8C8);
    letter-spacing: 0.05em;
    font-family: var(--font-en, 'Montserrat', sans-serif);
    line-height: 1.4;
    margin-bottom: 4px;
}

.nsh-flow.is-style-simple .nsh-flow-step-label::after {
    content: counter(flow-step);
}

/* ── アウトライン（輪郭円）── */
.nsh-flow.is-style-outline .nsh-flow-head::after {
    background: #fff;
    border: 2px solid var(--flow-color, #3EA8C8);
    color: var(--flow-color, #3EA8C8);
}

.nsh-flow.is-style-outline .nsh-flow-item:not(:last-child)::after {
    background: #d0e8f0;
}

/* -----------------------------------------------------------------------
   よくある質問ブロック (nsh/faq) - アコーディオン版
----------------------------------------------------------------------- */
.nsh-faq {
    margin: 0 0 24px;
}

.nsh-faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 8px;
    overflow: hidden;
}

.nsh-faq-item:last-child {
    margin-bottom: 0;
}

.nsh-faq-item[open] {
    border-color: var(--faq-color, #3EA8C8);
}

.nsh-faq-q {
    cursor: pointer;
    list-style: none;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    background: #fff;
    user-select: none;
}

.nsh-faq-q::-webkit-details-marker,
.nsh-faq-q::marker {
    display: none;
}

.nsh-faq-item[open] > .nsh-faq-q {
    background: #EAF6FA;
    border-bottom: 1px solid #e0e0e0;
}

.nsh-faq-label {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    font-weight: 700;
    font-size: 16px;
    font-family: var(--font-en, 'Montserrat', sans-serif);
    letter-spacing: 0;
    line-height: 1;
}

.nsh-faq-label-q {
    background: var(--faq-color, #3EA8C8);
    color: #fff;
}

.nsh-faq-label-a {
    background: #f5f5f5;
    color: #888;
    border: 1px solid #ddd;
}

.nsh-faq-chevron {
    margin-left: auto;
    flex-shrink: 0;
    color: var(--faq-color, #3EA8C8);
    transition: transform 0.2s ease;
    font-size: 22px;
}

.nsh-faq-item[open] .nsh-faq-chevron {
    transform: rotate(180deg);
}

.nsh-faq-qtext {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.6;
    padding-top: 0;
}

.nsh-faq-a {
    display: grid !important; /* ブラウザの details 非表示を上書き */
    grid-template-rows: 0fr;
    transition: grid-template-rows 400ms cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafafa;
}

.nsh-faq-item.is-open > .nsh-faq-a {
    grid-template-rows: 1fr;
}

.nsh-faq-a-inner {
    overflow: hidden;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 0 16px;
    transition: padding 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nsh-faq-item.is-open > .nsh-faq-a > .nsh-faq-a-inner {
    padding: 14px 16px;
}

.nsh-faq-atext {
    flex: 1;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    padding-top: 4px;
}

/* ── カード ── */
.nsh-faq.is-style-card .nsh-faq-item {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    margin-bottom: 16px;
}

/* ── ライン ── */
.nsh-faq.is-style-line .nsh-faq-item {
    border: none;
    border-left: 4px solid var(--faq-color, #3EA8C8);
    border-radius: 0;
    margin-bottom: 20px;
}

.nsh-faq.is-style-line .nsh-faq-item[open] {
    border-left-color: var(--faq-color, #3EA8C8);
}

.nsh-faq.is-style-line .nsh-faq-q {
    padding-left: 12px;
}

.nsh-faq.is-style-line .nsh-faq-item[open] > .nsh-faq-q {
    background: none;
    border-bottom: 1px solid #e0e0e0;
}

.nsh-faq.is-style-line .nsh-faq-a {
    background: none;
    padding-left: 12px;
}

/* -----------------------------------------------------------------------
   採用情報専用ヒーローレイアウト
----------------------------------------------------------------------- */
.recruit-hero {
    padding-top: 80px; /* 固定ヘッダー分 */
    position: relative;
}

.recruit-hero-image {
    width: 100%;
    overflow: hidden;
}

.recruit-hero-image img {
    width: 100%;
    height: calc(100vh - 80px);
    max-height: 600px;
    min-height: 360px;
    object-fit: cover;
    display: block;
}

/* タイトルを画像の中央に配置 */
.recruit-hero-overlay {
    position: absolute;
    inset: 80px 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.18);
    pointer-events: none;
}

.recruit-hero-text {
    padding: 0 20px;
}

.recruit-hero-sub {
    font-family: var(--font-en);
    font-size: 14px;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.recruit-hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
    margin-bottom: 20px;
}

.recruit-hero-text .breadcrumbs {
    color: rgba(255, 255, 255, 0.75);
}

.recruit-hero-text .breadcrumbs a {
    color: rgba(255, 255, 255, 0.75);
}

/* グレーエリアを画像のすぐ下から開始 */
.contents-area.recruit-contents-area {
    margin-top: -80px; /* hero の padding-top 分だけ打ち消す */
    padding-top: 0;
    padding-bottom: 4rem;
    position: relative;
    z-index: 2;
}

/* 白カードだけを上にはみ出させて画像に重ねる */
.recruit-contents-inner {
    max-width: 88%;
    transform: translateY(-100px);
    margin-bottom: -100px;
    position: relative;
    z-index: 3;
}

/* ── SP ── */
@media ( max-width: 767px ) {
    .recruit-hero-image img {
        height: 60vh;
        min-height: 280px;
    }

    .recruit-hero-text h1 {
        font-size: 32px;
    }

    .recruit-contents-inner {
        max-width: 95%;
    }

    .contents-area.recruit-contents-area {
        margin-top: -80px;
    }

    .recruit-contents-inner {
        transform: translateY(-60px);
        margin-bottom: -60px;
    }
}

/* ===================================================
   タブブロック (nsh/tabs)
=================================================== */
.nsh-tabs { margin: 0 0 24px; }

.nsh-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 2px solid var(--tab-color, #3EA8C8);
}

.nsh-tabs-btn {
    background: #f0f0f0;
    border: none;
    padding: 10px 24px;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
    line-height: 1.4;
}
.nsh-tabs-btn:hover { background: #e0e0e0; color: #333; }
.nsh-tabs-btn.is-active { background: var(--tab-color, #3EA8C8); color: #fff; }

.nsh-tab-panel {
    display: none;
    padding: 28px 24px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
}
.nsh-tab-panel.is-active { display: block; }
.nsh-tab-panel > * + * { margin-top: 1rem; }
.nsh-tab-panel > *:last-child { margin-bottom: 0; }

@media (max-width: 767px) {
    .nsh-tabs-btn { padding: 8px 14px; font-size: 13px; }
    .nsh-tab-panel { padding: 20px 16px; }
}

/* -----------------------------------------------------------------------
   ブロック下余白ユーティリティ
   次ブロックの margin-top を上書きする隣接セレクター方式
   ----------------------------------------------------------------------- */
.nsh-mb-0,
.nsh-mb-0-5,
.nsh-mb-1,
.nsh-mb-1-5,
.nsh-mb-2,
.nsh-mb-3,
.nsh-mb-4 { margin-bottom: 0 !important; }

.nsh-mb-0   + * { margin-top: 0      !important; }
.nsh-mb-0-5 + * { margin-top: 0.5em !important; }
.nsh-mb-1   + * { margin-top: 1em   !important; }
.nsh-mb-1-5 + * { margin-top: 1.5em !important; }
.nsh-mb-2   + * { margin-top: 2em   !important; }
.nsh-mb-3   + * { margin-top: 3em   !important; }
.nsh-mb-4   + * { margin-top: 4em   !important; }

/* -----------------------------------------------------------------------
   Contact Form 7 スタイル
----------------------------------------------------------------------- */

/* テーブル全体 */
.nsh-cf7-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.nsh-cf7-table th,
.nsh-cf7-table td {
    border: 1px solid #ccc;
    padding: 20px 24px;
    vertical-align: middle;
}

/* 左列（ラベル） */
.nsh-cf7-table th {
    width: 28%;
    background: rgba(62, 168, 200, 0.12);
    color: var(--text-main);
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    white-space: nowrap;
}

/* 右列（入力） */
.nsh-cf7-table td {
    background: #fff;
}

/* 必須バッジ */
.nsh-req {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 7px;
    background: #e00;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
    line-height: 1.6;
    vertical-align: middle;
}

/* テキスト・tel・email 入力 */
.nsh-cf7-table select,
.nsh-cf7-table input[type="text"],
.nsh-cf7-table input[type="tel"],
.nsh-cf7-table input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #fff;
    font-size: 15px;
    font-family: var(--font-main);
    color: var(--text-main);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.nsh-cf7-table select:focus,
.nsh-cf7-table input[type="text"]:focus,
.nsh-cf7-table input[type="tel"]:focus,
.nsh-cf7-table input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(62, 168, 200, 0.15);
}

/* テキストエリア */
.nsh-cf7-table textarea {
    width: 100%;
    min-height: 180px;
    padding: 10px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #fff;
    font-size: 15px;
    font-family: var(--font-main);
    color: var(--text-main);
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.nsh-cf7-table textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(62, 168, 200, 0.15);
}

/* ラジオボタン */
.nsh-cf7-table .wpcf7-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    align-items: center;
}

.nsh-cf7-table .wpcf7-radio .wpcf7-list-item {
    margin: 0;
    display: flex;
    align-items: center;
}

.nsh-cf7-table .wpcf7-radio .wpcf7-list-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-main);
}

.nsh-cf7-table .wpcf7-radio .wpcf7-list-item input[type="radio"] {
    appearance: auto;
    -webkit-appearance: radio;
    width: 16px;
    height: 16px;
    margin: 0 5px 0 0;
    padding: 0;
    flex-shrink: 0;
    accent-color: var(--primary-color);
    cursor: pointer;
    outline: none;
}

.nsh-cf7-table .wpcf7-radio .wpcf7-list-item input[type="radio"]:focus {
    outline: none;
}

/* フォーム内 p のマージン除去 */
.nsh-cf7-table p,
.nsh-cf7-note,
.nsh-cf7-acceptance {
    margin-bottom: 0;
}

/* 注記テキスト */
.nsh-cf7-note {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 24px;
}

/* 同意チェックボックス */
.nsh-cf7-acceptance {
    text-align: center;
    font-size: 15px;
    margin-bottom: 36px;
}

.nsh-cf7-acceptance .wpcf7-acceptance label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.wpcf7-form-control.wpcf7-acceptance span {
    vertical-align: sub;
    margin-right: 5px;
}

.nsh-cf7-acceptance .wpcf7-acceptance input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: checkbox;
    width: 17px;
    height: 17px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    accent-color: var(--primary-color);
    cursor: pointer;
    display: block;
}

.nsh-cf7-acceptance a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* 送信ボタン */
.wpcf7-submit {
    display: block;
    margin: 0 auto;
    padding: 16px 80px;
    background: var(--gradient-blue);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-family: var(--font-main);
    cursor: pointer;
    transition: opacity 0.3s;
}

.wpcf7-submit:hover {
    opacity: 0.85;
}

/* バリデーションエラー */
.wpcf7-not-valid-tip {
    color: #e00;
    font-size: 12px;
    margin-top: 6px;
    display: block;
}

.wpcf7 .wpcf7-not-valid input,
.wpcf7 .wpcf7-not-valid textarea {
    border-color: #e00 !important;
}

/* スマホ：縦積み */
@media (max-width: 767px) {
    .nsh-cf7-table,
    .nsh-cf7-table tbody,
    .nsh-cf7-table tr,
    .nsh-cf7-table th,
    .nsh-cf7-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .nsh-cf7-table th {
        text-align: left;
        padding: 10px 16px;
        white-space: normal;
    }

    .nsh-cf7-table td {
        padding: 12px 16px;
        border-top: none;
    }
}

/* -----------------------------------------------------------------------
   アイコン付注釈ブロック (nsh/callout)
----------------------------------------------------------------------- */
.nsh-callout {
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: var(--callout-bg, #e8f5fa);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 1.5em;
}

.nsh-callout-icon {
    color: var(--callout-icon-color, #3EA8C8);
    font-size: 24px;
    flex-shrink: 0;
    line-height: 1;
}

.nsh-callout-text {
    flex: 1;
    font-size: 0.95em;
    line-height: 1.7;
    color: var(--text-main);
}

.nsh-callout-text > *:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .nsh-callout {
        padding: 14px 16px;
        gap: 10px;
    }
    .nsh-callout-icon {
        font-size: 22px;
    }
}
