* {
    box-sizing: border-box
}

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

body {
    margin: 0;
    background: #020820;
    color: #fff;
    font-family: Arial, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.9
}

body.menu-open {
    overflow: hidden
}

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

button {
    font: inherit;
    cursor: pointer
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle
}

h1,
h2,
h3,
p,
dl,
dd {
    margin: 0
}

h2 {
    font-size: clamp(42px, 5.5vw, 104px);
    line-height: 1.12;
    letter-spacing: -.025em
}

h3 {
    line-height: 1.65
}

p+p {
    margin-top: 1.3em
}

a,
button {
    -webkit-tap-highlight-color: transparent
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #1bc8ff;
    outline-offset: 6px
}

.container {
    width: 88%;
    max-width: 1680px;
    margin: auto;
    background-image: url();
}

.cyan {
    color: #10bafb
}

.lead {
    font-size: clamp(17px, 1.8vw, 30px);
    line-height: 1.5;
    font-weight: 600
}

.centered {
    text-align: center
}

.section-heading>p {
    margin-top: .3em
}

.section-heading>p:last-child {
    font-size: 14px
}

.sr-only,
.hero-copy,
.about-content {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

.skip {
    position: fixed;
    top: -100px;
    left: 20px;
    background: #fff;
    color: #020820;
    padding: 10px 18px;
    z-index: 100
}

.skip:focus {
    top: 10px
}

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2.1% 3%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 20
}

.brand {
    width: 10.5%;
    min-width: 100px
}

.brand img {
    width: 100%;
    display: block
}

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

.menu-toggle {
    background: none;
    color: white;
    border: 0;
    padding: 0;
    min-height: 44px;
    width: 150px;
    display: flex;
    align-items: center
}

.menu-toggle img {
    width: 100%
}

.header-contact {
    width: 200px;
    display: block
}

.hero {
    position: relative;
    background: #000
}

.hero-art {
    display: block;
    width: 100%
}

.hero-case {
    position: absolute;
    right: 3%;
    bottom: 6%;
    width: 21%;
    border: 1px solid white;
    border-radius: 14px;
    overflow: hidden;
    background: #020820
}

.hero-case>img {
    width: 100%;
    aspect-ratio: 2.15;
    object-fit: cover
}

.hero-case>span {
    display: block;
    padding: 4px 12px 8px;
    font-size: clamp(9px, .8vw, 14px);
    line-height: 1.5
}

.hero-case b {
    font-family: Georgia, serif;
    font-size: clamp(22px, 2.8vw, 48px);
    line-height: 1.1
}

.hero-case small {
    float: right;
    border: 1px solid #9fb6d0;
    border-radius: 30px;
    padding: 2px 7px;
    margin-top: 8px
}

.about {
    position: relative
}

.about-art {
    width: 100%;
    display: block
}

.scroll-cue {
    position: absolute;
    right: 3%;
    bottom: -13%;
    width: 2.5%;
    z-index: 2
}

.works {
    background: #03081b url('images/top/top9.webp') center/cover no-repeat;
    padding: 7% 0 9%
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.6%;
    margin: 4.5% 0
}

.work-card {
    border: 1px solid #b7c3dc;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(145deg, #07112b, #000);
    display: flex;
    flex-direction: column;
    transition: transform .2s
}

.work-card:hover {
    transform: translateY(-5px)
}

.work-image {
    aspect-ratio: 1.68;
    overflow: hidden
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s
}

.work-card:hover img {
    transform: scale(1.04)
}

.work-body {
    padding: 17px 20px 23px
}

.work-body h3 {
    font-size: clamp(14px, 1.15vw, 21px)
}

.work-body p {
    color: #35c9ff;
    font-size: 14px;
    margin-top: 5px;
    overflow-wrap: anywhere
}

.works-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 35px
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 18px 50px;
    min-height: 44px;
    font-size: 16px;
    line-height: 1.4;
    border: 1px solid #bdc9dd;
    border-radius: 0 48px 0 48px;
    background: #020a16;
    transition: background .2s, transform .2s
}

.button:hover {
    background: #0a3674;
    transform: translateY(-2px)
}

.button span {
    display: inline-grid;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 100%;
    width: 20px;
    height: 20px;
    font-size: 13px
}

.service {
    background: white;
    color: #020a35;
    padding: 5% 0 6%
}

.service-intro {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 6%;
    align-items: center;
    margin: 0 4% 4%
}

.service-intro>p {
    font-size: clamp(14px, 1.1vw, 19px);
    line-height: 1.9
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5%
}

.service-grid article {
    display: flex;
    flex-direction: column
}

.service-grid img {
    width: 100%;
    display: block
}

.service-grid article>p {
	width:90%;
	margin:0 auto;
    font-size: clamp(14px, 1.1vw, 20px);
    line-height: 1.8;
    padding-top: 18px;
    margin-bottom: 26px
}

.service-grid .button {
    align-self: flex-end;
    margin-top: auto
}

.solid {
    background: linear-gradient(110deg, #082c99, #01081b);
    border: 0;
    border-radius: 40px;
    padding: 8px 30px;
    min-height: 44px;
    color: #fff
}

.contact {
    background: #040b25 url('images/top/top16.webp') center/cover no-repeat;
    border: 1px solid #c3cce1;
    overflow: hidden
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 7%;
    width: 84%
}

.contact-copy {
    padding: 12% 0
}

.contact-copy>p:last-child {
    font-size: clamp(14px, 1.1vw, 20px);
    max-width: 580px;
    margin-top: 1.8em
}

.contact-circle {
    border: 1px solid #a2b4d0;
    border-radius: 50%;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    text-align: center;
    background: #00082055;
    align-self: center;
    transform: scale(1.05)
}

.contact-circle h3 {
    font-size: clamp(16px, 1.7vw, 30px);
    margin-bottom: 20px
}

.contact-circle p {
    font-size: 14px
}

.pill {
    background: transparent;
    border-radius: 50px;
    font-size: 14px;
    padding: 8px 28px
}

.phone {
    font-size: clamp(23px, 2.5vw, 46px);
    font-style: italic;
    font-weight: bold;
    line-height: 1.2
}

.recruit {
    background: #020820 url('images/top/top17.webp') center/100% 100% no-repeat;
    padding: 6% 0
}

.recruit-copy {
    width: 48%;
    padding-left: 3%
}

.recruit-copy>p:nth-of-type(2) {
    font-size: 14px;
    margin-top: 1em
}

.recruit-copy>p:nth-of-type(3) {
    font-size: clamp(14px, 1.1vw, 19px);
    line-height: 1.9;
    margin-top: 2em
}

.recruit-copy .button {
    margin-top: 30px
}

.site-footer {
    padding: 5% 0 3%;
    border-top: 1px solid #b7c6df;
    background: linear-gradient(110deg, #020c37, #000515)
}

.footer-logo {
    display: block;
    width: 160px
}

.site-footer address {
    font-style: normal;
    font-size: 13px;
    line-height: 2;
    margin: 18px 0 35px
}

/* フッターメニュー：5列と親子階層 */
.footer-nav {
    display: block;
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav .footer-columns {
    display: grid;
    grid-template-columns: max-content max-content max-content max-content max-content;
    column-gap: clamp(24px, 3.2vw, 62px);
    row-gap: 24px;
    align-items: start;
}

.footer-column {
    min-width: 0;
}

.footer-heading {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
}

.footer-links {
    font-size: 13px;
    line-height: 1.85;
}

.footer-links > li,
.footer-products > li {
    position: relative;
    padding-left: 1em;
}

.footer-links > li::before {
    content: "▪";
    position: absolute;
    left: 0;
    top: 0;
}

.footer-nav .footer-products {
    margin-top: 2px;
    padding-left: 0.35em;
}

.footer-products > li::before {
    content: "・";
    position: absolute;
    left: 0;
    top: 0;
}

.footer-nav a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.copyright {
    text-align: right;
    font-size: 12px;
    color: #bdc8d8;
    margin-top: 60px
}

dialog {
    border: 1px solid #344772;
    color: #fff;
    background: linear-gradient(120deg, #061847, #010513);
    width: min(850px, 94vw);
    max-height: 90dvh;
    padding: 0
}

dialog::backdrop {
    background: #000b;
    backdrop-filter: blur(8px)
}

.menu-inner {
    padding: 60px 8%;
    position: relative
}

.eyebrow {
    color: #32c5ff;
    letter-spacing: .2em;
    font-size: 14px
}

.dialog-close {
    position: absolute;
    right: 6%;
    top: 25px;
    border: 0;
    background: none;
    color: #fff;
    min-height: 44px
}

.menu-inner nav {
    margin: 30px 0
}

.menu-inner nav a {
    padding: 18px 0;
    border-bottom: 1px solid #ffffff30;
    display: flex;
    gap: 24px;
    align-items: center;
    font-size: clamp(18px, 2vw, 28px)
}

.menu-inner nav a span {
    font-size: 13px;
    color: #59caf7
}

.menu-inner nav a b {
    margin-left: auto;
    font-size: 20px;
    font-weight: normal
}

.menu-tel {
    font-size: 26px
}

.menu-inner>p:last-child {
    font-size: 14px;
    color: #b7c9e3
}

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

@media(min-width:1921px) {
    body {
        max-width: 2400px;
        margin: auto
    }

    .site-header {
        max-width: 2400px;
        left: 50%;
        transform: translateX(-50%)
    }
}

@media(max-width:1000px) {
    .header-contact {
        width: 145px
    }

    .menu-toggle {
        width: 125px
    }

    .header-actions {
        gap: 15px
    }

    .work-body {
        padding: 12px
    }

    .service-intro {
        margin-left: 0;
        margin-right: 0
    }

    .service-grid article>p {
        font-size: 14px
    }

    .contact-grid {
        width: 88%;
        gap: 4%
    }

    .button {
        padding: 18px 30px;
    }

    .recruit-copy {
        width: 49%;
        padding-left: 0
    }

    .recruit-copy>p:nth-of-type(3) {
        font-size: 14px
    }

    .contact-circle h3 {
        margin-bottom: 12px
    }

    .contact-circle {
        transform: none
    }

    .hero-case small {
        display: none
    }
}

@media(max-width:700px) {
    html {
        scroll-padding-top: 70px
    }

    .container {
        width: 88%
    }

    .site-header {
        padding: 18px 6%
    }

    .brand {
        width: 105px
    }

    .header-actions {
        gap: 12px
    }

    .menu-toggle {
        width: 108px
    }

    .header-contact {
        display: none
    }

    .hero {
        min-height: 760px;
        height: 100svh;
        max-height: 940px;
        background: #000 url('images/top/top4.webp') right top/auto 100% no-repeat
    }

    .hero:before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, #000e, #0003), linear-gradient(0deg, #000 0%, transparent 45%)
    }

    .hero-art {
        display: none
    }

    .hero-copy,
    .about-content {
        position: relative;
        width: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        clip: auto;
        white-space: normal;
        border: 0
    }

    .hero-copy {
        padding: 180px 6% 240px;
        z-index: 1
    }

    .hero-copy>p:first-child {
        font-size: 14px;
        line-height: 2;
        letter-spacing: .02em
    }

    .hero-copy h1 {
        font-size: clamp(40px, 10vw, 64px);
        line-height: 1.4;
        letter-spacing: .03em;
        margin: 26px 0 20px
    }

    .hero-copy>.cyan {
        font-size: 16px;
        font-weight: bold;
        max-width: 290px;
        line-height: 1.8
    }

    .hero-case {
        width: 190px;
        right: 6%;
        bottom: 35px;
        z-index: 1
    }

    .hero-case>span {
        font-size: 10px
    }

    .hero-case b {
        font-size: 28px
    }

    .about {
        background: linear-gradient(115deg, #020d3c, #010715);
        padding: 65px 6%
    }

    .about-art {
        display: none
    }

    .about-content h2 {
        margin-bottom: 10px
    }

    .about-content .lead {
        font-size: 19px
    }

    .about-content p {
        font-size: 15px
    }

    .about-body {
        margin-top: 30px;
        line-height: 2
    }

    .values {
        margin-top: 40px
    }

    .values>div {
        display: grid;
        grid-template-columns: 115px 1fr;
        gap: 22px;
        align-items: center;
        margin-top: 25px
    }

    .values dt {
        border: 1px dashed #57c5e3;
        border-radius: 50%;
        aspect-ratio: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: #08203566;
        box-shadow: 0 0 24px #1aa9ef15
    }

    .values strong {
        font-family: Georgia, serif;
        font-size: 17px
    }

    .values small {
        font-size: 12px
    }

    .values dd {
        font-size: 14px;
        line-height: 1.9
    }

    .scroll-cue {
        display: none
    }

    .works {
        padding: 65px 0;
        background-position: center
    }

    .works-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
        margin: 30px 0
    }

    .work-card {
        border-radius: 9px
    }

    .work-body {
        padding: 13px 11px
    }

    .work-body h3 {
        font-size: 14px
    }

    .work-body p {
        font-size: 12px
    }

    .work-image {
        aspect-ratio: 1.3
    }

    .service {
        padding: 65px 0
    }

    .service-intro {
        display: block;
        margin-bottom: 35px
    }

    .service-intro>p {
        margin-top: 25px;
        font-size: 15px
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 40px
    }

    .service-grid article>p {
        font-size: 15px;
        line-height: 1.9;
        margin-bottom: 15px;
        padding-top: 16px
    }

    .service-grid .button {
        align-self: flex-end
    }

    .contact-grid {
        display: block
    }

    .contact-copy {
        padding: 55px 0 30px
    }

    .contact-copy>p:last-child {
        font-size: 15px
    }

    .contact-circle {
        width: 100%;
        max-width: 460px;
        margin: 0 auto 40px;
        aspect-ratio: 1;
        gap: 15px
    }

    .contact-circle h3 {
        font-size: 17px
    }

    .phone {
        font-size: 30px
    }

    .recruit {
        padding: 55px 0 280px;
        background-size: auto 280px;
        background-position: right bottom;
        background-color: #01071d
    }

    .recruit-copy {
        width: 100%
    }

    .recruit-copy .lead {
        font-size: 18px
    }

    .recruit-copy>p:nth-of-type(3) {
        font-size: 15px
    }

    .recruit-copy>p:nth-of-type(2) {
        font-size: 13px
    }

    .site-footer {
        padding: 45px 0 25px
    }

    .footer-logo {
        width: 125px
    }

    .footer-nav .footer-columns {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        gap: 24px 18px;
    }

    .footer-column--service {
        grid-row: span 3;
    }

    .footer-nav a {
        display: inline-block;
        padding-top: 3px;
        padding-bottom: 3px;
        overflow-wrap: anywhere;
    }

    .footer-links > li::before,
    .footer-products > li::before {
        top: 3px;
    }

    .copyright {
        margin-top: 40px;
        text-align: left;
        font-size: 11px
    }

    .admin-bar .site-header {
        top: 46px
    }
}

@media(max-width:380px) {
    .works-grid {
        grid-template-columns: 1fr
    }

    .work-image {
        aspect-ratio: 1.65
    }

    .hero-copy {
        padding-top: 145px
    }

    .values>div {
        grid-template-columns: 95px 1fr;
        gap: 15px
    }

    .values strong {
        font-size: 15px
    }

    .contact-circle h3 {
        font-size: 15px
    }

    .phone {
        font-size: 27px
    }
}

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

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

/* Contact：円の中央に白い区切り線 */
.contact-circle {
    position: relative;
}

.contact-circle::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #fff;
    transform: translateY(-50%);
    pointer-events: none;
}

/* 共通：下からふわっと表示 */
.menu-toggle,
.header-contact,
.hero-case {
    animation: first-view-in 0.9s ease backwards;
}

/* メニュー・お問い合わせ：同じタイミング */
.menu-toggle,
.header-contact {
    animation-delay: 0.4s;
    transition: transform 0.35s ease;
}

/* 導入事例：少し後に表示 */
.hero-case {
    animation-delay: 0.7s;
    overflow: hidden;
}

/* 導入事例の写真 */
.hero-case > img {
    transition: transform 0.6s ease;
}

/* マウスを重ねたとき */
@media (hover: hover) and (pointer: fine) {
    .menu-toggle:hover,
    .header-contact:hover {
        transform: translateY(-4px);
    }

    .hero-case:hover > img {
        transform: scale(1.05);
    }
}

/* 登場アニメーション */
@keyframes first-view-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 動きを減らす端末設定に対応 */
@media (prefers-reduced-motion: reduce) {
    .menu-toggle,
    .header-contact,
    .hero-case {
        animation: none;
        transition: none;
    }

    .hero-case > img {
        transition: none;
    }

    .menu-toggle:hover,
    .header-contact:hover,
    .hero-case:hover > img {
        transform: none;
    }
}

/* Scroll画像を繰り返し跳ねさせる */
.scroll-cue img {
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    35% {
        transform: translateY(-14px);
    }
    55% {
        transform: translateY(0);
    }
    75% {
        transform: translateY(-6px);
    }
}

/* 動きを減らす端末設定に対応 */
@media (prefers-reduced-motion: reduce) {
    .scroll-cue img {
        animation: none;
    }
}
/* 共通Contact：TOPデザインの配置・円・アイコンへ調整 */
section#contact.contact {
    border: 0;
    outline: 0;
    box-shadow: none;
    overflow: hidden;
    color: #fff;
    background-position: center;
    background-size: cover;
}
section#contact.contact .contact-grid {
    position: relative;
    display: block;
    width: 100%;
    max-width: none;
    min-height: 44.8vw;
    margin: 0;
    padding: 0;
}
section#contact.contact .contact-copy {
    position: relative;
    z-index: 1;
    width: 34%;
    margin-left: 8.5%;
    padding: 7.8vw 0 6vw;
}
section#contact.contact .contact-copy h2 {
    margin: 0 0 8px;
    font-family: Arial, sans-serif;
    font-size: clamp(64px,5.2vw,120px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.025em;
}
section#contact.contact .contact-copy .lead {
    margin: 0;
    font-size: clamp(18px,1.46vw,34px);
    line-height: 1.6;
    font-weight: 700;
    letter-spacing: 0;
}
section#contact.contact .contact-copy > p:last-child {
    max-width: none;
    margin: 2.6vw 0 0;
    font-size: clamp(16.4px,1.04vw,24px);
    line-height: 1.8;
    letter-spacing: 0;
}
section#contact.contact .contact-circle {
    position: absolute;
    left: 48.8%;
    top: 50%;
    width: 52vw;
    max-width: none;
    height: 52vw;
    margin: 0;
    transform: translateY(-50%);
    border: 1px solid rgba(225,236,255,.7);
    border-radius: 50%;
    background: transparent;
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 0;
}
section#contact.contact .contact-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(225,236,255,.75);
    transform: translateY(-50%);
    pointer-events: none;
}
section#contact.contact .contact-circle > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px 9%;
    text-align: center;
}
section#contact.contact .contact-circle > div:first-child { transform: translateY(2.4vw); }
section#contact.contact .contact-circle > div:last-child { transform: translateY(-2.4vw); }
section#contact.contact .contact-circle h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 0 28px;
    font-size: clamp(20px,1.77vw,40px);
    line-height: 1.5;
    letter-spacing: 0;
}
section#contact.contact .contact-circle h3 > span { display: none; }
section#contact.contact .contact-circle > div:first-child h3::before {
    content: '';
    flex: none;
    width: 1.55em;
    height: 1.15em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 40' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='1' y='1' width='52' height='38' rx='2'/%3E%3Cpath d='M2 3L27 26L52 3'/%3E%3C/svg%3E") center/contain no-repeat;
}
section#contact.contact .contact-circle .pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: clamp(210px,15vw,345px);
    min-height: 50px;
    padding: 0px 50px;
    margin: 0;
    border: 1px solid rgba(235,241,255,.7);
    border-radius: 100px;
    background: rgba(255,255,255,.07);
    color: #fff;
    font-size: 16px;
    text-decoration: none;
}
section#contact.contact .contact-circle .pill span {
    position: relative;
    display: inline-block;
    flex: none;
    width: 24px;
    height: 24px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 0;
}
section#contact.contact .contact-circle .pill span::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 7px;
    width: 7px;
    height: 7px;
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
    transform: rotate(45deg);
}
section#contact.contact .contact-circle .phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: Arial, sans-serif;
    font-size: clamp(30px,2.65vw,60px);
    font-style: italic;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    text-decoration: none;
}
section#contact.contact .contact-circle .phone::before {
    content: '';
    flex: none;
    width: .7em;
    height: .95em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 40' fill='none' stroke='white' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3L13 11L9 15Q11 24 18 29L22 26L27 34Q22 41 15 35Q2 26 2 12Q2 5 8 3Z'/%3E%3Cpath d='M8 5L11 11M21 29L25 34M17 4L19 1M20 7L24 5M21 11L26 11'/%3E%3C/svg%3E") center/contain no-repeat;
}
section#contact.contact .contact-circle p {
    margin: 15px 0 0;
    font-size: clamp(16px,1.15vw,26px);
    line-height: 1.5;
}
@media (max-width: 1000px) {
    section#contact.contact .contact-grid { padding: 60px 6% 45px; }
    section#contact.contact .contact-copy { width: 100%; margin: 0; padding: 0 0 40px; }
    section#contact.contact .contact-copy h2 { font-size: 64px; }
    section#contact.contact .contact-copy .lead { font-size: 22px; }
    section#contact.contact .contact-copy > p:last-child { font-size: 16px; margin-top: 25px; max-width: 650px; }
    section#contact.contact .contact-circle { position: relative; left: auto; top: auto; transform: none; width: 100%; max-width: 560px; height: auto; aspect-ratio: 1; margin: 0 auto; }
    section#contact.contact .contact-circle > div:first-child,
    section#contact.contact .contact-circle > div:last-child { transform: none; }
    section#contact.contact .contact-circle h3 { font-size: clamp(16px,3vw,24px); margin-bottom: 18px; gap: 8px; }
    section#contact.contact .contact-circle .phone { font-size: clamp(25px,4.4vw,40px); gap: 6px; }
    section#contact.contact .contact-circle p { font-size: 14px; margin-top: 10px; }
    section#contact.contact .contact-circle .pill { min-height: 44px; width: 210px; font-size: 14px; padding: 8px 20px; }
}
@media (max-width: 420px) {
    section#contact.contact .contact-copy h2 { font-size: 56px; }
    section#contact.contact .contact-copy .lead { font-size: 18px; }
    section#contact.contact .contact-circle > div { padding: 18px 5%; }
    section#contact.contact .contact-circle h3 { font-size: 16px; margin-bottom: 12px; }
    section#contact.contact .contact-circle .pill { width: 190px; }
}

/* Contact 再調整：円内の列幅を確保し、不自然な改行を解消 */
section#contact.contact .contact-circle {
    left: 48.8%;
    width: 55vw;
    height: 55vw;
    top: 46%;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    justify-items: stretch;
    background: rgba(0, 8, 25, .38);
    overflow: hidden;
    isolation: isolate;
}
section#contact.contact .contact-circle > div {
    width: 100%;
    max-width: none;
    min-width: 0;
    padding-left: 7%;
    padding-right: 7%;
}
section#contact.contact .contact-circle h3,
section#contact.contact .contact-circle .phone,
section#contact.contact .contact-circle .pill,
section#contact.contact .contact-circle p {
    width: auto;
    max-width: none;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
    flex-shrink: 0;
}
section#contact.contact .contact-circle h3 br,
section#contact.contact .contact-circle .phone br,
section#contact.contact .contact-copy br { display: none; }
section#contact.contact .contact-circle::before { z-index: 1; }
@media (max-width: 1000px) {
    section#contact.contact .contact-circle {
        left: auto;
        top: auto;
        width: 100%;
        max-width: 560px;
        height: auto;
    }
}
@media (max-width: 420px) {
    section#contact.contact .contact-circle h3 { font-size: clamp(13px, 3.8vw, 16px); gap: 6px; }
    section#contact.contact .contact-circle .phone { font-size: clamp(22px, 6.3vw, 26px); }
    section#contact.contact .contact-circle > div { padding-left: 4%; padding-right: 4%; }
}

/* Contact：右上は角、ほかの3つの角は丸いデザイン */
section#contact.contact .contact-circle {
    left: auto;
    right: 0;
    top: 0;
    bottom: 0;
    width: 51.2%;
    height: 100%;
    max-width: none;
    aspect-ratio: auto;
    transform: none;
    margin: 0;
    border: 1px solid rgba(225,236,255,.7);
    border-radius: 50% 0 50% 50%;
    background: rgba(0,8,25,.7);
    display: grid;
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: minmax(0,1fr) minmax(0,1fr);
    justify-content: stretch;
    justify-items: stretch;
    gap: 0;
    overflow: hidden;
}
section#contact.contact .contact-circle > div:first-child,
section#contact.contact .contact-circle > div:last-child {
    transform: none;
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 20px 6%;
}
section#contact.contact .contact-circle > div:first-child {
    padding-top: 6vw;
}
section#contact.contact .contact-circle > div:last-child {
    padding-bottom: 3vw;
}
section#contact.contact .contact-circle h3 {
    white-space: nowrap;
    margin-bottom: 32px;
    font-size: clamp(18px,1.77vw,38px);
}
section#contact.contact .contact-circle .phone {
    white-space: nowrap;
    font-size: clamp(28px,2.65vw,58px);
}
section#contact.contact .contact-circle p {
    white-space: nowrap;
    margin-top: 14px;
}
section#contact.contact .contact-circle::before {
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: rgba(225,236,255,.75);
    transform: translateY(-50%);
}
@media (max-width: 1000px) {
    section#contact.contact .contact-circle {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        width: 100%;
        max-width: 620px;
        height: auto;
        aspect-ratio: 770 / 674;
        margin: 0 auto;
    }
    section#contact.contact .contact-circle > div:first-child { padding: 35px 5% 10px; }
    section#contact.contact .contact-circle > div:last-child { padding: 10px 5% 25px; }
    section#contact.contact .contact-circle h3 { font-size: clamp(15px,3.4vw,26px); margin-bottom: 18px; gap: 8px; }
    section#contact.contact .contact-circle .phone { font-size: clamp(25px,4.8vw,42px); }
    section#contact.contact .contact-circle p { font-size: clamp(13px,2.4vw,18px); margin-top: 10px; }
}
@media (max-width: 420px) {
    section#contact.contact .contact-circle > div:first-child { padding: 25px 4% 6px; }
    section#contact.contact .contact-circle > div:last-child { padding: 6px 4% 20px; }
    section#contact.contact .contact-circle h3 { font-size: 14px; gap: 6px; margin-bottom: 12px; }
    section#contact.contact .contact-circle .phone { font-size: 24px; gap: 5px; }
    section#contact.contact .contact-circle .pill { min-height: 38px; width: 180px; }
}

/* スマホだけ改行 */
br.sp-only-br {
  display: none;
}

@media screen and (max-width: 767px) {
  br.sp-only-br {
    display: inline;
  }
}

/* PC：施工実績の記事ページのWorks見出しを修正 */
@media (min-width: 1201px) {
  body.single-works .works-hero-copy > p.works-hero-title {
    font-size: clamp(66px, 9vw, 184px);
    font-weight: 700;
    font-style: italic;
    line-height: 1.08;
    letter-spacing: -.025em;
    margin: 28px 0 0;
    max-width: 100%;
  }
}

.hero-case .hero-case-logo {
  display: inline-block;
  width: 42%;
  height: auto;
  vertical-align: middle;
  margin-top: 8px;
}

/* Full site navigation: desktop columns, mobile vertical list. */
#site-menu .menu-inner nav.first-menu-expanded {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 36px;
  margin: 30px 0;
}
#site-menu .first-menu-group { min-width: 0; }
#site-menu .first-menu-group h2 {
  margin: 0 0 5px;
  color: #63c9ef;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .06em;
}
#site-menu .first-menu-group a {
  min-height: 48px;
  padding: 12px 0;
  font-size: 16px;
  line-height: 1.6;
  gap: 12px;
  overflow-wrap: anywhere;
}
#site-menu .first-menu-group a .first-menu-number {
  flex: 0 0 22px;
  font-size: 12px;
}
#site-menu .first-menu-group a b { flex: 0 0 auto; }
#site-menu .first-menu-group a[aria-current="page"] { color: #7dddff; }
#site-menu .first-menu-group a:focus-visible {
  outline: 2px solid #7dddff;
  outline-offset: 3px;
}
#site-menu { overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 600px) {
  #site-menu .menu-inner { padding: 60px 7% 32px; }
  #site-menu .menu-inner nav.first-menu-expanded {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

/* Reference: outlined circle with a thin CSS chevron. */
body.first-top a.button:not(#site-menu a) > span[aria-hidden="true"] {
 position:relative; display:inline-block; box-sizing:border-box;
 flex:0 0 26px; width:26px; height:26px; padding:0;
 border:1px solid currentColor; border-radius:50%;
 font-size:0 !important; line-height:0; vertical-align:middle;
}
body.first-top a.button:not(#site-menu a) > span[aria-hidden="true"]::before {
 content:""; position:absolute; box-sizing:border-box;
 left:50%; top:50%; width:7px; height:7px; margin:0;
 border:0; border-top:1px solid currentColor; border-right:1px solid currentColor;
 background:none; transform:translate(-65%,-50%) rotate(45deg);
}
body.first-top a.button:not(#site-menu a) > span[aria-hidden="true"]::after {content:none;}

/* 通常のbrは改行する */
section#contact.contact .contact-copy br {
  display: inline;
}

/* スマホ専用のbr */
section#contact.contact .contact-copy br.sp-only-br {
  display: none;
}

@media (max-width: 767px) {
  section#contact.contact .contact-copy br.sp-only-br {
    display: inline;
  }
}
