@charset "UTF-8";

/* =====================================================
   SHARED
   ===================================================== */

/* --- Variables --- */
:root {
    --color-primary: #002F7B;
    --color-primary-dark: #0A3F8C;
    --color-primary-bg: #001F5C;
    --color-gray: #727171;
    --color-border: #E8E6E1;
    --color-bg-light: #FAFAF8;
    --color-white: #ffffff;
    --color-text-main: #333333;
    --color-text-muted: #555555;
    --color-error: #ef4444;
    --color-success: #10b981;
}

/* --- Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Layout --- */
.l-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Components: Header (共通部分) --- */
.c-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.c-header__logo img {
    height: 40px;
    width: auto;
}

#top .c-header__link:hover,
#contact .c-header__link:hover {
    color: var(--color-gray);
}

.c-header__mobile-btn {
    display: block;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-primary);
}

@media (min-width: 768px) {
    .c-header__mobile-btn {
        display: none;
    }
}

/* --- Components: Footer (共通部分) --- */
.c-footer__title {
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: 3rem;
}

.c-footer__copyright {
    padding-top: 1.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* --- Utils --- */
.u-hidden {
    display: none;
}


/* =====================================================
   #top — index_bem.html
   ===================================================== */

/* --- Base --- */
#top {
    font-family: "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

#top.l-main {
    padding-top: 0;
}

/* --- Components: Header --- */
#top .c-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--color-white);
    transition: all 0.3s ease;
}

#top .c-header--scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#top .c-header__nav {
    display: none;
    align-items: center;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    #top .c-header__nav {
        display: flex;
    }
}

#top .c-header__link {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-primary);
    transition: color 0.3s;
    white-space: nowrap;
}

#top .c-header__button {
    padding: 0.4rem 1.25rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 800;
    transition: all 0.3s;
    white-space: nowrap;
}

#top .c-header__button:hover {
    background-color: var(--color-primary-dark);
}

/* --- Components: Mobile Menu --- */
#top .c-mobile-menu {
    display: none;
    padding: 1rem 0;
    border-top: 1px solid var(--color-border);
}

#top .c-mobile-menu--open {
    display: block;
}

/* contact・thanksページのモバイルメニュー */
#contact .c-mobile-menu {
    display: none;
    padding: 1rem 0;
    border-top: 1px solid var(--color-border);
}

#contact .c-mobile-menu--open {
    display: block;
}

#contact .c-mobile-menu__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact .c-mobile-menu__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
}

#contact .c-mobile-menu__button {
    display: block;
    padding: 0.5rem 1.25rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
}

#top .c-mobile-menu__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#top .c-mobile-menu__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
}

#top .c-mobile-menu__button {
    display: block;
    padding: 0.5rem 1.25rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
}

/* --- Page: Hero Slider --- */
#top .p-hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#top .p-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 0;
    transition: opacity 1s ease-in-out;
}

#top .p-hero__slide--active {
    opacity: 1;
    z-index: 10;
}

#top .p-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#top .p-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 47, 123, 0.5), rgba(0, 47, 123, 0.3), rgba(0, 47, 123, 0.5));
}

#top .p-hero__content {
    position: relative;
    z-index: 20;
    width: 100%;
    text-align: center;
    color: var(--color-white);
    padding-top: 4.5rem;
}

#top .p-hero__title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.4rem;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);
}

#top .p-hero__title .sp-br { display: none; }

@media (min-width: 768px) {
    #top .p-hero__title {
        font-size: 2.25rem;
    }
}
@media (max-width: 767px) {
    #top .p-hero__title .sp-br { display: inline; }
}

@media (min-width: 1024px) {
    #top .p-hero__title {
        font-size: 3rem;
    }
}



#top .p-hero__divider {
    width: 100%;
    max-width: 42rem;
    height: 2px;
    /* background: linear-gradient(to right, transparent, var(--color-gray), transparent); */
    background-color: rgb(114, 113, 113);
    margin: 0 auto;
}

#top .p-hero__control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    cursor: pointer;
    transition: all 0.3s;
}

#top .p-hero__control:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#top .p-hero__control--prev {
    left: 1rem;
}

#top .p-hero__control--next {
    right: 1rem;
}

@media (min-width: 768px) {
    #top .p-hero__control--prev {
        left: 2rem;
    }

    #top .p-hero__control--next {
        right: 2rem;
    }
}

#top .p-hero__dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#top .p-hero__dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

#top .p-hero__dot--active {
    width: 2rem;
    border-radius: 9999px;
    background-color: var(--color-gray);
}

/* --- Page Sections --- */
#top .p-section {
    padding: 5rem 0;
}

#top .p-section--about {
    background-color: var(--color-white);
}

#top .p-section--services {
    background-color: var(--color-primary-bg);
    position: relative;
    overflow: hidden;
    padding: 7rem 0;
}

#top .p-section--promise {
    background-color: var(--color-bg-light);
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

#top .p-section--company {
    padding: 6.2rem 0;
}

#top .p-section--company .p-section__title {
    line-height: 1.4;
}

#top .p-section--company .p-section__line {
    margin: 1.3rem auto 0;
}

#top .p-section--company .p-section__header {
    margin-bottom: 4em;
}

#top .p-section__header {
    text-align: center;
    margin-bottom: 3rem;
}

#top .p-section__label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--color-gray);
    text-transform: uppercase;
}

#top .p-section__title {
    font-size: 1.675rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-top: 0rem;
}

#top .p-section--services .p-section__title {
    color: var(--color-white);
    font-size: 1.875rem;
    line-height: 1.2;
    margin-top: 0.6rem;
}

#top .p-section--services .p-section__line {
  margin: 1.6rem auto 0;
}

#top .p-section--services .p-section__header {
  margin-bottom: 5rem;
  position: relative;
  z-index: 20;
}

@media (min-width: 768px) {
    #top .p-section__title {
        font-size: 2.25rem;
    }

    #top .p-section--services .p-section__title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    #top .p-section--services .p-section__title {
        font-size: 3rem;
    }
}

#top .p-section__line {
    width: 80px;
    height: 2px;
    background-color: var(--color-gray);
    margin: 1rem auto 0;
}

#top .p-section__desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-white);
    max-width: 28rem;
    margin: 1.5rem auto 0;
    font-weight: 600;
}

/* --- About Content --- */
#top .p-about__content {
    max-width: 56rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: var(--color-text-main);
    font-size: 0.89rem;
    line-height: 2;
}

/* --- Services Grid --- */
#top .p-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    #top .p-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

#top .p-services-card {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.5s;
    cursor: default;
}

#top .p-services-card:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(114, 113, 113, 0.3);
    transform: translateY(-0.25rem);
}

#top .p-services-card--full {
    grid-column: 1 / -1;
}

#top .p-services-card__inner {
    display: flex;
    flex-direction: column;
}



#top .p-services-card__image-box {
    position: relative;
    width: 100%;
    height: 18rem;
    flex-shrink: 0;
    overflow: hidden;
}



#top .p-services-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}

#top .p-services-card:hover .p-services-card__image {
    transform: scale(1.05);
}

#top .p-services-card__image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 31, 92, 0.8));
}

/* タブレット：グリッドは2列キープ・カード内は縦並び */
@media (min-width: 768px) and (max-width: 1023px) {
    #top .p-services-card__inner {
        flex-direction: column;
    }

    #top .p-services-card__image-box {
        width: 100%;
        height: 16rem;
    }

    #top .p-services-card__image-overlay {
        background: linear-gradient(to bottom, transparent, rgba(0, 31, 92, 0.8));
    }

    #top .p-services-card--full .p-services-card__inner {
        flex-direction: row;
    }

    #top .p-services-card--full .p-services-card__image-box {
        width: 18rem;
        height: auto;
    }

    #top .p-services-card--full .p-services-card__image-overlay {
        background: linear-gradient(to right, transparent, rgba(0, 31, 92, 0.8));
    }
}

/* PC：グリッド2列・左画像右テキスト */
@media (min-width: 1024px) {
    #top .p-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #top .p-services-card__inner {
        flex-direction: row;
    }

    #top .p-services-card__image-box {
        width: 14rem;
        height: auto;
    }

    #top .p-services-card--full .p-services-card__image-box {
        width: 18rem;
    }

    #top .p-services-card__image-overlay {
        background: linear-gradient(to right, transparent, rgba(0, 31, 92, 0.8));
    }
}

#top .p-services-card__content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#top .p-services-card__title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-white);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

#top .p-services-card__text {
    font-size: 0.875rem;
    color: var(--color-white);
    line-height: 1.6;
    font-weight: 500;
}

#top .p-services-card--full .p-services-card__text {
    max-width: 36rem;
}

/* --- Decor Elements --- */
#top .p-services__decor-top {
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: rgba(10, 47, 108, 0.4);
    border-radius: 50%;
    filter: blur(120px);
    transform: translate(33%, -50%);
}

#top .p-services__decor-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: rgba(114, 113, 113, 0.08);
    border-radius: 50%;
    filter: blur(100px);
    transform: translate(-33%, 50%);
}

/* --- Promise Section --- */
#top .p-promise-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1152px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    #top .p-promise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

#top .p-promise__image-wrapper {
    position: relative;
    isolation: isolate;
}

#top .p-promise__image-container {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

#top .p-promise__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

#top .p-promise__image-decor {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    width: 7rem;
    height: 7rem;
    background-color: rgba(114, 113, 113, 1);
    border-radius: 0.75rem;
    z-index: -1;
}

#top .p-promise__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 0.75rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    #top .p-promise__title {
        font-size: 1.875rem;
        line-height: 1.2;
    }
}

#top .p-promise__text {
    font-size: 0.875rem;
    line-height: 1.9;
    color: var(--color-text-main);
    margin-top: 2.9rem;
}

#top .p-promise__text2 {
    font-size: 0.875rem;
    line-height: 1.9;
    color: var(--color-text-main);
    margin-top: 1.6rem;
}

#top .p-section--promise .p-section__line {
  margin: 1rem auto 0;
}

#top .p-section--promise .p-section__header {
  margin-bottom: 4rem;
}

/* --- Company Table --- */
#top .p-company-table__wrap {
    max-width: 56rem;
    margin: 0 auto;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
}
#top .p-company-table {
    background-color: var(--color-bg-light);
    border-radius: 0.7rem;
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
}

#top .p-company-table th {
    text-align: left;
    padding: 1.25rem 1.9rem 1.15rem;
    width: 25%;
    background-color: #F3F2EE;
    font-weight: 500;
    vertical-align: top;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.875rem;
}

#top .p-company-table td {
    padding: 1.25rem 1.9rem;
    background-color: transparent;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.875rem;
    line-height: 1.4;
}

#top .p-company-table td a {
    font-weight: 500;
    color: #0041aa;
    transition: opacity 0.3s ease, color 0.3s ease;
}

#top .p-company-table td a:hover {
    opacity: 0.5;
    color: #002F7B;
}

#top .p-company-table td a::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002F7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

#top .p-company-table tr:last-child th,
#top .p-company-table tr:last-child td {
    border-bottom: none;
}

#top .p-company-table td.no-link a {
    color: inherit;
    text-decoration: none;
    pointer-events: none;
}

#top .p-company-subtable h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

#top .p-company-subtable p {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}
@media (max-width: 767px) {
    #top .p-company-table th, #top .p-company-table td {
        display: block;
        padding: 1.2rem 1.4rem 1rem;
    }
    #top .p-company-table th {
        width: 100%;
        border-bottom: none;
    }
}

/* --- Leadership --- */
#top .p-leader-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 64rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    #top .p-leader-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    #top .p-leader-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

#top .p-leader-card {
    background-color: var(--color-white);
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.5s;
}

#top .p-leader-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: rgba(114, 113, 113, 0.3);
}

#top .p-leader-card__image-box {
    width: 100%;
    height: 14rem;
    overflow: hidden;
}

#top .p-leader-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.7s;
}

@media (max-width: 1023px) {
    #top .p-leader-card__image-box {
        height: 20rem;
    }
    #top .p-leader-card__image {
        object-position: center 40%;
    }
}

#top .p-leader-card:hover .p-leader-card__image {
    transform: scale(1.05);
}

#top .p-leader-card__body {
    padding: 1.25rem;
    text-align: center;
}

#top .p-leader-card__name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

#top .p-leader-card__role {
    font-size: 0.75rem;
    font-weight: 500;
}

/* --- History --- */
#top .p-section--history {
  padding: 5rem 0 6rem;
}
#top .p-section--history .p-section__header {
  margin-bottom: 4rem;
}

#top .p-history {
    max-width: 56rem;
    margin: 0 auto;
}


#top .p-history__item {
    display: flex;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--color-border);
    gap: 2rem;
}

#top .p-history__item:nth-child(5),#top .p-history__item:nth-child(6) {
    border-bottom: none;
}

#top .p-history__item:nth-child(6) {
    padding-top: 0;
}

#top .p-history__year {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-primary);
    width: 4rem;
    flex-shrink: 0;
    letter-spacing: 0.09em;
}

#top .p-history__text {
    font-size: 0.875rem;
    line-height: 1.6;
}

/* --- Footer --- */
#top .c-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 3.7rem 0 4rem;
}

#top .c-footer__content {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}


/* =====================================================
   #contact — contact_bem.html
   ===================================================== */

/* --- Base --- */
#contact {
    font-family: "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

/* --- Components: Header --- */
#contact .c-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--color-white);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#contact .c-header__nav {
    display: none;
    align-items: center;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    #contact .c-header__nav {
        display: flex;
    }
}

#contact .c-header__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: color 0.3s;
}

#contact .c-header__button {
    padding: 0.4rem 1.25rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 800;
    transition: all 0.3s;
    white-space: nowrap;
}

#contact .c-header__button:hover {
    background-color: var(--color-primary-dark);
}

/* --- Page Sections --- */
#contact .p-page-hero {
    padding: 8rem 0 2.5rem;
    background-color: var(--color-bg-light);
}

#contact .p-page-hero__title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 1.5rem;
}

#contact .p-page-hero__line {
    width: 80px;
    height: 2px;
    background-color: var(--color-gray);
    margin: 0 auto 2rem;
}

#contact .p-page-hero__note {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    max-width: 48rem;
    margin: 0 auto;
}

#contact .p-page-hero__text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

#contact .p-page-hero__subtitle {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* --- Form Section --- */
#contact .p-contact {
    padding: 2rem 0 5rem;
}

#contact .p-contact--thanks {
    padding-bottom: 8rem;
}

#contact .p-contact__box {
    max-width: 48rem;
    margin: 0 auto;
    background-color: var(--color-white);
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-border);
    padding: 2rem;
}

@media (min-width: 768px) {
    #contact .p-contact__box {
        padding: 3rem;
    }
}

#contact .p-contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#contact .p-contact__group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#contact .p-contact__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
}

#contact .p-contact__required {
    color: var(--color-error);
}

#contact .p-contact__input,
#contact .p-contact__textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
}

#contact .p-contact__input:focus,
#contact .p-contact__textarea:focus {
    border-color: var(--color-gray);
    box-shadow: 0 0 0 2px #0e6bff;
}

#contact .p-contact__textarea {
    resize: none;
    height: 150px;
}

#contact .p-contact__submit {
    font-family: "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
    width: 100%;
    padding: 1rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 0.375rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1rem;
}

#contact .p-contact__submit:hover {
    background-color: var(--color-primary-dark);
}

#contact .p-contact__submit:disabled {
    background-color: #999;
    cursor: not-allowed;
}

#contact .p-contact__status {
    display: none;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    align-items: center;
    gap: 0.5rem;
}

/* --- トップページに戻る --- */
#contact .p-contact__return {
    width: fit-content;
    margin: 50px auto 30px;
}
#contact .p-contact__return--btn {
    padding: 1rem 2rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 0.375rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 0.875rem;
}

#contact .p-contact__return--btn:hover {
    background-color: var(--color-primary-dark);
}

/* --- Footer --- */
#contact .c-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 4rem 0;
    text-align: center;
}


/* デバイス別改行 */
.pc-br { display: none; }
@media (min-width: 768px) {
  .pc-br { display: inline; }
}
.sp-br { display: none; }
@media (max-width: 767px) {
  .sp-br { display: inline; }
}