/*
Theme Name: Ring Auto One Page
Theme URI: http://ring-auto.local/
Author: Ring Auto
Description: 事故対応を主軸にした、モバイルファーストのシンプルな1ページテーマ。
Version: 1.1.1
Text Domain: ring-auto-onepage
*/

:root {
    --ink: #262626;
    --ink-soft: #555555;
    --paper: #f4f4f4;
    --white: #ffffff;
    --line: #d8d8d8;
    --line-dark: #4a4a4a;
    --signal: #303030;
    --signal-dark: #222222;
    --line-green: #4a4a4a;
    --container: 1180px;
    --ease: cubic-bezier(.2,.75,.25,1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Noto Sans JP", "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

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

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

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

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

a:focus-visible,
button:focus-visible {
    outline: 3px solid #666666;
    outline-offset: 4px;
}

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

.site-container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 9999;
    top: 10px;
    left: 10px;
    padding: 10px 16px;
    color: var(--white);
    background: var(--ink);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.section-kicker {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--signal);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    line-height: 1.4;
}

.section-kicker::before {
    width: 26px;
    height: 2px;
    background: currentColor;
    content: "";
}

.section-kicker--light {
    color: #c8c8c8;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 44px;
}

.section-heading h2,
.shop h2,
.contact h2 {
    margin-bottom: 22px;
    font-size: clamp(34px, 5vw, 62px);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1.25;
}

.section-heading > p:last-child,
.shop__intro > p:last-child {
    max-width: 600px;
    margin-bottom: 0;
    color: var(--ink-soft);
    line-height: 2;
}

.section-heading--split {
    display: grid;
    max-width: none;
    gap: 30px;
}

.section-heading--split h2 {
    margin-bottom: 0;
}

.section-heading--split > p {
    align-self: end;
    margin-bottom: 4px;
}

/* Emergency strip and header */
.emergency-bar {
    color: var(--white);
    background: var(--signal);
    font-size: 12px;
    font-weight: 700;
}

.emergency-bar__inner {
    display: flex;
    min-height: 38px;
    gap: 14px;
    align-items: center;
    justify-content: center;
}

.emergency-bar__label {
    padding-right: 14px;
    border-right: 1px solid rgb(255 255 255 / 45%);
}

.emergency-bar a {
    border-bottom: 1px solid currentColor;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    letter-spacing: .04em;
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid var(--line);
    background: rgb(244 244 244 / 94%);
    backdrop-filter: blur(12px);
}

.site-header__inner {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1;
}

.brand__eyebrow {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .3em;
}

.brand__name {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -.045em;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.4vw, 36px);
    margin-left: auto;
    margin-right: clamp(18px, 3vw, 44px);
    font-size: 13px;
    font-weight: 700;
}

.desktop-nav a {
    position: relative;
}

.desktop-nav a::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    background: var(--signal);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .25s var(--ease);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-call {
    display: flex;
    min-width: 174px;
    padding: 10px 17px;
    color: var(--white);
    background: var(--ink);
    flex-direction: column;
    line-height: 1.25;
    transition: background .2s ease;
}

.header-call:hover {
    background: var(--signal);
}

.header-call span {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
}

.header-call strong {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    letter-spacing: .02em;
}

/* Hero */
.hero {
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.hero__grid {
    display: grid;
    min-height: min(730px, calc(100vh - 120px));
    padding-top: clamp(58px, 8vw, 104px);
    padding-bottom: clamp(54px, 7vw, 88px);
    gap: 68px;
    align-items: center;
}

.hero__copy {
    max-width: 760px;
}

.hero h1 {
    margin-bottom: 26px;
    font-size: clamp(44px, 7vw, 86px);
    font-weight: 850;
    letter-spacing: -.07em;
    line-height: 1.12;
}

.hero h1 em {
    color: var(--signal);
    font-style: normal;
}

.hero__lead {
    max-width: 650px;
    margin-bottom: 30px;
    color: var(--ink-soft);
    font-size: clamp(15px, 1.5vw, 18px);
    font-weight: 500;
    line-height: 2;
}

.hero__actions {
    display: grid;
    max-width: 650px;
    gap: 10px;
}

.button {
    display: flex;
    min-height: 76px;
    padding: 13px 20px;
    border: 1px solid transparent;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    border-radius: 8px;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s var(--ease);
}

a.button:hover {
    transform: translateY(-2px);
}

.button--primary {
    color: var(--white);
    background: var(--signal);
}

.button--primary:hover {
    background: var(--signal-dark);
}

.button--line {
    border-color: var(--ink);
    background: transparent;
}

a.button--line:hover {
    color: var(--white);
    background: var(--ink);
}

.button.is-disabled {
    cursor: not-allowed;
    opacity: .45;
}

.button__small {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
}

.button__main {
    font-family: Arial, "Yu Gothic", sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.25;
}

.hero__note {
    margin: 12px 0 0;
    color: var(--ink-soft);
    font-size: 11px;
}

.first-actions {
    overflow: hidden;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 18px 48px rgb(0 0 0 / 7%);
}

.first-actions__brand {
    display: flex;
    min-height: 126px;
    padding: 14px 24px;
    align-items: center;
    justify-content: center;
    background: #080808;
}

.first-actions__brand img {
    width: min(100%, 210px);
    height: auto;
}

.first-actions__head {
    display: flex;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
}

.first-actions__head strong {
    color: var(--signal);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    letter-spacing: .14em;
}

.first-actions ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.first-actions li {
    display: grid;
    padding: 22px 18px;
    border-bottom: 1px solid var(--line);
    gap: 18px;
    grid-template-columns: 44px 1fr;
    align-items: center;
}

.first-actions li:last-child {
    border-bottom: 0;
}

.first-actions__number {
    color: var(--signal);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
    font-weight: 900;
}

.first-actions li div {
    display: flex;
    flex-direction: column;
}

.first-actions li strong {
    font-size: 16px;
    line-height: 1.5;
}

.first-actions li small {
    color: var(--ink-soft);
    font-size: 11px;
    line-height: 1.6;
}

.hero__rail {
    display: flex;
    min-width: max-content;
    min-height: 40px;
    border-top: 1px solid var(--line);
    align-items: center;
    justify-content: space-around;
    color: #777777;
    background: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
}

.hero__rail span {
    display: flex;
    align-items: center;
}

.hero__rail span::after {
    width: 4px;
    height: 4px;
    margin-left: 4vw;
    border-radius: 50%;
    background: var(--signal);
    content: "";
}

/* A friendly, local-shop welcome */
.welcome {
    padding-block: clamp(34px, 5vw, 64px);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.welcome__panel {
    display: grid;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid var(--line);
    border-radius: 16px;
    gap: 32px;
    background: var(--white);
    box-shadow: 0 16px 48px rgb(0 0 0 / 5%);
}

.welcome__heading h2 {
    margin-bottom: 0;
    font-size: clamp(31px, 4.5vw, 52px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.35;
}

.welcome__body {
    align-self: end;
}

.welcome__body > p {
    margin-bottom: 22px;
    color: var(--ink-soft);
    line-height: 2;
}

.welcome__body ul {
    display: flex;
    margin: 0;
    padding: 0;
    gap: 8px;
    flex-wrap: wrap;
    list-style: none;
}

.welcome__body li {
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-soft);
    background: var(--paper);
    font-size: 11px;
    font-weight: 700;
}

/* Accident */
.accident {
    padding-block: clamp(78px, 10vw, 138px);
    color: var(--white);
    background: var(--ink);
}

.accident .section-heading > p:last-child {
    color: #b8b8b8;
}

.accident-flow {
    margin: 0 0 58px;
    padding: 0;
    border-top: 1px solid var(--line-dark);
    list-style: none;
}

.accident-flow li {
    display: grid;
    padding: 26px 0;
    border-bottom: 1px solid var(--line-dark);
    gap: 20px;
    grid-template-columns: 50px 1fr;
    align-items: center;
    transition: padding-left .25s var(--ease), background .25s ease;
}

.accident-flow li:hover {
    padding-left: 10px;
    background: #303030;
}

.accident-flow__number {
    color: #c8c8c8;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 900;
}

.accident-flow h3 {
    margin-bottom: 4px;
    font-size: clamp(20px, 2.4vw, 28px);
    line-height: 1.4;
}

.accident-flow p {
    margin-bottom: 0;
    color: #aaaaaa;
    font-size: 13px;
}

.accident-cta {
    display: grid;
    padding: 25px;
    border: 1px solid #555555;
    gap: 24px;
    align-items: center;
    background: #373737;
    border-radius: 10px;
}

.accident-cta div {
    display: flex;
    flex-direction: column;
}

.accident-cta div span {
    color: #aaaaaa;
    font-size: 11px;
}

.accident-cta div strong {
    font-size: 20px;
}

.accident-cta a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #e0e0e0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(23px, 4vw, 36px);
    font-weight: 900;
    line-height: 1;
}

.accident-cta a span {
    transition: transform .2s ease;
}

.accident-cta a:hover span {
    transform: translateX(5px);
}

/* Services */
.services {
    padding-block: clamp(78px, 10vw, 136px);
    background: var(--paper);
}

.service-list {
    display: grid;
    border-top: 1px solid var(--ink);
}

.service-list article {
    position: relative;
    min-height: 210px;
    padding: 26px 4px 28px;
    border-bottom: 1px solid var(--line);
}

.service-list article > span {
    display: block;
    margin-bottom: 30px;
    color: var(--signal);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 900;
}

.service-list h3 {
    margin-bottom: 10px;
    font-size: 23px;
    letter-spacing: -.03em;
}

.service-list p {
    max-width: 320px;
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.85;
}

/* Reasons */
.reasons {
    padding-block: clamp(78px, 10vw, 136px);
    border-top: 1px solid var(--line);
    background: var(--white);
}

.reason-list {
    display: grid;
    gap: 10px;
}

.reason-list article {
    padding: 30px 26px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
}

.reason-list__number {
    display: block;
    margin-bottom: 50px;
    color: var(--signal);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 900;
}

.reason-list h3 {
    margin-bottom: 16px;
    font-size: 22px;
    letter-spacing: -.035em;
}

.reason-list p {
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.95;
}

/* Shop */
.shop {
    padding-block: clamp(78px, 10vw, 136px);
    border-top: 1px solid var(--line);
    background: var(--paper);
}

.shop__grid {
    display: grid;
    gap: 48px;
}

.shop__intro h2 {
    margin-bottom: 26px;
}

.shop__details {
    margin: 0;
    border-top: 1px solid var(--ink);
}

.shop__details div {
    display: grid;
    padding: 21px 0;
    border-bottom: 1px solid var(--line);
    gap: 16px;
    grid-template-columns: 86px 1fr;
}

.shop__details dt {
    color: #777777;
    font-size: 11px;
    font-weight: 700;
}

.shop__details dd {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.8;
}

.shop__details dd a {
    border-bottom: 1px solid var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 800;
}

.map-link {
    display: flex;
    min-height: 132px;
    padding: 24px;
    border: 1px solid var(--ink);
    align-items: flex-end;
    justify-content: space-between;
    border-radius: 12px;
    background: var(--white);
    transition: color .2s ease, background .2s ease;
}

.map-link:hover {
    color: var(--white);
    background: var(--ink);
}

.map-link > span {
    font-size: 12px;
    font-weight: 700;
}

.map-link strong {
    display: flex;
    gap: 10px;
    align-items: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 32px;
    letter-spacing: -.04em;
}

.map-link b {
    color: var(--signal);
    font-weight: inherit;
}

.map-link:hover b {
    color: var(--white);
}

/* Contact */
.contact {
    padding-block: clamp(78px, 10vw, 136px);
    color: var(--white);
    background: #3a3a3a;
}

.contact .section-kicker {
    color: var(--white);
    opacity: .75;
}

.contact h2 {
    margin-bottom: 24px;
    font-size: clamp(46px, 8vw, 92px);
    line-height: 1.12;
}

.contact__inner > p:not(.section-kicker) {
    max-width: 620px;
    margin-bottom: 40px;
    color: rgb(255 255 255 / 80%);
}

.contact__actions {
    display: grid;
    gap: 10px;
}

.contact__phone,
.contact__line {
    display: flex;
    min-height: 150px;
    padding: 24px;
    border: 1px solid rgb(255 255 255 / 55%);
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 10px;
    transition: color .2s ease, background .2s ease, transform .2s var(--ease);
}

a.contact__phone:hover,
a.contact__line:hover {
    color: var(--ink);
    background: var(--white);
    transform: translateY(-3px);
}

.contact__actions span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
}

.contact__actions strong {
    font-family: Arial, "Yu Gothic", sans-serif;
    font-size: clamp(28px, 4.2vw, 46px);
    letter-spacing: -.035em;
    line-height: 1.2;
}

.contact__actions small {
    margin-top: 8px;
    font-size: 10px;
    opacity: .7;
}

.contact__line.is-disabled {
    cursor: not-allowed;
    opacity: .45;
}

/* Footer */
.site-footer {
    padding-block: 40px 100px;
    color: #aaaaaa;
    background: #222222;
}

.site-footer__inner {
    display: grid;
    gap: 18px;
    align-items: end;
}

.footer-brand {
    display: flex;
    color: var(--white);
    flex-direction: column;
    line-height: 1;
}

.footer-brand strong {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -.045em;
}

.site-footer p {
    margin-bottom: 0;
    font-size: 11px;
}

.site-footer__copyright {
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: .04em;
}

.mobile-actions {
    position: fixed;
    z-index: 500;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    min-height: 70px;
    box-shadow: 0 -8px 24px rgb(0 0 0 / 14%);
    grid-template-columns: 1fr 1fr;
}

.mobile-actions > * {
    display: flex;
    padding: 10px 12px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    line-height: 1.2;
}

.mobile-actions span span,
.mobile-actions a span {
    font-size: 9px;
    font-weight: 700;
}

.mobile-actions strong {
    font-size: 15px;
}

.mobile-actions__phone {
    color: var(--white);
    background: var(--signal);
}

.mobile-actions__line {
    color: var(--white);
    background: var(--line-green);
}

.mobile-actions__line.is-disabled {
    background: #777777;
}

.generic-page {
    min-height: 65vh;
    padding-block: 90px;
}

.generic-page__inner {
    max-width: 800px;
}

.generic-page h1 {
    font-size: clamp(34px, 6vw, 58px);
}

@media (min-width: 640px) {
    .hero__actions {
        grid-template-columns: 1.15fr .85fr;
    }

    .service-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-list article:nth-child(odd) {
        padding-right: 28px;
        border-right: 1px solid var(--line);
    }

    .service-list article:nth-child(even) {
        padding-left: 28px;
    }

    .reason-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact__actions {
        grid-template-columns: 1.2fr .8fr;
    }

    .site-footer__inner {
        grid-template-columns: 1fr auto auto;
    }
}

@media (min-width: 900px) {
    .hero__grid {
        gap: clamp(58px, 7vw, 100px);
        grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr);
    }

    .first-actions {
        align-self: stretch;
        display: flex;
        max-height: 550px;
        margin-block: auto;
        flex-direction: column;
        justify-content: center;
    }

    .welcome__panel {
        gap: 72px;
        grid-template-columns: .85fr 1.15fr;
    }

    .section-heading--split {
        grid-template-columns: 1.2fr .8fr;
    }

    .accident-flow li {
        min-height: 106px;
        grid-template-columns: 70px 1fr;
    }

    .accident-flow li div {
        display: grid;
        gap: 30px;
        grid-template-columns: minmax(250px, .8fr) 1fr;
        align-items: center;
    }

    .accident-flow p {
        font-size: 14px;
    }

    .accident-cta {
        padding: 30px 36px;
        grid-template-columns: 1fr auto;
    }

    .service-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .service-list article {
        padding-right: 30px;
        padding-left: 30px;
        border-right: 1px solid var(--line);
    }

    .service-list article:nth-child(3n + 1) {
        padding-left: 4px;
    }

    .service-list article:nth-child(3n) {
        padding-right: 4px;
        border-right: 0;
    }

    .reason-list article {
        padding: 34px;
    }

    .shop__grid {
        gap: 38px 70px;
        grid-template-columns: .8fr 1.2fr;
    }

    .shop__intro {
        grid-row: span 2;
    }

    .map-link {
        grid-column: 2;
    }

    .site-footer {
        padding-bottom: 40px;
    }

    .mobile-actions {
        display: none;
    }
}

@media (max-width: 899px) {
    body.admin-bar .site-header {
        top: 46px;
    }

    .desktop-nav,
    .header-call {
        display: none;
    }

    .site-header__inner {
        min-height: 68px;
    }

    .emergency-bar__inner {
        justify-content: space-between;
    }

    .emergency-bar__inner > span:not(.emergency-bar__label) {
        display: none;
    }

    .hero__grid {
        min-height: auto;
    }

    .first-actions__brand {
        min-height: 142px;
    }

    .hero__rail {
        justify-content: flex-start;
        gap: 34px;
        padding-inline: 20px;
    }

    .hero__rail span::after {
        margin-left: 34px;
    }
}

@media (max-width: 639px) {
    .site-container {
        width: min(calc(100% - 32px), var(--container));
    }

    .emergency-bar__inner {
        min-height: 36px;
        font-size: 10px;
    }

    .emergency-bar__label {
        padding-right: 9px;
    }

    .emergency-bar a {
        font-size: 12px;
    }

    .hero h1 {
        font-size: clamp(42px, 13vw, 60px);
    }

    .section-heading--split {
        gap: 20px;
    }

    .reason-list__number {
        margin-bottom: 34px;
    }

    .shop__details div {
        grid-template-columns: 76px 1fr;
    }
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
