/*
Theme Name: branding_Thema
Author: Branding
Description: 余白と写真を活かした企業向けテーマ。TOP・事業概要・会社概要・採用・お問い合わせ・NEWSに対応。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: branding-thema
*/

/* 基本設定・共通スタイル */
:root {
    --ink: #535353;
    --accent: #819ac0;
    --dark: #2d2e2b;
    --cream: #f5f3e9;
    --line: #e4e4e4;
    --radius: 22px;
    --gutter: clamp(20px, 2.4vw, 40px);
    --header-height: 100px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 46px);
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo,
        sans-serif;
    font-size: clamp(16px, 1.15vw, 18px);
    line-height: 1.85;
    letter-spacing: 0.045em;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s, background 0.25s, opacity 0.25s;
}

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

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

button {
    cursor: pointer;
}

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

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

h2 {
    font-size: clamp(24px, 2.55vw, 40px);
    line-height: 1.5;
    letter-spacing: 0.06em;
}

p+p {
    margin-top: 1em;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -100px;
    z-index: 200;
    padding: 12px;
    background: #fff;
}

.skip-link:focus {
    top: 10px;
}

/* ヘッダー・ロゴ */
.site-header {
    height: var(--header-height);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 24px 20px 24px;
    position: fixed;
    inset: 0 0 auto;
    z-index: 30;
    background: transparent;
    transition: backdrop-filter 0.32s, -webkit-backdrop-filter 0.32s;
}

.site-header.is-scrolled {
    align-items: center;
    background: #f4f4ec66;
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
}

.site-header:not(.over-hero)~main {
    padding-top: var(--header-height);
}

.site-logo {
    width: clamp(155px, 16vw, 225px);
    flex-shrink: 0;
    line-height: 1.2;
}

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

.site-logo a {
    display: block;
}

.logo-small {
    display: block;
    font-size: 10px;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.site-logo strong {
    display: block;
    background: #19345e;
    color: white;
    font-family: serif;
    font-style: italic;
    letter-spacing: 0.09em;
    font-size: clamp(15px, 1.65vw, 23px);
    text-align: center;
    white-space: nowrap;
}

.logo-note {
    display: block;
    text-align: center;
    font-size: 8px;
    letter-spacing: 0.02em;
}

/* ナビゲーション・開閉メニュー */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-top: 4px;
    font-size: 15px;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.desktop-nav>a:last-child {
    display: none;
}

.desktop-nav span {
    display: none;
}

.desktop-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.desktop-nav a:hover {
    opacity: 0.55;
}

.menu-toggle {
    position: fixed;
    right: 0;
    top: 0;
    width: 62px;
    height: 64px;
    background: #50504f;
    color: white;
    border: 0;
    border-radius: 0 0 0 13px;
    z-index: 40;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.menu-toggle span {
    display: block;
    width: 34px;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.35s, opacity 0.2s;
}

.menu-toggle[aria-expanded='true'] span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded='true'] span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

.menu-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    margin: 0;
    padding: 50px 0 30px;
    border: 0;
    width: min(300px, 80vw);
    height: 100%;
    max-height: none;
    max-width: none;
    background: #50504f;
    color: #fff;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    overflow: auto;
}

.menu-drawer.is-open {
    transform: translateX(0);
}

.menu-drawer::backdrop {
    background: rgba(0, 0, 0, 0.2);
}

.menu-drawer nav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 30px;
    font-size: clamp(15px, 2.5vw, 18px);
    letter-spacing: 0.1em;
}

.menu-drawer nav a:hover,
.menu-drawer nav a[aria-current] {
    background: #5c5c5c;
}

.menu-drawer nav span {
    font-size: 32px;
}

.menu-drawer-actions {
    display: grid;
    gap: 14px;
    padding: 24px 20px 0;
}

.menu-drawer-actions .pill {
    max-width: none;
    justify-content: center;
    text-align: center;
    font-size: 15px;
    letter-spacing: 0;
}

.menu-drawer-actions .menu-phone {
    gap: 8px;
    white-space: nowrap;
}

.menu-phone img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.menu-open .menu-toggle {
    z-index: 100;
}

.menu-drawer .drawer-close {
    position: absolute;
    right: 0;
    top: 0;
}

/* TOP：メインビジュアル */
.hero {
    height: min(64.3vw, 880px);
    min-height: 540px;
    position: relative;
    overflow: hidden;
    background: #c5cbcc;
}

.hero-photo {
    position: absolute;
    inset: 0;
    transform-origin: center top;
    animation: hero-in 1.6s ease-out both;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero:after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(54, 60, 63, 0.29);
}

.hero-copy {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    color: white;
    padding: 85px var(--gutter) 20px;
}

.hero h1 {
    font-family: "Sawarabi Mincho", serif;
    font-size: clamp(30px, 4.2vw, 62px);
    line-height: 1.45;
    letter-spacing: 0.09em;
    font-weight: 700;
    animation: copy-in 1s 0.15s both;
}

.hero-copy p {
    font-size: clamp(10px, 1.2vw, 16px);
    letter-spacing: 0.13em;
    margin-top: 22px;
    font-weight: 600;
    animation: copy-in 1s 0.35s both;
}

/* キャッチコピー・サービス紹介 */
.home-intro {
    padding: clamp(72px, 10.5vw, 210px) 5% clamp(80px, 13.5vw, 270px);
    background: #fff;
    color: #505050;
    text-align: center;
}

.home-intro h2,
.home-intro p {
    margin: 0;
    font-size: clamp(18px, 2.4vw, 48px);
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: 0.04em;
    overflow-wrap: anywhere;
}

.intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5%;
    width: 76%;
    margin: 0 auto;
    padding: 100px 0 135px;
    align-items: start;
}

.intro h2 {
    line-height: 1.9;
}

.intro p {
    font-size: clamp(13px, 1.2vw, 17px);
    padding-top: 10px;
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0;
    margin-bottom: 140px;
}

.service-row.is-reversed .service-photo {
    order: 2;
}

.service-row.is-reversed .service-copy {
    order: 1;
}

.service-photo {
    border-radius: 0 var(--radius) var(--radius) 0;
    overflow: hidden;
    aspect-ratio: 1.5;
}

.service-row.is-reversed .service-photo {
    border-radius: var(--radius) 0 0 var(--radius);
}

.service-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s;
}

.service-photo:hover img {
    transform: scale(1.025);
}

.service-copy {
    padding: 20px var(--gutter);
}

.eyebrow {
    color: var(--accent);
    font-weight: 700;
    line-height: 1.4;
    font-size: clamp(13px, 1.2vw, 18px);
    letter-spacing: 0.02em;
}

.service-copy>p:last-child {
    margin-top: 18px;
    font-size: clamp(15px, 1.2vw, 18px);
}

.service-copy>.eyebrow {
    margin-top: 0;
}

.top-services {
    padding-top: 65px;
}

.top-services .service-row {
    margin-bottom: 140px;
}

.top-services .service-row:last-child {
    margin-bottom: 180px;
}

/* TOP：新着情報 */
.home-news {
    background: var(--cream);
    padding: 32px 4% 35px;
    border-radius: var(--radius) var(--radius) 0 0;
}

.section-heading h2,
.page-heading h1 {
    font-size: clamp(45px, 5vw, 76px);
    font-weight: 400;
    letter-spacing: 0.12em;
    line-height: 1.15;
    font-family: "Josefin Sans", sans-serif;
}

.section-heading p,
.page-heading p {
    letter-spacing: 0.25em;
    font-size: clamp(12px, 1.2vw, 18px);
}

.home-news-list {
    padding: 15px 3% 25px;
}

.home-news-list article {
    padding: 14px 0;
    border-bottom: 1px solid #e9e7dd;
}

.home-news-list time {
    display: block;
}

.home-news-list a {
    color: #1685ee;
    display: inline-block;
    font-weight: 600;
    font-size: clamp(16px, 1.2vw, 18px);
}

.home-news-list a:hover {
    text-decoration: underline;
}

.home-news .align-right {
    display: flex;
    justify-content: flex-end;
}

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

.pill {
    width: 100%;
    max-width: 200px;
    height: 60px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgb(80, 80, 80);
    background-color: rgb(255, 255, 255);
    padding: 0px 20px;
    text-decoration: none;
    outline: none;
    border-radius: 9999px;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(80, 80, 80);
    border-image: none;
    transition: 0.3s;
}

.pill span {
    position: relative;
    display: block;
    width: 20px;
    height: 1px;
    background-color: rgb(80, 80, 80);
    border-radius: 10px;
    transition: 0.3s;
}

.pill:hover {
    background: #eee;
}

.pill:hover span {
    transform: translateX(5px);
}

.pill.dark {
    background: #50504f;
    border-color: #50504f;
    color: #fff;
    min-width: 200px;
}

.pill.dark:hover {
    background: #333;
}

.pill span::before,
.pill span::after {
    content: "";
    position: absolute;
    right: -3px;
    display: block;
    width: 10px;
    height: 1px;
    border-radius: 10px;
    background-color: #505050;
    transition: all 0.3s ease;
}

.pill span::before {
    top: 3px;
    transform: rotate(-45deg);
}

.pill span::after {
    bottom: 3px;
    transform: rotate(45deg);
}

/* 下層ページ：タイトル・メイン写真 */
.page-heading {
    padding: 55px var(--gutter) 70px;
}

.page-banner {
    width: 95%;
    aspect-ratio: 3.8;
    overflow: hidden;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.page-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-services .service-row {
    margin-bottom: 140px;
}

.business-services .service-copy h2 {
    font-size: clamp(28px, 2.5vw, 36px);
}

/* 会社概要・アクセス */
.greeting {
    margin-top: 115px;
    margin-bottom: 180px;
}

.greeting .service-copy {
    align-self: start;
}

.greeting .service-copy h2 {
    font-size: 30px;
}

.company-info {
    display: grid;
    grid-template-columns: 25% 1fr;
    align-items: center;
    padding: 0 5% 0 var(--gutter);
    gap: 2%;
    margin-bottom: 220px;
}

.info-table {
    margin: 0;
}

.info-table>div {
    display: grid;
    grid-template-columns: 22% 1fr;
    padding: 22px 20px;
    border-bottom: 1px solid var(--line);
    gap: 24px;
    font-size: 15px;
}

.info-table dt {
    font-weight: 400;
    letter-spacing: 0.15em;
}

.info-table dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.access {
    display: grid;
    grid-template-columns: 32% 1fr;
    gap: 2%;
    align-items: center;
    margin: 0 1% 90px var(--gutter);
}

.access p:not(.eyebrow) {
    padding: 24px 20px 0;
}

.access iframe {
    width: 100%;
    aspect-ratio: 2.1;
    border: 0;
    background: #f1f1f1;
}

.content-width {
    width: 82%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 採用情報 */
.recruit-details {
    padding-bottom: 140px;
}

.recruit-details .info-table>div {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Contact Form 7 inserts paragraph wrappers around labels and controls. */
.contact-form .form-row p,
.contact-form .form-actions p {
    margin: 0;
}

.contact-form .form-row>div {
    min-width: 0;
}

.contact-form .form-row>p>label {
    display: block;
}

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

.contact-form .form-actions .wpcf7-spinner {
    position: absolute;
    top: 50%;
    right: 0;
    margin: -12px 8px 0 0;
}

.contact-form.submitting .wpcf7-submit {
    opacity: 0.6;
    cursor: wait;
}

/* お問い合わせフォーム */
.contact-wrap {
    padding: 65px 0 100px;
    max-width: 1100px;
}

.contact-intro {
    max-width: 850px;
    margin: 0 auto 65px;
    line-height: 1.9;
}

.form-row {
    display: grid;
    grid-template-columns: 23% 1fr;
    gap: 40px;
    margin-bottom: 42px;
    align-items: start;
}

.form-row>label,
.form-row>p>label {
    text-align: right;
    line-height: 42px;
    white-space: nowrap;
    letter-spacing: 0;
    font-size: 16px;
}

.badge {
    display: inline-block;
    background: #c4c4c4;
    color: white;
    border-radius: 5px;
    padding: 1px 5px;
    line-height: 1.6;
}

.badge.required {
    background: #c90000;
}

.form-row input,
.form-row textarea,
.form-row select {
    width: 100%;
    border: 1px solid #d2d5d9;
    border-radius: 5px;
    background: white;
    min-height: 43px;
    padding: 8px 14px;
    letter-spacing: 0;
}

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

.form-actions {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 50px;
}

.form-actions .pill {
    justify-content: center;
    text-align: center;
}

.honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.confirmed-value {
    padding: 8px 0;
    white-space: normal;
    overflow-wrap: anywhere;
    min-height: 43px;
}

.form-errors {
    background: #fff5f5;
    border-left: 3px solid #b90000;
    padding: 20px;
    margin-bottom: 30px;
    color: #a70000;
}

.confirm-heading {
    margin-bottom: 20px;
}

.confirm-heading+p {
    margin-bottom: 40px;
}

.form-notice {
    padding: 40px 0;
}

.form-notice .pill {
    margin-top: 25px;
}

/* NEWS一覧・詳細 */
.news-list {
    padding: 65px 0 80px;
}

.news-card {
    display: grid;
    grid-template-columns: 30% 1fr;
    gap: 20px;
    padding: 20px 0 35px;
}

.news-photo {
    aspect-ratio: 1.5;
    overflow: hidden;
}

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

.no-image {
    background: var(--cream);
    height: 100%;
    display: grid;
    place-items: center;
    letter-spacing: 0.15em;
    font-size: 30px;
    color: #959488;
}

.news-card time {
    display: block;
    margin: 20px 0 10px;
}

.news-card h2 {
    font-size: 26px;
    font-weight: 400;
    color: #1685ee;
    margin-bottom: 22px;
}

.news-card h2 a:hover {
    text-decoration: underline;
}

.excerpt {
    overflow-wrap: anywhere;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #ddd;
}

.page-numbers.current {
    background: #292421;
    color: white;
    border-color: #292421;
}

.single-news {
    padding: 10px 0 75px;
}

.single-news>h2 {
    font-size: clamp(30px, 3.2vw, 48px);
    font-weight: 400;
    margin: 0 0 22px;
}

.single-news>time {
    display: block;
    margin-bottom: 50px;
}

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

.entry-content p {
    margin: 1em 0;
}

.entry-content a {
    color: #1685ee;
    text-decoration: underline;
}

.entry-content h2,
.entry-content h3 {
    margin: 1em 0 0.5em;
}

.entry-content .article-thumbnail {
    max-width: 80%;
    height: auto;
    margin-bottom: 20px;
}

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

.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;
}

.single-news .align-right {
    margin-top: 55px;
}

.editor-content {
    margin-top: 45px;
    margin-bottom: 65px;
}

.editor-content:empty {
    display: none;
}

.generic-page {
    padding-bottom: 100px;
    min-height: 40vh;
}

/* フッター */
.site-footer {
    background: var(--dark);
    color: #fff;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.footer-top section {
    padding: 40px 6% 65px;
    min-height: 285px;
}

.footer-top section+section {
    border-left: 1px solid #62625e;
}

.footer-top h2 {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 400;
    font-size: clamp(38px, 4.3vw, 64px);
    color: #8b8c81;
    letter-spacing: 0.12em;
    line-height: 1.2;
}

.footer-caption {
    color: #99998e;
    letter-spacing: 0.2em;
}

.footer-top .pill {
    margin-top: 30px;
}

.social-links {
    display: flex;
    gap: 22px;
    margin-top: 52px;
}

.social-links>a,
.social-links>span {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: white;
    padding: 3px;
    color: var(--dark);
}

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

.social-links svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.footer-address {
    padding: 34px var(--gutter);
    font-size: 13px;
}

/* スクロール表示アニメーション */
.reveal {
    opacity: 1;
    transform: none;
}

.motion-ready .reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.65, 0.3, 1);
}

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

/* Services and greeting: directional photo reveal and staggered copy. */
.greeting-pending:not(.motion-ready) .service-row.greeting {
    visibility: hidden;
}

.greeting-pending:not(.motion-ready) .service-row.greeting .service-copy>* {
    opacity: 0;
    transform: translateY(48px);
}

@media print {
    .greeting-pending:not(.motion-ready) .service-row.greeting {
        visibility: visible;
    }

    .greeting-pending:not(.motion-ready) .service-row.greeting .service-copy>* {
        opacity: 1;
        transform: none;
    }
}

.motion-ready :is(.top-services .service-row, .business-services .service-row, .service-row.greeting).reveal {
    opacity: 1;
    transform: none;
    transition: none;
    --service-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --photo-mask: inset(0 100% 0 0);
    --photo-shift: -7%;
}

.motion-ready :is(.top-services .service-row, .business-services .service-row, .service-row.greeting).is-reversed {
    --photo-mask: inset(0 0 0 100%);
    --photo-shift: 7%;
}

.motion-ready :is(.top-services .service-row, .business-services .service-row, .service-row.greeting).reveal .service-photo {
    /* Keep the observed frame unclipped so IntersectionObserver can detect it. */
    transform: translateY(48px);
    transition: transform 1.65s var(--service-ease);
}

.motion-ready :is(.top-services .service-row, .business-services .service-row, .service-row.greeting).reveal .service-photo img {
    clip-path: var(--photo-mask);
    transform: translateX(var(--photo-shift)) scale(1.2);
    transition: clip-path 1.45s var(--service-ease),
        transform 2s var(--service-ease);
}

.motion-ready :is(.top-services .service-row, .business-services .service-row, .service-row.greeting).reveal .service-photo.is-service-visible {
    transform: none;
}

.motion-ready :is(.top-services .service-row, .business-services .service-row, .service-row.greeting).reveal .service-photo.is-service-visible img {
    clip-path: inset(0 0 0 0);
    transform: none;
}

.motion-ready :is(.top-services .service-row, .business-services .service-row, .service-row.greeting).reveal .service-copy>* {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 0.95s var(--service-ease),
        transform 1.25s var(--service-ease);
    transition-delay: 0.22s;
}

.motion-ready :is(.top-services .service-row, .business-services .service-row, .service-row.greeting).reveal .service-copy>h2 {
    transition-delay: 0.34s;
}

.motion-ready :is(.top-services .service-row, .business-services .service-row, .service-row.greeting).reveal .service-copy>p:not(.eyebrow) {
    transition-delay: 0.48s;
}

.motion-ready :is(.top-services .service-row, .business-services .service-row, .service-row.greeting).reveal .service-copy>.service-button {
    transition: opacity 0.95s var(--service-ease) 0.62s,
        transform 1.25s var(--service-ease) 0.62s,
        background-color 0.3s, color 0.3s, border-color 0.3s;
}

.motion-ready :is(.top-services .service-row, .business-services .service-row, .service-row.greeting).reveal .service-copy.is-service-visible>*,
.motion-ready :is(.top-services .service-row, .business-services .service-row, .service-row.greeting).reveal .service-copy:focus-within>* {
    opacity: 1;
    transform: none;
}

@media (max-width: 767px) {
    .motion-ready :is(.top-services .service-row, .business-services .service-row, .service-row.greeting).reveal .service-photo {
        transform: translateY(30px);
    }

    .motion-ready :is(.top-services .service-row, .business-services .service-row, .service-row.greeting).reveal .service-copy>* {
        transform: translateY(32px);
    }

    .motion-ready :is(.top-services .service-row, .business-services .service-row, .service-row.greeting).reveal .service-photo.is-service-visible,
    .motion-ready :is(.top-services .service-row, .business-services .service-row, .service-row.greeting).reveal .service-copy.is-service-visible>*,
    .motion-ready :is(.top-services .service-row, .business-services .service-row, .service-row.greeting).reveal .service-copy:focus-within>* {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce),
print {

    .motion-ready :is(.top-services .service-row, .business-services .service-row, .service-row.greeting).reveal .service-photo,
    .motion-ready :is(.top-services .service-row, .business-services .service-row, .service-row.greeting).reveal .service-photo img,
    .motion-ready :is(.top-services .service-row, .business-services .service-row, .service-row.greeting).reveal .service-copy>* {
        clip-path: none;
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.admin-bar .site-header,
.admin-bar .menu-toggle {
    top: 32px;
}

.admin-bar .menu-drawer {
    top: 32px;
    height: calc(100% - 32px);
}

@keyframes hero-in {
    from {
        transform: scale(1.045);
        opacity: 0.6;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes copy-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 大画面（1600px以上） */
@media (min-width: 1600px) {
    .service-row {
        margin-bottom: 180px;
    }

    .top-services .service-row {
        margin-bottom: 180px;
    }

    .intro {
        padding-top: 125px;
        padding-bottom: 165px;
    }
}

/* タブレット（1000px以下） */
@media (max-width: 1000px) {
    .desktop-nav {
        gap: 20px;
        font-size: 15px;
    }

    .site-header {
        padding-left: 18px;
    }

    .info-table>div {
        font-size: 15px;
        gap: 18px;
    }

    .service-row,
    .business-services .service-row {
        margin-bottom: 100px;
    }

    .top-services .service-row {
        margin-bottom: 120px;
    }

    .company-info {
        margin-bottom: 150px;
    }

    .form-row {
        gap: 25px;
        grid-template-columns: 24% 1fr;
    }

    .form-row>label,
    .form-row>p>label {
        font-size: 14px;
    }

    .social-links {
        gap: 16px;
    }

    .hero {
        min-height: 480px;
    }
}

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

    .admin-bar .site-header,
    .admin-bar .menu-toggle {
        top: 46px;
    }
}

@media (max-width: 600px) {
    #wpadminbar {
        position: fixed;
    }
}

@media (max-width: 767px) {
    :root {
        --radius: 15px;
        --header-height: 80px;
    }

    .site-header {
        padding: 18px 70px 10px 18px;
    }

    .site-logo {
        width: 170px;
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
        width: 54px;
        height: 56px;
    }

    .menu-toggle span {
        width: 29px;
    }

    .hero {
        height: 88svh;
        min-height: 570px;
        max-height: 820px;
    }

    .hero-photo img {
        object-position: 57% top;
    }

    .hero:after {
        background: rgba(35, 44, 48, 0.35);
    }

    .hero-copy {
        padding: 100px 23px 45px;
        justify-content: flex-end;
    }

    .hero h1 {
        font-size: clamp(26px, 6.5vw, 42px);
        line-height: 1.65;
        letter-spacing: 0.06em;
    }

    .hero-copy p {
        font-size: 12px;
        line-height: 2;
        margin-top: 25px;
        max-width: 32em;
    }

    .intro {
        width: 86%;
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 65px 0 75px;
    }

    .intro h2 {
        font-size: 26px;
        line-height: 1.8;
    }

    .intro p {
        font-size: 14px;
        padding: 0;
    }

    .top-services {
        padding-top: 0;
    }

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

    .service-row.is-reversed .service-photo {
        order: 0;
        margin-left: auto;
    }

    .service-row.is-reversed .service-copy {
        order: 0;
    }

    .service-photo {
        width: 92%;
        aspect-ratio: 1.5;
    }

    .service-copy {
        padding: 28px 7% 0;
    }

    .service-copy h2 {
        font-size: 25px;
    }

    .service-copy>p:last-child {
        font-size: 16px;
        margin-top: 15px;
    }

    .service-copy>.eyebrow {
        margin-top: 0;
    }

    .service-row,
    .business-services .service-row,
    .top-services .service-row {
        margin-bottom: 65px;
    }

    .top-services .service-row:last-child {
        margin-bottom: 85px;
    }

    .home-news {
        padding: 30px 6%;
    }

    .home-news-list {
        padding: 15px 0 10px;
    }

    .home-news-list article {
        padding: 16px 0;
    }

    .home-news .pill {
        font-size: 13px;
        min-height: 45px;
    }

    .page-heading {
        padding: 36px 4% 40px;
    }

    .page-heading h1 {
        font-size: 45px;
    }

    .page-heading p {
        font-size: 12px;
    }

    .page-banner {
        width: 94%;
        aspect-ratio: 2.25;
    }

    .greeting {
        margin-top: 65px;
        margin-bottom: 75px;
    }

    .greeting .service-copy h2 {
        font-size: 25px;
    }

    .company-info {
        grid-template-columns: 1fr;
        padding: 0 6%;
        gap: 25px;
        margin-bottom: 75px;
    }

    .info-table>div {
        grid-template-columns: 28% 1fr;
        padding: 18px 0;
        gap: 14px;
        font-size: 13px;
    }

    .info-table dt {
        letter-spacing: 0.03em;
    }

    .access {
        grid-template-columns: 1fr;
        margin: 0 0 65px;
        gap: 25px;
    }

    .access>div {
        padding: 0 6%;
    }

    .access p:not(.eyebrow) {
        padding: 15px 0 0;
    }

    .access iframe {
        width: 94%;
        margin-left: auto;
        aspect-ratio: 1.35;
    }

    .content-width {
        width: 88%;
    }

    .recruit-details {
        padding-bottom: 75px;
    }

    .contact-wrap {
        padding: 40px 0 70px;
    }

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

    .contact-intro br {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 24px;
    }

    .form-row>label,
    .form-row>p>label {
        text-align: left;
        line-height: 1.8;
        font-size: 14px;
    }

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

    .form-row textarea {
        min-height: 200px;
    }

    .form-actions {
        margin-top: 32px;
    }

    .form-actions .pill {
        min-width: 135px;
    }

    .news-list {
        padding: 35px 0 60px;
    }

    .news-card {
        grid-template-columns: 1fr;
        gap: 16px;
        border-bottom: 1px solid var(--line);
        padding: 20px 0 30px;
    }

    .news-photo {
        width: 100%;
    }

    .news-card time {
        margin: 0 0 6px;
        font-size: 13px;
    }

    .news-card h2 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .excerpt {
        font-size: 14px;
    }

    .single-news {
        padding-bottom: 65px;
    }

    .single-news>h2 {
        font-size: 28px;
    }

    .single-news>time {
        margin-bottom: 30px;
        font-size: 13px;
    }

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

    .single-news .align-right {
        margin-top: 35px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-top section {
        padding: 35px 7%;
        min-height: 0;
    }

    .footer-top section+section {
        border-left: 0;
        border-top: 1px solid #62625e;
    }

    .footer-top h2 {
        font-size: 38px;
    }

    .footer-caption {
        font-size: 12px;
    }

    .footer-top .pill {
        margin-top: 22px;
        font-size: 14px;
    }

    .social-links {
        margin-top: 28px;
        gap: 20px;
    }

    .social-links>a,
    .social-links>span {
        width: 36px;
        height: 36px;
    }

    .footer-address {
        padding: 25px 7%;
        font-size: 11px;
        line-height: 2;
    }

    .admin-bar .menu-toggle {
        top: 46px;
    }

    .admin-bar .menu-drawer {
        top: 46px;
        height: calc(100% - 46px);
    }
}

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

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

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

/* アイキャッチ下の見出し：実際の表示行ごとに帯が右へ抜ける。 */

.intro [data-line-reveal] {
    position: relative;
}

.motion-ready .intro .line-wipe {
    position: absolute;
    display: block;
    pointer-events: none;
    background: #333;
    transform: scaleX(1);
    transform-origin: right;
    transition: transform 0.85s cubic-bezier(0.75, 0, 0.25, 1);
    transition-delay: calc(0.2s + var(--line-index, 0) * 0.2s);
}

.motion-ready .intro .is-lines-visible .line-wipe {
    transform: scaleX(0);
}

@media (prefers-reduced-motion: reduce) {
    .motion-ready .intro .line-wipe {
        display: none;
    }
}

/* 宮地道場：既存のサービスレイアウトで下層ページを表示 */
.dojo-page-services {
    padding-top: clamp(65px, 8vw, 115px);
}

.service-photo.dojo-photo-natural {
    aspect-ratio: auto;
}

.service-photo.dojo-photo-natural img {
    height: auto;
}

.dojo-practice-notice {
    padding-top: 30px;
}

.dojo-practice-notice a,
.dojo-text-link {
    color: #1685ee;
    text-decoration: none;
}

#dojo-map {
    scroll-margin-top: calc(var(--header-height) + 24px);
}

/* 長い英字見出しもスマートフォンの画面幅に収める */
@media (max-width: 767px) {
    .page-heading h1 {
        font-size: clamp(35px, 7vw, 42px);
    }
}

/* 下層ページ・スクロール後は黒、TOPの写真上では白いロゴを表示 */
.site-logo img {
    width: 100%;
    height: auto;
    filter: brightness(0);
}

.name-kanji {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    object-fit: contain;
}

.site-header.over-hero:not(.is-scrolled) .site-logo img {
    filter: none;
}
