/*
Theme Name: Makoa
Theme URI: https://romanfink.com/makoa
Author: Roman Fink
Author URI: https://romanfink.com
Description: Makoa is a minimalist theme for personal websites. Create your perfect website with just a few clicks, and share all the awesome things you do with the world! 
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.5
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Text Domain: makoa
Tags: one-column, custom-colors, custom-menu, editor-style, full-site-editing, block-patterns, block-styles, blog, portfolio

*/

/* --- Navigation on mobile --- */

@media (max-width: 767px) {

    header .wp-block-navigation {
        justify-content: flex-end;
    }

    .wp-site-blocks > .wp-block-group:first-child {
        padding-top: 0 !important;
    }
    
}

/* --- Navigation fix --- */

.wp-block-navigation__container > .wp-block-navigation-item:last-child {
    flex: 1;
}


/* --- Submenu background and colors --- */

.wp-block-navigation ul.wp-block-navigation-submenu {
    background: var(--wp--preset--color--background-secondary) !important;
    border: none !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

.wp-block-navigation .wp-block-navigation-submenu li a {
    color: var(--wp--preset--color--primary) !important;
}

.wp-block-navigation li a:hover {
    color: var(--wp--preset--color--secondary) !important;
}

/* --- Links border control --- */

.wp-block-site-logo a {
    border: none;
}

a:has(img) {
    border: none;
}

/* --- Stick footer to bottom --- */

.wp-site-blocks {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.wp-site-blocks > footer {
    margin-block-start: 0px !important;
}

.wp-site-blocks > .wp-block-group {
    margin-bottom: auto !important;
}

.wp-block-social-links .wp-social-link span:not(.screen-reader-text) {
    font-size: var(--wp--preset--font-size--normal);
}


/* --- Helpers for block stylization --- */

.border-radius-default {
    border-radius: var(--wp--preset--spacing--10);
}

.overflow-hidden {
    overflow: hidden;
}

.full-height {
    height: 100%;
}


/* Block Style: Space Between */

.is-style-makoa-rounded-borders {
    border-radius: var(--wp--preset--spacing--10);
    overflow: hidden;
}


/* --- Helper classes for mobile devices --- */

@media (max-width: 767px) {

    .mobile-hide {
        display: none !important
    }

    .mobile-max-height-40 {
        max-height: 40px;
    }

    .mobile-order-1 {
        order: 1;
    }

    .mobile-order-2 {
        order: 2;
    }

    .mobile-order-3 {
        order: 3;
    }

    .mobile-align-none {
        float: none !important;
        margin-inline-start: 0 !important;
    }

    .mobile-no-br br {
        display: none;
    }

    .mobile--no-padding-top {
        padding-top: 0 !important;
    }

    .mobile--no-padding-bottom {
        padding-bottom: 0 !important;
    }

    .mobile-gallery-column > .wp-block-image {
        width: 100% !important;
    }

}


/* --- Material buttons --- */

.wp-element-button, .wp-block-button a {
    transition: 0.2s ease;
    -webkit-transition: 0.2s ease;
    box-sizing: border-box;
}

.wp-element-button:hover, .wp-block-button:hover a {
    transform: scale(1.02);
}

.wp-element-button:focus, .wp-block-button:focus a {
    transform: scale(1);
}

.wp-element-button:active, .wp-block-button:active a {
    transform: scale(1);
}


/* --- Material lightbox --- */

.wp-lightbox-container {
    transition: 0.2s ease;
    -webkit-transition: 0.2s ease;  
}

.wp-lightbox-container:hover {
    transform: scale(1.02);
}


.wp-block-navigation__responsive-container.is-menu-open {
    padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
}

ul.wp-block-categories-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--wp--preset--spacing--40);
}

.wp-block-query-pagination-numbers {
    display: flex;
    gap: var(--wp--preset--spacing--30);
}




/* ====== フォーム全体 ====== */
.wpcf7 form {
  width: 100%;
  margin: 0 auto;
}

/* ====== ラベル ====== */
.wpcf7 form p {
  margin-bottom: 20px;
}

.wpcf7-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 16px;
}

/* ====== テキスト系入力 ====== */
.wpcf7-text,
.wpcf7-number,
.wpcf7-date,
.wpcf7-textarea,
.wpcf7-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  background: #fafafa;
  transition: 0.2s;
  border-radius: 4px;
  box-sizing: border-box;
}

.wpcf7-textarea {
  height: 140px;
  resize: vertical;
}

/* Hover / Focus */
.wpcf7-text:focus,
.wpcf7-number:focus,
.wpcf7-date:focus,
.wpcf7-textarea:focus,
.wpcf7-select:focus {
  border-color: #7cc4ff;
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(124,196,255,0.25);
}

/* ====== チェックボックス・ラジオ ====== */
.wpcf7-list-item {
  display: block;
  margin-bottom: 8px;
}

.wpcf7-list-item-label {
  margin-left: 6px;
}

/* ====== 送信ボタン ====== */
.wpcf7-submit {
  display: inline-block;
  width: 100%;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.2s;
  border-radius: 4px;
  background: #000;
  color: #fff;
}

.wpcf7-submit:hover {
  opacity: 0.7;
}

/* ====== エラーメッセージ ====== */
.wpcf7-not-valid-tip {
  color: #e14f4f;
  font-size: 12px;
  margin-top: 6px;
}

.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
    padding: 10px 15px;
    border: 1px solid #e14f4f;
    border-radius: 4px;
    margin: 0;
}

.wpcf7 form.sent .wpcf7-response-output {
    border-radius: 4px;
    padding: 10px 15px;
    border: 1px solid #00c2ff;
    margin: 0;
}

/* ====== 送信後のメッセージ ====== */
.wpcf7-mail-sent-ok {
  padding: 12px;
  background: #e0f8e8;
  border-left: 4px solid #1fa562;
  color: #1fa562;
}

.wpcf7-validation-errors {
  padding: 12px;
  background: #ffecec;
  border-left: 4px solid #e14f4f;
  color: #e14f4f;
}



h1.wp-block-query-title {
    font-size: clamp(24px, 2rem + ((1vw - 3.2px) * 1.087), 32px);
}


body .is-layout-grid {
    align-items: stretch;
}

.wp-block-group.has-background-secondary-background-color.has-background.is-layout-constrained.wp-container-core-group-is-layout-466948bd.wp-block-group-is-layout-constrained {
    height: 100%;
}


ul.wp-elements-6aaaef8e2b81780dadbd3c656a8d512e.wp-block-page-list.has-tiny-font-size {
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

