﻿/*
Theme Name: SaiMasta / More...True
Theme URI: https://saimasta.net/
Author: SaiMasta
Description: SaiMasta Theme development base.
Version: 0.2.0
Text Domain: saimasta-theme
*/

:root {
    --saimasta-base-color: #000000;
}
/* =========================================================
 * More...True Theme Page Baseline
 *
 * The page notebook uses a maximum reference width of 1280px.
 * Individual blocks may be smaller inside this frame.
 * ========================================================= */
:root {
    --more-true-pc-width: 1280px;
}

.saimasta-top-page-area {
    width: 100%;
    max-width: var(--more-true-pc-width);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.saimasta-page-base {
    width: 100%;
    max-width: var(--more-true-pc-width);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--saimasta-base-color);
    color: #ffffff;
}

#saimasta-top-page {
    width: 100%;
    min-height: 100vh;
}

.saimasta-top-page-base {
    width: 100%;
    min-height: 100vh;
    background: var(--saimasta-base-color);
}

.saimasta-top-page-area {
    width: 100%;
    box-sizing: border-box;
}

.saimasta-top-page-header {
    min-height: 0;
}

.saimasta-top-page-content {
    min-height: 0;
}

.saimasta-top-page-end {
    min-height: 0;
}

.saimasta-top-page-footer {
    min-height: 0;
}
/*
 * More...True Canvas Base
 *
 * Canvas = page coordinate space.
 * Grid   = editing aid only.
 */

.saimasta-canvas {
    position: relative;
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
}

.saimasta-canvas-grid {
    position: absolute;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    background-image:
        linear-gradient(
            to right,
            rgba(255, 255, 255, 0.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.08) 1px,
            transparent 1px
        );
    background-size: 40px 40px;
}
/* =========================================================
 * More...True Basic Content Foundation v1
 *
 * Cocoonから採用するのは「固定ページ本文を成立させる基本機能」のみ。
 * Cocoon固有のブログレイアウト・装飾・SNS・広告等は持ち込まない。
 * ========================================================= */

/* --- Basic text flow --- */
body {
    line-height: 1.8;
    overflow-wrap: break-word;
}

/* --- Links --- */
a {
    text-decoration: underline;
}

/* --- Lists --- */
ol,
ul {
    padding-left: 40px;
}

ul {
    list-style-type: disc;
}

/* --- Horizontal rule --- */
hr {
    color: currentColor;
}

/* --- Figures / Images --- */
figure {
    margin: 0;
}

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

/* --- Tables --- */
table {
    margin-bottom: 20px;
    max-width: 100%;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

table th,
table td {
    position: relative;
    padding: 0.5em;
}

/* --- Gutenberg Image --- */
.wp-block-image .aligncenter {
    text-align: center;
}

.wp-block-image img {
    display: block;
}

.wp-block-image figcaption {
    margin: 0;
    word-break: break-all;
}

/* --- Gutenberg Button: functional foundation only --- */
.wp-block-button__link {
    cursor: pointer;
    display: inline-block;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
    word-break: break-word;
}

/* --- Gutenberg Code --- */
.wp-block-code code {
    white-space: pre;
}

/* --- Basic headings: semantic foundation only --- */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    line-height: 1.25;
    font-weight: bold;
}

/* --- Basic blockquote: structural foundation only --- */
.entry-content blockquote {
    position: relative;
}
/* =========================================================
 * More...True Basic Content Foundation v2
 *
 * WordPress Core Block structure foundation.
 * No Cocoon-specific decoration or blog layout.
 * ========================================================= */

/* --- Columns --- */
.wp-block-columns {
    display: flex;
    flex-wrap: nowrap;
    box-sizing: border-box;
}

/* --- Column --- */
.wp-block-column {
    min-width: 0;
    flex-basis: 0;
    flex-grow: 1;
    box-sizing: border-box;
}

/* --- Group --- */
.wp-block-group {
    box-sizing: border-box;
}

/* --- Columns: stacked on mobile --- */
@media (max-width: 781px) {
    .wp-block-columns {
        flex-wrap: wrap !important;
    }

    .wp-block-columns > .wp-block-column {
        flex-basis: 100% !important;
    }
}

