/* AIおにぎり屋 v2.3 | layout.css */
/* AIおにぎり屋：トップページ専用（モニター・キーボード） */

.ao-home {
    max-width: 820px;
    margin: 24px auto;
    color: #303030;
    font-family: system-ui, sans-serif;
}

.ao-home * {
    box-sizing: border-box;
}

.ao-home [hidden],
.ao-home .ao-key[hidden] {
    display: none !important;
}

.ao-home .ao-monitor {
    background: #353535;
    padding: 12px;
    border-radius: 18px;
}

.ao-home .ao-screen {
    background: #fff;
    border-radius: 9px;
    min-height: 280px;
    padding: 24px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ao-home .ao-logo {
    width: 110px;
    height: auto;
    margin: 0 auto 8px;
}

.ao-home .ao-name {
    font-size: clamp(24px,5vw,38px);
    font-weight: 750;
    margin: 0;
}

.ao-home .ao-tagline {
    font-size: clamp(14px,3vw,21px);
    font-weight: 700;
    margin: 8px 0;
}

.ao-home .ao-message {
    font-size: 14px;
    line-height: 1.8;
    margin: 8px 0 0;
}

.ao-home .ao-led {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #bdbdbd;
    margin: 9px auto 0;
}

.ao-home .ao-stand {
    width: 50px;
    height: 22px;
    background: #777777;
    margin: auto;
}

.ao-home .ao-foot {
    width: 130px;
    height: 7px;
    background: #555555;
    border-radius: 5px;
    margin: 0 auto 22px;
}

.ao-home .ao-keyboard {
    padding: 14px;
    background: #e3e3e3;
    border: 1px solid #cccccc;
    border-radius: 15px;
    box-shadow: 0 5px 0 #bbbbbb;
}

.ao-home .ao-keys {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-flow: row;
    align-items: stretch;
    gap: 10px;
    margin: 0 0 15px;
}

.ao-home .ao-modes {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

/* WordPress の自動段落がキーを包んでも、各キーを独立したグリッド項目にする。 */
.ao-home .ao-keys > p:not([hidden]) {
    display: contents !important;
}

.ao-home .ao-keys > br,
.ao-home .ao-keys > p > br,
.ao-home .ao-keys > p:empty {
    display: none !important;
}

.ao-home .ao-key {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    float: none !important;
    grid-column: auto !important;
    grid-row: auto !important;
    min-height: 92px;
    padding: 12px 4px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    color: #303030;
    background: #fff;
    border: 1px solid #bdbdbd;
    border-radius: 9px;
    box-shadow: 0 5px 0 #adadad;
    text-decoration: none;
    cursor: pointer;
    overflow-wrap: anywhere;
    transition: transform .12s,box-shadow .12s;
}

.ao-home .ao-key:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 #adadad;
}

.ao-home .ao-key:focus-visible {
    outline: 3px solid #333333;
    outline-offset: 3px;
}

.ao-home .ao-key small {
    font-weight: 400;
    font-size: 11px;
    margin-top: 4px;
}

.ao-home .ao-symbol {
    font-size: 25px;
    line-height: 1.2;
    margin-bottom: 6px;
}

.ao-home .ao-mode {
    min-height: 55px;
    background: #f5f5f5;
}

.ao-home .ao-mode[data-ao-mode="adult"] {
    background: #eeeeee;
}

.ao-home .ao-mode[aria-pressed="true"] {
    border: 2px solid #333333;
    background: #333333;
    color: #ffffff;
}

.ao-home .ao-mini {
    min-height: 46px;
    font-size: 13px;
    background: #f6f6f6;
}

.ao-home .ao-pending {
    color: #555555;
    background: #f3f3f3;
    cursor: default;
}

.ao-home .ao-label {
    font-size: 12px;
    margin: 0 0 8px;
    color: #555555;
}

.ao-home .ao-below {
    margin-top: 28px;
    line-height: 1.8;
}

.ao-home .ao-below h2 {
    font-size: 19px;
    color: #303030 !important;
    background: none !important;
    border: 0 !important;
    border-bottom: 2px solid #555555 !important;
    box-shadow: none !important;
    padding: 0 0 8px;
}

.ao-home .ao-below h2::before,
.ao-home .ao-below h2::after {
    content: none !important;
}

.ao-home .ao-below a {
    color: #303030;
    text-decoration: underline;
}

@media (max-width:480px) {
    .ao-home .ao-keyboard {
        padding: 9px;
    }

    .ao-home .ao-keys {
        gap: 7px;
    }

    .ao-home .ao-key {
        font-size: 12px;
        min-height: 83px;
    }

    .ao-home .ao-mode,.ao-home .ao-mini {
        min-height: 48px;
    }

    .ao-home .ao-screen {
        min-height: 250px;
    }
}

@media (prefers-reduced-motion:reduce) {
    .ao-home .ao-key {
        transition: none;
    }
}
