/*
Theme Name: Sekimosoft Official Theme
Template:   twentytwentyfive
Description: 技術と情緒の融合。パンフレットの世界観を再現する公式サイト専用テーマ。
*/

/* ボタン：パンフレットの雰囲気に合わせ、丸みをなくして力強い印象に */
.wp-block-button__link {
    border-radius: 0 !important; 
    font-weight: bold;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

/* フロントページCTA: PCでは余白をしっかり確保し、スマホでは縦積みで押しやすくする */
.sekimosoft-front-buttons {
    margin-top: var(--wp--preset--spacing--30);
    margin-bottom: var(--wp--preset--spacing--40);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: clamp(16px, 3vw, 28px);
}

.sekimosoft-front-buttons__item {
    margin: 0;
    display: flex;
}

.sekimosoft-front-buttons__item .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    min-width: min(100%, 240px);
    padding: 0.95rem 1.6rem;
    text-align: center;
    line-height: 1.4;
    white-space: normal;
}

@media (max-width: 600px) {
    .sekimosoft-front-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .sekimosoft-front-buttons__item {
        width: 100%;
    }

    .sekimosoft-front-buttons__item .wp-block-button__link {
        display: flex;
        width: 100%;
        min-width: 0;
        padding: 1rem 1.25rem;
    }
}

/* リンク：パンフレットのアクセントカラー（黄金色）を適用 */
a {
    transition: color 0.2s ease;
}

/* Contact Form 7（/contact）：題名・本文の入力幅を拡大し、エラーを送信ボタン直前に表示 */
.page-contact .wpcf7 {
    max-width: calc(var(--wp--style--global--content-size, 645px) * 1.5);
    margin-left: auto;
    margin-right: auto;
}

.page-contact .wpcf7 input[type="text"],
.page-contact .wpcf7 input[type="email"],
.page-contact .wpcf7 input[type="url"],
.page-contact .wpcf7 textarea {
    box-sizing: border-box;
    width: 100%;
}

.page-contact .wpcf7 textarea {
    min-height: 12em;
}

.page-contact .sekimosoft-cf7-error {
    color: var(--wp--preset--color--accent-2);
    font-size: var(--wp--preset--font-size--small, 0.875rem);
    margin-bottom: var(--wp--preset--spacing--20, 10px);
}

/* フロントページ下部：検索サイトロゴ（Google / Yahoo! JAPAN） */
.sekimosoft-search-logos {
    text-align: center;
}

.sekimosoft-search-logos .wp-block-image a {
    display: inline-flex;
    align-items: center;
}

.sekimosoft-search-logos .wp-block-image img {
    height: auto;
    max-height: 56px;
    width: auto;
}

.sekimosoft-search-logos .wp-block-image a:hover img,
.sekimosoft-search-logos .wp-block-image a:focus img {
    opacity: 0.85;
}

/* * 今後、パンフレットにある「回路図のライン」や「鳥居の朱色」に関する
 * 特殊なアニメーションなどを追加する場合は、この下に記述していきます。
 */

/*
Theme Name: Twenty Twenty-Five
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Five emphasizes simplicity and adaptability. It offers flexible design options, supported by a variety of patterns for different page types, such as services and landing pages, making it ideal for building personal blogs, professional portfolios, online magazines, or business websites. Its templates cater to various blog styles, from text-focused to image-heavy layouts. Additionally, it supports international typography and diverse color palettes, ensuring accessibility and customization for users worldwide.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 1.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/*
 * IMPORTANT: This file is only served on the frontend when `SCRIPT_DEBUG` is enabled;
 * in most instances, the `style.min.css` file will be served. It is not recommended that you
 * use the Theme File Editor to modify this stylesheet. Instead, add the necessary style
 * overrides via "Additional CSS" in the Site Editor.
 */

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

/*
 * Prevents unnecessary scrollbars while handling long lines of preformatted text.
 * https://core.trac.wordpress.org/ticket/63875
 */
:where(pre) {
	overflow-x: auto;
}

/* フェードインアニメーションの基本設定 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease, transform 1s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 回路図が光るようなホバーエフェクト（技術の表現） */
.wp-block-cover {
    overflow: hidden;
}

.wp-block-cover::after {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.2), transparent); /* Tech-Goldの輝き */
    transform: skewX(-25deg);
    transition: 0.75s;
}

.wp-block-cover:hover::after {
    left: 150%;
}