/* Shared by the WordPress templates, static pages and contact page. */
:root {
    --daito-action: #245228;
    --daito-mobile-contact-height: 52px;
}

main2 { display: block; }

.daito-contact-float { display: none; }

.work-actions {
    margin: 28px auto 36px;
    padding-inline: 16px;
    text-align: center;
}

.work-button,
.daito-contact-float a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 4px;
    background: var(--daito-action);
    color: #fff;
    font-weight: bold;
    line-height: 1.4;
    text-decoration: none;
}

.work-button:hover,
.daito-contact-float a:hover { background: #183d1d; color: #fff; }
.work-button:focus-visible,
.daito-contact-float a:focus-visible,
.work-cards a:focus-visible,
.footlink a:focus-visible { outline: 3px solid #407018; outline-offset: 3px; }

a.work-contact-button {
    gap: 12px;
    width: min(100%, 324px);
    min-height: 60px;
    padding: 8px 18px 8px 8px;
    border-radius: 999px;
    background: #214630;
    font-size: 16px;
    transition: background-color .18s ease;
}

.work-contact-button:hover {
    background-color: #28523a;
}

.work-contact-icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: #e6f1cd;
    color: #214731;
}

.work-contact-icon > span {
    position: relative;
    box-sizing: border-box;
    width: 21px;
    height: 15px;
    overflow: hidden;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.work-contact-icon > span::after {
    position: absolute;
    top: -7px;
    left: 3px;
    width: 10px;
    height: 10px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    content: "";
}

.work-contact-label { flex: 1; }

.work-contact-button::after {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border: solid #e6f1cd;
    border-width: 0 2px 2px 0;
    transform: rotate(-45deg);
    content: "";
}

@media (prefers-reduced-motion: reduce) {
    a.work-contact-button { transition: none; }
}

#content01 .daito-toyota-work {
    display: grid;
    grid-template-columns: minmax(12px, 1fr) minmax(0, auto) minmax(12px, 1fr);
    align-items: center;
    gap: clamp(10px, 3vw, 36px);
    box-sizing: border-box;
    width: min(calc(100% - 24px), 820px);
    margin: clamp(20px, 3vw, 36px) auto 0;
    color: #23382c;
    text-align: center;
    font-weight: bold;
    font-size: clamp(22px, 3.5vw, 40px);
    line-height: 1.35;
    letter-spacing: .055em;
}

#content01 .daito-toyota-work::before,
#content01 .daito-toyota-work::after {
    height: 1px;
    background: linear-gradient(to right, #e2ead8, #90a976);
    content: "";
}

#content01 .daito-toyota-work::after {
    background: linear-gradient(to left, #e2ead8, #90a976);
}

#content01 .daito-toyota-work + p.catch {
    margin-top: clamp(12px, 1.5vw, 20px);
}

.latest-works {
    background: #f5f5f5;
    text-align: center;
}
.latest-works-inner {
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 24px;
}
.latest-works h2 {
    margin-bottom: 22px;
    font-size: clamp(22px, 4vw, 34px);
    color: var(--daito-action);
}
.work-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
}
.work-cards li { list-style: none; }
.work-cards a {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid #d5dfcc;
    border-radius: 4px;
    background: #fff;
    color: #263328;
    text-decoration: none;
    text-align: left;
}
.work-cards img,
.work-card-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    background: #eaf0e4;
}
.work-card-placeholder {
    display: grid;
    place-items: center;
    color: var(--daito-action);
}
.work-card-title { display: block; padding: 13px 15px; font-weight: bold; overflow-wrap: anywhere; }
.work-cards a:hover .work-card-title { text-decoration: underline; }

.footlink ul {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}
.footlink ul li { width: auto; margin: 0; }
.footlink ul li a { display: block; text-decoration: none; }
.footlink ul li h4 { font-size: clamp(14px, 1.35vw, 22px); }
.footlink ul li img,
.footlink .work-card-placeholder {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 48 / 35;
    object-fit: cover;
}

.work-detail {
    box-sizing: border-box;
    width: min(100% - 32px, 950px);
    margin: 0 auto;
    text-align: left;
    overflow-wrap: anywhere;
}
.work-detail h1 { font-size: clamp(23px, 4vw, 34px); margin-bottom: 26px; color: var(--daito-action); }
.work-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 24px;
}
.work-photos:empty { display: none; }
.work-photos figure { margin: 0; }
.work-photos img { display: block; width: 100%; height: auto; }
.work-photos figcaption { margin-top: 8px; text-align: center; }
.work-summary { display: grid; grid-template-columns: auto 1fr; margin: 24px 0; }
.work-summary dt, .work-summary dd { margin: 0; padding: 12px; border-bottom: 1px solid #d5dfcc; }
.work-summary dt { background: #eaf0e4; font-weight: bold; }
.work-empty, .work-back, .work-pagination { margin: 20px auto; text-align: center; }
.work-pagination .page-numbers { display: inline-block; padding: 8px; }

.daito-site-header .daito-mobile-brand,
.daito-site-header .daito-menu-toggle { display: none; }

.daito-header-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding: 12px 20px 6px;
}

.daito-site-header a.daito-header-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 6px;
    background: #a62e2b;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .18s ease;
}

.daito-site-header a.daito-header-contact:hover { background-color: #b63835; }

@media (prefers-reduced-motion: reduce) {
    .daito-site-header a.daito-header-contact { transition: none; }
}

.daito-header-mail {
    position: relative;
    box-sizing: border-box;
    width: 18px;
    height: 13px;
    overflow: hidden;
    border: 1.5px solid currentColor;
    border-radius: 2px;
}

.daito-header-mail::after {
    position: absolute;
    top: -5px;
    left: 3px;
    width: 8px;
    height: 8px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
    content: "";
}

.daito-global-nav ul { margin: 0; padding: 0; list-style: none; }
.daito-business-menu { position: relative; }
.daito-global-nav .daito-nav-submenu > li { border-top: 1px solid #e4e4e4; }
.daito-global-nav .daito-nav-submenu > li:last-child { border-bottom: 1px solid #e4e4e4; }
.daito-site-header summary { list-style: none; cursor: pointer; }
.daito-site-header summary::-webkit-details-marker { display: none; }
.daito-business-arrow {
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg) translateY(-2px);
}
.daito-business-menu[open] .daito-business-arrow { transform: rotate(225deg) translateY(-1px); }
.daito-site-header :is(a, button, summary):focus-visible {
    outline: 2px solid #245228;
    outline-offset: 2px;
}

.navbar.daito-blog-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
}
.daito-blog-header > .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 16px;
}
.daito-blog-header > .container::before,
.daito-blog-header > .container::after { display: none; }
.daito-blog-brand { order: -2; min-width: 0; }
.daito-blog-brand a { display: block; color: #263328; text-decoration: none; }
.daito-blog-brand img { display: block; width: auto; max-width: 100%; max-height: 44px; margin: 0; }
.daito-blog-brand .navbar-brand { float: none; height: auto; margin: 0; padding: 0; }

@media (min-width: 769px) {
    html { scroll-padding-top: 122px; }
    #header {
        display: flex;
        justify-content: space-between;
        align-items: stretch;
        position: sticky;
        top: 0;
        z-index: 1000;
        background: #fff;
        box-shadow: 0 2px 8px rgb(0 0 0 / 12%);
    }
    #header > .both { display: none; }
    #header #logo_block { flex-shrink: 0; }
    #header #head_right { min-width: 0; }
    #header ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
    #header ul li a { padding: 0 0 6px; line-height: 1.4; }

    #header.daito-site-header #logo_block {
        display: flex;
        align-items: center;
        box-sizing: border-box;
        gap: 12px;
        padding-left: 40px;
    }
    #header.daito-site-header #logo_block > .both { display: none; }
    #header.daito-site-header #logo_block #logo {
        display: grid;
        flex: 0 0 110px;
        place-items: center;
        height: auto;
        margin: 0;
    }
    #header.daito-site-header #logo img { display: block; width: 76px; height: auto; }
    #header.daito-site-header #logo_block h1 { margin: 0; }
    #header .daito-header-links { padding-block: 8px 6px; }
    #header .daito-header-links #jutakulink { float: none; margin: 0; padding: 4px 0; }
    #header .daito-header-links #jutakulink img { display: block; }
    .daito-global-nav > .daito-nav-list {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        gap: 4px clamp(16px, 2vw, 30px);
    }
    #header .daito-nav-list { float: none; margin: 0 20px; }
    #header .daito-nav-list li { display: block; margin: 0; }
    #header .daito-nav-list > li > a,
    .daito-global-nav .daito-nav-list > li > a,
    .daito-business-menu > summary {
        display: flex;
        align-items: center;
        gap: 8px;
        box-sizing: border-box;
        min-height: 44px;
        padding: 4px 2px;
        border-bottom: 3px solid transparent;
        color: #333;
        line-height: 1.4;
        letter-spacing: .12em;
        text-decoration: none;
        white-space: nowrap;
    }
    #header .daito-nav-list > li > a:hover,
    .daito-global-nav .daito-nav-list > li > a:hover,
    .daito-business-menu > summary:hover,
    .daito-business-menu[open] > summary { border-bottom: 3px solid #77a12d; }
    #header .daito-nav-submenu,
    .daito-global-nav .daito-nav-submenu {
        position: absolute;
        z-index: 1;
        inset: 100% auto auto 50%;
        transform: translateX(-50%);
        box-sizing: border-box;
        display: block;
        float: none;
        min-width: 176px;
        margin: 0;
        padding: 6px 10px;
        border: 1px solid #dce4d7;
        border-radius: 6px;
        background: #fff;
        box-shadow: 0 6px 18px rgb(25 50 28 / 14%);
    }
    .daito-global-nav .daito-nav-submenu a,
    #header .daito-nav-submenu a {
        display: block;
        padding: 10px 12px;
        border: 0;
        border-radius: 4px;
        color: #243728;
        font-size: 14px;
        line-height: 1.4;
        letter-spacing: 0;
        text-align: center;
        white-space: nowrap;
        text-decoration: none;
    }
    #header .daito-nav-submenu a:hover,
    .daito-global-nav .daito-nav-submenu a:hover { border: 0; background: #eef4e8; }
    .daito-blog-header .daito-header-links { order: 1; padding: 8px 0; }
}

@media (min-width: 769px) and (max-width: 1090px) {
    #header #logo_block { width: 292px; }
    #header #logo_block #logo { margin-left: 12px; }
    #header #logo_block h1 { margin-left: 8px; }
    #header.daito-site-header #logo_block { gap: 8px; padding-left: 12px; }
    #header #contact { margin-right: 8px; }
    #header #jutakulink { margin-left: 0; margin-right: 0; padding-inline: 4px; }
    #header ul li a { font-size: 13px; letter-spacing: 0; }
    #header .daito-nav-list > li > a,
    #header .daito-business-menu > summary { font-size: 13px; letter-spacing: .06em; }
}

@media (max-width: 768px) {
    html { scroll-padding-top: 65px; }
    body { box-sizing: border-box; padding-bottom: calc(var(--daito-mobile-contact-height) + env(safe-area-inset-bottom)); }
    .mean-container .mean-bar { top: 0; }
    .mean-container .mean-nav { max-height: calc(100dvh - 115px); overflow-y: auto; }
    #header.daito-site-header {
        display: flex;
        position: fixed;
        inset: 0 0 auto;
        z-index: 1000;
        align-items: center;
        justify-content: space-between;
        height: 60px;
        padding-right: 12px;
        background: #7fcd0d;
    }
    #header.daito-site-header #logo_block,
    #header.daito-site-header > .both,
    #header .daito-header-links { display: none; }
    #header.daito-site-header #head_right { display: block; }
    .daito-site-header .daito-mobile-brand { display: block; max-width: min(224px, 59vw); }
    .daito-mobile-brand img { display: block; width: 100%; }
    .daito-site-header .daito-menu-toggle {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        width: 44px;
        min-height: 44px;
        padding: 0;
        border: 0;
        border-radius: 4px;
        background: transparent;
        color: #183418;
        cursor: pointer;
    }
    .daito-menu-icon {
        box-sizing: border-box;
        width: 28px;
        height: 20px;
        border-block: 2px solid currentColor;
        background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
    }
    .daito-menu-toggle[aria-expanded="false"] + .daito-global-nav { display: none; }
    .daito-global-nav {
        position: absolute;
        inset: 100% 0 auto;
        max-height: calc(100dvh - 60px);
        overflow-y: auto;
        background: #fff;
        border-bottom: 1px solid #dce4d7;
        overscroll-behavior: contain;
    }
    #header .daito-global-nav { max-height: calc(100dvh - 60px - var(--daito-mobile-contact-height) - env(safe-area-inset-bottom)); }
    #header .daito-global-nav ul { display: block; float: none; margin: 0; }
    #header .daito-global-nav li { display: block; margin: 0; }
    .daito-global-nav .daito-nav-list a,
    .daito-global-nav .daito-business-menu > summary,
    #header .daito-global-nav ul li a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box;
        min-height: 50px;
        padding: 10px 20px;
        border: 0;
        border-bottom: 1px solid #e4e8e0;
        color: #243728;
        line-height: 1.5;
        letter-spacing: normal;
        text-decoration: none;
    }
    .daito-global-nav .daito-nav-submenu a,
    #header .daito-global-nav .daito-nav-submenu a {
        justify-content: center;
        min-height: 44px;
        border: 0;
        background: #f7f7f7;
        text-align: center;
    }
    .daito-business-menu[open] > summary { border-bottom-color: transparent; }
    .daito-global-nav :is(a, summary):focus-visible { outline-offset: -3px; }
    .navbar.daito-blog-header > .container { width: auto; min-height: 60px; padding: 0 10px; gap: 0 5px; flex-wrap: nowrap; }
    .daito-blog-header .daito-header-links { order: -1; flex: 0 0 auto; padding: 0; }
    .daito-blog-header a.daito-header-contact { gap: 5px; padding: 0 9px; font-size: 12px; }
    .daito-blog-header .daito-blog-brand a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .daito-contact-float {
        display: block;
        position: fixed;
        inset: auto 0 0;
        padding-bottom: env(safe-area-inset-bottom);
        background: var(--daito-action);
        z-index: 1001;
    }
    .daito-contact-float a {
        width: 100%;
        min-height: var(--daito-mobile-contact-height);
        border-radius: 0;
        font-size: 16px;
    }
    .work-cards { gap: 14px; }
    .work-card-title { padding: 10px; font-size: 14px; }
    .footlink ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-inline: 10px; }
    .work-button { width: min(100%, 350px); }
    .work-contact-button { max-width: 324px; }
}
