/* Align the hero, section content and footer to the same page grid. */
.okazaki-ai { --ok-unit: clamp(1px,.10627vw,1.36px); --ok-red: #ce0711; --ok-gutter: clamp(18px,5vw,64px); --ok-column: min(1120px, calc(100% - 2 * var(--ok-gutter))); --ok-section-space: clamp(40px,4.4vw,64px); }
.okazaki-ai .ai-main { background: #fff; color: #191919; }
.okazaki-ai :where(.ai-main) :where(h1,h2,h3,p,ul,ol,dl,dd) { margin: 0; }
.okazaki-ai .ai-main :is(ul,ol) { padding: 0; list-style: none; }
.okazaki-ai .ai-main :is(h1,h2,h3,b,strong) { color: inherit; }
.okazaki-ai .ok-wrap { width: var(--ok-column); margin-inline: auto; }
.okazaki-ai .ok-label { color: #bc0711; }
.okazaki-ai .ok-badge { display: inline-block; padding: calc(3 * var(--ok-unit)) calc(17 * var(--ok-unit)); border-radius: 99px; background: var(--ok-red); color: #fff; }
.ok-hero { position: relative; isolation: isolate; overflow: hidden; background: #101112; color: white; }
.okazaki-ai .ai-main .ok-hero img { filter: none; }
.ok-hero::before, .ok-hero::after, .ok-closing::after { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.ok-hero::before { z-index: -2; background: linear-gradient(128deg,#ffffff0c 0 13%,transparent 13%),radial-gradient(ellipse at 58% 28%,#253333,#16191a 45%,#111 78%); }
.ok-hero-photo { position: absolute; z-index: -1; inset: 0 0 0 53%; mask-image: linear-gradient(to right,transparent,#000 16%); }
.ok-hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ok-hero-credit { position: absolute; right: 0; bottom: 0; max-width: 100%; padding: 3px 8px; background: #141414de; color: white; font-size: 10px; line-height: 1.45; }
.ok-hero-credit a { color: inherit; text-decoration: underline; }
.ok-hero::after { left: 53%; background: linear-gradient(128deg,transparent 0 94%,#cf0710 94% 96%,#141516 96%); }
.ok-hero .ok-hero-inner { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: clamp(330px,32vw,448px); padding-block: clamp(28px,3.4vw,48px); }
.okazaki-ai .ok-hero h1 { margin: 8px 0; }
.ok-hero-copy { max-width: 56%; color: #fff; }
.okazaki-ai .ok-pillars { display: flex; gap: 8px; margin: 16px 0 20px; }
.ok-pillars li { display: flex; align-items: center; justify-content: center; gap: calc(7 * var(--ok-unit)); padding: calc(5 * var(--ok-unit)) calc(13 * var(--ok-unit)); border: 1px solid #a8a8a8; border-radius: calc(9 * var(--ok-unit)); background: #101010c4; color: #fff; }
.ok-pillars img { width: calc(25 * var(--ok-unit)); height: calc(22 * var(--ok-unit)); object-fit: contain; }
.ok-cta { display: inline-flex; position: relative; align-items: center; justify-content: center; gap: calc(9 * var(--ok-unit)); min-height: calc(45 * var(--ok-unit)); padding: 6px calc(32 * var(--ok-unit)); border: 1px solid white; border-radius: 99px; background: linear-gradient(#e40004,#cc0004); color: white !important; text-decoration: none; }
.ok-cta:hover { background: #b60008; }
.ok-cta:focus-visible { outline: 3px solid #48a2ed; outline-offset: 3px; }
.ok-cta::after { content: ''; position: absolute; right: calc(21 * var(--ok-unit)); width: .5em; height: .5em; border: solid white; border-width: 2px 2px 0 0; transform: rotate(45deg); }
.ok-hero .ok-cta { width: calc(365 * var(--ok-unit)); }
.ok-envelope { position: relative; width: 1.38em; height: .94em; overflow: hidden; background: white; border-radius: 1px; }
.ok-envelope::after { content: ''; position: absolute; left: 17%; top: -71%; width: 67%; height: 110%; border: solid #ce0005; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.ok-menu { display: flex; align-items: center; justify-content: center; min-height: 54px; background: #fff; border-bottom: 1px solid #e7e7e7; }
.ok-menu a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 4px clamp(12px,2.2vw,32px); color: #242424; text-decoration: none; }
.ok-menu a + a { background: linear-gradient(#d6d6d6,#d6d6d6) left center / 1px 16px no-repeat; }
.ok-menu a:hover { color: var(--ok-red); }
.ok-consult,.ok-problem { background: linear-gradient(110deg,#f6f7f8,#ebedf0 53%,#f1f2f4); }
.ok-consult { padding: clamp(28px,3.5vw,48px) 0; }
.okazaki-ai .ok-consult-panel { display: grid; grid-template-columns: minmax(0,1.33fr) minmax(0,1fr); align-items: center; gap: calc(14 * var(--ok-unit)); width: var(--ok-column); padding: calc(15 * var(--ok-unit)) calc(12 * var(--ok-unit)) calc(16 * var(--ok-unit)) calc(17 * var(--ok-unit)); border-radius: calc(16 * var(--ok-unit)); background: #fff; box-shadow: 0 3px 12px #28344212; }
.ok-diagnosis-heading { padding-left: calc(23 * var(--ok-unit)); }
.okazaki-ai .ok-diagnosis h2 { margin: calc(3 * var(--ok-unit)) 0; }
.ok-diagnosis-points { display: grid; grid-template-columns: 36% minmax(0,1fr); gap: calc(11 * var(--ok-unit)); align-items: stretch; margin-top: calc(13 * var(--ok-unit)); }
.ok-diagnosis-points img { display: block; width: 100%; height: calc(97 * var(--ok-unit)); object-fit: cover; border-radius: calc(8 * var(--ok-unit)); }
.ok-diagnosis-points ul { display: flex; flex-direction: column; justify-content: space-between; gap: 3px; }
.ok-diagnosis-points li { display: flex; gap: calc(7 * var(--ok-unit)); align-items: center; padding: calc(3 * var(--ok-unit)) calc(6 * var(--ok-unit)); border: 1px solid #efefef; border-radius: 5px; box-shadow: 0 1px 4px #0001; }
.ok-diagnosis-points li::before { content: ''; flex: 0 0 auto; width: .65em; height: 1.17em; margin: -.28em .2em 0 .25em; border: solid #df0006; border-width: 0 .27em .27em 0; transform: rotate(45deg); }
.ok-section-heading { text-align: center; }
.okazaki-ai .ok-section-heading .ok-label { margin-bottom: 6px; }
.ok-support, .ok-band { padding-block: var(--ok-section-space); }
.ok-band { background: white; }
.ok-band--muted { background: #f6f6f6; }
.ok-section-heading > p:last-child:not(.ok-label) { margin-top: 10px; color: #444; }
.ok-services { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(14px,1.6vw,24px); margin-top: 24px; }
.ok-services article { display: grid; grid-template-rows: auto auto 1fr; justify-items: center; align-content: start; padding: clamp(20px,2vw,30px) 14px; border: 1px solid #e5e5e5; border-radius: 12px; background: #f7f7f7; text-align: center; }
.ok-services img { width: 88px; height: 54px; object-fit: contain; mix-blend-mode: multiply; }
.okazaki-ai .ok-services h3 { margin: 12px 0 7px; }
.ok-services p { max-width: 25em; color: #404040; }
.ok-benefit { padding-block: var(--ok-section-space); background: #fafafa; border-block: 1px solid #ededed; }
.ok-benefit-inner { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.3fr); align-items: center; gap: clamp(24px,4vw,62px); }
.ok-benefit-heading { padding: 0; }
.okazaki-ai .ok-benefit-heading h2 { margin: 6px 0 12px; }
.ok-benefit-heading > p:last-child { color: #404040; }
.ok-benefits { display: grid; gap: 0; border-block: 1px solid #dcdcdc; }
.ok-benefits li { display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 3px 16px; padding: 13px 0; }
.ok-benefits li + li { border-top: 1px solid #dfdfdf; }
.ok-benefits img { grid-row: span 2; justify-self: center; width: 40px; height: 34px; object-fit: contain; mix-blend-mode: multiply; }
.ok-benefits p { grid-column: 2; color: #444; }
.ok-problem { padding-block: var(--ok-section-space); }
.okazaki-ai .ok-problems { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(12px,1.4vw,20px); margin-top: 24px; }
.ok-problems li { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; overflow: hidden; min-height: clamp(144px,14vw,178px); padding: 10px 8px 0; border-radius: 14px; background: #fff; }
.ok-problems p { position: relative; display: block; align-content: center; width: 92%; min-height: 4.8em; padding: 6px; border-radius: 50%; background: #f2f2f1; text-align: center; }
.ok-problems p::after { content: ''; position: absolute; left: 25%; bottom: -4px; width: 11px; height: 10px; background: #f0f0ef; clip-path: polygon(0 0,80% 0,100% 100%); }
.ok-problems img { display: block; max-width: 65%; width: auto; height: clamp(62px,6vw,78px); object-fit: contain; object-position: bottom; }
.ok-fees, .ok-flow, .ok-question-list, .ok-input-example, .ok-review-sheet { max-width: 920px; margin-inline: auto; }
.okazaki-ai .ok-fees {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    margin: 24px auto 0;
    padding: clamp(20px,2.5vw,34px) 0;
    border: 1px solid #dedede;
    border-radius: 12px;
    background: #fff;
}
.ok-fees > div { padding-inline: clamp(20px,3vw,42px); }
.ok-fees > div + div { border-left: 1px solid #ddd; }
.ok-fees dt { color: #333; }
.okazaki-ai .ok-fee-value { display: flex; align-items: baseline; gap: 3px; margin-block: 6px 10px; font-size: clamp(26px,2.45vw,38px); font-weight: 700; line-height: 1.3; }
.ok-fee-value--free { color: #b90814; }
.ok-fee-value--free strong { font-size: 1.22em; line-height: 1; font-variant-numeric: lining-nums; }
.ok-fee-value--free span { font-size: .7em; }
.ok-fee-note, .ok-flow li p { color: #444; font-size: max(14px,1rem); line-height: 1.75; }
.ok-flow { display: grid; grid-template-columns: minmax(160px,.64fr) minmax(0,1.85fr); align-items: start; gap: clamp(24px,4vw,60px); margin-top: clamp(28px,3.5vw,48px); }
.ok-flow-intro img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin-top: 16px; border-radius: 8px; }
.ok-flow li { position: relative; display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 18px; padding-bottom: 22px; }
.ok-flow li:last-child { padding-bottom: 0; }
.ok-flow li:not(:last-child)::before { content: ''; position: absolute; left: 17px; top: 36px; bottom: 0; border-left: 1px solid #bbb; }
.ok-flow-number { display: grid; place-items: center; align-self: start; height: 36px; border: 1px solid #c6c6c6; border-radius: 50%; color: #af0914; background: white; font-size: 16px; font-weight: 700; line-height: 1; }
.ok-flow li h4 { margin: 0; line-height: 1.5; }
.ok-flow li p { margin-top: 4px; }
.ok-question-list { margin-top: 24px; }
.ok-questions details { border-top: 1px solid #d2d2d2; }
.ok-questions details:last-child { border-bottom: 1px solid #d2d2d2; }
.ok-questions summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding-block: 12px; cursor: pointer; list-style: none; }
.ok-questions summary::-webkit-details-marker { display: none; }
.ok-questions summary::after { content: '+'; flex-shrink: 0; color: var(--ok-red); font: 700 calc(17 * var(--ok-unit))/1 sans-serif; }
.ok-questions details[open] summary::after { content: '−'; }
.ok-questions details p { padding: 0 22px 16px 0; color: #444; }
.ok-closing { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #18191b; }
.ok-closing-photo { position: absolute; inset: 0 0 0 40%; z-index: -2; }
.ok-closing-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: right top; }
.ok-closing-photo--aichi img { object-position: center 27%; }
.ok-closing-photo--toukai img { object-position: center 48%; }
.ok-closing::after { background: linear-gradient(116deg,#151619 29%,#191a1df7 43%,#161719d9 52%,#ca0711 52.1%,#ca0711 52.5%,transparent 52.6%); }
.ok-closing .ok-wrap { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; gap: 24px; padding-block: clamp(28px,3vw,48px); }
.okazaki-ai .ok-closing h2 { margin: 8px 0; }
.ok-closing h2 span { display: inline-block; }
.ok-closing .ok-cta { justify-self: end; padding-inline: 36px 44px; min-height: 50px; }
.ok-fixed { display: none; }

.ok-pilot-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(14px,1.6vw,24px); margin-top: 24px; }
.ok-pilot-list li { padding: clamp(18px,2vw,28px); background: #f7f7f7; border: 1px solid #e5e5e5; border-radius: 12px; }
.ok-pilot-list strong { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ok-pilot-list strong::before { content: ''; flex: none; width: 12px; height: 7px; transform: rotate(-45deg); border: solid var(--ok-red); border-width: 0 0 2px 2px; }
.ok-input-example { margin-top: 24px; padding: 4px clamp(16px,2.5vw,32px); background: white; border: 1px solid #e5e5e5; border-radius: 12px; }
.ok-input-example > div { display: grid; grid-template-columns: 7em minmax(0,1fr); gap: 12px; padding: 14px 0; }
.ok-input-example > div + div { border-top: 1px solid #ddd; }
.ok-input-example dt { font-weight: 700; }
.ok-review-sheet { margin-block: 24px 0; padding: clamp(18px,2.5vw,32px); background: #fafafa; border: 1px solid #e5e5e5; border-radius: 12px; }
.ok-review-sheet figcaption { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; }
.ok-review-sheet figcaption span { color: #555; }
.ok-review-sheet table { width: 100%; border-collapse: collapse; margin: 14px 0; font-variant-numeric: tabular-nums; }
.okazaki-ai :is(.ok-review-sheet,.ok-sample-output) :is(th,td) { display: table-cell; }
.ok-review-sheet :is(th,td) { padding: 7px 8px; border-block-end: 1px solid #ddd; text-align: right; }
.ok-review-sheet tr > :first-child { text-align: left; }
.ok-review-sheet thead { background: #f4f4f4; }
.ok-review-sheet tfoot { color: #a50916; font-weight: 700; }
@media (max-width: 860px) {
    .okazaki-ai { --ok-unit: 1px; --ok-section-space: 36px; }
    .okazaki-ai .ok-consult-panel { grid-template-columns: minmax(0,1fr); gap: 20px; padding: 18px 14px 14px; }
    .ok-diagnosis-heading { padding: 0; }
    .ok-diagnosis-points { grid-template-columns: 28% 1fr; gap: 7px; }
    .ok-diagnosis-points img { height: 100%; min-height: 87px; }
    .ok-benefit-inner { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 22px; }
    .ok-services article { padding: 20px 12px; }
    .ok-services p br { display: none; }
    .ok-closing .ok-wrap { gap: 16px; }
}
@media (max-width: 700px) {
    .okazaki-ai { --ok-section-space: 34px; }
    .ok-hero-photo { left: 0; mask-image: none; }
    .ok-hero::after { left: 0; background: linear-gradient(90deg,#121212eb 4%,#141414c9 46%,#14141470); }
    .ok-hero-copy { max-width: 100%; }
    .ok-hero .ok-hero-inner { min-height: 0; padding-block: 32px; }
    .okazaki-ai .ok-hero h1 { margin-block: 10px; }
    .ok-hero[data-region="toukai"] h1 { letter-spacing: -.052em; }
    .okazaki-ai .ok-pillars { gap: 5px; flex-wrap: wrap; margin: 16px 0 20px; }
    .ok-pillars li { padding: 5px 7px; gap: 4px; }
    .ok-pillars img { width: 17px; height: 17px; }
    .ok-hero .ok-cta, .ok-closing .ok-cta { width: min(100%,365px); min-height: 48px; }
    .ok-menu { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
    .ok-menu a:nth-child(4) { background: none; }
    .ok-menu a:nth-child(n+4) { border-top: 1px solid #eee; }
    .ok-menu a { flex: 1; padding: 4px 2px; }
    .ok-section-heading { text-align: left; }
    .ok-services { grid-template-columns: minmax(0,1fr); gap: 10px; margin-top: 18px; }
    .ok-services article { grid-template-columns: 54px minmax(0,1fr); grid-template-rows: auto auto; justify-items: start; align-items: center; gap: 4px 14px; padding: 18px 16px; text-align: left; }
    .ok-services img { grid-row: span 2; width: 54px; height: 42px; }
    .okazaki-ai .ok-services h3 { margin: 0; }
    .ok-benefit-inner { grid-template-columns: minmax(0,1fr); gap: 18px; }
    .ok-benefit-heading > p:last-child br { display: none; }
    .ok-benefits li { gap: 4px 12px; padding-block: 14px; }
    .okazaki-ai .ok-problems { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 18px; }
    .ok-problems li { min-height: 129px; padding: 8px 4px 0; }
    .ok-problems p { width: 100%; }
    .ok-problems img { height: 56px; }
    .ok-pilot-list { grid-template-columns: minmax(0,1fr); gap: 10px; }
    .ok-input-example > div { grid-template-columns: minmax(0,1fr); gap: 2px; }
    .okazaki-ai .ok-fees { grid-template-columns: minmax(0,1fr); padding: 0 18px; }
    .ok-fees > div { padding: 18px 0; }
    .ok-fees > div + div { border-left: 0; border-top: 1px solid #ddd; }
    .ok-flow { grid-template-columns: minmax(0,1fr); gap: 20px; }
    .ok-flow-intro img { display: none; }
    .ok-flow li { gap: 12px; }
    .ok-closing .ok-wrap { grid-template-columns: minmax(0,1fr); padding-block: 30px; }
    .ok-closing .ok-cta { justify-self: start; }
    .ok-closing-photo { left: 0; }
    .ok-closing::after { background: linear-gradient(90deg,#141414ed 3%,#151515dc 48%,#14141488); }
}
@media (max-width: 767px) {
    .ok-fixed:not([hidden]) { display: flex; position: fixed; z-index: 900; inset: auto var(--ok-gutter) calc(8px + env(safe-area-inset-bottom)); width: auto; min-height: 48px; box-shadow: 0 2px 10px #0003; }
    .ok-fixed span { display: none; }
    .sp-menu-open .ok-fixed:not([hidden]) { display: none; }
}
@media (max-width: 370px) {
    .ok-pillars li { padding-inline: 5px; }
    .ok-services article { gap: 4px 10px; padding-inline: 12px; }
}

/* The shared site header is fixed at these two heights. */
.okazaki-ai .ai-main { padding-top: 96px; }
@media (max-width: 767px) {
    body.okazaki-ai { padding-bottom: 0; }
    body.okazaki-ai:not(.sp-menu-open) .sp-header-list { box-shadow: none; }
    .okazaki-ai .ai-main { padding-top: 72px; }
}
