/*
Theme Name: ビジネス型（business_Thema）
Description: 明朝体と余白を生かした企業向けテーマ。投稿連動NEWS・会社概要・採用情報・お問い合わせに対応。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: business-thema
*/

:root {
    --ink: #303437;
    --blue: #373e59;
    --navy: #373e59;
    --serif: 'Yu Mincho', 'Hiragino Mincho ProN', 'Noto Serif JP', serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    letter-spacing: 0.05em;
    overflow-wrap: anywhere;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: #0784ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.55;
}

p {
    margin-bottom: 1.3em;
}

/* SP版でのみ改行する */
br.sp-only {
    display: none;
}

svg.icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 4px;
}

.container {
    width: 76%;
    max-width: 1200px;
    margin-inline: auto;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link:focus {
    width: auto;
    height: auto;
    clip-path: none;
    left: 10px;
    top: 10px;
    background: white;
    padding: 10px;
    z-index: 100;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #ddd;
    background: #fff;
}

body.admin-bar .site-header {
    top: 32px;
}

.header-inner {
    width: 90%;
    margin: auto;
    min-height: 112px;
    display: flex;
    align-items: center;
    gap: 5%;
    padding: 20px 0;
}

.brand,
.custom-logo-link {
    display: block;
    width: 310px;
    flex-shrink: 0;
}

.brand img,
.custom-logo {
    width: 100%;
    height: auto;
}

.desktop-nav {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    font-family: var(--serif);
    letter-spacing: 0.2em;
    white-space: nowrap;
}

.desktop-nav a {
    color: var(--ink);
    font-size: 16px;
    width: 100px;
}

.desktop-nav ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.desktop-nav .sub-menu {
    display: none;
}

.desktop-nav li:hover>.sub-menu,
.desktop-nav li:focus-within>.sub-menu {
    display: block;
    position: absolute;
    background: white;
    padding: 20px;
    z-index: 4;
    width: auto;
}

.nav-arrow {
    display: none;
}

.menu-toggle {
    position: absolute;
    z-index: 1000;
    right: 10px;
    top: 12px;
    display: none;
    align-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 5px;
    border: 0;
    background: transparent;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #333;
}

.menu-drawer {
    position: fixed;
    inset: 0;
    margin: 0;
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: #10371c;
}

.menu-panel {
    width: min(300px, 70vw);
    height: 100%;
    margin-left: auto;
    padding: 20px 24px 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
}

.menu-panel>.brand,
.menu-panel>.custom-logo-link {
    width: 100%;
    margin: 0 auto 30px;
}

.menu-drawer::backdrop {
    background: #0005;
}

.menu-close {
    position: absolute;
    right: calc(min(300px, 70vw) + 5px);
    top: 12px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: 0;
    color: #222;
    font-size: 44px;
    line-height: 1;
}

.menu-drawer nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: inherit;
    padding: 14px 0;
    font-size: 18px;
}

.menu-drawer nav a::after {
    content: '';
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    margin-right: 4px;
    border-top: 3px solid currentColor;
    border-right: 3px solid currentColor;
    transform: rotate(45deg);
}

.menu-drawer nav>a:first-child::after {
    content: none;
}

.menu-drawer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-drawer .sub-menu {
    padding-left: 20px;
}

.menu-contact {
    display: grid;
    gap: 12px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #ddd;
}

.menu-contact-button,
.menu-phone-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 8px;
    border: 1px solid var(--navy);
    border-radius: 4px;
    text-align: center;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.menu-contact-button {
    background: var(--navy);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.menu-phone-button {
    gap: 4px;
    background: #fff;
    color: var(--navy);
}

.menu-phone-button span {
    font-size: 12px;
}

.menu-phone-button strong {
    font-size: clamp(16px, 5vw, 21px);
    white-space: nowrap;
}

.menu-contact-button:hover,
.menu-contact-button:focus-visible {
    background: #252b40;
    color: #fff;
    text-decoration: none;
}

.menu-phone-button:hover,
.menu-phone-button:focus-visible {
    background: #f0f2f6;
    text-decoration: none;
}

.section-title {
    text-align: center;
    font-family: var(--serif);
    font-weight: 500;
    font-size: 36px;
    letter-spacing: 0.2em;
    margin: 46px 0 56px;
}

.hero-image img {
    width: 100%;
    height: auto;
}

.home-intro {
    max-width: 800px;
    width: 86%;
    margin: 48px auto 60px;
}

.home-intro h2 {
    text-align: center;
    font-family: var(--serif);
    font-weight: 500;
    font-size: 30px;
    line-height: 1.55;
    margin-bottom: 18px;
    white-space: normal;
}

.home-intro p {
    font-size: 16px;
    text-align: center;
}

.home-news {
    margin-bottom: 170px;
}

.home-news h2 {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 500;
    background-color: #4B5D83;
    color: #fff;
    display: inline-block;
    padding: 5px 5px;
}

.home-news ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-news li {
    padding: 14px;
    border-bottom: 1px solid #ddd;
}

.home-news time {
    display: block;
    font-size: 14px;
}

.home-news li a {
    font-weight: 700;
    font-size: 18px;
}

.news-more {
    display: block;
    text-align: right;
    font-size: 12px;
    margin-top: 16px;
}

.home-features {
    padding-bottom: 120px;
}

.service-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 32px;
    margin-bottom: 80px;
}

.service-row:last-child {
    margin-bottom: 0;
}

.service-row>img {
    width: 100%;
    height: auto;
}

.service-row:nth-child(even)>img {
    order: 2;
}

.service-row h2 {
    font-family: var(--serif);
    font-size: 23px;
    text-align: center;
    margin: 0 0 15px;
}

.service-row p {
    font-size: 16px;
    margin-bottom: 0;
}

.home-features .service-row h2 {
    border-bottom: 1px solid var(--blue);
    padding-bottom: 8px;
}

.business-intro {
    width: 80%;
    max-width: 850px;
    margin: 0 auto 110px;
    text-align: center;
    font-size: 15px;
}

.business-intro h2 {
    font-size: 19px;
    font-weight: 500;
    margin-bottom: 18px;
}

.service-list {
    padding-bottom: 110px;
}

.service-list .service-row p {
    text-align: left;
}

.greeting {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 32px;
    width: 100%;
    margin: 0 auto;
}

.greeting>img {
    width: 100%;
    height: auto;
}

.greeting-text p {
    margin-bottom: 28px;
}

.greeting .signature img {
    width: 220px;
    max-width: 100%;
    height: auto;
    margin-left: auto;
}

.signature {
    text-align: right;
}

.company-details .section-title {
    margin-top: 58px;
}

.company-table {
    width: 72%;
    margin: 0 auto;
}

.company-table>div {
    display: grid;
    grid-template-columns: 22% minmax(0, 1fr);
    background: #f7f7f7;
    border-bottom: 3px solid white;
    min-height: 65px;
}

.company-table dt,
.company-table dd {
    margin: 0;
    padding: 20px;
}

.company-table dt {
    letter-spacing: 0.15em;
}

.access {
    padding: 35px 0 55px;
}

.access h3 {
    border-bottom: 1px solid #333;
    font-size: 30px;
    font-family: var(--serif);
    font-weight: 400;
}


.access iframe {
    display: block;
    border: 0;
    width: 100%;
    height: 450px;
}

.recruit-page {
    width: 70%;
    max-width: 1100px;
    padding-bottom: 55px;
}

.recruit-page>h2 {
    font-size: 25px;
    font-weight: 400;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin: 0 0 45px;
}

.recruit-table {
    margin: 0;
}

.recruit-table>div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    margin-bottom: 40px;
    align-items: stretch;
    min-height: 70px;
}

.recruit-table>div:last-child {
    margin-bottom: 0;
}

.recruit-table dt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-right: 1px dotted #ccc;
}

.recruit-table dd {
    margin: 0;
    padding: 8px 0 8px 32px;
    align-self: center;
}

.contact-band {
    text-align: center;
    background: #f2f2f2;
    padding: 46px 20px 58px;
}

.contact-band h2 {
    font-family: Arial, sans-serif;
    font-size: 48px;
    line-height: 1;
    margin: 0;
    color: #7d849b;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.contact-band p {
    font-size: 13px;
    margin: 0 0 16px;
}

.contact-button {
    display: inline-block;
    padding: 16px 42px;
    border: 1px solid var(--blue);
    /* border-radius: 40px; */
    font-size: 19px;
    font-weight: 700;
    color: var(--blue);
}

.contact-button:hover {
    background: var(--blue);
    color: #fff;
    text-decoration: none;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 720px;
    margin: 0 auto;
}

.contact-actions .contact-button {
    display: flex;
    flex: 1 1 280px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 350px;
    min-width: 0;
    padding: 18px 16px;
}

.contact-button-label {
    font-size: 14px;
    font-weight: 400;
}

.contact-button-value {
    line-height: 1.5;
}

.contact-button-number {
    font-size: 1.2em;
    line-height: 1.25;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.site-footer {
    background: var(--navy);
    padding: 30px 20px 45px;
    text-align: center;
    color: white;
}

.site-footer .brand,
.site-footer .custom-logo-link {
    width: 270px;
    margin: 0 auto 35px;
}

.site-footer address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.55;
}

.site-footer address a {
    color: inherit;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 26px;
}

.social-links img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.social-links a:hover {
    opacity: 0.7;
}

.footer-light {
    background: #fff;
    color: var(--ink);
    padding-top: 45px;
}

.footer-light .social-links> :last-child {
    display: none;
}

.contact-wrap {
    max-width: 1000px;
    width: 64%;
    padding-bottom: 90px;
}

.contact-intro {
    margin: 0 auto 70px;
    width: 90%;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 30% minmax(0, 1fr);
}

.form-row:nth-of-type(even) {
    background: #ebebeb;
}

.form-row>label,
.form-row>p:first-child {
    padding: 28px 22px;
    text-align: right;
    font-weight: 700;
    border-right: 1px solid #dce0e4;
}

.form-row>div {
    padding: 26px 22px;
}

.badge {
    display: inline-block;
    font-size: 12px;
    line-height: 1.8;
    padding: 2px 5px;
    color: #fff;
    background: #bfc1c2;
    border-radius: 4px;
    white-space: nowrap;
}

.badge.required {
    background: #e00000;
}

.form-row input,
.form-row select,
.form-row textarea {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 9px 12px;
    border: 1px solid #cbd2d9;
    border-radius: 4px;
    background: white;
    color: var(--ink);
}

.form-row textarea {
    min-height: 280px;
    resize: vertical;
}

.form-actions {
    border-top: 10px solid #dce0e4;
    padding-top: 25px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.pill {
    display: inline-block;
    padding: 12px 35px;
    border: 1px solid #c6d2db;
    border-radius: 5px;
    background: #519ed4;
    color: white;
    text-align: center;
    font-weight: 700;
    min-width: 220px;
}

.pill span {
    margin-left: 18px;
}

.form-actions .pill {
    letter-spacing: 0.2em;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.confirmed-value {
    white-space: normal;
    margin: 0;
}

.form-errors,
.form-notice {
    background: #f3f7fa;
    padding: 24px;
    margin-bottom: 30px;
}

.form-errors {
    border-left: 3px solid #d00;
    color: #a00000;
}

.news-list-page {
    padding: 25px 0 100px;
    width: 79%;
}

.news-list-title {
    font-size: 32px;
    font-weight: 400;
    border-left: 5px solid var(--blue);
    padding: 10px 18px;
    width: fit-content;
    margin: 10px auto 100px;
}

.news-list {
    width: 80%;
    margin: auto;
}

.news-card {
    display: grid;
    grid-template-columns: 28% minmax(0, 1fr);
    gap: 36px;
    align-items: center;
    margin-bottom: 40px;
}

.news-image img {
    width: 100%;
    aspect-ratio: 1.5;
    object-fit: cover;
}

.news-card time {
    font-size: 14px;
}

.news-card h2 {
    font-size: 24px;
    margin: 0 0 10px;
    font-weight: 400;
}

.news-excerpt p {
    margin: 0;
}

.pagination {
    border-top: 1px dotted #ccc;
    padding-top: 8px;
    display: flex;
    gap: 20px;
}

.single-news,
.standard-page {
    padding: 60px 0 90px;
    max-width: 1000px;
}

.article-header h1 {
    font-family: var(--serif);
    font-size: 34px;
}

.article-header time {
    font-size: 14px;
}

.article-image {
    margin: 35px 0;
}

.entry-content {
    line-height: 1.9;
}

.entry-content img {
    height: auto;
}

.entry-content iframe {
    max-width: 100%;
}

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

.entry-content td,
.entry-content th {
    border: 1px solid #ddd;
    padding: 10px;
}

.entry-content pre {
    overflow: auto;
}

.aligncenter {
    margin-inline: auto;
}

.alignwide {
    max-width: 100%;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
    font-size: 13px;
}

.sticky {
    border-left: 2px solid var(--blue);
}

.button-right {
    text-align: right;
    margin-top: 40px;
}

.page-extra {
    max-width: 1000px;
    margin: 40px auto;
}

.error-page {
    padding: 80px 0;
    text-align: center;
}

@media (min-width: 1600px) {
    .header-inner {
        min-height: 120px;
    }

    .brand,
    .custom-logo-link {
        width: 360px;
    }
}

@media (max-width: 1100px) {
    .desktop-nav {
        gap: 16px;
        letter-spacing: 0.1em;
    }

    .desktop-nav a {
        font-size: 14px;
    }

    .brand,
    .custom-logo-link {
        width: 250px;
    }

    .header-inner {
        gap: 4%;
        min-height: 94px;
    }

    .container {
        width: 82%;
    }

    .contact-wrap {
        width: 75%;
    }

    .company-table {
        width: 85%;
    }

    .desktop-nav a {
        width: auto;
    }
}

@media (min-width: 801px) {
    .header-inner {
        min-height: 80px;
        padding: 12px 0;
    }

    .header-inner>.brand,
    .header-inner>.custom-logo-link {
        width: 240px;
    }

    .menu-drawer {
        display: none;
    }
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

@media (max-width: 800px) {

    br.sp-only {
        display: inline;
    }

    .desktop-nav {
        display: none;
    }

    .header-inner {
        padding: 14px 0;
        min-height: 84px;
    }

    .brand,
    .custom-logo-link {
        width: 240px;
    }

    .menu-toggle {
        display: grid;
        top: 15px;
        right: 10px;
    }

    .section-title {
        font-size: 28px;
        margin: 38px 0 40px;
    }

    .access h3 {
        font-size: 25px;
    }


    .container {
        width: 90%;
    }

    .home-intro h2 {
        font-size: 24px;
    }

    .home-news {
        margin-bottom: 75px;
    }

    .home-features,
    .service-list {
        padding-bottom: 65px;
    }

    .service-row {
        gap: 22px;
        margin-bottom: 55px;
    }


    .business-intro {
        margin-bottom: 65px;
    }

    .greeting {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .greeting>img {
        max-width: 480px;
        margin-inline: auto;
    }

    .company-table {
        width: 100%;
    }

    .company-table dt,
    .company-table dd {
        padding: 16px;
    }

    .company-table>div {
        grid-template-columns: 28% minmax(0, 1fr);
    }

    .access iframe {
        height: 340px;
    }

    .contact-wrap {
        width: 90%;
        padding-bottom: 60px;
    }

    .contact-intro {
        width: 100%;
        margin-bottom: 35px;
    }

    .form-row>label,
    .form-row>p:first-child {
        padding: 22px 14px;
    }

    .form-row>div {
        padding: 22px 14px;
    }

    .recruit-table dd {
        padding-left: 24px;
    }

    .news-list {
        width: 100%;
    }

    .news-list-title {
        font-size: 25px;
        margin-bottom: 55px;
    }

    .news-card {
        grid-template-columns: 35% minmax(0, 1fr);
        gap: 20px;
    }

    .news-card h2 {
        font-size: 20px;
    }

    .contact-band h2 {
        font-size: 42px;
    }

    .contact-band {
        padding: 38px 20px 42px;
    }

}

@media (max-width: 600px) {
    body.admin-bar .site-header {
        top: 0;
    }

    .header-inner {
        padding-right: 48px;
    }

    .header-inner>.brand,
    .header-inner>.custom-logo-link {
        max-width: 100%;
    }

    .header-inner {
        min-height: 76px;
    }

    .brand,
    .custom-logo-link {
        width: 210px;
    }

    .hero-image img {
        width: 100%;
    }

    .home-intro {
        margin-top: 30px;
    }

    .home-intro h2 {
        font-size: 22px;
    }

    .service-row h2 {
        font-size: 22px;
    }

    .service-row p {
        font-size: 15px;
    }

    .home-news h2 {
        font-size: 15px;
    }

    .service-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .service-row:nth-child(even)>img {
        order: 0;
    }


    .home-features {
        width: 86%;
    }

    .business-intro {
        width: 90%;
    }

    .greeting {
        width: 100%;
    }

    .company-table>div {
        grid-template-columns: minmax(0, 1fr);
    }

    .company-table dt {
        font-weight: 700;
        padding-bottom: 5px;
    }

    .company-table dd {
        padding-top: 5px;
    }

    .company-details .section-title {
        margin-top: 45px;
    }

    .access {
        padding-top: 15px;
    }

    .recruit-page>h2 {
        font-size: 22px;
        margin-bottom: 25px;
    }

    .recruit-table>div {
        grid-template-columns: minmax(0, 1fr);
        border-bottom: 1px dotted #ccc;
        padding: 15px 12px 25px;
        margin-bottom: 12px;
        gap: 18px;
    }

    .recruit-table dt {
        border: 0;
        width: 110px;
    }

    .recruit-table dd {
        padding: 0;
    }

    .form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-row>label,
    .form-row>p:first-child {
        text-align: left;
        border: 0;
        padding: 18px 16px 0;
    }

    .form-row>div {
        padding: 12px 16px 20px;
    }

    .form-row input,
    .form-row select,
    .form-row textarea {
        font-size: 16px;
    }

    .form-actions {
        flex-wrap: wrap;
    }

    .contact-button {
        font-size: 17px;
        padding: 14px 32px;
    }

    .site-footer .brand,
    .site-footer .custom-logo-link {
        width: 240px;
    }

    .site-footer address {
        font-size: 12px;
    }

    .news-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .news-image img {
        max-height: 260px;
    }

    .news-list-title {
        font-size: 23px;
    }

    .news-list-page {
        padding-bottom: 60px;
    }

    .article-header h1 {
        font-size: 26px;
    }

    .single-news {
        padding-top: 35px;
    }
}

/* Contact Form 7 */
.contact-wrap .wpcf7-form-control-wrap {
    display: block;
}

.contact-wrap .form-row p {
    margin: 0;
}

.contact-wrap .form-row .form-help,
.contact-wrap .form-help {
    margin: 12px 0;
    font-size: 14px;
    line-height: 1.8;
}

.contact-wrap .wpcf7-not-valid {
    border-color: #c00;
}

.contact-wrap .wpcf7-not-valid-tip {
    margin-top: 6px;
    font-size: 14px;
}

.contact-wrap .form-actions p {
    margin: 0;
    text-align: center;
}

.contact-wrap .wpcf7-submit {
    cursor: pointer;
    max-width: 100%;
    white-space: normal;
}

.contact-wrap .wpcf7-submit:disabled {
    opacity: .6;
    cursor: wait;
}

/* ご指定により、全ページのアニメーション・遷移演出を停止。 */
*,
*::before,
*::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}
