:root {
    --orange: #f06b3c;
    --ink: #1d252c;
    --paper: #f7f7f4;
    --muted: #6f777b;
    --line: #dfe1dc;
    --jp: 'Noto Sans JP', sans-serif;
    --display: 'Manrope', 'Noto Sans JP', sans-serif;
    --mono: 'DM Mono', monospace
}

* {
    box-sizing: border-box
}
html,
body {
  overflow-x: clip;
}
.ticker {
  width: 100%;
  overflow: hidden;
}

.ticker__track {
  width: max-content;
}
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--jp);
    line-height: 1.8;
    font-size: 16px;
}

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

.header {
    height: 84px;
    padding: 0 7vw;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: rgba(247, 247, 244, .9);
    backdrop-filter: blur(12px);
    z-index: 5
}

.logo {
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -.1em
}

.logo span {
    color: var(--orange)
}

nav {
    display: flex;
    gap: 34px;
    font-size: 13px;
    font-weight: 700
}

nav a:hover {
    color: var(--orange)
}

.menu {
    display: none;
    background: none;
    border: 0
}

.kicker {
    font: 500 11px var(--mono);
    letter-spacing: .1em;
    color: var(--muted);
    margin: 0 0 22px
}

.kicker b {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
    margin-right: 8px
}

.hero {
    min-height: 670px;
    padding: 100px 10vw 80px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 5vw;
    align-items: center
}

.hero h1 {
    font: 800 clamp(44px, 6vw, 74px)/1.22 var(--display);
    letter-spacing: -.08em;
    margin: 0
}

.hero h1 em,
.section h2 span,
.contact h2 span {
    font-style: normal;
    color: var(--orange)
}

.lead {
    font-size: 17px;
    line-height: 2;
    margin: 30px 0 34px;
    color: #535e63
}

.orange-button,
.dark-button {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    padding: 13px 22px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700
}

.orange-button span,
.dark-button span {
    margin-left: 18px;
    font-size: 18px
}

.hero-visual {
    height: 420px;
    position: relative
}

.visual-window {
    position: absolute;
    width: 360px;
    height: 275px;
    top: 65px;
    left: 12%;
    background: #20292f;
    border-radius: 8px;
    box-shadow: 22px 25px 0 rgba(240, 107, 60, .22);
    transform: rotate(3deg);
    overflow: hidden;
    color: #d7e0e1
}

.window-top {
    height: 37px;
    background: #303b40;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 16px
}

.window-top span {
    width: 7px;
    height: 7px;
    background: #687276;
    border-radius: 50%
}

.window-top label {
    font: 10px var(--mono);
    margin-left: 8px;
    color: #a6b0b1
}

.code {
    padding: 24px 27px;
    font: 14px/1.7 var(--mono);
    color: #dce5e0
}

.code p {
    margin: 0
}

.code i {
    color: #ff8b62;
    font-style: normal
}

.code strong {
    color: #f1c567
}

.code mark {
    background: none;
    color: #9ed3c5
}

.code b {
    color: #f48761
}

.code small {
    color: #68757a;
    display: block;
    margin-bottom: 6px
}

.indent {
    padding-left: 25px
}

.window-tag {
    position: absolute;
    bottom: 15px;
    right: 18px;
    font: 9px var(--mono);
    color: #f48761
}

.orbit {
    position: absolute;
    border: 1px solid #f4a589;
    border-radius: 50%;
    width: 350px;
    height: 180px;
    top: 115px;
    left: 5%;
    transform: rotate(-21deg)
}

.o2 {
    width: 250px;
    height: 115px;
    top: 190px;
    left: 26%;
    border-color: #f8c3af;
    transform: rotate(24deg)
}

.dot-grid {
    position: absolute;
    width: 110px;
    height: 90px;
    right: 0;
    top: 30px;
    background-image: radial-gradient(var(--orange) 1px, transparent 1px);
    background-size: 15px 15px;
    opacity: .65
}

.marquee {
    background: var(--orange);
    color: #fff;
    padding: 13px 0;
    overflow: hidden;
    white-space: nowrap;
    font: 600 12px var(--mono);
    letter-spacing: .06em
}

.marquee div {
    animation: move 24s linear infinite
}

.marquee span {
    color: #ffd2c3
}

@keyframes move {
    to {
        transform: translateX(-35%)
    }
}

.section {
    padding: 125px 10vw
}

.section h2 {
    font: 800 clamp(35px, 5vw, 58px)/1.25 var(--display);
    letter-spacing: -.08em;
    margin: 0
}

.section-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 10vw;
    align-items: end
}

.section-head .kicker {
    grid-column: 1/-1
}

.section-head>p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 14px
}

.cap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 75px
}

.cap-grid article {
    padding: 28px;
    border-top: 3px solid var(--orange);
    background: #fff;
    min-height: 290px
}

.cap-grid article>b,
.process-grid b {
    font: 11px var(--mono);
    color: var(--orange)
}

.cap-grid h3 {
    font-size: 20px;
    margin: 34px 0 13px
}

.cap-grid p {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 30px
}

.cap-grid small {
    font: 10px var(--mono);
    color: #a4a9a4
}

.track-record {
    background: #e8ebe7
}

.record-head {
    display: flex;
    justify-content: space-between;
    align-items: end
}

.record-head>p {
    font-size: 14px;
    color: var(--muted);
    max-width: 300px
}

.record-list {
    margin-top: 62px;
    border-top: 1px solid #cbd0cb
}

.record-list>div {
    display: grid;
    grid-template-columns: 60px 1fr 1.2fr 30px;
    align-items: center;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid #cbd0cb
}

.record-list strong {
    font: 11px var(--mono);
    color: var(--orange)
}

.record-list h3 {
    font-size: 18px;
    margin: 0
}

.record-list p {
    font-size: 13px;
    color: var(--muted);
    margin: 0
}

.record-list span {
    color: var(--orange);
    font-size: 20px
}

.statement {
    padding: 125px 10vw;
    background: var(--ink);
    color: #fff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10vw;
    position: relative;
    overflow: hidden
}

.statement .kicker {
    color: #a4adb0
}

.statement h2 {
    font: 800 clamp(39px, 5vw, 64px)/1.2 var(--display);
    letter-spacing: -.08em;
    margin: 0
}

.statement h2 em {
    font-style: normal;
    color: var(--orange)
}

.statement>div:last-child {
    padding-top: 65px;
    color: #c7ced0;
    max-width: 430px
}

.statement-shape {
    position: absolute;
    right: 8%;
    top: 12%;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(240, 107, 60, .5);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--orange);
    font-size: 90px;
    font-weight: 900;
    transform: rotate(13deg)
}

.process h2 {
    margin-bottom: 65px
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    border-top: 1px solid var(--line);
    padding-top: 35px
}

.process-grid h3 {
    font-size: 24px;
    margin: 22px 0 8px
}

.process-grid p {
    font-size: 14px;
    color: var(--muted);
    margin: 0
}

.contact {
    padding: 125px 10vw;
    background: var(--orange);
    color: #fff
}

.contact .kicker {
    color: #ffe3da
}

.contact h2 {
    font: 800 clamp(43px, 6vw, 72px)/1.2 var(--display);
    letter-spacing: -.08em;
    margin: 0
}

.contact p:not(.kicker) {
    font-size: 17px
}

.dark-button {
    background: var(--ink)
}

footer {
    background: var(--ink);
    color: #a9b1b2;
    padding: 26px 7vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font: 10px var(--mono)
}

footer .logo {
    color: #fff;
    font-family: var(--jp);
    font-size: 20px
}

@media(max-width:760px) {
    .header {
        height: 70px;
        padding: 0 7vw
    }

    .logo {
        font-size: 24px
    }

    nav {
        display: none
    }

    .menu {
        display: flex;
        flex-direction: column;
        gap: 6px
    }

    .menu i {
        display: block;
        width: 24px;
        height: 1px;
        background: var(--ink)
    }

    nav.open {
        display: flex;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--paper);
        padding: 20px 7vw;
        flex-direction: column;
        gap: 10px;
        border-bottom: 1px solid var(--line)
    }

    .hero {
        display: block;
        padding: 70px 7vw;
        min-height: 0
    }

    .hero h1 {
        font-size: 49px
    }

    .hero-visual {
        height: 330px;
        margin-top: 50px
    }

    .visual-window {
        width: 300px;
        height: 235px;
        left: 4%;
        top: 45px
    }

    .code {
        font-size: 12px;
        padding: 20px
    }

    .orbit {
        width: 310px;
        height: 150px;
        left: 0
    }

    .o2 {
        left: 18%
    }

    .section,
    .statement,
    .contact {
        padding: 85px 7vw
    }

    .section-head,
    .statement {
        display: block
    }

    .section-head>p:last-child {
        margin-top: 28px
    }

    .cap-grid {
        display: block;
        margin-top: 45px
    }

    .cap-grid article {
        margin-bottom: 14px;
        min-height: 0
    }

    .record-head {
        display: block
    }

    .record-head>p {
        margin-top: 25px
    }

    .record-list {
        margin-top: 42px
    }

    .record-list>div {
        grid-template-columns: 38px 1fr 25px
    }

    .record-list p {
        grid-column: 2/3
    }

    .record-list h3 {
        font-size: 16px
    }

    .statement-shape {
        width: 120px;
        height: 120px;
        font-size: 55px;
        right: -18px;
        top: 12px
    }

    .statement>div:last-child {
        padding-top: 35px
    }

    .process h2 {
        margin-bottom: 45px
    }

    .process-grid {
        display: block
    }

    .process-grid>div {
        padding: 22px 0;
        border-bottom: 1px solid var(--line)
    }

    footer {
        padding: 23px 7vw;
        gap: 14px;
        flex-wrap: wrap
    }

    footer span:last-child {
        display: none
    }
}

:root {
    --logo-image: url('assets/potest-logo.png')
}

.logo {
    display: block;
    width: 138px;
    height: 52px;
    background: var(--logo-image) center/contain no-repeat;
    font-size: 0;
    letter-spacing: 0
}

.logo span {
    display: none
}

footer .logo {
    width: 112px;
    height: 42px
}

.philosophy {
    padding: 125px 10vw;
    background: #fff4e8
}

.philosophy h2,
.company-overview h2 {
    font: 800 clamp(39px, 5vw, 64px)/1.2 var(--display);
    letter-spacing: -.08em;
    margin: 0;
    color: var(--ink)
}

.philosophy h2 span {
    color: var(--orange)
}

.philosophy p:last-child {
    margin: 35px 0 0;
    color: var(--muted);
    font-size: 16px
}

.company-overview {
    padding: 125px 10vw;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 10vw;
    background: #f0f1ed
}

.company-table {
    border-top: 1px solid #cbd0cb
}

.company-table div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #cbd0cb
}

.company-table dt {
    font: 11px var(--mono);
    color: var(--orange)
}

.company-table dd {
    margin: 0;
    font-size: 14px
}

.process-grid {
    grid-template-columns: repeat(4, 1fr)
}

.header .logo,
footer .logo {
    position: relative;
    overflow: visible;
}

.header .logo::after,
footer .logo::after {
    content: '株式会社';
    position: absolute;
    left: 0;
    top: -8px;
    color: var(--ink);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    white-space: nowrap;
}

/* Contact section - restore completed layout */
.contact h2 span {
    color: #fff;
}

/* Honeypot field: keep it in the form, never show it to visitors */
.contact-form .hp-field,
input.hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 18px;
    max-width: 700px;
    margin-top: 42px;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 13px;
    font-weight: 700;
}

.contact-form label:nth-of-type(3),
.contact-form label:nth-of-type(4) {
    grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 0;
    border-radius: 3px;
    padding: 15px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    box-sizing: border-box;
}

.contact-form textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-form .cf-turnstile {
    grid-column: 1;
    align-self: start;
}

.contact-form .dark-button {
    grid-column: 2;
    width: 100%;
    align-self: start;
    margin-top: 0;
}

.contact-form .form-status {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    line-height: 1.7;
}

@media (min-width: 761px) {
    .contact-form .form-status {
        white-space: nowrap;
    }
}

@media (max-width: 760px) {
    .contact-form {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .contact-form label,
    .contact-form .cf-turnstile,
    .contact-form .dark-button,
    .contact-form .form-status {
        grid-column: 1;
    }
}

/* Mobile navigation and company layout */
@media (max-width: 760px) {
    .menu {
        position: relative;
        width: 34px;
        height: 34px;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .menu i {
        position: absolute;
        left: 5px;
        width: 24px;
        height: 1px;
        background: var(--ink);
        transition: top .25s ease, transform .25s ease;
    }

    .menu i:first-child { top: 11px; }
    .menu i:last-child { top: 20px; }

    .menu[aria-expanded="true"] i:first-child {
        top: 15px;
        transform: rotate(45deg);
    }

    .menu[aria-expanded="true"] i:last-child {
        top: 15px;
        transform: rotate(-45deg);
    }

    nav.open {
        background: #fffaf2;
        padding: 8px 7vw 18px;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 24px rgba(29, 37, 44, .08);
    }

    nav.open a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 13px 0;
        border-bottom: 1px solid var(--line);
    }

    nav.open a::before {
        content: '↗';
        color: var(--orange);
        font-family: var(--mono);
        font-size: 13px;
    }

    nav.open a:last-child {
        color: var(--orange);
        border-bottom: 0;
    }

    .company-overview {
        display: block !important;
    }

    .company-overview > div {
        margin-bottom: 38px;
    }

    .company-table {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .company-table > div {
        display: grid !important;
        grid-template-columns: 88px minmax(0, 1fr) !important;
        gap: 16px !important;
        width: 100%;
        padding: 18px 0;
    }

    .company-table dt,
    .company-table dd {
        min-width: 0;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .company-table dd {
        line-height: 1.8;
    }
}

.process-intro {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 8vw;
    align-items: end;
    margin-bottom: 72px
}

.process-intro h2 {
    margin: 0
}

.process-intro h2 span {
    color: var(--orange)
}

.process-intro>p {
    max-width: 430px;
    color: var(--muted);
    line-height: 2;
    margin: 0
}

.rescue-flow {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line)
}

.flow-step {
    position: relative;
    min-height: 245px;
    padding: 28px 22px 28px 0;
    border-right: 1px solid var(--line)
}

.flow-step:not(:first-child) {
    padding-left: 22px
}

.flow-step:last-child {
    border-right: 0
}

.flow-step>b {
    display: block;
    color: var(--orange);
    font: 12px var(--mono);
    margin-bottom: 42px
}

.flow-step h3 {
    font-size: 28px;
    margin: 0 0 12px
}

.flow-step strong {
    display: block;
    font-size: 14px;
    line-height: 1.55
}

.flow-step p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    margin: 10px 0 0
}

.flow-line {
    position: absolute;
    top: 39px;
    right: -7px;
    width: 13px;
    height: 13px;
    border-top: 1px solid var(--orange);
    border-right: 1px solid var(--orange);
    transform: rotate(45deg);
    background: var(--paper);
    z-index: 1
}

.flow-final {
    background: var(--ink);
    color: #fff;
    padding-right: 22px
}

.flow-final p {
    color: rgba(255,255,255,.65)
}

@media(max-width:760px) {
    .process-intro {
        display: block;
        margin-bottom: 42px
    }

    .process-intro>p {
        margin-top: 28px
    }

    .rescue-flow {
        display: block;
        border-bottom: 0
    }

    .flow-step,
    .flow-step:not(:first-child) {
        min-height: 0;
        padding: 22px 0 22px 54px;
        border-right: 0;
        border-bottom: 1px solid var(--line)
    }

    .flow-step>b {
        position: absolute;
        left: 0;
        top: 25px;
        margin: 0
    }

    .flow-step h3 {
        font-size: 24px
    }

    .flow-line {
        top: auto;
        right: auto;
        left: 4px;
        bottom: -7px;
        transform: rotate(135deg)
    }

    .flow-final {
        padding-right: 0
    }
}
