/*
 * Daishin maintenance refresh
 * Scope: typography, spacing rhythm, navigation and shared page headers.
 * Existing structure, imagery and copy remain unchanged.
 */

:root {
    --daishin-ink: #231816;
    --daishin-deep-green: #384940;
    --daishin-green: #2aa163;
    --daishin-green-hover: #238d57;
    --daishin-line: #d7ddd9;
    --daishin-soft: #f3f5f4;
}

html {
    scroll-behavior: smooth;
}

.visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

body.font-yu {
    color: var(--daishin-ink);
    font-family: "Zen Kaku Gothic New", "Noto Sans JP", "Yu Gothic", "YuGothic", sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-feature-settings: "palt" 1;
    letter-spacing: 0.015em;
    line-height: 1.82;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.font-yu p,
body.font-yu li,
body.font-yu td {
    line-height: 1.82;
}

.home-hero-media {
    background-color: #dfe8e3;
    background-position: center;
    background-size: cover;
    isolation: isolate;
    overflow: hidden;
}

.home-hero-media iframe {
    background: transparent;
    z-index: 1;
}

/* Shared desktop navigation */
.navigation > ul > li {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.055em;
}

.navigation > ul > li > a {
    padding: 0.72rem 0.75rem;
}

.navigation ul li a {
    background-color: var(--daishin-green);
    transition: background-color 180ms ease, color 180ms ease;
}

.navigation ul li a:hover,
.navigation ul li a:focus-visible {
    background-color: var(--daishin-green-hover);
    outline: none;
}

.navigation ul li .child {
    box-shadow: 0 10px 24px rgba(17, 50, 32, 0.12);
}

.navigation ul li .child li {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.035em;
}

.navigation ul li .child li a {
    padding: 0.68rem 0.75rem;
}

li.has-child:focus-within > ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
}

/* Shared photographic page headers */
header[id$="-page-header"]:not(#recruit-page-header) {
    isolation: isolate;
    overflow: hidden;
    position: relative;
}

header[id$="-page-header"]:not(#recruit-page-header)::before {
    background-color: rgba(16, 42, 28, 0.32);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

header[id$="-page-header"] h1,
header[id$="-page-header"] span,
header[id$="-page-header"] .page-header-title {
    text-shadow: none;
}

.page-header-title {
    align-items: center;
    color: #fff;
    display: flex;
    gap: 1.45rem;
    justify-content: center;
    margin: auto;
    max-width: calc(100% - 3rem);
    position: relative;
    width: max-content;
    z-index: 1;
}

.page-header-title__en {
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.82);
    display: flex;
    flex: 0 0 auto;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    line-height: 1.3;
    min-height: 2.1rem;
    padding: 0.2rem 1.45rem 0.2rem 2.5rem;
    position: relative;
    white-space: nowrap;
}

.page-header-title__en::before {
    border-top: 1px solid rgba(255, 255, 255, 0.82);
    content: "";
    left: 0;
    position: absolute;
    top: 50%;
    width: 1.75rem;
}

.page-header-title__ja {
    font-size: clamp(2rem, 2.6vw, 2.65rem);
    font-weight: 600;
    letter-spacing: 0.075em;
    line-height: 1.25;
    white-space: nowrap;
}

.page-header-title--long .page-header-title__ja {
    font-size: clamp(1.75rem, 2.25vw, 2.3rem);
}

/* Content typography and vertical rhythm */
body:not(.home) section h2,
body:not(.home) section h3 {
    letter-spacing: 0.035em;
}

body:not(.home) section h2.font-bold,
body:not(.home) section h3.font-bold {
    font-weight: 600;
}

body:not(.home) section h2.bg-k-gray-light {
    background-color: var(--daishin-soft);
    font-size: clamp(1.45rem, 2.15vw, 1.8rem);
    font-weight: 600;
    letter-spacing: 0.055em;
    margin-bottom: clamp(2.25rem, 5vw, 4rem);
    padding: 0.8rem 1.5rem;
}

body:not(.home) section h2.border-b {
    border-color: var(--daishin-line);
    font-size: clamp(1.4rem, 2vw, 1.75rem);
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    padding-bottom: 0.75rem;
}

body:not(.home) section h2.text-2xl,
body:not(.home) section h3.text-2xl {
    font-size: clamp(1.25rem, 1.6vw, 1.45rem);
    line-height: 1.55;
}

body:not(.home) section h3.text-xl,
body:not(.home) section h3.md\:text-xl {
    font-weight: 600;
    line-height: 1.55;
}

.table-layout th {
    color: var(--daishin-deep-green);
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.table-layout td {
    font-size: 0.94rem;
    line-height: 1.75;
}

.table-layout td,
.table-layout th {
    padding: 1.15rem 1.75rem;
}

.table-layout tr {
    border-color: var(--daishin-line);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(42, 161, 99, 0.38);
    outline-offset: 3px;
}

@media (max-width: 767px) {
    body.font-yu {
        font-size: 15px;
        letter-spacing: 0.01em;
        line-height: 1.75;
    }

    body.font-yu p,
    body.font-yu li,
    body.font-yu td {
        line-height: 1.75;
    }

    header[id$="-page-header"]:not(#recruit-page-header) {
        background-position: center;
        min-height: 9rem;
    }

    .page-header-title {
        gap: 0.8rem;
        max-width: calc(100% - 2rem);
        width: calc(100% - 2rem);
    }

    .page-header-title__en {
        font-size: 0.62rem;
        letter-spacing: 0.14em;
        min-height: 1.8rem;
        padding-left: 0;
        padding-right: 0.85rem;
        white-space: normal;
        width: min(34%, 7.2rem);
    }

    .page-header-title__en::before {
        display: none;
    }

    .page-header-title__ja {
        font-size: clamp(1.35rem, 6vw, 1.65rem);
        letter-spacing: 0.055em;
        white-space: normal;
    }

    .page-header-title--long .page-header-title__ja {
        font-size: clamp(1.15rem, 5.2vw, 1.4rem);
    }

    body:not(.home) section h2.bg-k-gray-light {
        margin-bottom: 2rem;
        padding: 0.7rem 1rem;
    }

    .table-layout td,
    .table-layout th {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/*
 * 2026 visual refinement
 * Direction: Industrial Precision — quiet surfaces, precise rules and
 * restrained depth, using the existing green brand and photography.
 */

:root {
    --daishin-deepest: #20362d;
    --daishin-surface: #ffffff;
    --daishin-surface-tint: #f7faf8;
    --daishin-surface-strong: #edf3ef;
    --daishin-line-strong: #bccbc3;
    --daishin-muted: #66736d;
    --daishin-shadow-sm: 0 8px 24px rgba(24, 55, 41, 0.08);
    --daishin-shadow-md: 0 18px 42px rgba(24, 55, 41, 0.12);
    --daishin-section-space: clamp(3.75rem, 5vw, 5.5rem);
}

body.font-yu {
    background: var(--daishin-surface);
}

body.font-yu strong,
body.font-yu b,
body.font-yu .font-bold,
body.font-yu .font-semibold {
    font-weight: 600;
}

/* Keep content readable even when the historical scroll-animation script is delayed. */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

/* Header and navigation */
body > .fixed.bg-white {
    border-bottom: 1px solid rgba(32, 54, 45, 0.14);
    box-shadow: 0 8px 28px rgba(25, 52, 40, 0.08);
}

body > .fixed > header.md-basic-wrapper {
    max-width: 1440px;
    padding-inline: clamp(1.5rem, 3.6vw, 4.5rem);
}

body > .fixed > header > .flex:first-child {
    box-shadow: none;
}

body > .fixed > header > .flex:first-child > a:first-child {
    max-width: 510px;
}

.navigation {
    background: var(--daishin-green);
    border-inline: 1px solid rgba(255, 255, 255, 0.28);
}

.navigation > ul {
    background: var(--daishin-green);
}

@media (min-width: 768px) {
    .navigation {
        border-inline: 0;
        left: 50%;
        margin-left: -50vw;
        position: relative;
        width: 100vw;
    }

    .navigation > ul {
        margin-inline: auto;
        max-width: 1720px;
        padding-inline: clamp(1rem, 2vw, 2.5rem);
    }
}

.navigation > ul > li > a {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 3.25rem;
    position: relative;
}

.navigation > ul > li > a::after {
    background: rgba(255, 255, 255, 0.92);
    bottom: 0;
    content: "";
    height: 3px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%) scaleX(0);
    transition: transform 180ms ease;
    width: 44%;
}

.navigation > ul > li:hover > a::after,
.navigation > ul > li:focus-within > a::after {
    transform: translateX(-50%) scaleX(1);
}

.navigation ul li .child {
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--daishin-shadow-md);
}

.navigation ul li .child li a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.header-cta {
    gap: 0.75rem;
}

.header-phone,
.header-contact {
    height: 3.25rem;
    min-height: 3.25rem;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.header-phone {
    background: linear-gradient(105deg, #fff 0%, var(--daishin-surface) 100%);
    border: 1px solid var(--daishin-line-strong);
    border-left: 4px solid var(--daishin-green);
    box-shadow: 0 6px 18px rgba(25, 52, 40, 0.08);
    color: var(--daishin-deep-green);
    font-size: clamp(1.25rem, 1.8vw, 1.55rem);
    letter-spacing: 0.018em;
    padding: 0 1rem 0 0.75rem;
}

.header-phone__icon {
    flex: 0 0 auto;
    width: 1.3rem;
}

.header-contact {
    background: linear-gradient(105deg, var(--daishin-deep-green), var(--daishin-green));
    border: 1px solid var(--daishin-deep-green);
    box-shadow: 0 8px 22px rgba(42, 161, 99, 0.22);
    overflow: hidden;
}

.header-contact__icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.24);
    display: flex;
    justify-content: center;
    width: 3.15rem;
}

.header-contact__icon img {
    width: 1.35rem;
}

.header-contact__label {
    font-size: 0.96rem;
    letter-spacing: 0.055em;
    padding: 0.65rem 1.05rem;
}

.header-phone:hover,
.header-phone:focus-visible,
.header-contact:hover,
.header-contact:focus-visible {
    border-color: var(--daishin-green);
    box-shadow: 0 12px 28px rgba(35, 91, 62, 0.2);
    outline: none;
    transform: translateY(-2px);
}

/* Breadcrumbs now sit directly below the page hero. */
.site-breadcrumbs {
    background: #f4f7f5;
    border-bottom: 1px solid var(--daishin-line);
    color: var(--daishin-muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.site-breadcrumbs .basic-wrapper {
    padding-block: 0.7rem;
}

.site-breadcrumbs a {
    color: var(--daishin-deep-green);
    font-weight: 500;
    text-decoration: none;
}

.site-breadcrumbs a:hover,
.site-breadcrumbs a:focus-visible {
    color: var(--daishin-green-hover);
}

.site-breadcrumbs .aioseo-breadcrumb-separator {
    color: #8a9991;
    margin-inline: 0.45rem;
}

/* Shared section hierarchy */
.main-title {
    font-size: clamp(2rem, 3.2vw, 3rem);
    font-weight: 600;
    gap: 1.1rem;
    letter-spacing: 0.08em;
    line-height: 1.25;
    margin-bottom: clamp(3rem, 5vw, 4.75rem);
}

.main-title::after {
    height: 3px;
    width: 84px;
}

body:not(.home) section.basic-wrapper {
    padding-bottom: var(--daishin-section-space);
    padding-top: var(--daishin-section-space);
}

body:not(.home) section h2.bg-k-gray-light,
body:not(.home) section h2.border-b {
    background: linear-gradient(100deg, var(--daishin-surface-strong) 0%, #f8faf9 72%, #fff 100%);
    border: 1px solid var(--daishin-line);
    border-left: 5px solid var(--daishin-green);
    box-shadow: 0 7px 20px rgba(30, 66, 49, 0.055);
    color: var(--daishin-deepest);
    font-size: clamp(1.45rem, 2.15vw, 1.9rem);
    font-weight: 600;
    letter-spacing: 0.055em;
    line-height: 1.4;
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
    padding: 1rem 1.35rem 1rem 1.65rem;
    position: relative;
    text-align: left;
}

body:not(.home) section h2.bg-k-gray-light::after,
body:not(.home) section h2.border-b::after {
    background: var(--daishin-green);
    bottom: -1px;
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    width: min(180px, 38%);
}

body:not(.home) section h2.text-center.bg-k-gray-light {
    text-align: left;
}

body:not(.home) section > p:not([class]),
body:not(.home) section > p.mb-8,
body:not(.home) section > p.mb-12 {
    max-width: 72rem;
}

body:not(.home) section h3 {
    letter-spacing: 0.035em;
}

/* Intro panels used under page heroes. */
body[class*="page-template-page-"] section.max-w-4xl.m-auto.grid {
    background: var(--daishin-surface);
    border: 1px solid var(--daishin-line);
    box-shadow: var(--daishin-shadow-md);
    overflow: hidden;
    position: relative;
    margin-top: clamp(2.5rem, 5vw, 4rem);
    transform: none !important;
}

body[class*="page-template-page-"] section.max-w-4xl.m-auto.grid::before {
    background: var(--daishin-green);
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    top: 0;
    width: 42%;
    z-index: 2;
}

body[class*="page-template-page-"] section.max-w-4xl.m-auto.grid > div {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body[class*="page-template-page-"] section.max-w-4xl.m-auto.grid > div > h2 {
    color: var(--daishin-deep-green);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    text-align: left;
}

/* Buttons and compact labels */
.btn {
    background: var(--daishin-green);
    border: 1px solid var(--daishin-green);
    border-radius: 2px;
    box-shadow: 7px 7px 0 rgba(32, 54, 45, 0.16);
    justify-content: center;
    letter-spacing: 0.055em;
    min-height: 3.25rem;
    padding: 0.85rem 1.5rem;
    transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.btn:hover,
.btn:focus-visible {
    background: var(--daishin-green-hover);
    box-shadow: 3px 3px 0 rgba(32, 54, 45, 0.2);
    transform: translate(2px, 2px);
}

.btn_map {
    border: 1px solid var(--daishin-green);
    border-radius: 2px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

/* Tables */
.table-layout {
    border-collapse: separate;
    border-spacing: 0;
    border-top: 3px solid var(--daishin-deep-green);
    box-shadow: 0 9px 28px rgba(25, 55, 42, 0.055);
}

.table-layout tr:first-child {
    border-top: 0;
}

.table-layout th {
    background: #f0f5f2;
    border-right: 1px solid var(--daishin-line);
    color: var(--daishin-deepest);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    width: 11.5rem;
}

.table-layout td {
    background: #fff;
}

.table-layout tr:nth-child(even) td {
    background: #fbfcfb;
}

.table-layout td,
.table-layout th {
    border-bottom: 1px solid var(--daishin-line);
    padding-block: 1.2rem;
}

.table-layout.has-month th {
    background: #f5f8f6;
    border-right: 0;
    width: auto;
}

.table-layout.has-month td.month {
    color: var(--daishin-green-hover);
    font-weight: 600;
}

.page-template-page-recruit .table-layout th {
    width: 13rem;
}

/* Numbered feature blocks */
.num-frame {
    gap: 1.5rem;
}

.num-frame p {
    align-items: flex-start;
    background: linear-gradient(135deg, #fff 0%, var(--daishin-surface-tint) 100%);
    border: 1px solid var(--daishin-line-strong);
    box-shadow: var(--daishin-shadow-sm);
    justify-content: flex-start;
    min-height: 8.5rem;
    overflow: hidden;
    padding: 2rem 1.35rem 1.35rem 4.7rem;
    text-align: left;
}

.num-frame p::after {
    background: var(--daishin-green);
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 4px;
}

.num-frame p .num {
    background: var(--daishin-deep-green);
    border-radius: 2px;
    box-shadow: 6px 6px 0 rgba(42, 161, 99, 0.16);
    font-size: 1rem;
    font-style: normal;
    height: 2.3rem;
    left: 1.25rem;
    top: 1.35rem;
    width: 2.3rem;
}

/* Company offices, groups and philosophy panels */
.office-card-grid,
.group-card-grid {
    align-items: stretch;
}

.office-card-grid > div,
.group-card-grid > div {
    background: #fff;
    border: 1px solid var(--daishin-line);
    box-shadow: var(--daishin-shadow-sm);
    justify-self: stretch;
    overflow: hidden;
    padding: 0 1.25rem 1.35rem;
    position: relative;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.group-card-grid > div {
    align-items: stretch;
    display: flex;
    flex-direction: column;
}

.office-card-grid > div:hover,
.group-card-grid > div:hover {
    border-color: #9bbbac;
    box-shadow: var(--daishin-shadow-md);
    transform: translateY(-3px);
}

.office-card-grid > div > img,
.group-card-grid > div > img {
    margin: 0 -1.25rem 0.35rem;
    max-width: none;
    width: calc(100% + 2.5rem);
}

.office-card-grid > div > img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.group-card-grid > div > img {
    aspect-ratio: auto;
    background: #fff;
    height: auto;
    object-fit: contain;
}

.office-card-grid > div > h3,
.group-card-grid > div > h3 {
    border-left: 4px solid var(--daishin-green);
    color: var(--daishin-deep-green);
    line-height: 1.45;
    margin-top: 0.65rem;
    padding-left: 0.75rem;
}

.office-card-grid > div > div,
.group-card-grid > div > div {
    color: var(--daishin-muted);
    padding-left: 1rem;
}

.philosophy-panel {
    background: linear-gradient(135deg, #fff 0%, #f8fbf9 100%);
    border: 1px solid var(--daishin-line-strong);
    box-shadow: var(--daishin-shadow-sm);
    overflow: hidden;
    position: relative;
}

.philosophy-panel::before {
    background: var(--daishin-green);
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.philosophy-panel > h3 {
    color: var(--daishin-deep-green);
    letter-spacing: 0.08em;
}

/* Existing photo + caption grids */
.page-template-page-jirei section > .grid > div,
.page-template-page-shinku section:last-of-type > .grid > div,
.page-template-page-netsuban section:last-of-type > .grid > div,
.page-template-page-hinshitsu .basic-wrapper > .grid > div:has(> img) {
    background: #fff;
    border: 1px solid var(--daishin-line);
    box-shadow: var(--daishin-shadow-sm);
    overflow: hidden;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.page-template-page-jirei section > .grid > div:hover,
.page-template-page-shinku section:last-of-type > .grid > div:hover,
.page-template-page-netsuban section:last-of-type > .grid > div:hover,
.page-template-page-hinshitsu .basic-wrapper > .grid > div:has(> img):hover {
    border-color: #9cb9aa;
    box-shadow: var(--daishin-shadow-md);
    transform: translateY(-3px);
}

.page-template-page-jirei section > .grid > div > p.bg-k-green,
.page-template-page-shinku section:last-of-type > .grid > div > p.bg-k-green,
.page-template-page-netsuban section:last-of-type > .grid > div > p.bg-k-green,
.page-template-page-hinshitsu .basic-wrapper > .grid > div > h3.bg-k-green {
    background: linear-gradient(90deg, var(--daishin-deep-green), var(--daishin-green));
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-bottom: 0;
    min-height: 3.5rem;
    padding: 0.85rem 1rem;
    text-align: left;
}

/* ISO policy panels */
.page-template-page-iso section > .border-k-green {
    border-color: var(--daishin-line-strong);
    box-shadow: var(--daishin-shadow-sm);
    overflow: hidden;
}

.page-template-page-iso section > .border-k-green > h3 {
    background: linear-gradient(90deg, var(--daishin-deep-green), var(--daishin-green));
    letter-spacing: 0.035em;
    padding: 1rem 1.25rem;
    text-align: left;
}

/* Staggered strengths and manufacturing panels */
.staggered {
    filter: drop-shadow(0 14px 24px rgba(25, 55, 42, 0.1));
}

.staggered .text-area {
    background: linear-gradient(135deg, var(--daishin-deep-green), #2b7e56);
    border-left: 5px solid #74c99a;
}

.staggered .top-num {
    color: #237c51;
    font-style: normal;
    letter-spacing: -0.08em;
    text-shadow: 5px 5px 0 rgba(255, 255, 255, 0.75);
}

/* Homepage */
.home-news {
    padding-bottom: clamp(4rem, 7vw, 6.5rem);
    padding-top: clamp(4rem, 7vw, 6rem);
}

.home .aos-init {
    will-change: opacity, transform;
}

.home .aos-animate {
    will-change: auto;
}

.home-news-title {
    color: var(--daishin-deep-green);
    font-size: clamp(2.25rem, 3.6vw, 3.35rem);
    letter-spacing: 0.12em;
    line-height: 1.1;
    position: relative;
}

.home-news-title::after {
    background: var(--daishin-green);
    content: "";
    display: block;
    height: 3px;
    margin: 1.2rem auto 0;
    width: 72px;
}

.home-news-title span {
    color: var(--daishin-muted);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    margin-top: 0.65rem;
}

.home-news-row {
    border-color: var(--daishin-line);
    min-height: 4.5rem;
    padding-inline: 0.7rem;
    transition: background-color 180ms ease, border-color 180ms ease;
}

.home-news-row:hover {
    background: var(--daishin-surface-tint);
    border-color: #9cbcac;
}

.home-news-row > div p:first-child {
    color: var(--daishin-muted);
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.035em;
}

.home-news-row > div p.bg-k-green {
    border-radius: 1px;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.8rem;
}

.home-news-row h3 {
    font-size: 0.98rem;
    font-weight: 500;
}

.home-technology {
    background: linear-gradient(180deg, #eef3f0 0%, #f7f9f8 100%);
}

.home-feature-panel {
    background: #fff;
    border: 1px solid var(--daishin-line);
    box-shadow: var(--daishin-shadow-md);
    overflow: hidden;
    position: relative;
}

.home-feature-panel::before {
    background: var(--daishin-green);
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    top: 0;
    width: 44%;
    z-index: 2;
}

.home-feature-panel > div {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-feature-panel h3 {
    color: var(--daishin-deep-green);
    font-size: clamp(1.45rem, 2.35vw, 2rem);
    letter-spacing: 0.04em;
    line-height: 1.5;
    position: relative;
    text-align: left;
}

.home-feature-panel h3::after {
    background: var(--daishin-green);
    content: "";
    display: block;
    height: 2px;
    margin-top: 1.2rem;
    width: 54px;
}

.home-technology-links > a {
    border: 1px solid var(--daishin-line-strong);
    border-top: 4px solid var(--daishin-green);
    box-shadow: var(--daishin-shadow-sm);
    font-weight: 600;
    letter-spacing: 0.045em;
    min-height: 4.75rem;
    padding-inline: 1rem;
}

.home-strengths {
    background-color: var(--daishin-deepest);
    background-blend-mode: multiply;
    background-position: center;
    position: relative;
}

.home-strengths::before {
    background: linear-gradient(120deg, rgba(25, 49, 39, 0.88), rgba(26, 57, 43, 0.68));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.home-strengths > * {
    position: relative;
    z-index: 1;
}

.home-strength-card {
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: 0 22px 45px rgba(8, 22, 15, 0.24);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.home-strength-card__body {
    border-top: 4px solid var(--daishin-green);
    flex: 1;
    padding: 1.35rem;
}

.home-strength-card__body > p:first-child {
    color: var(--daishin-deepest);
    font-size: 1.05rem;
    letter-spacing: 0.045em;
}

.home-strength-card .arrow-span {
    border: 1px solid rgba(255, 255, 255, 0.58);
    height: 22px;
    margin-right: 0.75rem;
    width: 22px;
}

.home-strength-card .arrow-span::after {
    display: none;
}

@media screen and (min-width: 768px) and (prefers-reduced-motion: no-preference) {
    .home-strengths {
        background-attachment: fixed;
        background-size: cover;
    }

    html:not(.no-js) body.home [data-aos="fade-up"] {
        transform: translate3d(0, 32px, 0);
    }

    html:not(.no-js) body.home [data-aos="fade-right"] {
        transform: translate3d(-42px, 0, 0);
    }

    html:not(.no-js) body.home [data-aos="fade-left"] {
        transform: translate3d(42px, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    html:not(.no-js) body.home [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* News archive and single article */
.news-layout {
    gap: clamp(2.5rem, 5vw, 5rem);
}

.news-archive-item {
    background: #fff;
    border: 1px solid var(--daishin-line);
    border-left: 4px solid var(--daishin-green);
    box-shadow: var(--daishin-shadow-sm);
    margin-bottom: 1.5rem;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.news-meta {
    color: var(--daishin-muted);
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

.news-meta .bg-k-green {
    border-radius: 1px;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    padding-block: 0.25rem;
}

.news-archive-item h2 a {
    border-bottom: 1px solid var(--daishin-line);
    color: var(--daishin-deepest);
    font-size: clamp(1.05rem, 1.7vw, 1.3rem);
    line-height: 1.65;
    padding: 0.75rem 0 1rem;
}

.news-excerpt {
    color: var(--daishin-muted);
    line-height: 1.75;
}

.news-readmore {
    border-bottom: 1px solid var(--daishin-green);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.045em;
    padding: 0.3rem 0;
}

.news-sidebar {
    align-self: start;
    background: #fff;
    border: 1px solid var(--daishin-line);
    box-shadow: var(--daishin-shadow-sm);
    overflow: hidden;
    padding: 0;
    position: sticky;
    top: 9rem;
}

body:not(.home) section .news-sidebar > .news-sidebar__title {
    background: linear-gradient(100deg, var(--daishin-surface-strong), #fff);
    border: 0;
    border-left: 4px solid var(--daishin-green);
    box-shadow: none;
    color: var(--daishin-deep-green);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.5;
    margin: 0;
    padding: 0.9rem 1rem;
    text-align: left;
}

.news-sidebar__list {
    padding: 0.35rem 1rem 0.65rem;
}

.news-sidebar li a {
    border-color: var(--daishin-line);
    font-size: 0.88rem;
    padding: 0.8rem 0.35rem;
}

.news-sidebar li a:hover,
.news-sidebar li a:focus-visible {
    background: var(--daishin-surface);
    outline: none;
    padding-left: 0.55rem;
}

.article-head {
    border-top: 3px solid var(--daishin-deep-green);
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    padding-top: 1rem;
}

.article-head time {
    color: var(--daishin-muted);
    display: inline-block;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
    margin-bottom: 0.7rem;
}

.article-head h1,
.entry-head h1 {
    background: linear-gradient(100deg, var(--daishin-surface-strong), #fff);
    background-image: none;
    border-left: 5px solid var(--daishin-green);
    color: var(--daishin-deepest);
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1.55;
    padding: clamp(1.1rem, 3vw, 1.7rem);
}

.entry-content {
    color: #314038;
    font-size: 1rem;
}

.entry-content h1,
.entry-content h2 {
    background: linear-gradient(100deg, var(--daishin-surface-strong), #fff);
    background-image: none;
    border: 1px solid var(--daishin-line);
    border-left: 5px solid var(--daishin-green);
    color: var(--daishin-deepest);
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    line-height: 1.55;
    margin-bottom: 1.5rem;
    margin-top: 3.75rem;
    padding: 0.9rem 1.2rem;
}

.entry-content h3 {
    border-left: 4px solid var(--daishin-green);
    border-bottom: 1px solid var(--daishin-line);
    color: var(--daishin-deep-green);
    font-size: clamp(1.2rem, 1.8vw, 1.45rem);
    line-height: 1.55;
    margin-bottom: 1.25rem;
    margin-top: 3rem;
    padding: 0.45rem 0.8rem 0.65rem;
}

.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: var(--daishin-deep-green);
    line-height: 1.55;
    margin-top: 2.5rem;
}

.entry-content p {
    line-height: 1.9;
    margin-bottom: 1.35rem;
}

.entry-content ul,
.entry-content ol {
    background: var(--daishin-surface-tint);
    border-left: 4px solid var(--daishin-green);
    margin-block: 1.5rem;
    padding: 1.2rem 1.4rem 1.2rem 2rem;
}

.entry-content li + li {
    margin-top: 0.5rem;
}

.entry-content .wp-block-quote,
.entry-content blockquote {
    background: #f2f6f3;
    border-left: 5px solid var(--daishin-deep-green);
    color: var(--daishin-deep-green);
    margin: 2rem 0;
    padding: 1.4rem 1.6rem;
}

.entry-content img {
    height: auto;
}

.article-navigation {
    border-color: var(--daishin-line);
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(2, minmax(0, 15rem));
    justify-content: space-between;
    margin-inline: auto;
    max-width: 34rem;
}

.article-navigation > div {
    display: flex;
    min-width: 0;
}

.article-navigation > div:empty {
    visibility: hidden;
}

.article-navigation a {
    align-items: center;
    background: #fff;
    border: 1px solid var(--daishin-line-strong);
    color: var(--daishin-deep-green);
    display: flex;
    font-size: 0.85rem;
    justify-content: center;
    min-height: 3.5rem;
    padding: 0.75rem 1rem;
    text-align: center;
    width: 100%;
}

.article-navigation a:hover,
.article-navigation a:focus-visible {
    background: var(--daishin-surface-strong);
    border-color: var(--daishin-green);
}

.pagination .nav-links .page-numbers:not(.next,.prev) {
    border-color: var(--daishin-line-strong);
    border-radius: 2px;
}

.pagination .nav-links .page-numbers.current,
.pagination .nav-links .page-numbers:hover {
    box-shadow: 4px 4px 0 rgba(32, 54, 45, 0.13);
}

/* Recruit updates and form fields */
.recruit-news-row {
    border-color: var(--daishin-line);
    min-height: 4.25rem;
    padding-inline: 0.8rem;
    transition: background-color 180ms ease;
}

.recruit-news-row:hover {
    background: var(--daishin-surface-tint);
}

.recruit-news-row > p:first-child {
    color: var(--daishin-muted);
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
}

.recruit-news-row > p.bg-k-green {
    border-radius: 1px;
    font-size: 0.7rem;
    letter-spacing: 0.055em;
    padding: 0.3rem 0.8rem;
}

table.form_table {
    border-top: 3px solid var(--daishin-deep-green);
    box-shadow: var(--daishin-shadow-sm);
}

table.form_table tr,
table.form_table tr:first-child {
    border-color: var(--daishin-line);
}

table.form_table tr th {
    background: #eef4f0;
    color: var(--daishin-deepest);
    font-weight: 600;
    letter-spacing: 0.035em;
}

table.form_table textarea,
table.form_table select,
.wpcf7-form input:not([type="radio"]):not([type="checkbox"]),
.wpcf7-form textarea,
.wpcf7-form select {
    background: #fff;
    border: 1px solid #aebdb5;
    border-radius: 2px;
    padding: 0.75rem 0.9rem;
    width: 100%;
}

.wpcf7-form input[type="radio"],
.wpcf7-form input[type="checkbox"] {
    accent-color: var(--daishin-green);
    height: 1rem;
    width: 1rem;
}

.wpcf7-form .wpcf7-list-item label {
    align-items: center;
    display: inline-flex;
    gap: 0.45rem;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    border-color: var(--daishin-green);
    box-shadow: 0 0 0 3px rgba(42, 161, 99, 0.14);
    outline: none;
}

.wpcf7-submit {
    background: var(--daishin-green) !important;
    border-color: var(--daishin-green) !important;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.06em;
    min-height: 3.4rem;
}

/* Footer */
footer.bg-\[\#384940\] {
    background: linear-gradient(120deg, #273d34, var(--daishin-deep-green));
    border-top: 5px solid var(--daishin-green);
}

footer .menu h3 {
    border-left: 3px solid var(--daishin-green);
    font-size: 1rem;
    letter-spacing: 0.055em;
    padding-left: 0.75rem;
}

footer .menu a {
    color: rgba(255, 255, 255, 0.82);
    transition: color 180ms ease, transform 180ms ease;
}

footer .menu a:hover,
footer .menu a:focus-visible {
    color: #fff;
    transform: translateX(2px);
}

footer a[href*="/recruit/"] {
    border-width: 1px;
    letter-spacing: 0.06em;
    transition: background-color 180ms ease, color 180ms ease;
}

footer a[href*="/recruit/"]:hover,
footer a[href*="/recruit/"]:focus-visible {
    background: #fff;
    color: var(--daishin-deep-green);
}

@media (min-width: 768px) and (max-width: 1100px) {
    .header-cta {
        gap: 0.45rem;
    }

    .header-phone {
        font-size: 1.05rem;
        padding-inline: 0.6rem;
    }

    .header-contact__icon {
        width: 2.7rem;
    }

    .header-contact__label {
        font-size: 0.82rem;
        padding-inline: 0.65rem;
    }
}

@media (max-width: 1023px) {
    body[class*="page-template-page-"] section.max-w-4xl.m-auto.grid {
        box-shadow: var(--daishin-shadow-sm);
    }

    .news-sidebar {
        position: static;
    }
}

@media (max-width: 767px) {
    :root {
        --daishin-section-space: 3.75rem;
    }

    body > .fixed > header.md-basic-wrapper {
        padding-inline: 0;
    }

    body > .fixed > header > .flex:first-child {
        border-bottom: 1px solid var(--daishin-line);
        padding-inline: 0.45rem;
    }

    .site-breadcrumbs {
        font-size: 0.7rem;
        overflow-x: auto;
        white-space: nowrap;
    }

    .site-breadcrumbs .basic-wrapper {
        padding-block: 0.55rem;
    }

    body:not(.home) section h2.bg-k-gray-light,
    body:not(.home) section h2.border-b {
        font-size: 1.3rem;
        margin-bottom: 2.25rem;
        padding: 0.8rem 0.9rem 0.8rem 1.15rem;
    }

    body[class*="page-template-page-"] section.max-w-4xl.m-auto.grid {
        border-inline: 0;
        box-shadow: none;
        margin-top: 2rem;
    }

    body[class*="page-template-page-"] section.max-w-4xl.m-auto.grid > div {
        padding: 1.5rem;
    }

    .table-layout {
        border-top-width: 2px;
        box-shadow: none;
    }

    .table-layout tr {
        background: #fff;
        border: 1px solid var(--daishin-line);
        border-top: 0;
        padding: 0;
    }

    .table-layout tr th {
        background: #edf3ef;
        border-right: 0;
        padding: 0.7rem 0.85rem;
        width: 100%;
    }

    .table-layout tr td {
        background: #fff;
        padding: 0.85rem;
    }

    .num-frame p {
        min-height: 7.2rem;
        padding: 1.5rem 1rem 1.2rem 4.2rem;
    }

    .num-frame p .num {
        left: 1rem;
        top: 1rem;
    }

    .office-card-grid,
    .group-card-grid {
        gap: 1.4rem;
    }

    .office-card-grid > div,
    .group-card-grid > div {
        width: 100%;
    }

    .home-news {
        padding-inline: 1rem;
    }

    .home-news-row {
        padding-inline: 0;
    }

    .home-news > .grid > div:last-child {
        align-items: center;
        gap: 1.5rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-block: 2.5rem 0;
        width: 100%;
    }

    .home-news > .grid > div:last-child > a {
        align-items: center;
        display: flex;
        justify-content: center;
        margin-bottom: 0;
        max-width: 10rem;
    }

    .home-feature-panel {
        box-shadow: var(--daishin-shadow-sm);
    }

    .home-feature-panel > div {
        padding: 2rem 1.35rem;
    }

    .home-feature-panel h3 {
        text-align: left;
    }

    .home-technology-links > a {
        min-height: 4.25rem;
    }

    .news-archive-item {
        margin-bottom: 1.15rem;
        padding: 1.1rem;
    }

    .news-sidebar {
        box-shadow: none;
    }

    .article-head h1,
    .entry-head h1 {
        font-size: 1.3rem;
        padding: 1rem;
    }

    .entry-content h1,
    .entry-content h2 {
        font-size: 1.25rem;
        margin-top: 3rem;
    }

    .entry-content h3 {
        font-size: 1.1rem;
    }

    .article-navigation {
        align-items: stretch;
        gap: 0.65rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 100%;
    }

    .article-navigation > div {
        display: flex;
    }

    .article-navigation a {
        flex: 1;
        font-size: 0.76rem;
        padding-inline: 0.55rem;
    }

    table.form_table {
        box-shadow: none;
    }

    .page-template-page-contact section.max-w-screen-md {
        padding-bottom: 4rem;
    }

    footer .basic-wrapper {
        gap: 2.5rem;
    }
}
