@charset "utf-8";

/* reset */

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

body {
    /* font-family: "Inter", sans-serif; */
    font-family: "Noto Sans JP", sans-serif;
    margin: 0;
    padding: 0;
}


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

a {
    text-decoration: none;
    color: #4b5563;
}

/* common */

:root {
    --primary-color: #111111;
    --secondary-color: #374151;
    --tertiary-color: #e53e3e;
    --background-light: #ffedd5;
    --text-color-blue: #1EB8FF;
    --main-container-max-width: 1200px;
    --form-required-color: #dc3545;
    --form-text-color: #fff;
    --accent-color-orange: #f79646;

    --button-bg-color: #e0e0e0;
    --button-text-color: #333;
    --button-hover-bg-color: #d0d0d0;
    --button-hover-bg-color: #d0d0d0;

    --table-header-bg-color: #f71f15;
    --light-border-color: #ddd;
    --table-rowspan-bg-color: #f7a65e;

    --text-color-light: #ffffff;
    --text-color-dark: #333;
    --border-color: #ccc;
    --top-button: #1EB8FF;
    --back-ground-color: #1EB8FF;

    --interview-header-bg-color: #ffe0b2;
    --interview-subtitle-color: #ff9800;
    --interview-card-bg-color: #fff3e0;
    --interview-border-color: #ffcc80;
    --interview-border-color2: #fdba74;
    --interview-content-bg-color: #fffaf0;
    --interview-question-color: #1f2937;
    --interview-media-bg-color: #1EB8FF;

    /* top color */
    --link-color-dark: #111111;
    --link-accent-color: #1EB8FF;
    --news-border-color: #DDDDDD;

    --font-weight-normal: 400;
    --font-weight-bold: 700;

    --spacing-xs: 0.5rem;
    /* 8px */
    --spacing-sm: 1rem;
    /* 16px */
    --spacing-md: 1.5rem;
    /* 24px */
    --spacing-lg: 2rem;
    /* 32px */

    --border-radius-medium: 0.75rem;

    --font-size-sm: 0.875rem;
    --font-size-base-small: 0.8rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.5rem;
    --font-size-xl: 1.25rem;
    --font-size-xxl: 2.2rem;
}

/*
    Utils
*/
.utils__inline-block
{
    display: inline-block !important;
}
.utils__bordered
{
    border: 1px solid gray;
}

.senior-voice-container,
.interview-section__grid {
    max-width: 800px;
}

.content-container {
    max-width: 1072px;
    margin: 0 auto;
}

.main-container {
    max-width: 1072px;
    margin: 0 auto;
    /* padding: 0 1.5rem; 不確定 */
}

@media (max-width: 767px) {
    .main-container {
        padding: 0 22px;
    }
}

.breadcrumb {
    margin: 0 auto;
    padding: 1rem 1.5rem;
    font-size: 0.75rem;
}

.breadcrumb a {
    color: #6b7280;
    text-decoration: underline;
}

.breadcrumb a:hover {
    text-decoration: none;
}

.breadcrumb span {
    font-weight: var(--font-weight-bold);
    color: var(--secondary-color);
}

.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.form-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-label {
    flex-shrink: 0;
    width: 10rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-color-dark);
    display: flex;
    align-items: center;
    font-size: 0.8125rem;
    text-align: left;
    padding-top: 0;
}

.form-submit-group {
    text-align: center;
    margin-top: 1.5rem;
    display: block;
}

.form-submit-button {
    background-color: var(--button-bg-color);
    color: var(--button-text-color);
    border: 1px solid var(--border-color);
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: none;
    border-radius: 0;
}

.form-submit-button:hover {
    background-color: var(--button-hover-bg-color);
}

.form-input,
.form-textarea {
    flex-grow: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0;
    font-size: 1rem;
    color: var(--button-text-color);
    outline: none;
}

@media (max-width: 767px) {
    .form-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .form-label {
        width: 100%;
        text-align: left;
        padding-top: 0;
        margin-bottom: 0;
    }

    .form-input,
    .form-textarea {
        width: 100%;
        padding: 0.75rem;
    }
}

.form-input:focus,
.form-textarea:focus {
    border-color: #ff9900;
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.2);
}

.form-required {
    background-color: var(--form-required-color);
    color: var(--form-text-color);
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
    font-weight: normal;
    display: inline-block;
    vertical-align: middle;
}

h2,
.common-h2 {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-top: 5rem;
    margin-bottom: 3rem;
}

@media (max-width: 76.7rem) {

    h2,
    .common-h2 {
        font-size: 2rem;
        margin-top: 3rem;
        margin-bottom: 2rem;
    }
}

h3,
.common-h3 {
    font-weight: var(--font-weight-bold);
    color: var(--secondary-color);
    margin-top: 4rem;
    margin-bottom: 2rem;
}

@media (max-width: 76.7rem) {

    h3,
    .common-h3 {
        font-size: 1.5rem;
        margin-top: 2.5rem;
        margin-bottom: 1.5rem;
    }
}

h4,
.common-h4 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #4b5563;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 76.7rem) {

    h4,
    .common-h4 {
        font-size: 1.6rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }
}

.flow-chart__grid {
    display: flex;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

@media (min-width: 768px) {
    .flow-chart__grid {
        justify-content: space-between;
    }
}

.flow-chart__card {
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    margin: 0.75rem;
    flex: 1 1 calc(50% - 1.5rem);
    box-sizing: border-box;
    min-width: calc(50% - 1.5rem);

}

.flow-chart__card:nth-of-type(1) {
    margin-left: 0;
}

.flow-chart__card:nth-of-type(4) {
    margin-right: 0;
}

@media (max-width: 767px) {
    .flow-chart__card {
        flex: 1 1 100%;
        margin: 0.75rem 0;
    }

    .flow-chart__grid {
        margin-left: 0;
        margin-right: 0;
        align-items: center;
    }
}

.list-check-item {
    font-size: 0.9375rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.25rem;
}

.list-check-item::before {
    content: '・';
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.flow-chart__arrow {
    /* display: inline-block; */
    width: 55.6px;
    height: 57px;
    background: var(--primary-color);
    clip-path: polygon(0 50.3%, 37.4% 50.3%, 37.4% 0, 62.6% 0, 62.6% 50.3%, 100% 50.3%, 50% 100%);
    margin: 0.5rem auto;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--link-accent-color);
    padding: 0.5rem 1.5rem;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    color: var(--link-accent-color);
    font-size: 14px;
}

.btn-back:hover {
    background-color: var(--interview-media-bg-color);
    text-decoration: none;
    color: #fff;
}

.btn-back-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 8px solid var(--link-accent-color);
    margin-right: 0.5rem;
    transition: border-right-color 0.3s ease;
}

.btn-back:hover .btn-back-arrow {
    border-right-color: #fff;
}

.section-card__heading {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 16px;
    margin-bottom: 8px;
}

.card-border {
    background-color: var(--back-ground-color);
}

.flow-chart__title {
    color: var(--primary-color);
    font-size: 18px;
}

.step__description {
    margin-top: 0;
    margin-bottom: 10px;
}

.card-content {
    border: 1px solid #1EB8FF;
    padding: 15px 0;
    margin-bottom: 32px;
    text-align: center;
}


/* common end */

.header {
    padding: 1rem 1.5rem 0;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 767px) {
    .header {
        padding: 1rem 22px 0;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        z-index: 1000;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    body {
        padding-top: 87px;
        /* 固定ヘッダー分の余白をbodyに設定 */
    }
}

.header__top {
    max-width: 80rem;
    padding: 0 0.3rem;
}

.header__logo-link {
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {

    .header__logo-link img {
        flex-shrink: 0;
    }
}

@media (min-width: 768px) {
    .header__logo {
        margin-bottom: 0;
    }
}

.header__logo-text {
    margin: 0;
}

.subtitle {
    font-size: 10px;
    font-weight: normal;
    color: var(--primary-color);
    line-height: 1.5;
    margin-top: 0;
    margin-bottom: 0;
}

.main-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-top: 10px;
}

@media (max-width: 767px) {
    .header__top {
        padding: 0;
    }

    .header__logo {
        width: 100px;
    }

    .header__logo-text {
        display: none;
    }

    .header__logo-text p {
        font-size: 0.55rem;
        line-height: 1.3;
    }
}

.header__nav {
    max-width: 80rem;
    padding: 0.5rem 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__hamburger-button {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    z-index: 1001;
}

.header__hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    position: relative;
    transition: background-color 0.3s ease;
}

.header__hamburger-icon::before,
.header__hamburger-icon::after {
    content: '';
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    position: absolute;
    left: 0;
    transition: transform 0.3s ease, top 0.3s ease;
}

.header__hamburger-icon::before {
    top: -8px;
}

.header__hamburger-icon::after {
    top: 8px;
}

.header__hamburger-button.is-active .header__hamburger-icon {
    background-color: transparent;
}

.header__hamburger-button.is-active .header__hamburger-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.header__hamburger-button.is-active .header__hamburger-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

.header__nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem 1.3rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.header .menu-item {
    font-size: 16px;
    padding: 0.5rem 0rem;
    font-weight: 600;
}

.header .menu-item a {
    color: var(--primary-color);
}

.header .menu-item a:hover {
    color: #1FB9FF;
}

@media (max-width: 767px) {
    .header__nav {
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        position: static;
        justify-content: flex-end;
    }

    .header__hamburger-button {
        display: block;
        top: 2.3rem;
    }

    .header__nav-list {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        justify-content: flex-start;
        /* 修正: 上揃えに変更 */
        align-items: flex-start;
        /* 修正: 左揃えに変更 */
        gap: 0.7rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-top: 120px;
        /* 追加: 上からの余白 */
        padding-left: 40px;
        /* 追加: 左からの余白 */
    }

    .header__nav-list.is-open {
        transform: translateX(0);
    }

    .header__nav-item {
        font-size: 1.5rem;
        padding: 1rem 0;
        width: 80%;
        text-align: left;
        ;
    }

    .header__nav-list li:last-child .header__nav-item {
        border-bottom: none;
    }

    .header .menu-item a {
        font-weight: normal;
        color: var(--primary-color);
    }
}

.header__nav-item {
    font-size: 0.8rem;
    padding: 0.5rem 0rem;
}

.header__nav-item:hover {
    color: var(--primary-color);
}

.header__nav-list li:nth-child(4) {
    text-align: center;
}


.footer {
    padding: 32px;
    padding-top: 96px;
}

.footer__container {
    max-width: 1072px;
    margin: 0 auto;
}

.footer__primary {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* ロゴとナビを上揃えに */
    border-bottom: 1px solid #ddd;
    padding-bottom: 24px;
    gap: 100px;
}

.footer__logo {
    display: flex;
    /* ロゴとテキストをFlexboxで横並びにする */
    align-items: center;
    /* 中央揃え */
    text-decoration: none;
    color: #333;
    flex-shrink: 0;
}

.footer__logo img {
    max-width: 200px;
    height: auto;
    margin-right: 16px;
    /* 画像とテキストの間にスペース */
}

.footer__logo-text {
    font-size: 10px;
    white-space: nowrap;
    color: var(--primary-color);
}

.footer__logo-subtext {
    font-size: 16px;
    font-weight: bold;
}

.footer nav {
    flex-grow: 1;
    /* nav要素が残りのスペースをすべて占有 */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* ナビゲーション全体を右寄せ */
}

.footer__nav-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.footer__nav-list--main {
    margin-bottom: 8px;
    gap: 0 25px;
    /* メインナビゲーションのギャップ */
}

.footer__nav-list--policy {
    font-size: 0.8rem;
    gap: 0 16px;
    /* ポリシーナビゲーションのギャップ */
}

.footer__nav-item {
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    white-space: nowrap;
}

.footer__nav-item:hover {
    text-decoration: underline;
}

.site-info {
    /* text-align: center; */
}

.site-info__copyright {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 768px) {

    .footer {
        padding-top: 20px;
    }

    .footer__primary {
        flex-direction: column;
        align-items: center;
        display: none;
    }

    .footer__logo {
        margin-bottom: 24px;
        margin-right: 0;
        flex-direction: row;
        /* モバイルでも横並び */
    }

    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer__nav-list {
        flex-direction: column;
        align-items: center;
        margin-bottom: 16px;
        width: 100%;
        gap: 0;
    }

    .footer__nav-list--main li,
    .footer__nav-list--policy li {
        width: 100%;
        text-align: center;
        margin: 0;
    }

    .footer__nav-item {
        display: block;
        padding: 8px 0;
        font-size: 16px;
    }

    .footer__nav-list--main {
        margin-bottom: 16px;
    }

    .footer__nav-list--policy {
        font-size: 14px;
    }

    .footer__primary nav {
        display: none;
    }

    .site-info {
        border-top: 1px solid #DDDDDD;
    }

    .single-image-section {
        margin-bottom: 60px;
    }
}

.site-info__copyright {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 0;
    color: #A4A4A4;
    font-size: 10px;
}

.page-top-button {
    position: fixed;
    right: 32px;
    bottom: 32px;
    display: none;
    /* デフォルトは非表示 */
    width: 56px;
    height: 56px;
    background-color: var(--top-button);
    border-radius: 50%;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.page-top-button:hover {
    background-color: #fff; 
    border: 1px solid var(--top-button);
}

.page-top-button__arrow {
    position: relative;
    top: -2px;
    width: 30.5px;
    height: 30px;
    background: #ffffff;
    clip-path: polygon(0 52.5%, 50% 0, 100% 52.5%, 63.6% 52.5%, 63.6% 100%, 36.4% 100%, 36.4% 52.5%);
    transition: background-color 0.3s ease; 
}

.page-top-button:hover .page-top-button__arrow {
    background-color: var(--top-button); 
}

.footer__bottom {
    border-top: 1px solid #DDDDDD;
    font-size: 0.875rem;
    text-align: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer__bottom-item a {
    font-size: 0.875rem;
    /* color: var(--text-color-light); */
    text-decoration: none;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .footer__bottom {
        flex-direction: row;
        justify-content: center;
        gap: 0;
    }

    .footer__bottom-item:not(:first-child)::before {
        content: " | ";
        margin: 0 0.5rem;
    }
}

.p-news-details__content a {
    text-decoration: underline;
}