/*
Theme Name: LP_Thema
Description: 1ページ完結型の企業サイト。投稿連携NEWS・お問い合わせ確認フォーム・レスポンシブ対応。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: lp-thema
*/
/* 基本設定・共通スタイル */
:root {
    --blue: #2089b9;
    --light-blue: #c0dfef;
    --ink: #383b3d;
    --line: #d8dde1;
    --width: 1100px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
    font-size: 18px;
    line-height: 1.8;
    background: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

a,
button {
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid #146790;
    outline-offset: 5px;
}

img,
svg,
iframe {
    max-width: 100%;
}

img {
    height: auto;
}

button {
    cursor: pointer;
}

.container {
    width: min(var(--width), calc(100% - 64px));
    margin-inline: auto;
}

.screen-reader-text,
.skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    background: #fff;
    padding: 15px;
    z-index: 100;
}

/* ヘッダー・ロゴ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    border-bottom: 1px solid #eee;
}

/* ログイン時は WordPress 管理バーの下に配置する */
.admin-bar .site-header {
    top: 32px;
}

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

/* この幅では管理バー自体がスクロールするため、画面上端に追従する */
@media (max-width: 600px) {
    .admin-bar .site-header {
        top: 0;
    }
}

.mobile-header-actions {
    display: none;
}

.header-inner {
    min-height: 78px;
    padding: 8px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.15;
    flex-shrink: 0;
}

.brand-note {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #7182a5;
    letter-spacing: 0.08em;
}

.brand-note b {
    background: #223c6c;
    color: #fff;
    font-size: 14px;
    padding: 4px 7px;
}

.brand>strong {
    font-size: 30px;
    letter-spacing: 0.04em;
    margin-top: 3px;
}

.custom-logo-link {
    display: block;
    max-width: 270px;
}

.custom-logo {
    display: block;
    width: auto;
    max-height: 68px;
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* 共通ボタン・アイコン */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--blue);
    color: #fff;
    border: 1px solid var(--blue);
    border-radius: 3px;
    padding: 9px 23px;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.button:hover {
    background: #126c97;
    box-shadow: 0 6px 15px #2089b924;
    transform: translateY(-2px);
}

.header-actions .button {
    padding: 7px 18px;
    font-size: 16px;
    gap: 6px;
}

.header-actions .button .icon {
    width: 20px;
    height: 20px;
}

.icon {
    width: 23px;
    height: 23px;
    flex: none;
    vertical-align: middle;
}

.phone {
    display: flex;
    align-items: center;
    font-size: 23px;
    font-weight: 700;
    white-space: nowrap;
}

.phone .icon {
    width: 27px;
    height: 27px;
}

/* TOP：メインビジュアル */
.hero {
    overflow: hidden;
    /* max-width: 1920px; */
    margin: auto;
}

.hero>.photo {
    width: 100%;
    display: block;
}

.photo {
    display: block;
    width: 100%;
    height: auto;
}

/* TOP：NEWS・ページ送り */
.news {
    padding-top: 160px;
    padding-bottom: 140px;
}

.news h2 {
    display: table;
    margin: 0 0 6px;
    background: var(--blue);
    color: #fff;
    font-size: 17px;
    padding: 3px 18px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

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

.news-links li {
    border-bottom: 1px solid #e9edf0;
}

.news-link {
    display: grid;
    grid-template-columns: 135px minmax(0, 1fr) 25px;
    align-items: center;
    gap: 18px;
    padding: 17px 0;
}

.news-link time {
    font-size: 15px;
    color: #68747a;
}

.news-link-title {
    color: var(--blue);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.news-link:hover .news-link-title {
    text-decoration: underline;
}

.news-link-arrow {
    color: var(--blue);
    text-align: right;
}

.news-list-button {
    display: flex;
    justify-content: flex-end;
    margin-top: 28px;
}

.news-list-button .button {
    padding: 7px 16px;
    font-size: 14px;
    font-weight: 400;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.pagination {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
    font-size: 16px;
    color: var(--blue);
}

.page-numbers {
    padding: 4px 10px;
}

.page-numbers.current {
    background: var(--blue);
    color: #fff;
}

.empty-news {
    font-size: 17px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
}

/* TOP：サービス・特徴紹介 */
.services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 35px;
}

.service-card {
    display: block;
}

.service-card .photo {
    box-shadow: 0 2px 16px #213c4a14;
    transition: transform 0.4s;
}

.service-card:hover .photo {
    transform: translateY(-6px);
}

.service-card h2 {
    font-size: 18px;
    font-weight: 500;
    margin: 22px 0 0;
}

.service-card p {
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

.intro {
    text-align: center;
    padding: 210px 0 220px;
}

.intro h2 {
    display: inline-block;
    font-size: 25px;
    line-height: 1.4;
    letter-spacing: 0.1em;
    font-weight: 500;
    padding-bottom: 10px;
    white-space: pre-line;
    border-bottom: 5px double #1F83B8;
}

.intro p {
    font-size: 18px;
    margin: 0;
}

.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 38px;
    margin-bottom: 95px;
}

.feature:nth-of-type(even)>.photo {
    order: 2;
}

.feature .photo {
    box-shadow: 0 2px 15px #213c4a18;
}

.feature h3 {
    font-size: 22px;
    font-weight: 500;
    border-bottom: 1px solid #78bfe3;
    border-left: 5px solid #78bfe3;
    position: relative;
    margin: 0 0 14px;
    padding: 0 0 4px 0px;
}

.feature p {
    font-size: 17px;
    line-height: 1.8;
    margin: 0;
}

.features {
    padding-bottom: 100px;
}

/* お問い合わせバナー */
.contact-banner {
    background: linear-gradient(110deg, #f3e9ed, #e3ecff);
    text-align: center;
    padding: 90px 24px;
}

.contact-banner h2 {
    font-size: 25px;
    letter-spacing: 0.04em;
    font-weight: 500;
    margin: 0 0 24px;
}

.section-space {
    padding-top: 130px;
    padding-bottom: 130px;
}

.section-title {
    text-align: center;
    font-size: 26px;
    line-height: 1.1;
    font-weight: 500;
    margin: 0 0 65px;
}

.section-title>span {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 67px;
    font-style: italic;
    font-weight: 500;
    color: var(--light-blue);
    letter-spacing: -2px;
}

/* 会社概要・アクセス */
.company-table {
    max-width: 720px;
    margin: 0 auto;
    font-size: 17px;
}

.company-table>div {
    display: grid;
    grid-template-columns: 155px 1fr;
    min-height: 42px;
}

.company-table>div:nth-child(odd) {
    background: var(--blue);
    color: #fff;
}

.company-table dt {
    padding: 10px 15px;
    text-align: center;
    border-right: 1px solid #ffffff66;
}

.company-table dd {
    margin: 0;
    padding: 10px 22px;
    text-align: center;
    overflow-wrap: anywhere;
}

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

.map-placeholder {
    height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #edf4f4, #e7eff7);
    color: #577886;
    border: 1px solid #dce7eb;
}

.map-placeholder>span {
    font-size: 58px;
    line-height: 1;
}

.map-placeholder p {
    margin: 10px 0;
}

.map-placeholder small {
    padding: 0 20px;
}

.map-link {
    text-align: right;
    font-size: 15px;
    color: var(--blue);
}

/* よくあるご質問 */
.faq {
    padding-top: 135px;
    padding-bottom: 160px;
}

.faq details {
    border-top: 1px solid #aeb8be;
}

.faq details:last-child {
    border-bottom: 1px solid #aeb8be;
}

.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 25px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    font-size: 18px;
}

.faq summary>span {
    position: relative;
    width: 23px;
    height: 23px;
    flex: none;
}

.faq summary>span:before,
.faq summary>span:after {
    content: '';
    position: absolute;
    top: 11px;
    left: 3px;
    width: 17px;
    height: 1px;
    background: var(--blue);
    transition: transform 0.25s;
}

.faq summary>span:after {
    transform: rotate(90deg);
}

.faq details[open] summary>span:after {
    transform: rotate(0);
}

.answer {
    padding: 0 40px 25px 8px;
    color: #66777f;
    font-size: 17px;
}

/* フッター・SNS */
.site-footer {
    text-align: center;
    background: #fff;
    border-top: 5px solid var(--blue);
    margin-top: 145px;
    padding: 35px 24px 35px;
}

.footer-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.site-footer .brand {
    max-width: 100%;
    text-align: left;
}

.site-footer .brand-note {
    gap: 12px;
    font-size: 15px;
    letter-spacing: .04em;
}

.site-footer .brand-note b {
    font-size: 14px;
    padding: 5px 7px;
}

.site-footer .brand>strong {
    margin-top: 5px;
    font-size: 32px;
    letter-spacing: .04em;
}

.site-footer .custom-logo-link {
    width: 320px;
    max-width: 100%;
    margin: 0;
}

.site-footer .custom-logo {
    width: 100%;
    height: auto;
    max-height: none;
}

.site-footer address {
    margin: 0;
    font-style: normal;
    font-size: 15px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.footer-contact>span {
    display: block;
}

.footer-contact a:hover {
    text-decoration: underline;
}

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

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
}

.social-icon svg,
.social-icon img {
    display: block;
    width: 100%;
    height: 100%;
}

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

.back-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: var(--blue);
    color: #fff;
    font-size: 29px;
    line-height: 1;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.back-top.visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* お問い合わせフォーム・確認画面 */
.contact-main {
    max-width: 900px;
    padding-top: 55px;
    padding-bottom: 0;
}

.contact-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 45px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 32px;
}

.contact-title>span {
    display: grid;
    place-items: center;
    background: var(--blue);
    color: white;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    flex: none;
}

.contact-title .icon {
    width: 46px;
    height: 46px;
}

.contact-intro {
    font-size: 17px;
    line-height: 1.9;
    margin: 0 0 65px;
}

.form-table {
    border-bottom: 9px solid #dfe3e6;
}

.form-row {
    display: grid;
    grid-template-columns: 30% 70%;
}

.form-row:nth-child(odd) {
    background: #ededed;
}

.form-row>label {
    padding: 25px 20px;
    text-align: right;
    border-right: 1px solid #dfe4e8;
    font-weight: 500;
}

.badge {
    display: inline-block;
    background: #bfc0c0;
    color: white;
    line-height: 1.5;
    padding: 2px 5px;
    margin-left: 5px;
    white-space: nowrap;
    font-size: 17px;
}

.badge.required {
    background: #ec2525;
}

.field {
    padding: 24px 20px;
}

.field input,
.field select,
.field textarea {
    display: block;
    width: 100%;
    padding: 9px 12px;
    background: white;
    border: 1px solid #97c8e8;
    border-radius: 4px;
    min-height: 43px;
    color: var(--ink);
}

.field textarea {
    min-height: 380px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: 2px solid #258dc2;
    outline-offset: 2px;
}

.field select {
    border-color: #cbd5df;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 25px 0 0;
}

.form-actions .button {
    min-width: 160px;
}

.button.secondary {
    background: #fff;
    color: var(--blue);
}

.consent {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    margin: 25px 0 0;
    font-size: 17px;
    cursor: pointer;
}

.consent input {
    width: 18px;
    height: 18px;
    accent-color: var(--blue);
}

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

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

.confirm-heading {
    font-size: 25px;
    margin-bottom: 25px;
}

.notice {
    padding: 30px;
    background: #edf7fb;
    border: 1px solid #b4ddeb;
    margin: 30px 0;
}

.notice.error {
    background: #fff4f4;
    border-color: #eab5b5;
    color: #9a2525;
}

.notice h2 {
    font-size: 25px;
}

/* NEWS一覧・記事詳細 */
.news-archive,
.news-detail {
    padding-top: 25px;
    padding-bottom: 90px;
    min-height: 60vh;
}

.news-page-banner {
    margin: 0;
    padding: 22px 24px;
    background: var(--blue);
    color: #fff;
    text-align: center;
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 700;
    line-height: 1.5;
}

.news-section-heading {
    margin: 48px 0 90px;
    text-align: center;
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 400;
    line-height: 1.5;
}

.news-section-heading span {
    display: inline-block;
    padding-left: 16px;
    border-left: 5px solid var(--blue);
}

.news-archive-card {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: center;
    gap: 30px;
    width: 82%;
    margin: 0 auto 32px;
}

.news-archive-photo {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #edf5f9;
}

.news-archive-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-no-image {
    display: grid;
    place-items: center;
    height: 100%;
    color: var(--blue);
    font-size: 26px;
    letter-spacing: .12em;
}

.news-archive-copy {
    min-width: 0;
    overflow-wrap: anywhere;
}

.news-archive-copy time {
    font-size: 15px;
}

.news-archive-copy h3 {
    margin: 0 0 12px;
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 400;
    line-height: 1.6;
}

.news-archive-copy h3 a {
    color: #1685ee;
}

.news-archive-copy h3 a:hover {
    text-decoration: underline;
}

.news-archive-excerpt {
    font-size: 15px;
}

.news-archive-excerpt p {
    margin: 0;
}

.news-pagination {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--line);
    padding-top: 30px;
    margin-top: 40px;
}

.news-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #c0dfef;
    border-radius: 4px;
    background: #fff;
    color: var(--blue);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}

.news-pagination a.page-numbers:hover {
    background: #edf7fb;
    border-color: var(--blue);
    box-shadow: 0 2px 8px #2089b91a;
}

.news-pagination a.page-numbers:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

.news-pagination .page-numbers.current {
    color: #fff;
    background: var(--blue);
    border-color: var(--blue);
    font-weight: 600;
}

.news-pagination .prev,
.news-pagination .next {
    padding-inline: 16px;
}

.news-pagination .page-numbers.dots {
    min-width: 24px;
    padding-inline: 0;
    background: transparent;
    border-color: transparent;
    color: #7a858b;
}

.news-article {
    width: 82%;
    margin: 60px auto 0;
}

.news-article-header {
    margin-bottom: 35px;
}

.news-article-header h1 {
    margin: 0 0 18px;
    border-left: 5px solid var(--blue);
    padding-left: 18px;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

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

.news-article-image {
    display: block;
    margin-bottom: 30px;
}

.news-detail-back {
    display: flex;
    justify-content: center;
    margin-top: 55px;
}

/* 投稿・固定ページ */
.article-main {
    max-width: 900px;
    padding-block: 85px;
    min-height: 50vh;
}

.article-main h1 {
    font-size: 35px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.article-main time {
    font-size: 16px;
    color: #7a858b;
}

.entry-content {
    overflow-wrap: anywhere;
}

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

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

.entry-content a,
.text-link {
    color: var(--blue);
    text-decoration: underline;
}

.entry-content table {
    display: block;
    overflow-x: auto;
}

.entry-content figure {
    max-width: 100%;
    margin-inline: 0;
}

.post-preview {
    border-bottom: 1px solid var(--line);
    padding: 25px 0;
}

.text-link {
    display: inline-block;
    margin-top: 35px;
}

/* スクロール表示アニメーション */
.reveal-ready {
    opacity: 0;
    transform: translate(var(--reveal-x, 0), var(--reveal-y, 22px));
    transition: none;
}

[data-reveal="left"] {
    --reveal-x: -60px;
    --reveal-y: 0px;
}

[data-reveal="right"] {
    --reveal-x: 60px;
    --reveal-y: 0px;
}

.reveal-ready.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 2s ease, transform 2s ease;
}

/* 大画面（1440px以上） */
@media (min-width: 1440px) {
    .hero {
        max-height: 900px;
    }

    .hero>.photo {
        max-height: 900px;
    }
}

/* タブレット（900px以下） */
@media (max-width: 900px) {
    .container {
        width: calc(100% - 48px);
    }

    .header-inner {
        padding-inline: 20px;
    }

    .header-actions {
        gap: 12px;
    }

    .phone {
        font-size: 20px;
    }

    .header-actions .button {
        padding: 7px 12px;
        font-size: 15px;
    }

    .brand>strong {
        font-size: 26px;
    }

    .brand-note {
        font-size: 13px;
    }

    .brand-note b {
        font-size: 12px;
    }

    .news {
        padding: 95px 0;
    }

    .services {
        gap: 24px;
    }

    .intro {
        padding: 145px 0;
    }

    .feature {
        gap: 28px;
        margin-bottom: 65px;
    }

    .features {
        padding-bottom: 65px;
    }

    .feature h3 {
        font-size: 20px;
    }

    .feature p {
        font-size: 16px;
    }

    .section-space {
        padding-block: 95px;
    }

    .contact-banner {
        padding: 65px 24px;
    }

    .section-title>span {
        font-size: 59px;
    }

    .site-footer {
        margin-top: 100px;
    }

    .contact-main {
        padding-top: 50px;
    }

    .form-row>label {
        padding: 24px 12px;
    }

    .field {
        padding: 24px 16px;
    }
}

/* スマートフォン（600px以下） */
@media (max-width: 600px) {

    .news-archive,
    .news-detail {
        padding-top: 25px;
        padding-bottom: 60px;
    }

    .news-page-banner {
        padding: 20px 15px;
    }

    .news-section-heading {
        margin: 35px 0 40px;
    }

    .news-archive-card {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        gap: 18px;
        margin-bottom: 35px;
    }

    .news-article {
        width: 100%;
        margin-top: 35px;
    }

    .news-list-button {
        justify-content: center;
    }


    body {
        font-size: 17px;
    }

    .container {
        width: calc(100% - 40px);
    }

    .header-inner {
        padding: 10px 14px;
        min-height: 66px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .header-actions {
        margin-left: auto;
    }

    .brand-note {
        gap: 5px;
        font-size: 11px;
        letter-spacing: 0;
    }

    .brand-note b {
        font-size: 11px;
        padding: 3px 4px;
    }

    .brand>strong {
        font-size: 23px;
    }

    .header-actions {
        flex-direction: column;
        gap: 3px;
        align-items: flex-end;
    }

    .header-actions .button {
        font-size: 14px;
        padding: 7px 9px;
        gap: 4px;
    }

    .header-actions .icon {
        width: 16px;
        height: 16px;
    }

    .phone {
        font-size: 14px;
    }

    .phone .icon {
        width: 14px;
        height: 14px;
    }

    .custom-logo-link {
        max-width: 170px;
    }

    .hero>.photo {
        width: 100%;
    }

    .news {
        padding: 65px 0 70px;
    }

    .news h2 {
        font-size: 14px;
        padding: 3px 13px;
    }

    .news-link {
        grid-template-columns: 1fr 20px;
        gap: 2px 8px;
        padding: 15px 0;
    }

    .news-link time {
        grid-column: 1/-1;
        font-size: 14px;
    }

    .news-link-title {
        font-size: 16px;
    }

    .services {
        grid-template-columns: 1fr;
        gap: 36px;
        max-width: 440px;
    }

    .service-card h2 {
        margin-top: 14px;
        font-size: 19px;
    }

    .service-card p {
        font-size: 16px;
    }

    .intro {
        padding: 85px 0;
    }

    .intro h2 {
        font-size: 23px;
    }

    .intro p {
        font-size: 16px;
        line-height: 2;
    }

    .feature {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 50px;
    }

    .feature:nth-of-type(even)>.photo {
        order: 0;
    }

    .feature h3 {
        font-size: 20px;
    }

    .feature p {
        font-size: 16px;
        line-height: 1.9;
    }

    .features {
        padding-bottom: 25px;
    }

    .contact-banner {
        padding: 50px 20px;
    }

    .contact-banner h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .button {
        font-size: 17px;
    }

    .section-space {
        padding-block: 75px;
    }

    .section-title {
        font-size: 21px;
        margin-bottom: 35px;
    }

    .section-title>span {
        font-size: 51px;
    }

    .company-table {
        font-size: 15px;
    }

    .company-table>div {
        grid-template-columns: 95px 1fr;
    }

    .company-table dt {
        padding: 12px 8px;
    }

    .company-table dd {
        text-align: left;
        padding: 12px;
    }

    .access iframe {
        height: 280px;
    }

    .map-placeholder {
        height: 250px;
    }

    .faq {
        padding-bottom: 85px;
    }

    .faq summary {
        padding: 20px 0;
        font-size: 16px;
    }

    .answer {
        font-size: 16px;
        padding-left: 0;
    }

    .site-footer {
        margin-top: 75px;
        padding: 34px 20px 45px;
    }

    .site-footer .brand>strong {
        font-size: 27px;
    }

    .site-footer .brand-note {
        font-size: 12px;
        gap: 8px;
    }

    .site-footer .brand-note b {
        font-size: 12px;
    }

    .site-footer address {
        font-size: 15px;
        line-height: 1.9;
    }

    .back-top {
        right: 12px;
        bottom: 12px;
        width: 38px;
        height: 38px;
    }

    .contact-main {
        padding-top: 40px;
    }

    .contact-title {
        font-size: 32px;
        gap: 12px;
        margin-bottom: 28px;
    }

    .contact-title>span {
        width: 54px;
        height: 54px;
    }

    .contact-title .icon {
        width: 30px;
        height: 30px;
    }

    .contact-intro {
        font-size: 15px;
        margin-bottom: 35px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-row>label {
        border: 0;
        text-align: left;
        padding: 16px 15px 0;
    }

    .field {
        padding: 12px 15px 20px;
    }

    .field textarea {
        min-height: 250px;
    }

    .badge {
        font-size: 15px;
    }

    .consent {
        font-size: 15px;
    }

    .form-actions .button {
        min-width: 125px;
    }

    .notice {
        padding: 20px;
    }

    .notice h2 {
        font-size: 22px;
    }

    .article-main {
        padding-top: 50px;
    }

    .article-main h1 {
        font-size: 28px;
    }

    .social-links {
        gap: 24px;
        margin-top: 36px;
    }

    .social-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }
}

/* スマートフォンのヘッダー：ロゴ＋アイコン付きの連絡ボタン */
@media (max-width: 767px) {
    .site-header .header-inner {
        flex-wrap: nowrap;
        min-height: 59px;
        padding: 7px 10px;
        gap: 10px;
    }

    .site-header .header-actions {
        display: none;
    }

    .site-header .brand,
    .site-header .custom-logo-link {
        flex: 0 1 auto;
        min-width: 0;
        max-width: calc(100% - 140px);
    }

    .site-header .brand-note {
        gap: 5px;
        font-size: clamp(8px, 2.2vw, 11px);
        letter-spacing: 0;
    }

    .site-header .brand-note b {
        flex-shrink: 0;
        padding: 2px 4px;
        font-size: clamp(8px, 2vw, 10px);
    }

    .site-header .brand>strong {
        margin-top: 2px;
        font-size: clamp(16px, 4.5vw, 22px);
        letter-spacing: 0;
        overflow-wrap: anywhere;
    }

    .site-header .custom-logo {
        width: 100%;
        height: auto;
        max-height: 44px;
        object-fit: contain;
        object-position: left center;
    }

    .mobile-header-actions {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
        gap: 6px;
        margin-left: auto;
    }

    .mobile-header-actions a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 44px;
        gap: 3px;
        padding: 4px 3px;
        border-radius: 5px;
        color: #fff;
        font-size: 10px;
        font-weight: 600;
        line-height: 1.2;
        white-space: nowrap;
    }

    .mobile-header-contact {
        width: 70px;
        background: var(--blue);
    }

    .mobile-header-phone {
        width: 54px;
        background: #e87312;
    }

    .mobile-header-actions .icon {
        width: 20px;
        height: 20px;
    }

    .mobile-header-phone .icon {
        fill: currentColor;
        stroke-width: 1;
    }

    .mobile-header-actions a:hover {
        opacity: .8;
    }
}

/* アニメーションを減らす設定 */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *:before,
    *:after {
        transition: none !important;
        animation: none !important;
    }

    .reveal-ready {
        opacity: 1;
        transform: none;
    }
}

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

.contact-form .field-help {
    display: block;
    margin-top: 8px;
}

.contact-form .wpcf7-list-item {
    margin: 0;
}

.contact-form .consent label {
    display: flex;
    align-items: center;
    gap: 9px;
}

.contact-form .form-actions {
    position: relative;
}

.contact-form .wpcf7-spinner {
    position: absolute;
    top: 100%;
    margin-top: 8px;
}

.contact-form .wpcf7-not-valid-tip {
    margin-top: 6px;
    font-size: 0.9em;
}

.contact-form .button:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* 山本機工：参考デザイン。既存の投稿・お問い合わせ画面は共通スタイルを継承。 */
:root { --width: 1100px; --light-blue: #b0dce9; }
body { background: #edffff; font-size: 16px; }
.hero { /* max-width: 1440px; */ padding: 96px 20px 0; }
.hero > .photo { height: auto; max-height: none; object-fit: contain; }
.noimage { display: grid; place-items: center; background: #f4f5f5; color: #8b969b; border: 1px solid #d9e0e2; font: 16px Arial, sans-serif; letter-spacing: .08em; }
.photo.noimage { aspect-ratio: 5 / 3; }
.news { padding-top: 70px; padding-bottom: 60px; }
.news h2 { font-size: 14px; padding: 5px 18px; }
.empty-news { margin: 0; padding: 0; border: 0; font-size: 15px; }
.news-list-button { margin-top: 0; }
.news-list-button .button { background: none; color: #39a9e4; border: 0; font-size: 14px; padding: 0; }
.services { gap: 32px; }
.service-card { text-align: center; }
.service-card .photo, .feature .photo { padding: 18px; border: 1px solid #dce4e4; background: #fff; box-shadow: 0 0 16px #314c5010; }
.service-card .photo { aspect-ratio: 1.37; object-fit: cover; }
.service-card p { min-height: 75px; margin-top: 24px; font-size: 15px; line-height: 1.5; }
.intro { padding: 85px 0 90px; }
.intro h2 { margin: 0 0 30px; padding: 0 14px 5px; font-size: 24px; letter-spacing: 0; }
.intro p { font-size: 15px; line-height: 1.6; }
.feature { gap: 30px; margin-bottom: 65px; }
.feature h3 { font-size: 20px; line-height: 1.4; margin-bottom: 16px; padding-left: 5px; border-left-color: var(--blue); }
.feature p { font-size: 15px; line-height: 1.6; }
.feature mark { background: #f9ff58; color: inherit; }
.feature .mark-green { background: linear-gradient(transparent 10%, #66FFCC 60%); }
.feature .mark-coral { background: linear-gradient(transparent 30%, #ff7f7f 60%); }
.features { padding-bottom: 5px; }
.contact-banner { padding: 48px 24px; }
.contact-banner h2 { font-size: 27px; margin-bottom: 24px; letter-spacing: 0; }
.contact-banner h2::before { content: '\\ '; }
.contact-banner h2::after { content: ' /'; }
.contact-banner .button { border-radius: 0; font-size: 20px; min-width: 285px; }
.company.section-space { padding-top: 12px; padding-bottom: 12px; }
.section-title { font-size: 28px; margin: 0 0 30px; line-height: 1; }
.section-title > span { font-size: 76px; line-height: .95; }
.section-title::after { content: ''; display: block; width: 1px; height: 26px; background: #66c6e8; transform: rotate(30deg); margin: 15px auto 0; }
.company-table { max-width: 715px; font-size: 15px; line-height: 1.5; }
.company-table > div { grid-template-columns: 150px 1fr; min-height: 44px; }
.company-table dt { display: grid; place-items: center; padding: 9px 12px; }
.company-table dd { padding: 9px 12px; }
.access iframe { height: 450px; margin-bottom: 48px; }
.faq.section-space { padding-top: 15px; padding-bottom: 48px; }
.faq details { background: #fff; }
.faq summary { font-size: 15px; padding: 15px 14px; }
.faq .answer { font-size: 15px; }
.faq .answer a { text-decoration: underline; color: var(--blue); }
.site-footer { margin-top: 48px; padding: 95px 24px 65px; background: transparent; }
.factory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; max-width: 1010px; }
.factory .photo { border: 8px solid #fff; box-shadow: 0 0 0 1px #dce4e4; aspect-ratio: 5 / 3; object-fit: cover; }
.factory h2 { font-size: 16px; font-weight: 400; margin: 24px 0 0; }
.factory address { font-size: 15px; }
.footer-brand { margin: 100px 0 0; }
.site-footer .custom-logo-link { width: 260px; }
.floating-top { position: fixed; right: 30px; bottom: 30px; width: 40px; height: 40px; background: var(--blue); color: white; display: grid; place-items: center; z-index: 20; }
/* @media (min-width: 1440px) { .hero { max-width: 1440px; } } */
@media (max-width: 900px) {
    .hero { padding-top: 48px; }
    .feature h3 { font-size: 17px; }
    .feature { gap: 24px; }
    .intro p br { display: none; }
    .factory-grid { width: 100%; gap: 20px; }
    .factory address { font-size: 12px; }
}
@media (max-width: 600px) {
    .container { width: calc(100% - 36px); }
    .hero { padding: 28px 8px 0; }
    .news { padding: 40px 0; }
    .news-list-button { margin-top: 12px; }
    .services { grid-template-columns: 1fr; gap: 30px; max-width: 360px; }
    .service-card p { min-height: 0; margin-top: 16px; }
    .intro { padding: 55px 0; }
    .intro h2 { font-size: 22px; }
    .intro p { text-align: left; }
    .feature { grid-template-columns: 1fr; gap: 22px; margin-bottom: 42px; }
    .feature:nth-of-type(even) > .photo { order: 0; }
    .feature h3 { font-size: 17px; }
    .contact-banner { padding: 36px 16px; }
    .contact-banner h2 { font-size: 19px; }
    .contact-banner .button { min-width: 250px; font-size: 18px; }
    .company.section-space { padding-top: 24px; }
    .section-title { font-size: 23px; }
    .section-title > span { font-size: 56px; }
    .company-table { font-size: 12px; }
    .company-table > div { grid-template-columns: 85px 1fr; }
    .company-table dt, .company-table dd { padding: 9px 6px; }
    .access iframe { height: 320px; margin-bottom: 32px; }
    .faq summary { font-size: 13px; }
    .site-footer { padding: 48px 18px 40px; }
    .factory-grid { grid-template-columns: 1fr; max-width: 360px; gap: 36px; }
    .factory address { font-size: 14px; }
    .footer-brand { margin-top: 55px; }
    .floating-top { right: 12px; bottom: 12px; }
}

/* 累計閲覧数：プラグイン有効時にロゴの上へ表示 */
.pageview-counter { margin: 60px auto 0; text-align: center; color: #111; font: 900 19px/1.2 "Courier New", monospace; letter-spacing: -1px; }
.pageview-counter + .footer-brand { margin-top: 32px; }
